/* =====================================================================
   Бүх Үндэстний Хүсэл Чуулган — design tokens
   Every colour, size, radius and shadow below comes from this block.
   Palette and type are the church's own brand specification.
   ===================================================================== */

:root {
  /* The brand is a warm, light identity by explicit request — a dark theme
     would contradict it, so the scheme is pinned to light. */
  color-scheme: light;

  /* --- Colour: roles, not names -------------------------------------- */
  /* The church's five brand colours, exactly as specified. */
  --navy:        #172C3D;   /* Deep Navy  — trust, stability, faith (~25%) */
  --ivory:       #F7F3EA;   /* Warm Ivory — main background        (~60%) */
  --white:       #FFFFFF;   /* text on photos */
  --sand:        #E7D8C5;   /* Warm Sand  — secondary background   (~10%) */
  --clay:        #B66F4A;   /* Warm Clay  — CTA / accent           (~5%)  */
  --gold:        #C7A46A;   /* Soft Gold  — very sparingly                */

  /* Every surface is one of the brand colours — no stray whites or tints —
     so the page stays close to 60 ivory / 25 navy / 10 sand / 5 accent. */
  --bg:          var(--ivory);
  --surface:     var(--ivory);   /* cards, inputs, panels */
  --surface-2:   var(--sand);    /* secondary background: bands, quote cards */
  --surface-3:   var(--ivory);
  --surface-sand: var(--sand);
  --border:      oklch(83.6% 0.039 73.7);
  --border-soft: oklch(90.5% 0.020 78);

  --text:        var(--navy);
  --text-mute:   oklch(41.7% 0.032 238.4);   /* 7.7:1 on ivory */
  --text-on-dark:     var(--ivory);
  --text-on-dark-mute: oklch(88.0% 0.015 238.0);

  --brand:        var(--clay);
  --brand-strong: var(--clay);                /* CTA fill: exact Warm Clay; labels are bold for legibility */
  --brand-text:   oklch(49.0% 0.099 43.6);   /* clay for *small text* only: 5.9:1 on ivory (pure clay is 3.5:1) */
  --brand-ink:    oklch(100% 0 0);
  --brand-soft:   color-mix(in oklch, var(--clay) 12%, var(--bg));
  --brand-ring:   color-mix(in oklch, var(--clay) 45%, transparent);

  --navy-strong:  oklch(23.1% 0.032 242.3);
  --navy-soft:    oklch(33.7% 0.050 242.7);

  --ok:     oklch(52% 0.11 150);
  --danger: oklch(52% 0.17 27);

  /* Platform colours — only ever on the small icon badge, never as a button
     fill, so the page keeps its own palette and the logos stay recognisable. */
  --youtube:  oklch(62.8% 0.258 29.2);   /* #FF0000 */
  --facebook: oklch(58.9% 0.203 257.9);  /* #1877F2 */

  /* --- Type ----------------------------------------------------------- */
  /* Two roles, two families:
     - --font-hero: one expressive face, used only for the hero headline.
     - --font-text: one standard face for everything else, headings included.
     Both carry Ө ө Ү ү as real glyphs (checked with `npm run fonts`), so no
     letter falls back to a system font. */
  --font-hero: "Yeseva One", "Noto Serif", Georgia, "Times New Roman", serif;
  --font-text: "Inter", "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: var(--font-text);

  --step--2: clamp(0.75rem, 0.73rem + 0.10vw, 0.81rem);
  --step--1: clamp(0.86rem, 0.83rem + 0.16vw, 0.95rem);
  --step-0:  clamp(1.00rem, 0.96rem + 0.22vw, 1.13rem);
  --step-1:  clamp(1.16rem, 1.09rem + 0.34vw, 1.36rem);
  --step-2:  clamp(1.34rem, 1.23rem + 0.55vw, 1.72rem);
  --step-3:  clamp(1.56rem, 1.36rem + 0.95vw, 2.18rem);
  --step-4:  clamp(1.80rem, 1.48rem + 1.55vw, 2.76rem);
  --step-5:  clamp(2.10rem, 1.57rem + 2.55vw, 3.75rem);
  --step-6:  clamp(2.45rem, 1.60rem + 4.05vw, 5.00rem);

  /* --- Space ---------------------------------------------------------- */
  --sp-1: 0.25rem;  --sp-2: 0.5rem;   --sp-3: 0.75rem;
  --sp-4: 1rem;     --sp-5: 1.5rem;   --sp-6: 2rem;
  --sp-7: 3rem;     --sp-8: 4rem;     --sp-9: 6rem;
  --sp-10: 8rem;

  /* --- Form ------------------------------------------------------------ */
  --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --r-full: 999px;
  --shadow-1: 0 1px 2px oklch(28.4% 0.041 244.4 / .05),
              0 2px 8px oklch(28.4% 0.041 244.4 / .06);
  --shadow-2: 0 4px 16px oklch(28.4% 0.041 244.4 / .08),
              0 18px 44px oklch(28.4% 0.041 244.4 / .10);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --dur: 240ms;

  /* --- Layout ---------------------------------------------------------- */
  --measure: 66ch;
  --container: 1180px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --header-h: 72px;
}

/* =====================================================================
   Base
   ===================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--sp-4));
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: var(--step-0);
  line-height: 1.6;
  font-weight: 400;
  font-synthesis: none;
  /* No -webkit-font-smoothing: antialiased — it thins every stroke and is the
     usual reason Cyrillic body text reads as washed out. */
  overflow-wrap: break-word;
}

/* Standard heading scale in the text face: bold, tight but not cramped,
   and a clear size step between each level. */
h1, h2, h3, h4 {
  font-family: var(--font-text);
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  text-wrap: balance;
  letter-spacing: -0.015em;
}

h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-weight: 600; letter-spacing: -0.005em; }
h4 { font-size: var(--step-0); font-weight: 600; letter-spacing: 0; }

p { margin: 0; text-wrap: pretty; }
p + p { margin-top: var(--sp-4); }

a { color: inherit; text-decoration-color: var(--brand-ring); text-underline-offset: 3px; }

img, picture, svg, video { max-width: 100%; height: auto; display: block; }

/* <picture> is a plain inline wrapper, so it has to be told to fill the box
   its <img> is meant to cover — otherwise object-fit has nothing to work with. */
.hero__media picture,
.promo__media picture,
.card__media picture,
.person__photo picture,
.detail-media picture,
.donate-card__media picture { display: block; width: 100%; height: 100%; }

ul, ol { margin: 0; padding: 0; }
figure, blockquote, dl, dd { margin: 0; }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--brand-ring);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

::selection { background: var(--brand-ring); color: var(--text); }

.skip-link {
  position: absolute;
  inset-inline-start: var(--sp-4);
  inset-block-start: -100px;
  z-index: 200;
  padding: var(--sp-3) var(--sp-5);
  background: var(--navy);
  color: var(--text-on-dark);
  border-radius: var(--r-sm);
  transition: inset-block-start var(--dur) var(--ease);
}
.skip-link:focus { inset-block-start: var(--sp-3); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

/* =====================================================================
   Layout primitives
   ===================================================================== */

.container {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
}

.container--narrow { --container: 780px; }
.container--wide   { --container: 1320px; }

.section { padding-block: clamp(3.5rem, 9vw, var(--sp-10)); }
.section--tight { padding-block: clamp(2.5rem, 6vw, var(--sp-8)); }
.section--ivory { background: var(--bg); }
.section--white { background: var(--surface); }
.section--sand  { background: var(--sand); }   /* exact Warm Sand */
.section--bright { background: var(--surface-3); }   /* warm near-white */
.section--navy  { background: var(--navy); color: var(--text-on-dark); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3) var(--sp-5);
  margin-bottom: var(--sp-6);
}

.eyebrow {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-text);
  margin: 0 0 var(--sp-4);
}
.eyebrow--on-dark { color: var(--gold); }

.lead {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--text-mute);
  max-width: var(--measure);
}

.muted { color: var(--text-mute); }

.stack > * + * { margin-top: var(--sp-4); }
.stack-lg > * + * { margin-top: var(--sp-6); }

/* =====================================================================
   Buttons
   ===================================================================== */

.btn {
  --btn-bg: var(--brand-strong);
  --btn-fg: var(--brand-ink);
  --btn-border: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  min-height: 52px;               /* thumb-friendly */
  padding: var(--sp-3) var(--sp-6);
  border: 1px solid var(--btn-border);
  border-radius: var(--r-full);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-size: var(--step-0);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.btn:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--navy  { --btn-bg: var(--navy); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--text); --btn-border: var(--border); }
.btn--ghost:hover { --btn-bg: var(--surface); }
.btn--on-dark {
  --btn-bg: transparent;
  --btn-fg: var(--text-on-dark);
  --btn-border: color-mix(in oklch, var(--ivory) 45%, transparent);
}
.btn--on-dark:hover { --btn-bg: color-mix(in oklch, var(--ivory) 12%, transparent); }
.btn--light { --btn-bg: var(--surface); --btn-fg: var(--text); }
.btn--sm { min-height: 42px; padding: var(--sp-2) var(--sp-4); font-size: var(--step--1); }
.btn--block { width: 100%; }

.btn .arrow { transition: transform var(--dur) var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--brand-text);
  font-size: var(--step--1);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.link-more:hover { text-decoration: underline; }
.link-more .arrow { transition: transform var(--dur) var(--ease); }
.link-more:hover .arrow { transform: translateX(3px); }

/* =====================================================================
   Header
   ===================================================================== */

.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 100;
  background: color-mix(in oklch, var(--ivory) 92%, transparent);
  backdrop-filter: blur(12px);
  border-block-end: 1px solid transparent;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.site-header.is-scrolled {
  background: color-mix(in oklch, var(--ivory) 97%, transparent);
  border-block-end-color: var(--border-soft);
  box-shadow: var(--shadow-1);
}

/* Home page: the header floats over the hero photo until the page scrolls. */
.page-home .site-header:not(.is-scrolled) {
  background: transparent;
  backdrop-filter: none;
}

/* A fixed height, so the hero can slide exactly under it (margin-top: -header-h). */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  color: var(--text);
  /* Allowed to shrink so the name wraps to two lines on a narrow phone
     instead of pushing the menu button off the screen. */
  flex-shrink: 1;
  min-width: 0;
}

.brand img { width: 40px; height: 40px; object-fit: contain; flex-shrink: 0; }

.brand-text { display: grid; line-height: 1.18; min-width: 0; }
.brand-name {
  font-family: var(--font-text);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

@media (min-width: 1240px) {
  .brand-name { font-size: var(--step-0); }
}
.brand-en {
  font-size: 0.6875rem;
  letter-spacing: 0.055em;
  color: var(--text-mute);
  text-transform: uppercase;
}

.nav-desktop { display: none; }

.nav-desktop ul {
  display: flex;
  align-items: center;
  gap: clamp(var(--sp-3), 1.6vw, var(--sp-5));
  list-style: none;
}

.nav-desktop a {
  position: relative;
  display: inline-block;
  padding-block: var(--sp-2);
  font-size: var(--step--1);
  font-weight: 500;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
}

.nav-desktop a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: 50%;
  transition: transform var(--dur) var(--ease);
}
.nav-desktop a:hover::after,
.nav-desktop a[aria-current="page"]::after { transform: scaleX(1); }
.nav-desktop a[aria-current="page"] { color: var(--brand-text); }

.header-actions { display: flex; align-items: center; gap: var(--sp-3); flex-shrink: 0; }
.header-actions .btn { display: none; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Full-screen mobile menu */
.nav-mobile {
  position: fixed;
  /* Longhands, not `inset`: Safari before 14.1 ignores `inset` and the menu
     would collapse to nothing. */
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 150;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: var(--sp-4) var(--gutter) var(--sp-7);
  background: var(--bg);
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease);
  overflow-y: auto;
  overscroll-behavior: contain;
}
/* :target keeps the menu working even if the script never loads. */
.nav-mobile.is-open,
.nav-mobile:target { visibility: visible; opacity: 1; }
.nav-toggle { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

.nav-mobile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
}

/* Nine links plus two buttons have to fit a 360×780 phone without scrolling,
   so the menu type sits one step below a section heading. */
.nav-mobile ul { list-style: none; display: grid; align-content: center; }
.nav-mobile li { border-block-end: 1px solid var(--border-soft); }
/* Scoped to the list: the brand link in the menu header is an <a> too. */
.nav-mobile li a {
  display: block;
  padding-block: var(--sp-3);
  font-size: var(--step-1);
  font-weight: 600;
  text-decoration: none;
}
.nav-mobile-head .brand img { width: 34px; height: 30px; }
.nav-mobile-head .brand-name { font-size: var(--step--1); }
.nav-mobile-head .brand-en { font-size: 0.625rem; }

@media (min-height: 800px) {
  .nav-mobile li a { padding-block: var(--sp-4); font-size: var(--step-2); }
}
.nav-mobile li a[aria-current="page"] { color: var(--brand-text); }
.nav-mobile-foot { display: grid; gap: var(--sp-3); }

body.nav-open { overflow: hidden; }

@media (min-width: 1000px) {
  .nav-desktop { display: block; }
  .nav-toggle { display: none; }
  .header-actions .btn { display: inline-flex; }
  .brand img { width: 46px; height: 46px; }
}

/* Brand, six links and the donate button only just fit on a small laptop —
   tighten the header until there is room to breathe. */
@media (min-width: 1000px) and (max-width: 1239px) {
  .header-inner { gap: var(--sp-4); }
  .brand { gap: var(--sp-2); }
  .brand img { width: 40px; height: 40px; }
  .nav-desktop ul { gap: var(--sp-3); }
}

/* =====================================================================
   Hero
   ===================================================================== */

/* Mobile first, after the church's mockup: the header sits over the photo,
   the text sits in the bright sky at the top left, and the photo itself is
   shown as it is — only a light haze behind the text, never a wash over the
   whole picture. */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: start;
  /* Pull the hero up under the transparent header. */
  /* header height + its 1px bottom border */
  margin-top: calc(-1 * (var(--header-h) + 1px));
  min-height: clamp(560px, 76svh, 660px);
  padding-block: calc(var(--header-h) + var(--sp-7)) var(--sp-7);
  color: var(--text);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: -2;
}
/* Cross on the right edge of a phone, as in the design. */
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 79% 45%; }

/* Only where the text is: a light top band for the header and a soft haze
   in the upper left behind the headline. The rest of the photo is untouched. */
.hero__media::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background:
    linear-gradient(180deg,
      color-mix(in oklch, var(--ivory) 40%, transparent) 0%,
      color-mix(in oklch, var(--ivory) 12%, transparent) 20%,
      transparent 36%),
    linear-gradient(104deg,
      color-mix(in oklch, var(--ivory) 58%, transparent) 0%,
      color-mix(in oklch, var(--ivory) 34%, transparent) 40%,
      transparent 66%);
}

.hero__inner { position: relative; z-index: 1; }

.hero__eyebrow {
  max-width: 10rem;               /* «ХРИСТИЙН ХАЙР / БҮХ ҮНДЭСТЭНД» on a phone, as designed */
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brand-text);
  margin: 0 0 var(--sp-3);
}

/* Phones: the standard text face, bold and compact so the photo keeps room.
   From 760px up the expressive Yeseva One takes over (it ships a single
   weight, so 400 is its bold). */
.hero h1 {
  font-family: var(--font-text);
  font-weight: 800;
  font-size: clamp(1.75rem, 1.2rem + 2.6vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 14ch;
}

.hero__subtitle {
  margin-top: var(--sp-3);
  font-size: var(--step-0);
  line-height: 1.5;
  max-width: 34ch;
  color: var(--text);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}
.hero__actions .btn { min-height: 48px; padding-inline: var(--sp-5); }
/* Primary is Warm Clay on phones (as in the mobile design), navy on desktop. */
.hero__actions .btn--navy { --btn-bg: var(--brand-strong); }
/* Secondary: outlined, with a faint light fill so it reads over the photo. */
.hero__actions .btn--ghost {
  --btn-bg: color-mix(in oklch, var(--surface) 45%, transparent);
  --btn-border: color-mix(in oklch, var(--navy) 45%, transparent);
}

.hero__script {
  display: block;
  font-family: var(--font-hero);
  font-size: var(--step-2);
  color: var(--navy);
  letter-spacing: 0.02em;
  /* A tight ivory halo keeps the letters crisp over the busy photo. */
  text-shadow:
    0 0 2px var(--ivory),
    0 0 8px color-mix(in srgb, var(--ivory) 85%, transparent),
    0 0 18px color-mix(in srgb, var(--ivory) 60%, transparent);
  /* Sits on the hazy mountains, above the dark rocks. */
  margin-top: var(--sp-6);
}

@media (min-width: 760px) {
  .hero {
    align-items: center;
    min-height: min(84svh, 780px);
    padding-block: calc(var(--header-h) + var(--sp-8)) var(--sp-9);
  }
  .hero__media img { object-position: 62% 50%; }
  .hero__media::after {
    background:
      linear-gradient(180deg,
        color-mix(in oklch, var(--ivory) 35%, transparent) 0%,
        transparent 22%),
      linear-gradient(95deg,
        color-mix(in oklch, var(--ivory) 78%, transparent) 0%,
        color-mix(in oklch, var(--ivory) 52%, transparent) 36%,
        color-mix(in oklch, var(--ivory) 14%, transparent) 60%,
        transparent 78%);
  }
  .hero h1 {
    font-family: var(--font-hero);
    font-weight: 400;
    font-size: clamp(2.6rem, 1.4rem + 4.2vw, 5rem);
    line-height: 1.1;
    letter-spacing: 0;
  }
  .hero__eyebrow { max-width: none; font-size: var(--step--1); letter-spacing: 0.14em; margin-bottom: var(--sp-4); }
  .hero__subtitle { margin-top: var(--sp-5); font-size: var(--step-1); }
  .hero__actions { margin-top: var(--sp-6); }
  .hero__actions .btn { min-height: 52px; padding-inline: var(--sp-6); }
  .hero__actions .btn--navy { --btn-bg: var(--navy); }
  .hero__script { font-size: var(--step-3); margin-top: var(--sp-7); }
}

/* Page banner for the inner pages */
.page-head {
  padding-block: clamp(2.5rem, 7vw, var(--sp-8)) clamp(2rem, 5vw, var(--sp-7));
  background: var(--surface-2);
  border-block-end: 1px solid var(--border-soft);
}
.page-head h1 { max-width: 20ch; }
.page-head .lead { margin-top: var(--sp-4); }

/* =====================================================================
   Verses
   ===================================================================== */

.verse-grid {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
}

.verse {
  position: relative;
  padding: var(--sp-6) var(--sp-5) var(--sp-5);
  background: var(--surface-2);
  border-radius: var(--r-md);
}

.verse__mark {
  font-family: var(--font-hero);
  font-size: 3.5rem;
  line-height: 0.6;
  color: var(--brand);
  opacity: 0.55;
  display: block;
  margin-bottom: var(--sp-3);
}

.verse p {
  font-size: var(--step-1);
  line-height: 1.6;
}

.verse cite {
  display: block;
  margin-top: var(--sp-4);
  font-family: var(--font-text);
  font-style: normal;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-mute);
}

/* =====================================================================
   Values
   ===================================================================== */

.values {
  list-style: none;
  display: grid;
  gap: var(--sp-6) var(--sp-4);
  grid-template-columns: repeat(2, 1fr);
}

.value { text-align: left; }
.value__icon { color: var(--brand); margin-bottom: var(--sp-3); }
.value__icon svg { width: 34px; height: 34px; }
.value h3 { font-size: var(--step-1); }
.value p { margin-top: var(--sp-1); font-size: var(--step--1); color: var(--text-mute); }

@media (min-width: 720px) {
  .values { grid-template-columns: repeat(3, 1fr); gap: var(--sp-7) var(--sp-5); }
}

@media (min-width: 1040px) {
  .values-layout {
    display: grid;
    grid-template-columns: minmax(190px, 1fr) 3.2fr;
    gap: var(--sp-7);
    align-items: start;
  }
}

/* Six across only once each column can hold "Бурханы Үг" on one line —
   below this the three-column layout reads far better. */
@media (min-width: 1240px) {
  .values { grid-template-columns: repeat(6, 1fr); gap: var(--sp-5) var(--sp-4); }
  .value__icon svg { width: 30px; height: 30px; }
}

/* =====================================================================
   Sunday service — "visit" card + map
   A deep navy card carries the time as the one big number on the page,
   beside a large, warm-toned map with the building name pinned on it.
   ===================================================================== */

.visit__head { max-width: 640px; margin-bottom: var(--sp-7); }
.visit__head h2 { font-size: var(--step-4); }
.visit__head .lead { margin-top: var(--sp-3); }

.visit__grid { display: grid; gap: var(--sp-5); }

.visit__card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-content: start;
  gap: var(--sp-1);
  padding: var(--sp-7) var(--sp-6) var(--sp-6);
  border-radius: var(--r-lg);
  color: var(--text-on-dark);
  background:
    radial-gradient(120% 80% at 100% 0%, color-mix(in oklch, var(--gold) 26%, transparent), transparent 58%),
    linear-gradient(160deg, var(--navy-soft) 0%, var(--navy) 50%, var(--navy-strong) 100%);
  box-shadow: var(--shadow-2);
}
/* Gold-to-clay hairline along the top edge. */
.visit__card::before {
  content: "";
  position: absolute;
  top: 0; right: 0; left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--clay));
}
.visit__watermark {
  position: absolute;
  right: -48px;
  bottom: -40px;
  z-index: -1;
  width: 260px;
  height: auto;
  opacity: 0.08;
  pointer-events: none;
}

.visit__day {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}
/* The time is set in the hero face on purpose: it is the other number
   a visitor needs to remember, after the church's name. */
.visit__clock {
  margin-top: var(--sp-2);
  font-family: var(--font-hero);
  font-size: clamp(4.25rem, 3.2rem + 5vw, 6.75rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  color: var(--ivory);
  font-variant-numeric: lining-nums;
}
.visit__caption { font-size: var(--step--1); color: var(--text-on-dark-mute); }

.visit__facts {
  list-style: none;
  display: grid;
  gap: var(--sp-5);
  margin-top: var(--sp-6);
  padding-top: var(--sp-6);
  border-top: 1px solid color-mix(in oklch, var(--ivory) 16%, transparent);
}
.visit__facts li { display: flex; align-items: flex-start; gap: var(--sp-3); line-height: 1.5; }
.visit__fact-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: var(--r-full);
  background: color-mix(in oklch, var(--gold) 18%, transparent);
  color: var(--gold);
}
.visit__fact-label {
  display: block;
  margin-bottom: 2px;
  font-size: var(--step--2);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-on-dark-mute);
}
.visit__facts a {
  color: var(--ivory);
  font-size: var(--step-1);
  font-weight: 700;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.visit__facts a:hover { text-decoration: underline; }

.visit__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }

/* Map on top, place bar underneath — the bar never covers Google's own
   logo, attribution or controls. */
.visit__map {
  display: grid;
  grid-template-rows: 1fr auto;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-2);
}
.visit__frame { position: relative; min-height: 300px; background: var(--surface-2); }
/* A light warm grade so the map sits in the ivory palette. */
.visit__frame iframe {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(0.85) sepia(0.08);
}
.visit__place {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3) var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  border-top: 1px solid var(--border-soft);
  line-height: 1.3;
}
.visit__place-text { flex: 1 1 160px; min-width: 0; }
.visit__place-text strong { display: block; font-size: var(--step-0); }
.visit__place-text strong + span { display: block; font-size: var(--step--1); color: var(--text-mute); }
.visit__directions {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 44px;
  font-size: var(--step--1);
  font-weight: 700;
  color: var(--brand-text);
  text-decoration: none;
  white-space: nowrap;
}
.visit__directions:hover { text-decoration: underline; }
.visit__directions .arrow { transition: transform var(--dur) var(--ease); }
.visit__directions:hover .arrow { transform: translateX(3px); }
.visit__pin-dot {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: var(--r-full);
  background: var(--brand-strong);
  color: var(--brand-ink);
}
.btn--gold { --btn-bg: var(--gold); --btn-fg: var(--navy-strong); }

@media (min-width: 900px) {
  .visit__grid { grid-template-columns: minmax(340px, 5fr) 7fr; gap: var(--sp-6); }
  .visit__card { padding: var(--sp-8) var(--sp-7) var(--sp-7); }
  .visit__frame { min-height: 420px; }
}

/* =====================================================================
   Content cards (sermon / podcast / event)
   ===================================================================== */

.content-columns {
  display: grid;
  gap: var(--sp-7);
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
}

.card-slot { container-type: inline-size; }

.card {
  display: grid;
  gap: var(--sp-4);
  text-decoration: none;
  color: inherit;
}

.card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--navy);
  isolation: isolate;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }

/* Branded stand-in when a sermon or episode has no artwork yet. */
.card__media--fallback {
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 120% at 78% 22%, color-mix(in oklch, var(--gold) 26%, transparent), transparent 62%),
    linear-gradient(140deg, var(--navy-soft), var(--navy-strong));
}
.card__media--fallback img { width: 42%; max-width: 130px; height: auto; object-fit: contain; opacity: 0.9; }

.card__play {
  position: absolute;
  inset-block-end: var(--sp-3);
  inset-inline-start: var(--sp-3);
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: var(--r-full);
  background: color-mix(in oklch, var(--ivory) 88%, transparent);
  color: var(--navy);
  backdrop-filter: blur(6px);
}
.card__play svg { width: 18px; height: 18px; }

.card__badge {
  position: absolute;
  inset-block-end: var(--sp-3);
  inset-inline-end: var(--sp-3);
  padding: 3px var(--sp-2);
  border-radius: var(--r-sm);
  background: color-mix(in oklch, var(--navy) 78%, transparent);
  color: var(--text-on-dark);
  font-size: var(--step--2);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.card__date {
  position: absolute;
  inset-block-start: var(--sp-3);
  inset-inline-start: var(--sp-3);
  display: grid;
  justify-items: center;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-1);
  line-height: 1.1;
}
.card__date .m { font-size: var(--step--2); font-weight: 700; letter-spacing: 0.06em; color: var(--brand-text); }
.card__date .d { font-size: var(--step-2); font-weight: 700; }

.card__body { display: grid; gap: var(--sp-1); }
.card__title { font-size: var(--step-1); }
.card:hover .card__title { color: var(--brand-text); }
.card__meta { font-size: var(--step--1); color: var(--text-mute); }

.card__facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
  margin-top: var(--sp-2);
  font-size: var(--step--1);
  color: var(--text-mute);
}
.card__facts span { display: inline-flex; align-items: center; gap: var(--sp-2); }
.card__facts svg { width: 16px; height: 16px; color: var(--brand); }

@container (min-width: 460px) {
  .card--row { grid-template-columns: 200px 1fr; align-items: start; }
}

/* Column heads sit beside their "Бүгдийг үзэх" link, so they stay one step
   smaller than a full section title and never push the link onto its own row. */
.content-columns .section-head { flex-wrap: nowrap; align-items: baseline; }
.content-columns .section-head h2 { font-size: var(--step-1); min-width: 0; }

.mt-4 { margin-top: var(--sp-4); }
.mt-6 { margin-top: var(--sp-6); }
.mt-8 { margin-top: var(--sp-8); }

.card-grid {
  display: grid;
  gap: var(--sp-6) var(--sp-5);
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
}

.empty-state {
  padding: var(--sp-7) var(--sp-5);
  border: 1px dashed var(--border);
  border-radius: var(--r-md);
  text-align: center;
  color: var(--text-mute);
  background: var(--surface-2);
}

/* =====================================================================
   Split CTA blocks (нэгдэх / залбирал)
   ===================================================================== */

.split-grid {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
}

.promo {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: end;
  gap: var(--sp-4);
  min-height: 330px;
  padding: var(--sp-6);
  border-radius: var(--r-md);
  overflow: hidden;
  color: var(--text);
}
.promo > * { position: relative; z-index: 1; }
.promo__media { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: -1; }
.promo__media img { width: 100%; height: 100%; object-fit: cover; }
.promo h2 { font-size: var(--step-3); max-width: 16ch; }
.promo p { max-width: 34ch; }
.promo .btn { justify-self: start; }

.promo--light .promo__media::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(100deg,
    color-mix(in oklch, var(--ivory) 94%, transparent) 0%,
    color-mix(in oklch, var(--ivory) 74%, transparent) 46%,
    color-mix(in oklch, var(--ivory) 14%, transparent) 100%);
}

.promo--dark { color: var(--text-on-dark); }
.promo--dark p { color: var(--text-on-dark-mute); }
.promo--dark .promo__media::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(100deg,
    color-mix(in oklch, var(--navy) 95%, transparent) 0%,
    color-mix(in oklch, var(--navy) 82%, transparent) 48%,
    color-mix(in oklch, var(--navy) 30%, transparent) 100%);
}

/* =====================================================================
   Donation
   ===================================================================== */

/* Home-page card: the full seedling photo fills the card and the copy sits on
   a Deep Navy shade in white. Phones: shade rises from the bottom; wider
   screens: shade comes in from the left and the plant stays on the right. */
.donate-card {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 460px;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--navy);
  box-shadow: var(--shadow-1);
  isolation: isolate;
}
.donate-card__media { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: -1; }
.donate-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; }
.donate-card::before {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 0;
  background: linear-gradient(0deg,
    color-mix(in srgb, var(--navy) 94%, transparent) 0%,
    color-mix(in srgb, var(--navy) 82%, transparent) 42%,
    color-mix(in srgb, var(--navy) 0%, transparent) 72%);
}
.donate-card__copy {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: start;
  gap: var(--sp-3);
  padding: var(--sp-6) var(--sp-5);
  color: var(--white);
}
.donate-card__copy h2 { font-size: var(--step-3); color: var(--white); }
.donate-card__copy p { font-size: var(--step--1); line-height: 1.6; color: var(--white); max-width: 46ch; }
.donate-card__copy .btn { margin-top: var(--sp-2); min-height: 48px; padding-inline: var(--sp-5); font-size: var(--step--1); }

@media (min-width: 760px) {
  .donate-card { align-items: center; min-height: 420px; }
  .donate-card__media img { object-position: 50% 60%; }
  .donate-card::before {
    background: linear-gradient(90deg,
      color-mix(in srgb, var(--navy) 92%, transparent) 0%,
      color-mix(in srgb, var(--navy) 78%, transparent) 38%,
      color-mix(in srgb, var(--navy) 0%, transparent) 62%);
  }
  .donate-card__copy { max-width: 540px; padding: var(--sp-7); gap: var(--sp-4); }
  .donate-card__copy p { font-size: var(--step-0); }
  .donate-card__copy .btn { min-height: 52px; padding-inline: var(--sp-6); font-size: var(--step-0); }
}
@media (min-width: 1000px) {
  /* Plant sits right of centre so the copy has clear space on the left. */
  .donate-card__media img { object-position: 20% 60%; }
  .donate-card { min-height: 460px; }
}

/* =====================================================================
   Sunday service (home) — photo card, address, phone and two buttons
   ===================================================================== */
.service__grid { display: grid; gap: var(--sp-5); }
.service__card {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 220px;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--navy);
  isolation: isolate;
  box-shadow: var(--shadow-1);
}
.service__card picture { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: -1; display: block; }
.service__card img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.service__card::before {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 0;
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--navy) 88%, transparent) 0%,
    color-mix(in srgb, var(--navy) 55%, transparent) 55%,
    color-mix(in srgb, var(--navy) 15%, transparent) 100%);
}
.service__overlay { position: relative; z-index: 1; padding: var(--sp-5); color: var(--white); }
.service__overlay h2 { color: var(--white); font-size: var(--step-2); margin: 0 0 var(--sp-2); }
.service__time { display: flex; align-items: center; gap: var(--sp-3); margin: 0; color: var(--gold); }
.service__clock {
  font-family: var(--font-hero);
  font-size: clamp(2.75rem, 11vw, 4.25rem);
  line-height: 1;
  color: var(--white);
}
.service__info { display: grid; gap: var(--sp-5); align-content: center; }
.service__facts { list-style: none; display: grid; gap: var(--sp-4); }
.service__facts li { display: flex; align-items: flex-start; gap: var(--sp-3); }
.service__icon { flex: none; color: var(--clay); padding-top: 2px; }
.service__address { display: grid; font-size: var(--step-0); line-height: 1.55; color: var(--text); font-weight: 500; }
.service__phone { font-size: var(--step-1); font-weight: 800; color: var(--navy); text-decoration: none; }
.service__phone:hover { text-decoration: underline; }
.service__actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.service__actions .btn { justify-content: center; min-height: 50px; padding-inline: var(--sp-3); white-space: nowrap; }
.service__actions .btn--ghost { --btn-border: var(--navy); --btn-fg: var(--navy); }

@media (min-width: 900px) {
  .service__grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: var(--sp-7); align-items: stretch; }
  .service__card { min-height: 340px; }
  .service__overlay { padding: var(--sp-7); }
  .service__overlay h2 { font-size: var(--step-3); }
  .service__actions { max-width: 440px; }
}

.donate-grid {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}

.account {
  padding: var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
}
.account__bank {
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-text);
}
.account__name { margin-top: var(--sp-2); color: var(--text-mute); font-size: var(--step--1); }
.account__number {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-2);
  font-size: var(--step-2);
  font-weight: 700;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}
.account__note { margin-top: var(--sp-2); font-size: var(--step--1); color: var(--text-mute); }

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 38px;
  padding: var(--sp-1) var(--sp-3);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  background: var(--surface-2);
  color: var(--text-mute);
  font: inherit;
  font-size: var(--step--2);
  cursor: pointer;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.copy-btn:hover { color: var(--brand-text); border-color: var(--brand-ring); }
.copy-btn svg { width: 15px; height: 15px; }

/* =====================================================================
   About
   ===================================================================== */

.about-intro { display: grid; gap: var(--sp-6); }
.about-copy { max-width: var(--measure); font-size: var(--step-1); line-height: 1.7; }

.about-mission {
  padding: var(--sp-6);
  background: var(--surface);
  border-radius: var(--r-md);
  border: 1px solid var(--border-soft);
  align-self: start;
}
.about-mission__text {
  margin-top: var(--sp-2);
  font-size: var(--step-2);
  font-weight: 700;
  line-height: 1.3;
}
.about-mission__meta {
  margin-top: var(--sp-4);
  font-size: var(--step--1);
  color: var(--text-mute);
}

.label-brand {
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-text);
}

@media (min-width: 900px) {
  .about-intro { grid-template-columns: 1.6fr 1fr; gap: var(--sp-8); align-items: start; }
}

.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }

/* =====================================================================
   Team
   ===================================================================== */

.team-grid {
  list-style: none;
  display: grid;
  gap: var(--sp-5) var(--sp-4);
  grid-template-columns: repeat(auto-fill, minmax(min(150px, 45%), 1fr));
}

.person { text-align: center; }
.person__photo {
  aspect-ratio: 1;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface-2);
  margin-bottom: var(--sp-3);
}
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.person h3 { font-size: var(--step-1); }
.person p { font-size: var(--step--1); color: var(--text-mute); margin-top: 2px; }

/* =====================================================================
   Detail pages
   ===================================================================== */

.crumb { text-decoration: none; }
.crumb:hover { text-decoration: underline; }

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
  margin-top: var(--sp-4);
  font-size: var(--step--1);
  color: var(--text-mute);
}
.detail-meta span { display: inline-flex; align-items: center; gap: var(--sp-2); }
.detail-meta svg { color: var(--brand); }

.detail-media { border-radius: var(--r-md); overflow: hidden; }

.detail-body {
  margin-top: var(--sp-6);
  max-width: var(--measure);
  font-size: var(--step-1);
  line-height: 1.7;
}

.detail-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-7); }

.audio-block { margin-top: var(--sp-6); display: grid; gap: var(--sp-3); }
.audio-block audio { width: 100%; }

/* =====================================================================
   Contact
   ===================================================================== */

.contact-social { display: grid; gap: var(--sp-3); margin-top: var(--sp-7); }

/* =====================================================================
   Forms
   ===================================================================== */

.form { display: grid; gap: var(--sp-5); }
.form-grid {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
}

.field { display: grid; gap: var(--sp-2); }
.field > label, .fieldset__legend {
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--text);
}
.field .hint { font-size: var(--step--2); color: var(--text-mute); }
.req { color: var(--brand-text); }

.input, .select, .textarea {
  width: 100%;
  min-height: 52px;
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: var(--step-0);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.textarea { min-height: 7lh; field-sizing: content; resize: vertical; line-height: 1.6; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A6070' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--sp-4) center;
  background-size: 18px;
  padding-inline-end: var(--sp-8);
}

.input:hover, .select:hover, .textarea:hover { border-color: var(--text-mute); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-ring);
}
.input:user-invalid, .textarea:user-invalid { border-color: var(--danger); }

.field-error { font-size: var(--step--1); color: var(--danger); font-weight: 500; }

.fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: var(--sp-3); }
.fieldset__legend { padding: 0; margin-bottom: var(--sp-1); }

.check-grid {
  display: grid;
  gap: var(--sp-2);
  grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
}

.check {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  min-height: 48px;
  padding: var(--sp-2) var(--sp-4);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  cursor: pointer;
  font-size: var(--step--1);
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.check:hover { border-color: var(--brand-ring); }
.check input { width: 20px; height: 20px; accent-color: var(--brand-strong); flex-shrink: 0; }
.check:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice {
  display: grid;
  gap: var(--sp-2);
  padding: var(--sp-5);
  border-radius: var(--r-md);
  border: 1px solid;
}
.notice--ok { border-color: color-mix(in oklch, var(--ok) 40%, transparent); background: color-mix(in oklch, var(--ok) 8%, var(--bg)); }
.notice--error { border-color: color-mix(in oklch, var(--danger) 40%, transparent); background: color-mix(in oklch, var(--danger) 7%, var(--bg)); }
.notice--plain { border-color: var(--border); background: var(--surface-2); }
.notice h2 { font-size: var(--step-2); }

/* =====================================================================
   Video facade (YouTube loads only on click)
   ===================================================================== */

.video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--navy);
}
.video iframe { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; border: 0; }
.video__btn {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  display: grid;
  place-items: center;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
.video__btn img { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.video__btn span {
  position: relative;
  display: grid;
  place-items: center;
  width: 76px; height: 76px;
  border-radius: var(--r-full);
  background: color-mix(in oklch, var(--ivory) 90%, transparent);
  color: var(--navy);
  box-shadow: var(--shadow-2);
  transition: transform var(--dur) var(--ease);
}
.video__btn:hover span { transform: scale(1.08); }
.video__btn span svg { width: 26px; height: 26px; }

/* =====================================================================
   Footer
   ===================================================================== */

.site-footer {
  background: var(--navy);
  color: var(--text-on-dark);
  padding-block: var(--sp-8) var(--sp-6);
}

.footer-top {
  display: grid;
  gap: var(--sp-6);
  padding-bottom: var(--sp-6);
}

/* align-content: start — otherwise the rows stretch to the height of the
   link column beside it and the social pills balloon. */
.footer-brand { display: grid; gap: var(--sp-4); justify-items: start; align-content: start; }
.footer-brand .brand { color: var(--text-on-dark); }
.footer-brand .brand-en { color: var(--text-on-dark-mute); }
.footer-tagline {
  font-size: var(--step-1);
  font-weight: 500;
  line-height: 1.5;
  color: var(--gold);
  max-width: 30ch;
}

.footer-nav ul { list-style: none; display: grid; gap: var(--sp-2); }
.footer-nav a { text-decoration: none; color: var(--text-on-dark-mute); font-size: var(--step--1); }
.footer-nav a:hover { color: var(--text-on-dark); text-decoration: underline; }
.footer-heading {
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--sp-4);
}

.footer-contact { display: grid; gap: var(--sp-3); font-size: var(--step--1); color: var(--text-on-dark-mute); }
.footer-contact a { color: var(--text-on-dark); text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; }

.social { display: flex; align-items: center; gap: var(--sp-3); }
.social a {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: var(--r-full);
  border: 1px solid color-mix(in oklch, var(--ivory) 28%, transparent);
  color: var(--text-on-dark);
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.social a:hover { background: color-mix(in oklch, var(--ivory) 14%, transparent); border-color: var(--gold); }
.social svg { width: 20px; height: 20px; }

/* Labeled footer links: name + badge reads faster than a bare icon. */
.social--labeled { flex-wrap: wrap; }
.social--labeled a.social-pill {
  display: inline-flex;
  place-items: initial;
  align-items: center;
  gap: var(--sp-2);
  width: auto;
  height: auto;
  min-height: 44px;
  padding: var(--sp-2) var(--sp-4) var(--sp-2) var(--sp-2);
  font-size: var(--step--1);
  font-weight: 600;
  text-decoration: none;
}
.social--labeled .social-btn__icon svg { width: 14px; height: 14px; }

/* =====================================================================
   Social entry points (YouTube / Facebook)
   ===================================================================== */

.social-btn__icon {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: var(--r-full);
  color: var(--brand-ink);
}
.social-btn__icon--yt { background: var(--youtube); }
.social-btn__icon--fb { background: var(--facebook); }
.social-btn__icon--ig { background: var(--brand-strong); }
.social-btn { gap: var(--sp-2); padding-inline-start: var(--sp-2); }
.btn--sm.social-btn .social-btn__icon { width: 24px; height: 24px; }

.social-inline { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-5); }
.contact-social .social-inline,
.nav-mobile-foot .social-inline { margin-top: 0; }
.nav-mobile-foot .social-inline .btn { flex: 1 1 140px; }

.social-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}
.social-link .social-btn__icon { width: 22px; height: 22px; }
.social-link .social-btn__icon svg { width: 12px; height: 12px; }
.social-link:hover { color: var(--brand-text); text-decoration: underline; }
.social-link .arrow { transition: transform var(--dur) var(--ease); }
.social-link:hover .arrow { transform: translateX(3px); }

.social-band {
  display: grid;
  gap: var(--sp-5);
  align-items: center;
  margin-top: var(--sp-8);
  padding: var(--sp-6);
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-1);
}
.social-band__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: var(--r-md);
  background: var(--youtube);
  color: var(--brand-ink);
}
.social-band__copy h3 { font-size: var(--step-2); }
.social-band__copy p { margin-top: var(--sp-2); color: var(--text-mute); max-width: 58ch; }
.social-band__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

.social-band__icon { grid-area: icon; }
.social-band__copy { grid-area: copy; }
.social-band__actions { grid-area: actions; }
.social-band { grid-template-areas: "icon" "copy" "actions"; }

/* Tablet: badge on the left, copy and buttons stacked beside it. */
@media (min-width: 700px) {
  .social-band {
    grid-template-columns: auto 1fr;
    grid-template-areas: "icon copy" "icon actions";
    align-items: start;
    column-gap: var(--sp-6);
    row-gap: var(--sp-4);
    padding: var(--sp-6) var(--sp-7);
  }
}

/* Wide: everything on one line once the copy has room to breathe. */
@media (min-width: 1180px) {
  .social-band {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "icon copy actions";
    align-items: center;
  }
}

.detail-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3) var(--sp-6);
  margin-top: var(--sp-8);
}
.detail-footer .social-link { margin-top: 0; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-5);
  justify-content: space-between;
  align-items: center;
  padding-top: var(--sp-5);
  border-top: 1px solid color-mix(in oklch, var(--ivory) 16%, transparent);
  font-size: var(--step--2);
  color: var(--text-on-dark-mute);
}

@media (min-width: 760px) {
  .footer-top { grid-template-columns: 1.6fr 1fr 1.2fr; gap: var(--sp-7); }
}

/* =====================================================================
   Motion — additive only, so nothing depends on it
   ===================================================================== */

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 4% cover 26%;
    }
    @keyframes reveal {
      from { opacity: 0; transform: translateY(22px); }
      to   { opacity: 1; transform: none; }
    }
  }
}

/* JS fallback for Firefox, which has not shipped scroll-driven animations.
   The class is only ever added by script, so content stays visible without JS. */
.js-reveal { opacity: 0; transform: translateY(22px); transition: opacity 520ms var(--ease), transform 520ms var(--ease); }
.js-reveal.is-revealed { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .js-reveal { animation: none !important; opacity: 1 !important; transform: none !important; }
}

@media print {
  .site-header, .nav-mobile, .site-footer, .btn, .copy-btn { display: none !important; }
  body { background: var(--surface); }
}

.detail-actions--center { justify-content: center; }


/* Follows a section of the same colour: halve the gap instead of doubling it. */
.section--flush-top { padding-top: clamp(1rem, 3vw, var(--sp-6)); }

