/* ==========================================================================
   Serene Skin — soft, contemplative, spiritual / memorial garden
   Fraunces (display) + Nunito Sans (body) · lavender-grey, dusty blue, warm
   off-white, muted gold · light and airy, rounded, diffuse shadows
   ========================================================================== */

.style-serene {
  --color-primary: #5c6280;
  --color-primary-dark: #434768;
  --color-primary-light: #7a7fa0;

  --color-accent: #b09a6a;
  --color-accent-dark: #8f7a4e;
  --color-accent-light: #cdb98b;

  --color-bg-primary: #faf9f7;
  --color-bg-secondary: #f2f0f8;
  --color-bg-tertiary: #e8e5f0;
  --color-bg-dark: #3a3d56;

  --color-text-primary: #35384a;
  --color-text-secondary: #555870;
  --color-text-muted: #8688a0;
  --color-text-light: #f0eef8;
  --color-text-on-primary: #f0eef8;
  --color-text-on-accent: #faf9f7;

  --color-border: #dddaf0;
  --color-border-strong: #c8c5e0;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Nunito Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --font-size-base: 17px;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(60, 58, 90, 0.06);
  --shadow-md: 0 8px 28px rgba(60, 58, 90, 0.10);
  --shadow-lg: 0 20px 56px rgba(60, 58, 90, 0.14);

  background-color: var(--color-bg-primary);
}

.style-serene h1,
.style-serene h2,
.style-serene h3 {
  font-weight: 500;
  letter-spacing: -0.01em;
}

.style-serene h4,
.style-serene h5,
.style-serene h6 {
  font-weight: 600;
}

.style-serene .eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-primary-light);
}

.style-serene .section-header h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 400;
}

/* Soft botanical divider beneath centred headings */
.style-serene .section-header h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  margin: 0.9rem auto 0;
  background: linear-gradient(90deg, transparent, var(--color-accent-light), transparent);
  border-radius: var(--radius-pill);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.style-serene .site-header {
  position: relative;
  z-index: 100;
  background: var(--color-bg-primary);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition-base);
}

.style-serene .site-header__topbar {
  background: var(--color-bg-secondary);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
}

.style-serene .site-header__topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: 36px;
}

.style-serene .site-header__est {
  font-weight: 600;
  color: var(--color-primary-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.style-serene .site-header__topbar-note {
  font-style: italic;
  opacity: 0.8;
}

.style-serene .site-header__phone {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.style-serene .site-header__phone:hover {
  color: var(--color-primary);
}

.style-serene .site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  min-height: var(--header-height);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.style-serene .site-header__brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  color: var(--color-text-primary);
  margin-right: auto;
}

.style-serene .site-header__emblem {
  color: var(--color-primary);
  opacity: 0.75;
  flex-shrink: 0;
  transition: opacity var(--transition-fast);
}

.style-serene .site-header__brand:hover .site-header__emblem {
  opacity: 1;
}

.style-serene .site-header__name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.1;
  color: var(--color-text-primary);
  letter-spacing: -0.01em;
}

.style-serene .site-header__tagline {
  display: block;
  font-size: 0.77rem;
  font-style: italic;
  color: var(--color-text-muted);
  margin-top: 1px;
  font-family: var(--font-body);
}

.style-serene .site-nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  list-style: none;
}

.style-serene .site-nav__link {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-decoration: none;
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius-pill);
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.style-serene .site-nav__link:hover {
  color: var(--color-primary);
  background-color: var(--color-bg-secondary);
}

.style-serene .site-header__donate {
  flex-shrink: 0;
  border-radius: var(--radius-pill);
  letter-spacing: 0.05em;
}

.style-serene .mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1.5px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.style-serene .mobile-menu-toggle:hover {
  background-color: var(--color-bg-secondary);
  border-color: var(--color-primary-light);
}

.style-serene .mobile-menu-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  margin: 0 auto;
  background: var(--color-text-primary);
  border-radius: var(--radius-pill);
  transition: background-color var(--transition-fast);
}

.style-serene .mobile-menu {
  background: var(--color-bg-primary);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

.style-serene .mobile-menu__list {
  list-style: none;
  padding: var(--space-xs) 0;
}

.style-serene .mobile-menu__list a {
  display: block;
  padding: 0.85rem var(--gutter);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.style-serene .mobile-menu__list a:hover {
  background: var(--color-bg-secondary);
  color: var(--color-primary);
}

.style-serene .mobile-menu__cta {
  color: var(--color-accent-dark) !important;
  font-weight: 700 !important;
}

.style-serene .site-header.is-scrolled {
  box-shadow: 0 4px 24px rgba(60, 58, 90, 0.08);
}

@media (max-width: 1180px) {
  .style-serene .site-nav,
  .style-serene .site-header__donate {
    display: none;
  }
  .style-serene .mobile-menu-toggle {
    display: flex;
  }
}

@media (max-width: 620px) {
  .style-serene .site-header__topbar-note {
    display: none;
  }
  .style-serene .site-header__tagline {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Hero — ethereal sky, soft gradient, abundant light
   -------------------------------------------------------------------------- */
.style-serene .hero {
  position: relative;
  overflow: hidden;
  background: var(--color-bg-primary);
  /* Layered gradients: warm light above, soft lavender atmosphere below */
  background-image:
    radial-gradient(ellipse 110% 60% at 50% -10%, rgba(240, 238, 250, 0.9) 0%, transparent 60%),
    radial-gradient(ellipse 80% 80% at 20% 80%, rgba(176, 154, 106, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 80% 80% at 80% 80%, rgba(92, 98, 128, 0.08) 0%, transparent 50%),
    linear-gradient(165deg, #f7f6fb 0%, #eceaf6 40%, #f0eefd 70%, #f5f3ff 100%);
  border-bottom: 1px solid var(--color-border);
}

/* Subtle SVG haze layer */
.style-serene .hero__sky {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='400' viewBox='0 0 800 400'%3E%3Cellipse cx='400' cy='80' rx='500' ry='120' fill='rgba(255,255,255,0.35)'/%3E%3Cellipse cx='200' cy='320' rx='280' ry='80' fill='rgba(176,154,106,0.04)'/%3E%3Cellipse cx='650' cy='300' rx='220' ry='70' fill='rgba(92,98,128,0.05)'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: center top;
  pointer-events: none;
}

/* Central glow — warmth of light through the scene */
.style-serene .hero__glow {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(ellipse at 50% 30%, rgba(255, 253, 245, 0.7) 0%, transparent 65%);
  pointer-events: none;
}

.style-serene .hero__inner {
  position: relative;
  padding-top: clamp(4rem, 9vw, 7rem);
  padding-bottom: clamp(4rem, 9vw, 7rem);
  text-align: center;
}

.style-serene .hero__frame {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 5vw, 4rem);
  background: rgba(250, 249, 247, 0.7);
  backdrop-filter: blur(2px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(220, 217, 240, 0.7);
  box-shadow:
    0 4px 32px rgba(92, 98, 128, 0.07),
    0 1px 4px rgba(92, 98, 128, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.style-serene .hero__eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-primary-light);
  margin-bottom: var(--space-xs);
}

.style-serene .hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  font-weight: 400;
  line-height: 1.08;
  color: var(--color-text-primary);
  margin-bottom: var(--space-xs);
  letter-spacing: -0.015em;
}

.style-serene .hero__tagline {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-style: italic;
  font-weight: 400;
  color: var(--color-text-secondary);
  max-width: 52ch;
  margin: 0 auto var(--space-md);
  line-height: 1.65;
}

.style-serene .hero__ornament {
  color: var(--color-accent-light);
  margin-top: var(--space-xs);
}

.style-serene .hero__search {
  max-width: 700px;
  margin: var(--space-xl) auto 0;
}

.style-serene .hero__search-label {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
}

.style-serene .hero__search-hint {
  margin-top: var(--space-sm);
  font-size: 0.88rem;
  font-style: italic;
  color: var(--color-text-muted);
}

/* Search box refinements in the hero */
.style-serene .hero__search .interment-search {
  border-radius: var(--radius-lg);
  box-shadow:
    0 8px 32px rgba(92, 98, 128, 0.12),
    0 2px 8px rgba(92, 98, 128, 0.06);
  border: 1px solid var(--color-border);
}

.style-serene .hero__search .interment-search__submit {
  border-radius: calc(var(--radius-lg) - 4px);
}

/* --------------------------------------------------------------------------
   Shared component refinements
   -------------------------------------------------------------------------- */

/* Notice banner */
.style-serene .notice-banner {
  background: var(--color-bg-secondary);
  border-bottom: 1px solid var(--color-border);
}

/* Quick links */
.style-serene .quicklink {
  border-radius: var(--radius-lg);
  border-color: var(--color-border);
  background: var(--color-bg-primary);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.style-serene .quicklink:hover {
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-md);
}

.style-serene .quicklink__icon {
  background: var(--color-bg-secondary);
  color: var(--color-primary);
  border-radius: 50%;
}

.style-serene .quicklink__more {
  color: var(--color-primary);
}

/* Heritage / about block */
.style-serene .heritage__media {
  border-radius: var(--radius-lg);
}

.style-serene .heritage__est {
  border-radius: var(--radius-md);
  background: var(--color-primary);
}

.style-serene .heritage__stat-value {
  color: var(--color-primary);
}

/* Recent interments */
.style-serene .recent-card {
  border-radius: var(--radius-lg);
  border-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.style-serene .recent-card:hover {
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-md);
}

.style-serene .recent-card__marker {
  background: var(--color-bg-secondary);
  color: var(--color-primary);
}

.style-serene .recent-card__view {
  color: var(--color-primary);
}

/* Notable burials */
.style-serene .notable-card {
  border-radius: var(--radius-lg);
  border-top-color: var(--color-primary-light);
  box-shadow: var(--shadow-sm);
}

.style-serene .notable-card:hover {
  box-shadow: var(--shadow-md);
}

/* Support block */
.style-serene .support__card {
  border-radius: var(--radius-lg);
  border-color: var(--color-border);
  box-shadow: var(--shadow-md);
}

.style-serene .support__amount {
  border-radius: var(--radius-pill);
  border-color: var(--color-border-strong);
}

.style-serene .support__amount:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* CTA Banner */
.style-serene .cta-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border-radius: var(--radius-lg);
}

/* Map teaser */
.style-serene .map-teaser {
  border-radius: var(--radius-lg);
  border-color: var(--color-border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

/* Interment search (standalone, not in hero) */
.style-serene .interment-search {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.style-serene .interment-search__submit {
  border-radius: calc(var(--radius-lg) - 4px);
}

/* Interment filter / list */
.style-serene .interment-card__link {
  border-radius: var(--radius-lg);
  border-color: var(--color-border);
}

.style-serene .interment-card__link:hover {
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-sm);
}

.style-serene .interment-card__marker {
  background: var(--color-bg-secondary);
  color: var(--color-primary);
  border-radius: 50%;
}

.style-serene .interment-card__badge {
  background: var(--color-bg-tertiary);
  color: var(--color-primary);
  border-radius: var(--radius-pill);
}

/* Record page */
.style-serene .record__marker {
  border-radius: var(--radius-lg);
  background: var(--color-bg-secondary);
}

.style-serene .record__initials {
  color: var(--color-primary);
}

.style-serene .record__tag {
  border-radius: var(--radius-pill);
}

.style-serene .record__tag--veteran {
  background: var(--color-primary);
}

.style-serene .record__tag--notable {
  background: var(--color-primary-dark);
}

.style-serene .record__notable {
  border-left-color: var(--color-primary-light);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.style-serene .record__inscription {
  background: var(--color-bg-secondary);
  border-color: var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-style: italic;
}

/* Sidebar cards */
.style-serene .sidebar-card {
  border-radius: var(--radius-lg);
  border-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.style-serene .sidebar-card h2 {
  border-bottom-color: var(--color-primary-light);
}

/* Buttons */
.style-serene .btn {
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  letter-spacing: 0.05em;
}

/* Focus ring colour */
.style-serene :focus-visible {
  outline-color: var(--color-primary);
}

/* Breadcrumb */
.style-serene .breadcrumb__list a {
  color: var(--color-text-secondary);
}

.style-serene .breadcrumb__list a:hover {
  color: var(--color-primary);
}

/* Pagination */
.style-serene .pagination__link {
  color: var(--color-primary);
  border-radius: var(--radius-pill);
}

.style-serene .pagination__link:hover {
  background-color: var(--color-bg-secondary);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.style-serene .site-footer {
  position: relative;
  background: var(--color-bg-dark);
  color: var(--color-text-light);
  padding-top: 0;
}

/* Wave SVG at the top of the footer */
.style-serene .site-footer__wave {
  display: block;
  line-height: 0;
  color: var(--color-bg-dark);
  margin-top: -1px;
}

.style-serene .site-footer__wave svg {
  width: 100%;
  height: 42px;
  display: block;
}

.style-serene .site-footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1.1fr 1fr 1.1fr;
  gap: var(--space-xl);
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

.style-serene .site-footer__name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 400;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
}

.style-serene .site-footer__about,
.style-serene .site-footer__support {
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(240, 238, 248, 0.68);
}

.style-serene .site-footer__nonprofit {
  margin-top: var(--space-sm);
  font-size: 0.8rem;
  font-style: italic;
  color: rgba(240, 238, 248, 0.5);
}

.style-serene .site-footer__social {
  display: inline-flex;
  margin-top: var(--space-sm);
  color: var(--color-accent-light);
  opacity: 0.8;
  transition: opacity var(--transition-fast);
}

.style-serene .site-footer__social:hover {
  opacity: 1;
}

.style-serene .site-footer__col h3 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-accent-light);
  margin-bottom: var(--space-md);
}

.style-serene .site-footer__address,
.style-serene .site-footer__hours {
  font-style: normal;
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(240, 238, 248, 0.75);
}

.style-serene .site-footer__address p {
  margin-bottom: var(--space-xs);
}

.style-serene .site-footer__mailing {
  border-left: 2px solid rgba(240, 238, 248, 0.12);
  padding-left: var(--space-sm);
  margin: var(--space-xs) 0;
  font-style: italic;
}

.style-serene .site-footer__hours {
  margin-top: var(--space-sm);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.88rem;
  color: rgba(240, 238, 248, 0.65);
}

.style-serene .site-footer a {
  color: rgba(240, 238, 248, 0.78);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.style-serene .site-footer a:hover {
  color: var(--color-accent-light);
}

.style-serene .site-footer__links {
  list-style: none;
}

.style-serene .site-footer__links li {
  margin-bottom: var(--space-xs);
}

.style-serene .site-footer__links a {
  font-size: 0.92rem;
}

.style-serene .site-footer .btn--accent {
  border-radius: var(--radius-pill);
  margin-top: var(--space-sm);
}

.style-serene .site-footer__bottom {
  border-top: 1px solid rgba(240, 238, 248, 0.10);
}

.style-serene .site-footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
  padding: var(--space-md) 0;
  font-size: 0.82rem;
  color: rgba(240, 238, 248, 0.45);
}

.style-serene .site-footer__legal {
  display: flex;
  gap: var(--space-md);
}

.style-serene .site-footer__legal a {
  color: rgba(240, 238, 248, 0.5);
}

.style-serene .site-footer__legal a:hover {
  color: var(--color-accent-light);
}

@media (max-width: 880px) {
  .style-serene .site-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }
}

@media (max-width: 520px) {
  .style-serene .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .style-serene .hero__frame {
    border-radius: var(--radius-md);
  }
}
