:root {
  --bg: #f6f6f3;          /* soft off-white */
  --tint: #e8ece8;        /* pale green-grey */
  --ink: #2d2b30;
  --muted: #5f6763;
  --brand: #5d4a73;       /* heather purple */
  --brand-dark: #47385a;
  --sage: #7d8b84;        /* soft green-grey */
  --sage-dark: #3e4744;
  --accent: #8b6fa3;      /* lilac */
  --lilac-wash: #efe9f3;
  --line: #d9ddd9;
  --radius: 10px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Lato", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.7 var(--sans); }
img { max-width: 100%; display: block; }
a { color: var(--brand); }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.center { text-align: center; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.5rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; color: var(--accent); font-weight: 700; margin: 0 0 .6em; }
.lead { font-size: 1.15rem; color: var(--muted); }
.small { font-size: .85rem; color: var(--muted); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(246,246,243,.94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brand); font-family: var(--serif); font-size: 1.7rem; font-weight: 600; }
.brand-mark { width: 38px; height: 38px; color: var(--accent); }
.brand-text { line-height: 1; }
.brand-text small { display: block; font-family: var(--sans); font-size: .62rem; letter-spacing: .32em; text-transform: uppercase; color: var(--sage); margin-top: 4px; font-weight: 700; }
.site-nav { display: flex; gap: 26px; align-items: center; }
.site-nav a { text-decoration: none; color: var(--ink); font-size: .95rem; }
.site-nav a:hover { color: var(--brand); }
.nav-cta { background: var(--brand); color: #fff !important; padding: 8px 16px; border-radius: 999px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 6px; padding: 6px 12px; font: inherit; color: var(--ink); }

/* Buttons */
.btn { display: inline-block; padding: 12px 24px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: .95rem; border: 2px solid var(--brand); cursor: pointer; font-family: var(--sans); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-ghost { background: transparent; color: var(--brand); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.5em; }

/* Sections */
.section { padding: 88px 0; }
.section-tint { background: var(--tint); }
.hero { padding: 72px 0 88px; }
.hero-inner, .two-col { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.two-col { grid-template-columns: .9fr 1.1fr; }
.form-layout { grid-template-columns: .8fr 1.2fr; align-items: start; }

.photo-placeholder { aspect-ratio: 4/5; background: linear-gradient(160deg, #e4e8e4, #cfd6d1); border-radius: var(--radius); display: grid; place-items: center; color: var(--muted); font-style: italic; }
.photo-placeholder.tall { aspect-ratio: 3/4; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; margin-top: 28px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; }
.card p { color: var(--muted); margin: 0 0 1em; }
.card .price { margin-top: auto; color: var(--brand); font-weight: 700; }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; margin-top: 32px; }
.quote { margin: 0; background: #fff; box-shadow: 0 1px 0 var(--line); border-radius: var(--radius); padding: 30px; border-top: 3px solid var(--accent); }
.quote blockquote { margin: 0 0 1em; font-family: var(--serif); font-size: 1.3rem; font-style: italic; line-height: 1.45; }
.quote figcaption { color: var(--muted); font-size: .9rem; }

/* Form */
.contact-list { list-style: none; padding: 0; margin: 1.5em 0 0; }
.contact-list li { margin-bottom: .5em; }
.contact-list strong { display: inline-block; width: 70px; color: var(--brand); }
.enquiry-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.field { display: flex; flex-direction: column; margin-bottom: 16px; flex: 1; }
.field-row { display: flex; gap: 16px; }
label { font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.opt { font-weight: 400; color: var(--muted); }
input, select, textarea { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--ink); width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.hp { position: absolute; left: -9999px; }
.form-status { margin: 12px 0 0; font-weight: 700; }
.form-status.ok { color: var(--brand); }
.form-status.err { color: #a13d2d; }

/* ---------- Content components ---------- */
.intro-col { align-items: start; grid-template-columns: .8fr 1.2fr; margin-bottom: 8px; }
.subhead { font-size: 1.6rem; margin: 48px 0 20px; color: var(--brand); }
.small-head { font-size: 1.35rem; margin: 28px 0 12px; }
.includes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.includes li { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 6px; padding: 14px 16px; }
.callout { margin: 32px auto 0; max-width: 760px; text-align: center; font-family: var(--serif); font-style: italic; font-size: 1.45rem; line-height: 1.4; color: var(--brand); }
.benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.benefit { background: #fff; border-radius: var(--radius); padding: 22px; border-top: 3px solid var(--sage); }
.benefit h4 { margin: 0 0 6px; font-size: 1rem; color: var(--brand); }
.benefit p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.6; }
.more-link { margin-top: 32px; }
.more-link a { font-weight: 700; text-decoration: none; border-bottom: 1px solid currentColor; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }
.steps li { counter-increment: step; position: relative; padding-top: 64px; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--lilac-wash); color: var(--brand); font-family: var(--serif); font-size: 1.6rem; font-weight: 600; border: 1px solid #ddd0e6; }
.steps h3 { font-size: 1.45rem; }
.steps p { color: var(--muted); margin: 0; }
.chips { list-style: none; padding: 0; margin: 24px 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chips li { background: #fff; border: 1px solid #d6cbe0; color: var(--brand); padding: 8px 18px; border-radius: 999px; font-weight: 700; font-size: .9rem; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding-left: 32px; position: relative; margin-bottom: 8px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .35em; width: 20px; height: 20px; border-radius: 50%; background: var(--lilac-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%235d4a73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.cards.two { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); max-width: 880px; margin-left: auto; margin-right: auto; }
.narrow-p { max-width: 680px; margin: 0 auto; color: var(--muted); }

/* Blog article */
.article { max-width: 720px; margin: 0 auto; }
.article h1 { margin-bottom: .3em; }
.article h2 { font-size: 1.8rem; margin-top: 1.6em; color: var(--brand); }
.article ul { padding-left: 1.2em; }
.article li { margin-bottom: 4px; }
.article .meta { color: var(--muted); font-size: .9rem; margin-bottom: 2em; }
.article-cta { margin-top: 48px; padding: 32px; background: var(--tint); border-radius: var(--radius); text-align: center; }

/* ---------- Texture ---------- */
body { background: var(--bg) url(images/paper.png); }
.section { position: relative; background: var(--bg) url(images/paper.png); }
.section-tint { background: var(--tint) url(images/paper.png); }

/* ---------- Fixed-background panels ----------
   The image is position:fixed, so it stays still; clip-path on the parent
   means it only shows through that section. Works on iOS too, unlike
   background-attachment:fixed. */
.parallax { position: relative; clip-path: inset(0); }
.parallax-bg { position: fixed; inset: 0; z-index: -1; background-size: cover; background-position: center; }

.hero.parallax { min-height: calc(100vh - 68px); display: flex; align-items: center; padding: 64px 0; }
.hero.parallax .parallax-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(246,246,243,.82) 0%, rgba(246,246,243,.35) 60%, rgba(246,246,243,0) 100%); }
.hero-inner { width: 100%; }
.hero-photo .photo-placeholder { box-shadow: 0 20px 50px rgba(46,42,40,.18); background: rgba(222,227,223,.88); }

.band { min-height: 60vh; display: flex; align-items: center; padding: 100px 0; }
.band .parallax-bg::after { content: ""; position: absolute; inset: 0; background: rgba(30,38,35,.22); }
.band-quote { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(1.9rem, 4.5vw, 3.2rem); line-height: 1.25; color: #fbf8f3; margin: 0; text-shadow: 0 2px 18px rgba(0,0,0,.25); }
.band-purple .parallax-bg::after { background: rgba(50,35,65,.30); }
.band-purple .band-quote { font-size: clamp(1.5rem, 3.2vw, 2.3rem); }

/* Hero with the chapel photograph */
.hero-photo-bg .hero-inner { grid-template-columns: minmax(0, 620px); }
.hero-photo-bg .parallax-bg { background-position: 50% 40%; }
.hero.parallax.hero-photo-bg .parallax-bg::after { background: linear-gradient(90deg, rgba(34,26,44,.72) 0%, rgba(34,26,44,.5) 40%, rgba(34,26,44,.12) 75%, rgba(34,26,44,0) 100%); }
.hero-photo-bg .hero-text { color: #fff; text-shadow: 0 2px 16px rgba(20,14,28,.35); }
.hero-photo-bg .eyebrow { color: #d9c8e8; }
.hero-photo-bg .lead { color: rgba(255,255,255,.9); }
.hero-photo-bg .btn-ghost { color: #fff; border-color: rgba(255,255,255,.85); }
.hero-photo-bg .btn-ghost:hover { background: rgba(255,255,255,.12); }
.hero-photo-bg .btn-primary { background: #7a5f94; border-color: #7a5f94; }
.hero-photo-bg .btn-primary:hover { background: var(--brand); border-color: var(--brand); }
@media (max-width: 820px) {
  .hero-photo-bg { min-height: 88vh !important; align-items: flex-end !important; }
  .hero-photo-bg .parallax-bg { background-position: 52% center; }
  .hero.parallax.hero-photo-bg .parallax-bg::after { background: linear-gradient(0deg, rgba(38,30,50,.85) 0%, rgba(38,30,50,.6) 45%, rgba(38,30,50,.1) 80%); }
}

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

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

/* Footer */
.site-footer { background: var(--sage-dark); color: #e9e3da; padding: 28px 0; font-size: .9rem; }
.site-footer a { color: #e9e3da; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-inner p { margin: 0; }


/* Collapse the menu earlier – six links need room */
@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--bg); flex-direction: column; gap: 0; border-bottom: 1px solid var(--line); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 20px; width: 100%; border-top: 1px solid var(--line); }
  .nav-cta { border-radius: 0; }
}

/* Mobile */
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--bg); flex-direction: column; gap: 0; border-bottom: 1px solid var(--line); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 20px; width: 100%; border-top: 1px solid var(--line); }
  .nav-cta { border-radius: 0; }
  .hero-inner, .two-col, .form-layout, .intro-col { grid-template-columns: 1fr; gap: 24px; }
  .brand { font-size: 1.4rem; }
  .hero-photo { order: -1; max-width: 220px; }
  .hero-photo .photo-placeholder { aspect-ratio: 1; border-radius: 50%; }
  .hero.parallax { min-height: auto; padding: 40px 0 72px; }
  .band { min-height: 50vh; }
  .field-row { flex-direction: column; gap: 0; }
  .section { padding: 64px 0; }
}

/* Types of farewell – 3 across on desktop */
.benefits.farewell-types { grid-template-columns: repeat(3, 1fr); margin-top: 36px; }
.farewell-types .benefit h4 { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }
@media (max-width: 980px) { .benefits.farewell-types { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .benefits.farewell-types { grid-template-columns: 1fr; } }

/* Name + meaning of purple heather, at the top of the page */
.hero-name { margin: 0 0 30px; padding: 0 0 22px; position: relative; }
.hero-name::after { content: ""; position: absolute; left: 0; bottom: 0; width: 90px; height: 2px; background: linear-gradient(90deg, var(--accent), rgba(139,111,163,0)); }
.hero-brand { font-family: var(--serif); font-weight: 600; font-size: clamp(1.9rem, 3.6vw, 2.7rem); line-height: 1.1; color: var(--brand); margin: 0 0 8px; letter-spacing: .01em; }
.hero-meaning { font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 2vw, 1.45rem); color: var(--sage-dark); margin: 0; }
.hero-meaning span { color: var(--accent); }
.footer-meaning { font-family: var(--serif); font-size: 1.05rem; opacity: .85; }

/* Name banner at the start of the second section */
.name-banner { text-align: center; margin: 0 auto 64px; padding-bottom: 28px; }
.name-banner::after { left: 50%; transform: translateX(-50%); width: 120px; background: linear-gradient(90deg, rgba(139,111,163,0), var(--accent), rgba(139,111,163,0)); }
.name-banner .hero-brand { font-size: clamp(2.2rem, 4.4vw, 3.3rem); }

/* Heather photo band */
.band-photo .parallax-bg { background-position: 50% 45%; }
.band.band-photo .parallax-bg::after { background: rgba(26,32,28,.34); }

/* About – bio */
.bio p { margin: 0 0 1em; }
.bio p:first-child { font-family: var(--serif); font-size: 1.35rem; line-height: 1.45; color: var(--brand); }
#about .two-col { align-items: start; }
#about .photo-placeholder.tall { position: sticky; top: 100px; }

/* Band 2 – single heather sprig on the right, quote on the left */
.band-sprig .parallax-bg { background-position: 70% center; }
.band.band-purple.band-sprig .parallax-bg::after { background: linear-gradient(90deg, rgba(52,34,60,.62) 0%, rgba(52,34,60,.38) 45%, rgba(52,34,60,.05) 75%); }
.band-sprig .wrap { text-align: left; margin-left: max(20px, calc((100% - 1100px) / 2 + 20px)); max-width: 620px; }
@media (max-width: 820px) {
  .band-sprig .parallax-bg { background-position: 78% center; }
  .band.band-purple.band-sprig .parallax-bg::after { background: rgba(52,34,60,.5); }
  .band-sprig .wrap { margin-left: 0; }
}

/* About – Elaine's photo */
.about-photo { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); box-shadow: 0 18px 44px rgba(46,42,40,.16); position: sticky; top: 100px; }
@media (max-width: 820px) { .about-photo { position: static; max-width: 420px; margin: 0 auto; } }

/* Eyebrow line sitting inside the h1 (keywords for search engines, same look as before) */
.h1-eyebrow { display: block; margin-bottom: 14px; font-family: var(--sans); line-height: 1.6; }
.area-chips li { font-weight: 400; }

/* Celebrant Accord badge below About */
.accord { display: flex; align-items: center; justify-content: center; gap: 28px; margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.accord img { width: 150px; height: auto; flex-shrink: 0; }
.accord p { max-width: 460px; margin: 0; color: var(--muted); }
@media (max-width: 620px) { .accord { flex-direction: column; text-align: center; gap: 16px; } }

/* Contact – email link */
.contact-email { margin: 1.6em 0 .4em; display: flex; flex-direction: column; gap: 4px; }
.contact-email span { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); font-weight: 700; }
.contact-email a { font-family: var(--serif); font-size: 1.45rem; color: var(--brand); text-decoration: none; border-bottom: 1px solid rgba(93,74,115,.3); align-self: flex-start; word-break: break-all; }
.contact-email a:hover { border-bottom-color: var(--brand); }

/* Accord link + pop-up document viewer */
.accord-badge-link { display: block; border-radius: 50%; flex-shrink: 0; transition: transform .2s ease; }
.accord-badge-link:hover { transform: scale(1.04); }
.accord-link-wrap { margin-top: 10px !important; }
.accord-link { font-weight: 700; color: var(--brand); text-decoration: none; border-bottom: 1px solid currentColor; }
.accord-link::after { content: " →"; }

html.doc-open { overflow: hidden; }
.doc-dialog { width: min(880px, calc(100vw - 48px)); height: calc(100vh - 80px); max-height: none; padding: 0; border: 0; border-radius: 14px; background: #fff; box-shadow: 0 30px 80px rgba(20,14,28,.45); overflow: hidden; display: none; flex-direction: column; }
.doc-dialog[open] { display: flex; animation: docIn .25s ease; }
.doc-dialog::backdrop { background: rgba(30,24,38,.55); backdrop-filter: blur(2px); }
@keyframes docIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.doc-head { display: flex; align-items: center; gap: 16px; padding: 14px 16px 14px 24px; border-bottom: 1px solid var(--line); background: var(--bg); }
.doc-head .doc-title { font-family: var(--serif); font-weight: 600; font-size: 1.4rem; line-height: 1.2; margin: 0; flex: 1; color: var(--brand); }
.doc-download { font-size: .9rem; font-weight: 700; color: var(--brand); white-space: nowrap; }
.doc-close { width: 44px; height: 44px; flex-shrink: 0; border: 0; border-radius: 50%; background: var(--brand); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0 0 3px; }
.doc-close:hover, .doc-close:focus-visible { background: var(--brand-dark); outline: 3px solid rgba(139,111,163,.4); outline-offset: 2px; }
.doc-body { flex: 1; overflow-y: auto; padding: 24px; background: #e9e7ec; display: flex; flex-direction: column; align-items: center; gap: 20px; -webkit-overflow-scrolling: touch; }
.doc-body img { width: 100%; max-width: 800px; height: auto; background: #fff; box-shadow: 0 4px 18px rgba(0,0,0,.12); }
@media (max-width: 620px) {
  .doc-dialog { width: calc(100vw - 24px); height: calc(100vh - 40px); }
  .doc-head { padding: 10px 10px 10px 16px; gap: 10px; }
  .doc-head .doc-title { font-size: 1.1rem; }
  .doc-body { padding: 12px; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { .doc-dialog[open] { animation: none; } }
