/*
  Styl: moderní profesionální design pro stavební firmu
  Písmo: Montserrat (nadpisy), Inter (text)
  Barevné schéma: modro-šedé s akcentem čerstvé zelené
*/

:root {
  --bg: #ffffff;
  --text: #0f172a;
  --text-light: #334155;
  --muted: #64748b;
  --border: #e2e8f0;
  --brand: #0ea5e9; /* sky blue - důvěryhodnost stavební firmy */
  --brand-700: #0284c7;
  --brand-800: #075985;
  --brand-50: #f0f9ff;
  --accent: #10b981; /* emerald green - růst, kvalita */
  --accent-700: #059669;
  --accent-50: #ecfdf5;
  --shadow: 0 10px 30px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 50px rgba(0,0,0,0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1200px;
  /* stavební paleta */
  --bg-neutral-50: #f8fafc;
  --bg-neutral-100: #f1f5f9;
  --footer-dark-1: #1e293b;
  --footer-dark-2: #0f172a;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg-neutral-50) 0%, #fff 30%, #fff 100%);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.7;
  font-size: 16px;
}

h1,h2,h3 { font-family: Montserrat, Inter, Arial, sans-serif; letter-spacing: -0.015em; font-weight: 700; color: var(--text); }
h1 { font-size: clamp(2.75rem, 5.5vw + .5rem, 4rem); line-height: 1.1; margin: 0 0 1.5rem; }
h2 { font-size: clamp(2rem, 3.5vw + .6rem, 2.75rem); line-height: 1.2; margin: 0 0 1.25rem; font-weight: 700; text-align: center; }
h3 { font-size: 1.2rem; margin: 0 0 .75rem; font-weight: 600; }

p { margin: 0 0 1.2rem; color: var(--text-light); line-height: 1.75; }

.container { max-width: var(--container); margin-inline: auto; padding: 0 20px; }
.section { position: relative; }
.section-pad { padding: clamp(72px, 9vw, 128px) 0; }
.section-lead { 
  color: var(--text-light); 
  margin: 0 auto 3rem; 
  font-size: 1.15rem;
  line-height: 1.7;
  max-width: 800px;
  text-align: center;
}
.center { text-align: center; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 30; 
  backdrop-filter: saturate(180%) blur(16px);
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s ease, border-color .3s ease, background .3s ease;
}
.site-header.scrolled { 
  box-shadow: 0 4px 24px rgba(0,0,0,.08), 0 2px 8px rgba(0,0,0,.04); 
  background: rgba(255, 255, 255, .98);
}
.topbar { 
  font-size: .875rem; color: var(--muted); 
  border-bottom: 1px solid var(--border); 
  background: var(--bg-neutral-50);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 38px; }
.topbar a { color: var(--muted); text-decoration: none; transition: color .2s ease; }
.topbar a:hover { color: var(--brand); }
.topbar .dot { opacity: .4; margin: 0 10px; font-weight: 300; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 78px; padding: 0 20px; }
.brand { 
  display: inline-flex; 
  align-items: center;
  gap: 0.75rem;
  text-decoration: none; 
  transition: transform .2s ease;
  padding: 4px 8px;
  border-radius: 8px;
}
.brand:hover { 
  transform: translateY(-1px);
}
.brand-logo {
  display: block;
  height: 52px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(14,165,233,.25));
  transition: filter .2s ease;
}
.brand:hover .brand-logo {
  filter: drop-shadow(0 4px 12px rgba(14,165,233,.4));
}
.brand-text {
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--text);
  transition: color .2s ease;
}
.brand:hover .brand-text {
  color: var(--brand);
}

.nav-links { display: flex; gap: 1.4rem; align-items: center; }
.nav-links a { 
  color: var(--muted); text-decoration: none; font-weight: 500; 
  padding: 9px 12px; border-radius: 10px; 
  transition: color .25s ease, background .25s ease, transform .2s ease; 
  position: relative;
}
.nav-links a:hover { color: var(--text); background: rgba(0,0,0,.03); transform: translateY(-1px); }
.nav-links a.active { color: var(--brand); background: var(--brand-50); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 16px; height: 2px; background: var(--brand); border-radius: 2px;
}
.nav-cta { padding: 10px 16px; font-size: .95rem; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: transparent; border: 0; padding: 6px; border-radius: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); display: block; }

/* Hero */
.hero { min-height: 75vh; display: grid; place-items: center; overflow: clip; position: relative; }
.hero-bg { position: absolute; inset: 0; 
  background-image:
    linear-gradient(135deg, rgba(14,165,233,.08) 0%, rgba(16,185,129,.06) 100%),
    linear-gradient(180deg, rgba(255,255,255,.90) 0%, rgba(255,255,255,.95) 50%, rgba(255,255,255,1) 100%),
    var(--hero-image);
  background-size: auto, auto, cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-highlights { list-style: none; padding: 0; margin: 24px 0 0; display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero-highlights li { 
  background: linear-gradient(135deg, var(--brand-50) 0%, #fff 100%); 
  border: 1px solid var(--border); 
  border-radius: 999px; 
  padding: 10px 18px; 
  color: var(--text); 
  font-weight: 600;
  font-size: .95rem;
  box-shadow: 0 4px 12px rgba(14,165,233,.1); 
}
.scroll-indicator { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); color: var(--muted); display: grid; place-items: center; gap: 6px; font-size: .9rem; opacity: .85; }
.scroll-indicator svg { animation: bounce 1.6s infinite; }

@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 6px); }
}
.hero-inner { position: relative; text-align: center; padding: 100px 0 80px; }
.headline { color: var(--text); }
.subheadline { 
  font-size: clamp(1.05rem, 1.2vw + .8rem, 1.35rem); 
  max-width: 900px; 
  margin-inline: auto; 
  color: var(--text-light);
  font-weight: 400;
  line-height: 1.6;
}
.cta { margin-top: 32px; }

/* Cards & layout */
.light { background: var(--bg-neutral-100); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.about-card { 
  background: linear-gradient(135deg, #fff 0%, var(--bg-neutral-50) 100%); 
  border: 2px solid var(--border); 
  border-radius: var(--radius); 
  padding: 36px 40px; 
  box-shadow: 0 4px 16px rgba(0,0,0,.05); 
}
.bullets { margin: 0; padding-left: 1.5rem; color: var(--text-light); line-height: 2; font-size: 1.05rem; }

.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(20px, 3vw, 32px); margin-top: 32px; }
.card {
  background: #fff; 
  border: 2px solid var(--border); 
  border-radius: var(--radius);
  padding: 32px 28px; 
  box-shadow: 0 4px 16px rgba(0,0,0,.05);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  text-align: center;
}
.card:hover { 
  transform: translateY(-4px); 
  box-shadow: 0 12px 32px rgba(14,165,233,.12); 
  border-color: var(--brand); 
}
.card .icon { 
  width: 64px; 
  height: 64px; 
  display: grid; 
  place-items: center; 
  color: var(--brand); 
  background: linear-gradient(135deg, var(--brand-50) 0%, #fff 100%); 
  border: 2px solid var(--brand);
  border-radius: 14px; 
  margin: 0 auto 1.25rem; 
}
.card h3 { color: var(--text); margin-bottom: 0.75rem; text-align: center; }
.card p { margin: 0; color: var(--text-light); line-height: 1.7; text-align: center; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); }
.gallery-grid figure { 
  margin: 0; 
  overflow: hidden; 
  border-radius: var(--radius); 
  border: 2px solid var(--border); 
  background: #fff; 
  box-shadow: 0 4px 16px rgba(0,0,0,.05);
  transition: box-shadow .3s ease, transform .3s ease;
}
.gallery-grid figure:hover {
  box-shadow: 0 12px 28px rgba(0,0,0,.1);
  transform: translateY(-2px);
}
.gallery-grid img { width: 100%; height: 240px; object-fit: cover; display: block; transition: transform .6s ease; }
.gallery-grid figure:hover img { transform: scale(1.05); }
.gallery-grid figcaption { font-size: .9rem; color: var(--muted); padding: 12px 16px; font-weight: 500; }

/* Buttons */
.btn { 
  appearance: none; 
  border: 2px solid transparent; 
  padding: 14px 28px; 
  border-radius: 12px; 
  font-weight: 600; 
  font-size: 1rem; 
  cursor: pointer; 
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1); 
  position: relative; 
  overflow: hidden;
  text-decoration: none;
  display: inline-block;
}
.btn:active { transform: translateY(1px); }
.btn-primary { 
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-700) 100%); 
  color: #fff; 
  box-shadow: 0 8px 24px rgba(14,165,233,.25); 
}
.btn-primary:hover { 
  box-shadow: 0 12px 36px rgba(14,165,233,.35); 
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--brand-700) 0%, var(--brand-800) 100%);
}
.btn-outline { 
  background: #fff; 
  border-color: var(--brand); 
  color: var(--brand); 
  box-shadow: 0 4px 12px rgba(14,165,233,.08);
}
.btn-outline:hover { 
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 24px rgba(14,165,233,.2); 
  transform: translateY(-2px);
}

/* Forms */
.contact-form { 
  display: grid; 
  gap: 16px; 
  background: linear-gradient(135deg, #fff 0%, var(--bg-neutral-50) 100%); 
  border: 1px solid var(--border); 
  border-radius: var(--radius); 
  padding: 32px; 
  box-shadow: var(--shadow); 
}
.contact-form label { 
  font-weight: 600; 
  font-size: .95rem; 
  color: var(--text);
  margin-bottom: 6px;
}
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; 
  border: 2px solid var(--border); 
  border-radius: 10px; 
  padding: 14px 16px; 
  font: inherit; 
  color: var(--text); 
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
  font-size: 1rem;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  outline: none; 
  border-color: var(--brand); 
  box-shadow: 0 0 0 4px rgba(14,165,233,.1);
}
.form-status { margin: 8px 0 0; min-height: 1.4em; font-size: .95rem; font-weight: 500; }
.form-help { color: var(--muted); font-size: .875rem; margin-top: -8px; }
.label-optional { color: var(--muted); font-weight: 400; font-size: .9em; }

/* Telefon skupina */
.phone-row { display: grid; grid-template-columns: 130px 1fr; gap: 12px; align-items: center; }
.phone-row select { 
  appearance: none; 
  background-image: linear-gradient(45deg, transparent 49%, var(--brand) 51%), linear-gradient(135deg, var(--brand) 49%, transparent 51%), linear-gradient(to right, transparent, transparent);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%, 0 0; 
  background-size: 6px 6px, 6px 6px, 100% 100%; 
  background-repeat: no-repeat; 
}

/* Reference */
.testimonials-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: clamp(24px, 3.5vw, 40px); margin-top: 32px; }
.testimonial { 
  background: linear-gradient(135deg, #fff 0%, var(--bg-neutral-50) 100%); 
  border: 2px solid var(--border); 
  border-radius: var(--radius); 
  padding: 36px 32px; 
  box-shadow: 0 4px 16px rgba(0,0,0,.05); 
  margin: 0;
  transition: box-shadow .3s ease, transform .3s ease;
}
.testimonial:hover {
  box-shadow: 0 8px 24px rgba(14,165,233,.1);
  transform: translateY(-2px);
}
.testimonial blockquote { 
  margin: 0 0 1rem; 
  color: var(--text-light); 
  position: relative; 
  padding-left: 32px; 
  font-size: 1.05rem;
  line-height: 1.7;
  font-style: italic;
}
.testimonial blockquote::before { 
  content: '"'; 
  position: absolute; 
  left: 0; 
  top: -8px; 
  color: var(--brand); 
  font-family: Georgia, serif; 
  font-size: 48px; 
  line-height: 1; 
  opacity: .4;
}
.testimonial figcaption { color: var(--muted); font-size: .95rem; font-weight: 600; }

.map-wrap { border-radius: var(--radius); overflow: clip; border: 1px solid var(--border); box-shadow: var(--shadow); background: #fff; }

/* Footer */
.site-footer { 
  border-top: 0; 
  padding: 28px 0 0; 
  background: linear-gradient(180deg, var(--footer-dark-1) 0%, var(--footer-dark-2) 100%);
  color: #fff;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.2fr; gap: 32px; padding: 32px 0; }
.brand-foot { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.brand-foot img { filter: brightness(1.2) drop-shadow(0 2px 8px rgba(14,165,233,.3)); }
.footer-logo {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  padding: 6px;
  border-radius: 10px;
}
.linklist, .contactlist { margin: 0; padding-left: 1rem; color: #e7e7e7; line-height: 1.8; }
.linklist a, .contactlist a { color: #e7e7e7; text-decoration: none; transition: color .2s ease; }
.linklist a:hover, .contactlist a:hover { color: var(--brand); }
.socials { display: flex; gap: 12px; margin-top: 14px; }
.social { 
  width: 40px; height: 40px; display: grid; place-items: center; 
  border: 1px solid var(--border); border-radius: 50%; 
  background: #fff;
  color: var(--muted); text-decoration: none; 
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1); 
}
.social:hover { 
  color: var(--brand); 
  border-color: var(--brand); 
  background: var(--brand-50);
  box-shadow: 0 8px 20px rgba(255,122,0,.2); 
  transform: translateY(-3px);
}
.footer-bottom { 
  display: flex; align-items: center; justify-content: space-between; gap: 12px; 
  padding: 18px 0 32px; 
  border-top: 1px solid rgba(255,255,255,.12); 
}
.footer-link { color: #e7e7e7; text-decoration: none; transition: color .2s ease; }
.footer-link:hover { color: #fff; }
.to-top { 
  position: fixed; right: 20px; bottom: 20px; 
  border: 1px solid var(--border); 
  background: #fff; 
  color: var(--text); 
  border-radius: 999px; 
  padding: 12px 14px; 
  box-shadow: 0 8px 24px rgba(0,0,0,.12); 
  cursor: pointer; 
  opacity: 0; visibility: hidden; 
  transform: translateY(10px) scale(.9); 
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1); 
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.to-top:hover { 
  background: var(--brand); 
  border-color: var(--brand); 
  color: #fff; 
  box-shadow: 0 12px 32px rgba(255,122,0,.28);
  transform: translateY(-2px) scale(1.05);
}

/* Reveal on scroll */
.section-photo { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .10; pointer-events: none; z-index: 0; }
.section-photo.photo-left { 
  -webkit-mask-image: radial-gradient(120% 100% at 0% 50%, #000 35%, transparent 70%);
  mask-image: radial-gradient(120% 100% at 0% 50%, #000 35%, transparent 70%);
}
.section-photo.photo-right { 
  -webkit-mask-image: radial-gradient(120% 100% at 100% 50%, #000 35%, transparent 70%);
  mask-image: radial-gradient(120% 100% at 100% 50%, #000 35%, transparent 70%);
}
.section > .container, .section .grid-2, .section .services-grid { position: relative; z-index: 1; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; transition-delay: var(--delay, 0s); }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 980px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .topbar { display: none; }
  .nav-links { position: absolute; inset: 64px 12px auto; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow); border-radius: 12px; padding: 10px; display: none; flex-direction: column; gap: 4px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 12px; }
  .gallery-grid img { height: 200px; }
  .phone-row { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
}

@media (max-width: 460px) {
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
}
