/* Inner pages: page hero, filters, product page, forms, contact, about, blog */
/* ---------- Inner pages ---------- */
.page-hero { position: relative; background: var(--lime); border-bottom: 1px solid var(--line); margin-bottom: 40px; overflow: hidden; }
.page-hero__in { position: relative; padding-block: clamp(36px, 5vw, 64px); }
.page-hero--swatch .page-hero__in { padding-right: min(40%, 460px); }
.page-hero__bg { position: absolute; top: 0; right: 0; bottom: 0; width: 38%; max-width: 520px; height: 100%; object-fit: cover; -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%); mask-image: linear-gradient(90deg, transparent, #000 45%); }
.page-hero__title { font-size: clamp(32px, 4.2vw, 56px); letter-spacing: -.025em; font-variation-settings: "wdth" 114; line-height: 1.05; max-width: 22ch; }
.page-hero__lead { font-size: 18.5px; color: var(--ink-soft); max-width: 58ch; margin-top: 16px; }
@media (max-width: 760px) { .page-hero--swatch .page-hero__in { padding-right: var(--gutter); } .page-hero__bg { width: 100%; max-width: none; opacity: .14; -webkit-mask-image: none; mask-image: none; } }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14.5px; color: var(--concrete); margin-bottom: 18px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs--page { padding-block: 22px 8px; margin: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { padding: 8px 16px; border: 1.5px solid var(--line); border-radius: 999px; text-decoration: none; font-size: 15px; font-weight: 550; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.filters { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; margin-bottom: 24px; border-block: 1px solid var(--line); flex-wrap: wrap; }
.filters__count { margin: 0; font-weight: 600; }
.filters__controls { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.select select { min-height: 42px; padding: 0 36px 0 12px; border: 1.5px solid var(--line); border-radius: var(--r-sm); font: inherit; font-size: 15px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cpath d='M3 4.5 6 7.5l3-3' fill='none' stroke='%2318302D' stroke-width='1.6'/%3E%3C/svg%3E") right 12px center no-repeat; appearance: none; }
.check { display: inline-flex; gap: 8px; align-items: center; font-size: 15px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); }

.empty { padding: 40px; background: var(--lime); border-radius: var(--r); text-align: center; }
.empty .btn { margin-top: 12px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 44px; }
.pager__btn { padding: 10px 18px; border: 1.5px solid var(--ink); border-radius: var(--r-sm); text-decoration: none; font-weight: 600; }
.pager__btn:hover { background: var(--ink); color: #fff; }
.pager__btn.is-disabled { opacity: .35; border-color: var(--line); }
.pager__info { color: var(--concrete); font-size: 15px; }
.catalog-group { margin-bottom: 56px; }
.catalog-group__title { font-size: 26px; font-variation-settings: "wdth" 112; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }

/* Prose */
.prose { max-width: 72ch; }
.prose h2 { font-size: 26px; margin: 1.6em 0 .6em; font-variation-settings: "wdth" 110; }
.prose h3 { font-size: 20px; margin: 1.4em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose img, .prose__hero { border-radius: var(--r); margin: 0 0 24px; }
.prose a { color: var(--oak-deep); }
.prose table { border-collapse: collapse; width: 100%; margin: 1em 0; font-size: 16px; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; }
.prose--split { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line); }

/* Product page */
.product { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); padding-block: 16px 56px; align-items: start; }
@media (max-width: 900px) { .product { grid-template-columns: 1fr; } }
.gallery { position: sticky; top: 100px; }
@media (max-width: 900px) { .gallery { position: static; } }
.gallery__main { position: relative; display: block; width: 100%; padding: 0; border: 0; aspect-ratio: 1 / 1; border-radius: var(--r-lg); overflow: hidden; background: var(--lime); cursor: zoom-in; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease-out; }
.gallery__main.is-magnified img { transform: scale(2.2); }
.gallery__hint { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--ink); font-size: 13.5px; font-weight: 600; box-shadow: 0 2px 10px rgba(0, 0, 0, .12); pointer-events: none; transition: opacity .15s; }
.gallery__main.is-magnified .gallery__hint { opacity: 0; }
@media (hover: none) { .gallery__hint { font-size: 0; gap: 0; padding: 9px; } }

/* Full-screen zoom viewer */
body.zoom-open { overflow: hidden; }
.zoom { position: fixed; inset: 0; z-index: 200; background: rgb(14, 24, 22); }
.zoom[hidden] { display: none; }
.zoom__stage { position: absolute; inset: 0 0 72px 0; display: grid; place-items: center; overflow: hidden; touch-action: none; cursor: zoom-in; }
.zoom.is-zoomed .zoom__stage { cursor: grab; }
.zoom.is-zoomed .zoom__stage:active { cursor: grabbing; }
.zoom__img { max-width: 92vw; max-height: calc(100vh - 110px); object-fit: contain; transform-origin: center center; transition: transform .12s ease-out; user-select: none; -webkit-user-drag: none; }
.zoom__bar { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; padding: 6px; background: rgba(255, 255, 255, .1); border-radius: 999px; color: #fff; }
.zoom__btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.zoom__btn:hover { background: rgba(255, 255, 255, .26); }
.zoom__level, .zoom__count { min-width: 56px; text-align: center; font-size: 14px; font-variant-numeric: tabular-nums; }
.zoom__sep { width: 1px; height: 24px; background: rgba(255, 255, 255, .25); margin: 0 4px; }
.zoom__close { position: absolute; top: 14px; right: 14px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 20px; cursor: pointer; }
.zoom__close:hover { background: rgba(255, 255, 255, .26); }
@media (prefers-reduced-motion: reduce) { .gallery__main img, .zoom__img { transition: none; } }
.gallery__thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 10px; }
.gallery__thumb { padding: 0; border: 2px solid transparent; border-radius: var(--r); overflow: hidden; aspect-ratio: 1 / 1; cursor: pointer; background: none; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb.is-active { border-color: var(--ink); }
.product__cat { font-size: 15px; color: var(--concrete); margin-bottom: 8px; }
.product__cat a { color: var(--oak-deep); font-weight: 600; text-decoration: none; }
.product__title { font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -.02em; font-variation-settings: "wdth" 112; }
.product__code { color: var(--concrete); margin: 8px 0 0; }
.product__price { padding: 22px 0; margin: 22px 0; border-block: 1px solid var(--line); }
.product__price .muted { margin-top: 6px; }
.product__lead { font-size: 18px; color: var(--ink-soft); }
.product__actions { display: grid; gap: 10px; margin: 24px 0; }
.calc { background: var(--lime); border-radius: var(--r); padding: 22px; }
.calc__title { font-size: 18px; margin-bottom: 14px; }
.calc__row { display: flex; align-items: end; gap: 10px; margin-bottom: 12px; }
.calc__row label { flex: 1; display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.calc__row input { min-height: 46px; border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 0 12px; font: inherit; background: #fff; width: 100%; }
.calc__x { padding-bottom: 12px; color: var(--concrete); }
.calc__out { display: block; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 16px; }
.calc__out b { font-size: 22px; font-variation-settings: "wdth" 110; }
.product-details { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); padding-bottom: 40px; }
@media (max-width: 900px) { .product-details { grid-template-columns: 1fr; } }
.specs { margin: 0; border-top: 2px solid var(--ink); }
.specs div { display: grid; grid-template-columns: 1fr 1.3fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--concrete); }
.specs dd { margin: 0; font-weight: 600; }

/* Aside layouts */
.layout-aside { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(28px, 5vw, 72px); align-items: start; }
.layout-aside--form { grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); }
@media (max-width: 900px) { .layout-aside, .layout-aside--form { grid-template-columns: 1fr; } }
.aside { display: grid; gap: 16px; position: sticky; top: 100px; }
@media (max-width: 900px) { .aside { position: static; } }
.aside-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--r); }
.aside-card h2 { font-size: 19px; margin-bottom: 10px; font-variation-settings: "wdth" 108; }
.aside-card p { color: var(--ink-soft); font-size: 16px; }
.aside-card .btn { margin-top: 10px; }
.aside-card--ink { background: var(--ink); border-color: var(--ink); color: #DCE3DF; }
.aside-card--ink h2 { color: #fff; }
.aside-card--ink p { color: #B9C6C1; }
.aside-links { list-style: none; margin: 0; padding: 0; }
.aside-links a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 550; }
.mini-steps { margin: 0; padding-left: 1.2em; display: grid; gap: 10px; font-size: 16px; color: var(--ink-soft); }

/* Forms */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 36px); }
.qform__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
@media (max-width: 560px) { .qform__grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; font-size: 15px; font-weight: 600; }
.field em { font-style: normal; font-weight: 400; color: var(--concrete); }
.field--full { grid-column: 1 / -1; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); font: inherit; font-weight: 400; background: #fff; color: var(--ink); }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(176, 123, 69, .25); }
.qform__foot { display: flex; align-items: center; gap: 18px; margin-top: 24px; flex-wrap: wrap; }
.hp { position: absolute; left: -9999px; }
.alert { padding: 16px 18px; border-radius: var(--r-sm); margin-bottom: 20px; font-size: 15.5px; }
.alert ul { margin: 6px 0 0; padding-left: 1.2em; }
.alert--error { background: #FBEDEA; color: #7A2A1E; border: 1px solid #EBC3BA; }
.picked { display: flex; align-items: center; gap: 14px; padding: 12px; background: var(--lime); border-radius: var(--r); margin-bottom: 22px; }
.picked img { width: 56px; height: 56px; border-radius: var(--r-sm); object-fit: cover; }
.picked p { margin: 0; }
.search-inline { display: flex; gap: 10px; margin-bottom: 28px; max-width: 640px; }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.contact__ways { display: grid; gap: 12px; }
.way { display: grid; gap: 2px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; }
.way b { font-size: 14px; color: var(--concrete); font-weight: 600; }
.way span { font-size: 19px; font-weight: 600; }
.way:hover { border-color: var(--ink); color: var(--ink); }
.way--wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.way--wa b { color: #D8F3E3; }
.way--wa:hover { background: var(--wa-deep); color: #fff; }
.way--static span.muted { font-size: 15px; font-weight: 400; }
.map { margin-top: 56px; }
.map iframe { width: 100%; height: 420px; border: 0; display: block; }

/* Project detail */
.facts { display: flex; flex-wrap: wrap; gap: 0; margin: 0 0 32px; border-block: 1px solid var(--line); }
.facts div { padding: 16px 28px 16px 0; margin-right: 28px; border-right: 1px solid var(--line); }
.facts div:last-child { border-right: 0; }
.facts dt { font-size: 14px; color: var(--concrete); }
.facts dd { margin: 0; font-weight: 600; }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-bottom: 40px; }
.shots img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } }
.about__board { margin: 0; display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; aspect-ratio: 5 / 4; }
.about__board img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r); }
.about__board img:first-child { grid-row: span 2; }
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; }
.values > div { padding: 24px 0; border-top: 1px solid var(--line); }
.values h3 { font-size: 20px; margin-bottom: 8px; font-variation-settings: "wdth" 108; }
.values p { color: var(--ink-soft); }
@media (max-width: 760px) { .values { grid-template-columns: 1fr; } }

/* Thanks */
.thanks { padding-block: clamp(56px, 9vw, 120px); max-width: 760px; }
.thanks__swatch { width: 96px; height: 96px; border-radius: var(--r); object-fit: cover; margin-bottom: 28px; }
.thanks .hero__actions { margin-top: 28px; }

/* Segmented size filter (60x120 / 60x60) */
.seg { display: inline-flex; padding: 3px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; }
.seg__opt { position: relative; cursor: pointer; }
.seg__opt input { position: absolute; opacity: 0; pointer-events: none; }
.seg__opt span { display: block; padding: 7px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 550; color: var(--ink-soft); white-space: nowrap; }
.seg__opt:hover span { color: var(--ink); }
.seg__opt input:checked + span { background: var(--ink); color: #fff; }
.seg__opt input:focus-visible + span { outline: 3px solid var(--oak); outline-offset: 1px; }
@media (max-width: 560px) { .seg { width: 100%; } .seg__opt { flex: 1; } .seg__opt span { text-align: center; padding-inline: 8px; } }

/* Colour / style chips on large collections (category page) */
.tones { flex-basis: 100%; display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 12px; margin-bottom: 2px; border-bottom: 1px dashed var(--line); }
.tone { position: relative; cursor: pointer; }
.tone input { position: absolute; opacity: 0; pointer-events: none; }
.tone span { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border: 1.5px solid var(--line); border-radius: 999px; font-size: 14.5px; font-weight: 550; color: var(--ink-soft); background: #fff; white-space: nowrap; transition: border-color .15s, background .15s; }
.tone span small { font-size: 12.5px; font-weight: 500; opacity: .65; }
.tone:hover span { border-color: var(--ink); color: var(--ink); }
.tone input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.tone input:focus-visible + span { outline: 3px solid var(--oak); outline-offset: 1px; }
.tone__dot { width: 20px; height: 20px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.14); }
.tone__dot--all { background: conic-gradient(#f4f1ea 0 25%, #9a9a9a 0 50%, #1d1d1d 0 75%, #c99a2e 0); }
.tone__dot--white { background: linear-gradient(135deg, #fff 45%, #d9d9d9 46%, #fff 52%); }
.tone__dot--grey { background: linear-gradient(135deg, #b9bcbf, #6f7276); }
.tone__dot--black { background: linear-gradient(135deg, #2a2a2a 45%, #d4a537 47%, #111 52%); }
.tone__dot--gold { background: linear-gradient(135deg, #f6e7a6, #c9971f 55%, #8a6410); }
.tone__dot--colour { background: conic-gradient(#3e78b8 0 33%, #4caf86 0 66%, #e59bb5 0); }
.tone__dot--pattern { background: repeating-linear-gradient(45deg, #2c2c2c 0 4px, #d4a537 4px 6px, #f2f2f2 6px 10px); }
@media (max-width: 560px) { .tones { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; } .tones::-webkit-scrollbar { display: none; } }
