/* ==========================================================
   Jaydee Caskets & Funeral Services
   One stylesheet for every page. Colours and fonts live in :root.
   ========================================================== */
:root {
  --bg: #F5F3EE;
  --paper: #FFFFFF;
  --ink: #121A17;
  --muted: #5F6A65;
  --line: #DDDAD0;
  --green: #1E3B32;
  --green-deep: #14281F;
  --accent: #8A5A33;
  --accent-soft: #D2AC84;
  --ph: #E5E8E0;
  --ph-line: #A5B0A6;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --max: 1180px;
  --gut: clamp(20px, 4vw, 40px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 300; line-height: 1.08; letter-spacing: -.015em; margin: 0; text-wrap: balance; }
h1 em, h2 em { font-style: italic; color: var(--accent); }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- small pieces ---------- */
.eyebrow { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; color: var(--accent); }
.on-dark .eyebrow { color: var(--accent-soft); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border: 1px solid transparent; border-radius: 999px;
  font-size: 15px; font-weight: 500; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn--solid { background: var(--green); color: #fff; }
.btn--solid:hover { background: var(--green-deep); }
.btn--line { border-color: #B9B5A8; color: var(--ink); background: transparent; }
.btn--line:hover { border-color: var(--ink); }
.btn--light { background: #fff; color: var(--green-deep); }
.btn--light:hover { background: var(--bg); }
.btn--line-light { border-color: rgba(255,255,255,.4); color: #fff; background: transparent; }
.btn--line-light:hover { border-color: #fff; }
.link { font-weight: 500; font-size: 15px; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.link::after { content: "\2192"; transition: transform .2s; }
.link:hover::after { transform: translateX(4px); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(245,243,238,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 36px; min-height: 76px; }
.brand { text-decoration: none; margin-right: auto; line-height: 1; }
.brand b { display: block; font: 400 26px/1 var(--serif); letter-spacing: -.01em; }
.brand span { display: block; margin-top: 6px; font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; gap: 34px; }
.nav a { text-decoration: none; font-size: 15px; padding-block: 6px; border-bottom: 1px solid transparent; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.bar .phone { font-size: 15px; text-decoration: none; color: var(--muted); white-space: nowrap; }
.bar .btn { padding: 11px 22px; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; position: relative; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 16px; height: 1.5px; background: var(--ink); position: absolute; left: 13px; content: ""; }
.nav-toggle span { top: 21px; }
.nav-toggle span::before { top: -5px; left: 0; }
.nav-toggle span::after { top: 5px; left: 0; }
@media (max-width: 1000px) { .bar .phone { display: none; } }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .bar { gap: 14px; flex-wrap: wrap; min-height: 68px; }
  .bar .btn { display: none; }
  .nav { display: none; width: 100%; flex-direction: column; gap: 0; padding-bottom: 12px; order: 5; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
}

/* ---------- hero ---------- */
.hero { padding-block: clamp(40px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero h1 { font-size: clamp(44px, 6.4vw, 84px); margin-block: 20px 24px; }
.hero .lede { font-size: 19px; color: var(--muted); max-width: 46ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.assure { list-style: none; margin: 40px 0 0; padding: 24px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 30px; font-size: 15px; color: var(--muted); }
.assure li { display: flex; align-items: center; gap: 10px; }
.assure-item { display: flex; align-items: center; gap: 10px; }
.assure li::before, .assure-item::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } .hero .arch-wrap { order: -1; max-width: 420px; } }

/* arched photo frame */
.arch-wrap { position: relative; padding: 0 16px 16px 0; max-width: 520px; width: 100%; justify-self: end; }
.arch-wrap::before { content: ""; position: absolute; inset: 16px 0 0 16px; border: 1px solid var(--accent-soft); border-radius: 999px 999px 6px 6px; }
.arch { position: relative; z-index: 1; aspect-ratio: 4 / 5; border-radius: 999px 999px 6px 6px; overflow: hidden; background: var(--green); display: grid; place-items: center; }
.arch svg { width: 38%; fill: none; stroke: rgba(255,255,255,.35); stroke-width: 1.2; stroke-linejoin: round; }
.arch img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- sections ---------- */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section--paper { background: var(--paper); border-block: 1px solid var(--line); }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 48px; }
.head h2 { font-size: clamp(34px, 4.4vw, 54px); margin-top: 14px; }
.head p { color: var(--muted); max-width: 50ch; margin-top: 14px; }

/* ---------- product cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 32px; }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cards { grid-template-columns: minmax(0, 1fr); } }
.card { display: grid; gap: 18px; align-content: start; min-width: 0; }
.media { position: relative; aspect-ratio: 3 / 2; background: var(--ph); border-radius: 6px; overflow: hidden; display: grid; place-items: center; max-width: 100%; }
.media svg { width: 32%; fill: none; stroke: var(--ph-line); stroke-width: 1.2; stroke-linejoin: round; }
.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .media img { transform: scale(1.03); }
.tag { position: absolute; top: 12px; left: 12px; z-index: 1; background: rgba(255,255,255,.94); color: var(--ink); font-size: 12px; font-weight: 500; padding: 4px 12px; border-radius: 999px; }
.tag.stock { left: auto; right: 12px; background: var(--green); color: #fff; }
.card .range { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); font-weight: 500; }
.card h3 { font-size: 28px; margin-top: 6px; }
.card .spec { color: var(--muted); font-size: 15px; margin-top: 8px; line-height: 1.5; }
.card .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

/* ---------- about split ---------- */
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 7vw, 104px); align-items: center; }
.split .arch-wrap { justify-self: start; }
.split .copy { display: grid; gap: 22px; justify-items: start; }
.split h2 { font-size: clamp(34px, 4.4vw, 54px); }
.split p { color: var(--muted); max-width: 52ch; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } .split .arch-wrap { max-width: 400px; } }
.values { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 0; width: 100%; }
.values li { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 16px; padding-block: 16px; border-top: 1px solid var(--line); }
.values li:last-child { border-bottom: 1px solid var(--line); }
.values b { font-family: var(--serif); font-weight: 400; font-size: 20px; }
.values span { color: var(--muted); font-size: 16px; }
@media (max-width: 560px) { .values li { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

/* ---------- dark band ---------- */
.band { background: var(--green); color: #fff; text-align: center; padding-block: clamp(64px, 9vw, 104px); }
.band h2 { font-size: clamp(34px, 4.8vw, 58px); max-width: 17ch; margin: 18px auto; }
.band p { color: rgba(255,255,255,.76); max-width: 46ch; margin-inline: auto; font-size: 18px; }
.band .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 32px; }

/* ---------- inner page header ---------- */
.page-head { padding-block: clamp(48px, 7vw, 88px) clamp(28px, 4vw, 48px); }
.page-head h1 { font-size: clamp(42px, 6vw, 76px); margin-top: 18px; }
.page-head p { color: var(--muted); max-width: 54ch; margin-top: 18px; font-size: 19px; }

/* ---------- collection ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.tabs button { background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 9px 20px; font-size: 15px; color: var(--muted); cursor: pointer; transition: all .2s; }
.tabs button:hover { border-color: var(--ink); color: var(--ink); }
.tabs button[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.count { margin-left: auto; color: var(--muted); font-size: 14px; }
.group { padding-top: 56px; }
.group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 32px; flex-wrap: wrap; margin-bottom: 32px; }
.group-head h2 { font-size: clamp(30px, 3.6vw, 42px); }
.group-head p { color: var(--muted); max-width: 54ch; font-size: 16px; }
.empty { color: var(--muted); padding-block: 56px; }
.after { padding-bottom: clamp(64px, 9vw, 112px); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 7vw, 96px); align-items: start; padding-bottom: clamp(64px, 9vw, 112px); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.details { display: grid; gap: 28px; }
.details h3 { font: 500 12px var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.details p, .details a { font-size: 20px; text-decoration: none; }
.details a:hover { color: var(--accent); }
.form { display: grid; gap: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: clamp(22px, 4vw, 40px); }
.form h2 { font-size: 32px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; padding: 13px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); outline: none; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 560px) { .pair { grid-template-columns: minmax(0, 1fr); } }
.form .note { font-size: 14px; color: var(--muted); }

/* ---------- quick form ---------- */
.quick-form { margin-top: 40px; }
.row-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; align-items: end; }
.row-form input, .row-form select { padding: 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); font-size: 15px; }
.row-form .btn { padding: 14px 24px; }
@media (max-width: 600px) { .row-form { grid-template-columns: 1fr; } }

/* ---------- testimonials ---------- */
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; margin-top: 48px; }
.testimonial { display: grid; gap: 16px; padding: 32px; background: var(--bg); border-radius: 12px; border: 1px solid var(--line); }
.testimonial .quote { font-family: var(--serif); font-size: 20px; line-height: 1.4; font-style: italic; color: var(--ink); position: relative; }
.testimonial .quote::before { content: "“"; position: absolute; left: -20px; top: -10px; font-size: 60px; color: var(--accent-soft); opacity: 0.5; }
.testimonial .author { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.testimonial .location { opacity: 0.7; font-size: 13px; }
/* ---------- process timeline ---------- */
.process { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-top: 48px; }
.step { display: grid; gap: 16px; position: relative; }
.step-num { width: 48px; height: 48px; background: var(--green); color: #fff; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 18px; }
.step-text h3 { font-size: 22px; margin-bottom: 8px; }
.step-text p { color: var(--muted); font-size: 16px; }

/* ---------- guide cards ---------- */
.guide { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 48px; }
.guide-card { padding: 32px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; display: grid; gap: 16px; transition: transform .2s, border-color .2s; }
.guide-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.guide-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.guide-head h3 { font-size: 20px; }
.guide-tag { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; padding: 4px 8px; background: var(--bg); color: var(--muted); border-radius: 4px; font-weight: 600; }
.guide-card p { color: var(--muted); font-size: 15px; margin-bottom: 12px; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal-overlay { position: absolute; inset: 0; background: rgba(18,26,23,0.8); backdrop-filter: blur(4px); }
.modal-content { position: relative; z-index: 1; background: var(--paper); width: 100%; max-width: 900px; border-radius: 12px; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,.3); }
.modal-close { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border-radius: 50%; border: none; background: var(--bg); cursor: pointer; font-size: 24px; line-height: 1; z-index: 10; }
.modal-body { display: grid; grid-template-columns: 1fr 1fr; }
.modal-img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--ph); }
.modal-info { padding: 40px; display: grid; gap: 16px; }
.modal-info h2 { font-size: 32px; margin-bottom: 8px; }
.modal-info .range { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); font-weight: 600; }
.modal-info .spec { color: var(--muted); font-size: 16px; margin-bottom: 24px; }
.modal-details { padding-block: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.modal-details h4 { font-size: 14px; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.modal-details ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.modal-details li { display: flex; justify-content: space-between; gap: 12px; }
.modal-details li strong { color: var(--ink); }
#modal-wa { margin-top: 24px; width: 100%; justify-content: center; }
@media (max-width: 760px) { .modal-body { grid-template-columns: 1fr; } .modal-info { padding: 24px; } }

/* ---------- faq ---------- */
.faq { display: grid; gap: 12px; max-width: 700px; margin-inline: auto; }
.faq-item { border: 1px solid var(--line); border-radius: 8px; background: var(--bg); overflow: hidden; }
.faq-item summary { padding: 18px 24px; cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::after { content: "+"; color: var(--accent); font-size: 20px; font-weight: bold; }
.faq-item[open] summary::after { content: "−"; }
.faq-item .answer { padding: 0 24px 20px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.faq-item summary:hover { background: rgba(0,0,0,.02); }

.site-footer { border-top: 1px solid var(--line); padding-block: 56px 36px; font-size: 15px; color: var(--muted); }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .foot { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.foot h4 { margin: 0 0 12px; font: 500 12px var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--accent); }
.foot .brand { display: inline-block; margin-bottom: 14px; color: var(--ink); }
.legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- whatsapp ---------- */
.wa-fab {
  position: fixed; right: max(20px, env(safe-area-inset-right, 0px)); bottom: max(20px, env(safe-area-inset-bottom, 0px));
  width: 58px; height: 58px; border-radius: 50%; background: #25D366; display: grid; place-items: center; z-index: 60;
  box-shadow: 0 6px 20px rgba(0,0,0,.22); transition: transform .2s;
}
.wa-fab:hover { transform: scale(1.06); }
.wa-fab svg { width: 30px; height: 30px; fill: #fff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
