/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: 'Jost'; font-style: normal; font-weight: 300 600; font-display: swap;
  src: url('fonts/jost-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Jost'; font-style: normal; font-weight: 300 600; font-display: swap;
  src: url('fonts/jost-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: 'Mrs Saint Delafield'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/delafield-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}

:root {
  --ink: #2b2a28;
  --ink-soft: #55524c;
  --paper: #faf8f5;
  --paper-alt: #f1ece4;
  --line: #e2dcd2;
  --wood: #9a5a34;
  --wood-dark: #6e3f22;
  --radius: 2px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 68px; }
body {
  margin: 0;
  font-family: 'Jost', 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Type ---------- */
h1, h2, h3 {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.15; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.15rem; font-weight: 500; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  color: var(--wood);
  margin: 0 0 14px;
}
.center { text-align: center; }
.section-lead { color: var(--ink-soft); max-width: 560px; }
.section-lead.center { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: all 0.2s ease;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--wood-dark); border-color: var(--wood-dark); }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-call {
  border: none;
  padding: 10px 0;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: none;
  color: var(--wood-dark);
  font-weight: 500;
}
.btn-call:hover { color: var(--ink); }

/* ---------- Brand / Logo ---------- */
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark {
  width: 40px; height: 40px;
  border: 1.5px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Jost', sans-serif;
  font-size: 1.2rem;
  font-weight: 400;
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-size: 1.05rem;
  letter-spacing: 0.22em;
  font-weight: 500;
}
.brand-sub {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding-top: 14px; padding-bottom: 14px;
}
.nav { display: flex; gap: 30px; }
.nav a {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.nav a:hover { color: var(--wood-dark); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 6px;
}
.burger span { width: 22px; height: 1.5px; background: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  padding: 72px 0 88px;
}
.hero-inner { padding: 0 0 0 28px; }
.hero-lead { max-width: 460px; color: var(--ink-soft); margin: 22px 0 32px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-image { padding-right: 28px; }
.hero-image-frame {
  position: relative;
  aspect-ratio: 4 / 3.4;
  overflow: hidden;
  border-radius: 3px;
  box-shadow: 0 24px 60px -20px rgba(43, 42, 40, 0.35);
}
.hero-image-frame img {
  width: 100%; height: 100%; object-fit: cover;
}
.placeholder-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a89e8c;
}

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.services { background: var(--paper-alt); }

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  margin-top: 48px;
  border: 1px solid var(--line);
}
.card { background: var(--paper-alt); padding: 34px 26px; }
.card p { color: var(--ink-soft); font-size: 0.92rem; margin: 0; }

/* ---------- Gallery ---------- */
.gallery {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
/* 10 items in a 3-column grid leaves one orphaned in the last row —
   center it instead of leaving it stuck against the left edge */
.gallery-item:last-child:nth-child(3n + 1) {
  grid-column: 2;
}
.gallery-item {
  aspect-ratio: 4 / 3;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .placeholder-label {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.gallery-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 10px 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.55), transparent);
  color: #fff;
  font-size: 0.8rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.gallery-item:hover .gallery-caption { opacity: 1; }

/* ---------- Process ---------- */
.process { background: var(--paper); }
.steps {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.steps li { border-top: 1px solid var(--ink); padding-top: 18px; }
.step-num {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--wood);
  margin-bottom: 10px;
}
.steps p { color: var(--ink-soft); font-size: 0.92rem; margin: 0; }

/* ---------- About ---------- */
.about { background: var(--ink); color: var(--paper); }
.about h2 { color: var(--paper); }
.about-inner { display: flex; justify-content: center; }
.about-text { max-width: 620px; text-align: center; }
.about-text .eyebrow { color: #c9a37c; }
.about-text p { color: #d8d5cf; }
.signature {
  font-family: 'Mrs Saint Delafield', cursive;
  font-size: 3rem;
  color: var(--paper);
  margin: 28px 0 0;
}
.signature-role {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #9a9488;
  margin-top: 4px;
}

/* ---------- Contact ---------- */
.contact-inner { text-align: center; display: flex; justify-content: center; }
.contact-inner > div { max-width: 520px; }
.contact-list {
  list-style: none;
  margin: 28px 0 34px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-list li {
  display: flex;
  justify-content: center;
  gap: 12px;
  font-size: 1.05rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}
.contact-label {
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
  align-self: center;
}
.contact-list a:hover { color: var(--wood-dark); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger.is-visible {
  transition-delay: calc(var(--reveal-index, 0) * 70ms);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .hero-image { padding: 0 28px; order: -1; }
  .hero-inner { padding: 0 28px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav { display: none; }
  .burger { display: flex; }
  .btn-call { display: none; }
  .site-header.open .nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 20px 28px 26px;
    gap: 18px;
  }
}

@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .hero { padding-bottom: 60px; }
}

/* ---------- Offer wizard ---------- */
[hidden] { display: none !important; }

.offer { background: var(--paper-alt); }
.wizard {
  max-width: 780px;
  margin: 44px auto 0;
  padding: 34px;
  background: var(--paper);
  border: 1px solid var(--line);
  scroll-margin-top: 12px;
}
.wizard-count {
  margin: 0 0 10px;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.wizard-bar { height: 2px; background: var(--line); margin-bottom: 30px; }
.wizard-bar span {
  display: block;
  height: 100%;
  width: 10%;
  background: var(--wood);
  transition: width 0.3s ease;
}

.ostep { border: 0; padding: 0; margin: 0; min-width: 0; }
.ostep legend {
  padding: 0;
  margin-bottom: 20px;
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  font-weight: 300;
  letter-spacing: 0.01em;
}
.ostep legend:focus { outline: none; }
.ostep-hint { margin: -8px 0 18px; color: var(--ink-soft); font-size: 0.92rem; }
.ostep-error { margin: 16px 0 0; color: #9b2c1f; font-size: 0.92rem; }

.opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.opts-3 { grid-template-columns: repeat(3, 1fr); }
.opt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  background: var(--paper);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.opt:hover { border-color: var(--ink-soft); }
.opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.opt .mark {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--ink-soft);
  border-radius: 50%;
}
.opt.check .mark { border-radius: 2px; }
.opt svg { flex-shrink: 0; width: 46px; height: 30px; color: var(--ink-soft); }
.opt.is-selected { border-color: var(--ink); background: var(--paper-alt); }
.opt.is-selected .mark {
  border-color: var(--wood);
  background: var(--wood);
  box-shadow: inset 0 0 0 3px var(--paper-alt);
}
.opt.is-selected svg { color: var(--ink); }
.opt:focus-within { outline: 2px solid var(--wood); outline-offset: 2px; }

.sizes-title { margin: 26px 0 12px; font-size: 0.85rem; color: var(--ink-soft); }
.sizes { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.contact-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 12px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 0.78rem; letter-spacing: 0.06em; color: var(--ink-soft); }
.field-wide { margin-top: 12px; }
.field input,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.field textarea { resize: vertical; }
.field input:focus,
.field textarea:focus { outline: 2px solid var(--wood); outline-offset: 1px; border-color: var(--wood); }

.wizard-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.wizard-actions #wizardNext { margin-left: auto; }
button.btn { font-family: inherit; cursor: pointer; background: transparent; color: var(--ink); }
button.btn.btn-primary { background: var(--ink); color: var(--paper); }
button.btn.btn-primary:hover { background: var(--wood-dark); border-color: var(--wood-dark); }
button.btn.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn:focus-visible,
.link-btn:focus-visible,
.quickbar a:focus-visible,
.nav a:focus-visible { outline: 2px solid var(--wood); outline-offset: 3px; }

.wizard-result h3 { font-size: 1.5rem; font-weight: 300; margin-bottom: 8px; }
.wizard-result h3:focus { outline: none; }
.result-note { margin: 0 0 18px; color: var(--ink-soft); font-size: 0.92rem; }
.summary {
  white-space: pre-wrap;
  margin: 0 0 22px;
  padding: 20px;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  font-size: 0.98rem;
  line-height: 1.7;
}
.result-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.result-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.link-btn {
  min-height: 44px;
  padding: 0;
  font: inherit;
  font-size: 0.9rem;
  color: var(--wood-dark);
  background: none;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* quick contact bar — phones only */
.quickbar { display: none; }

@media (max-width: 720px) {
  .wizard { padding: 22px 18px; margin-top: 32px; }
  .opts,
  .opts-3 { grid-template-columns: 1fr; }
  .contact-fields { grid-template-columns: 1fr; }
  .sizes { grid-template-columns: repeat(2, 1fr); }
  .wizard-actions .btn,
  .result-actions .btn { flex: 1 1 auto; text-align: center; }

  .quickbar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    background: var(--ink);
  }
  .quickbar a {
    padding: 15px 8px;
    text-align: center;
    color: var(--paper);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-left: 1px solid rgba(250, 248, 245, 0.18);
  }
  .quickbar a:first-child { border-left: 0; }
  body { padding-bottom: 52px; }
}

/* mobile drawer: full-height tap targets */
@media (max-width: 720px) {
  .site-header.open .nav { gap: 0; padding-top: 8px; padding-bottom: 14px; }
  .site-header.open .nav a { display: block; padding: 13px 0; }
}

/* ---------- Lightbox ---------- */
.gallery-item:focus-visible { outline: 2px solid var(--wood); outline-offset: 3px; }
body:has(dialog.lightbox[open]) { overflow: hidden; }
.lightbox {
  width: 100vw; height: 100vh; height: 100dvh;
  max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(20, 19, 18, 0.95);
  color: #fff;
}
.lightbox::backdrop { background: rgba(20, 19, 18, 0.95); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox figure {
  margin: 0; padding: 60px 12px 18px;
  max-width: 100%; max-height: 100%;
  display: flex; flex-direction: column; align-items: center;
}
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); max-height: calc(100dvh - 140px); object-fit: contain; }
.lightbox figcaption { margin-top: 12px; padding: 0 16px; font-size: 0.9rem; color: #d8d5cf; text-align: center; }
.lb-btn {
  position: absolute; z-index: 2;
  width: 48px; height: 48px;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff; font-size: 30px; line-height: 1;
  cursor: pointer;
}
.lb-btn:hover { background: rgba(255, 255, 255, 0.26); }
.lb-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lb-close { top: 10px; right: 10px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }

/* phones: keep the main button on the first screen */
@media (max-width: 720px) {
  .hero { gap: 28px; padding-top: 28px; padding-bottom: 56px; }
  .hero-image-frame { aspect-ratio: 16 / 10; }
}

@media (max-width: 560px) {
  .contact-actions { flex-direction: column; }
  .contact-actions .btn { width: 100%; text-align: center; }
}

/* ---------- Price estimate ---------- */
.wizard-estimate {
  margin: 14px 0 0;
  font-size: 0.92rem;
  color: var(--wood-dark);
}
.wizard-bar { margin-bottom: 16px; }
.estimate-box {
  margin: 0 0 22px;
  padding: 20px 22px;
  background: var(--paper);
  border: 1px solid var(--wood);
}
.estimate-label {
  margin: 0 0 6px;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--wood);
}
.estimate-value { margin: 0; font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 300; line-height: 1.2; }
.estimate-note { margin: 8px 0 0; font-size: 0.88rem; color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq { background: var(--paper); }
.faq-list { max-width: 780px; margin: 40px auto 0; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  position: relative;
  display: block;
  min-height: 56px;
  padding: 16px 44px 16px 0;
  font-size: 1.05rem;
  font-weight: 400;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--wood);
}
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list summary:focus-visible { outline: 2px solid var(--wood); outline-offset: 2px; }
.faq-list details p { margin: 0 0 20px; padding-right: 44px; color: var(--ink-soft); max-width: 65ch; }
.faq-list details p a { color: var(--wood-dark); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) { .faq-list details p { padding-right: 0; } }

.contact .section-lead { margin-left: auto; margin-right: auto; }

/* small brand logos in the contact list */
.contact-list li { align-items: center; }
.ci {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.ci svg { width: 16px; height: 16px; }
a.ci:hover { transform: scale(1.08); box-shadow: 0 6px 14px -6px rgba(43, 42, 40, 0.5); }
a.ci:focus-visible { outline: 2px solid var(--wood); outline-offset: 3px; }
.ci-call { background: var(--ink); }
.ci-wa { background: #25d366; }
.ci-viber { background: #7360f2; }
.ci-fb { background: #1877f2; }
.ci-none { visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .ci { transition: none; } a.ci:hover { transform: none; } }

/* one phone line: number + call / WhatsApp / Viber icons */
.contact-phone {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 22px;
  margin: 30px 0 26px;
}
.contact-number { font-size: 1.4rem; font-weight: 400; letter-spacing: 0.02em; }
.contact-number:hover { color: var(--wood-dark); }
.contact-apps { display: inline-flex; gap: 10px; }
.contact-apps .ci { width: 44px; height: 44px; }
.contact-apps .ci svg { width: 20px; height: 20px; }

/* phones: keep number + 3 icons on ONE line */
@media (max-width: 480px) {
  .contact-phone { flex-wrap: nowrap; gap: 10px; }
  .contact-number { font-size: 1.12rem; white-space: nowrap; }
  .contact-apps { gap: 6px; }
  .contact-apps .ci { width: 42px; height: 42px; }
  .contact-apps .ci svg { width: 19px; height: 19px; }
}
