/* ==========================================================================
   Kieferorthopädische Praxis Dr. Nikolas Wilhelm M.Sc. — Bad Kreuznach & Lauterecken
   Retrofitted & Polished Classic Redesign (new-retro/)
   Preserves Classic Dr. Wilhelm Aesthetic (#1f4171 Top-Bordered Cards, Hero Emblem,
   Split Sections, Raleway + Figtree Self-Hosted WOFF2) with Full Compliance & UX
   ========================================================================== */

@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/raleway-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/raleway-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/figtree-latin-ext-wght.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/figtree-latin-wght.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Original Squarespace + Custom.css Palette */
  --brand-navy: #1f4171;
  --brand-navy-dark: #163056;
  --brand-navy-soft: #293c5b;
  --brand-charcoal: #242424;
  --brand-amber: #ff971a;
  --bg-light-stone: #e9e9e2;
  --bg-page: #f7f7f4;
  --bg-white: #ffffff;

  --text-main: #1a202c;
  --text-body: #2d3748;
  --text-muted: #4a5568;

  --border-subtle: #d8dee6;
  --shadow-card: 0 8px 24px rgba(31, 65, 113, 0.08);
  --shadow-card-hover: 0 14px 32px rgba(31, 65, 113, 0.14);

  --font-heading: 'Raleway', 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --font-body: 'Figtree', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --radius-card: 10px;
  --radius-btn: 5px;
  --container-max: 1240px;
  --header-height: 82px;
}

/* ==========================================================================
   1. DEFENSIVE TYPOGRAPHY & MOBILE VIEWPORT ENGINE (320px–430px SAFE)
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main *,
.site-header *,
.site-footer * {
  min-width: 0;
}

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

figure {
  margin: 0;
}

h1,
h2,
h3,
h4,
p,
li,
th,
td,
label,
legend {
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

h1,
h2,
h3 {
  hyphens: manual;
  -webkit-hyphens: manual;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.18;
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 4.2vw, 3.35rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
  margin-bottom: 0.9rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.65rem;
}

h4 {
  font-size: 1.0625rem;
  margin-bottom: 0.45rem;
}

p {
  margin-top: 0;
  margin-bottom: 1.1rem;
}

a {
  color: var(--brand-navy);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  transition: color 200ms ease, background-color 200ms ease, transform 200ms ease;
}

a:hover {
  color: var(--brand-navy-dark);
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

:focus-visible {
  outline: 3px solid var(--brand-navy);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -120px;
  left: 1rem;
  z-index: 1000;
  background-color: var(--brand-navy);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-btn);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
  color: #ffffff;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1.125rem, 4vw, 2.5rem);
}

/* ==========================================================================
   2. CLASSIC BUTTONS (RETROFITTED FROM CUSTOM.CSS)
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.75rem 1.4rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  hyphens: none;
  border: 2px solid transparent;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: all 220ms ease;
}

@media (max-width: 380px) {
  .btn {
    white-space: normal;
    text-align: center;
  }
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background-color: var(--brand-navy);
  color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--brand-navy-dark);
  color: #ffffff;
}

.btn-dark {
  background-color: var(--brand-charcoal);
  color: #ffffff;
}

.btn-dark:hover,
.btn-dark:focus-visible {
  background-color: var(--brand-navy);
  color: #ffffff;
}

.btn-outline-light {
  background-color: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-color: #ffffff;
}

.btn-outline-light:hover,
.btn-outline-light:focus-visible {
  background-color: #ffffff;
  color: var(--brand-navy);
}

.btn-secondary {
  background-color: var(--bg-light-stone);
  color: var(--text-main);
  border-color: var(--border-subtle);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background-color: #dce3ec;
  color: var(--brand-navy);
}

.btn-sm {
  min-height: 42px;
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
}

/* ==========================================================================
   3. HEADER & NAVIGATION (FIXED DESKTOP NAV + BURGER DRAWER)
   ========================================================================== */

.top-bar {
  background-color: var(--brand-navy);
  color: #ffffff;
  font-size: 0.9rem;
  padding-block: 0.45rem;
}

.top-bar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.4rem 1.25rem;
}

.top-bar a {
  color: #ffffff;
  font-weight: 600;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 250;
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-height);
  padding-block: 0.45rem;
}

.brand-crest {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-crest img {
  height: 54px;
  width: auto;
  object-fit: contain;
}

.desktop-nav {
  display: none;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: clamp(0.85rem, 1.35vw, 1.4rem);
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
  white-space: nowrap;
  hyphens: none;
  padding-block: 0.35rem;
  border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--brand-navy);
  border-bottom-color: var(--brand-navy);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.header-call-btn {
  display: none;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.5rem 0.95rem;
  background-color: var(--bg-light-stone);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-btn);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  hyphens: none;
  flex-shrink: 0;
  cursor: pointer;
}

@media (min-width: 1120px) {
  .desktop-nav {
    display: block;
  }
  .header-call-btn {
    display: inline-flex;
  }
  .menu-toggle {
    display: none;
  }
}

.mobile-drawer {
  display: none;
  background-color: var(--bg-white);
  border-top: 1px solid var(--border-subtle);
  padding-block: 1.25rem 1.75rem;
}

.mobile-drawer.is-open {
  display: block;
}

.mobile-nav-list {
  list-style: none;
  margin: 0 0 1.25rem 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.mobile-nav-link {
  display: block;
  padding: 0.7rem 0.95rem;
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: var(--radius-btn);
  text-decoration: none;
}

.mobile-nav-link:hover,
.mobile-nav-link[aria-current="page"] {
  background-color: #dce3ec;
  color: var(--brand-navy);
}

/* ==========================================================================
   4. RETROFITTED HERO BANNER (CLASSIC EMBLEM + MODERNIZED CONCEPT & CTAS)
   ========================================================================== */

.retro-hero {
  position: relative;
  background-color: var(--brand-navy-soft);
  color: #ffffff;
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  overflow: hidden;
}

.retro-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.retro-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
}

.retro-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  align-items: center;
}

@media (min-width: 920px) {
  .retro-hero-inner {
    grid-template-columns: 7fr 5fr;
  }
}

.retro-hero h1 {
  color: #ffffff;
}

.retro-hero-lead {
  font-size: 1.125rem;
  color: #f1f5f9;
  max-width: 60ch;
  margin-bottom: 1.75rem;
}

.retro-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.retro-hero-locations {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.retro-emblem-card {
  background-color: rgba(25, 48, 82, 0.88);
  border-top: 5px solid var(--brand-amber);
  border-radius: var(--radius-card);
  padding: 2rem;
  text-align: center;
}

.retro-emblem-card img {
  width: 112px;
  height: 112px;
  margin: 0 auto 1.25rem auto;
  object-fit: contain;
}

.retro-emblem-card p {
  color: #e2e8f0;
  font-size: 0.98rem;
  margin-bottom: 0;
}

/* ==========================================================================
   5. CLASSIC SECTIONS, SUMMARY CARDS (BORDER-TOP: 5PX SOLID #1F4171) & SPLITS
   ========================================================================== */

.section {
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

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

.section-stone {
  background-color: var(--bg-light-stone);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(2.25rem, 5vw, 3.5rem) auto;
}

.section-header p {
  color: var(--text-body);
  margin-bottom: 0;
}

.classic-rule {
  width: 80px;
  height: 3px;
  background-color: var(--brand-navy);
  border: none;
  margin: 0.85rem auto 1.25rem auto;
}

/* Signature Dr. Wilhelm Summary Card from custom.css */
.summary-grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 680px) {
  .summary-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .summary-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.summary-card {
  border-top: 5px solid var(--brand-navy);
  background-color: var(--bg-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 1.75rem 1.5rem 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 350ms ease, box-shadow 350ms ease;
}

.summary-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.summary-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 1.15rem;
}

.summary-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.summary-list {
  list-style: none;
  margin: 0.85rem 0 1.5rem 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-body);
}

.summary-list li {
  padding-left: 1.1rem;
  position: relative;
}

.summary-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--brand-navy);
  font-weight: 700;
}

/* Classic Alternating 50/50 Split Blocks ("Mit uns: Ein Team sein." & "In Bewegung.") */
.split-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  align-items: center;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}

.split-row:last-child {
  margin-bottom: 0;
}

@media (min-width: 900px) {
  .split-row {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
  }
  .split-row.is-reversed .split-media {
    order: 2;
  }
  .split-row.is-reversed .split-content {
    order: 1;
  }
}

.split-media {
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background-color: var(--bg-light-stone);
}

.split-media img {
  width: 100%;
  height: auto;
  transition: transform 700ms ease;
}

.split-media:hover img {
  transform: scale(1.05);
}

.split-kicker {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 0.35rem;
}

/* Classic 4 Overview Image Cards (Team, Leistungen, Praxis, Karriere) */
.overview-image-card {
  border-top: 5px solid var(--brand-navy);
  background-color: var(--bg-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.overview-image-wrap {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background-color: var(--bg-light-stone);
}

.overview-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms ease;
}

.overview-image-card:hover .overview-image-wrap img {
  transform: scale(1.07);
}

.overview-image-body {
  padding: 1.35rem 1.4rem 1.6rem 1.4rem;
}

/* Classic "Ein Leben lang." Banner */
.lifelong-banner {
  background-color: var(--brand-navy);
  color: #ffffff;
  border-radius: var(--radius-card);
  padding: clamp(2rem, 5vw, 3.75rem);
  text-align: center;
}

.lifelong-banner h2 {
  color: #ffffff;
}

.lifelong-banner p {
  color: #e2e8f0;
  max-width: 68ch;
  margin: 0 auto 1.75rem auto;
}

/* Classic "Empfohlen" Cards (2 Cards) */
.empfohlen-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .empfohlen-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   6. PATIENTEN-ENTLASTUNGS-MODUL (FORMULAR & ONBOARDING-CHECKLISTE)
   ========================================================================== */

.booking-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  align-items: start;
}

@media (min-width: 960px) {
  .booking-grid {
    grid-template-columns: 7fr 5fr;
  }
}

.retro-form-card {
  border-top: 5px solid var(--brand-navy);
  background-color: var(--bg-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.retro-onboarding-card {
  border-top: 5px solid var(--brand-amber);
  background-color: var(--bg-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
}

.onboarding-quote-box {
  background-color: #eef3f9;
  border-left: 4px solid var(--brand-navy);
  padding: 1.1rem 1.25rem;
  border-radius: 0 var(--radius-btn) var(--radius-btn) 0;
  font-weight: 600;
  color: var(--brand-navy-dark);
  margin-bottom: 1.35rem;
}

.checklist {
  list-style: none;
  margin: 0 0 1.5rem 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.checklist li {
  background-color: var(--bg-page);
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-btn);
  font-size: 0.95rem;
}

.checklist li strong {
  display: block;
  color: var(--brand-navy);
  margin-bottom: 0.15rem;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .form-row-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  margin-bottom: 1.15rem;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.form-control {
  width: 100%;
  min-height: 46px;
  padding: 0.65rem 0.9rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-main);
  background-color: var(--bg-page);
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-btn);
}

.form-control:focus {
  background-color: var(--bg-white);
  border-color: var(--brand-navy);
}

textarea.form-control {
  min-height: 105px;
  resize: vertical;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-block: 1.15rem 1.4rem;
  font-size: 0.9375rem;
  color: var(--text-body);
}

.consent-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 0.2rem;
  accent-color: var(--brand-navy);
  flex-shrink: 0;
}

.form-feedback {
  padding: 0.95rem 1.15rem;
  border-radius: var(--radius-btn);
  margin-bottom: 1.15rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.form-feedback.is-error {
  background-color: #fee2e2;
  color: #7f1d1d;
}

.form-feedback.is-success {
  background-color: #dcfce7;
  color: #14532d;
}

/* ==========================================================================
   7. LOCATIONS & 2-STAGE GOOGLE MAPS COMPLIANCE GATEWAY
   ========================================================================== */

.locations-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 960px) {
  .locations-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-table {
  width: 100%;
  border-collapse: collapse;
  margin-block: 0.85rem 1.35rem;
  font-size: 0.95rem;
}

.contact-table th,
.contact-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.4rem;
  border-bottom: 1px solid var(--border-subtle);
}

.contact-table th {
  width: 35%;
  color: var(--text-muted);
  font-weight: 600;
}

.map-container {
  margin-top: 1.15rem;
  border-radius: var(--radius-btn);
  overflow: hidden;
  background-color: var(--bg-page);
  border: 1px solid var(--border-subtle);
}

.map-fallback-card {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.fallback-heading {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.fallback-text {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.map-fallback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* ==========================================================================
   8. CLASSIC FOOTER WITH DR. WILHELM CREST LOGO
   ========================================================================== */

.site-footer {
  background-color: var(--bg-white);
  border-top: 5px solid var(--brand-navy);
  padding-top: clamp(3rem, 6vw, 4.5rem);
  padding-bottom: clamp(5.5rem, 8vw, 3.5rem);
}

.footer-top-brand {
  margin-bottom: 2.25rem;
}

.footer-top-brand img {
  height: 68px;
  width: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1040px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  font-size: 0.95rem;
}

.cookie-settings-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--brand-navy);
  font-family: var(--font-body);
  font-size: 0.95rem;
  text-decoration: underline;
  cursor: pointer;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ==========================================================================
   9. MOBILE STICKY QUICK-CONTACT BAR & COOKIE MODAL
   ========================================================================== */

.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 300;
  background-color: var(--bg-white);
  border-top: 1px solid var(--border-subtle);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  padding: 0.55rem 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

@media (min-width: 768px) {
  .mobile-sticky-bar {
    display: none;
  }
}

.cookie-modal-backdrop {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 400;
  padding: 1rem;
  pointer-events: none;
}

.cookie-modal-backdrop[hidden] {
  display: none !important;
}

.cookie-modal-dialog {
  pointer-events: auto;
  max-width: 960px;
  margin-inline: auto;
  background-color: var(--brand-charcoal);
  color: #ffffff;
  border-top: 4px solid var(--brand-navy);
  border-radius: var(--radius-card);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
  padding: 1.4rem 1.65rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
  align-items: center;
}

@media (min-width: 820px) {
  .cookie-modal-dialog {
    grid-template-columns: 7fr 5fr;
  }
}

.cookie-modal-title {
  color: #ffffff;
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.cookie-modal-text {
  color: #e2e8f0;
  font-size: 0.92rem;
  margin-bottom: 0.45rem;
}

.cookie-modal-links {
  display: flex;
  gap: 0.6rem;
  font-size: 0.9rem;
}

.cookie-modal-links a {
  color: #93c5fd;
}

.cookie-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-end;
}

/* Subpages & History Cards */
.page-banner {
  background-color: var(--brand-navy);
  color: #ffffff;
  padding-block: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}

.page-banner h1 {
  color: #ffffff;
}

.page-banner p {
  color: #e2e8f0;
  max-width: 64ch;
  margin: 0 auto;
}

.history-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .history-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.history-card {
  border-top: 5px solid var(--brand-navy);
  background-color: var(--bg-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1.25rem;
  align-items: start;
}

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

.history-portrait {
  width: 96px;
  border-radius: var(--radius-btn);
  overflow: hidden;
}

.photo-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem;
}

@media (min-width: 640px) {
  .photo-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .photo-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}
