/* =====================================================================
   AUGMENT.CSS — consolidated theme additions (2026-07 refactor).
   Loaded globally. Kept in a NEW file because the CDN edge-caches the
   pre-existing shared/homepage/blog CSS by path for 10 years and ignores
   the ?ver query, so appends to those files would not surface until a
   manual cache purge. New paths are fetched fresh from origin.
   Contains: service/virtual-page layout, nav Services dropdown,
   hero H1 lede, service-card links, article review line, references,
   related-insights module.
   ===================================================================== */

/* ===================================================
   SERVICE / VIRTUAL PAGE STYLES — drnadirbilici.com
   Builds on shared.css tokens + homepage.css components.
   Used by: /apoe-testing/, /brain-health-assessment/,
   /concierge-neurology/, /telehealth/ (+ state pages),
   /editorial-policy/
   =================================================== */

/* ---- HERO ---- */
.page-hero {
  padding: 11rem 0 4.5rem;
  background: linear-gradient(135deg, var(--navy-light) 0%, var(--navy-mid) 50%, var(--navy) 100%);
  border-bottom: 1px solid rgba(201, 169, 110, 0.1);
  position: relative;
  z-index: 2;
}

.page-hero-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 1.1;
  color: var(--white);
  max-width: 900px;
  margin: 1.4rem 0 0;
}
.page-hero-title em { font-style: italic; color: var(--gold-light); }

/* Extractable "answer block" — the first paragraph, visually distinct */
.page-answer-block {
  max-width: 720px;
  margin: 1.8rem 0 0;
  padding-left: 1.4rem;
  border-left: 2px solid var(--gold);
  color: var(--cream-dark);
  font-size: 1.12rem;
  line-height: 1.75;
}
.page-answer-block a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

.page-hero-actions { margin-top: 2.2rem; }

/* ---- SECTIONS ---- */
.page-section {
  padding: 4.5rem 0;
  background: var(--navy);
  position: relative;
  z-index: 2;
}
.page-section--alt {
  background: var(--navy-mid);
  border-top: 1px solid rgba(201, 169, 110, 0.08);
  border-bottom: 1px solid rgba(201, 169, 110, 0.08);
}

.page-prose {
  max-width: 760px;
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--cream-dark);
}
.page-prose .section-heading { margin-bottom: 1.2rem; }
.page-prose p { margin-bottom: 1.4rem; }
.page-prose p:last-child { margin-bottom: 0; }
.page-prose a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.page-prose a:hover { color: var(--gold-light); }

/* Reuse .section-heading from homepage.css; ensure spacing when standalone */
.page-section .section-heading {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 2rem;
}
.page-section .section-heading em { font-style: italic; color: var(--gold-light); }

/* ---- FEATURE GRID (assessment page) ---- */
.page-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.page-feature-card {
  border: 1px solid rgba(201, 169, 110, 0.18);
  background: rgba(201, 169, 110, 0.03);
  padding: 1.6rem 1.6rem 1.7rem;
}
.page-feature-title {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 0.6rem;
}
.page-feature-card p { color: var(--cream-dark); font-size: 0.95rem; line-height: 1.7; margin: 0; }
.page-feature-card a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

/* ---- STATE GRID (telehealth) ---- */
.page-state-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.page-state-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.3rem;
  border: 1px solid rgba(201, 169, 110, 0.25);
  color: var(--cream);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.page-state-tag--link {
  text-decoration: none;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.page-state-tag--link:hover {
  border-color: var(--gold);
  color: var(--navy);
  background: var(--gold);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 860px) {
  .page-feature-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .page-hero { padding: 9rem 0 3.5rem; }
}

/* ---- SERVICES DROPDOWN (primary nav) ---- */
.nav-links .nav-menu > li.nav-has-dropdown {
  display: flex; position: relative; align-items: center;
}
.nav-has-dropdown > a::after {
  content: '\2304'; margin-left: 0.35rem; font-size: 0.9em; opacity: 0.7;
}
.nav-dropdown {
  list-style: none; margin: 0; padding: 0.5rem 0;
  position: absolute; top: 100%; left: 50%;
  min-width: 240px;
  background: rgba(12,19,34,0.98);
  border: 1px solid rgba(201,169,110,0.15);
  opacity: 0; visibility: hidden;
  transform: translateX(-50%) translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  z-index: 600;
}
.nav-has-dropdown:hover .nav-dropdown,
.nav-has-dropdown:focus-within .nav-dropdown {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown li { display: block; }
.nav-dropdown a {
  display: block; padding: 0.6rem 1.3rem; white-space: nowrap;
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted);
}
.nav-dropdown a:hover { color: var(--cream); background: rgba(201,169,110,0.06); }

@media (max-width: 900px) {
  .nav-links .nav-menu > li.nav-has-dropdown { flex-direction: column; }
  .nav-has-dropdown > a::after { display: none; }
  .nav-dropdown {
    position: static; transform: none; opacity: 1; visibility: visible;
    background: transparent; border: none; padding: 0.5rem 0 0; text-align: center;
    min-width: 0;
  }
  .nav-dropdown a { font-size: 0.85rem; padding: 0.4rem; letter-spacing: 0.14em; }
}
}
/* ---- HERO H1 restructure (M2): keyword H1 + demoted emotional lede ---- */
.hero-title { white-space: normal; }
.hero-title { margin-bottom: 1.25rem; }
.hero-lede {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.4rem, 2.4vw, 2.2rem);
  line-height: 1.2;
  color: var(--cream);
  margin-bottom: 1.75rem;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.5s forwards;
}
.hero-lede em { font-style: italic; color: var(--gold-light); }

/* ---- SERVICE CARD LINK (to service pages) ---- */
.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  transition: color 0.3s, gap 0.3s;
}
.service-card-link:hover { color: var(--gold-light); gap: 0.7rem; }
}
/* ---- ARTICLE REVIEW / FRESHNESS LINE (M5) ---- */
/* NOTE: this file is edge-cached by path (see functions.php). The 2026-07
   move of the review line to the article footer restyles it via the inline
   overrides in functions.php, which win over the cached margin-top here. */
.article-review-line {
  margin-top: 1.1rem;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}
.article-review-line a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.article-review-line a:hover { color: var(--gold-light); }

/* ---- REFERENCES (H3) ---- */
.article-content h2#references {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(201, 169, 110, 0.18);
}
.article-content ol.article-references {
  margin: 1.2rem 0 0 1.4rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-muted);
}
.article-content ol.article-references li { margin-bottom: 0.9rem; }
.article-content ol.article-references em { font-style: italic; color: var(--cream-dark); }
.article-content ol.article-references a {
  color: var(--gold);
  word-break: break-word;
}

/* ---- RELATED INSIGHTS MODULE (H4) ---- */
.related-insights {
  padding: 4.5rem 0 1rem;
  background: var(--navy);
}
.related-insights-heading {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--white);
  margin: 0.6rem 0 2.5rem;
}
.related-insights-heading em { font-style: italic; color: var(--gold-light); }
.related-insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
@media (max-width: 860px) {
  .related-insights-grid { grid-template-columns: 1fr; }
}
