/* =============================================
   COMON Sklenářství — Light Premium
   Cream + Dark · Fresh layout
   ============================================= */

:root {
  --bg:      #f9f7f5;
  --surface: #ffffff;
  --alt:     #f2efeb;
  --text:    #1c1c1e;
  --text-2:  #5a5a62;
  --text-3:  #8e8e95;
  --border:  #ddd9d4;
  --border-2:#e8e4df;
  --accent:  #1c1c1e;
  --accent-hover: #3a3a3c;

  --nav-h:  68px;
  --cont:   1160px;
  --ease:   cubic-bezier(.22,.68,0,1.2);
  --t:      0.2s ease;

  --f-sans: 'Inter Tight', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }
.container { max-width: var(--cont); margin: 0 auto; padding: 0 2rem; }

/* ── NAVBAR ─────────────────────────────────── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  background: rgba(249,247,245,0.92);
  border-bottom: 1px solid var(--border-2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: box-shadow var(--t);
}
#navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }

.nav-inner { height: 100%; display: flex; align-items: center; gap: 0.75rem; }

.nav-logo {
  display: flex; align-items: center; gap: 9px;
  margin-right: auto; flex-shrink: 0; color: var(--text);
}
.logo-icon { width: 28px; height: 28px; color: var(--text); }
.logo-text { font-weight: 800; font-size: 1rem; letter-spacing: 0.18em; }

.nav-links { display: flex; align-items: center; }
.nav-link {
  font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.06em; color: var(--text-2);
  padding: 0.45rem 0.9rem; transition: color var(--t);
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-cta {
  display: flex; align-items: center; gap: 7px;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em;
  color: var(--surface);
  background: var(--accent);
  padding: 0.48rem 1.1rem; border-radius: 6px;
  margin-left: 0.5rem;
  transition: background var(--t), transform var(--t);
}
.nav-cta:hover { background: var(--accent-hover); transform: translateY(-1px); }

.nav-phone-btn {
  display: none; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px;
  border: 1.5px solid var(--border); color: var(--text); flex-shrink: 0;
  transition: background var(--t);
}
.nav-phone-btn:hover { background: var(--alt); }

.hamburger {
  display: none; flex-direction: column;
  justify-content: center; gap: 5px;
  background: none; border: none; padding: 6px; flex-shrink: 0;
}
.hamburger span {
  display: block; width: 22px; height: 1.8px;
  background: var(--text); border-radius: 2px;
  transition: transform 0.28s, opacity 0.28s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.8px) rotate(-45deg); }

/* ── BUTTONS ────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--f-sans); font-size: 0.9rem; font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--accent); color: #fff;
  padding: 0.82rem 1.8rem; border-radius: 8px; border: none; cursor: pointer;
  transition: background var(--t), transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.14); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--f-sans); font-size: 0.9rem; font-weight: 600;
  color: var(--text);
  padding: 0.82rem 1.8rem; border-radius: 8px;
  border: 1.5px solid var(--border); cursor: pointer;
  transition: border-color var(--t), background var(--t);
}
.btn-secondary:hover { border-color: var(--text); background: var(--surface); }

/* ── FADE-IN ────────────────────────────────── */
.fade-in { opacity: 0; transform: translateY(22px); transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); }
.fade-in.visible { opacity: 1; transform: none; }

/* ── SECTION BASE ───────────────────────────── */
.section { padding: 100px 0; }
.section-alt { background: var(--alt); }
.eyebrow {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 0.6rem;
}
.section-h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 800; letter-spacing: -0.02em;
  line-height: 1.15; color: var(--text);
}
.section-head { margin-bottom: 3rem; }
.section-head-center { text-align: center; }

/* ── HERO ───────────────────────────────────── */
#hero {
  min-height: 100svh;
  padding-top: var(--nav-h);
  background: var(--bg);
}
.hero-split {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: calc(100svh - var(--nav-h));
}
.hero-left {
  display: flex; flex-direction: column; justify-content: center;
  padding: 5rem 3rem 5rem 2rem;
  max-width: 640px;
}
.hero-tag {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 1.4rem;
  display: flex; align-items: center; gap: 8px;
}
.hero-tag::before {
  content: ''; display: block;
  width: 24px; height: 1.5px; background: var(--border);
}
.hero-h1 {
  font-size: clamp(2.8rem, 5vw, 4.4rem);
  font-weight: 900; letter-spacing: -0.03em;
  line-height: 1.08; color: var(--text);
  margin-bottom: 1.5rem;
}
.hero-h1 em {
  font-style: italic; font-weight: 300;
  color: var(--text-2);
}
.hero-perex {
  font-size: 1rem; font-weight: 300; color: var(--text-2);
  line-height: 1.7; margin-bottom: 2.5rem; max-width: 440px;
}
.hero-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-badges { display: flex; align-items: center; gap: 0; }
.badge { display: flex; flex-direction: column; }
.badge strong { font-size: 1.1rem; font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
.badge span { font-size: 0.68rem; font-weight: 500; color: var(--text-3); letter-spacing: 0.04em; margin-top: 1px; }
.badge-sep { width: 1px; height: 32px; background: var(--border); margin: 0 1.5rem; }

.hero-right {
  position: relative; overflow: hidden;
}
.hero-img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 40%;
  display: block;
}
.hero-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, var(--bg) 0%, transparent 18%);
  pointer-events: none;
}

/* ── PRODUCTS ───────────────────────────────── */
.product-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
}
.product-card {
  background: var(--surface);
  padding: 2.2rem 2rem;
  position: relative;
  transition: background var(--t);
}
.product-card:hover { background: #faf9f8; }
.pcard-num {
  display: block;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.14em;
  color: var(--text-3); margin-bottom: 1.2rem;
}
.pcard-title {
  font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em;
  color: var(--text); margin-bottom: 0.3rem;
}
.pcard-spec {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.85rem;
}
.pcard-desc { font-size: 0.86rem; font-weight: 300; color: var(--text-2); line-height: 1.65; }

/* ── STATS STRIP ────────────────────────────── */
.stats-strip {
  background: var(--text);
  padding: 3.5rem 0;
}
.stats-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 0; flex-wrap: wrap;
}
.stat-item { display: flex; flex-direction: column; align-items: center; padding: 0 3rem; }
.stat-big {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 900; letter-spacing: -0.03em; color: #fff;
  line-height: 1;
}
.stat-sub {
  font-size: 0.72rem; font-weight: 400; letter-spacing: 0.06em;
  color: rgba(255,255,255,0.5); margin-top: 6px; text-align: center;
}
.stat-div { width: 1px; height: 44px; background: rgba(255,255,255,0.12); }

/* ── ABOUT ──────────────────────────────────── */
.about-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about-img-side { position: relative; }
.about-photo { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; display: block; }
.about-cert {
  position: absolute; bottom: -1.5rem; right: -1.5rem;
  background: var(--surface); border: 1px solid var(--border-2);
  border-radius: 10px; padding: 1rem 1.25rem;
  display: flex; align-items: center; gap: 0.75rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  max-width: 230px;
}
.about-cert svg { color: var(--text); flex-shrink: 0; }
.about-cert strong { display: block; font-size: 0.82rem; font-weight: 700; color: var(--text); }
.about-cert span { font-size: 0.72rem; color: var(--text-3); }
.about-content .eyebrow { margin-bottom: 0.5rem; }
.about-content .section-h2 { margin-bottom: 1.25rem; }
.about-text { font-size: 0.92rem; font-weight: 300; color: var(--text-2); line-height: 1.8; margin-bottom: 0.9rem; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem 1.5rem; margin-top: 1.5rem; }
.about-feature {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.82rem; font-weight: 500; color: var(--text-2);
}
.about-feature svg { color: var(--text); flex-shrink: 0; }

/* ── WHY — horizontal 4 ─────────────────────── */
.why-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
}
.why-card {
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--border);
  background: var(--surface);
  transition: background var(--t);
}
.why-card:last-child { border-right: none; }
.why-card:hover { background: #faf9f8; }
.why-icon { color: var(--text); margin-bottom: 1.2rem; }
.why-card h3 { font-size: 0.97rem; font-weight: 700; color: var(--text); margin-bottom: 0.5rem; }
.why-card p { font-size: 0.84rem; font-weight: 300; color: var(--text-2); line-height: 1.65; }

/* ── CONTACT ────────────────────────────────── */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.3fr; gap: 5rem; align-items: start; }
.contact-left .eyebrow { margin-bottom: 0.5rem; }
.contact-left .section-h2 { margin-bottom: 0.75rem; }
.contact-intro { font-size: 0.9rem; font-weight: 300; color: var(--text-2); margin-bottom: 2rem; }
.contact-list { display: flex; flex-direction: column; gap: 0; }
.contact-row {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1rem 0; border-bottom: 1px solid var(--border-2);
  transition: padding-left var(--t);
}
.contact-row:first-child { border-top: 1px solid var(--border-2); }
.contact-row:hover { padding-left: 0.4rem; }
.contact-row-main .cval { color: var(--text); font-size: 1.05rem; font-weight: 700; }
.contact-ico {
  width: 38px; height: 38px; background: var(--alt); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.clabel { display: block; font-size: 0.65rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 2px; }
.cval { display: block; font-size: 0.9rem; font-weight: 500; color: var(--text-2); }
.company-info { margin-top: 1.5rem; font-size: 0.78rem; color: var(--text-3); }
.contact-right { height: 460px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }

/* ── FOOTER ─────────────────────────────────── */
footer {
  background: var(--text); color: rgba(255,255,255,0.7);
  padding: 3.5rem 0 1.5rem;
}
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1.2fr;
  gap: 3rem; padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 1.5rem;
}
.footer-logo {
  display: flex; align-items: center; gap: 8px;
  color: #fff; margin-bottom: 0.75rem;
}
.footer-logo .logo-icon { color: #fff; }
.footer-logo span { font-weight: 800; font-size: 0.95rem; letter-spacing: 0.18em; color: #fff; }
.footer-left p { font-size: 0.83rem; line-height: 1.7; }
.footer-nav { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-nav a { font-size: 0.83rem; transition: color var(--t); }
.footer-nav a:hover { color: #fff; }
.footer-contact { display: flex; flex-direction: column; gap: 0.45rem; }
.footer-contact a { font-size: 0.83rem; transition: color var(--t); }
.footer-contact a:first-child { font-size: 1rem; font-weight: 700; color: #fff; }
.footer-contact a:hover { color: #fff; }
.footer-contact span { font-size: 0.72rem; color: rgba(255,255,255,0.35); margin-top: 0.2rem; }
.footer-bottom { font-size: 0.72rem; color: rgba(255,255,255,0.3); }

/* ── FAB ────────────────────────────────────── */
.fab {
  display: none; position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 999;
  width: 54px; height: 54px; background: var(--text); border-radius: 50%;
  align-items: center; justify-content: center; color: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: transform var(--t), box-shadow var(--t);
}
.fab:hover { transform: scale(1.08); box-shadow: 0 8px 28px rgba(0,0,0,0.28); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-right { min-height: 380px; max-height: 420px; }
  .hero-left { max-width: 100%; padding: 3rem 2rem; }
  .hero-img-overlay { background: linear-gradient(to bottom, var(--bg) 0%, transparent 20%); }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .why-row { grid-template-columns: 1fr 1fr; }
  .why-card:nth-child(2) { border-right: none; }
  .why-card:nth-child(3), .why-card:nth-child(4) { border-top: 1px solid var(--border); }
  .about-wrap { grid-template-columns: 1fr; gap: 3rem; }
  .about-cert { right: 1rem; }
  .contact-wrap { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-right { height: 320px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .stat-item { padding: 0 2rem; }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }
  .container { padding: 0 1.25rem; }
  .section { padding: 68px 0; }

  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: rgba(249,247,245,0.99);
    flex-direction: column; align-items: stretch;
    padding: 1rem 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%); transition: transform 0.26s var(--ease);
    z-index: 140; gap: 0;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-link { font-size: 0.95rem; padding: 12px 0; border-bottom: 1px solid var(--border-2); }
  .nav-cta { margin: 1rem 0 0; justify-content: center; padding: 0.75rem; border-radius: 8px; }
  .hamburger { display: flex; }
  .nav-phone-btn { display: flex; }

  .hero-left { padding: 2.5rem 1.25rem; }
  .hero-badges { flex-wrap: wrap; gap: 1rem; }
  .badge-sep { display: none; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary { justify-content: center; }

  .product-grid { grid-template-columns: 1fr; }
  .stats-inner { flex-direction: column; gap: 2rem; }
  .stat-div { width: 60px; height: 1px; }
  .stat-item { padding: 0; }
  .why-row { grid-template-columns: 1fr; }
  .why-card { border-right: none !important; border-bottom: 1px solid var(--border); }
  .why-card:last-child { border-bottom: none; }
  .about-features { grid-template-columns: 1fr; }
  .about-cert { position: static; margin-top: 1rem; max-width: 100%; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.75rem; }
  .fab { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
}
