/* =============================================
   C-INSTALO — Instalatér Brno
   v3 — Editorial dark, no glow, no glass
   ============================================= */

:root {
  --bg:      #080c18;
  --s1:      #0c1120;
  --s2:      #111828;
  --s3:      #182035;
  --cyan:    #a8c8ff;
  --cyan-10: rgba(168,200,255,0.10);
  --white:   #eef2ff;
  --gray:    #6a80a8;
  --gray-2:  #344060;
  --border:  rgba(168,200,255,0.08);
  --border-2:rgba(168,200,255,0.16);

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

  --f-serif: 'Fraunces', Georgia, serif;
  --f-sans:  'Inter Tight', Inter, sans-serif;
}

/* ── Reset ──────────────────────────────────── */
*, *::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(--white);
  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; }

/* ── Top bar ────────────────────────────────── */
.topbar {
  height: var(--bar-h);
  background: #050810;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
}
.topbar-inner {
  display: flex; align-items: center; gap: 1.25rem; width: 100%;
}
.topbar-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.04em;
  color: var(--gray);
}
.topbar-link { transition: color var(--t); }
.topbar-link:hover { color: var(--white); }
.topbar-phone { color: var(--cyan); margin-left: auto; }
.topbar-sep { width: 1px; height: 12px; background: var(--border); }

/* ── Navbar ─────────────────────────────────── */
#navbar {
  position: fixed;
  top: var(--bar-h); left: 0; right: 0;
  height: var(--nav-h);
  z-index: 150;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background var(--t), border-color var(--t);
}
#navbar.scrolled {
  background: rgba(8,12,24,0.96);
  border-bottom-color: var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav-inner {
  height: 100%;
  display: flex; align-items: center; gap: 1rem;
}
.nav-logo { display: flex; align-items: center; margin-right: auto; flex-shrink: 0; }
.logo-img { height: 44px; width: auto; display: block; }

.nav-links { display: flex; align-items: center; gap: 0; }
.nav-link {
  font-size: 0.77rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gray);
  padding: 0.5rem 0.85rem;
  transition: color var(--t);
}
.nav-link:hover, .nav-link.active { color: var(--white); }

.nav-cta {
  font-size: 0.77rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid rgba(168,200,255,0.30);
  padding: 0.42rem 1.1rem;
  border-radius: 2px;
  margin-left: 0.75rem;
  transition: background var(--t), border-color var(--t);
}
.nav-cta:hover { background: var(--cyan-10); border-color: var(--cyan); }

/* Mobile phone button */
.nav-phone-btn {
  display: none;
  align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(168,200,255,0.25);
  color: var(--cyan);
  flex-shrink: 0;
  transition: background var(--t);
}
.nav-phone-btn:hover { background: var(--cyan-10); }

/* Hamburger */
.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.5px;
  background: var(--white); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Buttons ────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-sans); font-weight: 600;
  font-size: 0.88rem; letter-spacing: 0.04em;
  padding: 0.82rem 1.8rem;
  border-radius: 2px; border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn-primary {
  background: var(--cyan);
  color: #080c18;
}
.btn-primary:hover {
  box-shadow: 0 6px 28px rgba(168,200,255,0.28);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border-2);
}
.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* ── Fade-in ────────────────────────────────── */
.fade-in {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.fade-in.visible { opacity: 1; transform: none; }

/* ── Section base ───────────────────────────── */
.section { padding: 110px 0; }
.section-alt { background: var(--s1); }

/* Section intro — LEFT aligned, no symmetric decorators */
.section-eyebrow {
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--cyan);
  display: flex; align-items: center; gap: 0.6rem;
  margin-bottom: 1rem;
}
.section-eyebrow::before { content: '—'; color: var(--cyan-10); }

.section-title {
  font-family: var(--f-serif);
  font-style: italic; font-weight: 700;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.12;
  color: var(--white);
}
.section-title em {
  font-style: italic;
  color: var(--cyan);
}

.section-header { margin-bottom: 3.5rem; }
.section-header .section-eyebrow,
.section-header .section-title { text-align: left; }

/* Centered variant */
.section-header-c {
  text-align: center;
  max-width: 640px; margin: 0 auto 4rem;
}
.section-header-c .section-eyebrow { justify-content: center; }

/* ── HERO ───────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding-top: calc(var(--bar-h) + var(--nav-h));
  padding-bottom: 6rem;
  overflow: hidden;
}
.hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    105deg,
    rgba(8,12,24,0.93) 0%,
    rgba(8,12,24,0.76) 45%,
    rgba(8,12,24,0.28) 100%
  );
}
/* Vertical accent line — hidden in navy theme */
#hero::after { display: none; }

.hero-content {
  position: relative; z-index: 1;
  padding-left: 0;
  max-width: 640px;
}
.hero-label {
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--cyan);
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.hero-label::before {
  content: '';
  display: block; width: 28px; height: 1px;
  background: var(--cyan);
}
.hero-headline {
  font-family: var(--f-serif);
  font-style: italic; font-weight: 700;
  font-size: clamp(3.2rem, 7vw, 5.8rem);
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 1.5rem;
}
.hero-indent {
  display: block;
  padding-left: 2.5rem;
  color: var(--cyan);
  font-style: italic;
}
.hero-sub {
  font-size: 1rem; font-weight: 300;
  color: rgba(240,240,240,0.62);
  line-height: 1.75; margin-bottom: 2.5rem;
  max-width: 480px;
}
.hero-ctas {
  display: flex; align-items: center; gap: 1rem;
  flex-wrap: wrap; margin-bottom: 2.5rem;
}
.hero-trust {
  display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: 5px;
  font-size: 0.78rem; color: rgba(240,240,240,0.4);
}
.trust-item svg { color: var(--cyan); }
.trust-sep { color: rgba(240,240,240,0.15); }

.hero-scroll {
  position: absolute; bottom: 2rem; left: 2rem;
  color: rgba(238,242,255,0.25);
  animation: bounce 2.2s ease-in-out infinite;
  z-index: 1;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  55% { transform: translateY(6px); }
}

/* ── SERVICES — editorial numbered list ─────── */
#sluzby { padding-bottom: 80px; }
.services-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: end;
  margin-bottom: 4rem;
}
.services-intro-right {
  font-size: 0.9rem; font-weight: 300;
  color: var(--gray); line-height: 1.8;
}

.services-list {
  border-top: 1px solid var(--border);
}
.svc-row {
  display: grid;
  grid-template-columns: 56px 1fr 1.4fr 32px;
  align-items: start;
  gap: 2.5rem;
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.18s;
  cursor: default;
}
.svc-row:hover {
  background: rgba(255,255,255,0.018);
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  margin-left: -0.75rem;
  margin-right: -0.75rem;
  border-radius: 4px;
}
.svc-num {
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.15em; color: var(--cyan);
  padding-top: 6px;
}
.svc-name {
  font-family: var(--f-serif);
  font-style: italic; font-size: 1.45rem; font-weight: 700;
  color: var(--white); line-height: 1.2;
}
.svc-desc {
  font-size: 0.86rem; font-weight: 300;
  color: var(--gray); line-height: 1.75;
  padding-top: 4px;
}
.svc-arrow {
  color: var(--gray-2); font-size: 1.1rem;
  padding-top: 6px; transition: color 0.18s, transform 0.18s;
}
.svc-row:hover .svc-arrow { color: var(--cyan); transform: translateX(4px); }

/* ── ABOUT ──────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-image-wrap { position: relative; }
.about-img {
  width: 100%; aspect-ratio: 4/3;
  object-fit: cover; border-radius: 4px;
  display: block;
}
.about-image-wrap::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px; right: -1px; bottom: -1px;
  border-radius: 5px;
  background: linear-gradient(135deg, rgba(168,200,255,0.18) 0%, transparent 40%);
  pointer-events: none; z-index: 1;
}
.about-accent {
  position: absolute;
  top: -14px; left: -14px;
  width: 60px; height: 60px;
  border-top: 1.5px solid var(--cyan);
  border-left: 1.5px solid var(--cyan);
  border-radius: 3px;
  opacity: 0.5; pointer-events: none; z-index: 2;
}

.about-text .section-eyebrow { margin-bottom: 0.75rem; }
.about-text .section-title { margin-bottom: 1.5rem; }
.about-p {
  font-size: 0.92rem; font-weight: 300;
  color: rgba(240,240,240,0.62);
  line-height: 1.8; margin-bottom: 1rem;
}
.about-stats {
  display: flex; align-items: center; gap: 0;
  margin: 2.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat {
  flex: 1;
  padding: 1.5rem 0;
  text-align: center;
}
.stat + .stat { border-left: 1px solid var(--border); }
.stat-num {
  display: block;
  font-family: var(--f-serif);
  font-style: italic; font-size: 2.2rem; font-weight: 700;
  color: var(--cyan); line-height: 1;
}
.stat-label {
  display: block; font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gray); margin-top: 5px;
}
.stat-div { display: none; }

/* ── WHY — 2×2 solid blocks ─────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.why-item {
  padding: 2.75rem 2.5rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: background 0.2s;
}
.why-item:nth-child(2), .why-item:nth-child(4) { border-right: none; }
.why-item:nth-child(3), .why-item:nth-child(4) { border-bottom: none; }
.why-item:hover { background: rgba(255,255,255,0.025); }
/* Ghost number */
.why-item::before {
  content: attr(data-n);
  position: absolute; top: 1rem; right: 1.5rem;
  font-size: 5.5rem; font-weight: 900; line-height: 1;
  color: rgba(255,255,255,0.03);
  pointer-events: none; user-select: none;
}
.why-icon {
  color: var(--cyan); margin-bottom: 1.25rem;
}
.why-title {
  font-size: 1.05rem; font-weight: 700;
  color: var(--white); margin-bottom: 0.5rem;
}
.why-desc {
  font-size: 0.85rem; font-weight: 300;
  color: var(--gray); line-height: 1.7;
}

/* ── GALLERY ────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.gallery-item {
  position: relative; aspect-ratio: 4/3;
  overflow: hidden; cursor: pointer;
  background: var(--s2);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(8,12,24,0.55);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); opacity: 0;
  transition: opacity var(--t);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-placeholder { cursor: default; }
.placeholder-inner {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.6rem; color: var(--gray-2);
}
.placeholder-inner span {
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gray-2);
}

/* ── CONTACT ────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem; align-items: start;
}
.contact-name {
  font-family: var(--f-serif);
  font-style: italic; font-size: 1.9rem; font-weight: 700;
  color: var(--white); margin-bottom: 0.2rem;
}
.contact-sub {
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 2.5rem;
}
.contact-items { display: flex; flex-direction: column; gap: 0; }
.contact-item {
  display: flex; align-items: flex-start; gap: 1.1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left 0.2s;
}
.contact-item:first-child { border-top: 1px solid var(--border); }
.contact-item:hover { padding-left: 0.5rem; }
.contact-item-cta .contact-value { color: var(--cyan); font-size: 1.05rem; }
.contact-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--cyan);
}
.contact-detail { display: flex; flex-direction: column; gap: 1px; }
.contact-label {
  font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--gray);
}
.contact-value {
  font-size: 0.92rem; font-weight: 500; color: var(--white);
}
.contact-map {
  height: 420px; border-radius: 4px;
  overflow: hidden; border: 1px solid var(--border);
}

/* ── FOOTER ─────────────────────────────────── */
footer {
  background: #050810;
  border-top: 1px solid var(--border);
  padding: 4rem 0 1.5rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}
.footer-logo { height: 38px; width: auto; margin-bottom: 1rem; }
.footer-desc {
  font-size: 0.83rem; font-weight: 300;
  color: var(--gray); line-height: 1.7;
}
.footer-links { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-links a {
  font-size: 0.83rem; color: var(--gray); transition: color var(--t);
}
.footer-links a:hover { color: var(--white); }
.footer-contact { display: flex; flex-direction: column; gap: 0.45rem; }
.footer-phone {
  font-size: 1rem; font-weight: 700; color: var(--cyan);
  transition: opacity var(--t);
}
.footer-phone:hover { opacity: 0.7; }
.footer-email { font-size: 0.82rem; color: var(--gray); transition: color var(--t); }
.footer-email:hover { color: var(--white); }
.footer-ico { font-size: 0.72rem; color: var(--gray-2); margin-top: 0.2rem; }
.footer-bottom { font-size: 0.72rem; color: var(--gray-2); text-align: center; }

/* ── FAB ────────────────────────────────────── */
.fab {
  display: none;
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 999;
  width: 54px; height: 54px;
  background: var(--cyan);
  border-radius: 50%;
  align-items: center; justify-content: center;
  color: #080c18;
  box-shadow: 0 4px 20px rgba(168,200,255,0.25);
  transition: transform var(--t), box-shadow var(--t);
}
.fab:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(168,200,255,0.40); }

/* ── Lightbox ───────────────────────────────── */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(4,6,14,0.96);
  align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 88vh; object-fit: contain; border-radius: 2px; }
.lb-close {
  position: absolute; top: 1.25rem; right: 1.25rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); transition: background var(--t);
}
.lb-close:hover { background: rgba(255,255,255,0.15); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .topbar { display: none; }
  #navbar { top: 0; }
  #hero { padding-top: var(--nav-h); }
  .hero-content { padding-left: 0; }

  .services-intro { grid-template-columns: 1fr; gap: 1.5rem; }
  .svc-row { grid-template-columns: 48px 1fr 1fr 28px; gap: 1.5rem; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-map { height: 320px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .why-item::before { font-size: 4rem; }
}

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

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

  /* Hero */
  .hero-content { padding-left: 0; max-width: 100%; }
  .hero-scroll { left: 1.25rem; }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .hero-indent { padding-left: 0.75rem; }

  /* Services */
  .svc-row {
    grid-template-columns: 36px 1fr;
    grid-template-rows: auto auto;
    gap: 0.5rem 1rem;
    padding: 1.75rem 0;
  }
  .svc-num { grid-row: 1; }
  .svc-name { grid-row: 1; align-self: center; font-size: 1.15rem; }
  .svc-desc { grid-column: 2; grid-row: 2; }
  .svc-arrow { display: none; }

  /* Why */
  .why-grid { grid-template-columns: 1fr; }
  .why-item { border-right: none !important; }
  .why-item:nth-child(3) { border-bottom: 1px solid var(--border) !important; }

  /* Gallery */
  .gallery-grid { grid-template-columns: 1fr 1fr; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer-bottom { text-align: left; }

  /* FAB + logo */
  .fab { display: flex; }
  .logo-img { height: 38px; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .hero-trust { flex-direction: column; align-items: flex-start; gap: 5px; }
  .trust-sep { display: none; }
  .about-stats { flex-wrap: wrap; }
}

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