/* Feldstein Family Law — Interior Page Styles
   Default page layout: dark Variant-1 hero, sticky CTA sidebar, prose content.
   Loaded for any page using page-templates/interior.php (or auto-routed pages
   without an explicit template — Privacy / Terms / Disclaimer / About). */

/* =========================================
   GLOBAL HERO — Variant 1 (always dark)
   Copy-only hero. The dark gradient + radial accent stay the same in both
   themes — this is the "focused dark hero" treatment from the design system.
   ========================================= */
.global-hero {
  padding: 140px 48px;
  background: linear-gradient(135deg, var(--navy) 0%, #1a1230 50%, var(--wine-deep) 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
  border-bottom: 1px solid #1e3549;
}
.global-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(137,46,83,0.22), transparent 65%);
  pointer-events: none;
}
.global-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
}
.global-hero .overline {
  color: rgba(255,255,255,0.55);
  margin-bottom: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* Breadcrumbs — same visual language as the overline, with a linked Home crumb. */
.global-hero .breadcrumbs {
  margin-bottom: 24px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.global-hero .breadcrumbs a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color .2s;
}
.global-hero .breadcrumbs a:hover { color: #fff; }
.global-hero .breadcrumbs .crumb-sep { color: rgba(255,255,255,0.35); }
.global-hero .breadcrumbs .crumb-current { color: #fff; }
.global-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 500;
  line-height: 1.1;
  color: #fff;
  letter-spacing: -0.3px;
  margin: 0 0 24px;
}
.global-hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.8;
  max-width: 620px;
  margin: 0 auto 36px;
}
.global-hero .btn-wine {
  display: inline-block;
  background: var(--wine);
  color: #fff;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 18px 44px;
  border-radius: 2px;
  text-decoration: none;
  transition: background .3s, transform .3s, box-shadow .3s;
}
.global-hero .btn-wine:hover {
  background: var(--wine-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(137,46,83,0.25);
}

/* =========================================
   INTERIOR BODY — two-column with sticky sidebar
   ========================================= */
.interior-page {
  padding: 96px 24px;
  background: var(--cream);
}
.interior-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 72px;
  align-items: start;
}

/* =========================================
   STICKY CTA SIDEBAR
   ========================================= */
.interior-sidebar {
  position: sticky;
  top: 110px;
  align-self: start;
}
.interior-sidebar-card {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--wine);
  border-radius: 2px;
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
}
.interior-sidebar-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--wine);
  margin: 0 0 12px;
}
.interior-sidebar-heading {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.2px;
  margin: 0 0 16px;
}
.interior-sidebar-body {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 24px;
}
.interior-sidebar-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--wine);
  text-decoration: none;
  margin-bottom: 20px;
  transition: color .2s;
}
.interior-sidebar-phone:hover { color: var(--wine-deep); }
.interior-sidebar-phone svg { flex-shrink: 0; }
.interior-sidebar-cta.btn-wine {
  display: block;
  text-align: center;
  background: var(--wine);
  color: #fff;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 16px 24px;
  border-radius: 2px;
  text-decoration: none;
  transition: background .3s, transform .3s, box-shadow .3s;
}
.interior-sidebar-cta.btn-wine:hover {
  background: var(--wine-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(137,46,83,0.25);
}

/* =========================================
   PAGE CONTENT — wp_editor prose
   ========================================= */
.interior-content {
  max-width: 760px;
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--ink-soft);
}
.interior-content > * + * { margin-top: 1.2em; }
.interior-content h1 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.3px;
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: 0.6em;
}
.interior-content h2,
.interior-content h3,
.interior-content h4 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.2px;
  line-height: 1.25;
}
.interior-content h2 {
  font-size: clamp(1.65rem, 2.6vw, 2.1rem);
  margin-top: 2em;
  margin-bottom: 0.6em;
}
.interior-content h3 {
  font-size: clamp(1.3rem, 2vw, 1.5rem);
  margin-top: 1.6em;
  margin-bottom: 0.4em;
}
.interior-content h4 {
  font-size: 1.15rem;
  margin-top: 1.4em;
  margin-bottom: 0.3em;
}
.interior-content p { margin: 0; }
.interior-content a {
  color: var(--wine);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .2s;
}
.interior-content a:hover { color: var(--wine-deep); }
.interior-content ul,
.interior-content ol {
  padding-left: 1.4em;
  margin: 0;
}
.interior-content li + li { margin-top: 0.3em; }
.interior-content blockquote {
  border-left: 3px solid var(--wine);
  padding: 4px 0 4px 22px;
  font-style: italic;
  color: var(--ink);
  margin: 1.6em 0;
}
.interior-content strong { color: var(--ink); font-weight: 600; }
.interior-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.4em 0;
}
.interior-content img {
  max-width: 100%;
  height: auto;
  border-radius: 2px;
  margin: 1em 0;
}

/* =========================================
   NAV CHROME INVERSION OVER DARK HERO
   On interior pages, the hero is always Variant-1 dark. In light mode the
   nav defaults to a dark logo and dark text — invisible against the navy
   gradient until the user scrolls past 60px and the cream-pinned backdrop
   appears. Body class .interior-dark-hero (set in functions.php) lets us
   invert the chrome until pinned: show the dark-on-dark logo variant
   (white wordmark), make nav text white. Once .nav.pinned activates,
   normal chrome resumes.

   The :not(.menu-open) guard on body is critical: when the mobile burger
   opens the full-screen menu, body gains .menu-open and the menu paints
   on a cream/white background. Without the guard, the white-text override
   would bleed into the open menu and make every link invisible — same
   failure mode as the earlier desktop submenu fix.
   ========================================= */
body.interior-dark-hero:not(.menu-open) .nav:not(.pinned) .logo-light { opacity: 0; }
body.interior-dark-hero:not(.menu-open) .nav:not(.pinned) .logo-dark { opacity: 1; }
body.interior-dark-hero:not(.menu-open) .nav:not(.pinned) .primary-menu > li > a,
body.interior-dark-hero:not(.menu-open) .nav:not(.pinned) .nav-phone { color: #fff; }
body.interior-dark-hero:not(.menu-open) .nav:not(.pinned) .nav-phone-icon { color: #fff; }
body.interior-dark-hero:not(.menu-open) .nav:not(.pinned) .burger,
body.interior-dark-hero:not(.menu-open) .nav:not(.pinned) .burger::before,
body.interior-dark-hero:not(.menu-open) .nav:not(.pinned) .burger::after { background: #fff; }

/* =========================================
   THEME CROSSFADE
   ========================================= */
.global-hero,
.interior-page {
  transition: background-color .3s var(--ease), color .3s var(--ease);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
  .interior-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    max-width: 760px;
  }
  .interior-sidebar {
    position: static;
    top: auto;
  }
}
@media (max-width: 768px) {
  .global-hero { padding: 100px 24px; }
  .global-hero h1 { margin-bottom: 18px; }
  .global-hero-subtitle { margin-bottom: 28px; }
  .global-hero .btn-wine { padding: 16px 32px; }
  .interior-page { padding: 64px 24px; }
  .interior-sidebar-card { padding: 28px 24px; }
}

/* =========================================
   DARK MODE
   Hero stays dark Variant 1 in both modes (deliberate — copy-only treatment).
   Body content adapts to the theme.
   ========================================= */
[data-theme="dark"] .interior-page { background: #0a1520; }
[data-theme="dark"] .interior-sidebar-card {
  background: #11203a;
  border-color: #1e3549;
  border-top-color: var(--wine);
}
[data-theme="dark"] .interior-sidebar-heading { color: #e8f0f5; }
[data-theme="dark"] .interior-sidebar-body { color: #b8cbd6; }
[data-theme="dark"] .interior-sidebar-phone { color: #f5b7c8; }
[data-theme="dark"] .interior-sidebar-phone:hover { color: #fff; }

[data-theme="dark"] .interior-content { color: #b8cbd6; }
[data-theme="dark"] .interior-content h1,
[data-theme="dark"] .interior-content h2,
[data-theme="dark"] .interior-content h3,
[data-theme="dark"] .interior-content h4 { color: #e8f0f5; }
[data-theme="dark"] .interior-content strong { color: #e8f0f5; }
[data-theme="dark"] .interior-content a { color: #f5b7c8; }
[data-theme="dark"] .interior-content a:hover { color: #fff; }
[data-theme="dark"] .interior-content blockquote { color: #e8f0f5; border-left-color: var(--wine); }
[data-theme="dark"] .interior-content hr { border-top-color: #1e3549; }
