/* Page parts: filters, galleries, lightbox, tiles, swatches, timeline, people, dealers, forms, articles, legal text. */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: clamp(28px, 4vw, 44px); }
.filter { min-height: 42px; padding: 8px 20px; background: none; border: 1px solid var(--line); color: var(--muted); font: 400 .9375rem/1 var(--font-body); cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.filter:hover { border-color: var(--accent); color: var(--text); }
.filter[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.filter-count { width: 100%; margin: 4px 0 0; text-align: center; font-size: .875rem; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.6vw, 20px); }
.gallery__item { position: relative; display: block; overflow: hidden; color: #fff; text-decoration: none; }
.gallery__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s var(--ease); }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__caption { position: absolute; inset: auto 0 0; padding: 44px 18px 14px; background: linear-gradient(transparent, rgba(0, 0, 0, .72)); font-size: .95rem; line-height: 1.4; opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s var(--ease); }
.gallery__caption small { display: block; color: var(--accent-strong); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.gallery__item:hover .gallery__caption, .gallery__item:focus-visible .gallery__caption { opacity: 1; transform: none; }
@media (hover: none) { .gallery__caption { opacity: 1; transform: none; } }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }

dialog.lightbox { width: min(100vw - 32px, 1280px); max-width: none; max-height: none; padding: 0; border: 0; background: transparent; color: #fff; overflow: visible; }
.lightbox::backdrop { background: rgba(0, 0, 0, .9); }
.lightbox__figure { margin: 0; }
.lightbox__figure img { width: 100%; max-height: calc(100vh - 130px); object-fit: contain; background: none; }
.lightbox__figure figcaption { padding-top: 12px; text-align: center; color: #ddd; }
.lightbox__btn { position: fixed; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(255, 255, 255, .3); background: rgba(0, 0, 0, .55); color: #fff; cursor: pointer; transition: background-color .2s, color .2s; }
.lightbox__btn:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.lightbox__btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev, .lightbox__next { top: 50%; translate: 0 -50%; }
.lightbox__prev { left: 16px; }
.lightbox__next { right: 16px; }

/* Tiles: product lines, features */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2.5vw, 30px); }
.tiles--3 { grid-template-columns: repeat(3, 1fr); }
.tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 20px; }
.tile h3 { margin-bottom: .4em; }
.tile p { line-height: 1.75; }
figure.tile { margin: 0; }
.tile--link { color: inherit; text-decoration: none; }
.tile--link img { transition: opacity .2s; }
.tile--link:hover img { opacity: .85; }
.tile--link:hover h3, .tile--link:focus-visible h3 { color: var(--accent); }
#kitchen-ideas .tiles { margin-bottom: 32px; }
.feature { padding: 30px 28px; border: 1px solid var(--line); background: var(--bg); }
.section--surface .feature { background: var(--bg); }
.feature > .icon { width: 34px; height: 34px; margin-bottom: 18px; color: var(--accent); stroke-width: 1.5; }
@media (max-width: 1000px) { .tiles, .tiles--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tiles, .tiles--3 { grid-template-columns: 1fr; } }

.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 16px; margin: 24px 0 0; padding: 0; list-style: none; }
.swatch { font-size: .875rem; line-height: 1.35; color: var(--muted); }
.swatch__chip { display: block; aspect-ratio: 1; margin-bottom: 8px; border: 1px solid rgba(255, 255, 255, .12); }

.timeline { position: relative; max-width: 860px; margin: 0 auto; padding: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; top: 8px; bottom: 8px; left: 7px; width: 1px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 34px 48px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 7px; width: 15px; height: 15px; border: 2px solid var(--accent); border-radius: 50%; background: var(--bg); }
.timeline__year { display: block; color: var(--accent); font: 500 1.375rem/1.3 var(--font-heading); }
.timeline h3 { margin: 2px 0 6px; font-size: 1.125rem; }

.people { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(18px, 2.5vw, 30px); }
.person { display: grid; grid-template-columns: minmax(130px, 200px) 1fr; gap: 26px; align-items: center; padding: 18px; border: 1px solid var(--line); background: var(--surface); }
.person img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; }
.person h3 { margin-bottom: 2px; }
.person__role { margin-bottom: 14px; color: var(--accent); font-size: .875rem; letter-spacing: .08em; text-transform: uppercase; }
.contact-lines { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.contact-lines a, .contact-lines span { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); text-decoration: none; overflow-wrap: anywhere; }
.contact-lines a:hover { color: var(--accent); }
.contact-lines .icon { color: var(--accent); }
@media (max-width: 900px) { .people { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .person { grid-template-columns: 1fr; } .person img { max-width: 220px; } }

/* Dealer search */
.finder-bar { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.finder-bar .field { flex: 1 1 280px; margin: 0; }
.finder-bar .btn { flex: 0 0 auto; }
.finder { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; align-items: start; }
.finder__map { position: sticky; top: calc(var(--header-h) + 20px); height: min(560px, calc(100vh - var(--header-h) - 40px)); background: var(--surface); border: 1px solid var(--line); }
.finder__map #dealer-map { position: absolute; inset: 0; }
.finder__map-note { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; color: var(--muted); }
.dealer-list { margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); }
.dealer { padding: 20px 22px; border-bottom: 1px solid var(--line); }
.dealer:last-child { border-bottom: 0; }
.dealer.is-selected { background: var(--surface); box-shadow: inset 4px 0 0 var(--accent); }
.dealer h3 { margin-bottom: 4px; font-size: 1.125rem; }
.dealer__distance { float: right; margin-left: 12px; color: var(--accent); font-size: .875rem; }
.dealer address { margin-bottom: 10px; color: var(--muted); font-size: .95rem; line-height: 1.6; }
.dealer .contact-lines { font-size: .95rem; }
.dealer__show { margin-top: 12px; padding: 0; background: none; border: 0; color: var(--text); font: 500 .8125rem var(--font-heading); letter-spacing: .09em; text-transform: uppercase; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.dealer__show .icon { color: var(--accent); }
.dealer__show:hover { color: var(--accent); }
.finder-empty { padding: 22px; color: var(--muted); }
.leaflet-container { font-family: var(--font-body); background: var(--deep); }
.map-pin span { display: block; width: 26px; height: 26px; background: var(--brand); border: 3px solid #fff; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 3px 8px rgba(0, 0, 0, .45); }
.leaflet-popup-content { font-size: .95rem; line-height: 1.5; color: #222; }
.leaflet-popup-content strong { color: #111; }
@media (max-width: 900px) { .finder { grid-template-columns: 1fr; } .finder__map { position: relative; top: 0; height: 380px; } }

/* Forms */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label, .field .label { color: var(--text); font-size: .9375rem; font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 0;
  background: var(--bg); color: var(--text); font: 300 1rem/1.5 var(--font-body); transition: border-color .2s;
}
.section--surface .field input, .section--surface .field select, .section--surface .field textarea { background: color-mix(in srgb, var(--bg) 70%, var(--deep)); }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field input:user-invalid, .field textarea:user-invalid, .field select:user-invalid { border-color: #e0806c; }
.check { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; color: var(--muted); font-size: .9375rem; line-height: 1.6; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); }
.check a { color: var(--text); }
.form .btn { justify-self: start; }
.form-status { grid-column: 1 / -1; margin: 0; padding: 14px 16px; border-left: 3px solid var(--accent); background: rgba(255, 255, 255, .04); color: var(--text); }
.form-status[data-state="error"] { border-left-color: #e0806c; }
.field--trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { grid-column: 1 / -1; margin: 0; font-size: .875rem; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

/* Articles */
.post { width: min(100% - 2 * var(--gutter), 820px); margin-inline: auto; }
.post__meta { color: var(--accent); font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; }
.post__body h2 { margin-top: 1.6em; font-size: 1.6rem; }
.post__body figure { margin: 2em 0; }
.post__body figcaption { margin-top: 10px; color: var(--muted); font-size: .875rem; }
.post__body ul { padding-left: 1.2em; }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 26px; color: var(--muted); text-decoration: none; }
.back-link:hover { color: var(--accent); }

.legal { width: min(100% - 2 * var(--gutter), 860px); margin-inline: auto; }
.legal h2 { margin-top: 1.8em; font-size: 1.4rem; }
.legal h2:first-child { margin-top: 0; }
.legal ul { padding-left: 1.2em; }
.legal a { color: var(--accent-strong); }
.notice { margin-bottom: 32px; padding: 16px 18px; border: 1px dashed var(--accent); color: var(--muted); font-size: .95rem; }

.not-found { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.not-found__code { display: block; color: var(--accent); font: 300 clamp(5rem, 3rem + 8vw, 9rem)/1 var(--font-heading); }
.not-found .btn-row { justify-content: center; }
