/* ===== Lesalum design tokens ===== */
:root {
  --brand: #0373B5;
  --brand-dark: #035C91;
  --brand-tint: #EAF3FA;
  --ink: #0F1720;
  --text: #334155;
  --muted: #5B6675;
  --line: #E3E8EE;
  --line-strong: #C9D1DA;
  --bg: #FFFFFF;
  --surface: #F5F7F9;
  --alu: #2B3036;
  --wood: #B57C48;
  --error: #C62828;

  --font-head: "EB Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 6px;
  --container: 1200px;
  --gutter: 24px;
  --shadow: 0 1px 2px rgba(15,23,32,.06), 0 8px 24px rgba(15,23,32,.06);
  --shadow-lg: 0 2px 4px rgba(15,23,32,.06), 0 18px 40px rgba(15,23,32,.12);
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4 { color: var(--ink); margin: 0 0 .5em; line-height: 1.15; }
h1, h2 { font-family: var(--font-head); font-weight: 500; letter-spacing: -.01em; }
h1 { font-size: clamp(2.5rem, 5.2vw, 4.1rem); }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.12rem; font-weight: 600; letter-spacing: -.005em; }
h4 { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 2px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.ico { width: 18px; height: 18px; flex: none; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; color: #fff; }

.eyebrow {
  font: 600 13px/1.2 var(--font-body); letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 14px; display: flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; }
.eyebrow--light { color: #8CC8EE; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 22px; border-radius: var(--radius);
  font: 600 15px/1 var(--font-body); border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn--lg { min-height: 54px; padding: 0 28px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); color: #fff; box-shadow: 0 8px 20px rgba(3,115,181,.28); transform: translateY(-1px); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
@media (hover: hover) { .btn--ghost:hover { background: var(--ink); color: #fff; } }
.btn--ghost:active { background: var(--ink); color: #fff; }
.btn .ico { transition: transform .2s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }

/* ===== Top bar ===== */
.topbar { background: var(--ink); color: #C9D1DA; font-size: 13.5px; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 16px; }
.topbar__right { display: flex; gap: 24px; }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; color: inherit; }
.topbar__item .ico { width: 15px; height: 15px; color: #8CC8EE; }
a.topbar__item:hover { color: #fff; }

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line);
  transition: box-shadow .2s var(--ease);
}
/* blur lives on a pseudo-element so the fixed mobile menu isn't trapped inside the header */
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255,255,255,.94);
  backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px);
}
.header.is-scrolled { box-shadow: 0 6px 24px rgba(15,23,32,.07); }
.header__inner { display: flex; align-items: center; gap: 32px; min-height: 76px; }

.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--brand); }
.logo__mark { width: 40px; height: 40px; fill: var(--brand); }
.logo__word { font: 500 30px/1 var(--font-head); letter-spacing: .02em; }
.logo__les { color: var(--ink); }
.logo__alum { color: var(--brand); }

.nav { margin-left: auto; }
.nav__list { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav__item { position: relative; }
.nav__item > a {
  display: flex; align-items: center; gap: 6px; padding: 10px 14px; color: var(--ink);
  font-weight: 500; font-size: 15.5px; border-radius: var(--radius);
}
.nav__item > a:hover { color: var(--brand); background: var(--brand-tint); }
.nav__item--has-menu > a::after {
  content: ""; width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg) translateY(-3px); margin-left: 2px;
}
.nav__menu {
  list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 6px); left: 0; min-width: 260px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .18s var(--ease);
}
.nav__item--has-menu:hover .nav__menu,
.nav__item--has-menu:focus-within .nav__menu { opacity: 1; visibility: visible; transform: none; }
.nav__menu a { display: block; padding: 10px 12px; color: var(--text); border-radius: 4px; font-size: 15px; }
.nav__menu a:hover { background: var(--surface); color: var(--brand); }
.nav__cta-mobile { display: none; }
.header__cta { flex: none; }

.burger { display: none; width: 46px; height: 46px; border: 1px solid var(--line); background: #fff; border-radius: var(--radius); cursor: pointer; padding: 0 12px; flex-direction: column; justify-content: center; gap: 5px; }
.burger span { display: block; height: 2px; background: var(--ink); transition: transform .2s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  background:
    linear-gradient(180deg, #fff 0%, var(--surface) 100%);
}
.hero::before { /* fine technical grid */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px; opacity: .45;
  mask-image: radial-gradient(ellipse at 75% 40%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 75% 40%, #000 0%, transparent 70%);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding-top: 80px; padding-bottom: 88px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }
.hero__trust { list-style: none; margin: 0; padding: 24px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 15px; font-weight: 500; color: var(--ink); }
.hero__trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust .ico { color: var(--brand); width: 20px; height: 20px; }

.hero__visual { margin: 0; }
.hero__visual svg { width: 100%; height: auto; border-radius: 8px; box-shadow: var(--shadow-lg); }
.hero__visual figcaption { font-size: 12.5px; color: var(--muted); margin-top: 10px; text-align: right; }

/* ===== Values ===== */
.values { background: var(--alu); color: #C9D1DA; }
.values__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.value { padding: 40px 28px; border-left: 1px solid rgba(255,255,255,.1); }
.value:first-child { border-left: 0; padding-left: 0; }
.value__num { display: block; font: 500 15px/1 var(--font-body); color: #8CC8EE; margin-bottom: 14px; letter-spacing: .08em; }
.value h3 { color: #fff; }
.value p { font-size: 15px; margin: 0; }

/* ===== Sections ===== */
.section { padding: 104px 0; }
.section--surface { background: var(--surface); }
.section__head { max-width: 720px; margin-bottom: 52px; }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 32px; }
.section__head--row .section__lead { max-width: 380px; margin-bottom: .6em; }
.section__lead { color: var(--muted); font-size: 1.08rem; margin: 0; }

/* ===== Products ===== */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 8px;
  color: var(--text); overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--brand); color: var(--text); }
.product__art { background: var(--surface); color: var(--alu); display: grid; place-items: center; aspect-ratio: 16 / 9; border-bottom: 1px solid var(--line); }
.product__art svg { width: 108px; height: 108px; }
.product__body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.product__body p { font-size: 15.5px; color: var(--muted); }
.product__link { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--brand); }
.product:hover .product__link .ico { transform: translateX(3px); }
.product__link .ico { transition: transform .2s var(--ease); }
.product--featured { grid-column: span 2; flex-direction: row; }
.product--featured .product__art { aspect-ratio: auto; flex: 1 1 50%; border-bottom: 0; border-right: 1px solid var(--line); background: linear-gradient(135deg, var(--brand-tint), var(--surface)); }
.product--featured .product__art svg { width: 160px; height: 160px; color: var(--alu); }
.product--featured .product__body { flex: 1 1 50%; padding: 36px; justify-content: center; }
.product--featured h3 { font-family: var(--font-head); font-weight: 500; font-size: 1.9rem; }
.tag { align-self: flex-start; font: 600 12px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--brand); background: var(--brand-tint); padding: 7px 10px; border-radius: 4px; margin-bottom: 16px; }

/* ===== Colors ===== */
.colors { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.textlink { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.swatches { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.swatches li { font-weight: 600; color: var(--ink); font-size: 15px; }
.swatches small { display: block; font-weight: 400; color: var(--muted); font-size: 13.5px; }
.swatch { display: block; aspect-ratio: 4 / 3; border-radius: 6px; margin-bottom: 10px; background: var(--c); border: 1px solid rgba(15,23,32,.12); box-shadow: inset 0 -20px 30px rgba(0,0,0,.08), inset 0 10px 20px rgba(255,255,255,.12); }
.swatch--wood { background: repeating-linear-gradient(100deg, #A56F3F 0 6px, #B57C48 6px 11px, #9C6838 11px 14px, #BE8752 14px 22px); }

/* ===== Steps ===== */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; }
.step { position: relative; padding: 0 28px 0 0; }
.step::before { content: ""; position: absolute; top: 24px; left: 56px; right: 8px; height: 1px; background: var(--line-strong); }
.step:last-child::before { display: none; }
.step__n { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--brand); color: var(--brand); font: 500 22px/1 var(--font-head); margin-bottom: 22px; background: #fff; position: relative; }
.step p { font-size: 15.5px; color: var(--muted); }

/* ===== Catalogs ===== */
.catalogs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.catalog { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 20px; }
.catalog > div { flex: 1; min-width: 0; }
.catalog h3 { font-size: 16px; margin: 0 0 2px; }
.catalog p { margin: 0; font-size: 13.5px; color: var(--muted); }
.catalog__ico { width: 40px; height: 40px; color: var(--brand); flex: none; }
.iconbtn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius); border: 1px solid var(--line); color: var(--ink); flex: none; transition: all .2s var(--ease); }
.iconbtn:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ===== About ===== */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: center; }
.about__visual { aspect-ratio: 1; background: var(--surface); border-radius: 8px; display: grid; place-items: center; position: relative; overflow: hidden; }
.about__visual svg { width: 58%; fill: var(--brand); }
.about p { font-size: 1.05rem; }

/* ===== Inquiry ===== */
.section--dark { background: var(--ink); color: #C9D1DA; }
.section--dark h2 { color: #fff; }
.inquiry { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; }
.inquiry > *, .hero__inner > *, .colors > *, .about > * { min-width: 0; }
.field input[type="file"] { max-width: 100%; width: 100%; }
.contact { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 14px; }
.contact li { display: flex; align-items: center; gap: 12px; font-size: 16px; }
.contact .ico { color: #8CC8EE; width: 20px; height: 20px; }
.contact a { color: #fff; }
.contact a:hover { color: #8CC8EE; }

.form { background: #fff; color: var(--text); border-radius: 8px; padding: 36px; box-shadow: var(--shadow-lg); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; margin-bottom: 18px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: #fff;
  border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 12px 14px; min-height: 48px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; }
.field input[type="file"] { padding: 10px; font-size: 14.5px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(3,115,181,.18); }
.field__hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.field__error { display: none; font-size: 13.5px; color: var(--error); margin-top: 6px; }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--error); }
.field.is-invalid .field__error { display: block; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; margin: 4px 0 6px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brand); flex: none; }
.field__error--check { margin: 0 0 14px 32px; }
.form.check-invalid .field__error--check { display: block; }
.form .btn { margin-top: 14px; }
.hp { position: absolute; left: -9999px; }

/* ===== Footer ===== */
.footer { background: #0A1016; color: #9AA5B1; font-size: 15px; padding-top: 72px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; }
.footer h4 { color: #fff; margin-bottom: 18px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { color: #C9D1DA; }
.footer a:hover { color: #fff; }
.logo--footer .logo__les { color: #fff; }
.logo--footer .logo__alum { color: #4FA6DC; }
.logo--footer .logo__mark { fill: #4FA6DC; }
.footer__text { margin-top: 18px; max-width: 30ch; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid rgba(255,255,255,.08); padding-top: 22px; padding-bottom: 28px; font-size: 13.5px; }

.sticky-cta { display: none; }

/* ===== Reveal on scroll ===== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .header__inner { gap: 20px; }
  .nav__item > a { padding: 10px 10px; }
}
@media (max-width: 1024px) {
  .burger { display: inline-flex; margin-left: auto; }
  .header__cta { display: none; }
  .nav {
    position: fixed; inset: 116px 0 0 0; background: #fff; padding: 16px var(--gutter) 32px; overflow-y: auto;
    transform: translateX(100%); visibility: hidden; transition: transform .25s var(--ease), visibility .25s;
    border-top: 1px solid var(--line);
  }
  .header.is-scrolled .nav { inset-block-start: 76px; }
  .nav.is-open { transform: none; visibility: visible; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__item > a { font-size: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__item > a:hover { background: none; }
  .nav__item--has-menu > a::after { display: none; }
  .nav__menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 4px 0 8px 12px; min-width: 0; }
  .nav__cta-mobile { display: flex; margin-top: 24px; width: 100%; }

  .hero__inner { grid-template-columns: 1fr; gap: 48px; padding-top: 56px; padding-bottom: 64px; }
  .hero__visual { max-width: 560px; }
  .values__grid { grid-template-columns: repeat(2, 1fr); }
  .value { padding: 32px 24px; }
  .value:nth-child(odd) { border-left: 0; padding-left: 0; }
  .value:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.1); }
  .products { grid-template-columns: repeat(2, 1fr); }
  .colors, .about, .inquiry { grid-template-columns: 1fr; gap: 40px; }
  .about__visual { max-width: 320px; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 40px 0; }
  .step:nth-child(2)::before { display: none; }
  .catalogs { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .topbar__inner > .topbar__item { display: none; }
  .topbar__inner { justify-content: center; }
  .topbar__right { gap: 18px; }
  .header__inner { min-height: 68px; }
  .nav { inset: 108px 0 0 0; }
  .header.is-scrolled .nav { inset-block-start: 68px; }
  .logo__mark { width: 32px; height: 32px; }
  .logo__word { font-size: 25px; }
  .hero__actions .btn { width: 100%; }
  .section { padding: 72px 0; }
  .section__head--row { display: block; }
  .values__grid { grid-template-columns: 1fr; }
  .value, .value:nth-child(odd) { padding: 26px 0; border-left: 0; }
  .value + .value { border-top: 1px solid rgba(255,255,255,.1); }
  .products { grid-template-columns: 1fr; }
  .product--featured { grid-column: auto; flex-direction: column; }
  .product--featured .product__art { aspect-ratio: 16 / 9; border-right: 0; border-bottom: 1px solid var(--line); }
  .product--featured .product__art svg { width: 120px; height: 120px; }
  .product--featured .product__body { padding: 24px; }
  .swatches { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .step { padding: 0 0 0 68px; }
  .step__n { position: absolute; left: 0; top: 0; margin: 0; }
  .step::before { display: none; }
  .catalogs { grid-template-columns: 1fr; }
  .form { padding: 24px 20px; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .sticky-cta {
    display: flex; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40;
    min-height: 52px; align-items: center; justify-content: center; border-radius: var(--radius);
    background: var(--brand); color: #fff; font-weight: 600; box-shadow: 0 10px 28px rgba(3,115,181,.35);
    transform: translateY(140%); transition: transform .25s var(--ease);
  }
  .sticky-cta.is-visible { transform: none; }
  .sticky-cta:hover { color: #fff; }
  .footer { padding-bottom: 76px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
