/* ══════════════════════════════════════════════════════════════
   Neurosurgery Advisors — Shared Stylesheet
   ══════════════════════════════════════════════════════════════ */

:root {
  --navy-950: #0A1929;
  --navy-900: #0D2137;
  --navy-800: #1A4F7A;
  --blue-600: #2B7BB9;
  --blue-500: #1F6096;
  --sky-300: #7EC8E3;
  --sky-100: #B8D4EC;
  --ink: #1B2D3E;
  --body-text: #3A4F61;
  --muted: #5C6E7A;
  --line: #D8E8F4;
  --surface: #F0F7FD;
  --card-line: #D0E4F0;
  --white: #ffffff;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ── Nav ────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

.nav-logo {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
}

.nav-logo span { color: var(--blue-600); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--body-text);
  transition: color 0.15s;
  white-space: nowrap;
}

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

.nav-cta {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue-600);
  border: 1.5px solid var(--blue-600);
  padding: 7px 20px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.nav-cta:hover { background: var(--blue-600); color: var(--white); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* ── Hero (large, home page) ───────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 60%, var(--blue-600) 100%);
  color: var(--white);
  padding: 96px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before,
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.hero-inner, .page-hero-inner { position: relative; }

.hero-eyebrow, .section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sky-300);
  margin-bottom: 20px;
}

.section-eyebrow { color: var(--blue-600); margin-bottom: 10px; font-size: 0.72rem; }

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 700px;
  margin: 0 auto 22px;
}

.hero-sub {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--sky-100);
  max-width: 580px;
  margin: 0 auto 38px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Page hero (small, inner pages) ────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 60%, var(--blue-600) 100%);
  color: var(--white);
  padding: 64px 0 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.page-hero p {
  font-size: 1.05rem;
  color: var(--sky-100);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--blue-600);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 7px;
  border: 2px solid transparent;
  transition: background 0.2s, transform 0.15s;
  cursor: pointer;
}

.btn-primary:hover { background: var(--blue-500); transform: translateY(-1px); }

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

.hero .btn-primary:hover, .btn-primary.on-dark:hover { background: #E8F3FB; }

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 13px 30px;
  border-radius: 7px;
  border: 1.5px solid rgba(255,255,255,0.5);
  transition: background 0.2s;
}

.btn-secondary:hover { background: rgba(255,255,255,0.12); }

/* ── Section shared ─────────────────────────────────────── */
section { padding: 88px 0; }

.section-header { text-align: center; margin-bottom: 52px; }

.section-header h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 14px;
}

.section-header p {
  font-size: 1rem;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto;
}

.bg-surface { background: var(--surface); }
.bg-white { background: var(--white); }

/* ── Cards / Services ───────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cards.two-col { grid-template-columns: repeat(2, 1fr); }
.cards.four-col { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--card-line);
  border-radius: 12px;
  padding: 36px 28px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: 0 8px 28px rgba(43, 123, 185, 0.12);
  transform: translateY(-3px);
}

.card-icon {
  width: 52px;
  height: 52px;
  background: #E8F3FB;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--blue-600);
}

.card-icon svg { width: 26px; height: 26px; }

.card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.card p { font-size: 0.93rem; color: var(--muted); line-height: 1.65; }

.card ul { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }

.card ul li {
  font-size: 0.88rem;
  color: var(--muted);
  padding-left: 18px;
  position: relative;
}

.card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-600);
}

.card-link {
  display: inline-block;
  margin-top: 18px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blue-600);
}

.card-link::after { content: ' →'; }

/* ── Stats / credibility strip ──────────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat { text-align: center; }

.stat .num {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--blue-600);
  letter-spacing: -0.02em;
}

.stat .label {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 6px;
}

/* ── About / bio ────────────────────────────────────────── */
.about-inner { max-width: 760px; margin: 0 auto; }
.about .section-header { margin-bottom: 0; text-align: left; }

.about-body { margin-top: 28px; display: flex; flex-direction: column; gap: 16px; }
.about-body p { font-size: 1rem; color: var(--body-text); line-height: 1.75; }

.about-highlights {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.highlight {
  background: var(--surface);
  border-left: 3px solid var(--blue-600);
  padding: 16px 18px;
  border-radius: 0 8px 8px 0;
}

.highlight strong { display: block; font-size: 0.9rem; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.highlight span { font-size: 0.85rem; color: var(--muted); }

/* ── Timeline (training / experience) ──────────────────── */
.timeline { max-width: 760px; margin: 48px auto 0; position: relative; }

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--card-line);
}

.timeline-item {
  position: relative;
  padding-left: 34px;
  margin-bottom: 32px;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--blue-600);
}

.timeline-item .year {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 4px;
}

.timeline-item h3 { font-size: 1.02rem; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.timeline-item p { font-size: 0.92rem; color: var(--muted); }

/* ── Process steps ──────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step { position: relative; padding-top: 8px; }

.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue-600);
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.step h3 { font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.step p { font-size: 0.88rem; color: var(--muted); line-height: 1.6; }

/* ── Badges / tags ──────────────────────────────────────── */
.badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue-600);
  background: #E8F3FB;
  padding: 5px 12px;
  border-radius: 999px;
}

.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* ── FAQ accordion ──────────────────────────────────────── */
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  border: 1px solid var(--card-line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  text-align: left;
  padding: 20px 24px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
}

.faq-question .icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--blue-600);
  transition: transform 0.2s;
}

.faq-item.open .faq-question .icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-answer-inner { padding: 0 24px 20px; font-size: 0.93rem; color: var(--muted); line-height: 1.7; }

.faq-item.open .faq-answer { max-height: 400px; }

/* ── Form ───────────────────────────────────────────────── */
.form-card {
  background: var(--white);
  border: 1px solid var(--card-line);
  border-radius: 14px;
  padding: 40px;
  max-width: 620px;
  margin: 0 auto;
}

.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.form-row.two-col { flex-direction: row; gap: 16px; }
.form-row.two-col > div { flex: 1; display: flex; flex-direction: column; gap: 6px; }

.form-row label { font-size: 0.85rem; font-weight: 600; color: var(--ink); }

.form-row input,
.form-row select,
.form-row textarea {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 11px 14px;
  border: 1.5px solid var(--card-line);
  border-radius: 7px;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.15s;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--blue-600);
}

.form-row textarea { resize: vertical; min-height: 110px; }

.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 4px; }

.form-submit {
  width: 100%;
  border: none;
  font-family: inherit;
}

.form-status {
  margin-top: 16px;
  font-size: 0.9rem;
  text-align: center;
  display: none;
}

.form-status.success { color: #1a7a4c; display: block; }
.form-status.error { color: #b23434; display: block; }

/* ── Contact info block ─────────────────────────────────── */
.contact-info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 820px;
  margin: 40px auto 0;
}

.contact-info-card {
  background: var(--surface);
  border-radius: 10px;
  padding: 22px;
  text-align: center;
}

.contact-info-card .card-icon { margin: 0 auto 14px; }
.contact-info-card strong { display: block; font-size: 0.92rem; color: var(--ink); margin-bottom: 4px; }
.contact-info-card span, .contact-info-card a { font-size: 0.88rem; color: var(--muted); }
.contact-info-card a:hover { color: var(--blue-600); }

/* ── Contact / dark CTA ─────────────────────────────────── */
.contact {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 60%, var(--blue-600) 100%);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.contact-inner { position: relative; }

.contact h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.contact p {
  font-size: 1rem;
  color: var(--sky-100);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.email-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.3);
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 7px;
  transition: background 0.2s;
}

.email-link:hover { background: rgba(255,255,255,0.22); }
.email-link svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ── Breadcrumb note (placeholder callout) ──────────────── */
.placeholder-note {
  background: #FFF7E6;
  border: 1px solid #F2D98A;
  color: #7A5A00;
  font-size: 0.85rem;
  padding: 12px 18px;
  border-radius: 8px;
  max-width: 760px;
  margin: 0 auto 32px;
  text-align: center;
}

/* ── Footer ─────────────────────────────────────────────── */
footer { background: var(--navy-950); padding: 40px 0 28px; }

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 28px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand p { font-size: 0.85rem; color: #5A7A94; margin-top: 10px; line-height: 1.6; max-width: 320px; }
.footer-col h4 { font-size: 0.82rem; font-weight: 700; color: #B8D4EC; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.85rem; color: #5A7A94; transition: color 0.15s; }
.footer-col a:hover { color: #B8D4EC; }

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-inner p { font-size: 0.82rem; color: #5A7A94; }
.footer-inner a { font-size: 0.82rem; color: #5A7A94; transition: color 0.15s; }
.footer-inner a:hover { color: #B8D4EC; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .cards.four-col { grid-template-columns: repeat(2, 1fr); }

  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 16px 28px 20px;
    gap: 16px;
  }

  .stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 768px) {
  section { padding: 64px 0; }
  .hero { padding: 72px 0 64px; }

  .cards, .cards.two-col, .cards.four-col { grid-template-columns: 1fr; gap: 16px; }
  .about-highlights { grid-template-columns: 1fr; gap: 12px; }
  .about .section-header { text-align: center; }
  .contact-info-cards { grid-template-columns: 1fr; }
  .form-row.two-col { flex-direction: column; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .steps { grid-template-columns: 1fr; }
  .footer-inner { justify-content: center; text-align: center; }
}

@media (max-width: 560px) {
  .nav-logo { font-size: 0.95rem; }
}
