/* =====================================================================
   Kéki Lapszabászat – public website ("Prémium műhely")
   Builds on the tokens and components of app.css.
   ===================================================================== */

:root {
  --header-h: 84px;
  --navy-grad: linear-gradient(135deg, var(--navy-700) 0%, var(--navy-900) 100%);
  --pinstripe: repeating-linear-gradient(100deg, rgba(255, 255, 255, 0.035) 0 2px, transparent 2px 9px);
  --on-navy-3: rgba(246, 241, 234, 0.55);
}
@media (max-width: 960px) { :root { --header-h: 64px; } }

.page-web { overflow-x: hidden; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 2000; padding: 10px 16px; border-radius: var(--r-pill); background: var(--oak); color: #fff; font-weight: 700; transition: top var(--fast); }
.skip-link:focus { top: 12px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 500;
  color: var(--on-navy);
  background: var(--pinstripe), var(--navy-grad);
  transition: box-shadow var(--slow), background-color var(--slow);
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -12px rgba(8, 42, 68, 0.55); }
.site-header--overlay { position: fixed; left: 0; right: 0; background: transparent; }
.site-header--overlay::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--pinstripe), var(--navy-grad); opacity: 0; transition: opacity var(--slow); }
.site-header--overlay.is-scrolled::before, .site-header--overlay.is-open::before { opacity: 1; }
.site-header__in { height: var(--header-h); display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; }
.brand__logo { width: 48px; height: 48px; border-radius: 50%; background: var(--warm-white); display: grid; place-items: center; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.5), 0 0 0 4px rgba(255, 253, 250, 0.12); flex: none; }
.brand__logo img { width: 40px; height: 40px; border-radius: 50%; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__text b { font-family: var(--font-display); font-weight: 400; font-size: 20px; letter-spacing: 0.03em; text-transform: uppercase; }
.brand__text small { margin-top: 5px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--oak-light); }
.site-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.site-nav a { position: relative; font-size: 15px; font-weight: 600; color: rgba(255, 253, 250, 0.82); padding: 6px 0; transition: color var(--fast); }
.site-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--oak); transform: scaleX(0); transform-origin: left; transition: transform var(--slow); }
.site-nav a:hover, .site-nav a.is-active { color: var(--oak-light); }
.site-nav a:hover::after, .site-nav a.is-active::after { transform: scaleX(1); }
.site-header__cta { display: flex; align-items: center; gap: 12px; }
.site-header__cta .btn-oak { color: var(--text); }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(255, 253, 250, 0.25); flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--on-navy); transition: transform var(--slow), opacity var(--fast); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav { display: none; }
@media (max-width: 960px) {
  .site-header__in { gap: 16px; }
  .brand__logo { width: 40px; height: 40px; box-shadow: none; }
  .brand__logo img { width: 34px; height: 34px; }
  .brand__text b { font-size: 17px; }
  .brand__text small { display: none; }
  .site-nav { display: none; }
  .site-header__cta { margin-left: auto; }
  .site-header__cta .btn-oak { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav { display: block; border-top: 1px solid rgba(255, 253, 250, 0.12); background: var(--navy-900); padding: 8px 0 20px; animation: nav-in var(--slow); }
  .mobile-nav[hidden] { display: none; }
  .mobile-nav nav { display: flex; flex-direction: column; padding: 0 var(--gutter); }
  .mobile-nav nav a { padding: 14px 4px; font-size: 17px; font-weight: 600; color: rgba(255, 253, 250, 0.88); border-bottom: 1px solid rgba(255, 253, 250, 0.08); }
  .mobile-nav nav a.is-cta { margin-top: 14px; border: 0; border-radius: var(--r-pill); background: var(--oak); color: var(--text); text-align: center; padding: 14px 20px; font-weight: 700; box-shadow: 0 12px 24px -12px rgba(200, 149, 90, 0.7); }
  .mobile-nav__contact { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 16px var(--gutter) 0; font-size: 14px; }
  .mobile-nav__contact a { color: var(--oak-light); font-weight: 600; }
  body.nav-open { overflow: hidden; }
}
@keyframes nav-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.flash-wrap { margin-top: 24px; }
.page-home .flash-wrap { position: relative; z-index: 3; margin-top: calc(var(--header-h) + 16px); margin-bottom: calc(-1 * var(--header-h)); }

/* ---------- shared blocks ---------- */
.sec { position: relative; padding: clamp(64px, 8vw, 110px) 0; }
.sec--tight { padding: clamp(48px, 6vw, 80px) 0; }
.sec__head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 4vw, 60px); align-items: end; margin-bottom: clamp(24px, 4vw, 44px); }
.sec__head .lead { margin: 0; }
.sec__head-side { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.sec__head-side .lead { flex: 1 1 320px; }
.eyebrow { margin-bottom: 16px; }
.eyebrow--light { color: var(--oak-light); }
.eyebrow--light::before { background: var(--oak-light); }
.h2 { color: var(--text); }
.idx-bg { position: absolute; z-index: 0; font-family: var(--font-display); font-size: clamp(110px, 14vw, 180px); line-height: 1; letter-spacing: -0.02em; color: transparent; -webkit-text-stroke: 1px rgba(12, 59, 93, 0.10); pointer-events: none; user-select: none; }
.idx-bg--r { right: var(--gutter); top: 40px; }
.idx-bg--l { left: var(--gutter); top: 40px; }
.sec > .container { position: relative; z-index: 1; }

.ph { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5), 0 20px 40px -28px rgba(12, 59, 93, 0.5); }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.ph > a[data-lightbox] { display: block; width: 100%; height: 100%; }
.ph:hover img { transform: scale(1.04); }
.ph__n { position: absolute; left: 16px; top: 16px; z-index: 1; height: 30px; padding: 0 12px; border-radius: var(--r-pill); background: rgba(255, 253, 250, 0.92); color: var(--navy); font-family: var(--font-display); font-size: 14px; letter-spacing: 0.06em; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 6px 14px -8px rgba(12, 59, 93, 0.5); pointer-events: none; }
.ph__n i { width: 6px; height: 6px; border-radius: 50%; background: var(--oak); }
.cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 60px 22px 20px; background: linear-gradient(180deg, rgba(8, 42, 68, 0), rgba(8, 42, 68, 0.9)); color: var(--on-navy); display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; pointer-events: none; }
.cap__t { font-family: var(--font-display); font-size: 24px; letter-spacing: 0.03em; text-transform: uppercase; line-height: 1; }
.cap__t--sm { font-size: 20px; }
.cap__k { font-size: 12px; font-weight: 700; color: var(--oak-light); background: rgba(233, 199, 154, 0.16); border: 1px solid rgba(233, 199, 154, 0.35); padding: 4px 10px; border-radius: var(--r-pill); white-space: nowrap; }
.cap-pill { position: absolute; left: 14px; top: 14px; z-index: 1; display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: var(--r-pill); background: rgba(8, 42, 68, 0.75); color: var(--on-navy); font-size: 12px; font-weight: 700; backdrop-filter: blur(6px); pointer-events: none; }

.btn-ghost-light { background: rgba(255, 253, 250, 0.08); color: var(--on-navy); border-color: rgba(255, 253, 250, 0.3); backdrop-filter: blur(8px); }
.btn-ghost-light:hover { background: rgba(255, 253, 250, 0.16); }
.btn--hero { min-height: 56px; padding: 0 8px 0 28px; font-size: 16px; }
.btn--hero .ic { width: 38px; height: 38px; }
.btn-oak { color: var(--text); }
.btn-oak .ic { background: rgba(255, 255, 255, 0.28); }

/* ---------- HOME: hero ---------- */
.hero { position: relative; overflow: hidden; color: var(--on-navy); background: var(--navy-900); padding-top: var(--header-h); min-height: min(820px, 100vh); display: flex; flex-direction: column; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; opacity: 0.9; }
.hero__shade { position: absolute; inset: 0; pointer-events: none; }
.hero__shade--x { background: linear-gradient(90deg, rgba(8, 42, 68, 0.96) 0%, rgba(8, 42, 68, 0.86) 38%, rgba(8, 42, 68, 0.35) 70%, rgba(8, 42, 68, 0.15) 100%); }
.hero__shade--y { background: linear-gradient(180deg, rgba(8, 42, 68, 0.55) 0%, rgba(8, 42, 68, 0) 30%, rgba(8, 42, 68, 0) 70%, rgba(8, 42, 68, 0.9) 100%); }
.hero__shade--stripe { background: repeating-linear-gradient(100deg, rgba(255, 255, 255, 0.03) 0 2px, transparent 2px 9px); }
.saw { position: absolute; opacity: 0.12; pointer-events: none; }
.hero .saw { left: -180px; bottom: -220px; width: 620px; height: 620px; animation: saw-spin 120s linear infinite; }
@keyframes saw-spin { to { transform: rotate(360deg); } }
.hero__in { position: relative; z-index: 1; flex: 1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 60px; align-items: center; padding-top: clamp(40px, 6vw, 92px); padding-bottom: 110px; }
.hero h1 { color: var(--on-navy); font-size: clamp(40px, 6.2vw, 84px); line-height: 0.96; letter-spacing: 0.01em; }
.hero h1 em { font-style: normal; color: var(--oak-light); }
.hero__lead { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.6; color: rgba(255, 253, 250, 0.78); font-weight: 300; max-width: 520px; margin: 28px 0 0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; align-items: center; }
.hero__phone { position: absolute; right: var(--gutter); bottom: 30px; z-index: 1; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: rgba(255, 253, 250, 0.85); }
.hero__phone span { width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 253, 250, 0.1); border: 1px solid rgba(255, 253, 250, 0.2); display: grid; place-items: center; }
.hero__phone svg { width: 15px; height: 15px; }
.hero__dots { position: absolute; left: var(--gutter); bottom: 34px; z-index: 1; display: flex; gap: 8px; align-items: center; }
.hero__dots span { width: 12px; height: 4px; border-radius: 2px; background: rgba(255, 253, 250, 0.4); }
.hero__dots span:first-child { width: 30px; background: var(--oak); }

.glass { background: rgba(255, 253, 250, 0.08); border: 1px solid rgba(255, 253, 250, 0.18); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: var(--r-lg); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6); }
.preview { padding: 22px 22px 20px; transform: rotate(-1.5deg); margin-top: 20px; animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: rotate(-1.5deg) translateY(0); } 50% { transform: rotate(-1.5deg) translateY(-8px); } }
.preview__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.preview__head .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--oak); box-shadow: 0 0 0 4px rgba(200, 149, 90, 0.25); display: inline-block; margin-right: 10px; vertical-align: middle; }
.preview__head .t { font-family: var(--font-display); font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase; }
.preview__head .live { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--oak-light); }
.preview__mat { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: center; padding: 14px; border-radius: 16px; background: rgba(8, 42, 68, 0.45); border: 1px solid rgba(255, 253, 250, 0.12); }
.preview__mat img { width: 96px; height: 72px; object-fit: cover; border-radius: 12px; box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.7); border: 1px solid rgba(255, 253, 250, 0.2); }
.preview__mat b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 18px; letter-spacing: 0.03em; text-transform: uppercase; }
.preview__mat small { display: block; font-size: 13px; color: rgba(255, 253, 250, 0.7); margin-top: 3px; }
.preview__dims { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.preview__dims div { padding: 12px 14px; border-radius: 14px; background: rgba(255, 253, 250, 0.06); border: 1px solid rgba(255, 253, 250, 0.12); }
.preview__dims small { display: block; font-size: 11px; color: rgba(255, 253, 250, 0.6); font-weight: 600; }
.preview__dims b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 22px; margin-top: 2px; letter-spacing: 0.03em; }
.preview__dims b span { font-family: var(--font-body); font-size: 12px; font-weight: 600; color: rgba(255, 253, 250, 0.6); letter-spacing: 0; }
.preview__edge { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding: 0 4px; font-size: 13px; color: rgba(255, 253, 250, 0.8); }
.preview__edge .ok { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--oak-light); }
.preview__edge .ok svg { width: 14px; height: 14px; }
.preview__cta { margin-top: 14px; height: 48px; border-radius: var(--r-pill); background: var(--oak); color: var(--text); display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; gap: 8px; }
.preview__cta svg { width: 14px; height: 14px; }

/* ---------- HOME: stats ---------- */
.stats { position: relative; z-index: 2; margin-top: -60px; }
.stats__card { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; }
.stat { display: flex; flex-direction: column; gap: 4px; padding: 26px 30px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .v { font-family: var(--font-display); font-size: 42px; line-height: 1; letter-spacing: 0.02em; color: var(--navy); }
.stat .l { font-size: 14px; color: var(--text-2); font-weight: 500; }
.stat--navy { background: var(--navy-grad); color: var(--on-navy); }
.stat--navy .v { color: var(--oak-light); }
.stat--navy .l { color: rgba(255, 253, 250, 0.75); }

/* ---------- HOME: machine park ---------- */
.machines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 18vw, 260px); gap: 18px; }
.machines .ph:first-child { grid-column: span 2; grid-row: span 2; }

/* ---------- HOME: materials band ---------- */
.mat-band { position: relative; background: var(--warm-white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.mat-band::before { content: ''; position: absolute; right: -200px; top: -200px; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(circle, rgba(200, 149, 90, 0.16), transparent 65%); }
.mat-band__in { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 70px); align-items: center; }
.mat-band .lead { margin: 22px 0 0; }
.brand-logos { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.brand-logo { display: inline-flex; align-items: center; height: 56px; padding: 0 22px; border-radius: 14px; background: var(--warm-white); border: 1px solid var(--line); box-shadow: 0 10px 24px -18px rgba(12, 59, 93, 0.5); transition: transform var(--fast), box-shadow var(--fast); }
.brand-logo:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.brand-logo img { height: 28px; width: auto; max-width: 120px; object-fit: contain; }
.swatches { position: relative; }
.swatches__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: clamp(120px, 14vw, 190px); gap: 14px; }
.sw { position: relative; overflow: hidden; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5), 0 14px 30px -20px rgba(12, 59, 93, 0.6); }
.sw img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.sw:hover img { transform: scale(1.05); }
.sw__l { position: absolute; left: 10px; right: 10px; bottom: 10px; background: rgba(255, 253, 250, 0.94); border-radius: 10px; padding: 8px 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; pointer-events: none; }
.sw__l b { font-family: var(--font-display); font-weight: 400; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sw__l span { font-size: 11px; font-weight: 700; color: var(--oak-text); background: var(--oak-tint); padding: 2px 8px; border-radius: var(--r-pill); flex: none; }
.swatches__badge { position: absolute; right: -12px; top: -18px; background: var(--navy); color: var(--on-navy); border-radius: var(--r-pill); padding: 10px 16px; font-size: 13px; font-weight: 700; box-shadow: 0 14px 28px -12px rgba(12, 59, 93, 0.8); display: flex; align-items: center; gap: 8px; }
.swatches__badge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--oak); }

/* ---------- HOME: references mosaic ---------- */
.ref-mosaic { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(160px, 15vw, 220px); gap: 18px; }
.ref-mosaic .ph:nth-child(1) { grid-column: span 5; grid-row: span 2; }
.ref-mosaic .ph:nth-child(2) { grid-column: span 4; grid-row: span 2; }
.ref-mosaic .ph { grid-column: span 3; }
.ref-mosaic .ph--cta { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 20px; background: var(--navy-grad); color: var(--on-navy); }
.ph--cta .t { font-family: var(--font-display); font-size: 22px; letter-spacing: 0.03em; text-transform: uppercase; line-height: 1.05; }
.ph--cta p { font-size: 13px; color: rgba(255, 253, 250, 0.75); margin: 0; }
.ph--cta .btn { margin-top: 4px; }

/* ---------- HOME: order band ---------- */
.order-band { position: relative; overflow: hidden; color: var(--on-navy); background: radial-gradient(ellipse at 80% 10%, rgba(200, 149, 90, 0.28), transparent 50%), var(--pinstripe), var(--navy-grad); }
.order-band .saw { right: -160px; top: -160px; width: 520px; height: 520px; opacity: 0.1; }
.order-band .container { position: relative; z-index: 1; }
.order-band__head { max-width: 760px; }
.order-band h2 { color: var(--on-navy); }
.order-band .lead { color: rgba(255, 253, 250, 0.78); margin: 22px 0 0; }
.steps { position: relative; margin-top: 56px; }
.steps::before { content: ''; position: absolute; left: 60px; right: 60px; top: 52px; height: 2px; background: linear-gradient(90deg, rgba(200, 149, 90, 0.2), var(--oak) 30%, var(--oak) 70%, rgba(200, 149, 90, 0.2)); }
.steps__grid { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.step { position: relative; padding: 30px 26px 28px; border-radius: var(--r-lg); background: var(--warm-white); border: 1px solid var(--line); box-shadow: 0 24px 48px -30px rgba(12, 59, 93, 0.35); color: var(--text); transition: transform var(--slow), box-shadow var(--slow); }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.step .n { font-family: var(--font-display); font-size: 44px; line-height: 1; color: var(--oak); letter-spacing: 0.02em; }
.step .t { font-size: 18px; font-weight: 700; letter-spacing: -0.2px; margin-top: 18px; }
.step .d { font-size: 15px; color: var(--text-2); margin-top: 6px; line-height: 1.5; }
.order-band__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 44px; }
.order-band__actions .btn--xl { min-height: 60px; font-size: 17px; padding: 0 8px 0 30px; }
.order-band__actions .btn--xl .ic { width: 44px; height: 44px; }
.order-band__note { font-size: 14px; color: rgba(255, 253, 250, 0.7); }
.order-band__note a { color: var(--oak-light); font-weight: 700; }
.order-band__note a:hover { text-decoration: underline; }

/* ---------- HOME: contact + map ---------- */
.contact-band { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; align-items: stretch; }
.contact-card { padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(135deg, #fbf5ec, var(--oak-tint)); border-color: rgba(200, 149, 90, 0.45); }
.contact-card h2 { font-size: clamp(30px, 3.4vw, 46px); }
.contact-card__addr { font-size: 16px; color: var(--text-2); margin-top: 14px; line-height: 1.6; }
.contact-card__addr a { color: var(--navy); font-weight: 600; }
.contact-card__phone { display: flex; align-items: center; gap: 18px; margin-top: 34px; }
.contact-card__phone .ic { width: 60px; height: 60px; border-radius: 50%; background: var(--navy); display: grid; place-items: center; box-shadow: 0 14px 28px -12px rgba(12, 59, 93, 0.8); flex: none; }
.contact-card__phone .ic svg { width: 24px; height: 24px; }
.contact-card__phone a { font-family: var(--font-display); font-size: clamp(28px, 3vw, 38px); letter-spacing: 0.02em; color: var(--navy); }
.map-card { position: relative; overflow: hidden; min-height: 360px; background: linear-gradient(135deg, #dfe6e2, #cfd9d3); display: block; color: inherit; }
.map-card::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(12, 59, 93, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(12, 59, 93, 0.08) 1px, transparent 1px); background-size: 40px 40px; }
.map-card__road { position: absolute; background: rgba(255, 253, 250, 0.92); }
.map-card__road--h { left: -10%; right: -10%; top: 48%; height: 22px; transform: rotate(-9deg); }
.map-card__road--v { top: -10%; bottom: -10%; left: 60%; width: 16px; transform: rotate(14deg); }
.map-card__pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); width: 52px; height: 52px; filter: drop-shadow(0 10px 12px rgba(12, 59, 93, 0.35)); transition: transform var(--slow); }
.map-card:hover .map-card__pin { transform: translate(-50%, -110%); }
.map-card__label { position: absolute; left: 20px; bottom: 20px; right: 20px; background: var(--warm-white); border-radius: 16px; padding: 16px 18px; box-shadow: 0 14px 30px -14px rgba(12, 59, 93, 0.5); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.map-card__label b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 17px; letter-spacing: 0.03em; text-transform: uppercase; color: var(--text); }
.map-card__label small { display: block; font-size: 13px; color: var(--text-2); }
.map-card--sm { min-height: 330px; }
.map-card--sm .map-card__label { right: auto; }

/* ---------- page hero (subpages) ---------- */
.page-hero { color: var(--on-navy); background: var(--pinstripe), var(--navy-grad); }
.page-hero__in { padding-top: clamp(36px, 5vw, 56px); padding-bottom: clamp(56px, 6vw, 84px); display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.page-hero h1 { color: var(--on-navy); font-size: clamp(44px, 5.5vw, 72px); }
.page-hero .eyebrow { color: var(--oak); margin-bottom: 14px; }
.page-hero__lead { font-size: 17px; line-height: 1.55; color: rgba(255, 253, 250, 0.75); font-weight: 300; max-width: 520px; margin: 0; }
.page-hero--tight .page-hero__in { padding-bottom: clamp(40px, 5vw, 56px); }
.pull-up { position: relative; z-index: 2; margin-top: -32px; }

/* ---------- MATERIALS page ---------- */
.filter-card { padding: 22px 26px; display: grid; grid-template-columns: minmax(0, 1fr) 260px auto; gap: 24px; align-items: end; }
.filter-card .label { display: block; margin-bottom: 8px; }
.filter-card__actions { display: flex; gap: 8px; }
.chip-radio { position: relative; }
.chip-radio input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip-radio span { display: inline-flex; align-items: center; height: 42px; padding: 0 18px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: var(--white); font-size: 14px; font-weight: 500; color: var(--text-2); white-space: nowrap; cursor: pointer; transition: all var(--fast); }
.chip-radio:hover span { border-color: var(--navy); color: var(--navy); }
.chip-radio input:checked + span { border-color: var(--oak); background: var(--oak-tint); color: var(--oak-text); font-weight: 600; }
.chip-radio input:focus-visible + span { outline: 2px solid var(--oak); outline-offset: 2px; }
.search-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 28px 0 20px; }
.search-box { position: relative; width: min(420px, 100%); }
.search-box svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--text-2); pointer-events: none; }
.search-box .input { padding-left: 44px; min-height: 50px; }
.result-info { font-size: 14px; color: var(--text-2); }
.result-info b { color: var(--text); }
.mat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.mat-card { overflow: hidden; display: flex; flex-direction: column; transition: transform var(--slow), box-shadow var(--slow); }
.mat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.mat-card__img { display: block; height: 200px; background: var(--surface); position: relative; overflow: hidden; }
.mat-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.mat-card:hover .mat-card__img img { transform: scale(1.04); }
.mat-card__img--empty { display: grid; place-items: center; color: var(--text-3); font-size: 13px; font-weight: 600; background: repeating-linear-gradient(45deg, var(--surface) 0 12px, #e8dfd2 12px 24px); }
.mat-card__body { padding: 18px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.mat-card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mat-card__name { font-family: var(--font-display); font-size: 22px; letter-spacing: 0.03em; text-transform: uppercase; color: var(--text); line-height: 1.05; }
.tag { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: var(--r-pill); font-size: 12px; font-weight: 700; background: var(--surface); color: var(--text-2); white-space: nowrap; }
.mat-card__sub { font-size: 13px; color: var(--text-2); margin: 4px 0 12px; }
.kv { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding: 7px 0; border-bottom: 1px solid rgba(12, 59, 93, 0.07); }
.kv:last-of-type { border-bottom: 0; }
.kv .k { color: var(--text-2); }
.kv .v { font-weight: 600; text-align: right; }
.mat-card__actions { display: flex; gap: 8px; margin-top: auto; padding-top: 14px; }
.mat-card__actions .btn { min-height: 44px; font-size: 14px; }
.mat-card__actions .btn-p { flex: 1; }
.empty { padding: clamp(40px, 6vw, 72px) 24px; text-align: center; }
.empty svg { width: 48px; height: 48px; margin: 0 auto 16px; color: var(--oak); }
.pagination { justify-content: center; margin-top: 36px; }
.pagination a, .pagination span { min-width: 44px; height: 44px; }
.pagination svg { width: 14px; height: 14px; }
.pagination .is-disabled { opacity: 0.4; pointer-events: none; }

/* ---------- REFERENCES page ---------- */
.chip-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; background: var(--warm-white); border: 1px solid var(--line); border-radius: 28px; padding: 6px; box-shadow: 0 18px 40px -24px rgba(12, 59, 93, 0.28); }
.chip-bar .chip { height: 42px; padding: 0 18px; font-size: 14px; font-weight: 500; background: var(--white); }
.chip-bar .chip.is-active { border-color: var(--oak); background: var(--oak-tint); color: var(--oak-text); font-weight: 600; }
.chip-bar .chip.is-active .count { background: rgba(138, 90, 37, 0.12); }
.chip-bar__info { margin-left: auto; align-self: center; padding: 0 16px; font-size: 13px; color: var(--text-2); white-space: nowrap; }
.ref-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: clamp(200px, 22vw, 300px); gap: 16px; grid-auto-flow: dense; }
.ref-grid .ph { border-radius: 18px; }
.ref-grid .ph:nth-child(6n+1):not(.ph--cta) { grid-column: span 2; }
.ref-grid .ph--cta { grid-column: span 1; }
.ref-grid .ph--cta .t { font-size: 24px; }
.ref-grid .ph--cta p { font-size: 14px; }
.load-more { display: flex; justify-content: center; margin-top: 36px; }

/* ---------- CONTACT page ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: start; }
.contact-side { display: flex; flex-direction: column; gap: 20px; }
.crows { padding: 8px 26px 12px; }
.crow { display: flex; align-items: flex-start; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.crow:last-child { border-bottom: 0; }
.crow .i { width: 40px; height: 40px; border-radius: 12px; background: var(--oak-tint); display: grid; place-items: center; flex: none; color: var(--oak-text); }
.crow .i svg { width: 18px; height: 18px; }
.crow .k { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 4px; }
.crow .v { font-size: 17px; font-weight: 600; color: var(--text); line-height: 1.4; }
.crow .v a { color: var(--navy); }
.crow .v a:hover { color: var(--oak-text); }
.form-card { padding: 30px 32px 32px; }
.form-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.form-card__head h2 { font-size: clamp(26px, 2.6vw, 32px); }
.form-card__head .small { color: var(--text-2); }
.form-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 24px; }
.form-foot .btn { min-height: 54px; padding: 0 28px; font-size: 16px; }
.form-foot .btn svg { width: 18px; height: 18px; }
.form-foot p { margin: 0; font-size: 13px; color: var(--text-2); line-height: 1.5; }
.form-foot p a { font-weight: 600; color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- PRIVACY page ---------- */
.legal-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 56px; align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); }
.toc__t { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; }
.toc a { display: block; font-size: 14px; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--text-2); transition: color var(--fast); }
.toc a:hover, .toc a.is-active { color: var(--navy); font-weight: 700; }
.legal { background: var(--warm-white); border: 1px solid var(--line); border-radius: 20px; padding: 12px clamp(20px, 3vw, 40px) 24px; }
.legal section { padding: 26px 0; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 24px); }
.legal section:last-child { border-bottom: 0; }
.legal h2 { font-size: clamp(24px, 2.4vw, 30px); margin-bottom: 12px; }
.legal h3 { font-family: var(--font-body); font-weight: 700; font-size: 16px; text-transform: none; letter-spacing: 0; color: var(--text); margin: 18px 0 6px; }
.legal h4 { font-size: 15px; font-weight: 700; color: var(--navy); margin: 16px 0 4px; }
.legal p { margin: 0 0 12px; font-size: 16px; line-height: 1.65; color: #3b4753; }
.legal p:last-child { margin-bottom: 0; }
.legal ul { list-style: none; margin: 8px 0 14px; padding: 0; }
.legal li { position: relative; padding-left: 22px; margin-bottom: 6px; font-size: 16px; line-height: 1.6; color: #3b4753; }
.legal li::before { content: ''; position: absolute; left: 4px; top: 11px; width: 7px; height: 7px; border-radius: 50%; background: var(--oak); }
.legal a { color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; word-break: break-word; }
.legal a:hover { color: var(--oak-text); }
.legal dl { margin: 0 0 12px; }
.legal dt { font-weight: 700; color: var(--text); margin-top: 8px; }
.legal dd { margin: 0; color: #3b4753; line-height: 1.6; }
.legal .box { background: var(--cream); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin: 12px 0 16px; }

/* ---------- footer ---------- */
.site-footer { color: var(--on-navy); background: var(--pinstripe), linear-gradient(180deg, var(--navy-700) 0%, var(--navy-900) 100%); margin-top: auto; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: 40px; padding: clamp(48px, 6vw, 72px) 0 36px; }
.site-footer__grid > * { min-width: 0; }
.site-footer .brand__logo { box-shadow: none; }
.site-footer__about { font-size: 15px; line-height: 1.7; color: rgba(255, 253, 250, 0.7); max-width: 380px; margin: 20px 0 0; font-weight: 300; }
.site-footer__title { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--oak-light); margin-bottom: 16px; }
.site-footer__links { display: flex; flex-direction: column; gap: 10px; }
.site-footer__links--cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; }
.site-footer__links a, .site-footer__links span { display: flex; align-items: flex-start; gap: 10px; color: rgba(255, 253, 250, 0.72); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; transition: color var(--fast); }
.site-footer__links svg { margin-top: 3px; }
.site-footer__links a:hover { color: var(--oak-light); }
.site-footer__links svg { width: 15px; height: 15px; color: var(--oak-light); flex: none; }
.site-footer__bottom { padding: 22px 0 30px; border-top: 1px solid rgba(255, 253, 250, 0.1); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--on-navy-3); }
.site-footer__bottom a { color: rgba(255, 253, 250, 0.8); }
.site-footer__bottom a:hover { color: var(--oak-light); }

/* ---------- lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 1500; background: rgba(8, 42, 68, 0.92); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 24px; animation: lb-in var(--slow); }
.lb[hidden] { display: none; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lb__fig { margin: 0; max-width: min(1200px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lb__img { max-width: 100%; max-height: calc(100vh - 120px); object-fit: contain; border-radius: 14px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8); background: var(--surface); animation: lb-img var(--slow); }
@keyframes lb-img { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }
.lb__cap { color: var(--on-navy); font-size: 14px; text-align: center; display: flex; align-items: center; gap: 10px; }
.lb__cap b { font-family: var(--font-display); font-weight: 400; font-size: 20px; letter-spacing: 0.04em; text-transform: uppercase; }
.lb__cap .n { font-size: 12px; color: rgba(255, 253, 250, 0.6); }
.lb__btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 253, 250, 0.1); border: 1px solid rgba(255, 253, 250, 0.25); color: var(--on-navy); display: grid; place-items: center; transition: background var(--fast); }
.lb__btn:hover { background: rgba(255, 253, 250, 0.22); }
.lb__btn svg { width: 20px; height: 20px; }
.lb__close { right: 20px; top: 20px; }
.lb__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb__next { right: 20px; top: 50%; transform: translateY(-50%); }
body.lb-open { overflow: hidden; }

/* ---------- reveal on scroll ---------- */
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
html.js .reveal.is-visible { opacity: 1; transform: none; }
html.js .reveal[data-delay="1"] { transition-delay: 90ms; }
html.js .reveal[data-delay="2"] { transition-delay: 180ms; }
html.js .reveal[data-delay="3"] { transition-delay: 270ms; }
html.js .reveal[data-delay="4"] { transition-delay: 360ms; }
html.js .reveal[data-delay="5"] { transition-delay: 450ms; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .preview, .hero .saw { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .hero__in { grid-template-columns: minmax(0, 1fr); }
  .preview { display: none; }
  .filter-card { grid-template-columns: minmax(0, 1fr) 220px; }
  .filter-card__actions { grid-column: span 2; }
  .legal-grid { grid-template-columns: 240px minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 960px) {
  .sec__head, .mat-band__in, .contact-band, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .stats { margin-top: -40px; }
  .stats__card { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 20px 22px; border-bottom: 1px solid var(--line); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(n+3) { border-bottom: 0; }
  .machines { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; gap: 10px; }
  .machines .ph:first-child { grid-column: span 2; grid-row: span 1; }
  .swatches__badge { right: 0; top: -14px; }
  .ref-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 200px; gap: 10px; }
  .ref-mosaic .ph, .ref-mosaic .ph:nth-child(1), .ref-mosaic .ph:nth-child(2) { grid-column: span 1; grid-row: span 1; }
  .ref-mosaic .ph:nth-child(2) { grid-column: span 2; }
  .cap { padding: 30px 14px 12px; }
  .cap__t, .cap__t--sm { font-size: 17px; }
  .cap__k { display: none; }
  .steps::before { display: none; }
  .steps__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .step { padding: 18px 16px; }
  .step .n { font-size: 32px; }
  .step .t { font-size: 15px; margin-top: 12px; }
  .step .d { font-size: 13px; }
  .mat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .ref-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 200px; gap: 10px; }
  .ref-grid .ph:nth-child(6n+1):not(.ph--cta) { grid-column: span 2; }
  .legal-grid { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }
  .toc__list { display: flex; flex-wrap: wrap; gap: 6px; }
  .toc a { padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); font-size: 13px; background: var(--warm-white); }
  .form-card { padding: 22px 20px 24px; }
  .crows { padding: 4px 18px 8px; }
  .idx-bg { display: none; }
}
@media (max-width: 860px) {
  .site-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 640px) {
  .hero { min-height: 0; }
  .hero__in { padding-top: 40px; padding-bottom: 70px; }
  .hero h1 { font-size: 38px; }
  .hero__actions .btn { width: 100%; }
  .hero__phone { display: none; }
  .filter-card { grid-template-columns: minmax(0, 1fr); padding: 18px; }
  .filter-card__actions { grid-column: auto; }
  .filter-card__actions .btn { flex: 1; }
  .mat-grid { grid-template-columns: minmax(0, 1fr); }
  .mat-card__img { height: 180px; }
  .chip-bar { border-radius: 24px; }
  .chip-bar .chip { height: 38px; padding: 0 14px; font-size: 13px; }
  .chip-bar__info { width: 100%; text-align: center; padding: 6px 0 4px; margin: 0; }
  .ref-grid { grid-auto-rows: 170px; }
  .brand-logo { height: 46px; padding: 0 14px; }
  .brand-logo img { height: 22px; }
  .contact-card__phone a { font-size: 26px; }
  .map-card { min-height: 280px; }
  .map-card__label { flex-direction: column; align-items: flex-start; }
  .form-foot .btn { width: 100%; }
  .site-footer__links--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lb { padding: 12px; }
  .lb__btn { width: 40px; height: 40px; }
  .lb__prev { left: 8px; } .lb__next { right: 8px; } .lb__close { right: 8px; top: 8px; }
}
