:root {
  --ink: #20221e;
  --muted: #666b60;
  --paper: #fffdf8;
  --soft: #f3f6ed;
  --line: #ded8ca;
  --coral: #d95c49;
  --leaf: #3f6f55;
  --amber: #c78a31;
  --rose: #f7d9d1;
  --shadow: 0 18px 60px rgba(32, 34, 30, 0.14);
}

* {
  box-sizing: border-box;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  gap: 18px;
  background: var(--paper);
  transition: opacity 500ms ease, visibility 500ms ease;
}

.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-bloom {
  position: relative;
  width: 64px;
  height: 64px;
  animation: loader-spin 3200ms linear infinite;
}

.loader-petal {
  position: absolute;
  inset: 0;
}

.loader-petal:nth-child(1) {
  transform: rotate(0deg);
}

.loader-petal:nth-child(2) {
  transform: rotate(72deg);
}

.loader-petal:nth-child(3) {
  transform: rotate(144deg);
}

.loader-petal:nth-child(4) {
  transform: rotate(216deg);
}

.loader-petal:nth-child(5) {
  transform: rotate(288deg);
}

.loader-petal > span {
  position: absolute;
  top: 2px;
  left: 50%;
  width: 20px;
  height: 28px;
  margin-left: -10px;
  border-radius: 50% 50% 50% 50% / 65% 65% 35% 35%;
  transform-origin: 50% 100%;
  animation: loader-bloom-pulse 1400ms ease-in-out infinite;
}

.loader-petal:nth-child(1) > span {
  background: var(--coral);
  animation-delay: 0ms;
}

.loader-petal:nth-child(2) > span {
  background: var(--amber);
  animation-delay: 140ms;
}

.loader-petal:nth-child(3) > span {
  background: var(--rose);
  animation-delay: 280ms;
}

.loader-petal:nth-child(4) > span {
  background: var(--leaf);
  animation-delay: 420ms;
}

.loader-petal:nth-child(5) > span {
  background: var(--coral);
  animation-delay: 560ms;
}

.loader-center {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 13px;
  margin: -6.5px 0 0 -6.5px;
  border-radius: 50%;
  background: var(--amber);
}

.loader-logo {
  width: 168px;
  height: auto;
  animation: loader-logo-pulse 1800ms ease-in-out infinite;
}

@keyframes loader-logo-pulse {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(0.96);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes loader-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes loader-bloom-pulse {
  0%,
  100% {
    transform: scale(0.78);
    opacity: 0.65;
  }
  50% {
    transform: scale(1);
    opacity: 1;
  }
}

.petal {
  position: absolute;
  border-radius: 100% 0 100% 0;
  opacity: 0.55;
  animation: petal-float ease-in-out infinite;
}

@keyframes petal-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(10px, -22px, 0) rotate(35deg);
  }
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Manrope", Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 58px);
  background: rgba(255, 253, 248, 0.9);
  border-bottom: 1px solid rgba(222, 216, 202, 0.8);
  backdrop-filter: blur(16px);
}

.brand,
.nav,
.trust-row,
.hero-actions,
.metrics {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-logo {
  display: block;
  height: 60px;
  width: auto;
}

.nav {
  gap: clamp(14px, 3vw, 34px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav a {
  position: relative;
  padding-bottom: 2px;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -3px;
  height: 2px;
  background: var(--coral);
  transition: right 240ms ease;
}

.nav a:hover::after {
  right: 0;
}

.header-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.header-cta:hover,
.btn:hover {
  transform: translateY(-2px);
}

.header-cta:active,
.btn:active {
  transform: translateY(0);
}

.header-cta {
  background: var(--ink);
  color: #fff;
  font-size: 14px;
}

.site-header {
  transition: box-shadow 240ms ease, padding 240ms ease;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(32, 34, 30, 0.1);
}

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 128px clamp(18px, 5vw, 70px) 64px;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 253, 248, 0.96) 0%, rgba(255, 253, 248, 0.8) 34%, rgba(255, 253, 248, 0.08) 76%),
    linear-gradient(0deg, rgba(32, 34, 30, 0.2), rgba(32, 34, 30, 0));
}

.hero-petals {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-petals .petal-a {
  top: 16%;
  left: 8%;
  width: 20px;
  height: 20px;
  background: var(--rose);
  animation-duration: 7s;
}

.hero-petals .petal-b {
  top: 58%;
  left: 4%;
  width: 14px;
  height: 14px;
  background: var(--coral);
  animation-duration: 9s;
  animation-delay: 1.2s;
}

.hero-petals .petal-c {
  top: 32%;
  left: 21%;
  width: 12px;
  height: 12px;
  background: var(--amber);
  animation-duration: 6.5s;
  animation-delay: 2.4s;
}

.hero-petals .petal-d {
  top: 78%;
  left: 15%;
  width: 18px;
  height: 18px;
  background: var(--rose);
  animation-duration: 8.2s;
  animation-delay: 0.6s;
}

.hero-petals .petal-e {
  top: 10%;
  left: 30%;
  width: 10px;
  height: 10px;
  background: var(--coral);
  animation-duration: 7.6s;
  animation-delay: 3s;
}

.petal-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.petal-field .petal:nth-child(1) {
  top: 12%;
  left: 6%;
  width: 17px;
  height: 17px;
  background: var(--rose);
  animation-duration: 7.4s;
}

.petal-field .petal:nth-child(2) {
  top: 22%;
  left: 92%;
  width: 12px;
  height: 12px;
  background: var(--coral);
  animation-duration: 8.6s;
  animation-delay: 1.1s;
}

.petal-field .petal:nth-child(3) {
  top: 78%;
  left: 14%;
  width: 11px;
  height: 11px;
  background: var(--amber);
  animation-duration: 6.8s;
  animation-delay: 2.3s;
}

.petal-field .petal:nth-child(4) {
  top: 85%;
  left: 82%;
  width: 15px;
  height: 15px;
  background: var(--rose);
  animation-duration: 9.4s;
  animation-delay: 0.5s;
}

.branch-deco {
  position: absolute;
  width: clamp(64px, 9vw, 100px);
  height: clamp(92px, 13vw, 145px);
  color: var(--leaf);
  opacity: 0.28;
  pointer-events: none;
}

.branch-deco svg {
  display: block;
  width: 100%;
  height: 100%;
  animation: branch-sway 6s ease-in-out infinite;
  transform-origin: bottom center;
}

.branch-deco--light {
  color: var(--rose);
  opacity: 0.4;
}

.branch-deco--tl {
  top: 0;
  left: 0;
}

.branch-deco--tr {
  top: 0;
  right: 0;
  transform: scaleX(-1);
}

.branch-deco--bl {
  bottom: 0;
  left: 0;
  transform: scaleY(-1);
}

.branch-deco--br {
  bottom: 0;
  right: 0;
  transform: scale(-1, -1);
}

@keyframes branch-sway {
  0%,
  100% {
    transform: rotate(-1.5deg);
  }
  50% {
    transform: rotate(1.5deg);
  }
}

.hero-content {
  position: relative;
  max-width: 650px;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-content > * {
  opacity: 0;
  animation: fade-up 760ms ease forwards;
}

.hero-content > *:nth-child(1) {
  animation-delay: 80ms;
}

.hero-content > *:nth-child(2) {
  animation-delay: 190ms;
}

.hero-content > *:nth-child(3) {
  animation-delay: 300ms;
}

.hero-content > *:nth-child(4) {
  animation-delay: 410ms;
}

.hero-content > *:nth-child(5) {
  animation-delay: 520ms;
}

.hero-image {
  animation: fade-up 900ms ease;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(48px, 7vw, 88px);
  line-height: 0.98;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.04;
}

h3 {
  margin: 0;
  font-size: 21px;
}

.hero-copy {
  max-width: 610px;
  margin: 24px 0 0;
  color: #44483f;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.6;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.btn.primary {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 12px 30px rgba(217, 92, 73, 0.28);
}

.btn.secondary {
  background: rgba(255, 253, 248, 0.74);
  border: 1px solid var(--line);
}

.trust-row {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.trust-row span {
  border: 1px solid rgba(63, 111, 85, 0.22);
  border-radius: 999px;
  padding: 9px 12px;
  background: rgba(255, 253, 248, 0.72);
  color: var(--leaf);
  font-size: 13px;
  font-weight: 800;
}

.promo-strip {
  padding: 20px clamp(18px, 5vw, 70px);
  background: var(--leaf);
  color: #fff;
  font-size: clamp(16px, 2vw, 20px);
  text-align: center;
}

.section,
.funeral-offer,
.benefits,
.social-proof,
.order-section {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 9vw, 110px) clamp(18px, 5vw, 70px);
}

.funeral-offer {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  background: #fff;
}

.funeral-copy {
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.funeral-copy p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.7;
}

.funeral-copy .btn {
  margin-top: 14px;
}

.funeral-carousel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.carousel-track {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #f7f4ec;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: scale(1.02);
  transition:
    opacity 560ms ease,
    transform 900ms ease;
}

.carousel-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.carousel-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
}

.carousel-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(32, 34, 30, 0.24);
  transition:
    background 240ms ease,
    transform 240ms ease;
}

.carousel-dots span.is-active {
  background: var(--coral);
  transform: scale(1.28);
}

.section-heading {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 28px;
}

.product-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 520px;
  padding: 0 0 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 320ms ease, box-shadow 320ms ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 70px rgba(32, 34, 30, 0.2);
}

.product-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  background: #f7f4ec;
  transition: transform 500ms ease;
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-tag {
  margin: 24px 26px 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.product-card h3,
.product-card p:not(.product-tag) {
  margin-left: 26px;
  margin-right: 26px;
}

.product-card p:not(.product-tag) {
  color: var(--muted);
  line-height: 1.6;
}

.price {
  margin: auto 26px 16px;
  font-size: 24px;
  font-weight: 800;
}

.product-card a {
  margin: 0 26px;
  color: var(--coral);
  font-weight: 800;
}

.benefits {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(34px, 6vw, 80px);
  background: var(--soft);
}

.benefits > .reveal {
  position: relative;
  z-index: 1;
}

.benefit-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
}

.benefit-list article {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 10px 18px;
  padding: 24px 0;
  border-bottom: 1px solid #d7ddcf;
}

.benefit-list span {
  grid-row: span 2;
  color: var(--coral);
  font-weight: 800;
}

.benefit-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.social-proof {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 26px;
  align-items: center;
}

.quote {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: clamp(22px, 4vw, 40px);
  max-width: 760px;
}

.quote-photo {
  flex: 0 0 auto;
  width: clamp(120px, 18vw, 190px);
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  object-fit: cover;
  object-position: top center;
  box-shadow: var(--shadow);
}

.quote-text {
  min-width: 0;
}

.quote-text p {
  margin: 0 0 18px;
  font-family: "Playfair Display", "Manrope", serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(24px, 3.4vw, 38px);
  line-height: 1.22;
}

.quote-text strong {
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.metrics {
  position: relative;
  z-index: 1;
  justify-content: space-between;
  gap: 14px;
}

.metrics div {
  flex: 1;
  min-height: 136px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.metrics div:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.metrics strong,
.metrics span {
  display: block;
}

.metrics strong {
  font-size: clamp(26px, 4vw, 40px);
}

.metrics span {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.4;
}

.order-section {
  position: relative;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(28px, 6vw, 78px);
  background: #272a24;
  color: #fff;
  overflow: hidden;
}

.order-petals {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.order-petals .petal-a {
  top: 10%;
  left: 85%;
  width: 16px;
  height: 16px;
  background: var(--rose);
  animation-duration: 8s;
}

.order-petals .petal-b {
  top: 70%;
  left: 90%;
  width: 12px;
  height: 12px;
  background: var(--amber);
  animation-duration: 6.4s;
  animation-delay: 1.4s;
}

.order-petals .petal-c {
  top: 40%;
  left: 6%;
  width: 14px;
  height: 14px;
  background: var(--coral);
  animation-duration: 9.2s;
  animation-delay: 2.2s;
}

.order-petals .petal-d {
  top: 85%;
  left: 12%;
  width: 10px;
  height: 10px;
  background: var(--rose);
  animation-duration: 7.1s;
  animation-delay: 0.8s;
}

.order-copy {
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.order-copy p:not(.eyebrow) {
  color: #d7d9d1;
  line-height: 1.7;
}

.order-form {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

label {
  display: grid;
  gap: 8px;
  color: #f6f2e8;
  font-size: 14px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--ink);
  font: inherit;
  padding: 14px 14px;
}

textarea {
  resize: vertical;
}

.form-button {
  width: 100%;
  margin-top: 6px;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 70px);
  color: var(--muted);
  font-weight: 800;
}

.footer-logo {
  display: block;
  height: 42px;
  width: auto;
}

@media (max-width: 860px) {
  .site-header {
    position: absolute;
  }

  .nav {
    display: none;
  }

  .brand-logo {
    height: 84px;
  }

  .hero {
    min-height: 92vh;
    padding-top: 168px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(255, 253, 248, 0.96) 0%, rgba(255, 253, 248, 0.84) 52%, rgba(255, 253, 248, 0.18) 100%),
      linear-gradient(0deg, rgba(32, 34, 30, 0.22), rgba(32, 34, 30, 0));
  }

  .product-grid,
  .funeral-offer,
  .benefits,
  .social-proof,
  .order-section {
    grid-template-columns: 1fr;
  }

  .funeral-carousel {
    order: -1;
  }

  .section-heading {
    display: block;
  }

  .metrics {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 560px) {
  .branch-deco {
    width: 56px;
    height: 82px;
    opacity: 0.2;
  }

  .site-header {
    padding: 14px 16px;
  }

  .brand-logo {
    height: 72px;
  }

  .header-cta {
    min-height: 40px;
    padding: 0 12px;
  }

  .hero {
    align-items: end;
    min-height: 91vh;
    padding: 148px 16px 44px;
  }

  .hero-image {
    object-position: 63% center;
  }

  h1 {
    max-width: 10ch;
    font-size: 44px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .btn {
    width: 100%;
  }

  .trust-row span {
    flex: 1 1 100%;
    text-align: center;
  }

  .product-card {
    min-height: 0;
  }

  .funeral-offer {
    padding-top: 44px;
  }

  .quote {
    align-items: flex-start;
    gap: 18px;
  }

  .quote-photo {
    width: 92px;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.section-motion {
  opacity: 0;
  transform: translateY(56px) scale(0.98);
  transition: opacity 900ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.section-motion.is-visible {
  opacity: 1;
  transform: none;
}

.product-grid .reveal:nth-child(2) {
  transition-delay: 120ms;
}

.product-grid .reveal:nth-child(3) {
  transition-delay: 240ms;
}

.benefit-list .reveal:nth-child(2) {
  transition-delay: 120ms;
}

.benefit-list .reveal:nth-child(3) {
  transition-delay: 240ms;
}

.metrics .reveal:nth-child(2) {
  transition-delay: 100ms;
}

.metrics .reveal:nth-child(3) {
  transition-delay: 200ms;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-content > *,
  .hero-image {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .reveal,
  .section-motion {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .product-card,
  .product-image,
  .metrics div,
  .btn,
  .header-cta,
  .nav a::after,
  .site-header {
    transition: none;
  }

  .product-card:hover,
  .product-card:hover .product-image,
  .metrics div:hover,
  .btn:hover,
  .header-cta:hover {
    transform: none;
  }

  .loader {
    transition: none;
  }

  .loader-bloom,
  .loader-petal > span,
  .loader-logo {
    animation: none;
  }

  .petal {
    animation: none;
  }

  .branch-deco svg {
    animation: none;
  }
}
