/* ─────────── Icon masks ─────────── */
/* SVG mask definitions — each icon is a separate file in src/images/icons/ */
.m-love        { -webkit-mask-image: url("../images/icons/m-love.svg");        mask-image: url("../images/icons/m-love.svg"); }
.m-premium     { -webkit-mask-image: url("../images/icons/m-premium.svg");     mask-image: url("../images/icons/m-premium.svg"); }
.m-markers     { -webkit-mask-image: url("../images/icons/m-markers.svg");     mask-image: url("../images/icons/m-markers.svg"); }
.m-elegant     { -webkit-mask-image: url("../images/icons/m-elegant.svg");     mask-image: url("../images/icons/m-elegant.svg"); }
.m-dignified   { -webkit-mask-image: url("../images/icons/m-dignified.svg");   mask-image: url("../images/icons/m-dignified.svg"); }
.m-embrace     { -webkit-mask-image: url("../images/icons/m-embrace.svg");     mask-image: url("../images/icons/m-embrace.svg"); }
.m-heart       { -webkit-mask-image: url("../images/icons/m-heart.svg");       mask-image: url("../images/icons/m-heart.svg"); }
.m-delivery    { -webkit-mask-image: url("../images/icons/m-delivery.svg");    mask-image: url("../images/icons/m-delivery.svg"); }
.m-quality     { -webkit-mask-image: url("../images/icons/m-quality.svg");     mask-image: url("../images/icons/m-quality.svg"); }
.m-check-inner { -webkit-mask-image: url("../images/icons/m-check-inner.svg"); mask-image: url("../images/icons/m-check-inner.svg"); }
.m-check-badge { -webkit-mask-image: url("../images/icons/m-check-badge.svg"); mask-image: url("../images/icons/m-check-badge.svg"); }
.m-shield      { -webkit-mask-image: url("../images/icons/m-shield.svg");      mask-image: url("../images/icons/m-shield.svg"); }
.m-check-small { -webkit-mask-image: url("../images/icons/m-check-small.svg"); mask-image: url("../images/icons/m-check-small.svg"); }
.m-sep-heart   { -webkit-mask-image: url("../images/icons/m-sep-heart.svg");   mask-image: url("../images/icons/m-sep-heart.svg"); }

/* ─────────── Icon sizes ─────────── */
/* Fixed dimensions per icon type — keeps sizing out of Craft field data */
.m-love        { width: 53.5px; height: 49.8px; }
.m-premium     { width: 48px;   height: 48px; }
.m-markers     { width: 48px;   height: 48px; }
.m-elegant     { width: 50px;   height: 50px; }
.m-dignified   { width: 50px;   height: 50px; }
.m-embrace     { width: 50px;   height: 50px; }
.m-heart       { width: 53.5px; height: 49.8px; }
.m-delivery    { width: 59.9px; height: 41.7px; }
.m-quality     { width: 65px;   height: 65px; }
.m-check-inner { width: 22.4px; height: 16.3px; }
.m-check-badge { width: 65px;   height: 65px; }
.m-shield      { width: 48px;   height: 54px; }
.m-check-small { width: 12.5px; height: 9.1px; }
.m-sep-heart   { width: 25.8px; height: 24px; }

/* ─────────── Fonts ─────────── */
@font-face {
  font-family: 'Libertinus Serif Display';
  src: url("../fonts/libertinus-serif-display.woff2") format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Libertinus Serif';
  src: url("../fonts/libertinus-serif-italic.woff2") format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Libertinus Serif';
  src: url("../fonts/libertinus-serif.woff2") format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}

/* ─────────── Tokens ─────────── */
  :root {
    --gold: rgb(196,142,61);
    --gold-dark: rgb(168,118,46);
    --navy: rgb(24,44,68);
    --ink: rgb(18,37,58);
    --cream: rgb(246,242,238);
    --cream2: rgb(248,241,232);
    --white: rgb(254,254,254);
    --serif: 'Libertinus Serif Display', 'Libertinus Serif', Georgia, 'Times New Roman', serif;
    --sans: Arial, Helvetica, sans-serif;
    --maxw: 1536px;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body { background: var(--cream); font-family: var(--sans); -webkit-font-smoothing: antialiased; color: var(--ink); }
  /* Type standard: all headers are serif Regular (400); bold is reserved for Body/Large Bold (700) */
  h1, h2, h3, h4, h5, h6 { font-weight: 400; }
  img { display: block; max-width: 100%; }

  .stage { width: 100%; }
  .page { width: 100%; }

  /* ─────────── Icon masks ─────────── */
  .ic {
    display: inline-block;
    background-color: var(--gold);
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    -webkit-mask-position: center; mask-position: center;
    -webkit-mask-size: contain; mask-size: contain;
    flex: none;
  }

  /* ─────────── Buttons ─────────── */
  .btn {
    display: inline-flex; align-items: center; justify-content: center;
    height: 58px; border-radius: 8px;
    font-family: var(--sans); font-weight: 700; font-size: 24px; letter-spacing: 0.05em;
    line-height: 1; white-space: nowrap; cursor: pointer; border: none;
    text-decoration: none; padding: 0 48px;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
  }
  .btn-fill { background: var(--gold); color: var(--cream2); }
  .btn-fill:hover { background: var(--gold-dark); }
  .btn-outline { background: transparent; color: var(--ink); border: 2px solid var(--gold); }
  .btn-outline:hover { background: var(--gold); color: var(--cream2); }

  /* ─────────── Separators ─────────── */
  .sep-hline { height: 1px; background: var(--gold); width: 100%; }
  .sep-heart { display: flex; align-items: center; justify-content: center; gap: 32px; width: 100%; }
  .sep-heart .line { flex: 1 1 0; max-width: 100px; height: 1px; background: var(--gold); }
  .sep-heart .ic { width: 25.8px; height: 24px; }

  /* ─────────── Logo ─────────── */
  .logo { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: none; }
  .logo .flourish { display: block; }
  .logo .wordmark {
    font-family: var(--serif); font-size: 30px; letter-spacing: 0.22em; line-height: 1;
    color: var(--ink); white-space: nowrap; padding-left: 0.22em;
  }
  .logo .tagline {
    font-family: 'Libertinus Serif', var(--serif); font-style: italic; font-size: 15px;
    letter-spacing: 0.04em; color: var(--gold); line-height: 1;
  }
  .logo.light .wordmark { color: var(--cream2); }

  /* ─────────── Nav (shared header/footer) ─────────── */
  .nav { display: flex; align-items: center; gap: 72px; }
  .nav-links { display: flex; align-items: center; gap: 48px; }
  .nav-links a {
    font-family: var(--sans); font-weight: 700; font-size: 18px; letter-spacing: 0.05em;
    color: var(--ink); text-decoration: none; transition: color .2s ease; white-space: nowrap;
  }
  .nav-links a:hover { color: var(--gold); }

  /* hamburger */
  .hamburger {
    display: none; width: 48px; height: 48px; border: none; background: transparent;
    cursor: pointer; flex-direction: column; justify-content: center; gap: 6px; padding: 8px;
  }
  .hamburger span { display: block; height: 3px; width: 100%; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
  .header-inner.open .hamburger span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .header-inner.open .hamburger span:nth-child(2) { opacity: 0; }
  .header-inner.open .hamburger span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

  /* ─────────── Header ─────────── */
  .header { width: 100%; background: var(--white); position: relative; z-index: 50; }
  .header-inner {
    max-width: var(--maxw); margin: 0 auto; padding: 48px 96px;
    display: flex; align-items: center; gap: 48px;
  }
  .header-inner .logo { margin-right: auto; align-items: flex-start; }
  .header .btn-fill { width: 258px; padding: 0; }

  /* ─────────── Container ─────────── */
  .container { max-width: var(--maxw); margin: 0 auto; width: 100%; }

  /* ─────────── Hero ─────────── */
  .hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 648fr) minmax(0, 744fr);
    column-gap: 96px;
    row-gap: 48px;
    align-items: start;
    padding: 96px 48px;
    overflow: hidden;
  }
  .hero-title { grid-column: 1; grid-row: 1; font-family: var(--serif); font-weight: 400; font-size: clamp(64px, 5.5vw, 96px); line-height: 1; color: var(--ink); }
  .hero-title .hero-accent { color: var(--gold); }
  .hero .sep-heart { grid-column: 1; grid-row: 2; }
  .hero-copy  { grid-column: 1; grid-row: 3; display: flex; flex-direction: column; gap: 28px; }
  .hero-copy p { font-size: 24px; line-height: 1.4; letter-spacing: 0.05em; color: var(--ink); }
  .hero-buttons { grid-column: 1; grid-row: 4; display: flex; gap: 48px; }
  .hero-buttons .btn { flex: 1 1 0; max-width: 276px; padding: 0; }

  .hero-media {
    grid-column: 2; grid-row: 1 / 5; align-self: center; z-index: 1;
    position: relative; width: 100%; aspect-ratio: 744 / 656; overflow: hidden;
  }
  .hero-media .cf { position: absolute; background-repeat: no-repeat; background-position: center; background-size: cover; }
  .hero-media .white { left: 20.02%; top: 5.71%; width: 126.19%; height: 62.91%; background-image: url('assets/coffin-top.png'); }
  .hero-media .black { left: 0; top: 34.54%; width: 135.56%; height: 68.17%; background-image: url('assets/coffin-angle.png'); }

  .hero-title, .hero .sep-heart, .hero-copy, .hero-buttons { position: relative; z-index: 2; }
  .lily { position: absolute; background: url('../images/lily.png') center / contain no-repeat; pointer-events: none; }
  .lily-sm { left: 0; bottom: 0; width: clamp(180px, 18vw, 273px); height: clamp(208px, 20.8vw, 315px); z-index: 0; }
  .lily-lg { right: -80px; bottom: 0; width: clamp(320px, 35vw, 529px); height: clamp(333px, 36.4vw, 550px); transform: scaleX(-1); z-index: 0; }

  /* ─────────── Features ─────────── */
  .features { display: flex; flex-direction: column; gap: 48px; align-items: center; padding: 72px 48px; }
  .feat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; max-width: 1440px; row-gap: 48px; }
  .feat-item {
    display: flex; flex-direction: column; align-items: center; gap: 36px; text-align: center;
    padding: 0 32px; position: relative;
  }
  .feat-item::before {
    content: ''; position: absolute; left: 0; top: 18px; bottom: 18px; width: 1px;
    background: var(--gold); display: none;
  }
  .feat-item:not(:nth-child(3n+1))::before { display: block; }
  .icon-circle {
    width: 96px; height: 96px; border-radius: 50%; border: 1.4px solid var(--gold);
    display: flex; align-items: center; justify-content: center; flex: none; position: relative;
  }
  .feat-text { display: flex; flex-direction: column; gap: 24px; }
  .feat-title { font-weight: 700; font-size: 18px; letter-spacing: 0.05em; color: var(--ink); line-height: 1.1; overflow-wrap: break-word; }
  .feat-desc { font-size: 16px; letter-spacing: 0.05em; color: var(--ink); line-height: 1.3; overflow-wrap: break-word; }

  /* ─────────── Choose your style ─────────── */
  .styles { display: flex; flex-direction: column; gap: 48px; align-items: center; padding: 72px; }
  .styles-head { display: flex; flex-direction: column; align-items: center; gap: 16px; width: 100%; max-width: 531px; }
  .styles-head h2 { font-family: var(--serif); font-weight: 400; font-size: 48px; line-height: 1; color: var(--ink); text-align: center; }
  .styles-head .subtitle { font-size: 18px; letter-spacing: 0.05em; color: var(--ink); text-align: center; }
  .cards { display: flex; gap: 48px; justify-content: center; width: 100%; max-width: 1200px; }
  .card {
    flex: 1 1 0; max-width: 576px; background: var(--white); border: 1px solid var(--gold);
    padding: 48px; display: flex; flex-direction: column; gap: 48px; align-items: center;
  }
  .card-title { font-weight: 700; font-size: 24px; letter-spacing: 0.05em; color: var(--ink); text-align: center; }
  .card-img { width: 100%; height: 246px; display: flex; align-items: center; justify-content: center; }
  .card-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
  .card-body { width: 100%; display: flex; flex-direction: column; gap: 48px; }
  .card-list { display: flex; flex-direction: column; gap: 8px; }
  .card-list-item { display: flex; align-items: center; gap: 16px; min-height: 22px; }
  .check-badge {
    width: 22px; height: 22px; border-radius: 50%; background: var(--gold); flex: none;
    display: flex; align-items: center; justify-content: center;
  }
  .check-badge .ic { width: 12.5px; height: 9.1px; background-color: var(--white); }
  .card-list-item span.txt { font-size: 16px; letter-spacing: 0.05em; color: var(--ink); }
  .card .btn { width: 100%; }

  /* ─────────── CTA ─────────── */
  .cta { width: 100%; padding: 0 0; }
  .cta-bar { height: 16px; background: var(--gold); }
  .cta-body {
    position: relative; min-height: 400px; background: var(--navy); overflow: hidden;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 48px;
  }
  .cta-inner { position: relative; z-index: 2; width: 100%; max-width: 1432px; display: flex; flex-direction: column; align-items: center; gap: 48px; }
  .cta .heart { width: 56.9px; height: 52.9px; }
  .cta-head { display: flex; flex-direction: column; align-items: center; gap: 24px; }
  .cta-head h2 { font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 1.1; color: var(--cream2); text-align: center; white-space: nowrap; }
  .cta-head p { font-size: 18px; letter-spacing: 0.05em; color: var(--cream2); text-align: center; line-height: 1.4; }
  .cta .btn-fill { width: 258px; padding: 0; }
  .cta-lily {
    position: absolute; background: url('../images/lily.png') center / contain no-repeat;
    width: 494.221px; height: 514.149px; bottom: -52px; z-index: 1; pointer-events: none;
  }
  .cta-lily.left { left: -135px; }
  .cta-lily.right { right: -135px; transform: scaleX(-1); }

  /* ─────────── Trust row ─────────── */
  .trust { display: flex; gap: 48px; justify-content: center; align-items: flex-start; padding: 72px 48px; flex-wrap: wrap; }
  .trust-item { flex: 0 1 448px; display: flex; align-items: center; gap: 32px; }
  .trust-text { display: flex; flex-direction: column; gap: 8px; }
  .trust-title { font-weight: 700; font-size: 18px; letter-spacing: 0.05em; color: var(--ink); }
  .trust-desc { font-size: 16px; letter-spacing: 0.05em; color: var(--ink); }

  /* ─────────── Footer ─────────── */
  .footer { width: 100%; background: var(--navy); }
  .footer-inner {
    max-width: var(--maxw); margin: 0 auto; padding: 48px 96px;
    display: flex; align-items: center; gap: 48px; flex-wrap: wrap;
  }
  .footer-inner .logo { margin-right: auto; }
  .footer .nav-links a { color: var(--cream2); }
  .footer .nav-links a:hover { color: var(--gold); }
  .footer .btn-fill { width: 258px; padding: 0; }

  /* ════════════════════════════════════════════════════════
     NAV WRAP  (≤1400px) — header only, hero stays two-column
  ════════════════════════════════════════════════════════ */
  @media (max-width: 1400px) {
    .header-inner { flex-wrap: wrap; padding: 48px; gap: 40px; }
    .header-inner .nav {
      order: 2; flex-basis: 100%; width: 100%;
      flex-wrap: wrap; align-items: center;
      justify-content: space-between; gap: 24px 40px;
    }
    .header-inner .nav-links { flex-wrap: wrap; gap: 20px 32px; }
    .header .btn-fill { width: auto; min-width: 220px; padding: 0 40px; }
  }

  /* ════════════════════════════════════════════════════════
     TABLET  (≤1024px)
  ════════════════════════════════════════════════════════ */
  @media (max-width: 1024px) {
    /* Hero: single centered column, image between title and separator */
    .hero {
      grid-template-columns: 1fr;
      display: flex; flex-direction: column; align-items: stretch;
      gap: 48px; padding: 72px 48px; text-align: left;
    }
    .hero-title { order: 1; }
    .hero-media { order: 2; }
    .sep-heart { order: 3; }
    .hero-copy { order: 4; }
    .hero-buttons { order: 5; }

    .lily-sm, .lily-lg { display: none; }
    .hero-media {
      width: 100%; max-width: 880px; margin: 0 auto;
      height: clamp(280px, 50vw, 540px); overflow: visible;
    }
    .hero-media .white { position: static; width: 100%; height: 100%; background-size: contain; }
    .hero-media .black { display: none; }
    .hero-media::before, .hero-media::after {
      content: ''; position: absolute; bottom: 0; width: 30%; height: 78%;
      background: url('../images/lily.png') no-repeat; background-size: contain; z-index: 2; pointer-events: none;
    }
    .hero-media::before { left: -2%; background-position: left bottom; }
    .hero-media::after { right: -2%; background-position: right bottom; transform: scaleX(-1); }
    .hero-buttons .btn { max-width: none; }

    /* Coffin styles: stack the two cards so they aren't cut at tablet widths */
    .cards { flex-direction: column; align-items: center; }
    .card { width: 100%; max-width: 544px; }

    /* CTA: allow heading + subtitle to wrap */
    .cta-head h2 { white-space: normal; }
    .cta-lily { width: 320px; height: 333px; bottom: -40px; }
    .cta-lily.left { left: -110px; }
    .cta-lily.right { right: -110px; }

    /* Footer: logo + button on row 1, nav links on row 2 */
    .footer-inner { padding: 48px; }
    .footer-inner .logo { order: 1; }
    .footer .btn-fill { order: 2; }
    .footer .footer-nav { flex-basis: 100%; order: 3; }
  }

  /* ════════════════════════════════════════════════════════
     MOBILE  (≤640px)
  ════════════════════════════════════════════════════════ */
  @media (max-width: 640px) {
    /* Header: logo + hamburger; nav becomes dropdown */
    .header-inner { flex-wrap: nowrap; padding: 32px 24px; justify-content: space-between; gap: 12px; }
    /* Logo hugs narrow screens so it never overflows */
    .logo { min-width: 0; }
    .logo .wordmark { font-size: clamp(13px, 5.1vw, 26px); letter-spacing: 0.16em; padding-left: 0.16em; }
    .logo .tagline { font-size: clamp(8px, 2.3vw, 13px); }
    .logo .flourish { width: clamp(52px, 15vw, 96px); height: auto; }
    .hamburger { display: flex; }
    .header-inner .nav {
      display: none; order: 3; flex-basis: 100%;
      position: absolute; top: 100%; left: 0; right: 0;
      background: var(--white); flex-direction: column; align-items: stretch;
      gap: 24px; padding: 24px; box-shadow: 0 12px 24px rgba(24,44,68,0.12);
    }
    .header-inner.open .nav { display: flex; }
    .header-inner .nav-links { flex-direction: column; align-items: center; gap: 24px; }
    .header .btn-fill { width: 100%; }

    /* Hero: centered text, stacked full-width buttons, smaller title */
    .hero { padding: 72px 24px; text-align: center; }
    .hero-title { font-size: clamp(44px, 13vw, 84px); }
    .hero-buttons { flex-direction: column; gap: 24px; }
    .hero-buttons .btn { flex: none; width: 100%; max-width: none; height: 58px; }
    .hero-media { height: clamp(220px, 56vw, 420px); }

    /* Features: 2 columns */
    .features { padding: 72px 24px; }
    .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .feat-item { padding: 0 18px; }
    .feat-item:not(:nth-child(3n+1))::before { display: none; }
    .feat-item:not(:nth-child(2n+1))::before { display: block; }

    /* Cards: stacked */
    .styles { padding: 72px 24px; }
    .cards { flex-direction: column; align-items: center; }
    .card { width: 100%; max-width: 544px; }

    /* CTA */
    .cta-body { padding: 48px 24px; }
    .cta-lily { width: 220px; height: 229px; bottom: 30px; }
    .cta-lily.left { left: -120px; }
    .cta-lily.right { right: -120px; }

    /* Trust: stacked, left-aligned items */
    .trust { flex-direction: column; align-items: center; padding: 72px 48px; gap: 48px; }
    .trust-item { flex: 0 1 auto; width: 100%; max-width: 544px; }

    /* Footer: centered column */
    .footer-inner { flex-direction: column; align-items: center; padding: 48px; gap: 48px; text-align: center; }
    .footer-inner .logo { margin-right: 0; order: 1; align-items: center; }
    .footer .footer-nav { order: 2; flex-basis: auto; }
    .footer .nav-links { flex-direction: column; align-items: center; gap: 32px; }
    .footer .btn-fill { order: 3; width: 100%; max-width: 544px; }
  }
