/* ============================================================
   SDA&CO — STRATEGIC ADVISORY & GROWTH
   Design System & Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,600&family=Jost:wght@300;400;500;600;700&display=swap');

/* ============================================================
   TOKENS
   ============================================================ */
:root {
  --navy:        #1A1B3D;
  --navy-deep:   #0F1028;
  --navy-mid:    #23265A;
  --teal:        #00BFA5;
  --teal-light:  #1AD4BB;
  --teal-dark:   #009E88;
  --cream:       #F6F4EE;
  --off-white:   #FAFAF8;
  --white:       #FFFFFF;
  --text-body:   #2D2F52;
  --text-muted:  #6B7280;
  --border-dark: rgba(255,255,255,0.10);
  --border-light:rgba(26,27,61,0.12);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Jost', system-ui, sans-serif;

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.0, 0.0, 0.2, 1);

  --max-w: 1180px;
  --gutter: clamp(1.5rem, 5vw, 3rem);
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--white);
  line-height: 1.7;
  font-size: 1rem;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font-body); }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy);
}
.display-xl {
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.display-lg {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.display-md {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 600;
  line-height: 1.2;
}
.display-sm {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 500;
}
.body-lg  { font-size: 1.125rem; line-height: 1.8; }
.body-md  { font-size: 1rem; line-height: 1.75; }
.body-sm  { font-size: 0.875rem; line-height: 1.65; }
.label    { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: clamp(4rem, 10vw, 8rem) 0; }
.section-sm { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

/* ============================================================
   COLORS
   ============================================================ */
.bg-navy    { background-color: var(--navy); }
.bg-navy-deep { background-color: var(--navy-deep); }
.bg-cream   { background-color: var(--cream); }
.bg-white   { background-color: var(--white); }
.text-white { color: var(--white); }
.text-teal  { color: var(--teal); }
.text-muted { color: var(--text-muted); }

/* ============================================================
   COMPONENTS — BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  border-radius: 2px;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--teal);
  color: var(--navy);
}
.btn-primary:hover {
  background: var(--teal-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,191,165,0.3);
}
.btn-outline-white {
  border: 1.5px solid rgba(255,255,255,0.5);
  color: var(--white);
}
.btn-outline-white:hover {
  border-color: var(--teal);
  color: var(--teal);
  transform: translateY(-2px);
}
.btn-outline-navy {
  border: 1.5px solid var(--navy);
  color: var(--navy);
}
.btn-outline-navy:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-lg { padding: 1.1rem 2.5rem; font-size: 0.9rem; }
.btn-sm { padding: 0.65rem 1.4rem; font-size: 0.8rem; }
.btn-arrow::after { content: '→'; margin-left: 0.25rem; transition: transform 0.3s; }
.btn-arrow:hover::after { transform: translateX(4px); }

/* ============================================================
   COMPONENTS — NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background 0.4s var(--ease), box-shadow 0.4s;
  padding: 0;
}
.nav.scrolled {
  background: rgba(15, 16, 40, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.08);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.logo {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex-shrink: 0;
}
.logo-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.08em;
  line-height: 1;
}
.logo-tagline {
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 500;
  color: var(--teal);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1;
  margin-top: 3px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  padding: 0.5rem 0.75rem;
  border-radius: 2px;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--teal); }
.nav-links a.active { color: var(--teal); }
.nav-links .nav-cta {
  background: var(--teal);
  color: var(--navy);
  font-weight: 700;
  padding: 0.55rem 1.25rem;
  margin-left: 0.5rem;
  border-radius: 2px;
}
.nav-links .nav-cta:hover {
  background: var(--teal-light);
  color: var(--navy);
}
.nav-toggle {
  display: none;
  color: var(--white);
  font-size: 1.5rem;
  padding: 0.25rem;
}
.nav-mobile {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--navy-deep);
  padding: 1.5rem var(--gutter) 2rem;
  flex-direction: column;
  gap: 0;
  z-index: 999;
  border-top: 1px solid var(--border-dark);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  font-weight: 500;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border-dark);
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.nav-mobile a:hover, .nav-mobile a.active { color: var(--teal); }
.nav-mobile .nav-cta-mobile {
  margin-top: 1.25rem;
  background: var(--teal);
  color: var(--navy);
  font-weight: 700;
  text-align: center;
  padding: 0.9rem;
  border-radius: 2px;
  border: none;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ============================================================
   COMPONENTS — PAGE HEADER
   ============================================================ */
.page-header {
  background: var(--navy);
  padding: 9rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, var(--teal) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(0,191,165,0.08) 0%, transparent 60%);
  opacity: 0.15;
}
.page-header-inner { position: relative; }
.page-header .label { color: var(--teal); margin-bottom: 1rem; }
.page-header h1 { color: var(--white); }
.page-header p { color: rgba(255,255,255,0.65); max-width: 600px; margin-top: 1rem; font-size: 1.1rem; }

/* ============================================================
   COMPONENTS — DIVIDER & ACCENT
   ============================================================ */
.teal-line {
  width: 48px;
  height: 3px;
  background: var(--teal);
  margin-bottom: 1.5rem;
}
.teal-line-lg {
  width: 72px;
  height: 4px;
  background: var(--teal);
  margin-bottom: 2rem;
}
.section-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.section-label::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--teal);
  flex-shrink: 0;
}
.section-label span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
}

/* ============================================================
   COMPONENTS — CARDS
   ============================================================ */
.card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 2rem;
  transition: all 0.35s var(--ease);
}
.card:hover {
  border-color: var(--teal);
  box-shadow: 0 16px 40px rgba(0,191,165,0.08), 0 4px 12px rgba(26,27,61,0.08);
  transform: translateY(-4px);
}
.card-dark {
  background: var(--navy-mid);
  border: 1px solid var(--border-dark);
  border-radius: 4px;
  padding: 2rem;
  transition: all 0.35s var(--ease);
}
.card-dark:hover {
  border-color: var(--teal);
  transform: translateY(-4px);
}
.card-icon {
  width: 48px;
  height: 48px;
  background: rgba(0,191,165,0.12);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
  transition: background 0.3s;
}
.card:hover .card-icon, .card-dark:hover .card-icon {
  background: rgba(0,191,165,0.22);
}
.card h3 { font-size: 1.4rem; margin-bottom: 0.75rem; }
.card-dark h3 { color: var(--white); }
.card-dark p { color: rgba(255,255,255,0.65); }

/* ============================================================
   COMPONENTS — STAT BLOCKS
   ============================================================ */
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
}
.stat-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.06em;
  margin-top: 0.35rem;
}

/* ============================================================
   COMPONENTS — TESTIMONIAL / QUOTE
   ============================================================ */
.quote-block {
  border-left: 3px solid var(--teal);
  padding: 1.5rem 2rem;
  background: rgba(0,191,165,0.04);
  border-radius: 0 4px 4px 0;
}
.quote-block p {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--navy);
  line-height: 1.6;
}
.quote-block cite {
  display: block;
  font-style: normal;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-top: 1rem;
}

/* ============================================================
   COMPONENTS — ACCORDION / FAQ
   ============================================================ */
.accordion-item {
  border-bottom: 1px solid var(--border-light);
}
.accordion-header {
  width: 100%;
  text-align: left;
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
  transition: color 0.2s;
}
.accordion-header:hover { color: var(--teal); }
.accordion-header.active { color: var(--teal); }
.accordion-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: transform 0.3s;
}
.accordion-header.active .accordion-icon { transform: rotate(45deg); }
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}
.accordion-body-inner {
  padding: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
}

/* ============================================================
   COMPONENTS — FORMS
   ============================================================ */
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
}
.form-input, .form-textarea, .form-select {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--navy);
  background: var(--white);
  border: 1.5px solid var(--border-light);
  border-radius: 3px;
  padding: 0.875rem 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  width: 100%;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0,191,165,0.12);
}
.form-textarea { min-height: 140px; resize: vertical; }

/* ============================================================
   COMPONENTS — FOOTER
   ============================================================ */
.footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.6);
  padding: 5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border-dark);
}
.footer-brand .logo-name { color: var(--white); font-size: 1.75rem; }
.footer-brand .logo-tagline { margin-top: 4px; }
.footer-brand p {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  line-height: 1.75;
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.25rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--teal); }
.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  align-items: flex-start;
}
.footer-contact-item .icon { color: var(--teal); flex-shrink: 0; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  font-size: 0.8rem;
}
.footer-bottom a { color: rgba(255,255,255,0.4); transition: color 0.2s; }
.footer-bottom a:hover { color: var(--teal); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in {
  opacity: 0;
  transition: opacity 0.7s var(--ease);
}
.fade-in.visible { opacity: 1; }

/* Stagger children */
.stagger > * { transition-delay: 0s; }
.stagger > *:nth-child(1) { transition-delay: 0s; }
.stagger > *:nth-child(2) { transition-delay: 0.1s; }
.stagger > *:nth-child(3) { transition-delay: 0.2s; }
.stagger > *:nth-child(4) { transition-delay: 0.3s; }
.stagger > *:nth-child(5) { transition-delay: 0.4s; }
.stagger > *:nth-child(6) { transition-delay: 0.5s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.text-center { text-align: center; }
.hidden { display: none; }
.w-full { width: 100%; }

/* Diagonal section divider */
.diagonal-top {
  clip-path: polygon(0 5%, 100% 0, 100% 100%, 0 100%);
  margin-top: -3vw;
  padding-top: calc(3vw + 5rem);
}
.diagonal-bottom {
  clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
  padding-bottom: calc(3vw + 5rem);
}

/* ── MOBILE CTA BUTTON FIXES ──────────────────────────────── */
@media (max-width: 600px) {
  /* Stack any flex button groups on mobile */
  .cta-banner-inner,
  .cta-banner-inner > div:last-child,
  section > .container > div[style*="flex"] {
    flex-wrap: wrap;
  }
  /* Force button pairs to stack and fill width */
  .cta-banner .btn,
  section[style*="teal"] .btn,
  .section .btn + .btn {
    flex: 1 1 100%;
    justify-content: center;
    text-align: center;
  }
  /* Specifically target inline flex button groups */
  div[style*="display:flex"][style*="gap"] > a.btn,
  div[style*="display: flex"][style*="gap"] > a.btn {
    flex: 1 1 45%;
    justify-content: center;
    min-width: 140px;
  }
}

/* ── CTA BANNER MOBILE STACK ───────────────────────────────── */
@media (max-width: 640px) {
  .cta-banner .container > div {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .cta-banner .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}
