/*
 * Tablets only (761–1120px; iPad portrait and landscape; user, 5 November 2026). Loaded with that media query after
 * every other stylesheet, so phones (mobile.css) and desktops are unchanged.
 */

:root { --gutter: 32px; }
html { scroll-padding-top: 80px; }
html.menu-open { overflow: hidden; }

/* Header: one row — menu, logo, search button, project list — that stays at the top while scrolling. */
.site-header { position: sticky; top: 0; z-index: 40; }
.site-header__in { flex-wrap: nowrap; gap: 4px; min-height: 68px; padding-block: 6px; position: relative; }
.logo { margin-right: auto; margin-left: 2px; min-height: 44px; }
.logo img { height: 50px; }
.search-toggle { display: inline-flex; margin-right: 8px; }
.search-toggle__close, .search-toggle[aria-expanded="true"] .search-toggle__open { display: none; }
.search-toggle[aria-expanded="true"] .search-toggle__close { display: block; }
.site-header form.search { display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 2; height: auto; margin: 0; padding: 12px var(--gutter) 14px; background: var(--bg); border: 0; border-bottom: 1px solid var(--line); outline: 0; gap: 8px; }
.site-header form.search.is-open { display: flex; }
.site-header form.search input { flex: 1; width: auto; min-width: 0; height: 48px; padding: 0 14px; font-size: var(--t-body); background: #FFFFFF; border: 1px solid var(--control); }
.site-header form.search input:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.site-header form.search .icon-btn { width: 48px; height: 48px; flex: none; background: var(--ink); color: var(--bg); }
.plist { margin-left: 0; }
.site-nav { position: absolute; left: 0; right: 0; top: 100%; z-index: 3; background: var(--bg); padding: 0 var(--gutter) 24px; border-bottom: 1px solid var(--line); max-height: calc(100vh - 68px); max-height: calc(100dvh - 68px); overflow-y: auto; overscroll-behavior: contain; }

/* Hero: never taller than the screen under the header, so the buttons are in view in landscape too. */
.hero { height: min(var(--hero-h), calc(100vh - 68px)); height: min(var(--hero-h), calc(100svh - 68px)); min-height: 520px; }
.hero--film .hero__panel { bottom: calc(var(--gutter) + 8px); }

/* Product families and brands: four to a row, so eight fill two even rows. */
.cat-grid, .brand-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 16px; }
.brand__name { font-size: var(--h4); }

/* Sale and projects, shown on tablets as on phones. */
.home-sale.only-phone, .home-proj.only-phone { display: block; }
.home-sale { background: var(--band); padding-block: 28px; }
.home-sale__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.home-sale__h { font-family: var(--display); font-weight: 400; font-size: var(--h3); line-height: 1.1; color: var(--sale); }
.home-sale__p { margin-top: 4px; color: var(--ink-2); }
.home-sale__btn { flex: none; background: var(--sale); border-color: var(--sale); color: #fff; }
.home-sale__btn:hover { background: var(--sale-dark); border-color: var(--sale-dark); color: #fff; }
.home-proj { border-top: 1px solid var(--line); }
.home-proj__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hpcard { display: flex; flex-direction: column; gap: 6px; color: var(--ink); text-decoration: none; }
.hpcard__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ph); }
.hpcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.hpcard:hover .hpcard__media img { transform: scale(1.03); }
.hpcard__name { margin-top: 6px; font-family: var(--display); font-size: var(--h4); line-height: 1.15; }
.hpcard__meta { font-size: var(--t-small); color: var(--mute); }

/* Footer: logo and contact side by side, then the link groups folded. */
.site-footer__cols { grid-template-columns: 1fr 1fr; gap: 0 40px; }
.site-footer__cols > * { order: 2; grid-column: 1 / -1; }
.site-footer__brand { order: 0; grid-column: auto; margin-bottom: 24px; }
.fcol--contact { order: 1; grid-column: auto; margin-bottom: 24px; }
.fcol { border-top: 1px solid var(--rule-dark); }
.fcol--contact { border-top: 0; }
.fcol summary { min-height: 52px; display: flex; align-items: center; justify-content: space-between; margin: 0; cursor: pointer; }
.fcol summary::after { content: ""; width: 8px; height: 8px; margin-right: 4px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.fcol[open] summary::after { transform: rotate(225deg); }
.fcol summary:focus-visible { outline: 2px solid #FFFFFF; outline-offset: -2px; }
.fcol ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; padding-bottom: 14px; }
.fcol ul a { display: flex; align-items: center; min-height: 44px; }
.site-footer__base { margin-top: 24px; }
.site-footer { padding-bottom: 96px; } /* room for the WhatsApp button under the Privacy and Terms links */
.hero__pause { top: 16px; right: var(--gutter); bottom: auto; } /* clear of the WhatsApp button */

/* Sticky parts of other pages sit below the sticky header. */
.bnav { top: 68px; }
.filters { top: 84px; max-height: calc(100vh - 100px); }
.bprod .filters { top: 140px; max-height: calc(100vh - 156px); }
.send { top: 84px; }
