/* ==========================================================================
   Berndt-Ledesma Funeral Home — Stylesheet
   Dignified, calm, compassionate design
   ========================================================================== */

/* --- Custom Properties --- */
:root {
  --bg: #faf9f7;
  --bg-alt: #f2f0ec;
  --bg-card: #ffffff;
  --text: #2e2c28;
  --text-muted: #6e6a62;
  --primary: #5a6b7a;
  --primary-light: #7a8c9c;
  --accent: #7a8e72;
  --accent-light: #96a88e;
  --border: #dedad4;
  --shadow: 0 2px 12px rgba(46, 44, 40, 0.06);
  --shadow-lg: 0 8px 32px rgba(46, 44, 40, 0.08);
  --radius: 6px;
  --radius-lg: 12px;
  --transition: 0.3s ease;
  --max-width: 1140px;
  --header-height: 80px;
}

[data-theme="dark"] {
  --bg: #141312;
  --bg-alt: #1c1b19;
  --bg-card: #232220;
  --text: #e4e0da;
  --text-muted: #9a968e;
  --primary: #7a8ea0;
  --primary-light: #93a5b5;
  --accent: #8ea882;
  --accent-light: #a4bc98;
  --border: #383530;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
}

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

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

body {
  font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  font-weight: 400;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--bg);
  transition: background-color var(--transition), color var(--transition);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* FOUC prevention */
body.no-transitions * {
  transition: none !important;
}

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

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

a:hover {
  color: var(--accent);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

h1 { font-size: clamp(2rem, 1.5rem + 2.5vw, 3.25rem); }
h2 { font-size: clamp(1.625rem, 1.25rem + 1.875vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + 0.75vw, 1.625rem); }
h4 { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.375rem); }

p + p { margin-top: 1.25em; }

ul, ol { padding-left: 1.5em; }

/* --- Utility --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section {
  padding: clamp(3.5rem, 3rem + 3vw, 6rem) 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.0625rem;
}

.section-label {
  display: inline-block;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.875rem 1.75rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--primary-light);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: #fff;
}

.btn-accent {
  background-color: var(--accent);
  color: #fff;
}

.btn-accent:hover {
  background-color: var(--accent-light);
  color: #fff;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* --- Header / Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: background-color var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow);
}

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

.site-logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.2;
  flex-shrink: 0;
}

.site-logo .logo-primary {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  font-weight: 700;
  color: var(--text);
}

.site-logo .logo-sub {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  padding: 0;
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
}

.nav-links a[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--accent);
  border-radius: 1px;
}

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

.header-phone {
  display: none;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--primary);
  text-decoration: none;
}

.header-phone svg {
  width: 18px;
  height: 18px;
}

@media (min-width: 1024px) {
  .header-phone {
    display: inline-flex;
  }
}

/* Dark Mode Toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--transition);
}

.theme-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  gap: 5px;
  padding: 0;
  transition: border-color var(--transition);
}

.hamburger:hover {
  border-color: var(--primary);
}

.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background-color: var(--text);
  border-radius: 1px;
  transition: all var(--transition);
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav */
@media (max-width: 767px) {
  .hamburger {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg);
    padding: 2rem 1.25rem;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    z-index: 99;
    overflow-y: auto;
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 1rem 0;
    font-size: 1.125rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-links a[aria-current="page"]::after {
    display: none;
  }

  .mobile-nav-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary);
  }

  .mobile-nav-phone svg {
    width: 20px;
    height: 20px;
  }
}

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

/* --- Hero --- */
.hero {
  position: relative;
  padding: clamp(4rem, 3rem + 5vw, 7rem) 0;
  background-color: var(--bg-alt);
  overflow: hidden;
}

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

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

[data-theme="dark"] .hero-bg img {
  opacity: 0.1;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 660px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  margin-bottom: 1.25rem;
  font-weight: 400;
}

.hero h1 strong {
  font-weight: 700;
}

.hero p {
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: box-shadow var(--transition), transform var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.service-card .card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-alt);
  border-radius: var(--radius);
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.service-card .card-icon svg {
  width: 24px;
  height: 24px;
}

.service-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
}

.service-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--primary);
}

.service-card .card-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition);
}

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

/* --- Testimonials --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.testimonial-card blockquote {
  font-style: italic;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  position: relative;
  padding-left: 1.5rem;
  border-left: 3px solid var(--accent-light);
}

.testimonial-card .attribution {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* --- CTA Banner --- */
.cta-banner {
  background-color: var(--primary);
  color: #fff;
  text-align: center;
  padding: clamp(3rem, 2.5rem + 2.5vw, 5rem) 0;
}

.cta-banner h2 {
  color: #fff;
  margin-bottom: 1rem;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin: 0 auto 2rem;
  font-size: 1.0625rem;
}

.cta-banner .btn-primary {
  background-color: #fff;
  color: var(--primary);
}

.cta-banner .btn-primary:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

/* --- FAQ --- */
.faq-list {
  max-width: 740px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--bg-card);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
  text-align: left;
  line-height: 1.4;
  transition: background-color var(--transition);
}

.faq-trigger:hover {
  background-color: var(--bg-alt);
}

.faq-trigger svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform var(--transition);
}

.faq-item[open] .faq-trigger svg {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.75;
}

/* --- Image + Text Layouts --- */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .split.reverse .split-image {
    order: 1;
  }
}

.split-image img {
  border-radius: var(--radius-lg);
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.split-text h2 {
  margin-bottom: 1rem;
}

.split-text p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.split-text p:last-of-type {
  margin-bottom: 1.75rem;
}

/* --- Values Grid --- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.value-item {
  text-align: center;
  padding: 2rem 1.5rem;
}

.value-item .value-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-alt);
  border-radius: 50%;
  color: var(--accent);
  margin: 0 auto 1.25rem;
}

.value-item .value-icon svg {
  width: 24px;
  height: 24px;
}

.value-item h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.value-item p {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* --- Staff --- */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.staff-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
}

.staff-card .staff-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--primary);
}

.staff-card .staff-avatar svg {
  width: 36px;
  height: 36px;
}

.staff-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.staff-card .staff-role {
  font-size: 0.875rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.staff-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
  }
}

.contact-info-block {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.contact-info-block .info-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-alt);
  border-radius: var(--radius);
  color: var(--accent);
}

.contact-info-block .info-icon svg {
  width: 20px;
  height: 20px;
}

.contact-info-block h4 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.contact-info-block p,
.contact-info-block a {
  font-size: 1rem;
  color: var(--text);
}

/* Form */
.contact-form {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

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

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.375rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
  color: var(--text);
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  outline: none;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-status {
  margin-top: 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

.form-status.success { color: var(--accent); }
.form-status.error { color: #b5564e; }

/* Map placeholder */
.map-embed {
  width: 100%;
  height: 300px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-top: 2rem;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- Service Detail Pages --- */
.service-hero {
  padding: clamp(3rem, 2rem + 4vw, 5rem) 0;
  background-color: var(--bg-alt);
  text-align: center;
}

.service-hero h1 {
  margin-bottom: 1rem;
}

.service-hero p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.0625rem;
}

.service-content {
  max-width: 780px;
  margin: 0 auto;
}

.service-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.service-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.service-content p {
  color: var(--text-muted);
}

.service-content ul {
  color: var(--text-muted);
  margin: 1rem 0 1.5rem;
}

.service-content li {
  margin-bottom: 0.5rem;
}

.service-content .service-img {
  border-radius: var(--radius-lg);
  margin: 2rem 0;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
}

/* --- Breadcrumb --- */
.breadcrumb {
  padding: 1rem 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb span {
  margin: 0 0.375rem;
}

/* --- Footer --- */
.site-footer {
  background-color: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: clamp(3rem, 2.5rem + 2vw, 4.5rem) 0 0;
}

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

@media (max-width: 767px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-brand .logo-primary {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  display: block;
}

.footer-brand .logo-sub {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  max-width: 340px;
}

.footer-col h4 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.625rem;
}

.footer-col a {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.75rem 0;
  margin-top: 2.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-bottom a {
  color: var(--text-muted);
}

.footer-bottom a:hover {
  color: var(--primary);
}

/* --- Mobile Sticky Phone Bar --- */
.mobile-phone-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background-color: var(--primary);
  padding: 0.875rem 1.25rem;
  text-align: center;
}

.mobile-phone-bar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
}

.mobile-phone-bar svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 767px) {
  .mobile-phone-bar {
    display: block;
  }

  body {
    padding-bottom: 56px;
  }
}

/* --- Disclaimer Bar --- */
.disclaimer-bar { position:fixed;bottom:0;left:0;right:0;z-index:101;background-color: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 1rem 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.6;}

/* --- Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Pre-planning page extras --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  counter-reset: step;
}

.step-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  counter-increment: step;
}

.step-card::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--accent);
  color: #fff;
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.step-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* --- Page hero breadcrumb overlay --- */
.page-hero {
  padding: clamp(3rem, 2rem + 4vw, 5rem) 0;
  background-color: var(--bg-alt);
}

.page-hero .breadcrumb {
  padding: 0 0 1rem;
}

.page-hero h1 {
  margin-bottom: 1rem;
}

.page-hero p {
  color: var(--text-muted);
  max-width: 600px;
  font-size: 1.0625rem;
}

/* --- Subtle Animations (respects user preference) --- */
@media (prefers-reduced-motion: no-preference) {
  .hero-content,
  .page-hero h1,
  .service-hero h1 {
    animation: gentleFadeIn 0.8s ease both;
  }

  .section-header {
    animation: gentleFadeIn 0.7s ease 0.1s both;
  }
}

@keyframes gentleFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --- Print --- */
@media print {
  .site-header,
  .mobile-phone-bar,
  .theme-toggle,
  .hamburger,
  .disclaimer-bar {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
    padding: 0;
  }
}
