/* ==========================================================================
   The Little Red Barn — public site styles
   Design tokens live on :root; brand colours can be overridden from Admin → Settings.
   ========================================================================== */
:root {
  --brand: #b3261e;
  --brand-dark: color-mix(in srgb, var(--brand) 78%, #000);
  --brand-soft: color-mix(in srgb, var(--brand) 10%, #fff);
  --accent: #e3a33b;
  --green: #3f6b4a;
  --ink: #1f1a17;
  --text: #3d3530;
  --muted: #776d65;
  --cream: #fbf6ee;
  --sand: #f3eadb;
  --line: #e9e0d3;
  --white: #ffffff;
  --dark: #1b1613;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px -12px rgb(31 26 23 / 0.22);
  --shadow-lg: 0 30px 60px -20px rgb(31 26 23 / 0.35);
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 84px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.65; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
img, video, iframe { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5.5vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--white); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.container { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 24px; }
.container-fluid { width: 100%; padding: 0 16px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.mt-4 { margin-top: 2.2rem; }
.icon { flex-shrink: 0; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .85em 1.6em; border-radius: 999px; font-weight: 600; font-size: .98rem; border: 2px solid transparent; cursor: pointer; transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s; font-family: inherit; line-height: 1.2; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: var(--white); box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--brand) 80%, transparent); }
.btn-primary:hover { background: var(--brand-dark); color: var(--white); }
.btn-ghost { background: transparent; border-color: currentColor; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-sm { padding: .6em 1.15em; font-size: .9rem; }
.btn-lg { padding: 1.05em 1.8em; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.6rem; }
.btn-row.center { justify-content: center; }
.link-arrow { display: inline-flex; align-items: center; gap: .35em; font-weight: 600; color: var(--brand); font-size: .95rem; }
.link-arrow .icon { transition: transform .25s var(--ease); }
a:hover .link-arrow .icon, .link-arrow:hover .icon { transform: translateX(4px); }

.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--brand); margin-bottom: .9rem; }
.eyebrow::before { content: ""; display: inline-block; width: 26px; height: 2px; background: currentColor; vertical-align: middle; margin-right: 10px; }
.eyebrow-light { color: var(--accent); }
.lead { font-size: 1.15rem; color: var(--muted); }

/* ---------- Announcement + Header ---------- */
.announce { background: var(--ink); color: #f5ede3; font-size: .9rem; position: relative; z-index: 60; }
.announce .container { display: flex; gap: 14px; justify-content: center; align-items: center; padding-top: 9px; padding-bottom: 9px; flex-wrap: wrap; text-align: center; }
.announce a { color: var(--accent); font-weight: 600; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgb(255 255 255 / .96); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); transition: background .35s, box-shadow .35s, border-color .35s; }
.has-hero .site-header { position: fixed; left: 0; right: 0; background: transparent; border-color: transparent; }
.has-hero .announce + .site-header { top: auto; }
.has-hero .site-header.scrolled { background: rgb(255 255 255 / .97); border-color: var(--line); box-shadow: 0 8px 24px -16px rgb(0 0 0 / .3); top: 0; }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: var(--white); box-shadow: 0 4px 14px -6px rgb(0 0 0 / .35); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-head); font-size: 1.22rem; font-weight: 700; }
.brand-text small { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--brand); font-weight: 600; }
.has-hero .site-header:not(.scrolled) .brand, .has-hero .site-header:not(.scrolled) .main-nav > ul > li > a { color: var(--white); }
.has-hero .site-header:not(.scrolled) .brand-text small { color: var(--accent); }
.has-hero .site-header:not(.scrolled) .nav-toggle { color: var(--white); }

.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > ul { display: flex; gap: 4px; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a { display: flex; align-items: center; gap: 4px; padding: 10px 14px; color: var(--ink); font-weight: 500; font-size: .97rem; border-radius: 999px; transition: background .2s, color .2s; }
.main-nav > ul > li > a:hover, .main-nav > ul > li > a.active { background: color-mix(in srgb, var(--brand) 10%, transparent); color: var(--brand); }
.has-hero .site-header:not(.scrolled) .main-nav > ul > li > a:hover, .has-hero .site-header:not(.scrolled) .main-nav > ul > li > a.active { background: rgb(255 255 255 / .16); color: var(--white); }
.main-nav .sub { position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px; background: var(--white); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .22s var(--ease); }
.main-nav .has-sub:hover .sub, .main-nav .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.main-nav .sub a { display: block; padding: 9px 14px; border-radius: 9px; color: var(--ink); font-size: .95rem; }
.main-nav .sub a:hover { background: var(--cream); color: var(--brand); }
.nav-cta { display: flex; gap: 10px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); cursor: pointer; padding: 6px; }
.nav-toggle .i-close, .nav-open .nav-toggle .i-open { display: none; }
.nav-open .nav-toggle .i-close { display: inline; }

@media (max-width: 1040px) {
  /* backdrop-filter would trap the fixed full-screen menu inside the header */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav-toggle { display: block; z-index: 70; }
  .main-nav { position: fixed; inset: 0; background: var(--ink); flex-direction: column; justify-content: center; align-items: stretch; padding: 90px 28px 40px; gap: 26px; transform: translateY(-16px); opacity: 0; visibility: hidden; transition: transform .35s var(--ease), opacity .35s, visibility 0s linear .35s; z-index: 65; overflow-y: auto; }
  .nav-open .main-nav { transform: none; opacity: 1; visibility: visible; transition: transform .35s var(--ease), opacity .35s; }
  .nav-open .nav-toggle { color: var(--white) !important; position: relative; }
  .main-nav > ul { flex-direction: column; gap: 2px; }
  .main-nav > ul > li > a, .has-hero .site-header:not(.scrolled) .main-nav > ul > li > a { color: var(--white); font-size: 1.35rem; font-family: var(--font-head); padding: 10px 6px; }
  .main-nav .sub { position: static; opacity: 1; visibility: visible; transform: none; background: transparent; box-shadow: none; padding: 0 0 0 14px; }
  .main-nav .sub a { color: #d9cfc4; }
  .main-nav .sub a:hover { background: transparent; color: var(--white); }
  .nav-cta .btn { width: 100%; padding: 1em; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Toasts ---------- */
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 90; max-width: 420px; padding: 16px 44px 16px 18px; border-radius: 14px; background: var(--ink); color: var(--white); box-shadow: var(--shadow-lg); animation: toastIn .4s var(--ease); }
.toast-success { background: var(--green); }
.toast-error { background: var(--brand); }
.toast button { position: absolute; top: 8px; right: 12px; background: none; border: 0; color: inherit; font-size: 1.4rem; cursor: pointer; }
@keyframes toastIn { from { transform: translateY(20px); opacity: 0; } }

/* ---------- Hero ---------- */
.hero, .page-header { position: relative; display: flex; align-items: center; color: var(--white); overflow: hidden; isolation: isolate; background: var(--dark); }
.hero { min-height: 100vh; min-height: 100svh; padding: calc(var(--header-h) + 40px) 0 110px; }
.page-header { min-height: 62vh; padding: calc(var(--header-h) + 60px) 0 80px; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-iframe { position: absolute; top: 50%; left: 50%; width: 177.78vh; min-width: 100%; height: 56.25vw; min-height: 100%; transform: translate(-50%, -50%); border: 0; pointer-events: none; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgb(15 10 8 / calc(var(--ov) * .9)) 0%, rgb(15 10 8 / calc(var(--ov) * .55)) 45%, rgb(15 10 8 / calc(var(--ov) + .15)) 100%); }
.hero-content, .ph-content { position: relative; max-width: 1220px; }
.hero-center .hero-content, .ph-center .ph-content { text-align: center; }
.hero-center .hero-lead, .ph-center .hero-lead { margin-left: auto; margin-right: auto; }
.hero-center .btn-row, .ph-center .btn-row { justify-content: center; }
.hero h1 { color: var(--white); font-size: clamp(2.6rem, 6.6vw, 5.4rem); max-width: 16ch; text-shadow: 0 4px 30px rgb(0 0 0 / .3); }
.hero-center h1 { margin-left: auto; margin-right: auto; }
.page-header h1 { color: var(--white); }
.hero-lead { font-size: clamp(1.08rem, 1.6vw, 1.35rem); max-width: 640px; color: rgb(255 255 255 / .9); }
.hero .btn-ghost, .page-header .btn-ghost, .cta-sec .btn-ghost, .s-dark .btn-ghost, .s-brand .btn-ghost { color: var(--white); }
.hero .btn-ghost:hover, .page-header .btn-ghost:hover, .cta-sec .btn-ghost:hover, .s-dark .btn-ghost:hover, .s-brand .btn-ghost:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.hero-in { opacity: 0; transform: translateY(26px); animation: heroIn 1s var(--ease) forwards; animation-delay: calc(var(--d) * .15s + .15s); }
@keyframes heroIn { to { opacity: 1; transform: none; } }
.hero-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 14px; padding: 0; margin: 2.6rem 0 0; }
.hero-center .hero-badges { justify-content: center; }
.hero-badges li { display: flex; flex-direction: column; padding: 14px 22px; border-radius: 16px; background: rgb(255 255 255 / .12); border: 1px solid rgb(255 255 255 / .22); backdrop-filter: blur(10px); min-width: 150px; }
.hero-badges strong { font-family: var(--font-head); font-size: 1.7rem; line-height: 1.1; }
.hero-badges span { font-size: .85rem; color: rgb(255 255 255 / .82); }
@media (max-width: 600px) {
  .hero-badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 1.8rem; }
  .hero-badges li { min-width: 0; padding: 10px 8px; text-align: center; }
  .hero-badges strong { font-size: 1.2rem; }
  .hero-badges span { font-size: .7rem; line-height: 1.25; }
  .hero .btn-row { flex-direction: column; align-items: stretch; }
  .announce { font-size: .82rem; }
}
.hero-toggle { position: absolute; right: 24px; bottom: 28px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgb(255 255 255 / .4); background: rgb(0 0 0 / .25); color: var(--white); display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(6px); }
.hero-toggle .i-play { display: none; }
.hero-toggle.paused .i-play { display: block; }
.hero-toggle.paused .i-pause { display: none; }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); width: 28px; height: 46px; border: 2px solid rgb(255 255 255 / .7); border-radius: 20px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--white); animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translateY(14px); } }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.s-light { background: var(--white); }
.s-cream { background: var(--cream); }
.s-dark { background: var(--dark); color: #d8cec4; }
.s-brand { background: var(--brand); color: rgb(255 255 255 / .9); }
.s-dark h2, .s-dark h3, .s-brand h2, .s-brand h3 { color: var(--white); }
.s-dark .lead, .s-brand .lead { color: rgb(255 255 255 / .8); }
.s-brand .eyebrow, .s-dark .eyebrow { color: var(--accent); }
.s-brand .btn-primary { background: var(--white); color: var(--brand); }
.s-brand .btn-primary:hover { background: var(--ink); color: var(--white); }
.sec-head { max-width: 760px; margin-bottom: 3rem; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.prose { font-size: 1.05rem; }
.prose h2 { margin-top: 1.4em; }
.prose h3 { margin-top: 1.3em; }
.prose img { border-radius: var(--radius); margin: 1.5em 0; }
.prose ul { padding-left: 1.2em; }
.prose blockquote { border-left: 4px solid var(--brand); margin: 1.5em 0; padding: .3em 0 .3em 1.2em; font-family: var(--font-head); font-size: 1.25rem; color: var(--ink); }
.prose > :last-child { margin-bottom: 0; }

.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Split (text + image) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.split-right .split-media { order: 2; }
.split-media { position: relative; }
.split-media > img, .split-media > video, .split-media .ratio-16x9 { position: relative; z-index: 1; width: 100%; border-radius: 24px; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3.4; object-fit: cover; }
.split-media .ratio-16x9 { aspect-ratio: 16 / 9; }
.split-deco { position: absolute; z-index: 0; width: 60%; height: 70%; right: -22px; bottom: -22px; border-radius: 24px; background: color-mix(in srgb, var(--accent) 35%, transparent); }
.split-right .split-deco { right: auto; left: -22px; }
.s-cream .split-deco { background: color-mix(in srgb, var(--brand) 14%, transparent); }
.checks { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; color: var(--ink); }
.checks .icon { color: var(--white); background: var(--green); border-radius: 50%; padding: 3px; margin-top: 3px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split-right .split-media { order: 0; } }

/* Cards */
.card { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; color: var(--text); transition: transform .35s var(--ease), box-shadow .35s; height: 100%; }
a.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: var(--text); }
.s-cream .card { border-color: transparent; box-shadow: var(--shadow); }
.s-dark .card { background: #261f1b; border-color: #3a302a; color: #d8cec4; }
.card-media { aspect-ratio: 4 / 3; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
a.card:hover .card-media img { transform: scale(1.06); }
.card-body { padding: 26px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body p { color: var(--muted); font-size: .97rem; flex: 1; }
.s-dark .card-body p { color: #b8ada3; }
.card-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 10px; }
.icon-cards .card { text-align: left; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 24px; }
.stat { text-align: center; padding: 26px 18px; border-radius: var(--radius); background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .12); }
.s-light .stat, .s-cream .stat { background: var(--white); border-color: var(--line); }
.stat strong { display: block; font-family: var(--font-head); font-size: clamp(2.4rem, 4.2vw, 3.4rem); line-height: 1.1; color: inherit; }
.s-light .stat strong, .s-cream .stat strong { color: var(--brand); }
.stat > span { font-size: .95rem; opacity: .85; }
.stat-icon { display: inline-grid; margin-bottom: 8px; color: var(--accent); }

/* Quote + CTA with background */
.has-bg { background: var(--dark) var(--bg) center / cover no-repeat; color: var(--white); }
.has-bg::before { content: ""; position: absolute; inset: 0; background: rgb(15 10 8 / var(--ov, .55)); }
.has-bg > .container { position: relative; }
.has-bg h2, .has-bg blockquote { color: var(--white); }
.has-bg .lead { color: rgb(255 255 255 / .85); }
@media (min-width: 900px) { .has-bg { background-attachment: fixed; } }
.quote-mark { display: inline-grid; color: var(--accent); margin-bottom: 1rem; }
.quote-sec blockquote { margin: 0 auto; font-family: var(--font-head); font-size: clamp(1.5rem, 3.3vw, 2.5rem); line-height: 1.3; font-weight: 500; color: var(--ink); max-width: 30ch; }
.s-dark.quote-sec blockquote, .s-brand.quote-sec blockquote { color: var(--white); }
.quote-sec cite { display: block; margin-top: 1.4rem; font-style: normal; font-weight: 600; letter-spacing: .06em; color: var(--accent); }
.cta-sec h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }

/* Residents */
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: -1rem 0 2.4rem; }
.chip { border: 1px solid var(--line); background: var(--white); padding: 8px 18px; border-radius: 999px; font: inherit; font-size: .92rem; font-weight: 500; color: var(--ink); cursor: pointer; transition: all .2s; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.active { background: var(--ink); color: var(--white); border-color: var(--ink); }
.resident-card { display: block; border-radius: 22px; overflow: hidden; background: var(--white); color: var(--text); box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s; }
.resident-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: var(--text); }
.rc-img { position: relative; aspect-ratio: 1 / 1.05; overflow: hidden; background: var(--sand); }
.rc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.resident-card:hover .rc-img img { transform: scale(1.07); }
.badge { position: absolute; top: 14px; left: 14px; padding: 5px 12px; border-radius: 999px; background: var(--brand); color: var(--white); font-size: .75rem; font-weight: 700; letter-spacing: .04em; }
.badge-soft { background: rgb(255 255 255 / .9); color: var(--ink); }
.rc-body { padding: 20px 22px 22px; }
.rc-body h3 { margin: 0; font-size: 1.35rem; }
.rc-body p { margin: 2px 0 10px; font-size: .92rem; }
.is-hidden { display: none !important; }

/* Tours */
.tour-card { background: var(--white); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.tc-img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.tc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.tour-card:hover .tc-img img { transform: scale(1.06); }
.price-tag { position: absolute; right: 14px; top: 14px; background: var(--white); color: var(--brand); font-weight: 700; padding: 6px 14px; border-radius: 999px; font-size: .95rem; box-shadow: var(--shadow); }
.tc-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.tc-body h3 a { color: var(--ink); }
.tc-body p { color: var(--muted); font-size: .96rem; flex: 1; }
.tc-meta { list-style: none; display: flex; gap: 16px; padding: 0; margin: 0 0 10px; color: var(--muted); font-size: .9rem; }
.tc-meta li { display: flex; align-items: center; gap: 6px; }
.tc-body .btn { align-self: flex-start; }

/* Detail pages */
.detail-hero { padding: calc(var(--header-h) / 2 + 40px) 0 70px; background: linear-gradient(180deg, var(--cream), var(--white)); }
.detail-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.detail-media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow-lg); }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; margin-bottom: 1.2rem; color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 1.6rem 0; }
.facts div { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; }
.facts dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; }
.facts dd { margin: 0; font-weight: 600; color: var(--ink); }
.sponsor-box { display: flex; gap: 18px; align-items: center; justify-content: space-between; padding: 20px 22px; border-radius: 18px; background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent); }
.sponsor-box div { display: flex; flex-direction: column; }
.sponsor-box span { font-size: .92rem; color: var(--muted); }
.tour-meta { list-style: none; padding: 0; margin: 1.4rem 0 1.8rem; display: grid; gap: 10px; }
.tour-meta li { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.tour-meta .icon { color: var(--brand); }
@media (max-width: 860px) { .detail-grid { grid-template-columns: 1fr; } .sponsor-box { flex-direction: column; align-items: flex-start; } }

/* Booking */
.book-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.booking-card { position: sticky; top: calc(var(--header-h) + 20px); background: var(--white); border-radius: 24px; padding: 30px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.slots { border: 0; padding: 0; margin: 0 0 14px; }
.slots legend { font-weight: 600; font-size: .9rem; color: var(--ink); margin-bottom: 6px; }
.slot-list { display: flex; flex-wrap: wrap; gap: 8px; }
.slot-list label { margin: 0; }
.slot-list input { position: absolute; opacity: 0; }
.slot-list span { display: inline-block; padding: 9px 14px; border-radius: 10px; border: 1.5px solid var(--line); cursor: pointer; font-weight: 600; font-size: .92rem; transition: all .2s; }
.slot-list input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--white); }
.slot-list input:disabled + span { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.slot-list input:focus-visible + span { outline: 3px solid var(--accent); }
.note-box { display: flex; gap: 14px; padding: 18px 20px; border-radius: 16px; background: var(--cream); margin-top: 2rem; }
.note-box .icon { color: var(--green); margin-top: 3px; }
.note-box p { margin: 4px 0 0; font-size: .95rem; }
.summary-card { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border-radius: 18px; overflow: hidden; margin: 2rem auto; max-width: 560px; text-align: left; border: 1px solid var(--line); }
.summary-card div { background: var(--white); padding: 14px 18px; display: flex; flex-direction: column; }
.summary-card span { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.summary-card strong { color: var(--ink); }
@media (max-width: 900px) { .book-grid { grid-template-columns: 1fr; } .booking-card { position: static; } }

/* Forms */
.form label { display: block; font-weight: 600; font-size: .9rem; color: var(--ink); margin-bottom: 14px; }
.form input:not([type=checkbox]):not([type=radio]), .form select, .form textarea, .nl-form input { display: block; width: 100%; margin-top: 6px; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; font-size: 1rem; font-weight: 400; color: var(--ink); background: var(--white); transition: border-color .2s, box-shadow .2s; }
.form input:focus, .form select:focus, .form textarea:focus, .nl-form input:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 15%, transparent); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; } }
.form-card { background: var(--white); padding: clamp(24px, 4vw, 40px); border-radius: 24px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.check-group { border: 0; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.check-group legend { font-weight: 600; font-size: .9rem; color: var(--ink); margin-bottom: 8px; }
.form .check { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--line); margin: 0; cursor: pointer; }
.form-msg { font-weight: 600; margin: 0 0 12px; }
.form-msg:empty { display: none; }
.form-msg.ok { color: var(--green); background: color-mix(in srgb, var(--green) 10%, transparent); padding: 12px 14px; border-radius: 10px; }
.form-msg.err { color: var(--brand); background: var(--brand-soft); padding: 12px 14px; border-radius: 10px; }
button[disabled] { opacity: .65; cursor: progress; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(30px, 6vw, 80px); align-items: start; }
.info-list { list-style: none; padding: 0; margin: 1.8rem 0; display: grid; gap: 18px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list .ii { width: 48px; height: 48px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex-shrink: 0; }
.info-list div { display: flex; flex-direction: column; }
.info-list strong { color: var(--ink); }
.contact-img { border-radius: 22px; margin-top: 1.5rem; box-shadow: var(--shadow); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* Donate */
.donate-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.donate-img { border-radius: 22px; margin-top: 1.5rem; }
.donate-card { background: var(--white); border-radius: 26px; padding: clamp(24px, 4vw, 38px); box-shadow: var(--shadow-lg); border: 1px solid var(--line); position: sticky; top: calc(var(--header-h) + 20px); }
.donate-card h3 { display: flex; align-items: center; gap: 10px; color: var(--brand); }
.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 1.2rem 0 1.4rem; }
.tier { display: flex; flex-direction: column; padding: 16px; border-radius: 16px; border: 1.5px solid var(--line); color: var(--text); transition: all .25s var(--ease); position: relative; }
.tier strong { font-family: var(--font-head); font-size: 1.6rem; color: var(--ink); }
.tier span { font-size: .85rem; color: var(--muted); line-height: 1.4; }
.tier:hover { border-color: var(--brand); transform: translateY(-3px); box-shadow: var(--shadow); }
.tier.popular { border-color: var(--brand); background: var(--brand-soft); }
.tier.popular::after { content: "Popular"; position: absolute; top: -10px; right: 12px; background: var(--brand); color: var(--white); font-size: .7rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.etransfer { margin: 1.2rem 0; padding: 14px 16px; border-radius: 14px; background: var(--cream); display: flex; flex-direction: column; gap: 6px; }
.et-label { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); font-size: .92rem; }
.copy { font: inherit; text-align: left; background: var(--white); border: 1px dashed var(--line); border-radius: 10px; padding: 9px 12px; cursor: pointer; word-break: break-all; color: var(--ink); }
.copy small { float: right; color: var(--brand); font-weight: 700; }
@media (max-width: 900px) { .donate-grid { grid-template-columns: 1fr; } .donate-card { position: static; } }

/* Campaigns */
.campaign { background: var(--white); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.cp-img { aspect-ratio: 16 / 10; overflow: hidden; }
.cp-img img { width: 100%; height: 100%; object-fit: cover; }
.cp-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.cp-body > p { color: var(--muted); font-size: .95rem; flex: 1; }
.progress { height: 10px; border-radius: 999px; background: var(--sand); overflow: hidden; margin: 6px 0 10px; }
.progress span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--brand)); transition: width 1.6s var(--ease); }
.progress.go span { width: var(--w); }
.cp-nums { font-size: .92rem; color: var(--muted); margin-bottom: 10px; }
.cp-nums strong { color: var(--ink); font-size: 1.1rem; }
.pct { float: right; font-weight: 700; color: var(--brand); }
.cp-body .btn { align-self: flex-start; }

/* Press, testimonials, FAQ */
.press-card { display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: 22px; background: var(--white); border: 1px solid var(--line); color: var(--text); transition: all .3s var(--ease); }
.press-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); color: var(--text); }
.press-card img { max-height: 46px; width: auto; }
.press-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.press-pub { font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; color: var(--muted); }
.press-card strong { font-family: var(--font-head); font-size: 1.3rem; color: var(--ink); line-height: 1.3; font-weight: 600; }
.testi { margin: 0; background: var(--white); border-radius: 22px; padding: 30px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.stars { display: flex; gap: 3px; color: var(--accent); }
.stars .icon { fill: currentColor; }
.testi blockquote { margin: 14px 0 22px; font-size: 1.04rem; color: var(--ink); flex: 1; }
.testi figcaption { display: flex; gap: 12px; align-items: center; }
.testi figcaption img, .avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.avatar { display: grid; place-items: center; background: var(--brand); color: var(--white); font-weight: 700; }
.testi figcaption span { display: flex; flex-direction: column; line-height: 1.3; }
.testi small { color: var(--muted); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; cursor: pointer; font-family: var(--font-head); font-size: 1.2rem; color: var(--ink); font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq-ico { transition: transform .3s; color: var(--brand); }
.faq details[open] .faq-ico { transform: rotate(180deg); }
.faq-a { padding: 0 0 22px; color: var(--muted); }

/* Events + posts */
.event-list { display: grid; gap: 16px; }
.event-row { display: grid; grid-template-columns: 90px 140px 1fr auto; gap: 22px; align-items: center; padding: 18px; border-radius: 20px; background: var(--white); border: 1px solid var(--line); color: var(--text); transition: all .3s var(--ease); }
.event-row:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); color: var(--text); }
.event-row img { width: 140px; height: 100px; object-fit: cover; border-radius: 14px; }
.ev-date { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 90px; border-radius: 16px; background: var(--brand); color: var(--white); text-transform: uppercase; font-size: .85rem; font-weight: 600; letter-spacing: .1em; }
.ev-date strong { font-family: var(--font-head); font-size: 2.1rem; line-height: 1; letter-spacing: 0; }
.ev-body h3 { margin: 0 0 4px; }
.ev-body .muted { display: flex; align-items: center; gap: 5px; font-size: .9rem; flex-wrap: wrap; }
.ev-body p { margin: 6px 0 0; font-size: .95rem; color: var(--muted); }
.ev-go { color: var(--brand); }
@media (max-width: 760px) { .event-row { grid-template-columns: 70px 1fr; } .event-row img, .ev-go { display: none; } .ev-date { height: 70px; } }
.post-card { display: flex; flex-direction: column; background: var(--white); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); color: var(--text); transition: all .3s var(--ease); }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: var(--text); }
.pc-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--sand); }
.pc-img img { width: 100%; height: 100%; object-fit: cover; }
.pc-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.pc-body p { color: var(--muted); font-size: .95rem; flex: 1; }
.meta { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--brand); font-weight: 700; margin-bottom: 6px; }
.post-hero { padding: calc(var(--header-h) / 2 + 50px) 0 40px; background: var(--cream); }
.post-cover { width: 100%; border-radius: 24px; margin: 0 0 2rem !important; }
.share { display: flex; gap: 12px; align-items: center; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-weight: 600; }
.share a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--cream); }

/* Gallery */
.masonry { columns: 4 260px; column-gap: 16px; }
.g-item { position: relative; display: block; margin-bottom: 16px; break-inside: avoid; border-radius: 16px; overflow: hidden; }
.g-item img { width: 100%; transition: transform .7s var(--ease); }
.g-item:hover img { transform: scale(1.05); }
.g-cap { position: absolute; inset: auto 0 0 0; padding: 30px 14px 12px; background: linear-gradient(transparent, rgb(0 0 0 / .6)); color: var(--white); font-size: .88rem; font-weight: 500; opacity: 0; transition: opacity .3s; }
.g-item:hover .g-cap { opacity: 1; }
.gallery-strip { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; }
.gallery-strip .g-item { flex: 0 0 auto; width: clamp(220px, 26vw, 340px); aspect-ratio: 1; margin: 0; scroll-snap-align: start; }
.gallery-strip .g-item img { height: 100%; object-fit: cover; }

/* Videos */
.ratio-16x9 { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; }
.ratio-16x9 iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.media-video { width: 100%; border-radius: 20px; background: #000; }
.video-frame { box-shadow: var(--shadow-lg); border-radius: 20px; }
.video-card { display: flex; flex-direction: column; gap: 14px; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; font: inherit; }
.vc-img { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.vc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.video-card:hover .vc-img img { transform: scale(1.06); }
.vc-play { position: absolute; left: 50%; top: 50%; width: 70px; height: 70px; margin: -35px 0 0 -35px; border-radius: 50%; background: rgb(255 255 255 / .92); color: var(--brand); display: grid; place-items: center; box-shadow: 0 0 0 10px rgb(255 255 255 / .25); transition: transform .3s var(--ease); }
.vc-play .icon { fill: currentColor; margin-left: 3px; }
.video-card:hover .vc-play { transform: scale(1.1); }
.vc-title { font-family: var(--font-head); font-size: 1.25rem; font-weight: 600; color: var(--ink); }
.s-dark .vc-title { color: var(--white); }

/* Newsletter */
.newsletter { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 4vw, 50px); align-items: center; background: var(--ink); color: #d8cec4; border-radius: 30px; padding: clamp(28px, 5vw, 56px); overflow: hidden; position: relative; }
.newsletter::after { content: ""; position: absolute; width: 360px; height: 360px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--brand) 60%, transparent), transparent 70%); pointer-events: none; }
.newsletter h2 { color: var(--white); }
.newsletter .eyebrow { color: var(--accent); }
.nl-img { width: 220px; height: 220px; object-fit: cover; border-radius: 24px; }
.nl-text { position: relative; z-index: 1; }
.nl-form { display: flex; gap: 10px; flex-wrap: wrap; margin: 1.2rem 0 .6rem; }
.nl-form input { flex: 1 1 260px; margin: 0; border-color: #3a302a; background: #2a221e; color: var(--white); }
.nl-form .form-msg { flex-basis: 100%; }
@media (max-width: 760px) { .newsletter { grid-template-columns: 1fr; } .nl-img { width: 100%; height: 200px; } }

/* Utility pages */
.page-404 { padding-top: calc(var(--header-h) + 60px); min-height: 70vh; }
.big-icon { display: inline-grid; place-items: center; width: 110px; height: 110px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); margin-bottom: 1.4rem; }
.big-icon.ok { background: color-mix(in srgb, var(--green) 14%, transparent); color: var(--green); }
.draft-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 80; background: var(--accent); color: var(--ink); text-align: center; padding: 8px; font-weight: 600; }
.admin-edit-fab { position: fixed; left: 18px; bottom: 18px; z-index: 80; display: inline-flex; align-items: center; gap: 6px; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 999px; font-size: .88rem; font-weight: 600; box-shadow: var(--shadow-lg); }
.admin-edit-fab:hover { color: var(--white); background: var(--brand); }
.html-embed iframe { width: 100%; border: 0; border-radius: 18px; }

/* Footer */
.site-footer { background: var(--dark); color: #b9aea4; padding: 80px 0 30px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr) 1.4fr; gap: 40px; }
.site-footer h4 { color: var(--white); font-family: var(--font-body); font-size: .85rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 1.2rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: #d6ccc2; }
.site-footer a:hover { color: var(--accent); }
.brand-footer { color: var(--white); margin-bottom: 1.2rem; }
.brand-footer .brand-text small { color: var(--accent); }
.f-contact li { display: flex; gap: 10px; align-items: flex-start; }
.f-contact .icon { color: var(--accent); margin-top: 3px; }
.socials { display: flex; gap: 10px; margin-top: 1.2rem; }
.socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid #3a302a; display: grid; place-items: center; transition: all .25s; }
.socials a:hover { background: var(--brand); border-color: var(--brand); color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-top: 1px solid #2f2723; margin-top: 50px; padding-top: 24px; font-size: .85rem; }
.footer-bottom p { margin: 0; }
@media (max-width: 1040px) { .footer-grid { grid-template-columns: 1fr 1fr; } .f-about { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgb(10 7 5 / .92); display: grid; place-items: center; padding: 40px 20px; }
.lightbox[hidden] { display: none; }
.lb-stage { width: min(1100px, 100%); max-height: 86vh; display: grid; place-items: center; }
.lb-stage img, .lb-stage video { max-height: 86vh; width: auto; max-width: 100%; border-radius: 14px; }
.lb-stage .ratio-16x9 { width: 100%; }
.lb-close { position: absolute; top: 16px; right: 18px; background: none; border: 0; color: var(--white); cursor: pointer; }

/* Reveal on scroll */
[data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  [data-reveal], .hero-in { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
