:root {
  --ink: #1d1b19;
  --ink-2: #2b2825;
  --text: #2f2b27;
  --muted: #6b645c;
  --paper: #f6f3ee;
  --tint: #ece6dc;
  --card: #ffffff;
  --line: #e2dbcf;
  --brick: #b4452a;
  --brick-dark: #973820;
  --sand: #e8d9bc;
  --on-dark: #f3eee6;
  --on-dark-muted: #b9b0a4;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgb(29 27 25 / .06), 0 8px 24px rgb(29 27 25 / .08);
  --header-h: 68px;
  --font-body: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Unbounded", "Onest", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; color: var(--ink); }
p { margin: 0; }
ul, dl { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 20px;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff;
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

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

.muted { color: var(--muted); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 46px;
  padding: .7em 1.25em;
  border: 2px solid transparent;
  border-radius: 999px;
  font: 600 1rem/1.2 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 54px; padding-inline: 1.5em; font-size: 1.0625rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--brick); color: #fff; }
.btn-primary:hover { background: var(--brick-dark); }

.btn-ghost { border-color: rgb(255 255 255 / .55); color: #fff; }
.btn-ghost:hover { background: rgb(255 255 255 / .12); border-color: #fff; }

.btn-light { background: #fff; color: var(--ink); border-color: var(--line); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(246 243 238 / .92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark { width: 40px; height: 40px; }
.brand-text { display: grid; line-height: 1.1; }
.brand-name {
  font: 700 1.05rem/1.1 var(--font-display);
  letter-spacing: .01em;
  text-transform: uppercase;
}
.brand-name span { color: var(--brick); margin-left: .3em; }
.brand-tag { font-size: .78rem; color: var(--muted); letter-spacing: .04em; }

.site-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.site-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-2);
}
.site-nav a:hover { background: var(--tint); }

.header-call { min-height: 42px; padding-block: .55em; }

@media (max-width: 899px) {
  .site-nav { display: none; }
  .header-call { margin-left: auto; }
}
@media (max-width: 479px) {
  .brand-tag { display: none; }
  .header-call span { display: none; }
  .header-call { width: 46px; padding: 0; }
  .header-call .icon { width: 20px; height: 20px; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 60%;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgb(20 18 16 / .9) 0%, rgb(20 18 16 / .72) 45%, rgb(20 18 16 / .2) 100%),
    linear-gradient(0deg, rgb(20 18 16 / .45) 0%, transparent 40%);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  min-height: min(78vh, 720px);
  justify-content: center;
  padding-block: 72px 88px;
}

.eyebrow {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgb(255 255 255 / .12);
  border: 1px solid rgb(255 255 255 / .22);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .02em;
}

.hero h1 {
  max-width: 12em;
  color: #fff;
  font: 700 clamp(2rem, 5.4vw, 3.9rem)/1.08 var(--font-display);
  letter-spacing: -.01em;
}

.lead {
  max-width: 36em;
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: rgb(255 255 255 / .88);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 8px;
  font-size: .95rem;
  color: rgb(255 255 255 / .85);
}
.hero-meta li { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }

.open-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  font-family: var(--font-body);
  background: rgb(255 255 255 / .14);
  color: #fff;
}
.open-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9a948c;
}
.open-status.is-open::before { background: #4cc46b; box-shadow: 0 0 0 3px rgb(76 196 107 / .25); }
.open-status[hidden] { display: none; }

@media (max-width: 639px) {
  .hero::before {
    background: linear-gradient(180deg, rgb(20 18 16 / .78) 0%, rgb(20 18 16 / .7) 60%, rgb(20 18 16 / .85) 100%);
  }
  .hero-inner { min-height: 0; padding-block: 44px 64px; gap: 18px; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ---------- Facts strip ---------- */

.facts { position: relative; z-index: 2; margin-top: -44px; }
.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--line);
  box-shadow: var(--shadow);
}
.fact {
  display: flex;
  gap: 14px;
  padding: 22px;
  background: var(--card);
}
.fact-icon {
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 12px;
  background: #f6e7e1;
  color: var(--brick);
}
.fact-title { font: 600 1.05rem/1.3 var(--font-body); margin-bottom: 4px; }
.fact p { font-size: .95rem; color: var(--muted); }

@media (max-width: 1099px) {
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 639px) {
  .facts { margin-top: -28px; }
  .facts-grid { grid-template-columns: 1fr; }
  .fact { padding: 18px 20px; }
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(64px, 9vw, 104px); }
.section--tint { background: var(--tint); }
.section--dark { background: var(--ink); color: var(--on-dark); }
.section--dark h2, .section--dark h3 { color: #fff; }

.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head p:last-child { margin-top: 12px; color: var(--muted); }

.kicker {
  margin-bottom: 10px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brick);
}
.section--dark .kicker { color: #e58a6c; }

h2 {
  font: 700 clamp(1.6rem, 3.4vw, 2.4rem)/1.15 var(--font-display);
  letter-spacing: -.01em;
}

/* ---------- Products ---------- */

.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 999px) { .products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639px) { .products { grid-template-columns: 1fr; } }

.product {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}
.product-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--tint); }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product:hover .product-media img { transform: scale(1.04); }

.product-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  padding: 22px 22px 24px;
}
.product h3 { font: 600 1.2rem/1.25 var(--font-body); }
.product h3 span { color: var(--muted); font-weight: 500; }
.product-body > p { color: var(--muted); font-size: .98rem; }

.specs { display: grid; gap: 6px; margin-top: auto; padding-top: 6px; }
.specs li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: var(--paper);
  font-size: .95rem;
  color: var(--muted);
}
.specs strong { color: var(--ink); font-weight: 600; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.tags li {
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: .86rem;
  font-weight: 500;
  color: var(--ink-2);
}

.product--also { background: var(--ink); color: var(--on-dark); }
.product--also .product-body { justify-content: center; padding: 30px 28px; gap: 14px; }
.product--also h3 { color: #fff; font: 700 1.35rem/1.2 var(--font-display); }
.product--also .kicker { margin: 0; color: #e58a6c; }
.also-list { display: grid; gap: 4px; margin-block: 6px 10px; }
.also-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgb(255 255 255 / .1);
  font-size: 1.06rem;
  font-weight: 500;
}
.also-list .icon { color: #e58a6c; }
.also-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 6px;
  color: var(--on-dark-muted);
  font-size: .95rem;
}
.also-note .icon { margin-top: .15em; color: #e58a6c; }
.product--also .btn { align-self: flex-start; }

/* ---------- About ---------- */

.section--white { background: var(--card); }

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
}
.about-photo { position: relative; margin: 0; }
.about-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.about-photo figcaption { margin-top: 12px; font-size: .92rem; color: var(--muted); }
.about-badge {
  position: absolute;
  right: -22px;
  bottom: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--ink);
  box-shadow: var(--shadow);
}
.about-badge strong { font: 700 2.2rem/1 var(--font-display); color: #e58a6c; }
.about-badge span { font-size: .88rem; line-height: 1.25; color: var(--on-dark); }

.about-text { display: grid; gap: 16px; max-width: 620px; }
.about-text .kicker { margin: 0; }
.about-points { display: grid; gap: 8px; margin-block: 4px 8px; }
.about-points li { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--ink-2); }
.about-points .icon { color: var(--brick); }
.about-text .btn { justify-self: start; }

@media (max-width: 859px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 440px; }
  .about-photo img { aspect-ratio: 1 / 1; object-position: center 22%; }
  .about-badge { right: 12px; bottom: 52px; }
}

/* ---------- Gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-flow: dense;
  gap: 12px;
}
.g-item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-sm);
  aspect-ratio: 4 / 3;
  background: var(--line);
}
.g-wide { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.g-pano { grid-column: span 2; aspect-ratio: auto; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .3s; }
/* spanning tiles take their height from the grid row, not from the photo */
.g-wide img, .g-pano img { position: absolute; inset: 0; }
.g-item:hover img { transform: scale(1.05); }
.gallery[hidden] { display: none; }

@media (max-width: 759px) {
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .g-wide { grid-column: span 2; grid-row: auto; aspect-ratio: 4 / 3; }
  .g-pano { aspect-ratio: 2 / 1; }
}

.tabs {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 20px;
  padding: 4px;
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.tab {
  min-height: 42px;
  padding: 8px 20px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font: 600 .98rem var(--font-body);
  cursor: pointer;
}
.tab:hover { background: var(--paper); }
.tab[aria-selected="true"] { background: var(--ink); color: #fff; }

/* ---------- Lightbox ---------- */

.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  max-height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgb(14 13 12 / .95);
  color: #fff;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgb(14 13 12 / .95); }
.lightbox figure {
  display: grid;
  gap: 12px;
  justify-items: center;
  margin: 0;
  padding: 64px 72px 32px;
}
.lightbox img {
  max-width: 100%;
  max-height: calc(100dvh - 140px);
  border-radius: 8px;
  object-fit: contain;
}
.lightbox figcaption { max-width: 60ch; text-align: center; color: rgb(255 255 255 / .8); font-size: .95rem; }

.lb-btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / .12);
  color: #fff;
  cursor: pointer;
}
.lb-btn:hover { background: rgb(255 255 255 / .22); }
.lb-btn .icon { width: 24px; height: 24px; }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; translate: 0 -50%; }
.lb-next { right: 14px; top: 50%; translate: 0 -50%; }

@media (max-width: 639px) {
  .lightbox figure { padding: 64px 12px 96px; }
  .lb-prev, .lb-next { top: auto; bottom: 22px; translate: none; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
}

/* ---------- Calculator ---------- */

.calc {
  display: grid;
  grid-template-columns: 1fr minmax(0, 460px);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.calc-intro { display: grid; gap: 14px; max-width: 520px; }
.calc-intro .kicker { margin: 0; }

.calc-card {
  display: grid;
  gap: 16px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .95rem; color: var(--ink-2); }
.field label .muted { font-weight: 400; }
.field input {
  width: 100%;
  min-height: 50px;
  padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  font: 500 1.1rem var(--font-body);
}
.field input:focus { outline: none; border-color: var(--brick); background: #fff; box-shadow: 0 0 0 3px rgb(180 69 42 / .15); }
.field input[aria-invalid="true"] { border-color: #c0392b; }

.check { display: flex; align-items: center; gap: 10px; font-size: .95rem; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--brick); }

.calc-result {
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: #f6e7e1;
}
.calc-count { font: 600 1.15rem/1.3 var(--font-body); color: var(--ink); }
.calc-count strong { font: 700 2rem/1.1 var(--font-display); color: var(--brick); }
.calc-result .muted { margin-top: 2px; font-size: .92rem; }

@media (max-width: 859px) {
  .calc { grid-template-columns: 1fr; }
  .calc-card { padding: 22px; }
}

/* ---------- Contacts ---------- */

.contacts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: stretch;
}
.contacts-info { display: grid; gap: 26px; align-content: start; }
.contacts-info .kicker { margin-bottom: -16px; }

.contact-block { display: flex; gap: 16px; }
.contact-block > .icon {
  width: 44px;
  height: 44px;
  padding: 11px;
  border-radius: 12px;
  background: rgb(255 255 255 / .08);
  color: #e58a6c;
}
.contact-block h3 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 6px;
  font: 600 1.05rem/1.3 var(--font-body);
}
.contact-block p { color: var(--on-dark-muted); }
.contact-block .muted { color: var(--on-dark-muted); font-size: .92rem; margin-top: 6px; }

.phones { display: grid; gap: 4px; }
.phones li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.phones span { min-width: 7.5em; color: var(--on-dark-muted); }
.phones a { font-size: 1.15rem; font-weight: 600; color: #fff; text-decoration: none; }
.phones a:hover { text-decoration: underline; }

.hours {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: start;
  gap: 4px 24px;
  color: var(--on-dark-muted);
}
.hours dd { margin: 0; color: #fff; font-weight: 500; font-variant-numeric: tabular-nums; }

.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.map {
  min-height: 420px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink-2);
}
.map iframe { display: block; width: 100%; height: 100%; min-height: 420px; border: 0; }

@media (max-width: 859px) {
  .contacts { grid-template-columns: 1fr; }
  .map, .map iframe { min-height: 320px; }
}

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 28px;
  background: #151311;
  color: var(--on-dark-muted);
  font-size: .9rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 28px;
}
.footer-inner p:last-child { margin-left: auto; }
.brand--light { color: #fff; }
.brand--light .brand-mark { width: 32px; height: 32px; }
.brand--light .brand-name { font-size: .9rem; }

/* ---------- Mobile call bar ---------- */

.mobile-bar { display: none; }

@media (max-width: 759px) {
  .mobile-bar {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 60;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 10px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgb(246 243 238 / .96);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
  }
  .mobile-bar .btn { min-height: 50px; }
  body { padding-bottom: 72px; }
  .footer-inner p:last-child { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
