/* ============================================================
   BONAGUIDI NORTH — styles.css
   Brand colors: Deep Teal #4E7674 | Burgundy #8B2E3F
   Fonts: Cormorant Garamond (serif) | DM Sans (sans)
============================================================ */

/* ============================================================
   TOKENS & RESET
============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Brand Colors */
  --burg:         #8B2E3F;
  --burg-dark:    #6E2231;
  --teal:         #4E7674;
  --teal-hover:   #3D5E5C;
  --teal-light:   #7AA5A3;
  --teal-pale:    #EAF0EF;
  --teal-bg:      #E2EDEC;
  --cream:        #FAF7F2;
  --warm-white:   #FFFDF9;
  --stone:        #EDE9E1;
  --stone-dark:   #D4C8BB;
  --text-dark:    #2A2320;
  --text-mid:     #5C524E;
  --text-light:   #8C7E79;

  /* Typography */
  --font-serif:   'Cormorant Garamond', Georgia, serif;
  --font-sans:    'DM Sans', system-ui, sans-serif;

  /* Spacing */
  --radius-sm:    4px;
  --radius-md:    8px;
  --radius-lg:    12px;
  --max-width:    1040px;
  --pad-x:        clamp(20px, 5vw, 64px);
  --pad-y:        clamp(48px, 8vw, 88px);

  /* Motion */
  --transition:   0.2s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--warm-white);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ============================================================
   TYPOGRAPHY
============================================================ */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
}

h1 {
  font-size: clamp(32px, 5vw, 44px);
  color: var(--teal);
  line-height: 1.15;
  margin-bottom: 20px;
}

h2 {
  font-size: clamp(26px, 4vw, 34px);
  color: var(--teal);
  line-height: 1.25;
  margin-bottom: 22px;
}

h3 {
  font-size: 20px;
  color: var(--teal);
  margin-bottom: 8px;
}

h1 em, h2 em, h3 em {
  font-style: italic;
  color: var(--burg);
}

p {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 16px;
}

p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   UTILITY
============================================================ */
.eyebrow,
.section-label {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--teal);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.divider {
  height: 1px;
  background: #E0D9CF;
  margin: 0 var(--pad-x);
}

/* ============================================================
   BUTTONS & LINKS
============================================================ */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  text-align: center;
}

.btn:active {
  transform: scale(0.98);
}

.btn-teal {
  background: var(--teal);
  color: #fff;
  padding: 13px 26px;
  font-size: 14px;
}

.btn-teal:hover {
  background: var(--teal-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--teal);
  border: 1.5px solid var(--teal);
  padding: 13px 26px;
  font-size: 14px;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.btn-ghost:hover {
  background: var(--teal);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--text-dark);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid #CCCCCC;
  border-radius: var(--radius-sm);
  transition: border-color var(--transition);
}

.btn-outline:hover {
  border-color: var(--text-mid);
}

.link-arrow {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--teal);
  border-bottom: 1px solid var(--teal-light);
  padding-bottom: 2px;
  display: inline-block;
  margin-top: 8px;
  transition: color var(--transition), border-color var(--transition);
}

.link-arrow:hover {
  color: var(--teal-hover);
  border-color: var(--teal-hover);
}

.link-subtle {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--teal);
  border-bottom: 1px solid var(--teal-light);
  padding-bottom: 2px;
  display: inline-block;
  transition: color var(--transition);
}

.link-subtle:hover {
  color: var(--teal-hover);
}

/* ============================================================
   SCROLL ANIMATIONS
============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.fade-up.delay-1 { transition-delay: 0.1s; }
.fade-up.delay-2 { transition-delay: 0.2s; }
.fade-up.delay-3 { transition-delay: 0.3s; }

/* ============================================================
   SCROLL OFFSET — compensates for sticky nav height
   so anchor jump links land with section labels visible
============================================================ */
section[id],
footer[id] {
  scroll-margin-top: 120px;
}

/* ============================================================
   NAVIGATION
============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--warm-white);
  border-bottom: 1px solid #E8E2D8;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--pad-x);
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav-logo img {
  height: 80px;
  width: auto;
}

.nav-logo-text {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--burg);
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--text-mid);
  letter-spacing: 0.02em;
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--text-dark);
}

.nav-links a.active {
  color: var(--teal);
}

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

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  background: var(--warm-white);
  border-bottom: 1px solid #E8E2D8;
  padding: 8px 0 16px;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu a {
  display: block;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text-mid);
  padding: 13px var(--pad-x);
  border-bottom: 1px solid #F0EAE0;
  transition: color var(--transition), background var(--transition);
}

.mobile-menu a:hover {
  color: var(--text-dark);
  background: var(--cream);
}

.mobile-menu a.mobile-menu-cta {
  font-weight: 500;
  color: var(--text-dark);
  border: 1px solid #CCCCCC;
  border-radius: var(--radius-sm);
  margin: 14px var(--pad-x) 0;
  text-align: center;
  border-bottom: 1px solid #CCCCCC;
}

/* ============================================================
   HERO
============================================================ */
.hero {
  background: var(--cream);
  padding: var(--pad-y) var(--pad-x);
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-sub {
  font-size: 20px;
  line-height: 1.8;
  color: var(--text-mid);
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  margin-top: 32px;
}

.hero-ctas a {
  font-size: 20px;
}

.hero-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 380px;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ============================================================
   WHO WE SERVE
============================================================ */
.who {
  background: var(--warm-white);
  padding: var(--pad-y) var(--pad-x);
}

.who-inner {
  max-width: 680px;
  margin: 0 auto;
}

/* ============================================================
   SERVICES
============================================================ */
.services {
  background: var(--teal-bg);
  padding: var(--pad-y) var(--pad-x);
}

.services-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.services-intro {
  max-width: 620px;
  margin-bottom: 36px;
}

/* Phase Grid */
.phase-grid {
  border: 1px solid #C0D4D2;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.phase-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  background: var(--warm-white);
  border-bottom: 1px solid #D4E0DF;
}

.phase-card:last-child {
  border-bottom: none;
}

.phase-label {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--teal);
}

.phase-label.discover {
  background: var(--burg);
}

.phase-word {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  color: #fff;
  margin-bottom: 4px;
}

.phase-label.discover .phase-word {
  font-size: 28px;
}

.phase-sub {
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.phase-body {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.phase-body h3 {
  font-size: 18px;
}

.phase-body p {
  font-size: 14px;
  margin-bottom: 0;
}

/* Connectors */
.phase-connector {
  border-left: 1px solid #C0D4D2;
  border-right: 1px solid #C0D4D2;
  background: var(--teal-bg);
}

.phase-connector.last {
  border-bottom: 1px solid #C0D4D2;
}

.phase-connector-inner {
  display: flex;
  align-items: center;
  padding: 12px 24px;
  gap: 10px;
  border-top: 1px dashed rgba(78, 118, 116, 0.3);
  border-bottom: 1px dashed rgba(78, 118, 116, 0.3);
  background: rgba(78, 118, 116, 0.05);
}

.c-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--teal-light);
}

.c-dot.burg {
  background: var(--burg);
  opacity: 0.45;
}

.c-dot.solid {
  background: var(--teal);
  opacity: 1;
}

.c-line {
  flex: 1;
  height: 1px;
  background: var(--teal-light);
  opacity: 0.45;
  position: relative;
}

.c-line::after {
  content: '';
  position: absolute;
  right: -1px;
  top: -4px;
  border-left: 6px solid var(--teal-light);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  opacity: 0.55;
}

.c-text {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--teal);
  font-style: italic;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.services-cta {
  margin-top: 32px;
}

/* ============================================================
   ABOUT
============================================================ */
.about {
  background: var(--stone);
  padding: var(--pad-y) var(--pad-x);
}

.about-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-image {
  border-radius: 50%;
  overflow: hidden;
  height: 320px;
  width: 320px;
  margin: 0 auto;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

blockquote {
  font-family: var(--font-serif);
  font-size: clamp(18px, 2.5vw, 22px);
  font-style: italic;
  color: var(--burg);
  line-height: 1.5;
  border-left: 3px solid var(--burg);
  padding-left: 20px;
  margin: 20px 0 24px;
}

.bridging-line {
  font-family: var(--font-sans);
  font-size: 13px;
  font-style: italic;
  color: var(--teal);
  background: rgba(78, 118, 116, 0.08);
  border-left: 3px solid var(--teal);
  padding: 12px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 20px 0 28px;
  line-height: 1.65;
}

/* ============================================================
   BOOK A CALL
============================================================ */
.book {
  background: var(--teal);
  padding: var(--pad-y) var(--pad-x);
  text-align: center;
}

.book .section-label {
  color: rgba(255, 255, 255, 0.55);
}

.book h2 {
  color: #fff;
  max-width: 520px;
  margin: 0 auto 18px;
}

.book-sub {
  font-family: var(--font-sans);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
  max-width: 440px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.calendly-embed {
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* ============================================================
   FOOTER
============================================================ */
.footer {
  background: var(--text-dark);
  padding: 40px var(--pad-x);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-logo img {
  height: 36px;
  filter: brightness(0) invert(1);
  opacity: 0.7;
}

.footer-logo-text {
  font-family: var(--font-serif);
  font-size: 18px;
  color: rgba(255, 255, 255, 0.65);
  display: none;
}

.footer-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  color: #fff;
}

.footer-contact {
  text-align: right;
}

.footer-contact a {
  display: block;
  font-family: var(--font-sans);
  font-size: 13px;
  color: #fff;
  margin-bottom: 6px;
  transition: color var(--transition);
}

.footer-contact a:last-child {
  margin-bottom: 0;
}

.footer-contact a:hover {
  color: rgba(255, 255, 255, 0.75);
}

/* ============================================================
   NEWSLETTER ASIDE (Who We Serve section)
============================================================ */
.nl-aside {
  background: #FCF8F2;
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin-top: 24px;
}

.nl-aside p {
  font-family: var(--font-sans);
  font-style: italic;
  font-size: 14px;
  color: var(--text-mid);
  margin-bottom: 10px;
}

.nl-aside a {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--teal);
  border-bottom: 1px solid var(--teal-light);
  padding-bottom: 1px;
  transition: color var(--transition);
}

.nl-aside a:hover {
  color: var(--teal-hover);
}

/* ============================================================
   RESPONSIVE — TABLET (≤800px)
============================================================ */
@media (max-width: 800px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-image {
    height: 260px;
    order: -1;
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about-image {
    height: 320px;
  }

  .phase-card {
    grid-template-columns: 160px 1fr;
  }

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

  .footer-contact {
    text-align: center;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤600px)
============================================================ */
@media (max-width: 600px) {
  :root {
    --pad-x: 20px;
    --pad-y: 48px;
  }

  section[id],
  footer[id] {
    scroll-margin-top: 76px;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-logo img {
    height: 36px;
  }

  .hero-image {
    height: 220px;
  }

  .phase-card {
    grid-template-columns: 1fr;
  }

  .phase-label {
    padding: 16px 20px;
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
  }

  .phase-label.discover .phase-word {
    font-size: 22px;
  }

  .phase-word {
    font-size: 20px;
    margin-bottom: 0;
  }

  .phase-body {
    padding: 18px 20px;
  }

  .c-text {
    font-size: 11px;
  }

  .about-image {
    height: 240px;
    width: 240px;
    border-radius: 50%;
    margin: 0 auto;
  }

  .about-inner {
    gap: 28px;
  }

  .calendly-embed {
    padding: 40px 16px;
  }
}

/* ============================================================
   LEGAL PAGES (privacy.html, terms.html)
============================================================ */
.legal-hero {
  background: var(--cream);
  padding: var(--pad-y) var(--pad-x);
  border-bottom: 1px solid #E0D9CF;
}

.legal-hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.legal-hero h1 {
  font-size: clamp(28px, 4vw, 38px);
  margin-bottom: 10px;
}

.legal-meta {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-light);
}

.legal-body {
  background: var(--warm-white);
  padding: var(--pad-y) var(--pad-x);
}

.legal-body-inner {
  max-width: 720px;
  margin: 0 auto;
}

.legal-back {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--teal);
  border-bottom: 1px solid var(--teal-light);
  padding-bottom: 2px;
  margin-bottom: 40px;
  transition: color var(--transition);
}

.legal-back:hover {
  color: var(--teal-hover);
}

.legal-body h2 {
  font-size: clamp(17px, 2.2vw, 21px);
  margin-top: 40px;
  margin-bottom: 10px;
}

.legal-body h2:first-of-type {
  margin-top: 0;
}

.legal-body h3 {
  font-size: 16px;
  color: var(--text-dark);
  font-family: var(--font-sans);
  font-weight: 500;
  margin-top: 20px;
  margin-bottom: 6px;
}

.legal-body p {
  margin-bottom: 14px;
}

.legal-body ul {
  margin: 0 0 16px 20px;
  padding: 0;
}

.legal-body li {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 6px;
}

.legal-body a {
  color: var(--teal);
  border-bottom: 1px solid var(--teal-light);
  padding-bottom: 1px;
  transition: color var(--transition);
}

.legal-body a:hover {
  color: var(--teal-hover);
}

.legal-notice {
  background: var(--teal-pale);
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px;
  margin-bottom: 16px;
}

.legal-notice p {
  font-size: 14px;
  margin-bottom: 0;
}

.legal-address {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text-mid);
  line-height: 2;
  margin-bottom: 16px;
}

.footer-legal {
  max-width: var(--max-width);
  margin: 20px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  gap: 24px;
  justify-content: center;
}

.footer-legal a {
  font-family: var(--font-sans);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--transition);
}

.footer-legal a:hover {
  color: #fff;
}

/* ============================================================
   REDUCED MOTION
============================================================ */
@media (prefers-reduced-motion: reduce) {
  .fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}
