/* ==========================================================================
   ASD Consulting Solutions, LLC — Bespoke Brand Design System
   Engineered from the ASD Consulting Logo:
   - Brand Azure Blue Swirl: #2a7fff (Deep Accessible Azure: #1656c0 / Navy: #0d1e38)
   - Brand Rose-Pink Swirl:  #ff5599 (Deep Accessible Rose:  #be185d)
   - Brand Amiri Serif Ink:  #000000 / #0b1324
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }
}

:root {
  color-scheme: light;

  /* Core Brand Tokens (Extracted from ASD Consulting Logo) */
  --brand-azure: #2a7fff;
  --brand-azure-strong: #1656c0;
  --brand-azure-deep: #0d1e38;
  --brand-rose: #ff5599;
  --brand-rose-strong: #be185d;
  --brand-rose-mid: #db2777;

  /* Surfaces & Tints (using color-mix in oklab for perceptual harmony) */
  --bg-canvas: #ffffff;
  --bg-subtle: #f7f9fc;
  --bg-elevated: #ffffff;
  --bg-azure-tint: color-mix(in oklab, var(--brand-azure) 8%, white);
  --bg-rose-tint: color-mix(in oklab, var(--brand-rose) 8%, white);
  --bg-duotone-soft: linear-gradient(
    135deg,
    color-mix(in oklab, var(--brand-azure) 7%, white) 0%,
    #ffffff 50%,
    color-mix(in oklab, var(--brand-rose) 7%, white) 100%
  );
  --bg-navy-hero: linear-gradient(
    135deg,
    #081529 0%,
    #0f2444 55%,
    #1b1938 100%
  );

  /* Typography Ink Colors (WCAG AA/AAA >= 4.5:1 verified) */
  --ink-primary: #0b1324;
  --ink-secondary: #334155;
  --ink-muted: #475569;
  --ink-on-dark: #f8fafc;
  --ink-on-dark-muted: #cbd5e1;

  /* Semantic Status (Paired with iconography, never color alone) */
  --status-success: #15803d;
  --status-success-bg: #f0fdf4;
  --status-info: #1656c0;
  --status-info-bg: #eff6ff;

  /* Accessible Component Boundaries (>= 3:1 Non-Text Contrast) */
  --border-subtle: #cbd5e1;
  --border-strong: #64748b;
  --border-azure: color-mix(in oklab, var(--brand-azure) 45%, #64748b);
  --border-rose: color-mix(in oklab, var(--brand-rose) 45%, #64748b);

  /* Elevation & Radii */
  --shadow-sm: 0 2px 8px -2px rgba(13, 30, 56, 0.07), 0 1px 3px -1px rgba(13, 30, 56, 0.05);
  --shadow-md: 0 12px 28px -6px rgba(13, 30, 56, 0.1), 0 4px 10px -3px rgba(13, 30, 56, 0.05);
  --shadow-lg: 0 24px 48px -12px rgba(13, 30, 56, 0.15);
  --shadow-brand: 0 14px 32px -8px rgba(42, 127, 255, 0.28);
  --shadow-rose: 0 14px 32px -8px rgba(255, 85, 153, 0.25);

  --radius-sm: 0.5rem;
  --radius-md: 0.875rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;
  --radius-full: 9999px;

  /* Font Stacks — Amiri matches the exact serif typeface in the ASD logo */
  --font-serif-brand: 'Amiri', Georgia, 'Times New Roman', serif;
  --font-display: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

  --container-max: 78rem;
  --header-height: 5.25rem;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-primary);
  background-color: var(--bg-canvas);
  text-align: start;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}

main {
  flex: 1;
}

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

/* Typography Rules (Modern Web Guidance Compliant) */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink-primary);
  line-height: 1.18;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p, li, blockquote {
  text-wrap: pretty;
  max-width: 75ch;
}

.serif-accent {
  font-family: var(--font-serif-brand);
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.text-gradient-brand {
  background: linear-gradient(125deg, var(--brand-azure-strong) 0%, var(--brand-azure) 45%, var(--brand-rose-strong) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Skip Link for Accessibility */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  background: var(--brand-azure-deep);
  color: #ffffff;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus {
  top: 1rem;
}

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

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

.section-subtle {
  background-color: var(--bg-subtle);
  border-block: 1px solid var(--border-subtle);
}

.section-duotone {
  background: var(--bg-duotone-soft);
  border-block: 1px solid var(--border-subtle);
}

.section-navy {
  background: var(--bg-navy-hero);
  color: var(--ink-on-dark);
}
.section-navy h1,
.section-navy h2,
.section-navy h3,
.section-navy h4 {
  color: #ffffff;
}
.section-navy p,
.section-navy li {
  color: var(--ink-on-dark-muted);
}

/* Top Utility Bar */
.utility-bar {
  background: var(--brand-azure-deep);
  color: var(--ink-on-dark);
  font-size: 0.875rem;
  border-bottom: 2px solid;
  border-image: linear-gradient(90deg, var(--brand-azure), var(--brand-rose), var(--brand-azure)) 1;
}

.utility-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-block: 0.55rem;
}

.utility-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

.utility-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  color: #ffffff;
}

.utility-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: var(--radius-full);
  background: var(--brand-rose);
  box-shadow: 0 0 0 3px rgba(255, 85, 153, 0.28);
}

.utility-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.15rem;
}

.utility-links a {
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.18s ease;
}
.utility-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.utility-sister-link {
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  background: rgba(42, 127, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #ffffff !important;
  font-weight: 600 !important;
}
.utility-sister-link:hover {
  background: rgba(255, 85, 153, 0.3);
  text-decoration: none !important;
}

/* Primary Sticky Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

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

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

.brand-logo-img {
  height: 3.6rem;
  width: auto;
  object-fit: contain;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.9rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-secondary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color 0.18s ease, background-color 0.18s ease;
}

.nav-link:hover {
  color: var(--brand-azure-strong);
  background-color: var(--bg-azure-tint);
}

.nav-link[aria-current="page"] {
  color: var(--brand-azure-strong);
  background-color: var(--bg-azure-tint);
  font-weight: 700;
}

.nav-link[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: 0.2rem;
  left: 0.9rem;
  right: 0.9rem;
  height: 2.5px;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--brand-azure), var(--brand-rose));
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Mobile Navigation Drawer Button */
.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 0.85rem;
  background: var(--bg-subtle);
  color: var(--ink-primary);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.mobile-drawer {
  display: none;
  border-top: 1px solid var(--border-subtle);
  background: #ffffff;
  padding: 1.25rem clamp(1.25rem, 4vw, 2.5rem) 1.75rem;
  box-shadow: var(--shadow-md);
}

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

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  list-style: none;
  margin-bottom: 1.25rem;
}

.mobile-nav-list .nav-link {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1.05rem;
}

/* Buttons (WCAG 3:1 boundary + 4.5:1 text contrast) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1.45rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  border-radius: var(--radius-md);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

.btn:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--brand-azure);
  outline-offset: 2px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-azure-strong) 0%, var(--brand-azure) 100%);
  color: #ffffff;
  border-color: var(--brand-azure-strong);
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #10449c 0%, var(--brand-azure-strong) 100%);
}

.btn-rose {
  background: linear-gradient(135deg, var(--brand-rose-strong) 0%, var(--brand-rose-mid) 100%);
  color: #ffffff;
  border-color: var(--brand-rose-strong);
  box-shadow: var(--shadow-rose);
}
.btn-rose:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #9d174d 0%, var(--brand-rose-strong) 100%);
}

.btn-secondary {
  background: #ffffff;
  color: var(--ink-primary);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  border-color: var(--brand-azure-strong);
  color: var(--brand-azure-strong);
  background: var(--bg-azure-tint);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.55);
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #ffffff;
}

.btn-sm {
  padding: 0.6rem 1.1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 0.95rem 1.75rem;
  font-size: 1.05rem;
}

/* Eyebrow / Pill Labels (Not using text-wrap: balance because they have a visible box) */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  background: var(--bg-rose-tint);
  color: var(--brand-rose-strong);
  border: 1px solid var(--border-rose);
  font-size: 0.825rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 1.1rem;
  text-wrap: wrap;
}

.eyebrow-azure {
  background: var(--bg-azure-tint);
  color: var(--brand-azure-strong);
  border-color: var(--border-azure);
}

.eyebrow-dark {
  background: rgba(255, 85, 153, 0.18);
  color: #ffd1e6;
  border-color: rgba(255, 85, 153, 0.55);
}

/* Section Headers */
.section-header {
  max-width: 48rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}

.section-header.centered {
  margin-inline: auto;
  text-align: center;
}
.section-header.centered p {
  margin-inline: auto;
}

.section-title {
  font-size: clamp(1.85rem, 1.35rem + 2vw, 2.75rem);
  margin-bottom: 0.9rem;
}

.section-subtitle {
  font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.2rem);
  color: var(--ink-secondary);
}

/* Page Hero Banner (Used on interior pages) */
.page-hero {
  position: relative;
  padding-block: clamp(3.25rem, 6vw, 5rem);
  background: var(--bg-duotone-soft);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -8rem;
  right: -6rem;
  width: 26rem;
  height: 26rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(42, 127, 255, 0.14) 0%, rgba(255, 85, 153, 0.1) 55%, transparent 72%);
  pointer-events: none;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--ink-muted);
  margin-bottom: 1rem;
  list-style: none;
}
.breadcrumb a {
  color: var(--brand-azure-strong);
  text-decoration: none;
  font-weight: 600;
}
.breadcrumb a:hover {
  text-decoration: underline;
}

.page-hero-title {
  font-size: clamp(2.1rem, 1.5rem + 2.5vw, 3.25rem);
  margin-bottom: 1rem;
}

.page-hero-lead {
  font-size: clamp(1.075rem, 1rem + 0.4vw, 1.25rem);
  color: var(--ink-secondary);
  max-width: 66ch;
}

/* Home Hero Layout */
.home-hero {
  position: relative;
  padding-block: clamp(3.5rem, 6.5vw, 5.75rem);
  background:
    radial-gradient(circle at 12% 18%, rgba(42, 127, 255, 0.11) 0%, transparent 42%),
    radial-gradient(circle at 88% 22%, rgba(255, 85, 153, 0.12) 0%, transparent 45%),
    linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 4.5vw, 4rem);
  align-items: center;
}

.hero-display-title {
  font-size: clamp(2.25rem, 1.55rem + 2.8vw, 3.6rem);
  margin-bottom: 1.2rem;
}

.hero-lead {
  font-size: clamp(1.075rem, 1rem + 0.35vw, 1.225rem);
  color: var(--ink-secondary);
  margin-bottom: 1.85rem;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2.25rem;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.trust-metric strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--brand-azure-deep);
}
.trust-metric span {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

/* Hero Visual Showcase Card (Featuring Amy Sanders & ASD Swirl Emblem) */
.hero-showcase-card {
  position: relative;
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--border-azure);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
}

.hero-showcase-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  padding: 2px;
  background: linear-gradient(135deg, var(--brand-azure), var(--brand-rose));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hero-portrait-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3.6;
  background: var(--bg-rose-tint);
  margin-bottom: 1.25rem;
}

.hero-portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.proadvisor-ribbon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-md);
  background: var(--bg-duotone-soft);
  border: 1px solid var(--border-subtle);
}

.proadvisor-ribbon-info strong {
  display: block;
  font-size: 1rem;
  color: var(--ink-primary);
}
.proadvisor-ribbon-info span {
  font-size: 0.85rem;
  color: var(--ink-secondary);
}

.swirl-badge-mini {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--brand-rose);
  flex-shrink: 0;
}

/* Grid Systems & Cards */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.25rem);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.35rem, 2.5vw, 2rem);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.35rem;
}

.card {
  background: var(--bg-elevated);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 2.8vw, 2.15rem);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-azure);
}

.card-rose-accent:hover {
  border-color: var(--border-rose);
}

.card-top-bar {
  height: 4px;
  width: 3.5rem;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--brand-azure), var(--brand-rose));
  margin-bottom: 1.25rem;
}

.icon-tile {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-azure-tint);
  color: var(--brand-azure-strong);
  border: 1px solid var(--border-azure);
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.icon-tile-rose {
  background: var(--bg-rose-tint);
  color: var(--brand-rose-strong);
  border-color: var(--border-rose);
}

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.65rem;
}

.card p {
  color: var(--ink-secondary);
  margin-bottom: 1.15rem;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 0.25rem 0 1.25rem;
  padding: 0;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.935rem;
  color: var(--ink-secondary);
}

.check-icon {
  color: var(--brand-azure-strong);
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.check-icon-rose {
  color: var(--brand-rose-strong);
}

/* Biography & Family Cards */
.bio-split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(1.75rem, 4vw, 3.25rem);
  align-items: center;
  background: #ffffff;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-md);
}

.bio-photo-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--border-rose);
  aspect-ratio: 4 / 4.3;
  background: var(--bg-subtle);
}

.bio-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

/* Christian's Tribute Memorial Section */
.memorial-card {
  background: linear-gradient(135deg, #fff5f9 0%, #ffffff 50%, #f0f7ff 100%);
  border: 2px solid var(--border-rose);
  border-radius: var(--radius-xl);
  padding: clamp(1.75rem, 3.5vw, 3rem);
  box-shadow: var(--shadow-md);
}

.memorial-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: clamp(1.75rem, 3.5vw, 3rem);
  align-items: center;
}

.memorial-photo-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 3px solid #ffffff;
  box-shadow: var(--shadow-md);
}

/* Forms & Inputs (>= 3:1 Non-Text Contrast on Borders) */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.15rem;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-primary);
}

.form-control {
  width: 100%;
  padding: 0.75rem 0.95rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--ink-primary);
  background-color: #ffffff;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:hover {
  border-color: var(--brand-azure-strong);
}

.form-control:focus {
  border-color: var(--brand-azure-strong);
  box-shadow: 0 0 0 3px rgba(42, 127, 255, 0.2);
  outline: none;
}

/* Booking Scheduler Center */
.scheduler-shell {
  background: #ffffff;
  border: 1.5px solid var(--border-azure);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.scheduler-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-duotone-soft);
  border-bottom: 1px solid var(--border-subtle);
}

.scheduler-tab {
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-strong);
  background: #ffffff;
  color: var(--ink-primary);
  font-family: var(--font-display);
  font-size: 0.925rem;
  font-weight: 700;
  cursor: pointer;
}

.scheduler-tab[aria-selected="true"] {
  background: var(--brand-azure-strong);
  color: #ffffff;
  border-color: var(--brand-azure-strong);
}

.scheduler-iframe-wrap {
  width: 100%;
  min-height: 42rem;
  background: #ffffff;
}

.scheduler-iframe {
  width: 100%;
  height: 42rem;
  border: 0;
}

/* Details / FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.faq-item {
  background: #ffffff;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.35rem;
}

.faq-item summary {
  font-family: var(--font-display);
  font-size: 1.075rem;
  font-weight: 700;
  color: var(--ink-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: '+';
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brand-azure-strong);
}
.faq-item[open] summary::after {
  content: '−';
  color: var(--brand-rose-strong);
}
.faq-item p {
  margin-top: 0.85rem;
  color: var(--ink-secondary);
}

/* Light-Dismiss Modal Dialog (Modern Web Guidance light-dismiss-a-dialog) */
dialog.booking-dialog {
  margin: auto;
  width: min(94vw, 62rem);
  max-height: 90svh;
  border: 2px solid var(--brand-azure);
  border-radius: var(--radius-xl);
  background: #ffffff;
  color: var(--ink-primary);
  box-shadow: var(--shadow-lg);
  padding: 0;
  overflow: hidden;
}

dialog.booking-dialog::backdrop {
  background-color: rgba(13, 30, 56, 0.65);
  backdrop-filter: blur(4px);
}

.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.5rem;
  background: var(--bg-duotone-soft);
  border-bottom: 1px solid var(--border-subtle);
}

.dialog-body {
  padding: 1.5rem;
  overflow-y: auto;
  max-height: calc(90svh - 4.5rem);
}

/* Footer */
.site-footer {
  background: var(--brand-azure-deep);
  color: var(--ink-on-dark);
  padding-block: 4rem 2.25rem;
  border-top: 4px solid;
  border-image: linear-gradient(90deg, var(--brand-azure), var(--brand-rose), var(--brand-azure)) 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 2.25rem;
  padding-bottom: 2.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-logo-box {
  display: inline-block;
  background: #ffffff;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

.footer-logo-box img {
  height: 3.1rem;
  width: auto;
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-links a {
  color: var(--ink-on-dark-muted);
  text-decoration: none;
  font-size: 0.925rem;
  transition: color 0.15s ease;
}
.footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.75rem;
  font-size: 0.875rem;
  color: var(--ink-on-dark-muted);
}

/* Forced Colors Mode Support (Modern Web Guidance color) */
@media (forced-colors: active) {
  .btn,
  .card,
  .form-control,
  dialog.booking-dialog {
    border: 2px solid CanvasText;
  }
  .btn-primary,
  .btn-rose {
    background: Highlight;
    color: HighlightText;
  }
  .text-gradient-brand {
    background: none;
    color: CanvasText;
  }
}

/* Responsive Breakpoints */
@media (max-width: 64rem) {
  .hero-grid,
  .bio-split,
  .memorial-grid {
    grid-template-columns: 1fr;
  }
  .grid-3,
  .grid-4,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .primary-nav {
    display: none;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
}

@media (max-width: 42rem) {
  .grid-2,
  .grid-3,
  .grid-4,
  .footer-grid,
  .trust-strip{
    grid-template-columns: 1fr;
  }
  .utility-inner {
    justify-content: center;
    text-align: center;
  }
  .utility-links {
    justify-content: center;
  }
}

/* ---------------------------------------------------------------------------
   Layout safety + small-screen header (prevents horizontal overflow on phones)
   --------------------------------------------------------------------------- */
.grid-2 > *,
.grid-3 > *,
.grid-4 > *,
.hero-grid > *,
.bio-split > *,
.memorial-grid > * {
  min-width: 0;
}

.card > .feature-list:last-child {
  margin-bottom: 0;
}

h1, h2, h3 {
  overflow-wrap: break-word;
}

html,
body {
  overflow-x: clip;
}

@media (max-width: 42rem) {
  .utility-meta > span:not(.utility-badge),
  .utility-links a[href^="mailto:"],
  .utility-links a.utility-sister-link {
    display: none;
  }
  .header-actions .btn-primary {
    display: none;
  }
  .brand-logo-img {
    height: 2.9rem;
  }
  .hero-cta-row .btn {
    width: 100%;
    justify-content: center;
  }
}
