/* ============================================
   Alejandro Franco | CFO Portfolio
   ============================================ */

:root {
  /* Corporate Navy Palette */
  --navy-900: #0a1628;
  --navy-800: #0f2038;
  --navy-700: #162d50;
  --navy-600: #1e3a5f;
  --navy-500: #2a4d76;

  /* Slate Neutrals */
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;

  /* Whites */
  --white: #ffffff;
  --off-white: #f8fafc;

  /* Accent */
  --gold: #b8945f;
  --gold-light: #d4b483;

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Outfit', system-ui, sans-serif;

  /* Spacing */
  --section-pad: 120px;
  --container: 1200px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--slate-700);
  background-color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

/* ---- Utilities ---- */
.section-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--navy-800);
  line-height: 1.2;
  margin-bottom: 24px;
}

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  padding: 14px 32px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn--primary {
  background-color: var(--navy-800);
  color: var(--white);
}

.btn--primary:hover {
  background-color: var(--navy-600);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(15, 32, 56, 0.3);
}

.btn--outline {
  background: transparent;
  color: var(--navy-800);
  border: 1.5px solid var(--navy-800);
}

.btn--outline:hover {
  background-color: var(--navy-800);
  color: var(--white);
}

.btn--full {
  width: 100%;
  text-align: center;
  font-size: 1rem;
  padding: 16px 32px;
}

/* ---- Fade-in Animation ---- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.35s ease;
}

.nav--scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  padding: 14px 0;
  box-shadow: 0 1px 20px rgba(10, 22, 40, 0.06);
}

.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--navy-800);
  letter-spacing: -0.02em;
}

.nav__logo-dot {
  color: var(--gold);
}

.nav__links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 36px;
}

.nav__links a {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--slate-600);
  letter-spacing: 0.02em;
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav__links a:hover::after,
.nav__links a.active::after {
  width: 100%;
}

.nav__links a:hover {
  color: var(--navy-800);
}

.nav__cta {
  background-color: var(--navy-800) !important;
  color: var(--white) !important;
  padding: 10px 24px !important;
  border-radius: 4px !important;
}

.nav__cta::after {
  display: none !important;
}

.nav__cta:hover {
  background-color: var(--navy-600) !important;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy-800);
  transition: all 0.3s ease;
}

.nav__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--off-white) 0%, var(--slate-100) 50%, var(--off-white) 100%);
  overflow: clip;
}

.hero__bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.03;
  background-image:
    linear-gradient(45deg, var(--navy-800) 1px, transparent 1px),
    linear-gradient(-45deg, var(--navy-800) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 140px 40px 120px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  animation: fadeUp 0.8s ease 0.2s both;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 6vw, 5rem);
  color: var(--navy-900);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  animation: fadeUp 0.8s ease 0.4s both;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--slate-500);
  max-width: 440px;
  line-height: 1.7;
  margin-bottom: 40px;
  animation: fadeUp 0.8s ease 0.6s both;
}

.hero__actions {
  display: flex;
  gap: 16px;
  animation: fadeUp 0.8s ease 0.8s both;
}

.hero__image {
  position: relative;
  animation: fadeUp 0.8s ease 0.5s both;
}

.hero__image-frame {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(10, 22, 40, 0.15);
  max-height: 560px;
}

.hero__image-frame img {
  width: 100%;
  height: 100%;
  max-height: 560px;
  object-fit: cover;
  object-position: center top;
}

.hero__image-accent {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  border: 2px solid var(--gold);
  border-radius: 4px;
  z-index: -1;
  opacity: 0.4;
}

.hero__scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeUp 0.8s ease 1.2s both;
}

.hero__scroll-indicator span {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--slate-400);
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--slate-400), transparent);
  animation: scrollPulse 2s ease infinite;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ============================================
   ABOUT
   ============================================ */
.about {
  padding: var(--section-pad) 0;
  background: var(--white);
}

.about__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 0.4fr 0.6fr;
  gap: 80px;
  align-items: start;
}

.about__photo {
  position: sticky;
  top: 120px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(10, 22, 40, 0.1);
}

.about__photo img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.about__text {
  margin-bottom: 40px;
}

.about__text p {
  font-size: 1.05rem;
  color: var(--slate-600);
  margin-bottom: 20px;
  line-height: 1.8;
}

.about__quote {
  border-left: 3px solid var(--gold);
  padding: 20px 0 20px 28px;
  margin-top: 40px;
}

.about__quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--navy-700);
  line-height: 1.6;
  margin-bottom: 8px;
}

.about__quote cite {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.85rem;
  color: var(--slate-400);
  letter-spacing: 0.04em;
}

/* ============================================
   SERVICES
   ============================================ */
.services {
  padding: var(--section-pad) 0;
  background: var(--navy-900);
  position: relative;
  overflow: hidden;
}

.services::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 148, 95, 0.06), transparent 70%);
  pointer-events: none;
}

.services__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

.services__header {
  max-width: 560px;
  margin-bottom: 64px;
}

.services__header .section-title {
  color: var(--white);
}

.services__intro {
  font-size: 1.1rem;
  color: var(--slate-400);
  line-height: 1.7;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.service-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 40px;
  transition: all 0.4s ease;
}

.service-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(184, 148, 95, 0.3);
  transform: translateY(-4px);
}

.service-card__number {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2.5rem;
  color: var(--gold);
  opacity: 0.35;
  line-height: 1;
  margin-bottom: 20px;
}

.service-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 16px;
}

.service-card__desc {
  font-size: 0.95rem;
  color: var(--slate-400);
  line-height: 1.7;
  margin-bottom: 24px;
}

.service-card__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-card__list li {
  font-size: 0.85rem;
  color: var(--slate-300);
  padding-left: 16px;
  position: relative;
}

.service-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 1.5px;
  background: var(--gold);
}

/* ============================================
   RECOGNITION
   ============================================ */
.recognition {
  padding: var(--section-pad) 0;
  background: var(--off-white);
}

.recognition__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

.recognition__header {
  text-align: center;
  margin-bottom: 64px;
}

.recognition__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.recognition__card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 30px rgba(10, 22, 40, 0.06);
  transition: all 0.4s ease;
}

.recognition__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(10, 22, 40, 0.1);
}

.recognition__card-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.recognition__card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s ease;
}

.recognition__card:hover .recognition__card-image img {
  transform: scale(1.03);
}

.recognition__card-content {
  padding: 28px;
}

.recognition__year {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-block;
  margin-bottom: 10px;
}

.recognition__card-content h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--navy-800);
  margin-bottom: 10px;
}

.recognition__card-content p {
  font-size: 0.9rem;
  color: var(--slate-500);
  line-height: 1.6;
}

/* ============================================
   RESUME
   ============================================ */
.resume {
  padding: var(--section-pad) 0;
  background: var(--white);
}

.resume__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.resume__desc {
  font-size: 1.05rem;
  color: var(--slate-500);
  line-height: 1.8;
}

.resume__form-wrapper {
  background: var(--off-white);
  padding: 48px;
  border-radius: 8px;
  border: 1px solid var(--slate-200);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--navy-800);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.form-group .optional {
  color: var(--slate-400);
  font-weight: 400;
}

.form-group input,
.form-group textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 16px;
  border: 1px solid var(--slate-200);
  border-radius: 4px;
  background: var(--white);
  color: var(--navy-800);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--slate-400);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--navy-600);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.08);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.resume__note {
  font-size: 0.8rem;
  color: var(--slate-400);
  text-align: center;
  margin-top: 16px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--navy-900);
  padding: 60px 0 0;
}

.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px 40px;
  display: flex;
  justify-content: space-between;
  align-items: start;
}

.footer__logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--white);
  display: block;
  margin-bottom: 8px;
}

.footer__brand p {
  font-size: 0.85rem;
  color: var(--slate-400);
  line-height: 1.6;
}

.footer__links {
  display: flex;
  gap: 32px;
}

.footer__links a {
  font-size: 0.875rem;
  color: var(--slate-400);
  transition: color 0.3s ease;
}

.footer__links a:hover {
  color: var(--white);
}

.footer__social a {
  color: var(--slate-400);
  transition: color 0.3s ease;
}

.footer__social a:hover {
  color: var(--gold);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 20px 40px;
  text-align: center;
}

.footer__bottom p {
  font-size: 0.8rem;
  color: var(--slate-500);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 960px) {
  :root {
    --section-pad: 80px;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
    padding-top: 120px;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__image-accent {
    display: none;
  }

  .hero__image-frame img {
    max-height: 500px;
    object-fit: cover;
    object-position: center top;
  }

  .hero__scroll-indicator {
    display: none;
  }

  .about__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about__photo {
    position: static;
    max-width: 400px;
    margin: 0 auto;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .recognition__grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .resume__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer__inner {
    flex-direction: column;
    gap: 32px;
  }
}

@media (max-width: 640px) {
  :root {
    --section-pad: 64px;
  }

  .nav__inner {
    padding: 0 20px;
  }

  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 32px 40px;
    gap: 24px;
    box-shadow: -10px 0 40px rgba(10, 22, 40, 0.1);
    transition: right 0.4s ease;
  }

  .nav__links.active {
    right: 0;
  }

  .nav__toggle {
    display: flex;
  }

  .hero__inner,
  .about__inner,
  .services__inner,
  .recognition__inner,
  .resume__inner {
    padding-left: 20px;
    padding-right: 20px;
  }

  .resume__form-wrapper {
    padding: 28px;
  }

  .footer__inner,
  .footer__bottom {
    padding-left: 20px;
    padding-right: 20px;
  }

  .footer__links {
    flex-direction: column;
    gap: 16px;
  }
}
