/* TrepiAbi – shared stylesheet.
   v2 after design review: Fraunces display + Inter body (self-hosted),
   hairline borders instead of shadows, one warm dark, editorial rhythm. */

/* ---------- Fonts (self-hosted, GDPR-safe; latin + latin-ext for õäöüšž) ---------- */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/fraunces-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/fraunces-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #191713;
  --muted: #655e54;
  --line: #ded8cf;
  --line-strong: #c9c0b2;
  --paper: #fbfaf7;
  --soft: #f1eee8;
  --wood: #8b5e35;
  --wood-dark: #5f3d21;
  --sand: #dfc19d;
  --dark: #211d18;
  --white: #ffffff;
  --shadow: 0 1px 2px rgba(25, 23, 19, .05);
  --radius: 6px;
  --wrap: min(1180px, calc(100% - 36px));
  font-family: Inter, ui-sans-serif, system-ui, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-family: Inter, ui-sans-serif, system-ui, "Segoe UI", sans-serif;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

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

h1, h2, h3, p, figure { margin: 0; }
h1, h2 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 520;
  letter-spacing: -0.01em;
}
h3 { font-weight: 700; }

/* In-text links must be visible */
.prose a, .faq p a, .lead a, .small a, .form-note a, .post a, .seo-card p a, .next-steps a, .contact-list a {
  color: var(--wood-dark);
  text-decoration: underline;
  text-decoration-color: rgba(139, 94, 53, .4);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.prose a:hover, .faq p a:hover, .lead a:hover, .post a:hover, .contact-list a:hover { text-decoration-color: currentColor; }
.text-link { color: var(--wood-dark); font-weight: 700; text-decoration: underline; text-decoration-color: rgba(139,94,53,.4); text-underline-offset: 3px; }
.text-link:hover { text-decoration-color: currentColor; }

/* ---------- Layout helpers ---------- */
.topbar-inner, .nav, .section-inner { width: var(--wrap); margin: 0 auto; }

.sr-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-link { position: absolute; left: -9999px; top: 0; background: var(--wood); color: #fff; padding: 10px 16px; z-index: 60; }
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Topbar ---------- */
.topbar { background: var(--dark); color: rgba(255, 255, 255, .88); font-size: 13px; }
.topbar-inner { display: flex; justify-content: space-between; gap: 18px; padding: 8px 0; flex-wrap: wrap; }
.topbar a { text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(255,255,255,.35); }
.topbar a:hover { text-decoration-color: currentColor; }

/* ---------- Nav ---------- */
.nav-wrap {
  position: sticky; top: 0; z-index: 30;
  background: rgba(251, 250, 247, .95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.nav { height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 22px; letter-spacing: 0; }
.brand img { height: 40px; width: auto; display: block; }
.footer .brand img { filter: brightness(0) invert(1); opacity: .9; height: 34px; }
@media (max-width: 620px) { .brand img { height: 32px; } }
.nav-links { display: flex; gap: 22px; align-items: center; color: var(--muted); font-size: 14px; }
.nav-links a {
  padding-bottom: 2px;
  background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat;
  transition: background-size .25s ease, color .18s ease;
}
.nav-links a:hover { color: var(--ink); background-size: 100% 1px; }
.nav-links a[aria-current="page"] { color: var(--wood-dark); font-weight: 700; background-size: 100% 1px; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-actions .btn { white-space: nowrap; }
.nav-phone { font-size: 14px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.nav-phone:hover { color: var(--wood-dark); }
.lang-switch { display: inline-flex; gap: 5px; align-items: center; font-size: 13px; color: var(--muted); }
.lang-switch a { color: var(--ink); }
.lang-switch a:hover { text-decoration: underline; }
.lang-switch .active { font-weight: 800; color: var(--ink); }
.nav-toggle { display: none; }
@media (max-width: 1150px) { .nav-phone span { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 9px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font-weight: 700; font-size: 14px;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.btn:hover { border-color: var(--wood); color: var(--wood-dark); }
.btn.primary { border-color: var(--wood); background: var(--wood); color: var(--white); }
.btn.primary:hover { background: var(--wood-dark); border-color: var(--wood-dark); color: #fff; }
.btn.on-dark { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.btn.on-dark:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }

/* ---------- Hero (home) ---------- */
.hero { display: grid; position: relative; overflow: hidden; background: var(--dark); }
.hero-media { position: absolute; inset: 0; opacity: .78; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8) sepia(.1) contrast(1.08) brightness(.85); }
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(23,19,15,.9), rgba(23,19,15,.55) 46%, rgba(23,19,15,.15)),
    linear-gradient(0deg, rgba(23,19,15,.88), rgba(23,19,15,0) 55%);
}
.hero .section-inner { position: relative; z-index: 1; padding: 110px 0 70px; }
.eyebrow {
  color: var(--sand);
  font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em;
  margin: 0 0 14px;
}
.eyebrow::before {
  content: ""; display: inline-block; width: 26px; height: 1px;
  background: currentColor; opacity: .5; margin-right: 10px; vertical-align: middle;
}
h1 { color: var(--white); font-size: clamp(42px, 6vw, 76px); line-height: .98; margin-bottom: 22px; max-width: 20ch; }
.hero-copy { max-width: 62ch; color: rgba(255, 255, 255, .88); font-size: 19px; margin-bottom: 28px; }
.hero-actions, .cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* Frameless stat strip along the hero's bottom edge */
.hero-stats {
  position: relative; z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, .25);
  color: #fff;
}
.hero-stats .section-inner { display: grid; grid-template-columns: repeat(4, 1fr); padding: 0; }
.hero-stats .metric { padding: 18px 20px 22px; border-right: 1px solid rgba(255, 255, 255, .16); }
.hero-stats .metric:last-child { border-right: 0; }
.hero-stats .metric strong { display: block; font-family: 'Fraunces', Georgia, serif; font-weight: 500; font-size: 26px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.hero-stats .metric span { color: rgba(255, 255, 255, .65); font-size: 13px; }

/* ---------- Page hero (sub-pages) ---------- */
.page-hero { background: var(--dark); color: #fff; padding: 30px 0 46px; }
.page-hero h1 { color: #fff; font-size: clamp(32px, 4.6vw, 54px); max-width: 22ch; margin: 10px 0 16px; }
.page-hero .lead { color: rgba(255, 255, 255, .8); font-size: 18px; max-width: 62ch; margin-bottom: 24px; }

.breadcrumb { font-size: 13px; color: rgba(255, 255, 255, .72); padding-top: 6px; }
.breadcrumb a { text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(255,255,255,.4); }
.breadcrumb span { margin: 0 8px; opacity: .6; }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
section.compact { padding: 56px 0; }
section.dark { background: var(--dark); color: var(--white); }
section.soft { background: var(--soft); }
.dark .lead { color: rgba(255, 255, 255, .72); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(280px, .5fr);
  gap: 38px; align-items: end; margin-bottom: 38px;
}
h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.05; }
.lead { color: var(--muted); font-size: 17px; }

/* ---------- Prose ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, .7fr); gap: 40px; align-items: start; }
.prose { max-width: 68ch; }
.prose h2 { font-size: clamp(26px, 3vw, 34px); margin: 40px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: #3d382f; font-size: 17px; margin-bottom: 16px; }
.prose ul { color: #3d382f; font-size: 17px; padding-left: 20px; margin: 0 0 18px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--ink); }

.sidebar {
  position: sticky; top: 92px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(25, 23, 19, .08);
  padding: 22px;
}
.sidebar h3 { font-size: 19px; margin-bottom: 8px; }
.sidebar p { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.sidebar .btn { width: 100%; margin-bottom: 8px; }

/* ---------- Cards (hairline language) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card, .project-card, .quote-card, .related-card, .post {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: none;
}
.service-card { padding: 24px; min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; transition: border-color .18s ease; }
.service-card:hover, .related-card:hover { border-color: var(--line-strong); transform: none; box-shadow: none; }
.service-card h3, .project-card h3, .quote-card h3, .related-card h3 { font-size: 20px; line-height: 1.2; margin-bottom: 10px; }
.service-card p, .project-card p, .quote-card p, .related-card p, .small { color: var(--muted); font-size: 14px; }
.more { color: var(--wood-dark); font-weight: 700; font-size: 14px; margin-top: 16px; display: inline-block; }
.more:hover { text-decoration: underline; text-underline-offset: 3px; }

.tag-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.tag { padding: 4px 9px; background: var(--soft); color: var(--wood-dark); border: 1px solid var(--line); border-radius: 3px; font-size: 12px; font-weight: 700; }

/* ---------- Projects ---------- */
.project-grid { display: grid; grid-template-columns: 1.35fr .9fr .9fr; gap: 18px; }
.project-card { overflow: hidden; }
.project-card.featured { grid-row: span 2; }
.project-card .image { aspect-ratio: 4 / 3; background: #d8d0c5; overflow: hidden; }
.project-card .image img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) sepia(.06) contrast(1.05); transition: transform .5s ease; }
.project-card:hover .image img { transform: scale(1.04); }
.project-card.featured .image { aspect-ratio: 4 / 5; }
.project-card .body { padding: 20px; }

.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.related-card { padding: 22px; display: block; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid rgba(255, 255, 255, .2); border-radius: var(--radius); overflow: hidden; }
.step { padding: 24px; border-right: 1px solid rgba(255, 255, 255, .2); min-height: 220px; }
.step:last-child { border-right: 0; }
.step .num { font-family: 'Fraunces', Georgia, serif; font-weight: 300; font-size: 44px; color: var(--sand); margin-bottom: 30px; font-variant-numeric: tabular-nums; }
.step p { color: rgba(255, 255, 255, .72); }

/* ---------- Quote form ---------- */
.quote-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 24px; align-items: start; }
.quote-card { padding: 26px; }
.quote-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.quote-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.quote-form input, .quote-form textarea, .quote-form select {
  border: 1px solid var(--line-strong);
  background: var(--paper);
  border-radius: var(--radius);
  min-height: 46px; padding: 11px 12px;
  font: inherit; color: var(--ink);
}
.quote-form input:focus, .quote-form textarea:focus, .quote-form select:focus { border-color: var(--wood); outline: none; }
.quote-form textarea { min-height: 110px; resize: vertical; }
.quote-form .wide { grid-column: 1 / -1; }
.quote-form button { grid-column: 1 / -1; }
.form-note { font-size: 12px; color: var(--muted); grid-column: 1 / -1; }
.form-error { color: #8c2f2f; font-size: 13px; font-weight: 700; grid-column: 1 / -1; }

.quote-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }
.quote-thumbs img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 4px; filter: saturate(.85) sepia(.06) contrast(1.05); }

.next-steps { list-style: none; counter-reset: ns; padding: 0; margin: 18px 0 0; }
.next-steps li { counter-increment: ns; padding: 10px 0 10px 40px; position: relative; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
.next-steps li::before {
  content: counter(ns, decimal-leading-zero);
  position: absolute; left: 0; top: 10px;
  font-family: 'Fraunces', Georgia, serif; color: var(--wood); font-size: 15px; font-variant-numeric: tabular-nums;
}

/* ---------- "Why us" – numbered editorial list (no cards) ---------- */
.seo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; counter-reset: why; }
.seo-card { background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 22px 0 26px; box-shadow: none; }
.seo-card::before {
  counter-increment: why;
  content: counter(why, decimal-leading-zero);
  font-family: 'Fraunces', Georgia, serif;
  font-size: 15px; color: var(--wood);
  display: block; margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}
.seo-card h3 { font-size: 20px; margin-bottom: 8px; }
.seo-card p { color: var(--muted); font-size: 15px; }
.seo-card ul { margin: 12px 0 0; padding-left: 18px; color: var(--muted); font-size: 14px; }

/* ---------- Stair type cards ---------- */
.type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.type-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .18s ease;
}
.type-card:hover { border-color: var(--line-strong); }
.type-card .diagram { aspect-ratio: 4 / 3; background: #efe7dc; display: grid; place-items: center; padding: 14px; }
.type-card .diagram img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.type-card .diagram.photo { padding: 0; }
.type-card .diagram.photo img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: normal; filter: saturate(.85) sepia(.06) contrast(1.05); }
.type-card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.type-card h3 { font-size: 18px; }
.type-card p { color: var(--muted); font-size: 14px; flex: 1; }

/* ---------- Category cards (home) – two equal tiles ---------- */
.cat-grid { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 340px; gap: 16px; }
.cat-card { position: relative; overflow: hidden; border-radius: 4px; display: flex; align-items: flex-end; color: #fff; min-height: 0; }
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform .5s ease; filter: saturate(.85) sepia(.06) contrast(1.05); }
.cat-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(23,19,15,.85), rgba(23,19,15,.12) 65%); z-index: 1; }
.cat-card:hover img { transform: scale(1.04); }
.cat-card .cat-body { position: relative; z-index: 2; padding: 22px; }
.cat-card h3 { color: #fff; font-size: 23px; margin-bottom: 6px; }
.cat-card p { color: rgba(255, 255, 255, .85); font-size: 14px; margin: 0 0 10px; }
.cat-card .more { color: #fff; margin-top: 0; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery a, .gallery figure { display: block; position: relative; }
.gallery a[hidden] { display: none; }
.gallery a { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; background: #d8d0c5; cursor: zoom-in; }
.gallery a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(25, 23, 19, .1); pointer-events: none; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; filter: saturate(.85) sepia(.06) contrast(1.05); }
.gallery a:hover img { transform: scale(1.05); }
.gallery-cat { font-family: 'Fraunces', Georgia, serif; font-weight: 500; font-size: 24px; margin: 40px 0 16px; }
.gallery-cat:first-of-type { margin-top: 0; }

/* Home "Tehtud tööd" – static 3-up grid, no scrolling */
.gallery.featured { grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery figure { margin: 0; }
.gallery figcaption { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding-top: 8px; }

/* ---------- Gallery filter chips ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip {
  border: 1px solid var(--line-strong);
  background: var(--white);
  color: var(--ink);
  border-radius: 999px;
  padding: 9px 16px;
  font: inherit; font-size: 14px; font-weight: 700;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.chip:hover { border-color: var(--wood); color: var(--wood-dark); }
.chip[aria-pressed="true"] { background: var(--wood); border-color: var(--wood); color: #fff; }
.chip[hidden] { display: none; }

/* ---------- Honeypot (spam trap – invisible to humans) ---------- */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* ---------- Cookie consent ---------- */
.consent {
  position: fixed; left: 16px; bottom: 16px; z-index: 65;
  max-width: 380px;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(25, 23, 19, .2);
  padding: 18px;
}
.consent p { font-size: 14px; color: #3d382f; margin-bottom: 14px; }
.consent-row { display: flex; gap: 10px; }
.consent-link { display: inline-block; margin-top: 12px; font-size: 13px; color: var(--muted); text-decoration: underline; }
.consent-link:hover { color: var(--wood-dark); }
@media (max-width: 940px) { .consent { left: 10px; right: 10px; bottom: 66px; max-width: none; } }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(23, 19, 15, .92);
  display: grid; place-items: center;
  padding: 4vh 4vw;
  cursor: zoom-out;
}
.lightbox img { max-width: 100%; max-height: 88vh; object-fit: contain; border-radius: 4px; }
.lightbox .lb-caption { position: absolute; left: 0; right: 0; bottom: 3vh; text-align: center; color: rgba(255,255,255,.8); font-size: 13px; letter-spacing: .05em; }
.lightbox .lb-close { position: absolute; top: 16px; right: 20px; background: none; border: 0; color: #fff; font-size: 30px; cursor: pointer; line-height: 1; }

/* ---------- Testimonials (only for real, attributable reviews) ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.review-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.review-card p { color: #3d382f; font-size: 15px; }
.review-card .who { margin-top: 14px; font-weight: 700; font-size: 14px; color: var(--ink); }
.stars { color: var(--wood); letter-spacing: 2px; margin-bottom: 10px; }

/* ---------- FAQ – hairline rows ---------- */
.faq { max-width: 820px; }
.faq details { border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; padding: 4px 0; margin: 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 700; font-size: 18px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--wood); font-weight: 400; font-family: 'Fraunces', Georgia, serif; font-size: 22px; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding: 0 0 18px; margin: 0; max-width: 68ch; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--wood); color: #fff; }
.cta-band .section-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .85); margin: 6px 0 0; }
.cta-band .btn { border-color: rgba(255,255,255,.9); background: #fff; color: var(--wood-dark); }
.cta-band .btn:hover { background: var(--paper); }
.cta-band .btn.on-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }

/* Mid-page CTA row */
.mid-cta { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; margin-top: 34px; }
.mid-cta p { font-size: 17px; font-weight: 600; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
.contact-list strong { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 4px; font-weight: 800; }
.map-holder { aspect-ratio: 4 / 3; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--soft); display: grid; place-items: center; color: var(--muted); font-size: 14px; text-align: center; padding: 20px; }
.badge-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; background: var(--white); border: 1px solid var(--line); border-radius: 3px; font-size: 13px; font-weight: 700; }

/* ---------- Advice / blog ---------- */
.post-list { display: grid; gap: 16px; max-width: 860px; }
.post { padding: 24px; }
.post time { font-size: 13px; color: var(--muted); font-weight: 700; }
.post h2 { margin: 6px 0 10px; font-size: 22px; font-family: inherit; font-weight: 700; letter-spacing: 0; }
.post p { color: #3d382f; margin: 0 0 6px; }

/* ---------- Admin ---------- */
.notice { border: 1px solid #d8c9a3; background: #f7f0dd; color: #6a5620; border-radius: var(--radius); padding: 14px 16px; font-size: 14px; margin-bottom: 22px; }
.admin-wrap { max-width: 760px; }
.admin-tabs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 22px; }
.admin-tab {
  border: 1px solid var(--line-strong); background: var(--paper); color: var(--muted);
  border-radius: var(--radius); padding: 9px 16px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
}
.admin-tab:hover { color: var(--ink); border-color: var(--wood); }
.admin-tab[aria-selected="true"] { background: var(--wood); border-color: var(--wood); color: #fff; }
.tab-badge { display: inline-block; min-width: 20px; padding: 1px 6px; margin-left: 4px; border-radius: 10px; background: #b3541e; color: #fff; font-size: 12px; text-align: center; }
.admin-tab[aria-selected="true"] .tab-badge { background: rgba(255,255,255,.25); }
@media (max-width: 620px) { .admin-tabs { gap: 6px; } .admin-tab { padding: 8px 12px; font-size: 13px; } }

.admin-list { display: grid; gap: 12px; margin-top: 20px; }
.admin-item {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
  display: grid; grid-template-columns: 104px 1fr; gap: 14px; padding: 10px 12px; align-items: start;
}
.admin-item img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; border-radius: 4px; background: var(--soft); }
.admin-item .fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; min-width: 0; }
.admin-item .fields > label:nth-child(3), .admin-item .fields > .row { grid-column: 1 / -1; }
@media (max-width: 700px) { .admin-item .fields { grid-template-columns: 1fr; } }
.admin-item label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; color: var(--muted); }
.admin-item input, .admin-item select {
  border: 1px solid var(--line-strong); background: var(--paper); border-radius: 4px;
  padding: 7px 9px; font: inherit; font-size: 13px; color: var(--ink); width: 100%;
}
.admin-item input:focus, .admin-item select:focus { border-color: var(--wood); outline: none; }
.admin-item .row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.admin-item .row .grow { flex: 1 1 160px; }
.admin-item button { border: 1px solid var(--line-strong); background: var(--paper); border-radius: 4px; padding: 6px 11px; cursor: pointer; font-size: 12px; font-weight: 700; color: var(--ink); }
.admin-item button:hover { background: var(--soft); }
.admin-item button.save { background: var(--wood); border-color: var(--wood); color: #fff; }
.admin-item button.save:hover { background: var(--wood-dark); border-color: var(--wood-dark); }
.admin-item button.del:hover { background: #f3e2e2; border-color: #d9b6b6; }
.admin-item .note { font-size: 12px; color: var(--muted); }
.admin-item .note.ok { color: #3d6b3d; font-weight: 700; }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: rgba(255, 255, 255, .82); padding: 48px 0 34px; }
.footer .section-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 28px; }
.footer h3 { color: #fff; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 14px; }
.footer a { display: block; padding: 4px 0; color: rgba(255, 255, 255, .82); font-size: 14px; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer .brand { color: #fff; margin-bottom: 12px; }
.footer .brand-mark { color: var(--sand); }
.footer address { font-style: normal; }
.footer .footer-note { display: block; padding: 4px 0; font-size: 12px; color: rgba(255, 255, 255, .55); }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 30px; padding-top: 18px; font-size: 12px; color: rgba(255, 255, 255, .55); font-variant-numeric: tabular-nums; }

/* ---------- Sticky mobile call bar ---------- */
.mobile-bar { display: none; }
@media (max-width: 940px) {
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: var(--line-strong);
    border-top: 1px solid var(--line-strong);
  }
  .mobile-bar a {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 54px; font-weight: 700; font-size: 15px;
    background: var(--paper); color: var(--ink);
  }
  .mobile-bar a.call { background: var(--dark); color: #fff; }
  .mobile-bar a.quote { background: var(--wood); color: #fff; }
  body { padding-bottom: 55px; }
}

/* ---------- Scroll entrance (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .seo-card, .type-card, .gallery a, .cat-card, .service-card, .related-card {
      animation: rise both;
      animation-timeline: view();
      animation-range: entry 0% entry 35%;
    }
    @keyframes rise { from { opacity: 0; transform: translateY(14px); } }
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .nav-links { display: none; }
  .nav-phone span { display: none; }
  .hero .section-inner, .section-head, .quote-layout, .split { grid-template-columns: 1fr; }
  .cards, .project-grid, .related-grid, .reviews { grid-template-columns: 1fr 1fr; }
  .type-grid { grid-template-columns: 1fr 1fr; }
  .seo-grid { grid-template-columns: 1fr; }
  .hero-stats .section-inner { grid-template-columns: 1fr 1fr; }
  .hero-stats .metric:nth-child(2n) { border-right: 0; }
  .hero-stats .metric { border-bottom: 1px solid rgba(255,255,255,.16); }
  .cat-grid { grid-template-columns: 1fr; grid-auto-rows: 230px; }
  .project-card.featured { grid-row: auto; }
  .sidebar { position: static; }
  .footer .section-inner { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }

  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border: 1px solid var(--line-strong); border-radius: var(--radius);
    background: var(--white); cursor: pointer;
  }
  .nav-toggle span { position: relative; display: block; width: 20px; height: 2px; background: var(--ink); }
  .nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--ink); }
  .nav-toggle span::before { top: -6px; }
  .nav-toggle span::after { top: 6px; }
  .nav { position: relative; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 6px 0; box-shadow: 0 14px 30px rgba(25, 23, 19, .12);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 18px; font-size: 16px; background: none; }
  .nav-links a[aria-current="page"] { background: var(--soft); }
}

@media (max-width: 620px) {
  :root { --wrap: min(100% - 24px, 1180px); }
  .hero .section-inner { padding: 70px 0 40px; }
  /* the same info and actions live in the footer and the bottom bar – no need to spend hero space on them */
  .topbar { display: none; }
  .nav-actions .btn.primary { display: none; }
  .trust-grid, .cards, .project-grid, .process, .quote-form, .related-grid, .reviews, .type-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery.featured { grid-template-columns: 1fr; }
  .hero-stats .section-inner { grid-template-columns: 1fr 1fr; }
  .metric, .step { border-right: 0; }
  .step { border-bottom: 1px solid rgba(255, 255, 255, .2); }
  .nav { height: 64px; }
  section { padding: 56px 0; }
  .footer .section-inner { grid-template-columns: 1fr; }
  .quote-thumbs { grid-template-columns: 1fr 1fr; }
  .admin-item { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
