/* ==========================================================================
   KASZÁS ASZTALOS / STOLARIJA KASAŠ - stylesheet
   Plain CSS, no build step, no framework. Edit this file and reload -
   assets are cache-busted automatically by the PHP asset() helper (it
   appends the file's own mtime), so there is nothing to bump by hand.

   Two accent colours run through the page on purpose: oak for carpentry,
   slate for roofing - the two trades stay visually distinct wherever both
   appear together.
   ========================================================================== */

:root {
  --ink: #17110d; --ink-2: #241a14; --ink-3: #3a2c22;
  --bone: #fbf8f4; --sand: #f3ece3; --sand-2: #ece1d4;
  --hdr-bg: #f9fef8; /* matches the logo art's own background exactly, so its edge disappears */
  --line: #e2d5c5; --line-2: #d3c2ad;
  --muted: #6f6054; --muted-2: #8b7a6b;

  --oak: #c0803c; --oak-2: #a2661f; --oak-3: #8a5416; --oak-soft: #f6ead8;
  --slate: #4c7a8c; --slate-2: #37606f; --slate-3: #2b4c58; --slate-soft: #e7eff1;
  --ember: #b4471f;

  --serif: Fraunces, 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;

  --sh-1: 0 1px 2px rgba(23,17,13,.06), 0 2px 8px rgba(23,17,13,.05);
  --sh-2: 0 2px 6px rgba(23,17,13,.07), 0 14px 30px rgba(23,17,13,.10);
  --sh-3: 0 10px 24px rgba(23,17,13,.14), 0 30px 64px rgba(23,17,13,.18);
  --sh-oak: 0 2px 6px rgba(162,102,31,.28), 0 12px 26px rgba(162,102,31,.24);
  --sh-slate: 0 2px 6px rgba(55,96,111,.30), 0 12px 26px rgba(55,96,111,.24);

  --out: cubic-bezier(.22, .8, .3, 1);
  /* the logo mark is wider than tall (aspect 720:440); --hdr-h tracks its
     fluid height plus header padding so the sticky-scroll offset stays right */
  --logo-h: clamp(56px, 6vw + 22px, 104px);
  --logo-w: calc(var(--logo-h) * 1.636);
  --hdr-h: calc(var(--logo-h) + 29px);
  /* header text scale (+30%); eased on phones where the row is tight */
  --hs: 1.3;
  --lt: 1.25; /* extra scale for the logo text only */
  --mbar-h: 60px;
}

/* ── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; border: 0 solid var(--line); }
html {
  font-family: var(--sans); line-height: 1.5; -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + 14px);
  -webkit-tap-highlight-color: transparent;
}
html, body { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }

body { margin: 0; background: var(--bone); color: var(--ink); font-size: 16px; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5 { margin: 0; font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; line-height: 1.18; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; margin: 0; padding: 0; }
button { background: none; border-width: 0; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--oak); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--oak); color: #fff; }
.a11y-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; top: -60px; left: 12px; z-index: 999; background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: 8px; transition: top .2s var(--out);
}
.skip:focus { top: 12px; }

/* ── Layout helpers ─────────────────────────────────────────────────────── */
.wrap { width: min(100% - 32px, 1260px); margin-inline: auto; }
.wrap-narrow { width: min(100% - 32px, 840px); margin-inline: auto; }
.full-bleed { width: 100vw; margin-inline: calc(50% - 50vw); }
.ic { width: 22px; height: 22px; flex: none; }
.ic-sm { width: 18px; height: 18px; flex: none; }
.ic-xs { width: 14px; height: 14px; flex: none; }
.ic-lg { width: 30px; height: 30px; flex: none; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 12px;
  font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .13em; color: var(--oak-2);
}
.eyebrow::before { content: ''; width: 24px; height: 2px; background: var(--oak); border-radius: 4px; }
.eyebrow.is-slate { color: var(--slate-2); }
.eyebrow.is-slate::before { background: var(--slate); }
.eyebrow.on-dark { color: var(--oak); }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px; border-radius: 9px; font-size: 15px; font-weight: 600; line-height: 1;
  border-width: 1.5px; border-color: transparent; white-space: nowrap; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 9px 15px; font-size: 13.5px; }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--oak-2); color: #fff; box-shadow: var(--sh-oak); }
.btn-primary:hover { background: var(--oak-3); }
.btn-slate { background: var(--slate-2); color: #fff; box-shadow: var(--sh-slate); }
.btn-slate:hover { background: var(--slate-3); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--sand); border-color: var(--oak); color: var(--oak-3); }
.btn-outline-light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.32); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.btn-outline-light:hover { background: rgba(255,255,255,.18); border-color: #fff; }

/* ── Section scaffolding ────────────────────────────────────────────────── */
.sect { padding-block: 70px; }
.sect-tight { padding-block: 46px; }
@media (max-width: 780px) { .sect { padding-block: 52px; } }
.sect-tint { background: var(--sand); }
.sect-dark { background: var(--ink); color: #fff; }
.sect-slate { background: var(--slate-soft); }
.sect-head { max-width: 680px; margin: 0 auto 40px; text-align: center; }
.sect-head.is-left { text-align: left; margin: 0 0 34px; }
.sect-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 12px; text-wrap: balance; }
.sect-sub { color: var(--muted); font-size: 16.5px; text-wrap: pretty; }
.sect-dark .sect-sub { color: #cbbcae; }

/* ── Topbar + header ────────────────────────────────────────────────────── */
.topbar { background: var(--ink); color: #d9cabc; font-size: 12.5px; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; padding-block: 7px; gap: 12px; }
.topbar-reg { color: var(--oak); font-weight: 600; }
@media (max-width: 680px) { .topbar-item:first-child { display: none; } .topbar-in { justify-content: center; } }

.hdr {
  /* deliberately no backdrop-filter here: it would (per spec) make .hdr the
     containing block for its position:fixed descendant, #nav - the mobile
     drawer - collapsing it into a small box the header's own height instead
     of a full-screen panel. A near-opaque solid background reads almost
     identically and carries no such trap. */
  position: sticky; top: 0; z-index: 90; background: var(--hdr-bg); border-bottom: 1px solid var(--line);
}
/* header row spans the full width (logo hugs the left edge) instead of the 1260px content column */
.hdr-in.wrap { width: calc(100% - 2 * clamp(6px, 1vw, 14px)); }
.hdr-in { position: relative; display: flex; align-items: center; gap: 18px; padding-block: 14px; }
.logo { display: flex; align-items: center; gap: 11px; flex: none; min-width: 0; }
.logo-mark {
  /* fluid, not fixed: ~100px reads right on a typical laptop-width window,
     but that number only means anything relative to a screen/zoom - this
     scales with viewport width instead of assuming everyone's is the same */
  display: grid; place-items: center; flex: none;
  width: var(--logo-w); height: var(--logo-h);
}
.logo-mark img {
  /* transparent PNG, no border/shadow: the art sits straight on --hdr-bg */
  width: 100%; height: 100%; object-fit: contain;
}
.logo-txt {
  display: flex; flex-direction: column; align-items: center; line-height: 1.15; min-width: 0;
  /* stays put on the left at every width - on the narrowest phones, where a
     ~100px mark plus the header's right-side controls leave little room, the
     text truncates instead of ever pushing the burger off-screen */
  max-width: max(60px, calc(100vw - var(--logo-w) - 72px)); overflow: hidden;
}
.logo-txt b, .logo-txt small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.logo-txt b { font-family: "Times New Roman", Times, serif; font-weight: 700; text-transform: uppercase; font-size: calc(17.5px * var(--hs) * var(--lt)); }
.logo-txt small { font-family: "Times New Roman", Times, serif; font-size: calc(10.5px * var(--hs) * var(--lt)); letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }

.nav { display: flex; gap: 26px; margin-left: 8px; }
.nav a { white-space: nowrap; font-size: calc(14.5px * var(--hs)); font-weight: 600; color: var(--ink-3); transition: color .15s; }
.nav a:hover { color: var(--oak-2); }

.hdr-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
/* desktop: logo left, menu centred in the space between, controls right */
@media (min-width: 1321px) { .nav { margin: 0 auto; } .hdr-right { margin-left: 0; } }
.hdr-cta { font-size: calc(13.5px * var(--hs)); padding: calc(9px * var(--hs)) calc(15px * var(--hs)); }
.hdr-cta span { white-space: nowrap; }

.langsw { position: relative; }
.langsw-btn {
  display: flex; align-items: center; gap: 6px; padding: 9px 11px; border-radius: 8px;
  border: 1.5px solid var(--line-2); font-size: calc(13px * var(--hs)); font-weight: 700;
}
.langsw-btn:hover { border-color: var(--oak); }
.langsw-menu {
  position: absolute; top: calc(100% + 8px); right: 0; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; box-shadow: var(--sh-3); padding: 6px; min-width: 150px; display: grid; gap: 2px;
  opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .18s, transform .18s;
}
.langsw.is-open .langsw-menu { opacity: 1; transform: translateY(0); pointer-events: auto; }
.langsw-menu a { padding: 8px 10px; border-radius: 6px; font-size: calc(14px * var(--hs)); }
.langsw-menu a:hover { background: var(--sand); }
.langsw-menu a.is-cur { color: var(--oak-2); font-weight: 700; background: var(--oak-soft); }

.burger { display: none; width: 42px; height: 42px; flex: none; border-radius: 9px; align-items: center; justify-content: center; border: 1.5px solid var(--line-2); }
@media (max-width: 1320px) {
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(84vw, 340px); background: #fff; z-index: 5;
    flex-direction: column; gap: 2px; padding: 90px 22px 30px; transform: translateX(102%);
    transition: transform .38s var(--out); visibility: hidden; box-shadow: -20px 0 50px rgba(0,0,0,.18);
    /* only scrolls when its own content actually overflows (JS toggles this
       to hidden otherwise) - the language dropdown scrolls itself now, so
       the drawer shouldn't rubber-band when everything already fits */
    overflow-y: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain;
  }
  .nav.is-open { transform: translateX(0); visibility: visible; }
  .nav a { padding: 13px 6px; border-bottom: 1px solid var(--line); font-size: calc(16px * var(--hs)); }
  /* the language switcher, relocated here by JS once the drawer exists */
  .nav .langsw { width: 100%; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
  .nav .langsw-btn { width: 100%; justify-content: space-between; padding: 11px 6px; border: 0; font-size: calc(15px * var(--hs)); }
  /* capped and self-scrolling so opening it can't stretch the drawer's own
     scroll area - only the dropdown's list scrolls, not the whole sidemenu */
  .nav .langsw-menu { left: 0; right: 0; width: auto; max-height: min(45vh, 260px); overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .burger { display: inline-flex; }
  .hdr-cta span { display: none; }
  .navscrim {
    /* below .hdr (z-index 90), not above it - .hdr contains the open .nav
       drawer, and both need to stay visible over this dimmed backdrop */
    position: fixed; inset: 0; background: rgba(23,17,13,.5); z-index: 80; opacity: 0; pointer-events: none; transition: opacity .3s;
  }
  .navscrim.is-open { opacity: 1; pointer-events: auto; }
}
/* the header CTA duplicates the sticky mobile call bar once that appears -
   drop it there rather than let it fight burger/logo for the same row */
@media (max-width: 780px) { .hdr-cta { display: none; } }
@media (max-width: 560px) { .langsw-btn span { display: none; } :root { --hs: 1.15; --lt: 1; } }
@media (max-width: 380px) { :root { --hs: 1.05; --lt: .92; } }
@media (max-width: 340px) { :root { --hs: 1; --lt: .9; --logo-h: 46px; } .logo-txt small { display: none; } }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden; background: var(--ink); color: #fff;
  padding-block: 64px 56px;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(1200px 600px at 15% 0%, rgba(192,128,60,.28), transparent 60%),
              radial-gradient(900px 520px at 100% 100%, rgba(76,122,140,.24), transparent 60%),
              linear-gradient(165deg, var(--ink-2), var(--ink) 55%, #100c09);
}
.hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero-in { position: relative; z-index: 1; }
.hero-copy { max-width: 560px; }
@media (min-width: 981px) {
  .hero { min-height: min(760px, 82vh); display: grid; align-content: center; grid-template-columns: minmax(0, 1fr); }
  /* the picture has its own side, so the words never sit on the houses.
     Behind the words: the same scenery, softly out of focus - no dark panel */
  .hero-bg { background: #4d5a3c; overflow: hidden; }
  .hero-bg::before {
    content: ''; position: absolute; inset: -60px; background: var(--hero) left center / cover;
    filter: blur(22px) brightness(.82) saturate(1.05);
  }
  .hero-bg img {
    left: auto; right: 0; width: 62%; object-position: 64% 40%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%); mask-image: linear-gradient(90deg, transparent 0, #000 16%);
  }
  .hero-copy { max-width: min(560px, 38vw); }
}
/* narrower screens: the two houses are a picture of their own above the words */
@media (max-width: 980px) {
  .hero { padding-top: 0; background: #4d5a3c; isolation: isolate; }
  /* the same soft scenery behind the words */
  .hero::before {
    content: ''; position: absolute; inset: -60px; z-index: -1; background: var(--hero) left center / cover;
    filter: blur(22px) brightness(.68);
  }
  .hero-bg { position: relative; background: none; aspect-ratio: 4 / 3; max-height: 62vh; width: 100%; margin-bottom: 8px; }
  .hero-bg img { object-position: 50% 50%; }
  .hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23,17,13,0) 78%, rgba(30,26,16,.5) 100%); }
}

.hero-copy { text-shadow: 0 1px 3px rgba(0,0,0,.65), 0 2px 18px rgba(0,0,0,.55); }
.hero-copy .btn { text-shadow: none; }
.hero-copy .eyebrow { color: #ffd9a6; }
.hero-copy .hero-note { color: #f6efe6; }
.hero-copy .hero-note svg { color: #ffd9a6; }
.hero-copy .btn-outline-light { background: rgba(20,14,10,.45); }

.hero-title { font-size: clamp(2.1rem, 5vw, 3.5rem); line-height: 1.08; margin-bottom: 18px; }
.hero-title em { font-style: normal; color: var(--oak); }
.hero-sub { font-size: 17.5px; color: #d9cabc; max-width: 52ch; margin-bottom: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.hero-note { display: flex; gap: 9px; align-items: flex-start; font-size: 13.5px; color: #b6a698; max-width: 46ch; }
.hero-note svg { flex: none; margin-top: 2px; color: var(--oak); }

/* ── Stats ──────────────────────────────────────────────────────────────── */
.stats { background: var(--ink-2); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; padding-block: 34px; }
.stat b { display: block; font-family: var(--serif); font-size: clamp(1.7rem, 3.4vw, 2.6rem); color: var(--oak); }
.stat span { font-size: 13px; color: #cbbcae; }
.stats-grid .stat + .stat { border-left: 1px solid rgba(255,255,255,.12); }
@media (max-width: 640px) {
  .stat span { font-size: 11.5px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 22px; }
  .stats-grid .stat:nth-child(2n+1) { border-left: 0; }
  .stats-grid .stat:nth-child(n+3) { padding-top: 4px; }
}

/* ── Filter tabs (services) ─────────────────────────────────────────────── */
.filters { display: flex; justify-content: center; gap: 8px; margin-bottom: 34px; flex-wrap: wrap; }
.filter-b {
  padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line-2); font-weight: 700; font-size: 13.5px;
  color: var(--muted); transition: all .18s;
}
.filter-b:hover { border-color: var(--oak); color: var(--oak-3); }
.filter-b.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ── Service / roofing cards ────────────────────────────────────────────── */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; perspective: 1200px; }
@media (max-width: 1080px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 780px) { .svc-grid { grid-template-columns: repeat(2, 1fr); gap: 13px; } }
@media (max-width: 480px) { .svc-grid { grid-template-columns: 1fr; } }

.svc-card {
  position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 3/4; color: #fff;
  transform-style: preserve-3d; will-change: transform; box-shadow: var(--sh-2);
  transition: box-shadow .25s ease;
}
.svc-card:hover, .svc-card:focus-within { box-shadow: var(--sh-3); }
.svc-media { position: absolute; inset: 0; }
.svc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--out); transform: translateZ(0) scale(1.02); }
.svc-card:hover .svc-media img { transform: scale(1.1); }
.svc-veil {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(14,10,7,.92) 18%, rgba(14,10,7,.44) 56%, rgba(14,10,7,.18));
}
.svc-card.is-roof .svc-veil { background: linear-gradient(to top, rgba(11,20,24,.92) 18%, rgba(11,20,24,.46) 56%, rgba(11,20,24,.16)); }
.svc-body { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px; }
.svc-badge {
  align-self: flex-start; display: flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; background: rgba(255,255,255,.14); backdrop-filter: blur(3px);
  padding: 5px 9px; border-radius: 999px; margin-bottom: auto;
}
.svc-badge svg { color: var(--oak); }
.svc-card.is-roof .svc-badge svg { color: #8fc4d8; }
.svc-icon {
  width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.14); backdrop-filter: blur(3px);
  display: grid; place-items: center; margin-bottom: 10px;
}
.svc-title { font-family: var(--serif); font-size: 17px; font-weight: 600; margin-bottom: 6px; line-height: 1.2; }
.svc-desc {
  font-size: 13px; line-height: 1.5; color: #e6dccf; max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .35s var(--out), opacity .3s;
}
.svc-card:hover .svc-desc, .svc-card:focus-within .svc-desc { max-height: 120px; opacity: 1; }
.svc-more { display: none; }

/* ── Gallery ─────────────────────────────────────────────────────────────── */
.gal-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 160px; gap: 12px; }
.gal-i { position: relative; border-radius: 14px; overflow: hidden; cursor: zoom-in; }
.gal-i img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--out); }
.gal-i:hover img { transform: scale(1.08); }
.gal-i.is-tall { grid-row: span 2; }
.gal-i.is-wide { grid-column: span 2; }
@media (max-width: 900px) { .gal-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; } .gal-i.is-wide { grid-column: span 2; } }
@media (max-width: 520px) { .gal-grid { grid-template-columns: 1fr; } .gal-i.is-wide, .gal-i.is-tall { grid-column: span 1; grid-row: span 1; } }

.lb {
  position: fixed; inset: 0; z-index: 200; background: rgba(10,7,5,.94); display: grid; place-items: center; padding: 24px;
}
.lb-fig { max-width: min(94vw, 1100px); max-height: 88vh; }
.lb-fig img { max-height: 88vh; border-radius: 10px; }
.lb-x { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; }

/* ── Service area / map ─────────────────────────────────────────────────── */
.area-map-wrap { height: clamp(360px, 56vw, 560px); position: relative; z-index: 0; isolation: isolate; }  /* keeps the map controls under the header */
#area-map { width: 100%; height: 100%; }
.leaflet-popup-content-wrapper { border-radius: 10px; font-family: var(--sans); }
.leaflet-popup-content a { color: var(--oak-2); font-weight: 700; }

/* the town list sits on a moving navigation map */
#gde-radimo { padding-bottom: 0; }
.area-routes { position: relative; overflow: hidden; padding-bottom: 130px; }
.routes-bg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.area-routes > .wrap { position: relative; z-index: 1; }
.area-routes .area-lists { margin-top: 0; padding-top: 120px; }
@media (max-width: 780px) { .area-routes { padding-bottom: 100px; } .area-routes .area-lists { padding-top: 90px; } }
.area-routes .area-col h3 { text-shadow: 0 0 6px var(--sand), 0 0 6px var(--sand), 0 0 3px var(--sand); }
.area-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; margin-top: 40px; }
@media (max-width: 780px) { .area-lists { grid-template-columns: 1fr; } }
.area-col h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 14px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 13px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); font-size: 13.5px;
  font-weight: 600; transition: all .15s;
}
.chip:hover { border-color: var(--oak); color: var(--oak-3); transform: translateY(-1px); }
.area-note {
  margin-top: 26px; display: flex; gap: 10px; padding: 16px 18px; border-radius: 12px; background: #fff;
  border: 1px solid var(--line); font-size: 14.5px; align-items: flex-start;
}
.area-note svg { color: var(--oak); flex: none; margin-top: 2px; }

/* ── About / Why ────────────────────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: start; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
.about-copy p { margin-bottom: 14px; color: var(--ink-3); font-size: 15.5px; line-height: 1.65; }
.about-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: var(--sh-1); }
.about-card dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: 14px; }
.about-card dt { color: var(--muted); }
.about-card dd { margin: 0; font-weight: 600; }

.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .why-grid { grid-template-columns: 1fr; } }
.why-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; transition: transform .2s, box-shadow .2s; }
.why-card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.why-ic { width: 44px; height: 44px; border-radius: 11px; background: var(--oak-soft); color: var(--oak-3); display: grid; place-items: center; margin-bottom: 14px; }
.why-card h3 { font-size: 16px; margin-bottom: 6px; }
.why-card p { font-size: 14px; color: var(--muted); line-height: 1.55; }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.faq { display: grid; gap: 22px; }
.faq-i { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 18px 20px; text-align: left; font-weight: 700; font-size: 15.5px; }
.faq-q svg { flex: none; transition: transform .25s var(--out); color: var(--oak); }
.faq-i.is-open .faq-q svg { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s var(--out); }
.faq-a p { padding: 0 20px 18px; color: var(--muted); font-size: 14.5px; line-height: 1.6; max-width: 68ch; }
.faq-i.is-open .faq-a { max-height: 220px; }

/* ── Final CTA ──────────────────────────────────────────────────────────── */
.finalcta { background: linear-gradient(120deg, var(--ink-2), var(--ink) 60%); color: #fff; padding-block: 54px; }
.finalcta-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.finalcta h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 6px; }
.finalcta p { color: #cbbcae; max-width: 48ch; }
.finalcta-btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.ftr { background: var(--ink); color: #cbbcae; padding-top: 46px; }
.ftr-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 30px; padding-bottom: 34px; border-bottom: 1px solid rgba(255,255,255,.1); }
@media (max-width: 900px) { .ftr-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ftr-grid { grid-template-columns: 1fr; } }
.ftr-brand p { font-size: 14px; margin: 10px 0 16px; max-width: 32ch; }
.ftr-social { display: flex; gap: 10px; }
.ftr-social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; transition: background .15s; }
.ftr-social a:hover { background: var(--oak-2); }
.ftr h3 { color: #fff; font-size: 13.5px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; font-family: var(--sans); font-weight: 700; }
.ftr-col ul { display: grid; gap: 9px; }
.ftr-col a { font-size: 14px; transition: color .15s; }
.ftr-col a:hover { color: var(--oak); }
.ftr-legal p { font-size: 13.5px; margin-bottom: 6px; }
.ftr-base { padding-block: 18px; font-size: 12.5px; color: #a08d7d; }

/* ── Mobile sticky CTA bar ──────────────────────────────────────────────── */
.mbar { display: none; }
@media (max-width: 780px) {
  .mbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; height: var(--mbar-h);
    background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(0,0,0,.08);
  }
  .mbar-b { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 14px; }
  .mbar-b-call { background: var(--oak-2); color: #fff; }
  .mbar-b-mail { color: var(--ink); }
  body { padding-bottom: var(--mbar-h); }
}

/* ── Cookie notice ──────────────────────────────────────────────────────── */
.cbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; background: var(--ink); color: #fff;
  box-shadow: 0 -8px 24px rgba(0,0,0,.2);
  animation: cbarUp .4s var(--out);
}
@keyframes cbarUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.cbar-in {
  width: min(100% - 32px, 1260px); margin-inline: auto; padding-block: 16px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px;
}
.cbar-in p { font-size: 13.5px; color: #d9cabc; max-width: 68ch; line-height: 1.5; }
.cbar-in p b { color: #fff; }
.cbar-btns { display: flex; gap: 10px; flex: none; }
.cbar-btns .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.cbar-btns .btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; color: #fff; }
@media (max-width: 780px) { .cbar { bottom: var(--mbar-h); } }
@media (max-width: 560px) { .cbar-btns { width: 100%; } .cbar-btns .btn { flex: 1; } }

/* ── Breadcrumb (city pages) ─────────────────────────────────────────────── */
.crumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted-2); margin-bottom: 18px; }
.crumb a:hover { color: var(--oak-2); }
.crumb span[aria-hidden] { color: var(--line-2); }

/* ── City hero ──────────────────────────────────────────────────────────── */
.chero { background: var(--ink); color: #fff; padding-block: 40px 46px; position: relative; overflow: hidden; }
.chero-bg { position: absolute; inset: 0; background: radial-gradient(900px 480px at 90% 0%, rgba(76,122,140,.28), transparent 60%), radial-gradient(800px 460px at 0% 100%, rgba(192,128,60,.22), transparent 60%), linear-gradient(160deg, var(--ink-2), var(--ink)); }
.chero-in { position: relative; z-index: 1; max-width: 760px; }
.chero-title { font-size: clamp(1.9rem, 4.4vw, 2.9rem); margin-bottom: 14px; }
.chero-sub { color: #d9cabc; font-size: 16.5px; margin-bottom: 20px; max-width: 64ch; }
.chero-meta { display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: 13.5px; color: #cbbcae; margin-bottom: 22px; }
.chero-meta b { color: #fff; }
.chero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.nearby-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* ── Areas index page ───────────────────────────────────────────────────── */
.areas-region { margin-bottom: 34px; }
.areas-region h2 { font-size: 18px; margin-bottom: 14px; }
.areas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.areas-grid a { padding: 10px 13px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 600; transition: all .15s; }
.areas-grid a:hover { border-color: var(--oak); color: var(--oak-3); transform: translateY(-2px); box-shadow: var(--sh-1); }

/* ── Scroll reveal (GSAP hooks into these) ─────────────────────────────── */
.reveal { opacity: 0; transform: translateY(26px); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ── Marquee (city ticker) ──────────────────────────────────────────────── */
.marquee { overflow: hidden; background: var(--sand-2); border-block: 1px solid var(--line); }
.marquee-row { display: flex; width: max-content; gap: 40px; padding-block: 12px; animation: marq 140s linear infinite; }
.marquee-row span { font-family: var(--serif); font-size: 14px; color: var(--muted); white-space: nowrap; }
.marquee-row span::after { content: '•'; margin-left: 40px; color: var(--oak); }
@keyframes marq { to { transform: translateX(-50%); } }

@media print {
  .hdr, .mbar, .topbar, .finalcta, .navscrim { display: none !important; }
}

/* ── Wood catalogue (page-turning book) ─────────────────────────────────── */
.sect-book { padding-block: 18px; min-height: calc(100svh - var(--hdr-h)); display: flex; align-items: center; }
.sect-book > .wrap { width: min(100% - 32px, 1260px); }
.sect-book .sect-head { margin-bottom: 14px; }
.sect-book .sect-sub { font-size: 15px; }
/* sized from the screen height so heading + book + arrows all fit in one view:
   screen - sticky header - (heading + arrows + padding) = book height; width = that x 1.51 */
.book { --chrome: 270px; width: min(1040px, 100%, max(520px, calc((100svh - var(--hdr-h) - var(--chrome)) * 1.51))); margin-inline: auto; container-type: inline-size; outline: none; }
@media (min-width: 700px) and (max-height: 840px) { .sect-book .sect-sub { display: none; } .book { --chrome: 205px; } }
.book-frame {
  padding: 2.2cqw; border-radius: 1.6cqw; background: linear-gradient(145deg, #5a3a22, #3a2415 60%, #2a190e);
  box-shadow: 0 2.4cqw 5cqw rgba(23,17,13,.32), inset 0 0 0 1px rgba(255,255,255,.08);
}
.book-pages { position: relative; aspect-ratio: 1.55; perspective: 220cqw; background: #e9dfce; border-radius: .6cqw; }
.pg, .leaf { position: absolute; top: 0; height: 100%; width: 50%; }
.pg-static { left: 0; z-index: 0; }
.leaf { left: 50%; transform-origin: left center; transform-style: preserve-3d; transition: transform 1s cubic-bezier(.45, .05, .25, 1); }
.leaf.is-flipped { transform: rotateY(-180deg); }
.face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: #faf6ee; overflow: hidden; }
.face.back { transform: rotateY(180deg); }
.pg-static, .face.back { border-radius: .6cqw 0 0 .6cqw; }
.face.front { border-radius: 0 .6cqw .6cqw 0; cursor: pointer; }
.face.back, .pg-static { cursor: pointer; }
.pg-static { background: #faf6ee; }
.pg-static::after, .face.back::after { content: ''; position: absolute; inset: 0 0 0 auto; width: 9%; background: linear-gradient(to right, transparent, rgba(60,40,20,.16)); pointer-events: none; }
.face.front::after { content: ''; position: absolute; inset: 0 auto 0 0; width: 9%; background: linear-gradient(to left, transparent, rgba(60,40,20,.16)); pointer-events: none; }
.pg-in { position: absolute; inset: 0; padding: 7% 8%; display: flex; flex-direction: column; justify-content: center; }
.wname {
  font-family: var(--serif); font-weight: 300; text-transform: uppercase; letter-spacing: .01em; line-height: 1.05;
  font-size: max(15px, 4.6cqw); color: var(--ink); margin: 0 0 4cqw; overflow-wrap: anywhere;
}
.wplank { border-radius: .7cqw; overflow: hidden; box-shadow: 0 1cqw 2cqw rgba(23,17,13,.28); transform: rotate(-1.4deg); }
.wplank img { width: 100%; height: auto; display: block; aspect-ratio: 4.4; object-fit: cover; }
.wphoto { margin: 0; height: 100%; display: grid; place-items: center; }
.wphoto img { width: 100%; height: 100%; object-fit: cover; border-radius: .5cqw; }
.wphoto.is-empty { border: 1.5px dashed var(--line-2); border-radius: .8cqw; color: var(--line-2); }
.wphoto.is-empty svg { width: 6cqw; height: 6cqw; }
.pnum { position: absolute; bottom: 3.2%; font-size: max(10px, 1.5cqw); color: var(--muted-2); font-variant-numeric: tabular-nums; }
.face.front .pnum { right: 8%; }
.pg-static .pnum, .face.back .pnum { left: 8%; }

.book-nav { display: flex; justify-content: center; align-items: center; gap: 22px; margin-top: 16px; }
.bk-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line-2); background: #fff; color: var(--ink);
  display: grid; place-items: center; transition: background .15s, border-color .15s, opacity .15s;
}
.bk-btn:hover:not(:disabled) { background: var(--oak-soft); border-color: var(--oak); }
.bk-btn:disabled { opacity: .35; cursor: default; }
#bk-prev svg { transform: rotate(90deg); }
#bk-next svg { transform: rotate(-90deg); }
.bk-count { font-weight: 700; font-size: 15px; color: var(--ink-3); min-width: 64px; text-align: center; font-variant-numeric: tabular-nums; }

/* wood names under the book + "any wood" callout */
.wchips { list-style: none; margin: 26px auto 0; padding: 0; width: min(1040px, 100%); display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.wchip {
  padding: 8px 15px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); font-weight: 600; font-size: 14px;
  color: var(--ink-3); transition: all .15s;
}
.wchip:hover { border-color: var(--oak); color: var(--oak-3); transform: translateY(-1px); }
.wchip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.wany {
  width: min(1040px, 100%); margin: 28px auto 0; padding: 22px 26px; border-radius: 18px; color: #fff;
  background: radial-gradient(600px 220px at 0% 0%, rgba(192,128,60,.38), transparent 70%), linear-gradient(120deg, var(--ink-2), var(--ink));
  box-shadow: var(--sh-3); display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.wany-ic { width: 54px; height: 54px; border-radius: 14px; background: rgba(255,255,255,.1); color: var(--oak); display: grid; place-items: center; flex: none; }
.wany-tx { flex: 1 1 280px; display: grid; gap: 3px; }
.wany-tx b { font-family: var(--serif); font-size: clamp(1.15rem, 2.2vw, 1.5rem); line-height: 1.2; }
.wany-tx span { color: #d9cabc; font-size: 15px; }
@media (max-width: 560px) { .wany { padding: 18px; } .wany .btn { width: 100%; } }

/* ── Calendar + analogue clock ──────────────────────────────────────────── */
.cal-wrap { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; }
.cal-clock { position: sticky; top: calc(var(--hdr-h) + 20px); }
#aclock { width: 100%; height: auto; display: block; filter: drop-shadow(0 12px 26px rgba(23,17,13,.16)); }
.ac-face { fill: #fff; stroke: var(--ink); stroke-width: 3; }
.ac-tick { stroke: var(--line-2); stroke-width: 1; }
.ac-tick-b { stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; }
.ac-num { font: 600 15px var(--serif, serif); fill: var(--ink-3); }
.ac-hand-h { stroke: var(--ink); stroke-width: 5.5; stroke-linecap: round; }
.ac-hand-m { stroke: var(--ink-2); stroke-width: 3.6; stroke-linecap: round; }
.ac-hand-s { stroke: var(--oak-2); stroke-width: 1.8; stroke-linecap: round; }
.ac-pin { fill: var(--oak-2); stroke: #fff; stroke-width: 2; }
#ac-h, #ac-m, #ac-s { transform-origin: 100px 100px; }

.cal-months { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px 20px; }
.cal-m { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 12px 10px; }
.cal-mname { font-family: var(--serif); font-size: 16px; margin: 0 0 8px; color: var(--ink); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.cal-wd { font-size: 10.5px; font-weight: 700; color: var(--muted-2); text-transform: uppercase; padding-bottom: 3px; }
.cal-d { font-size: 12.5px; line-height: 1; padding: 6px 0; border-radius: 7px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.cal-d.is-blank { visibility: hidden; }
.is-we { color: var(--oak-2); }
.cal-d.is-off { color: #fff; font-weight: 700; cursor: help; }
.is-holiday { background: #c0392b; }
.is-vacation { background: var(--slate-2, #4c7a8c); }
.is-closed { background: var(--ink-3, #5a4a3e); }
.cal-d.is-today { outline: 2px solid var(--oak-2); outline-offset: 1px; background: var(--oak-2); color: #fff; font-weight: 800; }
.cal-d.is-today.is-off { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--oak-2); }

.cal-legend { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; color: var(--ink-3); }
.cal-legend li { display: flex; align-items: center; gap: 8px; }
.cal-key { width: 16px; height: 16px; border-radius: 5px; display: inline-block; }
.cal-key.is-today { background: var(--oak-2); outline: 2px solid var(--oak-2); outline-offset: 1px; }

.sect-cal .wrap { width: min(100% - 32px, 1700px); }
@media (min-width: 1280px) {
  .cal-months { grid-template-columns: repeat(6, 1fr); gap: 18px 14px; }
  .cal-m { padding: 10px 8px 8px; }
  .cal-mname { font-size: 15px; }
  .cal-d { font-size: 12px; padding: 5px 0; }
}
@media (max-width: 1180px) { .cal-months { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) {
  .cal-wrap { grid-template-columns: 1fr; gap: 28px; }
  .cal-clock { position: static; width: min(220px, 60vw); margin-inline: auto; }
}
@media (max-width: 640px) { .cal-months { grid-template-columns: repeat(2, 1fr); gap: 14px 12px; } .cal-m { padding: 10px 8px 8px; } .cal-d { font-size: 11.5px; padding: 5px 0; } }
@media (max-width: 400px) { .cal-months { grid-template-columns: 1fr; } }

/* calendar: year in the month titles, year switcher, date on the clock face */
.ac-date { font: 700 12.5px var(--sans); fill: var(--ink-3); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.cal-y { font-family: var(--sans); font-weight: 600; font-size: .78em; color: var(--muted-2); margin-left: 3px; }
.cal-bar { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 18px; }
.cal-nav {
  width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line-2); background: #fff; color: var(--ink);
  display: grid; place-items: center; transition: background .15s, border-color .15s;
}
.cal-nav:hover { background: var(--oak-soft); border-color: var(--oak); }
#cal-prev svg { transform: rotate(90deg); }
#cal-next svg { transform: rotate(-90deg); }
.cal-year {
  width: 5.2ch; min-width: 90px; text-align: center; font-family: var(--serif); font-weight: 600; font-size: 26px; color: var(--ink);
  background: transparent; border-bottom: 2px solid var(--line-2); padding: 2px 4px; -moz-appearance: textfield; appearance: textfield;
}
.cal-year::-webkit-outer-spin-button, .cal-year::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cal-year:focus { outline: none; border-bottom-color: var(--oak-2); }
.cal-now { padding: 9px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; font-size: 13.5px; margin-left: 6px; }
.cal-now:hover { background: var(--oak-3); }

/* ── Service photo viewer: big photo in a tall panel on the right; the cards squeeze left and stay clickable ── */
:root { --svcm-w: min(46vw, 660px); }
.svc-card { cursor: pointer; }
.svc-card.is-active { outline: 3px solid var(--oak); outline-offset: 4px; }
.svcm {
  position: fixed; z-index: 85; display: flex; flex-direction: column; background: #fff; border-radius: 18px; padding: 14px;
  box-shadow: 0 18px 50px rgba(23,17,13,.3), 0 0 0 1px var(--line);
  top: calc(var(--hdr-h) + 14px); right: 16px; bottom: 16px; width: var(--svcm-w);
  transform: translateX(calc(100% + 30px)); visibility: hidden; transition: transform .38s var(--out), visibility 0s .38s;
}
.svcm.is-open { transform: none; visibility: visible; transition: transform .38s var(--out); }
.svcm-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.svcm-title { font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.5rem); }
.svcm-desc { color: var(--muted); font-size: 14px; margin-top: 3px; }
.svcm-x {
  flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--sand); display: grid; place-items: center;
  color: var(--ink); transition: background .15s;
}
.svcm-x:hover { background: var(--oak-soft); }
.svcm-stage { position: relative; flex: 1 1 auto; min-height: 0; background: #1b130d; border-radius: 12px; overflow: hidden; }
.svcm-big { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.svcm-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--ink); display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0,0,0,.3);
  transition: background .15s, transform .15s;
}
.svcm-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.svcm-prev { left: 12px; }
.svcm-next { right: 12px; }
.svcm-count { position: absolute; bottom: 12px; right: 14px; padding: 4px 11px; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.svcm-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; flex: none; scrollbar-width: thin; }
.svcm-thumbs button {
  flex: 0 0 auto; width: 88px; height: 60px; border-radius: 9px; overflow: hidden; border: 2px solid transparent; opacity: .6;
  transition: opacity .15s, border-color .15s;
}
.svcm-thumbs button:hover { opacity: .9; }
.svcm-thumbs button.is-on { opacity: 1; border-color: var(--oak); }
.svcm-thumbs img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 1000px) {
  body.svcm-open #usluge > .wrap { width: calc(100% - var(--svcm-w) - 48px); margin-left: 16px; margin-right: 0; }
  body.svcm-open #usluge .svc-card .svc-title { font-size: 14.5px; }
  body.svcm-open #usluge .svc-body { padding: 12px; }
}
@media (max-width: 999px) {
  .svcm { top: auto; left: 0; right: 0; bottom: 0; width: 100%; height: min(78vh, 640px); border-radius: 18px 18px 0 0; padding: 12px; transform: translateY(105%); }
  .svcm.is-open { transform: none; }
  body.svcm-open { padding-bottom: calc(var(--svcm-h, 0px) + 14px); }
}
@media (max-width: 780px) {
  .svcm { bottom: var(--mbar-h); height: min(74vh, 600px); }
  body.svcm-open { padding-bottom: calc(var(--svcm-h, 0px) + var(--mbar-h) + 14px); }
  .svcm-thumbs button { width: 72px; height: 50px; }
  .svcm-arrow { width: 42px; height: 42px; }
}

/* video slide in the service viewer */
.svcm-stage.is-video .svcm-big { cursor: default; filter: brightness(.5) blur(2px); object-fit: cover; }
.svcm-video { position: absolute; inset: 0; display: grid; place-items: center; }
.svcm-video[hidden] { display: none; }
.svcm-play {
  display: grid; justify-items: center; gap: 8px; color: #fff; font-weight: 700; font-size: 15px; z-index: 2;
}
.svcm-play svg { width: 72px; height: 72px; padding: 18px 14px 18px 22px; border-radius: 50%; background: var(--oak-2); box-shadow: 0 10px 30px rgba(0,0,0,.4); transition: transform .15s, background .15s; }
.svcm-play:hover svg { transform: scale(1.08); background: var(--oak-3); }
.svcm-frame { position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); height: 100%; border: 0; background: #000; z-index: 2; }
.svcm-fb { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); z-index: 3; padding: 6px 14px; border-radius: 999px; background: rgba(0,0,0,.65); color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; }
.svcm-fb:hover { background: rgba(0,0,0,.85); }
.svcm-thumbs button { position: relative; }
.svcm-tplay { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.35); color: #fff; }
.svcm-tplay svg { width: 22px; height: 22px; }
.svcm-stage.is-video .svcm-arrow { z-index: 4; }

/* map legend: one swatch per 20 km ring */
.map-legend {
  display: flex; flex-wrap: wrap; gap: 4px 12px; max-width: min(430px, 70vw); padding: 8px 11px; border-radius: 10px;
  background: rgba(255,255,255,.94); box-shadow: 0 2px 10px rgba(0,0,0,.25); font: 600 11.5px var(--sans); color: var(--ink-3);
}
.map-legend span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.map-legend i { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.25); flex: none; }

/* long text in buttons (the e-mail address) must wrap or shrink instead of running off a phone screen */
.finalcta-btns, .hero-actions { min-width: 0; max-width: 100%; }
.finalcta-btns .btn, .hero-actions .btn { max-width: 100%; min-width: 0; white-space: normal; text-align: center; overflow-wrap: anywhere; line-height: 1.25; }
.finalcta-btns .btn span, .hero-actions .btn span { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .finalcta-btns { width: 100%; flex-direction: column; }
  .finalcta-btns .btn { width: 100%; font-size: 15px; padding: 14px 16px; }
  .hero-actions .btn { width: 100%; }
}
.ftr-legal a, .ftr-legal p, .ftr-base { overflow-wrap: anywhere; }
.ftr .logo-txt { align-items: flex-start; }

/* ── calendar on tablets and phones: clock stays on the left, like on a monitor ── */
.cal-date { display: none; }
.cal-main { min-width: 0; }
@media (max-width: 900px) {
  .cal-wrap { grid-template-columns: minmax(0, 150px) minmax(0, 1fr); gap: 18px; align-items: start; }
  .cal-clock { position: sticky; top: calc(var(--hdr-h) + 12px); width: auto; margin: 0; }
}
/* phones: all 12 months at once (3 x 4), miniature, clock beside them */
@media (max-width: 700px) {
  .sect-cal .wrap { width: calc(100% - 12px); }
  .cal-wrap { grid-template-columns: clamp(58px, 19vw, 120px) minmax(0, 1fr); gap: 5px; }
  .ac-date { display: none; }
  .cal-date { display: block; margin-top: 6px; text-align: center; font-weight: 700; font-size: clamp(9px, 2.8vw, 13px); color: var(--ink-3); font-variant-numeric: tabular-nums; }
  .cal-months { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
  .cal-months .cal-m { padding: 4px 2px 3px; border-radius: 7px; min-width: 0; }
  .cal-mname { font-size: clamp(8px, 2.5vw, 13px); margin: 0 0 2px; text-align: center; white-space: nowrap; letter-spacing: -.01em; }
  .cal-y { margin-left: 1px; }
  .cal-grid { gap: 0; }
  .cal-wd { font-size: clamp(5.5px, 1.75vw, 9px); padding-bottom: 1px; letter-spacing: -.03em; overflow: hidden; }
  .cal-d { font-size: clamp(7px, 2.2vw, 11px); padding: 2px 0; border-radius: 3px; letter-spacing: -.03em; }
  .cal-d.is-today { outline-width: 1px; outline-offset: 0; }
  .cal-d.is-today.is-off { box-shadow: 0 0 0 1px #fff, 0 0 0 2px var(--oak-2); }
  .cal-bar { gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
  .cal-bar .cal-nav { width: 34px; height: 34px; }
  .cal-year { font-size: 20px; min-width: 66px; width: 66px; }
  .cal-now { padding: 7px 14px; font-size: 12.5px; margin-left: 0; }
  .cal-legend { margin-top: 10px; gap: 6px 12px; font-size: 12px; }
}

/* long headline words (Kompromisszumok) must fit the narrowest phones */
.hero-copy { min-width: 0; }
.hero-title { overflow-wrap: break-word; }
@media (max-width: 380px) { .hero-title { font-size: 1.75rem; } }

/* hero: headline and paragraph share one style - the big white serif */
.hero-title, .hero-sub {
  font-family: var(--serif); font-weight: 600; font-size: clamp(2.1rem, 5vw, 3.5rem); line-height: 1.08;
  letter-spacing: -.01em; color: #fff; max-width: none;
}
.hero-title em { color: inherit; }
.hero-sub { overflow-wrap: break-word; }
/* beside the hero picture the text is a size smaller, so the houses are not cropped */
@media (min-width: 981px) { .hero-title, .hero-sub { font-size: clamp(1.7rem, 2.5vw, 3rem); } }
@media (max-width: 380px) { .hero-title, .hero-sub { font-size: 1.75rem; } }

/* ── FAQ: a drifting field of question marks behind the questions ── */
.sect-faq { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(180deg, var(--bone), var(--sand) 55%, var(--bone)); }
.sect-faq > .wrap-narrow { position: relative; z-index: 1; }
.faq-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; user-select: none; }
/* each mark sits just outside the bottom-left corner; one full-size layer carries it
   right and a second carries it up, so it crosses to the top-right and starts again */
.faq-bg .qx, .faq-bg .qy { position: absolute; inset: 0; display: block; font-style: normal; will-change: transform; }
.faq-bg .qx { animation: qright var(--d) linear var(--dx) infinite; }
.faq-bg .qy { animation: qup var(--d) linear var(--dy) infinite; }
.faq-bg span {
  position: absolute; left: -100px; top: 100%; font-family: var(--serif); font-weight: 700; line-height: 1;
  transform: rotate(var(--r));
}
@keyframes qright { from { transform: translateX(0); } to { transform: translateX(calc(100% + 130px)); } }
@keyframes qup { from { transform: translateY(0); } to { transform: translateY(calc(-100% - 110px)); } }
@media (prefers-reduced-motion: reduce) {
  .faq-bg .qx, .faq-bg .qy { animation: none; }
  .faq-bg span { left: var(--x); top: var(--y); }
}
.faq-bg .q-a { color: var(--oak); opacity: .26; }
.faq-bg .q-b { color: var(--ink); opacity: .08; }
.faq-bg .q-c { color: transparent; -webkit-text-stroke: 1.5px var(--oak-2); opacity: .5; }
.sect-faq .faq-i { box-shadow: var(--sh-2); }
.faq-i.is-open .faq-a { max-height: 320px; }
@media (max-width: 700px) { .faq-bg .qx:nth-child(2n) { display: none; } }

/* ── service cards: a notch cut from the bottom-right corner, with each service's own animation in it ──
   (the notch is painted in the page colour, so the card has no drop shadow that would outline it) */
.svc-card { container-type: inline-size; box-shadow: none; --nw: 44%; --nh: 78px; --nr: 16px; }
.svc-card:hover, .svc-card:focus-within { box-shadow: none; }
.svc-fx {
  position: absolute; right: -1px; bottom: -1px; width: var(--nw); height: var(--nh); z-index: 3;
  background: var(--bone); border-top-left-radius: var(--nr); pointer-events: none;
}
/* the two inward curves where the notch meets the card's right and bottom edges */
.svc-fx::before, .svc-fx::after {
  content: ''; position: absolute; width: var(--nr); height: var(--nr);
  background: radial-gradient(circle at 0 0, transparent calc(var(--nr) - .5px), var(--bone) var(--nr));
}
.svc-fx::before { right: 1px; bottom: 100%; }
.svc-fx::after { bottom: 1px; right: 100%; }
.svc-fx canvas { position: absolute; inset: 4px 2px 3px 5px; width: calc(100% - 7px); height: calc(100% - 7px); display: block; }
.svc-card.no-fx .svc-fx { display: none; }

/* narrow cards: text sits above the notch */
.svc-body { padding-bottom: calc(var(--nh) + 8px); }
/* wide cards: text stays at the bottom, left of the notch */
@container (min-width: 320px) {
  .svc-body { padding-bottom: 18px; }
  .svc-body .svc-title, .svc-body .svc-desc { max-width: calc(52cqw - 24px); }
  .svc-fx { height: 124px; width: 48%; }
}
@container (max-width: 200px) {
  .svc-fx { width: 54%; height: 62px; --nr: 12px; }
  .svc-body { padding: 12px 12px 68px; }
}
.svc-title { overflow-wrap: break-word; }

/* ── story film ── */
.story { margin: 0 auto; max-width: 1040px; border-radius: 18px; overflow: hidden; background: #1a1009; box-shadow: 0 24px 60px rgba(23,17,13,.3); }
.story-screen { position: relative; aspect-ratio: 16 / 9; cursor: pointer; }
.story canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.story-big {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 86px; height: 86px; border-radius: 50%; background: rgba(162,102,31,.94);
  display: grid; place-items: center; box-shadow: 0 12px 34px rgba(0,0,0,.35); transition: opacity .25s, transform .15s;
}
.story-big svg { width: 40px; height: 40px; fill: #fff; margin-left: 5px; }
.story-big:hover { transform: scale(1.07); }
.story.is-playing .story-big { opacity: 0; pointer-events: none; }
.story-controls { display: flex; align-items: center; gap: 12px; padding: 8px 14px; color: #fff; }
.story-controls button { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 8px; color: #fff; }
.story-controls button:hover { background: rgba(255,255,255,.12); }
.story-controls svg { width: 22px; height: 22px; fill: currentColor; }
.story .i-pause, .story.is-playing .i-play { display: none; }
.story.is-playing .i-pause { display: block; }
.story-bar { flex: 1; height: 28px; display: flex; align-items: center; cursor: pointer; touch-action: none; }
.story-bar span { display: block; width: 100%; height: 6px; border-radius: 3px; background: rgba(255,255,255,.25); overflow: hidden; }
.story-fill { display: block; height: 100%; width: 0; background: var(--oak); }
.story-time { font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* full screen: the picture takes whatever is left, the controls always keep their full height */
.story:fullscreen { width: 100%; height: 100%; max-width: none; margin: 0; border-radius: 0; display: flex; flex-direction: column; background: #1a1009; transform: none; }
.story:fullscreen .story-screen { flex: 1 1 0; min-height: 0; aspect-ratio: auto; }
.story:fullscreen .story-controls { flex: none; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); padding-left: calc(14px + env(safe-area-inset-left, 0px)); padding-right: calc(14px + env(safe-area-inset-right, 0px)); }
.comic-cta { display: flex; justify-content: center; margin-top: 30px; }
@media (max-width: 600px) { .story-screen { aspect-ratio: 4 / 3; } .story-controls { gap: 8px; padding: 6px 8px; } .comic-cta .btn { width: 100%; white-space: normal; text-align: center; } }
