/* ==========================================================================
   DUDLEY FUNERAL HOME & CREMATORY - CORE STYLESHEET
   Based on Figma Design System: Home Final (107:382)
   ========================================================================== */

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

:root {
  /* Color Palette */
  --color-navy: #0D334A;
  --color-navy-dark: #082232;
  --color-navy-light: #164663;
  --color-copper: #965E2F; /* WCAG AA contrast with white and light backgrounds */
  --color-copper-hover: #7D4E26;
  --color-copper-active: #5B3414;
  --color-cream: #F8F3ED;
  --color-cream-card: #FAF6F0;
  --color-cream-border: #E8DED2;
  --color-dusty-blue: #C0D5E4;
  --color-white: #FFFFFF;

  /* Text Colors */
  --text-primary: #0D334A;
  --text-secondary: #0D334A;
  --text-muted: #0D334A;
  --text-light: #F8F3ED;
  --text-white: #FFFFFF;

  /* Typography */
  --font-serif: 'Noto Serif', Georgia, serif;
  --font-sans: 'Open Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(13, 51, 74, 0.06);
  --shadow-md: 0 6px 20px rgba(13, 51, 74, 0.08);
  --shadow-lg: 0 12px 32px rgba(13, 51, 74, 0.12);
  --shadow-card-hover: 0 16px 36px rgba(13, 51, 74, 0.14);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --container-max: 1320px;
  --container-padding: 24px;
}



html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background-color: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ---------- Container Utility ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

/* ---------- Typography Utility ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-copper);
  margin-bottom: 0.75rem;
}

.section-eyebrow {
  color: var(--color-navy);
}

.section-heading {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-size: clamp(2rem, 2.8vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-navy);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-size: clamp(1.125rem, 1.4vw, 1.25rem);
  color: var(--text-secondary);
  font-weight: 500;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.section-header-center {
  text-align: center;
  margin-bottom: 3.5rem;
}

/* ---------- Buttons & Interactive Elements ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  text-align: center;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-copper {
  background-color: var(--color-copper);
  color: var(--color-white);
  border: 1px solid var(--color-copper);
}

.btn-copper:hover {
  background-color: var(--color-copper-hover);
  border-color: var(--color-copper-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(175, 114, 60, 0.25);
}

.btn-copper:active {
  background-color: var(--color-copper-active);
  transform: translateY(0);
}

.btn-white-outline {
  background-color: var(--color-white);
  color: var(--color-navy);
  border: 2px solid var(--color-copper);
}

.btn-white-outline:hover {
  background-color: var(--color-cream);

  border-color: var(--color-navy);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 51, 74, 0.1);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  color: #0D334A;
  transition: all var(--transition-fast);
}

.card-link svg {
  transition: transform var(--transition-fast);
}

.card-link:hover {
  color: var(--color-copper-hover);
}

.card-link:hover svg {
  transform: translateX(4px);
}

.btn-arrow {
  transition: transform var(--transition-fast);
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}


/* ==========================================================================
   1. UTILITY BAR
   ========================================================================== */
.utility-bar {
  background-color: var(--color-navy);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.utility-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.utility-statement {
  letter-spacing: 0.02em;
}

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

.utility-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--transition-fast);
}

.utility-link:hover {
  color: var(--color-white);
}

.utility-link.phone-link {
  font-weight: 600;
  color: var(--color-white);
}

.utility-search-btn {
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  transition: color var(--transition-fast);
}

.utility-search-btn:hover {
  color: var(--color-white);
}


/* ==========================================================================
   2. MAIN NAVIGATION HEADER
   ========================================================================== */
.main-header {
  background-color: var(--color-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all var(--transition-normal);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.brand-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo {
  height: 64px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

.brand-link:hover .brand-logo {
  transform: scale(1.02);
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-navy);
  padding: 0.5rem 0;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--color-copper);
  transition: width var(--transition-normal);
}

.nav-link:hover {
  color: var(--color-copper);
}

.nav-link:hover::after {
  width: 100%;
}

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

.header-cta-btn {
  font-size: 0.9375rem;
  padding: 0.75rem 1.5rem;
}

/* Mobile Hamburger Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  padding: 0;
}

.hamburger-bar {
  display: block;
  width: 100%;
  height: 2.5px;
  background-color: var(--color-navy);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.mobile-toggle.active .hamburger-bar:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}

.mobile-toggle.active .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active .hamburger-bar:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}




/* =========================================
   PLANNING AHEAD - DESKTOP / TABLET / MOBILE
========================================= */

 .main-header .nav-item.has-dropdown { 
  position: relative;
}

/* Parent link and arrow alignment */
.main-header .dropdown-heading {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-header .dropdown-heading > .dropdown-toggle {
  display: inline-flex;
  align-items: center;
}

/* Hide the separate arrow button on desktop */
.main-header .dropdown-arrow-toggle {
  display: none;
}

/* Desktop arrow */
.main-header .nav-item.has-dropdown > .nav-link .dropdown-arrow,
.main-header .dropdown-arrow-toggle .dropdown-arrow {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -4px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

/* Desktop dropdown panel */
.main-header .nav-item.has-dropdown > .dropdown-menu {
  display: block;
  position: absolute;
  top: 100%;
  left: 100%;
  width: 310px;
  max-width: calc(100vw - 30px);
  box-sizing: border-box;

  margin: 0;
  padding: 30px 40px;
  list-style: none;

  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.10);
  z-index: 9999;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 8px);

  transition: opacity 0.2s ease, transform 0.2s ease,
              visibility 0.2s ease;
}

/* Keep dropdown connected to parent */
.main-header .nav-item.has-dropdown > .dropdown-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}

/* Dropdown links */
.main-header .dropdown-menu li + li {
  margin-top: 24px;
}

.main-header .dropdown-menu li a {
  display: block;
  padding: 0;
  color: #12364d;
  font-size: 1rem;
  line-height: 1.6;
  text-decoration: none;
}

.main-header .dropdown-menu li a:hover {
  color: var(--color-copper);
}

/* Desktop: hover opens dropdown */
@media (min-width: 1025px) {
  .main-header .nav-item.has-dropdown:hover > .dropdown-menu,
  .main-header .nav-item.has-dropdown:focus-within > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
  }

  .main-header .nav-item.has-dropdown:hover > .nav-link .dropdown-arrow,
  .main-header .nav-item.has-dropdown:focus-within > .nav-link .dropdown-arrow {
    transform: rotate(225deg);
    margin-top: 4px;
  }
}

/* Tablet and mobile: arrow button controls dropdown */
@media (max-width: 1024px) {
  .main-header .dropdown-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  /* Show arrow button on tablet and mobile */
  .main-header .dropdown-arrow-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--color-navy);
    cursor: pointer;
  }

  /* Hide arrow inside the text link */
  .main-header .nav-item.has-dropdown > .dropdown-heading
  > .dropdown-toggle .dropdown-arrow {
    display: none !important;
  }

  /* Prevent hover from opening the submenu */
  .main-header .nav-item.has-dropdown:hover > .dropdown-menu,
  .main-header .nav-item.has-dropdown:focus-within > .dropdown-menu {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: none;
  }

  /* Closed state */
  .main-header .nav-item.has-dropdown > .dropdown-menu {
    position: static;
    width: 100%;
    max-width: 100%;
    margin: 8px 0 0;
    padding: 15px 20px;
    box-shadow: none;
    border-radius: 12px;
    transform: none;
  }

  /* Open state: arrow click only */
  .main-header .nav-item.has-dropdown.dropdown-open > .dropdown-menu {
    opacity: 1;
    visibility: visible;

    pointer-events: auto;
    transform: none;
  }

  .main-header .nav-item.has-dropdown.dropdown-open:hover > .dropdown-menu,
  .main-header .nav-item.has-dropdown.dropdown-open:focus-within > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  /* Rotate arrow only when opened */
  .main-header .dropdown-arrow-toggle .dropdown-arrow {
    transform: rotate(45deg);
  }

  .main-header .nav-item.has-dropdown.dropdown-open
  .dropdown-arrow-toggle .dropdown-arrow {
    transform: rotate(225deg);
    margin-top: 4px;
  }

  .main-header .dropdown-menu::before {
    display: none;
  }
}






/* ======================================
   FINAL DROPDOWN ARROW + SPACING FIX
====================================== */

/* Desktop, tablet and mobile: show arrow */
.main-header .nav-item.has-dropdown > .dropdown-heading {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-header .nav-item.has-dropdown > .dropdown-heading > .dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Desktop arrow inside Planning Ahead link */
.main-header .nav-item.has-dropdown > .dropdown-heading
> .dropdown-toggle .dropdown-arrow {
  display: inline-block !important;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -4px;
  flex-shrink: 0;
}

/* Tablet and mobile: use separate clickable arrow */
@media (max-width: 1024px) {
  .main-header .nav-item.has-dropdown > .dropdown-heading
  > .dropdown-toggle .dropdown-arrow {
    display: none !important;
  }

  .main-header .nav-item.has-dropdown .dropdown-arrow-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }
}

/* Desktop: hide separate arrow button */
@media (min-width: 1025px) {
  .main-header .nav-item.has-dropdown .dropdown-arrow-toggle {
    display: none !important;
  }
}

/* Remove extra vertical spacing on tablet/mobile */
@media (max-width: 1024px) {
  .main-header .nav-menu .nav-list {
    align-items: flex-start;
  }

  .main-header .nav-item.has-dropdown {
    height: auto !important;
    min-height: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  .main-header .nav-item.has-dropdown > .dropdown-menu {
    position: static !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  /* Closed submenu must occupy zero space */
  .main-header .nav-item.has-dropdown:not(.dropdown-open) > .dropdown-menu {
    display: none !important;
  }

  /* Open submenu: compact spacing */
  .main-header .nav-item.has-dropdown.dropdown-open > .dropdown-menu {
    display: block !important;
    padding: 15px 0 8px 20px !important;
    margin: 0 !important;
  }

  .main-header .nav-item.has-dropdown > .dropdown-menu li {
    margin: 0 !important;
    padding: 0 !important;
  }

  .main-header .nav-item.has-dropdown > .dropdown-menu li + li {
    margin-top: 12px !important;
  }

  .main-header .nav-item.has-dropdown > .dropdown-menu::before {
    display: none !important;
  }
}






/* ==========================================================================
   3. HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 680px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #1a3447;
}

.hero-bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.02);
  transition: transform 1.5s ease-out;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(255, 255, 255, 0.88) 0%,
    rgba(255, 255, 255, 0.10) 0%,
    rgba(255, 255, 255, 0.0) 80%
  );
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 2rem;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.hero-content {
  max-width: 700px;
}

.hero-eyebrow {
  color: var(--color-navy);
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-size: clamp(2.5rem, 4.2vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-navy);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.hero-intro {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-size: clamp(1.125rem, 1.4vw, 1.25rem);
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.hero-btn {
  padding: 1rem 2rem;
  font-size: 1.0625rem;
}

.hero-badge-wrap {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-right: 2rem;
}

.hero-seal-badge {
  max-width: 270px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 28px rgba(13, 51, 74, 0.18));
  animation: floatBadge 6s ease-in-out infinite alternate;
}

@keyframes floatBadge {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-8px) rotate(1deg); }
}






/* =========================================
   HIGHLIGHTS SECTION - SAFARI COMPATIBLE
========================================= */

.highlights-section {
  background-color: var(--color-cream);
  border-top: 1px solid var(--color-cream-border);
  border-bottom: 1px solid var(--color-cream-border);
  padding: 0;
  width: 100%;
  box-sizing: border-box;
}

.highlights-container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;

  -webkit-box-align: stretch;
  -ms-flex-align: stretch;
  align-items: stretch;

  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;

  gap: 0;
  width: 100%;
  box-sizing: border-box;
}

.highlight-item {
  -webkit-box-flex: 1;
  -ms-flex: 1 1 0%;
  flex: 1 1 0%;

  min-width: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;

  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;

  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;

  -webkit-box-pack: start;
  -ms-flex-pack: start;
  justify-content: flex-start;

  text-align: center;
  gap: 0.4rem;
  padding: 3rem 0.75rem;
  box-sizing: border-box;
}

.highlight-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;

  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;

  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;

  -webkit-box-pack: start;
  -ms-flex-pack: start;
  justify-content: flex-start;

  gap: 0.45rem;
  width: 100%;
  -ms-flex-negative: 0;
  flex-shrink: 0;
}

.highlight-icon {
  display: block;
  width: 40px;
  height: 40px;
  -ms-flex-negative: 0;
  flex-shrink: 0;
}

.highlight-title {
  width: 100%;
  margin: 0;
  padding: 0;

  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.3;

  color: var(--color-navy);
  overflow-wrap: break-word;
}

.highlight-desc {
  width: 100%;
  margin: 0;
  padding: 0;

  font-family: var(--font-sans);
  font-size: 0.9375rem;
  line-height: 1.4;

  color: var(--text-secondary);
  overflow-wrap: break-word;
}

.highlight-divider {
  display: block;
  width: 1px;
  min-width: 1px;
  align-self: stretch;

  background-color: var(--color-cream-border);

  -ms-flex-negative: 0;
  flex-shrink: 0;
  box-sizing: border-box;
}



/* =========================================
   TABLET
========================================= */

@media screen and (max-width: 1024px) {
  .highlight-item {
    padding: 2rem 0.75rem;
  }

  .highlight-title {
    font-size: 1.125rem;
  }
}

/* =========================================
   MOBILE
========================================= */

@media screen and (max-width: 600px) {
  .highlights-container {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;

    gap: 0;
  }

  .highlight-item {
    -webkit-box-flex: 0;
    -ms-flex: none;
    flex: none;

    width: 100%;
    padding: 2rem 1rem;
  }

  .highlight-divider {
    width: 100%;
    min-width: 0;
    height: 1px;
    min-height: 0;

    -ms-flex-item-align: stretch;
    align-self: stretch;
  }
}


/* Mobile responsive */
/* @media (max-width: 480px) {
  .highlight-item {
    padding: 1rem 0.25rem;
    gap: 0.35rem;
  }

  .highlight-header {
    gap: 0.35rem;
  }

  .highlight-icon {
    width: 19px;
    height: 19px;
  }

  .highlight-title {
    font-size: 0.65rem;
    line-height: 1.25;
  }

  .highlight-desc {
    font-size: 0.5rem;
    line-height: 1.35;
  }
} */


/* ==========================================================================
   5. OUR HISTORY SECTION
   ========================================================================== */
.history-section {
  background-color: var(--color-white);
  padding: 6rem 0;
}

.history-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4.5rem;
}

.history-content {
  max-width: 560px;
}

.history-body {
  font-size: 1.0625rem;
  font-weight: 500;
  color: #284E69;
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.25rem;
}

.history-btn {
  padding: 0.875rem 1.875rem;
}

.history-visual {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.history-photos {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 1rem;
}

.history-photo-card {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background-color: var(--color-cream);
}

.history-img {
  width: 100%;
  height: 438px !important;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.history-photo-card:hover .history-img {
  transform: scale(1.03);
}

.history-timeline-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 2.5rem;
}

.timeline-year {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-navy);
}

.timeline-line {
  flex: 1;
  height: 1px;
  background-color: #D2C6B8;
}

.timeline-tag {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-copper);
}

.timeline-today {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-navy);
}


/* ==========================================================================
   6. OUR SERVICES SECTION
   ========================================================================== */
.services-section {
  background-color: var(--color-cream);
  padding: 6rem 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}

.service-card {
  background-color: var(--color-white);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-cream-border);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(175, 114, 60, 0.3);
}

.service-art-wrap {
  width: 100%;
  height: 230px;
  background-color: #FAF6F0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--color-cream-border);
}

.service-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.service-card:hover .service-art {
  transform: scale(1.04);
}

.service-card-body {
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-card-title {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.service-card-desc {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}


/* ==========================================================================
   7. OUR COMMITMENT & LOCAL CARE SECTION
   ========================================================================== */
.commitment-section {
  background-color: var(--color-dusty-blue);
  overflow: hidden;
}

.commitment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
}

.commitment-photo-col {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.commitment-couple-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.commitment-content-col {
  position: relative;
  display: flex;
  align-items: center;
  padding: 5rem 2.5rem;
}


.foliage-watermark {
  position: absolute;
  right: 0;
  bottom: 0;

  width: 180px;
  height: 450px;

  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom right;

  opacity: 0.65;
  pointer-events: none;
  z-index: 1;
}

.commitment-content-col {
  position: relative;
  display: flex;
  align-items: center;
  padding: 5rem 2.5rem;
}

.commitment-inner {
  position: relative;
  z-index: 777;
  max-width: 600px;
}


.commitment-inner {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.commitment-text {
  font-size: 1.0625rem;
  color: var(--color-navy);
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.25rem;
}

.commitment-btn {
  padding: 0.875rem 2rem;
}


/* ==========================================================================
   8. RECENT OBITUARIES SECTION
   ========================================================================== */
.obituaries-section {
  background-color: var(--color-cream);
  padding: 6rem 0;
}

.obituaries-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.5rem;
}

.view-all-link {
  font-size: 1.0625rem;
  margin-bottom: 1rem;
}

.obituaries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.45rem;
}

.obituary-card {
  background-color: var(--color-white);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-cream-border);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.obituary-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(175, 114, 60, 0.3);
}

.obituary-photo-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #F0ECE4;
  overflow: hidden;
}

.obituary-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.obituaries-section .obituary-photo {
  object-fit: contain;
}

.obituary-card:hover .obituary-photo {
  transform: scale(1.04);
}

.obituary-info {
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.obituary-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.3;
}

.obituary-dates {
  font-family: var(--font-serif);
  font-size: 0.9375rem;
  
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}


/* ==========================================================================
   9. OUR LOCATIONS SECTION
   ========================================================================== */
.locations-section {
  background-color: var(--color-white);
  padding: 6rem 0;
}

.locations-header {
  margin-bottom: 3.5rem;
}

.locations-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 1fr;
  align-items: stretch;
  gap: 2.5rem;
}

.location-photo-wrap {
  
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 360px;
}

.location-photo {
  width: 100%;
  /*height: 100%;*/
  object-fit: cover;
}

.location-details-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
}

.location-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.3;
}

.location-address {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-style: normal;
  color: var(--text-secondary);
  line-height: 1.6;
}

.location-phone {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  padding-left:5px;
  color: var(--color-navy);
  transition: color var(--transition-fast);
}

.community-divider {
  width: 183px;
  height: 2px;
  background-color: #b98142;
  margin: 0 auto;
}

.location-phone:hover {
  color: var(--color-copper);
}

/* .location-actions {
  margin-top: 0.2rem;
} */

.location-quote-card {
  background-color: var(--color-cream);
  border: 1px solid var(--color-cream-border);
  
  padding: 2rem 3.7rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.location-quote-text {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 600;
  font-style: italic;
  color: var(--color-navy);
  line-height: 1.6;
  text-align: center;
}


/* ==========================================================================
   10. IMMEDIATE NEED CTA BANNER
   ========================================================================== */
.cta-banner-section {
  position: relative;
  background-color: #1a3447;
  padding: 6rem 0;
  overflow: hidden;
  text-align: center;
}

.cta-bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.9);
}

.cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.88) 0%,
    rgba(255, 255, 255, 0.78) 50%,
    rgba(255, 255, 255, 0.6) 100%
  ); */
  pointer-events: none;
}

.cta-container {
  position: relative;
  z-index: 2;
  max-width: 1000px;
}

.cta-eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-copper);
  margin-bottom: 0.75rem;
}

.cta-heading {
  font-family: var(--font-serif);
  font-size: 2.75rem;
  font-size: clamp(2.25rem, 3.5vw, 3.25rem);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.cta-subtitle {
  font-size: 1.1875rem;
  color: #14384F;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.cta-btn {
  padding: 0.9375rem 2rem;
  font-size: 1.0625rem;
}


/* ==========================================================================
   11. FOOTER & SUB-FOOTER
   ========================================================================== */
.site-footer {
  background-color: var(--color-navy);
  color: var(--color-white);
}

.footer-container {
  padding-top: 5rem;
  padding-bottom: 4.5rem;
}

.footer-top-row {
  display: grid;
  grid-template-columns: 1.5fr auto 1fr auto 1.15fr auto 1.15fr;
  align-items: flex-start;
  gap: 2.5rem;
}

.footer-divider {
  width: 1px;
  height: 100%;
  min-height: 180px;
  background-color: rgba(255, 255, 255, 0.12);
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-brand-col {
  max-width: 340px;
}

.footer-brand-link {
  display: inline-block;
  margin-bottom: 1.5rem;
}

.footer-logo {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.footer-family-copy {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  transition: all var(--transition-fast);
}

.social-link:hover {
  background-color: var(--color-copper);
  transform: translateY(-2px);
}

.footer-heading {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-nav-list a {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--transition-fast);
}

.footer-nav-list a:hover {
  color: var(--color-copper);
  padding-left: 4px;
}

.footer-info-block {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer-location-title {
  font-weight: 600;
  color: var(--color-white);
}

.footer-address {
  font-style: normal;
  line-height: 1.6;
}

.footer-contact-line a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-contact-line a:hover {
  color: var(--color-copper);
}

.footer-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: #FFFFFCCC;
  font-weight: 400;
  margin-top: 0.25rem;
  transition: color var(--transition-fast);
  padding-left: 5px;;
}

.footer-link-arrow:hover {
  color: #D6975E;
}

/* Sub-footer */
.sub-footer {
  background-color: var(--color-navy-dark);
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
}

.sub-footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.tagline-text {
  letter-spacing: 0.02em;
}

.footer-location{
  padding-left:5px;
}
.footer-phone, .footer-mail{
  padding-left:10px;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

/* Large Tablets & Small Laptops (<= 1200px) */
@media (max-width: 1200px) {
  .highlights-container {
    flex-wrap: wrap;
    gap: 2rem;
  }
  .highlight-item {
    flex: 1 1 calc(50% - 2rem);
  }
  .highlight-divider {
    display: none;
  }

  .footer-top-row {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  .footer-divider {
    display: none;
  }
}

/* Tablets (<= 992px) */
@media (max-width: 992px) {
  .utility-bar {
    display: none; /* Mobile header optimization */
  }

  .nav-menu {
    position: fixed;
    top: 75px;
    left: 0;
    width: 100%;
    height: calc(100vh - 75px);
    background-color: var(--color-white);
    padding: 2.5rem var(--container-padding);
    flex-direction: column;
    align-items: flex-start;
    transform: translateX(-100%);
    transition: transform var(--transition-normal);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    width: 100%;
  }

  .nav-link {
    font-size: 1.25rem;
    display: block;
    width: 100%;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-cream-border);
  }

  .mobile-toggle {
    display: flex;
  }

  .header-cta-btn {
    display: none; /* In nav drawer on mobile */
  }

  /* Hero */
  .hero-container {
    grid-template-columns: 1fr;
    text-align: left;
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
  .hero-badge-wrap {
    justify-content: flex-start;
    padding-right: 0;
    margin-top: 1rem;
  }
  .hero-seal-badge {
    max-width: 200px;
  }

  /* History */
  .history-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .history-content {
    max-width: 100%;
  }

  /* Services Grid */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Commitment */
  .commitment-grid {
    grid-template-columns: 1fr;
  }
  .commitment-photo-col {
    min-height: 380px;
  }
  .commitment-content-col {
    padding: 4rem var(--container-padding);
  }

  /* Obituaries */
  .obituaries-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Locations */
  .locations-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .location-photo-wrap {
    max-height: 350px;
  }
}

/* Mobile Phones (<= 640px) */
@media (max-width: 640px) {
  :root {
    --container-padding: 18px;
  }

  .brand-logo {
    height: 52px;
  }

  .hero-headline {
    font-size: 2.25rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-btn {
    width: 100%;
  }

  .highlights-container {
    flex-direction: column;
    gap: 2rem;
  }
  .highlight-item {
    flex: 1 1 100%;
  }

  .history-photos {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .obituaries-grid {
    grid-template-columns: 1fr;
  }
  .obituaries-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .cta-btn {
    width: 100%;
  }

  .footer-top-row {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .sub-footer-container {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
}


/* ==========================================================================
   ABOUT PAGE
   Reuses the global styles above (.container, .eyebrow, .section-eyebrow,
   .section-heading, .btn, .btn-copper, .btn-arrow) and homepage blocks
   (.hero-*, .history-*, .highlight-*, .commitment-*, .foliage-watermark).
   Only about-specific additions and small overrides live below.
   ========================================================================== */

/* ---------- A1. Inner hero (extends .hero-section) ---------- */
.inner-hero {
  min-height: 638px;
  background-color: var(--color-cream);
}

.inner-hero .hero-bg-layer {
  left: auto;
  right: 0;
  width: 100%;
  transform: none;
  background-position: left center;
}

.inner-hero .hero-overlay {
  background: linear-gradient(90deg, var(--color-cream) 36%, rgba(248, 243, 237, 0) 58%);
}

.inner-hero .hero-container {
  grid-template-columns: 1fr;
}

.inner-hero .hero-intro {
  max-width: 610px;
  margin-bottom: 0;
}

.hero-rule {
  width: 120px;
  height: 2px;
  background-color: #D8C9AC;
  margin-bottom: 1.5rem;
}

/* ---------- A2. Section tabs ---------- */
.about-tabs {
  background-color: var(--color-cream);
  border-top: 1px solid var(--color-cream-border);
}

.about-tabs-list {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.about-tabs-list::-webkit-scrollbar {
  display: none;
}

.about-tab {
  position: relative;
  display: block;
  padding: 1.75rem 1.375rem;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-navy);
  white-space: nowrap;
}

.about-tab::after {
  content: '';
  position: absolute;
  left: 1.375rem;
  right: 1.375rem;
  bottom: 1.375rem;
  height: 2px;
  background-color: var(--color-copper);
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

.about-tab:hover::after,
.about-tab.active::after {
  transform: scaleX(1);
}

/* ---------- A3. History: polaroid + vertical timeline ---------- */
.about-history .history-container {
  grid-template-columns: 1fr 1fr auto;
  gap: 2.5rem;
}

.founders-polaroid {
  max-width: 520px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 1.25rem;
  background-color: #F8F3E7;
  box-shadow: var(--shadow-lg);
  transform: rotate(-3deg);
}

.founders-photo {
  width: 100%;
  aspect-ratio: 534 / 374;
  object-fit: cover;
}

.founders-caption {
  margin-top: 1.125rem;
  font-family: 'Caveat', cursive;
  font-size: clamp(1.5rem, 2vw, 1.8125rem);
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  color: var(--color-navy);
}

.legacy-timeline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  width: 170px;
  text-align: center;
  color: var(--color-copper);
}

.legacy-year {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1;
}

.legacy-line {
  width: 2px;
  height: 40px;
  background-color: #D8C9AC;
}

.legacy-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--color-copper);
}

.legacy-label {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.6;
}

.legacy-ornament {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  line-height: 1;
}

.legacy-ornament::before,
.legacy-ornament::after {
  content: '';
  width: 2.5rem;
  height: 2px;
  background-color: #D8C9AC;
}

/* ---------- A4. Family & Community (reuse .commitment-* grid) ---------- */
.about-family,
.about-community {
  overflow: hidden;
}

.about-family {
  background-color: var(--color-cream);
}

.about-community {
  background-color: var(--color-white);
}

.about-family .commitment-couple-img {
  object-position: center top;
}

/* keep community text aligned with the page container (photo sits on the right) */
.about-community .commitment-content-col {
  padding-left: max(2.5rem, calc((100vw - var(--container-max)) / 2 + var(--container-padding)));
}

/* ---------- A5. Facilities gallery (reuse .history-section / .history-container) ---------- */
.facility-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.facility-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.facility-photo-main {
  grid-column: 1 / -1;
  aspect-ratio: 708 / 383;
}

.facility-photo {
  aspect-ratio: 348 / 199;
}

/* ---------- A6. Values (reuse .highlight-* items) ---------- */
.values-section {
  position: relative;
  background-color: #EAF0F4;
  padding: 6rem 0;
  overflow: hidden;
}

.values-container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr);
  align-items: center;
  gap: 3rem;
}

.values-grid .highlight-item {
  justify-content: flex-start;
  gap: 1.25rem;
  padding: 1.5rem 1.25rem;
}

.values-grid .highlight-header {
  gap: 1.25rem;
}

.values-grid .highlight-icon {
  width: 68px;
  height: 68px;
}

.values-grid .highlight-title {
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.values-grid .highlight-desc {
  font-size: 1rem;
  line-height: 1.5;
}

.foliage-left {
  left: 0;
  right: auto;
  top: 100px;
  bottom: auto;
  transform: scaleX(-1);
}

/* ---------- A7. About responsive ---------- */
@media (max-width: 992px) {
  .inner-hero .hero-bg-layer {
    width: 100%;
    background-position: center;
  }

  .inner-hero .hero-overlay {
    background: rgba(248, 243, 237, 0.88);
  }

  .about-history .history-container {
    grid-template-columns: 1fr;
  }

  .founders-polaroid {
    order: -1;
  }

  .legacy-timeline {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 1rem 1.5rem;
  }

  .legacy-line {
    width: 40px;
    height: 2px;
  }

  .values-container {
    grid-template-columns: 1fr;
  }

  .foliage-left {
    display: none;
  }

  .about-community .commitment-content-col {
    padding-left: var(--container-padding);
  }
}

@media (max-width: 640px) {
  .legacy-timeline {
    flex-direction: column;
  }

  .legacy-line {
    width: 2px;
    height: 40px;
  }

  .about-tabs-list {
    justify-content: flex-start;
  }

  .about-tab {
    padding: 1.25rem 1rem;
  }

  .about-tab::after {
    left: 1rem;
    right: 1rem;
    bottom: 0.875rem;
  }

  .values-section {
    padding: 4rem 0;
  }
}


/* ==========================================================================
   SERVICE PAGES (CREMATION & BURIAL) + CONTACT PAGE
   Reuses: .container, .eyebrow, .section-eyebrow, .section-heading,
   .section-subtitle, .section-header-center, .btn-*, .card-link,
   .inner-hero / .hero-*, .highlight-*, .services-* / .service-card,
   .commitment-*, .foliage-watermark, .cta-*, footer.
   Only page-specific additions live below.
   ========================================================================== */

/* ---------- S0. Shared helpers ---------- */
.sprite-hidden {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
body.menu-open { overflow: hidden; }

/* Line icons drawn from the inline SVG sprite */
.icon-line {
  fill: none;
  stroke: var(--color-copper);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-stroke {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Current page in the main navigation */
.nav-link[aria-current="page"] {
  color: var(--color-copper);
}

.nav-link[aria-current="page"]::after {
  width: 100%;
}

/* Visible keyboard focus for the new components */
.btn:focus-visible,
.card-link:focus-visible,
.resource-card:focus-visible,
.faq-question:focus-visible {
  outline: 2px solid var(--color-copper);
  outline-offset: 3px;
}

.section-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.25rem;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.7;
  color: #284E69;
}

/* ---------- S1. Inner hero (compact variant) ---------- */
.inner-hero.hero-compact {
  min-height: 480px;
}

.inner-hero.hero-art .hero-overlay {
  background: linear-gradient(90deg, rgba(248, 243, 237, 0.7) 0%, rgba(248, 243, 237, 0) 55%);
}

.inner-hero .hero-content {
  max-width: 600px;
}

.inner-hero .hero-lead {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-size: clamp(1.125rem, 1.4vw, 1.25rem);
  font-weight: 500;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.inner-hero .hero-actions {
  margin-top: 2.25rem;
}

/* ---------- S2. Image + text split (white, contained) ---------- */
.split-section {
  background-color: var(--color-white);
  padding: 6rem 0;
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4.5rem;
}

.split-content {
  max-width: 540px;
}

.split-media {
  overflow: hidden;
  border-radius: 4px;
  background-color: var(--color-cream);
  box-shadow: var(--shadow-md);
}

.split-media img {
  width: 100%;
 
  aspect-ratio: 1.57 / 1;
  object-fit: cover;
}

/* ---------- S3. Option cards section: tighten service cards ---------- */
.options-section .service-art-wrap {
  height: 210px;
}

.options-section .service-card-title {
  font-size: 1.25rem;
}

/* ---------- S4. Full-bleed split with soft blue panel ---------- */
.commitment-section.commitment-soft {
  background-color: #EAF0F4;
}

.commitment-soft .commitment-grid {
  min-height: 460px;
}

.commitment-soft .commitment-content-col {
  padding: 4rem 3.5rem;
}

.commitment-soft .foliage-watermark {
  top: 0;
  bottom: auto;
  height: 300px;
  opacity: 0.5;
}

/* ---------- S5. FAQ accordion ---------- */
.faq-section {
  background-color: var(--color-white);
  padding: 6rem 0;
}

.faq-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.faq-header .section-heading {
  margin-bottom: 0;
}

.faq-header .view-all-link {
  margin-bottom: 0.5rem;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: start;
  gap: 1rem 1.5rem;
}

.faq-item {
  background-color: var(--color-white);
  border: 1px solid var(--color-cream-border);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.faq-item[open] {
  border-color: rgba(175, 114, 60, 0.45);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-navy);
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-copper);
  transform: translateY(-50%);
  transition: transform var(--transition-fast);
}

.faq-icon::after {
  transform: translateY(-50%) rotate(90deg);
}

.faq-item[open] .faq-icon::after {
  transform: translateY(-50%) rotate(0deg);
}

.faq-answer {
  padding: 0 1.5rem 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #284E69;
}

/* ---------- S6. Contact: info bar ---------- */
.contact-info .highlight-item {
  gap: 0.35rem;
}

.contact-detail {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-navy);
}

.contact-detail a:hover {
  color: var(--color-copper);
}

.contact-info .highlight-desc {
  margin-top: 0.25rem;
}

/* ---------- S7. Contact: form + immediate help ---------- */
.contact-form-section {
  background-color: var(--color-white);
  padding: 6rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 3rem;
}

.contact-form {
  display: grid;
  gap: 0.75rem;
}

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

.form-field {
  position: relative;
  background-color: var(--color-white);
  border: 1px solid #D9D2C8;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-field:focus-within {
  border-color: var(--color-copper);
  box-shadow: 0 0 0 3px rgba(175, 114, 60, 0.18);
}

.form-control {
  display: block;
  width: 100%;
  padding: 1.3rem 1rem 0.45rem;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--color-navy);
}

.form-label {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-navy);
  pointer-events: none;
  transition: top var(--transition-fast), transform var(--transition-fast), font-size var(--transition-fast);
}

.form-label .req {
  color: var(--color-copper);
}

/* Label floats up once the field is focused or has a value */
.form-control:focus + .form-label,
.form-control:not(:placeholder-shown) + .form-label,
.form-field--static .form-label {
  top: 0.55rem;
  transform: none;
  font-size: 0.75rem;
  font-weight: 600;
}

.form-field--static .form-control {
  padding-top: 1.75rem;
  padding-bottom: 0.9rem;
}

select.form-control {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.5rem;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230D334A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
  line-height: 1.5;
}

.form-submit {
  justify-self: start;
  margin-top: 0.5rem;
}

.contact-aside {
  display: flex;
  flex-direction: column;
  background-color: var(--color-cream);
  overflow: hidden;
}

.contact-aside-photo img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.contact-aside-card {
  position: relative;
  flex: 1;
  padding: 2rem 2rem 2.25rem;
  overflow: hidden;
}

.contact-aside-card > *:not(.foliage-watermark) {
  position: relative;
  z-index: 2;
}

.contact-aside-card .section-body {
  margin-bottom: 1.5rem;
  max-width: 440px;
}

.contact-aside-card .foliage-watermark {
  width: 150px;
  height: 230px;
  top: 0;
  bottom: auto;
  opacity: 0.4;
}

/* ---------- S8. Contact: location panel + map ---------- */
.contact-location {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
  background-color: #EAF0F4;
}

.contact-location-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 4rem 3.5rem 4rem max(2.5rem, calc((100vw - var(--container-max)) / 2 + var(--container-padding)));
}

.contact-location-panel .section-body {
  max-width: 480px;
  margin-bottom: 1.5rem;
}

.location-address-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-navy);
}

.location-address-row svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 0.15rem;
}

.contact-map {
  min-height: 380px;
  background-color: #DCE6EC;
}

.contact-map iframe {
  display: block;
  width: 100%;
  /*height: 100%;*/
  /*min-height: 380px;*/
  min-height: 566px;
  border: 0;
}

/* ---------- S9. Contact: helpful resources ---------- */
.resources-section {
  background-color: var(--color-white);
  padding: 6rem 0;
}

.resources-header {
  margin-bottom: 2.5rem;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.resource-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem 1.5rem 1.75rem;
  text-align: center;
  background-color: var(--color-white);
  border: 1px solid var(--color-cream-border);
  transition: all var(--transition-normal);
}

.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(175, 114, 60, 0.3);
}

.resource-icon {
  width: 40px;
  height: 40px;
}

.resource-title {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-navy);
}

.resource-desc {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.resource-card .card-link {
  margin-top: auto;
}

/* ---------- S10. Responsive ---------- */
@media (max-width: 992px) {
  .inner-hero.hero-compact {
    min-height: 0;
  }

  .split-section,
  .faq-section,
  .contact-form-section,
  .resources-section {
    padding: 4rem 0;
  }

  .split-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .split-content {
    max-width: 100%;
  }

  .commitment-soft .commitment-content-col {
    padding: 3rem var(--container-padding);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .contact-location {
    grid-template-columns: 1fr;
  }

  .contact-location-panel {
    padding: 3.5rem var(--container-padding);
  }

  .resources-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .faq-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-submit {
    justify-self: stretch;
  }

  .resources-grid {
    grid-template-columns: 1fr;
  }

  .contact-aside-card {
    padding: 1.75rem 1.25rem 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-icon::before,
  .faq-icon::after,
  .form-label,
  .resource-card {
    transition: none;
  }
}


/* ==========================================================================
   OBITUARIES, TESTIMONIALS, PLANNING AHEAD & LEGAL PAGES
   (Privacy Policy, Terms of Service, Accessibility Statement)
   Reuses: .inner-hero, .highlight-*, .split-*, .services-*, .commitment-*,
   .faq-*, .obituary-card, .obituaries-grid, .btn-*, .card-link, footer.
   ========================================================================== */

/* ---------- P0. Helpers ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.legal-toc-link:focus-visible,
.page-link:focus-visible,
.obit-actions a:focus-visible {
  outline: 2px solid var(--color-copper);
  outline-offset: 2px;
}

/* ---------- P1. Obituaries: search & filters ---------- */
.obit-filters-section {
  background-color: var(--color-cream);
  border-bottom: 1px solid var(--color-cream-border);
  padding: 2.25rem 0;
}

.obit-filters {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) auto 1px repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 1rem;
}

.obit-search {
  position: relative;
}

.obit-search-icon {
  position: absolute;
  top: 50%;
  left: 1rem;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  pointer-events: none;
}

.obit-search-input,
.obit-select {
  width: 100%;
  height: 48px;
  border: 1px solid #D9D2C8;
  border-radius: 0;
  background-color: var(--color-white);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--color-navy);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.obit-search-input {
  padding: 0 1rem 0 2.9rem;
}

.obit-search-input::placeholder {
  color: #4A6A80;
}

.obit-select {
  appearance: none;
  -webkit-appearance: none;
  padding: 0 2.5rem 0 1rem;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23AF723C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
}

.obit-search-input:focus,
.obit-select:focus {
  outline: 0;
  border-color: var(--color-copper);
  box-shadow: 0 0 0 3px rgba(175, 114, 60, 0.18);
}

.obit-search-btn {
  height: 48px;
  padding: 0 1.5rem;
}

.obit-filter-divider {
  align-self: stretch;
  width: 1px;
  background-color: var(--color-cream-border);
}

/* ---------- P2. Obituaries: directory & pagination ---------- */
.obit-directory {
  background-color: var(--color-white);
  padding: 3rem 0 5rem;
}

.obit-directory .obituary-info {
  gap: 0.35rem;
}

.obit-directory .obituary-dates {
  margin-bottom: 0.5rem;
}

.obit-actions {
  display: flex;
  margin-top: auto;
  padding-top: 0.875rem;
  border-top: 1px solid var(--color-cream-border);
}

.obituary-info .card-link {
  margin-bottom: 0.75rem;
}

.obit-actions a {
  flex: 1;
  padding: 0.25rem 0.5rem;
  font-size: 0.8125rem;
  text-align: center;
  color: var(--color-navy);
}

.obit-actions a + a {
  border-left: 1px solid var(--color-cream-border);
}

.obit-actions a:hover {
  color: var(--color-copper-hover);
}

.pagination {
  margin-top: 2.5rem;
}

.pagination-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.5rem;
  border: 1px solid #D9D2C8;
  background-color: var(--color-white);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-navy);
  transition: all var(--transition-fast);
}

.page-link:hover {
  border-color: var(--color-copper);
  color: var(--color-copper);
}

.page-link[aria-current="page"] {
  background-color: var(--color-copper);
  border-color: var(--color-copper);
  color: var(--color-white);
}

/* ---------- P3. Testimonials ---------- */
.testimonials-section {
  background-color: var(--color-white);
  padding: 6rem 0;
}

.testimonials-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.testimonials-header .section-heading {
  margin-bottom: 0;
}

.testimonials-lede {
  max-width: 520px;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #284E69;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.75rem;
  background-color: var(--color-cream);
  border: 1px solid var(--color-cream-border);
}

.testimonial-card::before {
  content: '\201C';
  height: 1.75rem;
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-copper);
}

.testimonial-quote {
  flex: 1;
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--color-navy);
}

.testimonial-card figcaption,
.band-testimonial figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.testimonial-card figcaption::before,
.band-testimonial figcaption::before {
  content: '';
  width: 32px;
  height: 2px;
  margin-bottom: 0.6rem;
  background-color: #D8C9AC;
}

.testimonial-name {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-navy);
}

.testimonial-name::before {
  content: '\2014\00a0';
}

.testimonial-place {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.band-testimonial {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.band-testimonial .testimonial-quote {
  flex: none;
  font-size: 1.25rem;
}

/* ---------- P4. Legal pages: layout ---------- */
.legal-page {
  background-color: var(--color-white);
  padding: 4rem 0 6rem;
}

.legal-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: start;
  gap: 2rem 3rem;
}

.legal-sidebar {
  position: sticky;
  top: 7.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-height: calc(240vh - 22rem);
  overflow-y: auto;
  scrollbar-width: thin;
}

.legal-toc {
  border: 1px solid var(--color-cream-border);
  background-color: var(--color-white);
}

.legal-toc-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.25rem;
  border-bottom: 1px solid var(--color-cream-border);
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-navy);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.legal-toc li:last-child .legal-toc-link {
  border-bottom: 0;
}

.legal-toc-link svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  opacity: 0;
}

.legal-toc-link:hover {
  background-color: var(--color-cream-card);
  color: var(--color-copper-hover);
}

.legal-toc-link.is-active {
  background-color: #F6EADC;
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--color-copper);
}

.legal-toc-link.is-active svg {
  opacity: 1;
}

.legal-help {
  padding: 1.5rem;
  border: 1px solid var(--color-cream-border);
  background-color: var(--color-white);
}

.legal-help-head {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1rem;
}

.legal-help-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
}

.legal-help-title {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-navy);
}

.legal-help p {
  margin-bottom: 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #284E69;
}

.legal-help .btn {
  width: 100%;
}

/* ---------- P5. Legal pages: content ---------- */
.legal-section {
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--color-cream-border);
  scroll-margin-top: 7.5rem;
}

.legal-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.legal-section h2 {
  margin-bottom: 0.75rem;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-navy);
}

.legal-section > p {
  font-size: 1rem;
  line-height: 1.7;
  color: #284E69;
}

.legal-list {
  display: grid;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.6;
  color: #284E69;
}

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

.legal-list li::before {
  content: '';
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--color-copper);
}

.legal-list strong {
  font-weight: 700;
  color: var(--color-navy);
}

/* Accessibility statement: feature tiles */
.a11y-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.25rem;
}

.a11y-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1.5rem 1rem;
  text-align: center;
  background-color: var(--color-cream);
}

.a11y-tile p {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.a11y-icon {
  width: 44px;
  height: 44px;
}

.a11y-icon.icon-line {
  stroke: var(--color-navy);
}

.a11y-icon--text {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 44px;
  text-align: center;
  color: var(--color-navy);
}

.a11y-title {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-navy);
}

/* Contact strip (Call / Email / Visit) */
.legal-contact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 1.25rem;
  background-color: #EAF0F4;
}

.legal-contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--color-navy);
}

.legal-contact-item + .legal-contact-item {
  border-left: 1px solid rgba(13, 51, 74, 0.1);
}

.legal-contact-item > svg {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
}

.legal-contact-title {
  margin-bottom: 0.1rem;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-navy);
}

.legal-contact-item a:hover {
  color: var(--color-copper);
}

/* ---------- P6. Responsive ---------- */
@media (max-width: 1200px) {
  .a11y-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .obit-filters {
    grid-template-columns: 1fr auto;
  }

  .obit-filter-divider {
    display: none;
  }

  .obit-filter-divider + .obit-select-wrap {
    grid-column: 1 / -1;
  }

  .testimonials-section,
  .obit-directory {
    padding: 4rem 0;
  }

  .testimonials-header {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Legal: contents list first, article second, help card last */
  .legal-page {
    padding: 3rem 0 4rem;
  }

  .legal-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .legal-sidebar {
    display: contents;
  }

  .legal-toc {
    order: 1;
  }

  .legal-toc ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .legal-toc li:nth-last-child(2) .legal-toc-link {
    border-bottom: 0;
  }

  .legal-content {
    order: 2;
  }

  .legal-help {
    order: 3;
  }

  .legal-contact {
    grid-template-columns: 1fr;
  }

  .legal-contact-item + .legal-contact-item {
    border-left: 0;
    border-top: 1px solid rgba(13, 51, 74, 0.1);
  }
}

@media (max-width: 640px) {
  .obit-filters {
    grid-template-columns: 1fr;
  }

  .obit-filter-divider + .obit-select-wrap {
    grid-column: auto;
  }

  .obit-search-btn {
    width: 100%;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .legal-toc ul {
    grid-template-columns: 1fr;
  }

  .legal-toc li:nth-last-child(2) .legal-toc-link {
    border-bottom: 1px solid var(--color-cream-border);
  }

  .a11y-features {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .legal-toc-link,
  .page-link,
  .obit-search-input,
  .obit-select {
    transition: none;
  }
}








.footer-copyrights-menu:hover{
  color: var(--color-copper);
}


/* ==========================================================================
   SAFARI COMPATIBILITY FALLBACKS
   These fallbacks preserve the existing design while improving support for
   older Safari/iOS Safari versions.
   ========================================================================== */

/* Smooth scrolling and sticky positioning */
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

.main-header {
  position: -webkit-sticky;
  position: sticky;
}

/* Flex gap fallback for older Safari versions */
@supports not (gap: 1rem) {
  .utility-links > * + * { margin-left: 1.5rem; }
  .nav-list > * + * { margin-left: 2rem; }
  .header-actions > * + * { margin-left: 1rem; }
  .hero-actions > * + * { margin-left: 1.25rem; }
  .cta-actions > * + * { margin-left: 1.25rem; }
  .footer-social-links > * + * { margin-left: 1rem; }
  .sub-footer-container > * + * { margin-left: 1rem; }

  .highlight-item,
  .highlight-header,
  .history-body,
  .history-visual,
  .service-card-body,
  .obituary-info,
  .location-details-col,
  .footer-info-block {
    row-gap: 0;
  }
  .highlight-header > * + * { margin-top: 0.45rem; }
  .highlight-item > * + * { margin-top: 0.4rem; }
  .history-body > * + * { margin-top: 1.25rem; }
  .history-visual > * + * { margin-top: 1.5rem; }
  .service-card-body > * + * { margin-top: 0.75rem; }
  .obituary-info > * + * { margin-top: 0.5rem; }
  .location-details-col > * + * { margin-top: 1.25rem; }
  .footer-info-block > * + * { margin-top: 0.75rem; }
}

/* Aspect-ratio fallback for obituary image boxes */
.obituary-photo-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
}
@supports not (aspect-ratio: 1 / 1) {
  .obituary-photo-wrap::before {
    content: "";
    display: block;
    padding-top: 100%;
  }
  .obituary-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }
}

/* Avoid older Safari flex/grid children shrinking unexpectedly */
.highlight-item,
.service-card,
.obituary-card,
.footer-col {
  min-width: 0;
}

/* Improve native form/control rendering consistency */
button,
input,
select,
textarea {
  -webkit-appearance: none;
  appearance: none;
  font: inherit;
}

/* Ensure SVGs and replaced elements stay within their layout boxes */
svg {
  max-width: 100%;
}

/* End Safari compatibility fallbacks */



/* Safari fix - Our History images */
.history-visual {
    min-width: 0;
    width: 100%;
    height: 100%;
}

.history-photos {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 1rem;
    align-items: stretch;
    height: 460px;
}

.history-photo-card {
    position: relative;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    border-radius: 4px;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.history-img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    object-position: center;
    -webkit-transition: -webkit-transform 0.3s ease;
    transition: transform 0.3s ease;
}

/* Tablet */
@media (max-width: 1024px) {
    .history-photos {
        height: 380px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .history-photos {
        height: 320px;
        gap: 0.75rem;
    }
}


/* ========================================================================
   SAFARI / iOS SAFARI COMPATIBILITY PATCH
   Keep this block at the very end so it overrides earlier duplicate rules.
   ======================================================================== */

/* Prevent iOS Safari from resizing text unexpectedly. */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Sticky headers need an explicit WebKit declaration on older Safari. */
.main-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
}

/* Keep grid and flex children from forcing columns wider than the viewport. */
.container,
.hero-container,
.history-container,
.history-content,
.history-visual,
.history-photos,
.services-grid,
.service-card,
.service-card-body,
.commitment-grid,
.commitment-content-col,
.obituaries-grid,
.obituary-card,
.obituary-info,
.locations-grid,
.location-details-col,
.footer-top-row,
.footer-col,
.legal-layout,
.legal-content,
.legal-sidebar,
.testimonials-grid,
.a11y-features {
  min-width: 0;
}

/* WebKit object-fit/image sizing stability. */
.history-photo-card,
.service-art-wrap,
.obituary-photo-wrap,
.location-photo-wrap {
  position: relative;
  overflow: hidden;
}

/* .history-img,
.service-art,
.obituary-photo,
.location-photo,
.commitment-couple-img {
  display: block;
  max-width: 100%;
  object-fit: cover;
  object-position: center;
} */

/* Fallback for Safari versions without aspect-ratio support. */
@supports not (aspect-ratio: 1 / 1) {
  .obituary-photo-wrap {
    height: auto;
  }

  .obituary-photo-wrap::before {
    content: "";
    display: block;
    padding-top: 100%;
  }

  .obituary-photo-wrap .obituary-photo {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
}

@supports not (aspect-ratio: 3 / 2) {
  .testimonial-image-wrap,
  .testimonial-photo-wrap {
    position: relative;
  }
}

/* Avoid `inset` dependency in older Safari. */
@supports not (inset: 0) {
  .obituary-photo {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
  }
}

/* Preserve native select affordance while normalizing other form controls. */
button,
input,
textarea {
  -webkit-appearance: none;
  appearance: none;
  font: inherit;
}

select {
  font: inherit;
  -webkit-appearance: menulist;
  appearance: auto;
}

/* Explicit transition prefixes for older WebKit builds. */
.btn,
.card-link,
.card-link svg,
.nav-link,
.nav-link::after,
.history-img,
.service-art,
.obituary-photo,
.social-link {
  -webkit-transition: all 0.2s ease;
}

.history-img,
.service-art,
.obituary-photo {
  -webkit-transition: -webkit-transform 0.3s ease;
  transition: transform 0.3s ease;
}

/* Prevent hover transforms from creating clipped artifacts in Safari. */
.history-photo-card,
.service-art-wrap,
.obituary-photo-wrap {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Avoid fixed mobile-menu height problems when Safari's browser bars move. */
@supports (height: 100dvh) {
  @media (max-width: 992px) {
    .nav-menu {
      height: calc(100dvh - 75px);
    }
  }
}

/* Respect reduced-motion settings, including the floating hero badge. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* End Safari / iOS Safari compatibility patch */



/* Consistent image sizing across Chrome and Safari */
img {
  max-width: 100%;
}

/* History images */
.history-photo-card {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.history-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Service cards */
.service-art-wrap {
  height: 230px;
  overflow: hidden;
}

.service-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Obituary images */
.obituary-photo-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.obituary-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Founder and facility images */
.founders-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 534 / 374;
  object-fit: cover;
}

.facility-photo-main {
  aspect-ratio: 708 / 383;
}

.facility-photo {
  aspect-ratio: 348 / 199;
}






/* ==========================================================================
   IMAGE SIZING: CHROME / SAFARI / FIREFOX / EDGE
   Rule: every wrapper has an explicit size, every image is absolutely
   positioned inside it. No height:100% on images, no dependence on grid
   stretch or aspect-ratio support.
   ========================================================================== */

/* ---------- Shared: image fills its wrapper ---------- */
.location-photo {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  width: 100%;
  /*height: 100%;*/
  max-width: none;
  object-fit: cover;
  object-position: center;
  -webkit-transition: -webkit-transform 0.3s ease;
  transition: transform 0.3s ease;
}
.history-img,
.service-art,
.obituary-photo,
.commitment-couple-img {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  -webkit-transition: -webkit-transform 0.3s ease;
  transition: transform 0.3s ease;
}

/* ---------- 1. HISTORY (home) ---------- */
.history-visual {
  width: 100%;
  min-width: 0;
  height: auto;               /* remove the old height:100% */
}

.history-photos {
  --history-h: 460px;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  grid-auto-rows: var(--history-h);   /* definite row height in every browser */
  gap: 1rem;
  height: var(--history-h);
  -webkit-box-flex: 0;
  -ms-flex: none;
  flex: none;                         /* don't let the flex column shrink it */
}

.history-photo-card {
  position: relative;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  border-radius: 4px;
  background-color: var(--color-cream);
  box-shadow: var(--shadow-md);
}

.history-photo-card:hover .history-img {
  -webkit-transform: scale(1.03);
  transform: scale(1.03);
}

@media (max-width: 1024px) {
  .history-photos { --history-h: 380px; }
}

@media (max-width: 767px) {
  .history-photos { --history-h: 320px; }
}

@media (max-width: 640px) {
  /* single column: each photo gets its own row */
  .history-photos {
    grid-template-columns: 1fr;
    grid-auto-rows: 280px;
    height: auto;
  }
}

/* ---------- 2. SERVICE CARDS ---------- */
.service-art-wrap {
  position: relative;
  display: block;
  width: 100%;
  height: 230px;
  overflow: hidden;
}

.options-section .service-art-wrap {
  height: 210px;
}

.service-card:hover .service-art {
  -webkit-transform: scale(1.04);
  transform: scale(1.04);
}

/* ---------- 3. OBITUARY CARDS (square, padding-ratio trick) ---------- */
.obituary-photo-wrap {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 100%;       /* 1:1, works in all Safari versions */
  aspect-ratio: auto;         /* cancel earlier aspect-ratio rules */
  overflow: hidden;
  background-color: #F0ECE4;
}

.obituary-photo-wrap::before {
  content: none;
  display: none;
}

.obituary-card:hover .obituary-photo {
  -webkit-transform: scale(1.04);
  transform: scale(1.04);
}

/* ---------- 4. LOCATION PHOTO ---------- */
.location-photo-wrap {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

@media (max-width: 992px) {
  .location-photo-wrap {
    height: 320px;
    min-height: 0;
    max-height: none;
  }
}

/* ---------- 5. COMMITMENT / FAMILY / COMMUNITY (full-bleed photo) ---------- */
.commitment-photo-col {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 600px;
  overflow: hidden;
}

.commitment-soft .commitment-photo-col {
  min-height: 460px;
}

@media (max-width: 992px) {
  .commitment-photo-col,
  .commitment-soft .commitment-photo-col {
    min-height: 380px;
  }
}

/* ---------- 6. ABOUT PAGE: founders + facilities ---------- */
.founders-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 534 / 374;
  object-fit: cover;
}

.facility-gallery img {
  display: block;
  width: 100%;
  height: auto;               /* aspect-ratio sets the height, not 100% */
  object-fit: cover;
}

.facility-photo-main { aspect-ratio: 708 / 383; }
.facility-photo      { aspect-ratio: 348 / 199; }

/* ---------- 7. CONTACT ASIDE PHOTO ---------- */
.contact-aside-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* ---------- 8. SPLIT SECTIONS (cremation / burial pages) ---------- */
.split-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: initial;
}


/* ==========================================================================
   EDGEWATER PAGE  
   ========================================================================== */

/* ---------- 1. Hero with map (extends .hero-section) ---------- */
.edgewater-hero {
  min-height: 560px;
  background: var(--color-cream) url('assets/images/edgewater-hero-leaf.jpg') left center / auto 100% no-repeat;
}

.edgewater-hero .hero-container {
  position: relative;
  z-index: 1;
  grid-template-columns: 1fr;
}

.edgewater-hero .hero-intro {
  max-width: 520px;
  margin-bottom: 0;
  font-family: var(--font-serif);
  color: var(--color-navy);
}

.edgewater-hero-map {
  position: absolute;
  top: 0;
  right: 0;
  width: 58%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%);
  mask-image: linear-gradient(90deg, transparent 0, #000 22%);
}

.edgewater-hero-rule {
  width: 100px;
  height: 2px;
  margin-bottom: 1.5rem;
  background-color: #D8C9AC;
}

/* ---------- 2. Services card ---------- */
.service-area-section {
  padding: 6rem 0;
  background-color: var(--color-white);
}

.service-area-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}

.service-area-card {
  padding: 1.75rem 2.5rem 2rem;
  background-color: #F9F6ED;
}

.service-area-card-title {
  margin-bottom: 1.25rem;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1.4;
  text-align: center;
  text-transform: uppercase;
  color: var(--color-navy);
}

.service-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  row-gap: 1.5rem;
}

.service-type {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  text-align: center;
  border-left: 1px solid #ECE6DA;
}

.service-type:nth-child(3n + 1) {
  border-left: 0;
}

.service-type img {
  width: 48px;
  height: 48px;
}

.service-type span {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-navy);
}

/* ---------- 3. Location + community list ---------- */
.edgewater-location-section {
  position: relative;
  padding: 6rem 0;
  background-color: #EBF0F4;
  overflow: hidden;
}

.edgewater-location-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.edgewater-location-info {
  padding-right: 4rem;
  border-right: 1px solid rgba(13, 51, 74, 0.12);
}

.edgewater-location-info .btn {
  margin-top: 0rem;
}

.edgewater-areas {
  padding-left: 4rem;
}

.edgewater-areas-title {
  margin-bottom: 0.75rem;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.2vw, 1.875rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-navy);
}

.edgewater-areas-intro {
  margin-bottom: 1rem;
  color: #284E69;
}

.edgewater-area-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.edgewater-area-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-navy);
}

.edgewater-area-list li::before {
  content: '';
  flex: 0 0 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-copper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- 4. Responsive ---------- */
@media (max-width: 992px) {

    .edgewater-hero .hero-bg-layer,
  .edgewater-hero .hero-overlay {
    display: none;
  }
  .edgewater-hero {
    display: block;
    min-height: 0;
    background-image: none;
  }

  .edgewater-hero-map {
    position: static;
    width: 100%;
    height: 260px;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .edgewater-hero .hero-container {
    padding-top: 3rem;
    padding-bottom: 3.5rem;
  }

  .service-area-section,
  .edgewater-location-section {
    padding: 4rem 0;
  }

  .service-area-grid,
  .edgewater-location-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .edgewater-location-info {
    padding-right: 0;
    padding-bottom: 2.5rem;
    border-right: 0;
    border-bottom: 1px solid rgba(13, 51, 74, 0.12);
  }

  .edgewater-areas {
    padding-left: 0;
  }
}

@media (max-width: 640px) {

    .edgewater-hero .hero-container {
    padding-top: 3rem;
    padding-bottom: 3.5rem;
   justify-content: flex-start;
  }

  .edgewater-hero-rule,
  .edgewater-hero .hero-intro {
    margin-left: auto;
    margin-right: auto;
  }
  .service-area-card {
    padding: 1.5rem 1rem;
  }

  .service-type-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-type:nth-child(3n + 1) {
    border-left: 1px solid #ECE6DA;
  }

  .service-type:nth-child(odd) {
    border-left: 0;
  }
}



/* Visible keyboard focus */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--color-navy);
  outline-offset: 3px;
}
.btn-copper:focus-visible { outline-color: var(--color-copper-active); }

/* Skip link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 2000;
  padding: 0.75rem 1.25rem;
  background: var(--color-navy);
  color: #fff;
  border-radius: 0 0 8px 8px;
}
.skip-link:focus { top: 0; }

/* Respect reduced-motion settings */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

#location .location-photo-wrap{min-height:inherit!important;}