/* ===== CUSTOM PROPERTIES ===== */
:root {
  --navy:        #1B3A5C;
  --navy-mid:    #2A5280;
  --navy-light:  #EBF2FA;
  --green:       #1A7A4A;
  --green-dark:  #156040;
  --green-light: #E8F5EE;
  --bg:          #F7F9FB;
  --white:       #FFFFFF;
  --text:        #1A2332;
  --text-muted:  #5E738A;
  --border:      #DDE6EF;
  --shadow-sm:   0 1px 3px rgba(27,58,92,0.08), 0 1px 2px rgba(27,58,92,0.05);
  --shadow-md:   0 4px 16px rgba(27,58,92,0.10), 0 2px 6px rgba(27,58,92,0.06);
  --radius:      12px;
  --radius-sm:   8px;
  --ease:        0.3s ease;
  --container:   1120px;
  --header-h:    100px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img  { max-width: 100%; height: auto; display: block; }
ul   { list-style: none; }
a    { text-decoration: none; color: inherit; }

/* ===== CONTAINER ===== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  transition: background var(--ease), box-shadow var(--ease), transform var(--ease);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 2px 10px rgba(26,122,74,0.28);
}
.btn-primary:hover {
  background: var(--green-dark);
  box-shadow: 0 4px 18px rgba(26,122,74,0.38);
  transform: translateY(-1px);
}
.btn-nav {
  background: var(--green);
  color: #fff;
  padding: 0.55rem 1.2rem;
  font-size: 0.875rem;
}
.btn-nav:hover { background: var(--green-dark); }
.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1.05rem;
  border-radius: 10px;
}

/* ===== HEADER ===== */
#site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,0.93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--ease), box-shadow var(--ease);
}
#site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand-logo { height: 76px; width: auto; }

#main-nav ul {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}
#main-nav a:not(.btn) {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--ease);
}
#main-nav a:not(.btn):hover { color: var(--navy); }

/* Hamburger button */
#menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 10;
}
#menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}
#menu-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#menu-btn.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
#menu-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  background:
    radial-gradient(circle, rgba(27,58,92,0.055) 1px, transparent 1px)
    var(--white);
  background-size: 30px 30px;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding-block: 5rem 4rem;
}
.badge {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  background: var(--green-light);
  color: var(--green);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.hero-text h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.18;
  color: var(--navy);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}
.hero-text h1 em {
  font-style: normal;
  color: var(--green);
}
.hero-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 2.25rem;
  line-height: 1.8;
}
.hero-illustration svg {
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
  display: block;
}

/* ===== SECTIONS ===== */
.section        { padding-block: 6rem; }
.section.bg-alt { background: var(--bg); }

.section-header {
  text-align: center;
  max-width: 580px;
  margin-inline: auto;
  margin-bottom: 3.5rem;
}
.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.015em;
  margin-bottom: 0.625rem;
}
.section-header p {
  font-size: 1rem;
  color: var(--text-muted);
}

/* ===== GRIDS ===== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* ===== CARDS ===== */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: box-shadow var(--ease), transform var(--ease);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.card-icon {
  width: 48px;
  height: 48px;
  background: var(--navy-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--navy);
  flex-shrink: 0;
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.625rem;
}
.card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* Differential cards */
.card-diff {
  display: flex;
  flex-direction: column;
}
.card-diff .card-icon-lg {
  width: 56px;
  height: 56px;
  background: var(--green-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--green);
  flex-shrink: 0;
}
.card-diff .card-icon-lg svg { width: 26px; height: 26px; }
.card-diff h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.625rem;
}
.card-diff p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ===== TIMELINE ===== */
.timeline {
  max-width: 700px;
  margin-inline: auto;
}
.timeline-item {
  display: flex;
  gap: 1.75rem;
}
.timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}
.timeline-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}
.timeline-line {
  width: 2px;
  flex: 1;
  min-height: 1.5rem;
  background: var(--border);
  margin-block: 6px;
}
.timeline-body {
  padding-bottom: 2.75rem;
  padding-top: 0.7rem;
}
.timeline-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.timeline-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ===== CONTACT SECTION ===== */
.section-contact {
  background: var(--navy);
  text-align: center;
}
.section-contact h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.015em;
  margin-bottom: 1rem;
}
.section-contact > .container > p {
  font-size: 1rem;
  color: rgba(255,255,255,0.72);
  max-width: 500px;
  margin-inline: auto;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}
.section-contact .btn-primary {
  background: var(--green);
  box-shadow: 0 4px 18px rgba(26,122,74,0.4);
}
.section-contact .btn-primary:hover {
  background: var(--green-dark);
  box-shadow: 0 6px 24px rgba(26,122,74,0.5);
}
.contact-email {
  display: block;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
}
.contact-email a {
  color: rgba(255,255,255,0.75);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--ease);
}
.contact-email a:hover { color: #fff; }

/* ===== FOOTER ===== */
#site-footer {
  background: #0E2035;
  padding-block: 2.5rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-logo {
  height: 30px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.7;
}
.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.38);
}
.footer-social {
  display: flex;
  gap: 1.1rem;
}
.footer-social a {
  color: rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  transition: color var(--ease);
}
.footer-social a:hover { color: rgba(255,255,255,0.85); }
.footer-social svg { width: 18px; height: 18px; }

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger — problem cards */
.grid-3 .card:nth-child(2).reveal { transition-delay: 0.10s; }
.grid-3 .card:nth-child(3).reveal { transition-delay: 0.20s; }

/* Stagger — diff cards */
.grid-2 .card:nth-child(2).reveal { transition-delay: 0.10s; }
.grid-2 .card:nth-child(3).reveal { transition-delay: 0.10s; }
.grid-2 .card:nth-child(4).reveal { transition-delay: 0.20s; }

/* Stagger — timeline */
.timeline-item:nth-child(2).reveal { transition-delay: 0.06s; }
.timeline-item:nth-child(3).reveal { transition-delay: 0.12s; }
.timeline-item:nth-child(4).reveal { transition-delay: 0.18s; }
.timeline-item:nth-child(5).reveal { transition-delay: 0.24s; }
.timeline-item:nth-child(6).reveal { transition-delay: 0.30s; }

/* Hero stagger */
.hero-text .badge.reveal      { transition-delay: 0.05s; }
.hero-text h1.reveal          { transition-delay: 0.15s; }
.hero-text .hero-lead.reveal  { transition-delay: 0.25s; }
.hero-text .btn.reveal        { transition-delay: 0.35s; }
.hero-illustration.reveal     { transition-delay: 0.20s; }

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-block: 4rem 3rem;
    text-align: center;
  }
  .hero-lead { margin-inline: auto; }
  .hero-text .btn { margin-inline: auto; }
  .hero-illustration { max-width: 380px; margin-inline: auto; }

  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-3 .card:nth-child(3) {
    grid-column: span 2;
    max-width: 460px;
    margin-inline: auto;
    width: 100%;
  }
  .grid-2 { grid-template-columns: 1fr 1fr; }
}

/* Mobile */
@media (max-width: 680px) {
  :root { --header-h: 64px; }
  .brand-logo { height: 44px; }

  #menu-btn { display: flex; }

  #main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--ease), opacity var(--ease);
  }
  #main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  #main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  #main-nav a:not(.btn) { font-size: 1rem; }
  #main-nav .btn-nav    { font-size: 0.95rem; }

  .section { padding-block: 4rem; }
  .section-header { margin-bottom: 2.5rem; }

  .grid-3,
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 .card:nth-child(3) { grid-column: auto; max-width: none; }

  .hero-illustration { display: none; }
  .hero-text { text-align: left; }
  .hero-lead { margin-inline: 0; }
  .hero-text .btn { margin-inline: 0; }

  .timeline-body { padding-bottom: 2rem; }

  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 400px) {
  .hero-text h1 { font-size: 1.75rem; }
  .btn-lg { padding: 0.875rem 1.75rem; font-size: 1rem; }
}
