/* ==========================================================================
   Bamboo Montessori — Design System
   Brand colors sampled directly from the official logo assets:
   primary green #2f7d32 family, warm bamboo-wood gold, soil brown for text.
   ========================================================================== */

:root {
  /* --- Brand color scale --- */
  --green-900: #163819;
  --green-800: #1b4d1e;
  --green-700: #276b2a;
  --green-600: #2f7d32;   /* primary brand green, sampled from logo */
  --green-500: #3c9142;
  --green-400: #5aab5f;
  --green-100: #e6f2e5;
  --green-50:  #f2f8f1;

  --gold-700: #8a6a22;
  --gold-500: #c9a94a;
  --gold-300: #e3cd8d;
  --gold-100: #f8eecb;

  --brown-900: #3b2a22;   /* primary text */
  --brown-700: #6b5849;   /* secondary text */
  --brown-300: #cbb9a4;

  --cream:  #fbf8f0;      /* page background */
  --white:  #ffffff;

  /* --- Semantic tokens --- */
  --color-bg: var(--cream);
  --color-surface: var(--white);
  --color-text: var(--brown-900);
  --color-text-muted: var(--brown-700);
  --color-border: rgba(59, 42, 34, 0.12);

  --color-primary: var(--green-600);
  --color-primary-strong: var(--green-800);
  --color-primary-hover: var(--green-500);
  --color-on-primary: #ffffff;

  --color-accent: var(--gold-500);
  --color-accent-strong: var(--gold-700);

  --shadow-color: 30deg 40% 20%;
  --shadow-sm: 0 1px 2px hsl(var(--shadow-color) / 0.08), 0 1px 1px hsl(var(--shadow-color) / 0.06);
  --shadow-md: 0 8px 24px hsl(var(--shadow-color) / 0.10), 0 2px 8px hsl(var(--shadow-color) / 0.06);
  --shadow-lg: 0 20px 48px hsl(var(--shadow-color) / 0.16), 0 6px 16px hsl(var(--shadow-color) / 0.08);

  /* --- Typography --- */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;

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

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-full: 999px;

  --container-width: 1240px;

  --header-h: 84px;
}

/* ==========================================================================
   Reset
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
svg { display: block; }

a { color: inherit; text-decoration: none; }

ul, ol { padding: 0; margin: 0; list-style: none; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }

h1, h2, h3, h4, h5, p, figure { margin: 0; }

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--color-primary-strong);
}

h1 { font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 1.4rem + 1.4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p.lead {
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.25rem);
  color: var(--color-text-muted);
  line-height: 1.6;
}

::selection { background: var(--gold-300); color: var(--brown-900); }

:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

@media (max-width: 640px) {
  .container { padding-inline: var(--space-4); }
}

.section { padding-block: var(--space-9); position: relative; }
.section--tight { padding-block: var(--space-7); }
.section--alt { background: var(--green-50); }
.section--brand {
  background: linear-gradient(155deg, var(--green-800), var(--green-600) 70%);
  color: #fff;
}
.section--brand h2, .section--brand h3 { color: #fff; }
.section--cream { background: var(--gold-100); }

.section__header {
  max-width: 700px;
  margin-bottom: var(--space-7);
}
.section__header.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-strong);
  margin-bottom: var(--space-3);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: var(--color-accent);
  display: inline-block;
}
.section--brand .eyebrow { color: var(--gold-300); }
.section--brand .eyebrow::before { background: var(--gold-300); }

.section__lead {
  margin-top: var(--space-3);
  color: var(--color-text-muted);
  font-size: 1.1rem;
}
.section--brand .section__lead { color: rgba(255,255,255,0.85); }

.grid { display: grid; gap: var(--space-6); }
.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: 900px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  background: var(--green-800);
  color: #fff;
  padding: 0.75em 1.25em;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top 0.2s ease;
}
.skip-link:focus { top: var(--space-3); }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.9em 1.7em;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.98rem;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color .18s ease;
  border: 2px solid transparent;
}

/* Long labels (phone numbers, full sentences) cannot fit one line on phones */
@media (max-width: 640px) {
  .btn { white-space: normal; }
  .hero-banner .btn-row,
  .cta-banner .btn-row { flex-direction: column; align-items: stretch; }
  .hero-banner .btn,
  .cta-banner .btn { padding-inline: var(--space-4); }
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--green-500); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn--gold {
  background: var(--color-accent);
  color: var(--brown-900);
  box-shadow: var(--shadow-sm);
}
.btn--gold:hover { background: var(--gold-300); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn--outline {
  background: transparent;
  border-color: currentColor;
  color: var(--color-primary-strong);
}
.btn--outline:hover { background: var(--green-100); transform: translateY(-2px); }

.section--brand .btn--outline { color: #fff; }
.section--brand .btn--outline:hover { background: rgba(255,255,255,0.12); }

.btn--white {
  background: #fff;
  color: var(--color-primary-strong);
}
.btn--white:hover { background: var(--gold-100); transform: translateY(-2px); }

.btn--sm { padding: 0.6em 1.2em; font-size: 0.88rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; gap: var(--space-3); flex-wrap: wrap; align-items: center; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 700;
  color: var(--color-primary-strong);
  border-bottom: 2px solid var(--gold-500);
  padding-bottom: 2px;
  transition: gap 0.18s ease, color .18s ease;
}
.link-arrow:hover { gap: 0.7em; color: var(--green-500); }
.link-arrow svg { width: 1em; height: 1em; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(59, 42, 34, 0.08);
  transition: box-shadow 0.25s ease;
}
/* The translucent "frosted glass" background lives on a pseudo-element
   rather than directly on .site-header. backdrop-filter (like transform)
   creates a new containing block for position:fixed descendants — putting
   it straight on the header would trap the full-screen mobile-nav overlay
   (a fixed-position descendant) inside the header's own 84px-tall box
   instead of letting it cover the viewport. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(251, 248, 240, 0.86);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  transition: background-color 0.25s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7em;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--green-800);
  flex-shrink: 1;
  min-width: 0;
}
.brand img { width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0; }
.brand span { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand small {
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--color-accent-strong);
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.main-nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.main-nav__list a {
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--brown-900);
  padding: 0.4em 0.1em;
  position: relative;
}
.main-nav__list a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--color-primary);
  transition: right 0.2s ease;
  border-radius: 2px;
}
.main-nav__list a:hover::after,
.main-nav__list a[aria-current="page"]::after { right: 0; }
.main-nav__list a[aria-current="page"] { color: var(--green-700); }

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

/* Language switcher — always visible, per spec */
.lang-switch {
  display: inline-flex;
  background: var(--green-100);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 2px;
}
/* Buttons in the authoring source (js/i18n.js swaps text in place); real links
   in the built site, where each language has its own URL. Both are styled. */
.lang-switch button,
.lang-switch a {
  padding: 0.4em 0.75em;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--green-800);
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease;
}
.lang-switch button[aria-pressed="true"],
.lang-switch a[aria-current="true"] {
  background: var(--color-primary);
  color: #fff;
}
.lang-switch button:not([aria-pressed="true"]):hover,
.lang-switch a:not([aria-current="true"]):hover { background: rgba(47,125,50,0.14); }

/* Temporary promo strip directly under the header — see partials/header.html */
.promo-banner {
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
  color: var(--green-900);
  font-size: 0.92rem;
  line-height: 1.4;
}
.promo-banner .container {
  padding-block: 0.6em;
  display: flex;
  justify-content: center;
}
.promo-banner p {
  margin: 0;
  text-align: center;
  /* Keeps the message and its call to action on one line where there is room,
     and wraps as a whole rather than mid-phrase when there is not. */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.2em 0.6em;
}
.promo-banner a {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-weight: 700;
  color: var(--green-900);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.promo-banner a:hover { color: var(--green-700); }
.promo-banner a svg {
  width: 15px; height: 15px;
  transition: transform .18s ease;
}
.promo-banner a:hover svg { transform: translateX(3px); }

@media (max-width: 560px) {
  .promo-banner { font-size: 0.82rem; }
}

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  align-items: center; justify-content: center;
  background: var(--green-100);
}
.nav-toggle svg { width: 22px; height: 22px; color: var(--green-800); }

@media (max-width: 940px) {
  .main-nav__list { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header .container { gap: var(--space-3); }

  .main-nav.is-open .main-nav__list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--cream);
    padding: var(--space-5);
    overflow-y: auto;
  }
  .main-nav.is-open .main-nav__list a {
    display: block;
    padding: 1em 0.25em;
    font-size: 1.15rem;
    border-bottom: 1px solid var(--color-border);
  }
  .main-nav.is-open .main-nav__list a::after { display: none; }
}

/* Narrow phones: the full wordmark + tagline + language switcher no longer
   fit on one line — trim the brand lockup down to logo + name only. */
@media (max-width: 480px) {
  .brand { font-size: 1rem; gap: 0.5em; }
  .brand img { width: 36px; height: 36px; }
  .brand small { display: none; }
  .header-actions { gap: var(--space-2); }
  .lang-switch { padding: 2px; }
  .lang-switch button { padding: 0.35em 0.5em; font-size: 0.72rem; }
  .nav-toggle { width: 38px; height: 38px; }
}

/* ==========================================================================
   Hero banner — booking call-to-action at the top of the homepage
   ========================================================================== */

.hero-banner {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(155deg, var(--green-800), var(--green-600) 75%);
}
.hero-banner .container {
  position: relative;
  z-index: 1;
  padding-block: var(--space-8);
  text-align: center;
}
.hero-banner h2 { color: #fff; margin-bottom: var(--space-3); }
.hero-banner p.lead {
  color: rgba(255,255,255,0.88);
  max-width: 62ch;
  margin: 0 auto var(--space-6);
}
.hero-banner .btn-row { justify-content: center; }
.hero-banner .btn--outline { color: #fff; }
.hero-banner .btn--outline:hover { background: rgba(255,255,255,0.14); }


/* ==========================================================================
   Page banner — heading strip used on inner pages
   ========================================================================== */

.page-banner {
  position: relative;
  padding-block: calc(var(--space-9) + 1rem) var(--space-8);
  overflow: hidden;
  color: #fff;
  background: linear-gradient(155deg, var(--green-800), var(--green-600) 75%);
}
.page-banner__bg {
  position: absolute; inset: 0;
  object-fit: cover;
  width: 100%; height: 100%;
  opacity: 0.28;
  mix-blend-mode: overlay;
}
.page-banner .container { position: relative; z-index: 1; max-width: 820px; }
.page-banner .eyebrow { color: var(--gold-300); }
.page-banner .eyebrow::before { background: var(--gold-300); }
.page-banner h1 { color: #fff; }
.page-banner p.lead { color: rgba(255,255,255,0.88); }
.page-banner .btn--outline { color: #fff; }
.page-banner .btn--outline:hover { background: rgba(255,255,255,0.14); }
.page-banner__crumbs {
  display: flex; gap: 0.5em; align-items: center;
  font-size: 0.85rem; font-weight: 600; color: rgba(255,255,255,0.75);
  margin-bottom: var(--space-5);
}
.page-banner__crumbs a:hover { color: #fff; }

/* ==========================================================================
   Cards — the "three arms" + generic content cards
   ========================================================================== */

.arm-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
}
.arm-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.arm-card__media { position: relative; aspect-ratio: 16/11; overflow: hidden; }
.arm-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.arm-card:hover .arm-card__media img { transform: scale(1.06); }
.arm-card__tag {
  position: absolute; top: var(--space-4); left: var(--space-4);
  background: rgba(255,255,255,0.92);
  color: var(--green-800);
  font-weight: 700; font-size: 0.78rem;
  padding: 0.4em 0.9em;
  border-radius: var(--radius-full);
}

.arm-card__body { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.arm-card__body h3 { color: var(--green-800); }
.arm-card__age { color: var(--color-accent-strong); font-weight: 700; font-size: 0.9rem; }
.arm-card__body p { color: var(--color-text-muted); flex: 1; }

.arm-card__list { display: flex; flex-direction: column; gap: 0.5em; margin: var(--space-2) 0; }
.arm-card__list li { display: flex; gap: 0.6em; align-items: flex-start; font-size: 0.92rem; }
.arm-card__list svg { width: 18px; height: 18px; color: var(--color-primary); flex-shrink: 0; margin-top: 0.15em; }

.card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.feature {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.feature__icon {
  width: 54px; height: 54px;
  border-radius: var(--radius-md);
  background: var(--green-100);
  color: var(--color-primary-strong);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.section--brand .feature__icon { background: rgba(255,255,255,0.12); color: #fff; }
.feature__icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.15rem; }
.feature p { color: var(--color-text-muted); font-size: 0.96rem; }
.section--brand .feature p { color: rgba(255,255,255,0.82); }

/* ==========================================================================
   Class / group cards (nursery & preschool age groups)
   ========================================================================== */

.group-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.group-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 6px;
  background: linear-gradient(90deg, var(--green-600), var(--gold-500));
}
.group-card__age {
  display: inline-block;
  background: var(--gold-100);
  color: var(--color-accent-strong);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.3em 0.9em;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-3);
}
.group-card h3 { margin-bottom: var(--space-2); }
.group-card__meta {
  display: flex; align-items: center; gap: 0.5em;
  color: var(--color-text-muted); font-size: 0.9rem; margin-top: var(--space-3);
}
.group-card__meta svg { width: 18px; height: 18px; color: var(--color-primary); }

/* ==========================================================================
   Timeline (daily schedule)
   ========================================================================== */

.timeline { display: flex; flex-direction: column; }
.timeline__item {
  display: grid;
  grid-template-columns: 140px auto 1fr;
  gap: var(--space-5);
  align-items: start;
  padding-block: var(--space-5);
}
.timeline__item:not(:last-child) { border-bottom: 1px dashed var(--color-border); }
.timeline__time { font-weight: 800; color: var(--green-800); font-size: 1.05rem; }
.timeline__dot-col { display: flex; flex-direction: column; align-items: center; }
.timeline__dot { width: 14px; height: 14px; border-radius: 50%; background: var(--color-primary); box-shadow: 0 0 0 5px var(--green-100); }
.timeline__body h4 { margin-bottom: 0.3em; }
.timeline__body p { color: var(--color-text-muted); font-size: 0.95rem; }

@media (max-width: 640px) {
  .timeline__item { grid-template-columns: 90px auto 1fr; gap: var(--space-3); }
}

.day-plan { display: flex; flex-direction: column; }
.day-plan__row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: var(--space-3);
  padding-block: var(--space-3);
}
.day-plan__row:not(:last-child) { border-bottom: 1px dashed var(--color-border); }
.day-plan__time { font-weight: 700; color: var(--green-800); font-size: 0.9rem; }
.day-plan__text { color: var(--color-text-muted); font-size: 0.92rem; }

/* ==========================================================================
   Pricing
   ========================================================================== */

.pricing-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.pricing-box__head {
  background: linear-gradient(155deg, var(--green-800), var(--green-600));
  color: #fff;
  padding: var(--space-6);
}
.pricing-box__head h3 { color: #fff; margin-bottom: 0.4em; }
.pricing-box__head p { color: rgba(255,255,255,0.85); font-size: 0.92rem; }
.pricing-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--color-border);
}
.pricing-row:last-of-type { border-bottom: none; }
.pricing-row__label { font-weight: 600; }
.pricing-row__note { display: block; color: var(--color-text-muted); font-size: 0.84rem; margin-top: 0.2em; }
.pricing-row__value { font-weight: 800; color: var(--green-800); font-size: 1.05rem; white-space: nowrap; }
.pricing-row__value small { display: block; font-weight: 500; color: var(--color-text-muted); font-size: 0.72rem; text-align: right; }
.pricing-box__total {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--space-5) var(--space-6);
  background: var(--green-50);
  font-weight: 800;
}
.pricing-box__total .value { color: var(--green-800); font-size: 1.3rem; }
.pricing-box__foot { padding: var(--space-5) var(--space-6); font-size: 0.85rem; color: var(--color-text-muted); }

.discount-list { display: flex; flex-direction: column; gap: var(--space-3); }
.discount-item {
  display: flex; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--gold-100);
  border-radius: var(--radius-md);
}
.discount-item strong { color: var(--color-accent-strong); }

/* ==========================================================================
   Document links
   ========================================================================== */

.doc-list { display: flex; flex-direction: column; gap: var(--space-2); }
.doc-link {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: border-color .18s ease, transform .18s ease;
}
.doc-link:hover { border-color: var(--color-primary); transform: translateX(4px); }
.doc-link svg { width: 22px; height: 22px; color: var(--color-accent-strong); flex-shrink: 0; }
.doc-link span { flex: 1; }
.doc-link .arrow { width: 18px; height: 18px; color: var(--color-text-muted); }

/* ==========================================================================
   Quote / mission block
   ========================================================================== */

.quote-block {
  position: relative;
  padding: var(--space-7) var(--space-8);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border-left: 6px solid var(--color-accent);
  box-shadow: var(--shadow-sm);
}
.quote-block p { font-size: 1.2rem; line-height: 1.6; color: var(--green-800); font-weight: 600; }

/* ==========================================================================
   Split section (image + text)
   ========================================================================== */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
}
.split--reverse .split__media { order: 2; }
.split__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.split__media img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: -1; }
}

/* ==========================================================================
   Blog
   ========================================================================== */

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
@media (max-width: 980px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } }

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
  height: 100%;
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.post-card__media { aspect-ratio: 16/10; overflow: hidden; background: var(--green-100); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card:hover .post-card__media img { transform: scale(1.06); }
.post-card__body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.post-card__date {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--color-accent-strong);
}
.post-card__body h3 { font-size: 1.15rem; color: var(--green-800); }
.post-card__body p { color: var(--color-text-muted); font-size: 0.92rem; flex: 1; }
.post-card__more { font-weight: 700; font-size: 0.88rem; color: var(--color-primary-strong); margin-top: var(--space-2); }

.post-skeleton {
  height: 340px;
  border-radius: var(--radius-lg);
  background: linear-gradient(100deg, var(--green-50) 30%, var(--green-100) 50%, var(--green-50) 70%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.state-message {
  text-align: center;
  padding: var(--space-8) var(--space-5);
  color: var(--color-text-muted);
  grid-column: 1 / -1;
}
.state-message svg { width: 48px; height: 48px; color: var(--gold-500); margin: 0 auto var(--space-4); }

/* ==========================================================================
   Gallery
   ========================================================================== */

/* A link inside the dark page banner (the gallery intro CTA). It is a full
   sentence, so it must be allowed to wrap — forcing it onto one line pushes it
   past the viewport edge in Polish on narrow screens. */
.banner-link {
  color: var(--gold-300);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.banner-link:hover { color: #fff; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-4);
}
.gallery-tile {
  display: block;
  padding: 0;
  border: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--green-100);
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
  aspect-ratio: 1;
  transition: transform .2s ease, box-shadow .2s ease;
}
.gallery-tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.gallery-tile:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }

@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--space-3); }
}

/* Lightbox — opened by js/main.js, inert until then */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 24, 11, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: min(100%, 1400px);
  max-height: 88vh;
  width: auto; height: auto;
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.lightbox button {
  position: absolute;
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  color: #fff;
  transition: background-color .18s ease;
}
.lightbox button:hover { background: var(--color-primary); }
.lightbox button:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }
.lightbox button svg { width: 22px; height: 22px; }
.lightbox__close { top: var(--space-4); right: var(--space-4); }
.lightbox__nav--prev { left: var(--space-4); }
.lightbox__nav--next { right: var(--space-4); }

@media (max-width: 560px) {
  .lightbox { padding: var(--space-3); }
  .lightbox button { width: 42px; height: 42px; }
  .lightbox__nav--prev { left: var(--space-2); }
  .lightbox__nav--next { right: var(--space-2); }
  .lightbox__close { top: var(--space-2); right: var(--space-2); }
}

/* Single post */
.post-article { max-width: 760px; margin-inline: auto; }
.post-article__meta {
  display: flex; gap: var(--space-4); flex-wrap: wrap; align-items: center;
  color: var(--color-text-muted); font-size: 0.9rem; margin-bottom: var(--space-5);
}
.post-article__meta .dot::before { content: "•"; margin-right: var(--space-4); opacity: .6;}
.post-article__cover {
  width: 100%; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-top: var(--space-6); margin-bottom: var(--space-7); aspect-ratio: 16/9;
}
.post-article__cover img { width: 100%; height: 100%; object-fit: cover; }

.prose { font-size: 1.08rem; line-height: 1.8; color: var(--color-text); }
.prose h1, .prose h2, .prose h3 { margin-top: 1.6em; margin-bottom: 0.6em; color: var(--green-800); }
.prose h1:first-child, .prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p { margin-bottom: 1.2em; }
.prose a { color: var(--color-primary-strong); font-weight: 600; border-bottom: 2px solid var(--gold-500); }
.prose a:hover { color: var(--green-500); }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.prose li { margin-bottom: 0.5em; }
.prose ul li { list-style: disc; }
.prose ol li { list-style: decimal; }
.prose blockquote {
  margin: 1.6em 0; padding: var(--space-2) var(--space-6);
  border-left: 4px solid var(--color-accent); color: var(--color-text-muted); font-style: italic;
}
.prose img { border-radius: var(--radius-md); margin: 1.6em 0; }
.prose strong { color: var(--green-800); }

.post-back {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-weight: 700; color: var(--color-primary-strong); margin-bottom: var(--space-6);
}
.post-back svg { width: 18px; height: 18px; }
.post-back:hover { color: var(--green-500); }

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

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-7);
  align-items: stretch;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-list { display: flex; flex-direction: column; gap: var(--space-5); }
.contact-item { display: flex; gap: var(--space-4); align-items: flex-start; }
/* The email address is one long unbreakable string; let it wrap on narrow phones */
.contact-item > div { min-width: 0; overflow-wrap: anywhere; }
.contact-item__icon {
  width: 46px; height: 46px; border-radius: var(--radius-md);
  background: rgba(255,255,255,0.14);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-item__icon svg { width: 22px; height: 22px; }
.contact-item h4 { font-size: 0.98rem; color: #fff; margin-bottom: 0.2em;}
.contact-item p, .contact-item a { color: rgba(255,255,255,0.85); font-size: 0.95rem; }
.contact-item a:hover { color: #fff; text-decoration: underline; }

/* Booking is the one contact method that's a direct action (not just
   information), so it's pulled out with its own gold, button-like
   treatment rather than sitting as a plain row like the others. */
.contact-item--booking {
  align-items: center;
  background: linear-gradient(120deg, var(--gold-500), var(--gold-300));
  color: var(--brown-900);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.contact-item--booking:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.contact-item--booking .contact-item__icon { background: rgba(59, 42, 34, 0.14); }
.contact-item--booking .contact-item__icon svg { color: var(--brown-900); }
.contact-item--booking .contact-item__text { min-width: 0; }
.contact-item--booking h4 { color: var(--brown-900); }
.contact-item--booking p { color: rgba(59, 42, 34, 0.78); text-decoration: none; }
.contact-item--booking:hover p { text-decoration: none; }
.contact-item__arrow { margin-left: auto; flex-shrink: 0; color: var(--brown-900); transition: transform 0.2s ease; }
.contact-item--booking:hover .contact-item__arrow { transform: translateX(3px); }

.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 340px;
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--color-surface);
}
.map-frame iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

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

.site-footer {
  background: var(--green-900);
  color: rgba(255,255,255,0.78);
  padding-block: var(--space-8) var(--space-6);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: var(--space-7);
  padding-bottom: var(--space-7);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand { display: flex; align-items: center; gap: 0.7em; margin-bottom: var(--space-4); }
.footer-brand img { width: 40px; height: 40px; border-radius: 10px; }
.footer-brand strong { color: #fff; font-size: 1.05rem; }
.site-footer p { font-size: 0.92rem; line-height: 1.7; }
.footer-badge {
  display: inline-block;
  margin-top: var(--space-5);
  background: #fff;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
.footer-badge img { display: block; width: 180px; height: auto; }
.site-footer h4 {
  color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: var(--space-4);
}
.footer-links { display: flex; flex-direction: column; gap: 0.7em; }
.footer-links a:hover { color: #fff; }
.footer-social { display: flex; gap: var(--space-3); margin-top: var(--space-4); }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { background: var(--color-primary); }
.footer-social svg { width: 18px; height: 18px; }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-3);
  padding-top: var(--space-5);
  font-size: 0.85rem;
}
.footer-bottom .lang-switch { background: rgba(255,255,255,0.1); }
.footer-bottom .lang-switch button { color: #fff; }
.footer-bottom .lang-switch button[aria-pressed="true"] { background: var(--color-primary); }

/* ==========================================================================
   CTA banner
   ========================================================================== */

.cta-banner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-6);
  flex-wrap: wrap;
  background: linear-gradient(120deg, var(--green-800), var(--green-600));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-7) var(--space-8);
  box-shadow: var(--shadow-lg);
}
.cta-banner h2 { color: #fff; margin-bottom: 0.3em; }
.cta-banner p { color: rgba(255,255,255,0.85); }
.cta-banner .btn--outline { color: #fff; }
.cta-banner .btn--outline:hover { background: rgba(255,255,255,0.14); }

/* ==========================================================================
   404
   ========================================================================== */

.not-found {
  min-height: 70vh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: var(--space-9) var(--space-4);
}
.not-found img { width: 180px; margin: 0 auto var(--space-6); }

/* ==========================================================================
   Utilities
   ========================================================================== */

.mt-1 { margin-top: var(--space-1); } .mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); } .mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); } .mt-8 { margin-top: var(--space-8); }
.mb-2 { margin-bottom: var(--space-2); } .mb-4 { margin-bottom: var(--space-4); }
.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }

[data-i18n], [data-i18n-html] { }
[v-cloak], .no-js-hide { }

.decor-leaf {
  position: absolute;
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
}

/* Reveal-on-scroll is opt-in from JS, never from CSS alone: content must
   stay visible if JavaScript fails, errors, or simply hasn't run yet. main.js
   adds .reveal-pending only once it has confirmed IntersectionObserver is
   set up (and force-reveals everything after a short timeout as a
   safety net), so a broken or slow script can never leave real content
   permanently hidden. */
[data-reveal] {
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--reveal-delay, 0s);
}
[data-reveal].reveal-pending { opacity: 0; transform: translateY(28px); }
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
