/* J&J Tiles and Ceramics — main stylesheet
   1. Tokens  2. Base  3. Layout  4. Buttons & forms  5. Header & menu  6. Home
   7. Collection  8. Product  9. Calculator  10. Contact & visit  11. Footer  12. Responsive */

/* ---------- 1. Tokens ---------- */
:root {
  /* colours */
  --green: #1f3b2d;
  --green-dark: #15291f;
  --taupe: #9a876a;
  --taupe-light: #d8cdb8;
  --ink: #1b1e1c;
  --muted: #5f655f;
  --bg: #f7f6f2;
  --surface: #fff;
  --line: #e4e0d6;
  --wa: #1fa855;
  --wa-dark: #178a45;
  --danger: #8a2a1c;

  /* layout */
  --container: 1680px;
  --gutter: clamp(16px, 3vw, 48px);
  --section: clamp(40px, 5vw, 80px);
  --gap: 16px;
  --header-h: 72px;
  --topbar-h: 36px;
  --radius: 4px;

  /* type */
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Segoe UI", system-ui, -apple-system, sans-serif;
  --shadow-hover: 0 10px 24px -14px rgba(21, 41, 31, .35);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
html, body { overflow-x: clip; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.ic { flex-shrink: 0; }

h1, h2 { font-family: var(--serif); font-weight: 600; color: var(--green); line-height: 1.2; margin: 0; }
h1 { font-size: clamp(28px, 3.2vw, 40px); }
h2 { font-size: clamp(24px, 2.4vw, 32px); }
h3 { font-size: 16px; font-weight: 500; margin: 0; line-height: 1.35; }
.title em, .display em { font-style: normal; color: var(--taupe); }
.lead { margin: 8px 0 0; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.prose p { margin: 0 0 1em; color: var(--muted); max-width: 70ch; }
.prose p:last-child { margin-bottom: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 3. Layout ---------- */
.wrap { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section.tight { padding-top: 24px; }
.section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head .lead { margin-top: 6px; }
.link-more { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--green); font-weight: 600; text-decoration: none; }
.link-more:hover { text-decoration: underline; }

.page-head { background: var(--surface); border-bottom: 1px solid var(--line); padding-block: clamp(24px, 3vw, 40px); }
.page-head .lead { margin-top: 6px; }

/* ---------- 4. Buttons & forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border: 1px solid transparent; border-radius: var(--radius);
  font-size: 15px; font-weight: 600; letter-spacing: .01em; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:focus-visible, .chip:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--taupe-light); outline-offset: 2px; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-outline { background: var(--surface); border-color: var(--green); color: var(--green); }
.btn-outline:hover { background: var(--green); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-dark); }
.btn-sm { min-height: 44px; padding: 0 14px; font-size: 14px; }
.btn-block { width: 100%; }

label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; color: var(--ink); }
input[type=text], input[type=tel], input[type=number], input[type=search], input[type=email], input[type=url], input[type=password], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  font-size: 16px; color: var(--ink);
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(31, 59, 45, .12); }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 400; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--green); }
.alert { background: #fdf0ee; border: 1px solid #f0c9c2; color: var(--danger); padding: 10px 14px; border-radius: var(--radius); font-size: 15px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- 5. Header & menu ---------- */
.topbar { background: var(--green); color: #e3ebe5; font-size: 13.5px; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--topbar-h); }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }

.site-header { position: sticky; top: 0; z-index: 50; background: var(--surface); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; text-decoration: none; margin-right: auto; flex-shrink: 0; }
.brand img { height: 52px; width: auto; max-width: 240px; object-fit: contain; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a { padding: 10px 12px; text-decoration: none; font-size: 15px; font-weight: 500; letter-spacing: .01em; color: var(--ink); border-radius: var(--radius); }
.main-nav a:hover { color: var(--green); background: var(--bg); }
.main-nav a.is-active { color: var(--green); font-weight: 600; box-shadow: inset 0 -2px 0 var(--green); border-radius: 0; }
.main-nav .menu-extra { display: none; }
.header-wa { min-height: 44px; }
.nav-toggle { display: none; width: 44px; height: 44px; place-items: center; background: none; border: 0; padding: 0; cursor: pointer; color: var(--green); }

/* ---------- 6. Home ---------- */
/* hero: split layout — text on paper (aligned to the site container), photo to the right screen edge */
.hero { display: grid; grid-template-columns: 1fr 1fr; height: clamp(480px, 70vh, 680px); background: var(--bg); border-bottom: 1px solid var(--line); }
.hero:not(:has(.hero-media)) { grid-template-columns: 1fr; height: auto; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; gap: 28px; padding-block: 40px; padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); padding-right: clamp(24px, 4vw, 64px); }
.hero-stack { display: grid; }
/* text leaves quickly, the new text fades/slides up just after the image starts changing */
.hero-text { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s; }
.hero-text.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .5s ease .3s, transform .5s ease .3s, visibility 0s; }
.hero-title { font-family: var(--serif); font-weight: 600; font-size: clamp(34px, 4.2vw, 60px); line-height: 1.1; color: var(--green); max-width: 14em; }
.hero-lead { margin: 16px 0 0; font-size: 18px; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-text .btn { min-width: 172px; }
.hero-nav { display: flex; align-items: center; gap: 10px; }
.hero-arrow { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--green); cursor: pointer; }
.hero-arrow:hover { border-color: var(--green); }
.hero-arrow[data-prev] .ic { transform: rotate(180deg); }
.hero-dots { display: flex; gap: 2px; }
.hero-dots button { width: 28px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.hero-dots button::after { content: ""; position: absolute; left: 4px; right: 4px; top: 20px; height: 4px; border-radius: 2px; background: var(--line); }
.hero-dots button { transition: width .3s ease; }
.hero-dots button.is-on { width: 52px; }
.hero-dots button.is-on::after { background: #d7dcd6; }
/* progress line: fills over 6 s on the active dot, pauses with the slider */
.hero-dots button::before { content: ""; position: absolute; left: 4px; top: 20px; height: 4px; width: 0; border-radius: 2px; background: var(--green); z-index: 1; }
.hero-dots button.is-on::before { animation: heroProgress 6s linear forwards; }
.hero.is-paused .hero-dots button.is-on::before { animation-play-state: paused; }
.hero.is-static .hero-dots button.is-on::before { animation: none; width: calc(100% - 8px); }
@keyframes heroProgress { from { width: 0; } to { width: calc(100% - 8px); } }
.hero-media { position: relative; display: grid; overflow: hidden; background: #efebe3; }
.hero-img { grid-area: 1 / 1; opacity: 0; transition: opacity .8s ease; }
.hero-img.is-on { opacity: 1; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }

/* trust bar */
.trust { background: var(--surface); border-bottom: 1px solid var(--line); }
.trust-in { list-style: none; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; min-height: 64px; align-items: center; padding-block: 10px; }
.trust-in li { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; }
.trust-in .ic { color: var(--green); }

/* shop by category */
.cats-section { padding-bottom: 0; }
.cats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); }
.cat-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: box-shadow .2s, border-color .2s; }
.cat-card:hover { box-shadow: var(--shadow-hover); border-color: #d6d1c5; }
.cat-media { display: block; aspect-ratio: 4 / 3; background: var(--bg); overflow: hidden; }
.cat-media img { width: 100%; height: 100%; object-fit: cover; }
.cat-name { padding: 12px 14px 0; font-weight: 600; font-size: 16px; color: var(--ink); }
.cat-desc { padding: 2px 14px 0; font-size: 14px; color: var(--muted); line-height: 1.4; }
.cat-count { padding: 0 14px 12px; font-size: 14px; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); text-decoration: none; font-size: 14.5px; color: var(--ink); white-space: nowrap; }
.chip small { font-size: 12.5px; color: var(--muted); }
.chip:hover { border-color: var(--green); color: var(--green); }
.chip.is-on { background: var(--green); border-color: var(--green); color: #fff; }
.chip.is-on small { color: #cfdcd3; }

/* about + calculator: two equal columns of equal height */
.about-in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 4vw, 64px); align-items: stretch; }
.about-in h2 { margin-bottom: 14px; }
.about-col { display: flex; flex-direction: column; gap: 28px; }
.about-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.why-title { font-size: 18px; font-weight: 600; margin: 0 0 14px; }
.why-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.why-grid li { display: flex; gap: 12px; align-items: flex-start; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .25s, border-color .25s; }
.why-grid li:hover { box-shadow: var(--shadow-hover); border-color: #d6d1c5; }
.why-grid .ic { color: var(--green); margin-top: 2px; }
.why-grid strong { display: block; font-size: 15.5px; font-variant-numeric: lining-nums; }
.why-grid span { display: block; font-size: 14px; color: var(--muted); line-height: 1.45; }
.photo-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.photo-strip a { display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--bg); }
.photo-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.photo-strip a:hover img { transform: scale(1.05); }
.showroom-card { margin-top: auto; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .25s; }
.showroom-card:hover { box-shadow: var(--shadow-hover); }
.showroom-card .info-list { margin: 0; gap: 10px; }
.showroom-card .about-actions { margin-top: 16px; }
/* calculator keeps its natural height and stays in view beside the taller About column */
.calc-col { align-self: start; position: sticky; top: calc(var(--header-h) + 24px); }
.calc-summary { margin: 0; padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, .15); font-size: 14.5px; color: #c9d6cd; }

/* fade-up on scroll (hidden start state only when JS added .reveal-on) */
.reveal-on [data-reveal]:not([data-stagger]), .reveal-on [data-stagger] > * { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal-on [data-reveal].is-in:not([data-stagger]), .reveal-on [data-stagger].is-in > * { opacity: 1; transform: none; }

.calc-lead { margin-bottom: 16px; }
.about-in .calc { grid-template-columns: 1fr; }

/* home grid shows 10 tiles: keep full rows at every width */
@media (max-width: 1599px) { .grid-home > :nth-child(n+9), .grid-related > :nth-child(n+5) { display: none; } }
@media (min-width: 900px) and (max-width: 1199px) { .grid-home > :nth-child(n+7), .grid-related > :nth-child(n+4) { display: none; } }

.cta-band { background: var(--green); color: #e3ebe5; padding-block: clamp(32px, 4vw, 48px); }
.cta-in { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.cta-in h2 { color: #fff; font-size: clamp(22px, 2.2vw, 28px); }
.cta-in p { margin: 4px 0 0; }

/* ---------- 7. Collection ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.card:hover { box-shadow: var(--shadow-hover); border-color: #d6d1c5; }
.card-media { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--bg); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-noimg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--taupe-light); }
.badge { position: absolute; top: 8px; left: 8px; background: var(--green); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .03em; padding: 3px 8px; border-radius: var(--radius); }
.card-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 12px 12px; flex: 1; }
.card-body h3 a { text-decoration: none; color: var(--ink); }
.card-body h3 a:hover { color: var(--green); }
.card-meta { margin: 0 0 8px; font-size: 13.5px; color: var(--muted); }
.card-body .btn { margin-top: auto; }

.collection-tools { display: grid; gap: 14px; margin-bottom: 18px; }
.search { position: relative; max-width: 560px; }
.search .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { padding-left: 42px; }
.collection-tools .chips { margin-bottom: 0; }
.filters-toggle { display: none; }
.filters-panel { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.filters-panel label { flex: 1 1 180px; max-width: 280px; }
.filters-actions { display: flex; gap: 10px; align-items: center; }
.js .filters-apply { display: none; }
.results-note { margin: 0 0 12px; font-size: 14.5px; color: var(--muted); }

.empty-box { display: grid; justify-items: center; gap: 10px; padding: 48px 20px; text-align: center; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.empty-box h2, .empty-box h1 { font-size: 22px; }
.empty-box p { margin: 0 0 6px; max-width: 46ch; }
.empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-top: 32px; }
.pager a, .pager span { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; font-size: 15px; color: var(--ink); }
.pager a:hover { border-color: var(--green); color: var(--green); }
.pager .is-on { background: var(--green); border-color: var(--green); color: #fff; font-weight: 600; }
.pager .is-off { opacity: .45; }
.pager .pager-gap { border: 0; background: none; min-width: 20px; padding: 0; }

/* ---------- 8. Product ---------- */
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--green); text-decoration: underline; }
.product-in { display: grid; grid-template-columns: minmax(0, 58fr) minmax(0, 42fr); gap: clamp(20px, 3vw, 48px); align-items: start; }
.gallery-main { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
/* tall tiles (e.g. 600x1200) are shown whole but never taller than the screen */
.gallery-main img { width: 100%; height: auto; max-height: calc(100vh - var(--header-h) - 96px); object-fit: contain; }
.gallery-main .card-noimg { position: static; aspect-ratio: 1; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.thumbs button { width: 72px; height: 72px; padding: 0; border: 2px solid transparent; border-radius: var(--radius); background: var(--surface); cursor: pointer; overflow: hidden; }
.thumbs button.is-on { border-color: var(--green); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-info h1 { margin-bottom: 16px; }
.specs { width: 100%; border-collapse: collapse; margin: 0 0 20px; background: var(--surface); border: 1px solid var(--line); }
.specs th, .specs td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 15px; vertical-align: top; }
.specs th { width: 34%; font-weight: 500; color: var(--muted); background: #fbfaf7; }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }
.product-note { margin: 0 0 20px; color: var(--muted); font-size: 15px; }
.product-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.product-cta .btn-wa { grid-column: 1 / -1; }
.small-note { margin: 12px 0 0; font-size: 14.5px; color: var(--muted); }
.small-note a { color: var(--green); }
.product-bar { display: none; }

/* ---------- 9. Calculator ---------- */
.calc { display: grid; grid-template-columns: 1.3fr 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.calc-form { display: grid; gap: 16px; padding: clamp(18px, 2.4vw, 28px); align-content: start; }
.calc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.calc-result { display: grid; gap: 12px; align-content: center; padding: clamp(18px, 2.4vw, 28px); background: var(--green); color: #e3ebe5; font-variant-numeric: lining-nums tabular-nums; }
.calc-total { margin: 0; }
.calc-total strong { display: block; font-family: var(--sans); font-size: clamp(34px, 3.4vw, 46px); font-weight: 600; color: #fff; line-height: 1.1; }
.calc-detail { margin: 4px 0 0; font-size: 16px; }
.calc-empty { margin: 0; font-size: 22px; font-weight: 600; color: #fff; }
.calc-note { margin: 0; font-size: 13.5px; color: #c9d6cd; }
.calc input, .calc select { font-variant-numeric: lining-nums tabular-nums; }
.calc-units { display: inline-flex; justify-self: start; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); }
.calc-units input { position: absolute; opacity: 0; pointer-events: none; }
.calc-units label { position: relative; cursor: pointer; display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); transition: background-color .2s, color .2s; }
.calc-units label:has(input:checked) { background: var(--green); color: #fff; }
.calc-units label:has(input:focus-visible) { outline: 3px solid var(--taupe-light); outline-offset: 1px; }

/* ---------- 10. Contact & visit ---------- */
.visit-in { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.info-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 14px; }
.info-list li { display: flex; gap: 12px; align-items: flex-start; }
.info-list .ic { margin-top: 3px; color: var(--green); }
.info-list strong { display: block; font-size: 14px; font-weight: 600; color: var(--ink); }
.info-list a, .info-list span { color: var(--muted); text-decoration: none; }
.info-list a:hover { color: var(--green); text-decoration: underline; }
.map-frame { position: relative; aspect-ratio: 16 / 10; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.visit-in .hero-actions { margin-top: 20px; }

.contact-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(20px, 3vw, 48px); align-items: start; }
.contact-form { display: grid; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 2.4vw, 28px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-form h2 { font-size: 22px; }
.contact-done p { margin: 0; color: var(--muted); }
.contact-side { display: grid; gap: 16px; }
.contact-side .info-list { margin: 0; }

/* ---------- 11. Footer ---------- */
.site-footer { background: var(--green-dark); color: #bfcbc3; font-size: 15px; padding-top: clamp(36px, 4vw, 56px); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 32px; padding-bottom: 32px; }
.footer-logo { height: 140px; width: auto; max-width: 220px; object-fit: contain; margin-bottom: 14px; }
.footer-brand p { margin: 0; }
.footer-h { font-family: var(--sans); font-size: 15px; font-weight: 600; color: #fff; margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-contact li { display: flex; gap: 8px; align-items: flex-start; }
.footer-contact .ic { margin-top: 4px; color: var(--taupe-light); }
.socials { display: flex; gap: 8px; margin-top: 14px; }
.socials a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .25); border-radius: var(--radius); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 16px; font-size: 13.5px; }
.footer-credit { padding-right: 64px; } /* clear of the floating WhatsApp button */
.site-footer .footer-credit a { white-space: nowrap; text-decoration: none; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.site-footer .credit-org { color: #c9b48a; font-weight: 600; }
.site-footer .credit-dev { color: #dfe7e1; font-weight: 500; }
.site-footer .footer-credit a:hover { color: #fff; border-bottom-color: currentColor; text-decoration: none; }
.credit-sep { color: rgba(255, 255, 255, .35); margin: 0 8px; }

/* floating WhatsApp — icon only */
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 40; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: var(--wa); color: #fff; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .35); }
.wa-float:hover { background: var(--wa-dark); }

/* ---------- 12. Responsive ---------- */
@media (min-width: 900px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { :root { --gap: 20px; } .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1600px) { .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

@media (max-width: 1100px) {
  .main-nav a { padding-inline: 8px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  /* header: logo left, WhatsApp + menu right; top bar hidden (phone is in the menu) */
  .topbar { display: none; }
  .header-in { gap: 8px; min-height: 64px; }
  :root { --header-h: 64px; }
  .header-wa { width: 44px; padding: 0; }
  .brand img { height: 42px; max-width: 190px; }
  .header-wa span { display: none; }
  .nav-toggle { display: grid; }
  .main-nav {
    position: fixed; inset: 0; z-index: -1;
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    padding: calc(var(--header-h) + 8px) var(--gutter) 24px;
    background: var(--surface); overflow-y: auto;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { display: flex; align-items: center; min-height: 52px; padding: 0 4px; font-size: 17px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav a.is-active { box-shadow: none; }
  .main-nav .menu-extra { display: grid; gap: 10px; margin-top: 20px; }
  .main-nav .menu-extra .btn { min-height: 52px; font-size: 16px; justify-content: center; border: 1px solid transparent; border-radius: var(--radius); }
  .main-nav .menu-extra .btn-outline { border-color: var(--green); }
  .gallery-main img { max-height: 62vh; }
  body.nav-open { overflow: hidden; }
  body.nav-open .wa-float { display: none; }

  /* hero: photo on top, text below on plain background */
  .hero { grid-template-columns: 1fr; height: auto; }
  .hero-media { order: -1; height: clamp(260px, 42vw, 380px); }
  .hero-copy { padding: 24px var(--gutter) 28px; gap: 16px; }
  .hero-lead { font-size: 16px; margin-top: 10px; }
  .hero-actions { margin-top: 18px; }
  .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .trust-in { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; padding-block: 14px; }
  .about-in, .visit-in, .product-in, .contact-in { grid-template-columns: 1fr; }
  .calc { grid-template-columns: 1fr; }

  /* collection: chips scroll sideways, filters behind a button */
  .collection-tools .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .collection-tools .chips::-webkit-scrollbar { display: none; }
  .search { max-width: none; }
  .filters-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-size: 15px; font-weight: 600; cursor: pointer; }
  .filters-toggle small { background: var(--green); color: #fff; border-radius: 999px; padding: 0 7px; font-size: 12px; }
  .js .filters-panel { display: none; margin-top: 10px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
  .js .filters.is-open .filters-panel { display: grid; gap: 12px; }
  .filters-panel label { max-width: none; }
  .js .filters-apply { display: inline-flex; }
  .filters-actions .btn { flex: 1; }

  /* product: sticky bottom bar with WhatsApp + Call */
  .product-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
  body.has-bar { padding-bottom: 66px; }
  body.has-bar .wa-float, body.no-float .wa-float { display: none; }
  .product-cta { display: none; }
}

@media (max-width: 600px) {
  :root { --gutter: 16px; --gap: 12px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .site-footer { padding-bottom: 84px; } /* keep clear of the WhatsApp button / product bottom bar */
  .hero-actions .btn, .about-actions .btn { flex: 1 1 100%; }
  .hero-media { height: 280px; }
  .trust-in { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; padding-block: 14px; }
  .trust-in li { font-size: 14px; gap: 8px; align-items: flex-start; }
  .trust-in .ic { margin-top: 1px; }
  /* categories: one swipe row */
  .cats { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; scrollbar-width: none; }
  .cats::-webkit-scrollbar { display: none; }
  .cat-card { flex: 0 0 44%; scroll-snap-align: start; }
  .card-body { padding: 10px; }
  .card-body h3 { font-size: 15px; }
  .card-meta { font-size: 13px; }
  .card-body .btn { padding: 0 8px; font-size: 13.5px; gap: 6px; }
  .hide-xs { display: none; }
  .specs th { width: 40%; }
  .cta-in .btn { width: 100%; }
}

@media (max-width: 1023px) {
  .about-in { grid-template-columns: 1fr; }
  .showroom-card { margin-top: 0; }
  .calc-col { position: static; }
}
@media (max-width: 399px) {
  .why-grid { grid-template-columns: 1fr; }
  .calc-row { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .footer-bottom { flex-direction: column; justify-content: center; text-align: center; gap: 6px; padding-bottom: 20px; }
  .footer-credit { padding-right: 0; line-height: 1.7; }
  .site-footer { padding-bottom: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
  .reveal-on [data-reveal], .reveal-on [data-stagger] > * { opacity: 1 !important; transform: none !important; }
}
