/* ============================================================
   BAUEN Folie CZ — úvodní stránka
   Clean industrial · white/grey · charcoal · one restrained accent
   Archivo (headings) + IBM Plex Sans (text)
   ============================================================ */

:root {
  --bg:    #ffffff;
  --bg-2:  #f4f4f2;
  --bg-3:  #ebebe8;
  --ink:   #17191d;
  --ink-2: #565d66;
  --ink-3: #8a9099;
  --dark:  #15181c;
  --dark-2:#101317;
  --accent:  #0095da;
  --accent-2:#0a6fa0;
  --line:  rgba(23, 25, 29, .12);
  --line-light: rgba(255, 255, 255, .14);

  --shell: 1140px;
  --ease: cubic-bezier(.4, 0, .2, 1);
  --shadow: 0 1px 2px rgba(23,25,29,.05), 0 12px 28px -20px rgba(23,25,29,.28);

  --ff-display: "Archivo", system-ui, sans-serif;
  --ff-body: "IBM Plex Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  -webkit-tap-highlight-color: rgba(26, 110, 160, .14);
}

:where(section[id], [id]:not(body)) { scroll-margin-top: 92px; }

h1, h2, h3 { font-family: var(--ff-display); font-weight: 700; margin: 0; letter-spacing: -.02em; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
a, button, input, textarea { touch-action: manipulation; }

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: 28px; }

.skip-link { position: absolute; left: 18px; top: -60px; background: var(--dark); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 200; transition: top .2s var(--ease); }
.skip-link:focus { top: 14px; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

/* ---------- Buttons ---------- */
.btn {
  --_bg: var(--dark); --_fg: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--ff-display); font-weight: 600; font-size: 1rem;
  padding: 14px 26px; border: 0; border-radius: 8px;
  background: var(--_bg); color: var(--_fg);
  cursor: pointer; text-decoration: none;
  transition: background .2s var(--ease), transform .15s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 10px 18px; font-size: .92rem; }
.btn-primary { --_bg: var(--dark); }
.btn-primary:hover { --_bg: #000; }
.btn-accent { --_bg: var(--accent); }
.btn-accent:hover { --_bg: var(--accent-2); }
.btn-ghost { --_bg: transparent; --_fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { background: var(--bg-2); }
.btn-ghost-light { --_bg: transparent; --_fg: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); }
.btn-ghost-light:hover { background: rgba(255,255,255,.08); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; margin-right: auto; }
.brand img { height: 40px; width: auto; display: block; }
.footer-logo-img { height: 34px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-family: var(--ff-display); font-weight: 800; font-size: 1.18rem; letter-spacing: .01em; color: var(--ink); }
.brand-text small { font-family: var(--ff-display); font-weight: 600; font-size: .58rem; letter-spacing: .28em; text-transform: uppercase; color: var(--ink-3); margin-top: 3px; }

.site-nav { display: flex; gap: 4px; }
.site-nav a { font-family: var(--ff-display); font-weight: 600; font-size: .96rem; text-decoration: none; color: var(--ink-2); padding: 9px 14px; border-radius: 7px; transition: color .2s var(--ease), background .2s var(--ease); }
.site-nav a:hover { color: var(--ink); background: var(--bg-2); }

.header-right { display: flex; align-items: center; gap: 18px; }
.header-phone { font-family: var(--ff-display); font-weight: 700; font-size: .96rem; text-decoration: none; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.header-phone:hover { color: var(--accent); }

.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; background: transparent; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; margin-inline: auto; background: var(--ink); transition: transform .25s var(--ease), opacity .2s var(--ease); }
.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); }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: clamp(64px, 9vw, 120px) 0 clamp(56px, 7vw, 96px); }
.kicker { font-family: var(--ff-display); font-weight: 600; font-size: .82rem; letter-spacing: .04em; color: var(--accent-2); margin: 0 0 22px; }
.hero-title {
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -.035em;
  max-width: 18ch;
  margin: 0;
  text-wrap: balance;
}
.hero-lead { margin: 26px 0 34px; font-size: 1.18rem; color: var(--ink-2); max-width: 60ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-facts {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; margin: clamp(52px, 7vw, 84px) 0 0;
  border-top: 1px solid var(--line);
}
.hero-facts > div { padding: 26px 26px 26px 0; border-right: 1px solid var(--line); }
.hero-facts > div:last-child { border-right: 0; padding-right: 0; }
.hero-facts dt { font-family: var(--ff-display); font-weight: 700; font-size: 1.02rem; color: var(--ink); }
.hero-facts dd { margin: 6px 0 0; font-size: .94rem; color: var(--ink-2); }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section-head { max-width: 620px; margin-bottom: clamp(40px, 5vw, 60px); }
.section-title { font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.05; font-weight: 800; letter-spacing: -.025em; text-wrap: balance; }
.section-sub { margin: 18px 0 0; font-size: 1.12rem; color: var(--ink-2); max-width: 54ch; text-wrap: pretty; }

/* products */
.prod-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.prod { background: var(--bg); padding: clamp(28px, 3vw, 40px); display: flex; flex-direction: column; transition: background .2s var(--ease); }
.prod:hover { background: var(--bg-2); }
.prod-cat { font-family: var(--ff-display); font-weight: 600; font-size: .76rem; letter-spacing: .12em; color: var(--accent-2); font-variant-numeric: tabular-nums; }
.prod h3 { font-size: 1.55rem; font-weight: 700; margin: 12px 0 12px; }
.prod p { margin: 0 0 20px; color: var(--ink-2); font-size: 1rem; }
.prod ul { list-style: none; margin: auto 0 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.prod li { position: relative; padding-left: 20px; color: var(--ink); font-size: .98rem; }
.prod li::before { content: ""; position: absolute; left: 0; top: .62em; width: 9px; height: 2px; background: var(--accent); }

/* ============================================================
   KONTAKT (dark)
   ============================================================ */
.section-dark { background: var(--dark); color: #fff; }
.section-title-light { color: #fff; }
.contact-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(40px, 6vw, 72px); align-items: stretch; }
.contact-main { display: flex; flex-direction: column; }
.contact-lead { color: rgba(255, 255, 255, .72); font-size: 1.15rem; max-width: 46ch; margin: 20px 0 30px; }
.contact-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }

.contact-details { list-style: none; margin: auto 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); }
.contact-details li { background: var(--dark); padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.cd-label { font-family: var(--ff-display); font-weight: 600; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: #6fb0d4; }
.contact-details a, .contact-details li > span:not(.cd-label) { color: #fff; text-decoration: none; font-size: 1.06rem; font-variant-numeric: tabular-nums; }
.contact-details a:hover { color: #6fb0d4; }

/* contact person */
.person { background: #1d2024; border: 1px solid var(--line-light); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.person-photo { width: 100%; aspect-ratio: 4 / 3; background: #23262c; overflow: hidden; }
.person-photo img, .person-photo svg { width: 100%; height: 100%; object-fit: cover; }
.person-info { padding: 24px 24px 26px; margin-top: auto; }
.person-role { font-family: var(--ff-display); font-weight: 600; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: #6fb0d4; }
.person-name { font-family: var(--ff-display); font-weight: 700; font-size: 1.5rem; color: #fff; margin: 10px 0 10px; letter-spacing: -.01em; }
.person-note { color: rgba(255, 255, 255, .64); font-size: .98rem; margin: 0 0 16px; }
.person-mail { color: #fff; text-decoration: none; font-weight: 600; border-top: 1px solid var(--line-light); padding-top: 14px; display: block; transition: color .2s var(--ease); }
.person-mail:hover { color: #6fb0d4; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--dark-2); color: rgba(255, 255, 255, .72); }
.footer-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 24px 40px; padding: clamp(40px, 5vw, 60px) 28px; }
.footer-logo strong { font-family: var(--ff-display); color: #fff; font-size: 1.3rem; font-weight: 800; }
.footer-logo small { color: #6fb0d4; display: block; font-size: .56rem; letter-spacing: .28em; text-transform: uppercase; margin-top: 3px; }
.footer-desc { margin: 0; max-width: 34ch; font-size: .96rem; color: rgba(255, 255, 255, .58); }
.footer-meta { margin-left: auto; display: flex; flex-direction: column; gap: 8px; text-align: right; font-variant-numeric: tabular-nums; }
.footer-meta a { color: rgba(255, 255, 255, .8); text-decoration: none; font-size: .98rem; }
.footer-meta a:hover { color: #6fb0d4; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 20px 28px; border-top: 1px solid var(--line-light); font-size: .9rem; color: rgba(255, 255, 255, .5); }
.footer-bottom a { color: rgba(255, 255, 255, .7); text-decoration: none; }
.footer-bottom a:hover { color: #6fb0d4; }

/* ============================================================
   REVEAL (subtle)
   ============================================================ */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .person { max-width: 420px; }
}
@media (max-width: 720px) {
  .header-inner { flex-wrap: wrap; }
  .nav-toggle { display: flex; }

  /* collapsible panel kept in normal document flow */
  .site-nav, .header-right {
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    max-height: 0; overflow: hidden; opacity: 0;
    transition: max-height .32s var(--ease), opacity .25s var(--ease);
  }
  body.nav-open .site-nav { max-height: 180px; opacity: 1; padding-top: 8px; }
  body.nav-open .header-right {
    max-height: 160px; opacity: 1;
    gap: 12px; padding: 14px 0 16px;
    border-top: 1px solid var(--line); margin-top: 6px;
  }
  .site-nav a { padding: 12px 8px; font-size: 1.06rem; border-radius: 8px; }
  .header-phone { text-align: center; padding: 10px; }
  .btn-sm { width: 100%; padding: 13px 18px; }

  .hero-facts { grid-template-columns: 1fr 1fr; gap: 0; }
  .hero-facts > div { padding: 22px 20px 22px 0; }
  .hero-facts > div:nth-child(2) { border-right: 0; padding-right: 0; }
  .hero-facts > div:nth-child(3), .hero-facts > div:nth-child(4) { border-top: 1px solid var(--line); }
  .prod-grid { grid-template-columns: 1fr; }
  .contact-details { grid-template-columns: 1fr; }
  .footer-meta { margin-left: 0; text-align: left; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}
@media (max-width: 420px) {
  .shell { padding-inline: 20px; }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-facts > div { border-right: 0; padding: 18px 0; border-top: 1px solid var(--line); }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}
