/* Faithful Birth Services: shared styles for every page.
   Colours and fonts come from business-files/design-system. */

:root {
  --forest: #36412C;
  --ink: #2A3123;
  --moss: #5A6450;
  --sage: #838F77;
  --mist: #E3E8DC;
  --linen: #EFECE3;
  --cream: #FAF8F3;
  --line: #D6D9CF;
  --serif: "Cormorant Garamond", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 17px/1.65 Mulish, system-ui, sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); }
.c { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }

h1, h2 { font-family: var(--serif); color: var(--forest); font-weight: 500; margin: 0; }
h1 { font-size: clamp(38px, 6vw, 58px); line-height: 1.06; }
h2 { font-size: clamp(30px, 4.2vw, 42px); line-height: 1.12; margin-bottom: 14px; }
h3 { font-size: 19px; line-height: 1.4; margin: 0 0 6px; color: var(--forest); }
p { margin: 0 0 14px; }
.lead { font-size: 20px; line-height: 1.6; max-width: 36em; }
.small { font-size: 14px; color: var(--moss); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--moss); margin-bottom: 10px; }

section { padding: 88px 0; }
.mist { background: var(--mist); }
.linen { background: var(--linen); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: #fff; padding: 8px 14px; border-radius: 999px; }

/* Buttons */
.btn { display: inline-block; border-radius: 999px; padding: 13px 28px; font-weight: 600; font-size: 16px; text-decoration: none; line-height: 1.4; }
.btn.p { background: var(--forest); color: #fff; }
.btn.s { border: 1.5px solid var(--forest); color: var(--forest); padding: 11.5px 26px; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(250, 248, 243, .97); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 46px; height: 46px; }
.brand span { font-family: var(--serif); font-size: 22px; color: var(--forest); font-weight: 600; }
.links { display: flex; gap: 24px; align-items: center; }
.links a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink); }
.links a[aria-current="page"] { color: var(--forest); text-decoration: underline; text-decoration-color: var(--sage); text-underline-offset: 6px; text-decoration-thickness: 2px; }
.links a.btn { color: #fff; padding: 9px 20px; text-decoration: none; }
.menu-btn { display: none; width: 44px; height: 44px; padding: 8px; background: none; border: 0; border-radius: 999px; cursor: pointer; }
.menu-btn svg { width: 28px; height: 28px; fill: none; stroke: var(--forest); stroke-width: 1.8; stroke-linecap: round; }
.menu-btn .icon-close, .menu-btn[aria-expanded="true"] .icon-open { display: none; }
.menu-btn[aria-expanded="true"] .icon-close { display: block; }

/* Page tops */
.hero { padding: 72px 0 80px; }
.hero .c { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero .logo-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 28px; }
.hero .logo-card img { width: 100%; max-width: 340px; margin: 0 auto; }
.areas { margin-top: 22px; font-size: 15px; color: var(--moss); display: flex; align-items: center; gap: 8px; }
.page-top { padding: 64px 0 56px; }
.page-top .lead { margin-top: 16px; }

/* Bands */
.band { background: var(--forest); color: #fff; padding: 56px 0; text-align: center; }
.band p { font-family: var(--serif); font-size: clamp(24px, 3.2vw, 32px); line-height: 1.35; max-width: 820px; margin: 0 auto; }
.band h2, .band .eyebrow { color: #fff; }
.band .eyebrow { color: var(--mist); }
.band .btn { background: #fff; color: var(--forest); }
.band .body { font-family: inherit; font-size: 17px; line-height: 1.65; max-width: 36em; margin: 0 auto 22px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 36px; }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 30px; display: flex; flex-direction: column; }
.card svg { width: 34px; height: 34px; margin-bottom: 14px; }
.card ul { padding-left: 18px; margin: 4px 0 18px; }
.card li { margin-bottom: 4px; }
.card .more { margin-top: auto; font-weight: 700; text-decoration: none; }
.price { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-weight: 700; color: var(--forest); }
.price span { font-weight: 400; color: var(--moss); }
.tag { display: inline-block; align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: var(--mist); color: var(--forest); border-radius: 999px; padding: 4px 12px; margin-bottom: 12px; }

/* Lists and chips */
.checks { list-style: none; padding: 0; margin: 18px 0; }
.checks li { padding-left: 30px; position: relative; margin-bottom: 10px; }
.checks li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 12px; height: 7px; border-left: 2px solid var(--sage); border-bottom: 2px solid var(--sage); transform: rotate(-45deg); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 8px; }
.chips span { background: var(--linen); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 600; color: var(--forest); }
.mist .chips span, .linen .chips span { background: #fff; }

/* Two columns: text beside a photo or a box */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.top { align-items: start; }
.split.photo-left { grid-template-columns: .8fr 1.2fr; }
.split.photo-right { grid-template-columns: 1.2fr .8fr; }
.photo { border-radius: 20px; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.price-box { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 30px; }
.price-box .amount { font-family: var(--serif); font-size: 48px; line-height: 1; color: var(--forest); margin: 6px 0 12px; }
.price-box table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; }
.price-box td { padding: 9px 0; border-top: 1px solid var(--line); }
.price-box td:last-child { text-align: right; font-weight: 600; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 32px; }
.num { font-family: var(--serif); font-size: 48px; line-height: 1; color: var(--sage); margin-bottom: 8px; }

/* Scripture */
.verseband { text-align: center; padding: 72px 0; }
.vq { font-family: var(--serif); font-style: italic; font-size: clamp(24px, 3vw, 30px); line-height: 1.45; color: var(--forest); max-width: 820px; margin: 0 auto 12px; }
.ref { font-size: 14px; color: var(--moss); font-weight: 600; }
.faith-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; text-align: left; margin-top: 18px; }
.faith-trio div { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; }
.faith-trio b { display: block; color: var(--forest); margin-bottom: 2px; }
.faith-trio span { font-size: 15px; color: var(--moss); }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
summary { cursor: pointer; font-weight: 700; color: var(--forest); font-size: 18px; }
details p { margin: 10px 0 0; }
.faq-group { margin-top: 40px; }
.faq-group h2 { font-size: 30px; }

/* Contact */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 30px; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.consult-form, .form-thanks { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px; }
.consult-form { display: grid; gap: 18px; }
.consult-form[hidden], .form-thanks[hidden] { display: none; }
.consult-form h2, .form-thanks h2 { font-size: 30px; margin: 0; }
.consult-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.consult-form label, .consult-form legend { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; color: var(--ink); }
.consult-form fieldset { border: 0; padding: 0; margin: 0; }
.consult-form input:not([type="radio"]), .consult-form textarea { width: 100%; font: inherit; color: var(--ink); background: var(--cream); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.consult-form input:focus, .consult-form textarea:focus { outline: 2px solid var(--sage); outline-offset: 1px; border-color: var(--sage); }
.consult-form .req { color: var(--forest); }
.consult-form .opt { font-weight: 400; color: var(--moss); }
.consult-form .choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.consult-form .choices label { font-weight: 400; margin: 0; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.consult-form input[type="radio"] { width: 18px; height: 18px; accent-color: var(--forest); margin: 0; }
.consult-form button { border: 0; cursor: pointer; justify-self: start; font: inherit; font-weight: 600; }
.consult-form button:disabled { opacity: .6; }
.contact-grid { grid-template-areas: "intro form" "verse form"; grid-template-rows: auto 1fr; row-gap: 0; }
.contact-grid .verse { margin-top: 28px; }
.contact-grid .intro { grid-area: intro; }
.contact-grid .form-col { grid-area: form; }
.contact-grid .verse { grid-area: verse; }
@media (max-width: 820px) {
  .contact-grid { grid-template-areas: "intro" "form" "verse"; }
  .consult-form, .form-thanks { padding: 24px; }
  .consult-form .row2, .consult-form .choices { grid-template-columns: 1fr; }
}
.note { background: var(--mist); border-radius: 20px; padding: 18px 22px; font-size: 15px; }

/* Plain text pages (privacy) */
.prose h2 { font-size: 28px; margin-top: 36px; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }

/* Footer */
.site-footer { background: var(--forest); color: #fff; padding: 48px 0 28px; font-size: 15px; }
.site-footer a { color: #fff; }
.f-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; }
.f-name { font-family: var(--serif); font-size: 24px; font-weight: 600; margin-bottom: 4px; }
.f-links { display: flex; flex-direction: column; gap: 4px; }
.f-links a { text-decoration: none; }
.f-bottom { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .2); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; opacity: .9; }
.f-bottom p { margin: 0; }
.f-verse { font-family: var(--serif); font-style: italic; font-size: 18px; }

/* Phones and small tablets */
@media (max-width: 820px) {
  section { padding: 60px 0; }
  .hero { padding: 40px 0 56px; }
  .page-top { padding: 44px 0 40px; }
  .hero .c, .split, .split.photo-left, .split.photo-right { grid-template-columns: 1fr; gap: 32px; }
  .hero .logo-card { order: -1; padding: 18px; }
  .hero .logo-card img { max-width: 220px; }
  .cards, .cards.two, .steps, .faith-trio, .f-top { grid-template-columns: 1fr; }
  .photo { max-width: 420px; }
  .brand span { font-size: 19px; }
  .js .menu-btn { display: inline-block; }
  .js .links { display: none; }
  .links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--cream); border-bottom: 1px solid var(--line); padding: 8px 24px 20px; }
  .links.open { display: flex; }
  .links a { padding: 12px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .links a.btn { margin-top: 14px; text-align: center; border-bottom: 0; padding: 12px 20px; }
  .site-header .nav { position: relative; }
}
@media (max-width: 820px) {
  html:not(.js) .links { position: static; padding: 0; border: 0; flex-direction: row; flex-wrap: wrap; gap: 14px; }
}
