/* ============================================
   INTERIOR PAGES — Advisor · Consultant · Guide
   Shared shell for room detail pages
   ============================================ */

.interior-body {
  background: #f5eedd;
  color: #1a1815;
  font-family: "EB Garamond", "Iowan Old Style", Georgia, serif;
  overflow-x: hidden;
}

/* ---- HEADER ---- */
.interior-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(1rem, 2vw, 1.5rem) clamp(1.5rem, 3vw, 3rem);
  background: rgba(245, 238, 221, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26, 24, 21, 0.06);
}

.interior-header__brand {
  text-decoration: none;
  color: #1a1815;
}

.interior-header__name {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.interior-header__nav {
  display: flex;
  gap: clamp(1.25rem, 2vw, 2rem);
  align-items: center;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.interior-header__nav a {
  color: rgba(26, 24, 21, 0.72);
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: baseline;
  gap: 0.35em;
}

.interior-header__nav a:hover {
  color: #1a1815;
}

.interior-header__nav .nav-num {
  font-size: 0.62rem;
  color: rgba(26, 24, 21, 0.4);
}

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

/* ---- HERO ---- */
.interior-hero {
  padding: clamp(5rem, 9vw, 8rem) clamp(1.5rem, 6vw, 6rem) clamp(4rem, 7vw, 6rem);
  max-width: 76rem;
  margin: 0 auto;
}

.interior-hero__eyebrow {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(26, 24, 21, 0.55);
  margin: 0 0 clamp(2rem, 3.5vw, 3rem) 0;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.interior-hero__eyebrow .diamond {
  color: #D9A653;
  font-size: 0.85rem;
}

.interior-hero__positioning {
  font-family: "EB Garamond", Georgia, serif;
  font-style: italic;
  font-size: clamp(1.15rem, 1.6vw, 1.5rem);
  line-height: 1.5;
  color: rgba(26, 24, 21, 0.78);
  margin: 0 0 clamp(3rem, 5vw, 4rem) 0;
  max-width: 44rem;
  padding-left: 1.25rem;
  position: relative;
}

.interior-hero__positioning .mark {
  position: absolute;
  left: 0;
  top: 0;
  color: #D9A653;
  font-weight: 600;
}

.interior-hero__positioning em {
  color: #D9A653;
  font-weight: 500;
}

.interior-hero__display {
  font-family: "EB Garamond", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: #1a1815;
  margin: 0 0 clamp(2rem, 3.5vw, 3rem) 0;
  max-width: 34rem;
}

.interior-hero__display .ital {
  font-style: italic;
  color: #D9A653;
  font-weight: 500;
}

.interior-hero__byline {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(26, 24, 21, 0.6);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.interior-hero__bridge {
  font-family: "EB Garamond", serif;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  color: rgba(26, 24, 21, 0.68);
  margin: 0;
  max-width: 30em;
}

.interior-hero__bridge em {
  font-style: italic;
  color: #b8862f;
}

/* ---- SECTION EYEBROW ---- */
.section-eyebrow {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(26, 24, 21, 0.55);
  margin: 0 0 clamp(2rem, 3.5vw, 3rem) 0;
}

.section-eyebrow .tick {
  color: #D9A653;
  font-weight: 600;
}

/* ---- SECTION TITLE ---- */
.section-title {
  font-family: "EB Garamond", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: #1a1815;
  margin: 0 0 clamp(3rem, 5vw, 4rem) 0;
}

.section-title .ital {
  font-style: italic;
  color: #D9A653;
  font-weight: 500;
}

/* ---- MANIFESTO SECTION (interior) ---- */
.interior-manifesto {
  background: #efe6d0;
  padding: clamp(5rem, 8vw, 7rem) clamp(1.5rem, 6vw, 6rem);
  border-top: 1px solid rgba(26, 24, 21, 0.08);
  border-bottom: 1px solid rgba(26, 24, 21, 0.08);
}

.interior-manifesto__inner {
  max-width: 46rem;
  margin: 0 auto;
}

.interior-manifesto__body {
  font-family: "EB Garamond", Georgia, serif;
  font-size: clamp(1.1rem, 1.35vw, 1.3rem);
  line-height: 1.68;
  color: rgba(26, 24, 21, 0.88);
}

.interior-manifesto__body p {
  margin: 0 0 clamp(1.4rem, 2.2vw, 1.9rem) 0;
}

.interior-manifesto__body p:last-child {
  margin: 0;
}

.interior-manifesto__maxim {
  padding-left: 1.15em;
  border-left: 2px solid rgba(217, 166, 83, 0.55);
  margin-top: 0.4em;
  margin-bottom: 0.4em;
}

.interior-manifesto__maxim em {
  color: #D9A653;
  font-style: italic;
  font-weight: 500;
}

[data-theme="dark"] .interior-manifesto__maxim {
  border-left-color: rgba(217, 166, 83, 0.5);
}

[data-theme="dark"] .interior-manifesto__maxim em {
  color: #E8B968;
}

.interior-manifesto__body em {
  font-style: italic;
  color: #D9A653;
  font-weight: 500;
}

.interior-manifesto__opener {
  font-size: clamp(1.35rem, 1.9vw, 1.75rem) !important;
  line-height: 1.4 !important;
  font-style: italic;
  color: rgba(26, 24, 21, 0.95) !important;
  margin-bottom: clamp(2rem, 3vw, 2.5rem) !important;
}

/* ---- OFFERING GRID (2x2) ---- */
.interior-offering {
  padding: clamp(5rem, 8vw, 7rem) clamp(1.5rem, 6vw, 6rem);
}

.interior-offering__inner {
  max-width: 68rem;
  margin: 0 auto;
}

.offerings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2.5rem, 4vw, 3.5rem);
}

@media (max-width: 720px) {
  .offerings-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.offering {
  border-top: 1px solid rgba(26, 24, 21, 0.15);
  padding-top: 1.5rem;
}

.offering__number {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #D9A653;
  font-weight: 600;
  margin: 0 0 1rem 0;
}

.offering__title {
  font-family: "EB Garamond", Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.5rem, 2vw, 1.85rem);
  line-height: 1.15;
  color: #1a1815;
  margin: 0 0 1.25rem 0;
}

.offering__title .ital {
  color: #D9A653;
}

.offering__body {
  font-family: "EB Garamond", Georgia, serif;
  font-size: clamp(1.02rem, 1.1vw, 1.15rem);
  line-height: 1.6;
  color: rgba(26, 24, 21, 0.78);
  margin: 0;
}

/* ---- BODY SECTION (for "Best For" list) ---- */
.interior-body-section {
  background: #f5eedd;
  padding: clamp(5rem, 8vw, 7rem) clamp(1.5rem, 6vw, 6rem);
  border-top: 1px solid rgba(26, 24, 21, 0.08);
}

.interior-body-section__inner {
  max-width: 46rem;
  margin: 0 auto;
}

.interior-body-section__body {
  font-family: "EB Garamond", Georgia, serif;
  font-size: clamp(1.1rem, 1.35vw, 1.3rem);
  line-height: 1.68;
  color: rgba(26, 24, 21, 0.88);
}

.interior-body-section__body p {
  margin: 0 0 clamp(1.4rem, 2.2vw, 1.9rem) 0;
  padding-left: 1.25rem;
  position: relative;
}

.interior-body-section__body p:last-child {
  margin: 0;
}

.interior-body-section__body p::before {
  content: "◇";
  position: absolute;
  left: 0;
  top: 0.35em;
  color: #D9A653;
  font-size: 0.65em;
}

.interior-body-section__body em {
  font-style: italic;
  color: #D9A653;
  font-weight: 500;
}

/* ---- CTA ---- */
.interior-cta {
  background: #1a1815;
  padding: clamp(5rem, 8vw, 7rem) clamp(1.5rem, 4vw, 3rem);
}

.interior-cta__inner {
  max-width: 44rem;
  margin: 0 auto;
  text-align: center;
}

.interior-cta__whisper {
  font-family: "EB Garamond", Georgia, serif;
  font-style: italic;
  font-size: clamp(1.2rem, 1.6vw, 1.5rem);
  line-height: 1.5;
  color: rgba(250, 245, 232, 0.85);
  margin: 0 0 clamp(2rem, 3vw, 2.5rem) 0;
}

.interior-cta__whisper em {
  font-style: italic;
  color: #d9a653;
}

.interior-cta__button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 2rem;
  background: transparent;
  border: 1px solid rgba(217, 166, 83, 0.5);
  color: #D9A653;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, gap 0.3s ease;
}

.interior-cta__button:hover {
  background: rgba(217, 166, 83, 0.12);
  border-color: #E8B968;
  color: #E8B968;
  gap: 1rem;
}

/* ---- FOOTER ---- */
.interior-footer {
  background: #1a1815;
  color: rgba(250, 245, 232, 0.7);
  padding: clamp(4rem, 6vw, 5rem) clamp(1.5rem, 4vw, 3rem) clamp(3rem, 4vw, 3.5rem);
  border-top: 1px solid rgba(217, 166, 83, 0.12);
}

.interior-footer__inner {
  max-width: 66rem;
  margin: 0 auto;
  text-align: center;
}

.interior-footer__meta {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(250, 245, 232, 0.55);
  margin: 0 0 clamp(2rem, 3vw, 2.5rem) 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.interior-footer__nav {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 2vw, 1.75rem);
  margin-bottom: clamp(2rem, 3vw, 2.5rem);
  flex-wrap: wrap;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.interior-footer__nav a {
  color: rgba(250, 245, 232, 0.72);
  text-decoration: none;
  transition: color 0.3s ease;
}

.interior-footer__nav a:hover {
  color: #E8B968;
}

.interior-footer__copyright {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250, 245, 232, 0.4);
  margin: 0;
}

/* ---- Mobile hamburger button (shared) ---- */
.mobile-nav-toggle {
  display: none;
}

/* Theme toggle inside interior header — Safari-safe */
.interior-header .theme-toggle,
.interior-header button.theme-toggle {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  margin: 0;
  border-radius: 999px;
  border: 1px solid rgba(26, 24, 21, 0.22);
  background: rgba(255, 255, 255, 0.4);
  color: rgba(26, 24, 21, 0.72);
  cursor: pointer;
  flex-shrink: 0;
  flex-grow: 0;
  position: relative;
  z-index: 45;
  -webkit-appearance: none;
  appearance: none;
  font: inherit;
  line-height: 1;
  visibility: visible !important;
  opacity: 1 !important;
}

.interior-header .theme-toggle svg {
  width: 18px;
  height: 18px;
  display: block;
}

.interior-header .theme-toggle:hover {
  color: #1a1815;
  border-color: rgba(26, 24, 21, 0.4);
}

[data-theme="dark"] .interior-header .theme-toggle {
  border-color: rgba(237, 227, 205, 0.24) !important;
  color: rgba(237, 227, 205, 0.72) !important;
}

[data-theme="dark"] .interior-header .theme-toggle:hover {
  color: #E8B968 !important;
  border-color: rgba(217, 166, 83, 0.4) !important;
}

@media (max-width: 768px) {
  /* Push theme toggle to fixed position, left of the hamburger */
  .interior-header .theme-toggle {
    position: fixed !important;
    top: 1.1rem !important;
    right: 4.5rem !important;
    z-index: 100 !important;
    background: rgba(250, 245, 232, 0.9);
    backdrop-filter: blur(8px);
  }
  [data-theme="dark"] .interior-header .theme-toggle {
    background: rgba(13, 12, 9, 0.9) !important;
  }
}

@media (max-width: 768px) {
  .mobile-nav-toggle {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: rgba(250, 245, 232, 0.9);
    border: 1px solid rgba(26, 24, 21, 0.12);
    border-radius: 999px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    position: fixed !important;
    top: 1.1rem !important;
    right: 1.1rem !important;
    left: auto !important;
    z-index: 100 !important;
  }

  .mobile-nav-toggle span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: #1a1815;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
}

/* ============================================
   MOBILE NAV OVERLAY
   ============================================ */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(26, 24, 21, 0.98);
  backdrop-filter: blur(20px);
  padding: 6rem 2rem 3rem;
  overflow-y: auto;
}

.mobile-nav-overlay[data-open="true"],
.mobile-nav-overlay[aria-hidden="false"] {
  display: block;
}

.mobile-nav-inner {
  max-width: 32rem;
  margin: 0 auto;
  position: relative;
}

.mobile-nav-close {
  position: absolute;
  top: -3rem;
  right: 0;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid rgba(217, 166, 83, 0.35);
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-close span {
  position: absolute;
  width: 18px;
  height: 1.5px;
  background: #D9A653;
  transform-origin: center;
}

.mobile-nav-close span:first-child { transform: rotate(45deg); }
.mobile-nav-close span:last-child { transform: rotate(-45deg); }

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  font-family: "EB Garamond", Georgia, serif;
}

.mobile-nav-links a {
  color: #faf5e8;
  text-decoration: none;
  font-size: 1.75rem;
  line-height: 1.2;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(217, 166, 83, 0.12);
  padding-bottom: 1rem;
}

.mobile-nav-links .nav-num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  color: #D9A653;
  font-weight: 600;
}

/* ============================================================
   DARK MODE — Guide, Consultant, Advisor
   Inverts surface + text colors while preserving gold accents.
   ============================================================ */

[data-theme="dark"] .interior-body,
[data-theme="dark"] body.interior-body {
  background: #0d0c09;
  color: #ede3cd;
}

[data-theme="dark"] .site-header {
  background: rgba(13, 12, 9, 0.92) !important;
  border-bottom-color: rgba(255, 255, 255, 0.06) !important;
}

[data-theme="dark"] .site-header a,
[data-theme="dark"] .site-header__brand-name,
[data-theme="dark"] .site-header__brand {
  color: #ede3cd;
}

[data-theme="dark"] .site-header a:hover {
  color: #E8B968;
}

/* Interior hero */
[data-theme="dark"] .interior-hero {
  background: #0d0c09;
}

[data-theme="dark"] .interior-hero__eyebrow,
[data-theme="dark"] .interior-hero__meta,
[data-theme="dark"] .section-eyebrow {
  color: rgba(237, 227, 205, 0.55);
}

[data-theme="dark"] .interior-hero__display,
[data-theme="dark"] .interior-hero h1 {
  color: #ede3cd;
}

[data-theme="dark"] .interior-hero__positioning {
  color: rgba(237, 227, 205, 0.82);
}

[data-theme="dark"] .interior-hero__byline {
  color: rgba(237, 227, 205, 0.65);
}

[data-theme="dark"] .interior-hero__bridge {
  color: rgba(237, 227, 205, 0.7);
}

[data-theme="dark"] .interior-hero__bridge em {
  color: #d9a653;
}

[data-theme="dark"] .interior-hero__tags {
  color: rgba(237, 227, 205, 0.55);
}

/* Manifesto section ("01 The Case", "01 The Practice", etc.) */
[data-theme="dark"] .interior-manifesto {
  background: #14120d;
  border-top-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .interior-manifesto__body p,
[data-theme="dark"] .interior-manifesto__opener {
  color: #ede3cd !important;
}

/* Offering section ("02 The Work") */
[data-theme="dark"] .interior-offering {
  background: #0d0c09;
  border-top-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .interior-offering h2,
[data-theme="dark"] .offering__title,
[data-theme="dark"] .offering__label {
  color: #ede3cd;
}

[data-theme="dark"] .offering__body,
[data-theme="dark"] .interior-offering p {
  color: rgba(237, 227, 205, 0.85);
}

/* Body / narrative section */
[data-theme="dark"] .interior-body-section {
  background: #14120d;
  border-top-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .interior-body-section__body p,
[data-theme="dark"] .interior-body-section p {
  color: rgba(237, 227, 205, 0.85);
}

[data-theme="dark"] .interior-body-section h2,
[data-theme="dark"] .interior-body-section h3 {
  color: #ede3cd;
}

/* CTA section — already dark in light mode, keep it consistent */
[data-theme="dark"] .interior-cta {
  background: #050403;
}

/* Work grid on Consultant page */
[data-theme="dark"] .work-grid-section,
[data-theme="dark"] .work-grid {
  background: #0d0c09;
}

[data-theme="dark"] .work-grid h2,
[data-theme="dark"] .work-grid p {
  color: #ede3cd;
}

/* Gather section on Guide page */
[data-theme="dark"] .interior-gather {
  background: #14120d;
  border-top-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .interior-gather h2,
[data-theme="dark"] .interior-gather h3 {
  color: #ede3cd;
}

[data-theme="dark"] .interior-gather p {
  color: rgba(237, 227, 205, 0.85);
}

/* Universal fallback: any prose within interior-body */
[data-theme="dark"] .interior-body p,
[data-theme="dark"] .interior-body li {
  color: rgba(237, 227, 205, 0.85);
}

[data-theme="dark"] .interior-body h1,
[data-theme="dark"] .interior-body h2,
[data-theme="dark"] .interior-body h3,
[data-theme="dark"] .interior-body h4 {
  color: #ede3cd;
}

/* Eyebrows / small caps */
[data-theme="dark"] .eyebrow,
[data-theme="dark"] .section-eyebrow,
[data-theme="dark"] .interior-hero__eyebrow,
[data-theme="dark"] .work__eyebrow,
[data-theme="dark"] .offering__eyebrow {
  color: rgba(237, 227, 205, 0.55);
}

/* Tick / room marker */
[data-theme="dark"] .tick {
  color: #E8B968;
}

/* Dividers */
[data-theme="dark"] hr,
[data-theme="dark"] .section--paper + .section,
[data-theme="dark"] .section + .section {
  border-color: rgba(255, 255, 255, 0.08);
}

/* Footer */
[data-theme="dark"] .site-footer {
  background: #0d0c09;
  color: rgba(237, 227, 205, 0.55);
  border-top-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .site-footer a {
  color: rgba(237, 227, 205, 0.72);
}

[data-theme="dark"] .site-footer a:hover {
  color: #E8B968;
}

/* CTA buttons */
[data-theme="dark"] .cta-inline {
  color: #E8B968;
  border-color: rgba(217, 166, 83, 0.4);
}

[data-theme="dark"] .cta-inline:hover {
  background: rgba(217, 166, 83, 0.12);
  color: #E8B968;
  border-color: #E8B968;
}

/* Theme toggle button in dark mode */
[data-theme="dark"] .theme-toggle {
  color: rgba(237, 227, 205, 0.72);
  border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .theme-toggle:hover {
  color: #E8B968;
  border-color: rgba(217, 166, 83, 0.4);
}
