/* ==========================================================
   Ταπετσαρίες Μιχόπουλος — "Εργαστήριο" theme
   Warm linen ground, walnut ink, oxblood accent, serif display.
   ========================================================== */

:root {
  --ink: #2b211b;          /* walnut, headings + body on light */
  --text: #3f342c;
  --muted: #67564a;        /* 5.6:1 on --bg */
  --bg: #f3ede3;           /* linen */
  --paper: #fbf8f2;        /* cards, header */
  --line: #dccfbd;
  --stitch: #b49c7c;       /* dashed "stitch" dividers */
  --brass: #a8803f;        /* decorative only, never body text */
  --accent: #7b2d26;       /* oxblood */
  --accent-dark: #5a1f1a;
  --dark: #2b211b;
  --on-dark: #ede3d3;

  --serif: "Piazzolla", Georgia, "Times New Roman", serif;
  --sans: "Alegreya Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 12px;
  --shadow: 0 14px 30px -16px rgba(43, 33, 27, .45);
  --wrap: 1200px;
  --header-h: 82px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 400 18px/1.6 var(--sans); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); font-weight: 600; line-height: 1.1; letter-spacing: -.015em; margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
section[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }
.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: fixed; left: 12px; top: -60px; z-index: 3000; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 999px; font-weight: 700; text-decoration: none; transition: top .15s; }
.skip-link:focus { top: 12px; color: #fff; }

.eyebrow { display: block; font-size: 15px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; font-weight: 500; }
.eyebrow.muted { color: var(--muted); }
.stitch { border: 0; border-top: 2px dashed var(--stitch); margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1.5px solid transparent;
  font: 700 17px/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--accent); color: var(--paper); }
.btn-primary:hover { background: var(--accent-dark); color: var(--paper); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #000; color: var(--paper); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: #fff; color: var(--ink); }
.btn-outline-light { border-color: var(--paper); color: var(--paper); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); color: var(--paper); }
.btn-sm { min-height: 46px; padding: 0 20px; font-size: 16px; }
.text-link { font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* ---------- Top bar ---------- */
.topbar { background: var(--dark); color: var(--on-dark); font-size: 14.5px; }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 24px; min-height: 38px; }
.topbar a { color: var(--on-dark); text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.open-status { display: inline-flex; align-items: center; gap: 8px; }
.open-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #7fb685; flex-shrink: 0; }
.open-status.is-closed::before { background: #c9786f; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 1000; background: var(--paper); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.site-header.scrolled { box-shadow: 0 8px 22px -14px rgba(43, 33, 27, .35); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand-deer { height: 62px; width: auto; }
.brand-word { height: 62px; width: auto; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { position: relative; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 17px; padding: 8px 0; }
.nav a:hover, .nav a.active, .nav a[aria-current="page"] { color: var(--accent); }
.nav a.active::after, .nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; border-top: 2px dashed var(--accent); }

.nav-toggle { display: none; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 18px; cursor: pointer; align-items: center; justify-content: center; }
.mobile-panel { display: none; position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 999; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px 24px 24px; }
.mobile-panel.open { display: block; }
.mobile-panel nav a { display: block; padding: 14px 0; border-bottom: 1px dashed var(--line); text-decoration: none; font-family: var(--serif); font-size: 20px; color: var(--ink); }
.mobile-panel nav a[aria-current="page"] { color: var(--accent); }
.mobile-panel .btn { width: 100%; margin-top: 18px; }

/* ---------- Hero ---------- */
.hero { padding-block: 72px 56px; }
.hero .wrap { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.4vw, 72px); line-height: 1.04; letter-spacing: -.02em; margin-bottom: 24px; }
.hero h1 em { font-style: italic; font-weight: 500; color: var(--accent); }
.hero-lead { font-size: 20px; color: var(--text); max-width: 34em; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { font-size: 15.5px; color: var(--muted); margin: 18px 0 0; }
.hero-media { position: relative; }
/* Frame matches the photo (1280×1229) so nothing is cropped; the top is a true
   semicircle that echoes the round niche in the photo. */
.hero-media .photo-slot { aspect-ratio: 1280 / 1229; border-radius: 50% 50% var(--radius) var(--radius) / 52% 52% var(--radius) var(--radius); }
.hero-media .photo-slot > img { object-position: center; }
.hero-tag { position: absolute; left: -14px; bottom: 36px; background: var(--paper); border: 1.5px dashed var(--stitch); border-radius: 10px; padding: 12px 18px; box-shadow: var(--shadow); }
.hero-tag strong { display: block; font-family: var(--serif); font-weight: 600; font-size: 18px; color: var(--ink); }
.hero-tag span { font-size: 14.5px; color: var(--muted); }

/* ---------- Photo slots (stock photography) ----------
   The textured panel shows until the photo in images/stock/ exists,
   so a missing file never shows a broken-image icon. */
.photo-slot { position: relative; overflow: hidden; border-radius: var(--radius);
  background-color: #4a3a2f;
  background-image:
    url("images/logo/deer-light.webp"),
    radial-gradient(120% 90% at 20% 10%, rgba(255, 240, 220, .18), rgba(0, 0, 0, .35)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 3px);
  background-repeat: no-repeat, no-repeat, repeat, repeat;
  background-position: center, center, 0 0, 0 0;
  background-size: auto 38%, cover, auto, auto;
}
.photo-slot > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-slot.is-empty > img { display: none; }

/* ---------- Facts strip ---------- */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; padding: 28px 0; border-top: 2px dashed var(--stitch); border-bottom: 2px dashed var(--stitch); }
.fact b { display: block; font-family: var(--serif); font-weight: 600; font-size: 34px; line-height: 1.05; color: var(--ink); }
.fact span { color: var(--muted); font-size: 16px; }

/* ---------- Sections ---------- */
.section { padding-block: 96px; }
.section-paper { background: var(--paper); border-block: 1px solid var(--line); }
.section-dark { background: var(--dark); color: var(--on-dark); }
.section-dark h2, .section-dark h3 { color: var(--paper); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 40px; margin-bottom: 40px; }
.section-head > div { max-width: 660px; }
.section-head h2, .h2 { font-size: clamp(32px, 3.8vw, 48px); }
.section-head p { margin: 14px 0 0; color: var(--muted); }
.section-head > p { max-width: 26em; margin: 0; }

/* Services: numbered list */
.services { display: grid; grid-template-columns: 1fr; column-gap: 56px; list-style: none; margin: 0; padding: 0; }
.services li { display: flex; gap: 22px; align-items: baseline; padding: 24px 0; border-top: 1px solid var(--line); }
.services .num { font-family: var(--serif); font-size: 34px; line-height: 1; color: var(--brass); width: 48px; flex-shrink: 0; }
.services h3 { font-size: 24px; margin-bottom: 4px; }
.services p { margin: 0; color: var(--muted); font-size: 16.5px; line-height: 1.5; }

/* Split blocks (works teaser, workshop, fabrics) */
.split { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
.split .photo-slot.wide { aspect-ratio: 16 / 10; }
.split .photo-slot.landscape { aspect-ratio: 4 / 3; }
.split p { color: var(--muted); }
.split .lead { font-size: 20px; color: var(--ink); }
.teaser-deer { height: 64px; width: auto; margin-bottom: 18px; }

.workshop-photos { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; }
.workshop-photos .tall { aspect-ratio: 3 / 4; }
.workshop-photos .stack { display: flex; flex-direction: column; gap: 14px; justify-content: flex-end; }
.workshop-photos .stack .photo-slot { aspect-ratio: 1; }

.checklist { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 14px; align-items: baseline; color: var(--ink); font-weight: 500; }
.checklist li::before { content: "✕"; font-family: var(--serif); color: var(--brass); }

/* Process: tailor's tags */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 24px; counter-reset: step; }
.steps li { position: relative; background: var(--bg); color: var(--ink); border-radius: var(--radius); padding: 32px 28px 28px; border: 2px dashed var(--stitch); outline: 6px solid var(--bg); counter-increment: step; }
.steps li::before { content: counter(step); display: block; font-family: var(--serif); font-weight: 600; font-size: 52px; line-height: 1; color: var(--accent); margin-bottom: 14px; }
.steps li::after { content: ""; position: absolute; top: 18px; right: 20px; width: 16px; height: 16px; border-radius: 50%; background: var(--dark); }
.steps h3 { font-size: 24px; margin-bottom: 6px; color: var(--ink) !important; }
.steps p { margin: 0; color: var(--muted); font-size: 16.5px; }

/* Fabrics */
.swatches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.swatch i { display: block; aspect-ratio: 1; border-radius: 10px; }
.swatch b { display: block; margin-top: 8px; font-size: 16px; color: var(--ink); }
.velvet { background-image: radial-gradient(120% 90% at 30% 20%, rgba(255, 255, 255, .22), rgba(0, 0, 0, .25)); }
.linen { background-image: repeating-linear-gradient(0deg, rgba(0, 0, 0, .05) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(0, 0, 0, .05) 0 1px, transparent 1px 3px); }

/* Reviews */
.reviews { display: grid; grid-template-columns: 1fr; gap: 40px; padding-top: 56px; border-top: 2px dashed var(--stitch); }
.review { margin: 0; }
.review blockquote { margin: 0 0 14px; font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1.35; color: var(--ink); }
.review figcaption { color: var(--muted); font-size: 16px; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
.faq-side p { color: var(--muted); margin: 14px 0 24px; }
.faq-list { display: grid; gap: 0; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-family: var(--serif); font-weight: 600; font-size: 21px; color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--sans); font-size: 26px; line-height: 1; color: var(--accent); transition: transform .2s; flex-shrink: 0; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 0 20px; color: var(--muted); }
.faq-answer p { margin: 0; }

/* Contact band */
.contact-band { position: relative; overflow: hidden; background: var(--accent); color: var(--paper); }
.contact-band .deer-mark { position: absolute; right: -40px; top: -30px; height: 460px; width: auto; opacity: .12; pointer-events: none; }
.contact-band .wrap { position: relative; display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; padding-block: 80px; }
.contact-band h2 { color: var(--paper); font-size: clamp(34px, 4vw, 54px); line-height: 1.08; margin-bottom: 16px; }
.contact-band p { font-size: 19px; color: #f3e6e2; margin-bottom: 28px; }
.contact-card { background: var(--paper); color: var(--ink); border-radius: 14px; padding: 28px; font-size: 17px; }
.contact-card h3 { font-size: 22px; margin-bottom: 12px; }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { border-top: 1px solid var(--line); padding: 10px 0; text-align: left; font-weight: 400; }
.hours td { text-align: right; font-weight: 700; }
.contact-card .open-status { margin-top: 10px; font-size: 15.5px; color: var(--muted); }

/* Map + quick cards (contact page) */
.map { border-radius: 14px; overflow: hidden; min-height: 380px; background: var(--paper); border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
.quick-cards { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 48px; }
.quick-card { display: flex; gap: 16px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 22px; text-decoration: none; color: var(--ink); }
a.quick-card:hover { border-color: var(--ink); color: var(--ink); }
.quick-card i { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); color: var(--accent); flex-shrink: 0; }
.quick-card small { display: block; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.quick-card b { display: block; font-family: var(--serif); font-weight: 600; font-size: 19px; line-height: 1.3; }
.quick-card .hint { font-size: 15px; color: var(--accent); }
.info-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 16px; }
.info-list small { display: block; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.info-list b { font-weight: 500; }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }

/* ---------- Inner page banner ---------- */
.page-banner { position: relative; overflow: hidden; background: var(--dark); color: var(--on-dark); }
.page-banner .deer-mark { position: absolute; right: 4%; top: 50%; height: 380px; width: auto; transform: translateY(-50%); opacity: .14; pointer-events: none; }
.page-banner .wrap { position: relative; padding-block: 80px 72px; }
.page-banner h1 { color: var(--paper); font-size: clamp(42px, 6vw, 80px); line-height: 1.02; margin-bottom: 18px; }
.page-banner p { font-size: 20px; max-width: 36em; margin: 0; color: #e2d6c4; }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; font-size: 15px; letter-spacing: .16em; text-transform: uppercase; color: #cdba9e; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; }
.breadcrumb a { color: #cdba9e; text-decoration: none; }
.breadcrumb a:hover { color: var(--paper); }

/* ---------- Works gallery ---------- */
.gallery-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 28px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { min-height: 44px; padding: 0 18px; border-radius: 999px; cursor: pointer; font: 600 15.5px/1 var(--sans); background: var(--paper); color: var(--ink); border: 1.5px solid var(--line); transition: background-color .2s, color .2s, border-color .2s; }
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.gallery-count { color: var(--muted); font-size: 16px; }
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.gallery li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.gallery button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; text-align: left; font: inherit; color: inherit; }
.gallery .g-img { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--line); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery button:hover img { transform: scale(1.04); }
.gallery .g-cap { display: block; padding: 14px 16px 16px; }
.gallery .g-cap b { display: block; font-family: var(--serif); font-weight: 600; font-size: 19px; line-height: 1.25; color: var(--ink); }
.gallery .g-cap span { color: var(--muted); font-size: 15px; }

/* Lightbox */
.lightbox { border: 0; padding: 0; max-width: none; max-height: none; width: 100vw; height: 100vh; background: transparent; }
.lightbox::backdrop { background: rgba(20, 15, 12, .92); }
.lightbox-inner { position: relative; width: 100%; height: 100%; display: grid; place-items: center; padding: 64px 72px; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; max-height: 100%; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 160px); object-fit: contain; border-radius: 6px; }
.lightbox figcaption { color: var(--on-dark); font-family: var(--serif); font-size: 18px; text-align: center; }
.lb-btn { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); color: #fff; font-size: 20px; cursor: pointer; display: grid; place-items: center; }
.lb-btn:hover { background: rgba(255, 255, 255, .18); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* Before / after */
.ba { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--dark); --pos: 50%; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba .ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--paper); pointer-events: none; }
.ba-knob { position: absolute; top: 50%; left: var(--pos); width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; background: var(--paper); color: var(--ink); display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); pointer-events: none; }
.ba-label { position: absolute; top: 16px; background: rgba(43, 33, 27, .8); color: var(--paper); font-size: 13px; letter-spacing: .14em; padding: 6px 12px; border-radius: 999px; pointer-events: none; }
.ba-label.l { left: 16px; } .ba-label.r { right: 16px; }
.ba-range { width: 100%; height: 44px; margin-top: 6px; accent-color: var(--accent); cursor: ew-resize; }
.ba-help { display: block; font-size: 14.5px; color: var(--muted); margin-top: 10px; }

/* CTA row */
.cta-row { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: center; }
.cta-row .cta-text { display: flex; align-items: center; gap: 24px; flex: 1 1 520px; }
.cta-row .cta-text img { height: 96px; width: auto; flex-shrink: 0; }
.cta-row h2 { font-size: clamp(28px, 3.2vw, 40px); margin-bottom: 8px; }
.cta-row p { margin: 0; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #cfc2af; font-size: 16px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 36px; padding-block: 56px 40px; }
.footer-brand { display: inline-flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.footer-brand img:first-child { height: 56px; width: auto; }
.footer-brand img:last-child { height: 48px; width: auto; }
.site-footer h3 { font-family: var(--sans); font-size: 14px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--paper); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #cfc2af; text-decoration: none; }
.site-footer a:hover { color: var(--paper); text-decoration: underline; }
.footer-hours li { display: flex; justify-content: space-between; gap: 16px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 20px; border-top: 1px dashed rgba(207, 194, 175, .3); font-size: 14.5px; }

/* ---------- Mobile quick actions ---------- */
.mobile-bar { display: none; }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 64px 24px; }
.notfound img { height: 140px; width: auto; margin: 0 auto 20px; }
.notfound h1 { font-size: clamp(34px, 4vw, 52px); margin-bottom: 14px; }
.notfound p { color: var(--muted); max-width: 32em; margin: 0 auto 28px; }
.notfound .hero-actions { justify-content: center; }

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .quick-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: 1.05fr 1fr; gap: 64px; }
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .split.reverse > :first-child { order: 2; }
  .services { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .reviews { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .faq-grid { grid-template-columns: 1fr 1.5fr; gap: 64px; }
  .contact-band .wrap { grid-template-columns: 1.4fr 1fr; gap: 56px; }
  .contact-grid { grid-template-columns: 1fr 1.2fr; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.1fr; }
  .quick-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1059.98px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 760px) {
  :root { --header-h: 70px; }
  body { font-size: 17px; padding-bottom: 76px; }
  .topbar .hide-sm { display: none; }
  .brand-deer { height: 48px; }
  .brand-word { height: 48px; }
  .section { padding-block: 72px; }
  .hero { padding-block: 48px 40px; }
  .hero-tag { position: relative; left: auto; bottom: auto; display: inline-block; margin: -26px 0 0 16px; }
  .contact-band .deer-mark { height: 300px; }
  .page-banner .deer-mark { height: 220px; right: -30px; }
  .cta-row .cta-text img { height: 64px; }
  .lightbox-inner { padding: 64px 12px; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1001; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -8px 20px -14px rgba(43, 33, 27, .4); }
  .mobile-bar .btn { min-height: 50px; padding: 0 12px; font-size: 16px; }
}
@media (max-width: 420px) {
  .wrap { padding-inline: 16px; }
  .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workshop-photos { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* ==========================================================
   Effects — subtle, craft-like motion. Everything is visible
   without JS; the hidden starting states only apply when
   <html class="js"> is set and motion is allowed.
   ========================================================== */
@media (prefers-reduced-motion: no-preference) {
  /* Scroll reveal */
  .js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0ms); }
  .js .reveal.in { opacity: 1; transform: none; }

  /* Hero: photo settles in, tag slides across */
  .js .hero-media .photo-slot > img { transform: scale(1.08); transition: transform 1.8s cubic-bezier(.2, .7, .2, 1); }
  .js .hero-media.in .photo-slot > img { transform: scale(1); }
  .js .hero-tag { opacity: 0; transform: translateX(-18px); transition: opacity .7s ease .7s, transform .7s cubic-bezier(.2, .7, .2, 1) .7s; }
  .js .hero-media.in .hero-tag { opacity: 1; transform: none; }
  .hero h1 em { background: linear-gradient(currentColor, currentColor) left 92% / 0 2px no-repeat; transition: background-size 1.2s cubic-bezier(.2, .7, .2, 1) .5s; }
  .js .in h1 em, .js h1.in em { background-size: 100% 2px; }

  /* Stitch lines draw themselves across */
  .js .facts { border-color: transparent; position: relative; }
  .js .facts::before, .js .facts::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: repeating-linear-gradient(90deg, var(--stitch) 0 7px, transparent 7px 13px); transform: scaleX(0); transform-origin: left; transition: transform 1.6s cubic-bezier(.6, .1, .2, 1); }
  .js .facts::before { top: -2px; }
  .js .facts::after { bottom: -2px; transform-origin: right; transition-delay: .25s; }
  .js .facts.in::before, .js .facts.in::after { transform: scaleX(1); }
  .js .reviews { border-top-color: transparent; position: relative; }
  .js .reviews::before { content: ""; position: absolute; top: -2px; left: 0; right: 0; height: 2px; background: repeating-linear-gradient(90deg, var(--stitch) 0 7px, transparent 7px 13px); transform: scaleX(0); transform-origin: left; transition: transform 1.6s cubic-bezier(.6, .1, .2, 1); }
  .js .reviews.in::before { transform: scaleX(1); }

  /* Process tags swing on their hole when they appear */
  .js .steps li.reveal.in { animation: tag-swing 1.4s cubic-bezier(.3, .6, .3, 1) both; animation-delay: var(--d, 0ms); }
  @keyframes tag-swing {
    0% { transform: rotate(-6deg) translateY(10px); }
    35% { transform: rotate(3deg); }
    60% { transform: rotate(-1.5deg); }
    80% { transform: rotate(.6deg); }
    100% { transform: none; }
  }
  .steps li { transform-origin: calc(100% - 28px) 26px; transition: transform .4s ease; }
  .steps li:hover { transform: rotate(-1.5deg); }

  /* Services: row nudges, number takes the accent */
  .services li { transition: padding-left .3s ease, background-color .3s; }
  .services li:hover { padding-left: 10px; }
  .services .num { transition: color .3s; }
  .services li:hover .num { color: var(--accent); }

  /* Photos and cards */
  .photo-slot > img { transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
  .split .photo-slot:hover > img, .workshop-photos .photo-slot:hover > img { transform: scale(1.05); }
  .gallery li { transition: transform .35s ease, box-shadow .35s ease; }
  .gallery li:hover { transform: translateY(-6px); box-shadow: 0 22px 34px -22px rgba(43, 33, 27, .55); }
  .swatch i { transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s; }
  .swatch:hover i { transform: translateY(-6px) rotate(-2deg); box-shadow: 0 16px 24px -14px rgba(43, 33, 27, .6); }
  .quick-card { transition: transform .3s ease, border-color .2s; }
  a.quick-card:hover { transform: translateY(-4px); }

  /* Buttons lift */
  .btn { transition: background-color .2s, color .2s, border-color .2s, transform .2s ease, box-shadow .2s ease; }
  .btn:hover { transform: translateY(-2px); box-shadow: 0 10px 20px -12px rgba(43, 33, 27, .6); }
  .btn:active { transform: none; box-shadow: none; }

  /* Header shrinks on scroll */
  .brand-deer, .brand-word, .header-inner { transition: height .3s ease; }
  .site-header.scrolled .header-inner { height: 68px; }
  .site-header.scrolled .brand-deer, .site-header.scrolled .brand-word { height: 50px; }

  /* Deer watermarks drift (JS sets --py) */
  .deer-mark { translate: 0 var(--py, 0); will-change: translate; }

  /* FAQ answer fades in */
  .faq-item[open] .faq-answer { animation: faq-in .4s ease; }
  @keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

  /* Lightbox image fades */
  .lightbox[open] img { animation: faq-in .35s ease; }
}

/* ---------- Google review call-to-action ---------- */
.review-cta { margin-top: 56px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; background: var(--paper); border: 2px dashed var(--stitch); outline: 8px solid var(--paper); border-radius: 16px; padding: 36px 40px; box-shadow: var(--shadow); }
.review-cta-text { flex: 1 1 420px; }
.review-cta .stars { display: block; font-size: 26px; letter-spacing: 4px; color: var(--brass); margin-bottom: 8px; line-height: 1; }
.review-cta h2 { font-size: clamp(28px, 3vw, 38px); margin-bottom: 8px; }
.review-cta p { margin: 0; color: var(--muted); font-size: 18px; }
.btn-review { min-height: 58px; font-size: 18px; padding: 0 30px; }
.btn-review i { font-size: 20px; }

/* ---------- Instagram ---------- */
.insta-band { margin-top: 40px; display: flex; align-items: center; gap: 18px; padding: 22px 26px; border-radius: 14px; background: var(--dark); color: var(--on-dark); text-decoration: none; transition: background-color .2s; }
.insta-band:hover { background: #000; color: var(--paper); }
.insta-band > i { font-size: 34px; color: var(--paper); }
.insta-band b { display: block; font-family: var(--serif); font-weight: 600; font-size: 22px; color: var(--paper); }
.insta-band span span { font-size: 16px; }
.insta-band .insta-arrow { margin-left: auto; font-size: 26px; transition: transform .2s; }
.insta-band:hover .insta-arrow { transform: translateX(6px); }
.footer-social { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 18px; }
.footer-social a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid rgba(207, 194, 175, .4); border-radius: 999px; color: var(--paper) !important; text-decoration: none !important; }
.footer-social a:hover { border-color: var(--paper); }
.footer-social i { font-size: 18px; }
.quick-card b { overflow-wrap: anywhere; }
.quick-card-review b { color: var(--brass); letter-spacing: 2px; }
@media (min-width: 900px) { .quick-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .review-cta { padding: 28px 22px; } .btn-review { width: 100%; } }

/* ---------- New furniture (standout block) ---------- */
.new-furniture { position: relative; overflow: hidden; margin-top: 56px; display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; background: var(--dark); color: var(--on-dark); border-radius: 18px; padding: 44px 48px; }
.new-furniture .nf-deer { position: absolute; right: 24px; top: 50%; height: 300px; width: auto; transform: translateY(-50%); opacity: .08; pointer-events: none; }
.nf-text { position: relative; flex: 1 1 460px; }
.nf-badge { display: inline-block; background: var(--brass); color: var(--dark); font-weight: 700; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; padding: 7px 14px; border-radius: 999px; margin-bottom: 16px; }
.new-furniture h2 { color: var(--paper); font-size: clamp(30px, 3.4vw, 44px); margin-bottom: 12px; }
.new-furniture p { margin: 0; font-size: 19px; color: var(--on-dark); max-width: 36em; }
.nf-actions { position: relative; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-new { display: inline-flex; align-items: center; gap: 14px; margin: -8px 0 28px; padding: 7px 20px 7px 7px; background: var(--paper); border: 1.5px dashed var(--stitch); border-radius: 999px; text-decoration: none; color: var(--ink); box-shadow: 0 10px 22px -18px rgba(43, 33, 27, .6); transition: border-color .25s, transform .25s, box-shadow .25s; }
.hero-new:hover { color: var(--ink); border-color: var(--accent); border-style: solid; transform: translateY(-2px); box-shadow: 0 16px 26px -18px rgba(43, 33, 27, .7); }
.hn-icon { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--paper); font-size: 18px; }
.hn-text { display: flex; flex-direction: column; line-height: 1.25; }
.hn-text b { font-family: var(--serif); font-weight: 600; font-size: 19px; color: var(--ink); }
.hn-text span { font-size: 14.5px; color: var(--muted); }
.hn-arrow { color: var(--accent); margin-left: 6px; transition: transform .25s; }
.hero-new:hover .hn-arrow { transform: translateX(5px); }
@media (prefers-reduced-motion: no-preference) {
  .hn-icon { animation: hn-pulse 2.8s ease-in-out 1.6s 2; }
  @keyframes hn-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(123, 45, 38, .35); } 50% { box-shadow: 0 0 0 9px rgba(123, 45, 38, 0); } }
}
@media (max-width: 760px) { .new-furniture { padding: 32px 22px; } .nf-actions .btn { flex: 1 1 auto; } }
.fact .fun { font-style: italic; font-weight: 500; font-size: .5em; color: var(--accent); white-space: nowrap; vertical-align: middle; }

/* ---------- Viber fallback dialog ---------- */
.viber-fallback { width: min(440px, calc(100vw - 32px)); border: 0; border-radius: 18px; padding: 32px 28px 28px; background: var(--paper); color: var(--text); box-shadow: 0 30px 60px -20px rgba(43, 33, 27, .6); }
.viber-fallback::backdrop { background: rgba(43, 33, 27, .55); }
.viber-fallback h2 { font-size: 28px; margin-bottom: 8px; }
.viber-fallback p { color: var(--muted); margin-bottom: 20px; }
.vf-actions { display: grid; gap: 10px; }
.vf-actions .btn { width: 100%; white-space: normal; text-align: center; }
.vf-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; font-size: 18px; }
.vf-close:hover { border-color: var(--ink); }
