/* Catholic Rosaries UK — site styles */
:root {
  --ground: #FFF8F3;
  --surface: #FFFFFF;
  --border: #F0E3DE;
  --ink: #2A0B14;          /* logo brown */
  --ink-deep: #1E070E;     /* footer */
  --text: #4A3240;
  --muted: #5A3A44;
  --rose: #E8788A;         /* logo pink, buttons */
  --rose-deep: #A8324E;    /* pink text on light */
  --rose-light: #F4A3B1;   /* pink text on dark */
  --blush: #FCE3E8;
  --photo-bg: #FBF1EC;
  --photo-border: #E2C7C0;
  --gem-purple: #8E4DB8;
  --gem-green: #2F8A63;
  --gem-amber: #E39A3B;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Nunito Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.65; overflow-x: hidden; }
img { max-width: 100%; }
a { color: var(--rose-deep); }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; }
h2 { font-size: clamp(32px, 4vw, 42px); line-height: 1.15; margin-bottom: 16px; }
h2 em { color: var(--rose-deep); }
h3 { font-weight: 600; }
p { margin: 0; }

.container { max-width: 1160px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.container-narrow { max-width: 1160px; margin: 0 auto; padding: 64px 24px 0; }
.section { padding-top: 96px; padding-bottom: 32px; }
.section-last { padding-bottom: 96px; }
.eyebrow { color: var(--rose-deep); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 14px; margin-bottom: 12px; }
.intro { max-width: 680px; color: var(--muted); margin-bottom: 44px; }
.muted { color: var(--muted); }
.placeholder { color: var(--rose-light); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 28px; border: none; border-radius: 999px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn-sm { min-height: 44px; padding: 0 20px; }
.btn-dark { background: var(--ink); color: var(--ground); }
.btn-dark:hover { background: #4A1A28; color: var(--ground); }
.btn-pink { background: var(--rose); color: var(--ink); }
.btn-pink:hover { background: #F08D9D; color: var(--ink); }
.btn-blush { background: var(--blush); color: var(--ink); }
.btn-blush:hover { background: #F8D2DA; color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-family: var(--serif); font-size: 23px; font-weight: 600; }
.brand img { width: 40px; height: 50px; object-fit: contain; }
.brand .accent { color: var(--rose-deep); }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; font-size: 15px; font-weight: 600; }
.nav-links a:not(.btn) { color: var(--ink); text-decoration: none; padding: 10px 0; }
.nav-links a:not(.btn):hover { color: var(--rose-deep); }

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 64px; padding-top: 56px; padding-bottom: 96px; }
.hero-text { flex: 1.25 1 440px; min-width: 0; }
.hero h1 { font-size: clamp(40px, 5.6vw, 64px); line-height: 1.04; letter-spacing: -0.01em; margin-bottom: 24px; }
.hero h1 em { color: var(--rose-deep); }
.lead { max-width: 520px; font-size: 19px; color: var(--muted); margin-bottom: 32px; }
.hero-art { flex: 1 1 320px; min-width: 0; display: flex; justify-content: center; }
.halo { position: relative; width: 100%; max-width: 420px; aspect-ratio: 1 / 1; border-radius: 50%; background: var(--blush); display: flex; align-items: center; justify-content: center; }
.halo img { width: 68%; height: auto; position: relative; }
.bead { position: absolute; border-radius: 50%; }
.bead-purple { top: 4%; right: 2%; width: 54px; height: 54px; background: var(--gem-purple); }
.bead-green { bottom: 8%; left: 0; width: 38px; height: 38px; background: var(--gem-green); }
.bead-amber { bottom: 0; right: 14%; width: 26px; height: 26px; background: var(--gem-amber); }

/* Split bands */
.band-dark { background: var(--ink); color: #FFF1EE; }
.band-dark .eyebrow, .band-dark h2 em { color: var(--rose-light); }
.band-white { background: var(--surface); border-top: 1px solid var(--border); }
.split { display: flex; flex-wrap: wrap; gap: 40px 72px; padding-top: 96px; padding-bottom: 96px; }
.split-head { flex: 1 1 340px; min-width: 0; }
.split-head h2 { font-size: clamp(34px, 4.4vw, 44px); line-height: 1.1; }
.split-body { flex: 1.4 1 440px; min-width: 0; font-size: 18px; }
.band-dark .split-body { color: #F7E6E9; }
.split-body p + p, .split-body [data-variants] + p { margin-top: 18px; }

/* Grids and cards */
.grid { display: grid; gap: 20px; }
.grid-250 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-280 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.grid-300 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-320 { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 12px; align-items: start; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.card p { color: var(--muted); font-size: 16px; }
.card h3 { font-size: 23px; }
.dot { display: inline-block; flex: 0 0 auto; width: 12px; height: 12px; border-radius: 50%; }

.product { border-radius: 28px; padding: 16px 16px 28px; gap: 14px; }
.product h3 { display: flex; align-items: center; gap: 10px; font-size: 25px; margin: 0 10px; }
.product p { margin: 0 10px; font-size: 17px; }
.photo { aspect-ratio: 4 / 3; background: var(--photo-bg); border: 1.5px dashed var(--photo-border); border-radius: 18px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; text-align: center; padding: 16px; }
.photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; }

.swatches { display: flex; gap: 6px; }
.swatches span { width: 30px; height: 30px; border-radius: 50%; }
.kind { margin-top: 4px; font-size: 13px !important; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #8A6A72 !important; }

.sizes { margin-top: 24px; background: var(--blush); border-radius: 24px; padding: 26px 28px; display: flex; flex-wrap: wrap; gap: 16px 48px; align-items: center; }
.sizes h3 { font-size: 22px; }
.sizes p { flex: 1 1 260px; display: flex; align-items: center; gap: 14px; font-size: 16px; }
.size-dot { flex: 0 0 auto; border-radius: 50%; background: var(--ink); }

.medal { padding: 16px 16px 28px; gap: 14px; }
.medal h3, .medal p { margin: 0 10px; }
.medal-photo { width: 100%; aspect-ratio: 1 / 1; border-radius: 18px; background: var(--photo-bg); border: 1.5px dashed var(--photo-border); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; overflow: hidden; }
.medal-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; }

/* Newsletter */
.newsletter { background: var(--blush); border-radius: 36px; padding: clamp(28px, 5vw, 52px); display: flex; flex-wrap: wrap; align-items: center; gap: 24px 56px; }
.newsletter > div { flex: 1 1 360px; min-width: 0; }
.newsletter h2 { font-size: clamp(30px, 3.6vw, 38px); line-height: 1.12; margin-bottom: 12px; }
.newsletter p { color: var(--text); }
.newsletter .eyebrow { color: var(--rose-deep); margin-bottom: 10px; }

/* Forms */
form { display: flex; flex-direction: column; gap: 8px; }
label { font-weight: 700; font-size: 15px; }
input, textarea { font: inherit; color: var(--ink); background: var(--ground); border: 1.5px solid var(--photo-border); border-radius: 16px; }
input { min-height: 52px; padding: 0 18px; }
textarea { padding: 14px 18px; resize: vertical; }
input:focus, textarea:focus { outline: 3px solid var(--rose); outline-offset: 1px; }
.inline-field { display: flex; flex-wrap: wrap; gap: 10px; }
.inline-field input { flex: 1 1 220px; min-width: 0; border-radius: 999px; background: var(--surface); }
.contact-form { gap: 16px; }
.field-row { display: flex; flex-wrap: wrap; gap: 16px; }
.field { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.form-success { background: var(--blush); border-radius: 16px; padding: 16px 20px; font-weight: 600; }
.newsletter .form-success { background: var(--surface); }

/* Pray */
.pray-layout { display: flex; flex-wrap: wrap; gap: 32px; }
.steps { flex: 1.2 1 420px; min-width: 0; border-radius: 28px; padding: 32px; }
.steps h3, .mysteries h3 { font-size: 24px; margin-bottom: 8px; }
.steps ol { list-style: none; counter-reset: step; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.steps li { counter-increment: step; display: flex; gap: 16px; align-items: flex-start; color: var(--text); font-size: 16px; padding-top: 4px; }
.steps li::before { content: counter(step); flex: 0 0 auto; width: 34px; height: 34px; margin-top: -4px; border-radius: 50%; background: var(--blush); color: var(--ink); font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; }
.mysteries { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.note { color: var(--muted); font-size: 16px; margin-top: 8px; }
.prayers-title { font-size: 28px; margin: 64px 0 20px; }

.accordion { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; }
.accordion summary { list-style: none; min-height: 58px; padding: 14px 20px; display: flex; align-items: center; gap: 14px; cursor: pointer; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: ""; flex: 0 0 auto; width: 9px; height: 9px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); margin: -4px 4px 0 auto; transition: transform 0.2s; }
.accordion[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.accordion summary:focus-visible { outline: 3px solid var(--rose); outline-offset: -3px; border-radius: 20px; }
.acc-title { flex: 1 1 auto; font-family: var(--serif); font-weight: 600; font-size: 21px; }
.acc-title-sans { flex: 1 1 auto; font-weight: 700; font-size: 17px; }
.acc-meta { color: var(--muted); font-size: 15px; font-weight: 600; }
.accordion ol { margin: 0; padding: 0 24px 20px 56px; color: var(--text); font-size: 16px; display: flex; flex-direction: column; gap: 6px; }
.prayer { padding: 0 20px 20px; color: var(--text); font-family: var(--serif); font-size: 18px; line-height: 1.6; white-space: pre-line; }

/* Closing band + footer */
.closing-inner { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.closing-logo { width: 64px; height: 80px; object-fit: contain; background: var(--ground); border-radius: 50%; padding: 14px; box-sizing: content-box; }
.closing h2 { font-size: clamp(40px, 6vw, 68px); line-height: 1.05; margin: 0; }
.closing p { max-width: 560px; font-size: 18px; color: #F4D3D9; }
.closing .btn { margin-top: 8px; }
.site-footer { background: var(--ink-deep); color: #E8CDD3; font-size: 14px; }
.site-footer a { color: var(--rose-light); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding-top: 28px; padding-bottom: 28px; }

/* Form states (added for the live forms) */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 14px; color: var(--muted); }
.form-error { background: #FFF1F1; border: 1.5px solid #E6A1AC; color: #7A1A2E; border-radius: 16px; padding: 12px 18px; font-weight: 600; font-size: 15px; }
.form-error[hidden] { display: none; }
.btn[disabled] { opacity: 0.65; cursor: progress; }

/* Simple content pages (privacy, newsletter confirmation, unsubscribe) */
.page { max-width: 760px; margin: 0 auto; padding: 56px 24px 96px; }
.page h1 { font-size: clamp(36px, 5vw, 52px); line-height: 1.08; margin-bottom: 24px; }
.page h1 em { color: var(--rose-deep); }
.page h2 { font-size: 26px; margin: 40px 0 12px; }
.page p, .page li { color: var(--text); }
.page p + p { margin-top: 14px; }
.page ul { padding-left: 22px; }
.page .card { margin-top: 24px; }
.page .btn-row { margin-top: 24px; }
.page { min-height: calc(100vh - 170px); }
.page p.eyebrow { color: var(--rose-deep); }

/* Photos added through content/home.json */
.photo.has-img, .medal-photo.has-img { border: none; padding: 0; background: none; }
.mission-photo { display: block; width: 160px; height: 160px; object-fit: cover; border-radius: 50%; margin-top: 28px; border: 4px solid var(--rose-light); }
[data-variant][hidden] { display: none; }

/* Reviews */
.review { margin: 0; gap: 14px; }
.review blockquote { margin: 0; }
.review blockquote p { font-family: var(--serif); font-size: 19px; line-height: 1.55; color: var(--text); }
.review figcaption { display: flex; flex-direction: column; font-size: 15px; color: var(--muted); margin-top: auto; }
.review figcaption strong { color: var(--ink); }
.card .stars { display: flex; gap: 2px; font-size: 20px; line-height: 1; color: var(--rose); }
.card .stars .off { color: #F3D9DF; }
.card.review[hidden] { display: none; }
.reviews-more { margin-top: 24px; }

/* Map */
.map-wrap { position: relative; background: var(--blush); border-radius: 28px; overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.map-wrap.zoomed { touch-action: none; cursor: grab; }
.map-wrap.dragging { cursor: grabbing; }
.world-map { display: block; width: 100%; height: auto; }
.world-map .land path { fill: #F7D4DB; stroke: #FFF8F3; stroke-width: 0.6; vector-effect: non-scaling-stroke; }
.world-map .land path.visited { fill: #EFA9B6; }
.world-map .pins circle { fill: var(--rose-deep); stroke: #FFFFFF; stroke-width: 1.5; vector-effect: non-scaling-stroke; cursor: pointer; }
.world-map .pins circle.group { fill: var(--rose-deep); }
.world-map .pins text { fill: #FFFFFF; font-family: var(--sans); font-weight: 700; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.world-map .routes path { fill: none; stroke: var(--rose-deep); stroke-opacity: 0.45; stroke-width: 1.25; stroke-linecap: round; vector-effect: non-scaling-stroke; pointer-events: none; }
.world-map .origin circle { fill: var(--ink); stroke: var(--rose); stroke-width: 3; vector-effect: non-scaling-stroke; cursor: pointer; }
.map-controls { position: absolute; right: 14px; bottom: 14px; display: flex; flex-direction: column; gap: 8px; }
.map-controls button { width: 44px; height: 44px; border: none; border-radius: 50%; background: var(--surface); color: var(--ink); font: inherit; font-size: 22px; font-weight: 700; line-height: 1; cursor: pointer; box-shadow: 0 1px 4px rgba(42, 11, 20, 0.15); }
.map-controls button:hover { background: var(--ground); }
.map-controls button:focus-visible { outline: 3px solid var(--rose); outline-offset: 2px; }
@media (max-width: 600px) {
  .map-controls { position: static; flex-direction: row; justify-content: flex-end; gap: 6px; padding: 0 10px 10px; }
  .map-controls button { width: 36px; height: 36px; font-size: 18px; }
}
.map-tip { position: absolute; transform: translate(-50%, calc(-100% - 12px)); background: var(--ink); color: var(--ground); font-size: 14px; font-weight: 700; padding: 6px 12px; border-radius: 999px; white-space: nowrap; pointer-events: none; }
.map-tip.flip { transform: translate(calc(-100% + 16px), calc(-100% - 12px)); }
.map-tip.flip-left { transform: translate(-16px, calc(-100% - 12px)); }
.map-tip[hidden] { display: none; }
.map-summary { margin-top: 18px; color: var(--muted); }
.map-list { margin-top: 8px; color: var(--muted); }
.map-list summary { cursor: pointer; font-weight: 700; color: var(--rose-deep); padding: 8px 0; }
.map-list ul { margin: 4px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.section h2 + .grid, .section h2 + .map-wrap { margin-top: 28px; }
.map-credit { margin-top: 12px; font-size: 13px; color: #8A6A72; }
.map-credit a { color: inherit; }

/* Cookie banner (only shown when Google Analytics is set up in site.json) */
.cookie-banner { position: fixed; z-index: 50; left: 16px; bottom: 16px; max-width: 420px; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 20px; padding: 18px 20px; box-shadow: 0 8px 30px rgba(42, 11, 20, 0.14); font-size: 15px; }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin-bottom: 14px; }
.cookie-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 480px) { .cookie-banner { left: 12px; right: 12px; bottom: 12px; max-width: none; } }
.link-button { background: none; border: none; padding: 0; font: inherit; color: var(--rose-light); text-decoration: underline; cursor: pointer; }

/* Thank-you page */
.discount { margin-top: 36px; background: var(--blush); border-radius: 24px; padding: 28px; }
.discount h2 { font-size: 26px; margin: 0 0 16px; }
.discount-code { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; }
.discount-code .code { font-family: var(--sans); font-weight: 700; font-size: 24px; letter-spacing: 0.08em; color: var(--ink); background: var(--surface); border: 2px dashed var(--photo-border); border-radius: 14px; padding: 10px 18px; }
.discount .btn-blush { background: var(--surface); }
.discount .btn-row { margin-top: 20px; }
.thanks-review { margin-top: 32px; }
.signoff { margin-top: 32px; font-family: var(--serif); font-size: 20px; color: var(--ink); }
.page .newsletter-wrap { padding: 48px 0 0; }
.page .newsletter { padding: 28px; }
