/* =============================================================
   LOCAL DISCOVERY AI — styles.css
   ============================================================= */

/* --- Custom Properties ---------------------------------------- */
:root {
  /* Colors */
  --navy:       #0E2A47;
  --navy-deep:  #0A1F35;
  --teal:       #16BDCA;
  --teal-press: #0E9AA5;
  --white:      #FFFFFF;
  --off-white:  #F6F9FC;
  --gray-900:   #1A2330;
  --gray-600:   #566273;
  --gray-300:   #D6DEE8;
  --gray-100:   #EDF1F6;

  /* Typography */
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Measure */
  --measure: 68ch;

  /* Spacing */
  --s-1: .5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2.5rem;
  --s-5: 4rem;
  --s-6: 6rem;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--gray-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

ul, ol { list-style: none; }

/* --- Typography ----------------------------------------------- */
h1 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.1;
}

h2 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.15;
}

h3 {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.25;
}

.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.6;
}

.caption {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--gray-600);
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
}

/* --- Layout --------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: var(--s-4);
}

.container--narrow {
  max-width: 720px;
}

.section {
  padding-block: var(--s-6);
}

@media (max-width: 768px) {
  .section { padding-block: var(--s-5); }
  .container { padding-inline: var(--s-2); }
}

/* Background variants */
.bg-white    { background: var(--white); }
.bg-off-white { background: var(--off-white); }
.bg-navy     { background: var(--navy); color: var(--white); }
.bg-navy-deep { background: var(--navy-deep); color: var(--white); }

.bg-navy h1,
.bg-navy h2,
.bg-navy h3 { color: var(--white); }

.bg-navy p,
.bg-navy .lead { color: rgba(255, 255, 255, 0.88); }

.bg-navy .caption { color: var(--gray-300); }
.bg-navy .eyebrow { color: var(--teal); }

/* Two-column grid */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
  align-items: center;
}

@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; gap: var(--s-4); }
}

/* Three-column grid */
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
}

@media (max-width: 768px) {
  .three-col { grid-template-columns: 1fr; }
}

/* Center utility */
.text-center { text-align: center; }

/* Measure-constrained text column */
.prose {
  max-width: var(--measure);
}

.prose p + p { margin-top: var(--s-3); }

/* --- Buttons -------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 0.875rem 1.75rem;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  border: 2px solid transparent;
  white-space: nowrap;
}

/* Primary: navy fill, white text */
.btn-primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
}

/* Secondary: teal border, navy text → teal fill + white on hover */
.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--teal);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

/* Teal-fill primary (used on navy backgrounds) */
.btn-teal {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

.btn-teal:hover,
.btn-teal:focus-visible {
  background: var(--teal-press);
  border-color: var(--teal-press);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  align-items: center;
}

/* --- Header / Nav --------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-300);
  transition: box-shadow 0.2s ease;
}

.site-header.scrolled {
  box-shadow: 0 2px 12px rgba(14, 42, 71, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

/* Logo */
.logo {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.logo span.accent { color: var(--teal); }

/* Desktop nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s-4);
}

.nav-links a {
  font-weight: 600;
  font-size: 1rem;
  color: var(--navy);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  border-bottom-color: var(--teal);
}

.nav-links .btn {
  padding: 0.5rem 1.25rem;
  margin-left: var(--s-1);
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--s-1);
  color: var(--navy);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--white);
  border-top: 1px solid var(--gray-300);
  padding: var(--s-2) var(--s-4) var(--s-3);
}

.mobile-menu a {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy);
  padding: var(--s-2) 0;
  border-bottom: 1px solid var(--gray-100);
  display: block;
}

.mobile-menu a:last-child { border-bottom: none; }

.mobile-menu .btn {
  margin-top: var(--s-2);
  width: 100%;
  justify-content: center;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu.open { display: flex; }
}

/* --- Footer --------------------------------------------------- */
.site-footer {
  background: var(--navy-deep);
  color: var(--white);
  padding-top: var(--s-5);
  padding-bottom: var(--s-4);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: var(--s-5);
  padding-bottom: var(--s-4);
}

.footer-brand .logo {
  color: var(--white);
  display: inline-block;
  margin-bottom: var(--s-2);
}

.footer-brand p {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}

.footer-nav h4,
.footer-contact h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-300);
  margin-bottom: var(--s-2);
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
}

.footer-nav a {
  color: rgba(255,255,255,0.78);
  font-size: 0.9375rem;
  transition: color 0.15s ease;
}

.footer-nav a:hover { color: var(--teal); }

.footer-contact p {
  color: rgba(255,255,255,0.78);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.footer-contact a {
  color: var(--teal);
  transition: opacity 0.15s ease;
}

.footer-contact a:hover { opacity: 0.8; }

.footer-contact .btn-text-link {
  display: inline-block;
  margin-top: var(--s-2);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-divider {
  border: none;
  border-top: 1px solid var(--gray-600);
  margin-bottom: var(--s-3);
}

.footer-fine-print {
  font-size: 0.8125rem;
  color: var(--gray-300);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--s-4);
  }
}

/* --- Hero Section (navy) -------------------------------------- */
.hero {
  background: var(--navy);
  color: var(--white);
  padding-block: var(--s-6);
  overflow: hidden;
  position: relative;
}

.hero .eyebrow { margin-bottom: var(--s-2); }
.hero h1 { color: var(--white); margin-bottom: var(--s-3); }
.hero .lead { color: rgba(255,255,255,0.88); margin-bottom: var(--s-4); }

.hero-trust {
  margin-top: var(--s-3);
  font-size: 0.85rem;
  color: var(--gray-300);
}

/* Single-column narrower heroes (services/about/contact) */
.hero--narrow {
  padding-block: var(--s-5);
}

.hero--narrow .container { max-width: 760px; }

/* --- Stat Blocks ---------------------------------------------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
  margin-top: var(--s-5);
}

.stat-block {
  background: var(--gray-100);
  border-top: 3px solid var(--teal);
  padding: var(--s-3) var(--s-3) var(--s-3);
  border-radius: 0 0 4px 4px;
}

.stat-number {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1;
  color: var(--navy);
  margin-bottom: var(--s-2);
}

.stat-block .caption {
  margin-top: var(--s-2);
  display: block;
}

/* Stat blocks on navy background */
.stat-grid--navy .stat-block {
  background: rgba(255,255,255,0.06);
  border-top-color: var(--teal);
}

.stat-grid--navy .stat-number { color: var(--teal); }
.stat-grid--navy p { color: rgba(255,255,255,0.88); }
.stat-grid--navy .caption { color: rgba(255,255,255,0.55); }

@media (max-width: 768px) {
  .stat-grid { grid-template-columns: 1fr; }
  .stat-grid--two { grid-template-columns: 1fr; }
}

/* Two-stat variant */
.stat-grid--two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
  margin-top: var(--s-4);
}

/* --- Cards ---------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-3);
  margin-top: var(--s-4);
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  padding: var(--s-4);
}

.card-icon {
  width: 28px;
  height: 28px;
  color: var(--teal);
  margin-bottom: var(--s-2);
  stroke-width: 1.75;
}

.card h3 { color: var(--navy); margin-bottom: var(--s-1); }
.card p { color: var(--gray-600); line-height: 1.6; }

.card .learn-more {
  display: inline-block;
  margin-top: var(--s-2);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--teal);
  border-bottom: 1px solid var(--teal);
  padding-bottom: 1px;
  transition: opacity 0.15s;
}

.card .learn-more:hover { opacity: 0.75; }

@media (max-width: 768px) {
  .card-grid { grid-template-columns: 1fr; }
}

/* --- Three-column value cards --------------------------------- */
.value-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
  margin-top: var(--s-4);
}

.value-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  padding: var(--s-3);
}

.value-card .card-icon {
  color: var(--teal);
  margin-bottom: var(--s-2);
}

.value-card h3 { color: var(--navy); margin-bottom: var(--s-1); }
.value-card p  { color: var(--gray-600); font-size: 0.9375rem; line-height: 1.6; }

@media (max-width: 768px) {
  .value-card-grid { grid-template-columns: 1fr; }
}

/* --- "What we look at" checklist items ----------------------- */
.audit-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
  margin-top: var(--s-4);
}

.audit-item {
  display: flex;
  gap: var(--s-2);
  align-items: flex-start;
}

.audit-item .card-icon {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--teal);
}

.audit-item h3 { color: var(--navy); margin-bottom: var(--s-1); font-size: 1.05rem; }
.audit-item p  { color: var(--gray-600); font-size: 0.9375rem; line-height: 1.5; }

@media (max-width: 768px) {
  .audit-items { grid-template-columns: 1fr; }
}

/* --- Deliverable callout card --------------------------------- */
.deliverable-card {
  background: var(--off-white);
  border-left: 4px solid var(--teal);
  padding: var(--s-3) var(--s-4);
  border-radius: 0 4px 4px 0;
  margin-top: var(--s-4);
}

.deliverable-card p {
  color: var(--gray-900);
  font-size: 1rem;
  line-height: 1.6;
}

/* --- Service section label pill ------------------------------- */
.service-label {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(22, 189, 202, 0.1);
  padding: 0.2rem 0.65rem;
  border-radius: 3px;
  margin-left: var(--s-2);
  vertical-align: middle;
}

/* --- Steps (How it works) ------------------------------------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
  margin-top: var(--s-4);
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 1.5rem;
  left: calc(33.33% - 1rem);
  right: calc(33.33% - 1rem);
  height: 2px;
  background: var(--teal);
  opacity: 0.35;
}

.step {
  position: relative;
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.125rem;
  border-radius: 50%;
  margin-bottom: var(--s-2);
  position: relative;
  z-index: 1;
  border: 3px solid var(--teal);
}

.step h3 { color: var(--navy); margin-bottom: var(--s-1); }
.step p  { color: var(--gray-600); font-size: 0.9375rem; line-height: 1.55; }

@media (max-width: 768px) {
  .steps-grid { grid-template-columns: 1fr; gap: var(--s-3); }
  .steps-grid::before { display: none; }
}

/* --- Invisible section (home 4.3) ----------------------------- */
.invisible-section .two-col { align-items: start; gap: var(--s-6); }

/* Dot grid */
.dot-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 10px;
  padding: var(--s-3);
}

.dot-grid .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gray-300);
}

.dot-grid .dot.active {
  background: var(--teal);
  box-shadow: 0 0 8px rgba(22, 189, 202, 0.5);
}

/* --- CTA Band (navy centered) --------------------------------- */
.cta-band {
  background: var(--navy);
  padding-block: var(--s-6);
  text-align: center;
}

.cta-band h2 { color: var(--white); margin-bottom: var(--s-2); }

.cta-band .lead {
  color: rgba(255,255,255,0.82);
  max-width: 52ch;
  margin-inline: auto;
  margin-bottom: var(--s-4);
}

/* --- Contact form -------------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--s-5);
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.contact-form label {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--gray-900);
  margin-bottom: var(--s-1);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--gray-900);
  background: var(--white);
  border: 1.5px solid var(--gray-300);
  border-radius: 4px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  appearance: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(22, 189, 202, 0.15);
}

.contact-form textarea { resize: vertical; min-height: 130px; }

.contact-form .field { display: flex; flex-direction: column; }

.form-fine-print {
  font-size: 0.8125rem;
  color: var(--gray-600);
  margin-top: var(--s-2);
  line-height: 1.5;
}

/* Book panel */
.book-panel {
  background: var(--off-white);
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  padding: var(--s-4);
  position: sticky;
  top: 6rem;
}

.book-panel h3 { color: var(--navy); margin-bottom: var(--s-2); }
.book-panel p  { color: var(--gray-600); font-size: 0.9375rem; margin-bottom: var(--s-3); }

.book-panel .btn { width: 100%; justify-content: center; margin-bottom: var(--s-3); }

.book-panel .contact-detail {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  font-size: 0.9375rem;
  color: var(--gray-600);
  margin-bottom: var(--s-1);
}

.book-panel .contact-detail a { color: var(--teal); }
.book-panel .contact-detail a:hover { text-decoration: underline; }

/* Thanks block */
.thanks-block {
  display: none;
  padding: var(--s-4);
  background: var(--off-white);
  border-left: 4px solid var(--teal);
  border-radius: 0 4px 4px 0;
}

.thanks-block.visible { display: block; }
.thanks-block h3 { color: var(--navy); margin-bottom: var(--s-2); }
.thanks-block p  { color: var(--gray-600); }

/* Hidden honeypot */
.hidden { display: none !important; }

@media (max-width: 768px) {
  .contact-layout { grid-template-columns: 1fr; }
  .book-panel { position: static; }
}

/* --- Constellation SVG (hero graphic) ------------------------- */
.hero-graphic {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-graphic svg {
  width: 100%;
  max-width: 420px;
  height: auto;
}

@media (max-width: 768px) {
  .hero-graphic { display: none; }
}

/* --- Section header utility ----------------------------------- */
.section-header {
  margin-bottom: var(--s-5);
}

.section-header .eyebrow { margin-bottom: var(--s-2); }
.section-header h2 { margin-bottom: var(--s-2); }
.section-header .lead { max-width: 58ch; }

/* --- Closing paragraph on navy ------------------------------ */
.navy-closing {
  max-width: var(--measure);
  margin-top: var(--s-4);
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: var(--s-3);
}

.navy-closing .lead { color: rgba(255,255,255,0.88); }

/* --- Hedge / disclaimer line --------------------------------- */
.disclaimer {
  font-size: 0.8125rem;
  color: var(--gray-600);
  margin-top: var(--s-3);
  line-height: 1.5;
  font-style: italic;
}

/* --- Focus-visible outline ---------------------------------- */
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --- Smooth section transitions ----------------------------- */
.section + .section { /* intentionally no extra margin — sections are self-contained */ }

/* --- Utility: visually hidden -------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
