/* Memoria Direct Cremation — Quiet Care Pathway */
:root {
  --ivory: #FDFBF7;
  --ivory-dark: #F5F1EA;
  --slate: #4A5568;
  --ink: #2D3748;
  --blue: #5B7B99;
  --blue-light: #E8EFF5;
  --gold: #C9A86C;
  --gold-light: #F3EFE6;
  --white: #FFFFFF;
  --shadow: 0 10px 30px rgba(45, 55, 72, 0.08);
  --radius: 14px;
  --transition: 0.3s ease;
  --font-serif: Georgia, 'Times New Roman', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.2;
  margin: 0 0 0.6em;
  color: var(--ink);
  font-weight: 500;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
p { margin: 0 0 1em; }

.container {
  width: min(1200px, 92vw);
  margin-inline: auto;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 251, 247, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(74, 85, 104, 0.1);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo img { height: 42px; width: auto; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  font-size: 0.92rem;
  color: var(--slate);
  font-weight: 500;
}
.nav a:hover { color: var(--gold); }
.nav a.active { color: var(--ink); border-bottom: 2px solid var(--gold); padding-bottom: 2px; }

.header-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}
.phone-link {
  font-weight: 700;
  color: var(--ink);
  font-size: 0.95rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(91, 123, 153, 0.25);
}
.btn-primary:hover { background: #4A6A84; color: var(--white); }
.btn-gold {
  background: var(--gold);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(201, 168, 108, 0.25);
}
.btn-gold:hover { background: #B89858; color: var(--white); }
.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 1.5px solid var(--blue);
}
.btn-outline:hover { background: var(--blue-light); color: var(--ink); }
.btn-white {
  background: var(--white);
  color: var(--ink);
}
.btn-white:hover { background: var(--ivory-dark); }

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: var(--transition);
}

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(105deg, var(--ivory) 0%, var(--ivory) 55%, var(--blue-light) 100%);
  padding: clamp(60px, 10vw, 120px) 0 clamp(70px, 10vw, 110px);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 20%, rgba(201, 168, 108, 0.12), transparent 40%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-light);
  color: var(--gold);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero h1 { margin-bottom: 22px; }
.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--slate);
  max-width: 520px;
  margin-bottom: 30px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-trust {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.hero-trust img { height: 42px; width: auto; }
.hero-trust span {
  font-size: 0.85rem;
  color: var(--slate);
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: perspective(1000px) rotateY(-3deg);
}
.hero-visual img {
  width: 100%;
  height: clamp(320px, 40vw, 520px);
  object-fit: cover;
}
.hero-card {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: rgba(255,255,255,0.96);
  padding: 18px 22px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(45,55,72,0.08);
  backdrop-filter: blur(6px);
}
.hero-card strong { display: block; color: var(--ink); font-size: 1.1rem; }
.hero-card span { font-size: 0.85rem; color: var(--slate); }

/* Sections */
.section { padding: clamp(70px, 10vw, 110px) 0; }
.section-alt { background: var(--white); }
.section-tint { background: var(--blue-light); }
.section-gold { background: var(--gold-light); }
.section-header {
  max-width: 720px;
  margin: 0 auto 50px;
  text-align: center;
}
.section-header h2 { margin-bottom: 14px; }
.section-header p {
  color: var(--slate);
  font-size: 1.05rem;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(45,55,72,0.12); }
.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--blue-light);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.card-icon img { width: 30px; height: 30px; object-fit: contain; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--slate); font-size: 0.96rem; margin: 0; }

/* Pathway */
.pathway {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  counter-reset: step;
}
.path-step {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  counter-increment: step;
}
.path-step::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
  font-weight: 700;
  margin-bottom: 16px;
}
.path-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 42px;
  right: -18px;
  width: 18px;
  height: 2px;
  background: var(--gold-light);
  border-top: 2px dashed var(--gold);
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: start;
}
.price-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px 28px;
  box-shadow: var(--shadow);
  border: 1px solid transparent;
  transition: var(--transition);
}
.price-card.featured {
  border-color: var(--gold);
  position: relative;
  transform: scale(1.02);
}
.price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--white);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}
.price-card h3 { margin-bottom: 8px; }
.price-card .price {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  color: var(--ink);
  margin-bottom: 6px;
}
.price-card .price span {
  font-size: 1rem;
  color: var(--slate);
  font-family: var(--font-sans);
}
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 22px 0;
}
.price-card li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: var(--slate);
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(74,85,104,0.08);
}
.price-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

/* Split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split-visual img {
  width: 100%;
  height: clamp(300px, 40vw, 480px);
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.split h2 { margin-bottom: 18px; }
.split p { color: var(--slate); margin-bottom: 16px; }
.check-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}
.check-list li {
  padding: 8px 0 8px 30px;
  position: relative;
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

/* FAQ */
.faq-item {
  background: var(--white);
  border-radius: 12px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 22px 26px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-q::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--gold);
  transition: transform var(--transition);
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition), padding var(--transition);
}
.faq-item.open .faq-a {
  max-height: 400px;
  padding: 0 26px 22px;
}
.faq-a p { color: var(--slate); margin: 0; }

/* Checklist */
.checklist-module {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
  max-width: 720px;
  margin: 0 auto;
}
.checklist-module h3 { text-align: center; margin-bottom: 26px; }
.checklist-options {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}
.check-option {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 10px;
  border: 1.5px solid rgba(74,85,104,0.12);
  cursor: pointer;
  transition: var(--transition);
}
.check-option:hover { border-color: var(--blue); background: var(--blue-light); }
.check-option input { margin-top: 3px; accent-color: var(--blue); }
.check-option span { font-weight: 500; color: var(--ink); }
.check-result {
  background: var(--gold-light);
  border-radius: 10px;
  padding: 22px;
  text-align: center;
  display: none;
}
.check-result.visible { display: block; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 50px;
  align-items: start;
}
.contact-info h2 { margin-bottom: 16px; }
.contact-info p { color: var(--slate); }
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 22px 0;
}
.contact-detail strong { display: block; color: var(--ink); }
.contact-detail span { color: var(--slate); font-size: 0.95rem; }
.hours-box {
  background: var(--blue-light);
  border-radius: 12px;
  padding: 22px;
  margin-top: 26px;
}
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid rgba(74,85,104,0.18);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--ivory);
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: 0.8rem; color: var(--slate); margin-top: 14px; }

/* Footer */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}
.footer-logo img { height: 44px; width: auto; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer h4 {
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}
.footer a { color: rgba(255,255,255,0.75); display: block; margin-bottom: 10px; font-size: 0.92rem; }
.footer a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* Mobile bottom bar */
.mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid rgba(74,85,104,0.1);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  z-index: 99;
  box-shadow: 0 -4px 20px rgba(45,55,72,0.08);
}
.mobile-bar-inner { display: flex; gap: 10px; }
.mobile-bar .btn { flex: 1; padding: 12px 8px; font-size: 0.8rem; }

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.stagger-1 { transition-delay: 0.08s; }
.stagger-2 { transition-delay: 0.16s; }
.stagger-3 { transition-delay: 0.24s; }

/* Responsive */
@media (max-width: 900px) {
  .hero-inner, .split, .contact-grid { grid-template-columns: 1fr; }
  .split-visual { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .path-step:not(:last-child)::after { display: none; }
  .header-cta .btn-outline { display: none; }
}

@media (max-width: 760px) {
  .nav {
    position: fixed;
    inset: 76px 0 auto 0;
    background: var(--ivory);
    flex-direction: column;
    padding: 20px 0;
    gap: 0;
    border-bottom: 1px solid rgba(74,85,104,0.1);
    transform: translateY(-120%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
  }
  .nav.open { transform: translateY(0); opacity: 1; pointer-events: all; }
  .nav a { padding: 12px 24px; width: 100%; border-bottom: 1px solid rgba(74,85,104,0.06); }
  .mobile-menu-btn { display: block; }
  .header-cta { display: none; }
  .hero { padding-top: 50px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .form-row { grid-template-columns: 1fr; }
  .mobile-bar { display: block; }
  body { padding-bottom: 72px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .price-card.featured { transform: none; }
}

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