/* ============================================================
   BROSATO stav s.r.o. — hlavní stylesheet
   ============================================================ */

/* --- Reset & base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand:       #C8A96E;
  --brand-dark:  #9B7A3E;
  --dark:        #111110;
  --dark2:       #1C1C1A;
  --dark3:       #272725;
  --light:       #F5F2ED;
  --muted:       #888780;
  --white:       #FFFFFF;
  --radius:      2px;
  --transition:  0.25s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--dark);
  color: var(--light);
  overflow-x: hidden;
  line-height: 1.6;
}

img { display: block; max-width: 100%; }
a   { text-decoration: none; color: inherit; }

/* --- Typography helpers --- */
.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  letter-spacing: 0.04em;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.75;
  max-width: 520px;
}

/* --- Buttons --- */
.btn-primary {
  background: var(--brand);
  color: var(--dark);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background var(--transition);
}
.btn-primary:hover { background: var(--brand-dark); }

.btn-outline {
  background: transparent;
  color: var(--light);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }

/* ============================================================
   NAVIGATION
   ============================================================ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 4rem;
  background: rgba(17, 17, 16, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200, 169, 110, 0.15);
  transition: padding var(--transition);
}
nav.scrolled { padding: 0.9rem 4rem; }

.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.08em;
  color: var(--white);
}
.nav-logo span { color: var(--brand); }

.nav-links { display: flex; gap: 2.5rem; }
.nav-links a {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--brand); }

.nav-cta {
  background: var(--brand);
  color: var(--dark);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background var(--transition);
}
.nav-cta:hover { background: var(--brand-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--light);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 0 4rem;
  overflow: hidden;
}

.hero-bg-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(17, 17, 16, 0.92) 0%,
    rgba(17, 17, 16, 0.70) 55%,
    rgba(17, 17, 16, 0.30) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200, 169, 110, 0.1);
  border: 1px solid rgba(200, 169, 110, 0.3);
  color: var(--brand);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

.hero-dot {
  width: 6px;
  height: 6px;
  background: var(--brand);
  border-radius: 50%;
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: 0.03em;
  color: var(--white);
  margin-bottom: 1.5rem;
}
.hero h1 em { color: var(--brand); font-style: normal; }

.hero > .hero-content > p {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 2.5rem;
}

.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-stats {
  position: absolute;
  right: 4rem;
  bottom: 4rem;
  z-index: 2;
  display: flex;
  gap: 3rem;
}

.stat { text-align: center; }
.stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.8rem;
  color: var(--brand);
  letter-spacing: 0.05em;
  line-height: 1;
}
.stat-label {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

/* ============================================================
   SHARED SECTION BASE
   ============================================================ */
section { padding: 6rem 4rem; }

/* ============================================================
   O NÁS
   ============================================================ */
.about { background: var(--dark); }

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-img-wrap { position: relative; border-radius: var(--radius); overflow: hidden; }
.about-img-wrap svg { display: block; width: 100%; }

.about-badge-box {
  position: absolute;
  bottom: -1.5rem;
  left: 0rem;
  background: var(--brand);
  color: var(--dark);
  padding: 1.5rem;
  border-radius: var(--radius);
  text-align: center;
}
.about-badge-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.2rem;
  line-height: 1;
  display: block;
}
.about-badge-txt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.about-text {
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}
.about-content .section-sub { margin-bottom: 1.5rem; }

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.about-value { display: flex; align-items: flex-start; gap: 0.75rem; }
.about-value-dot {
  width: 8px;
  height: 8px;
  background: var(--brand);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}
.about-value-text h4 {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 3px;
}
.about-value-text p { font-size: 0.8rem; color: var(--muted); font-weight: 300; }

/* ============================================================
   SLUŽBY
   ============================================================ */
.services { background: var(--dark2); }

.services-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5px;
  background: rgba(200, 169, 110, 0.1);
}

.service-card {
  background: var(--dark2);
  padding: 2.5rem 2rem;
  transition: background var(--transition);
  cursor: default;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 0;
  background: var(--brand);
  transition: height 0.3s ease;
}
.service-card:hover::before { height: 100%; }
.service-card:hover { background: var(--dark3); }

.service-icon {
  width: 48px; height: 48px;
  background: rgba(200, 169, 110, 0.1);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.service-icon svg {
  width: 24px; height: 24px;
  stroke: var(--brand);
  fill: none;
  stroke-width: 1.5;
}
.service-card h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.service-card p {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.7;
}

/* ============================================================
   GALERIE
   ============================================================ */
.gallery { background: var(--dark3); }
.gallery-header { margin-bottom: 3rem; }

.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 220px 220px;
  gap: 4px;
}

.gallery-item { position: relative; overflow: hidden; }
.gallery-item.span2 { grid-row: span 2; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85);
  transition: filter 0.4s ease, transform 0.4s ease;
}
.gallery-item:hover img {
  filter: brightness(1);
  transform: scale(1.03);
}

.gallery-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0.75rem 1rem;
  background: linear-gradient(transparent, rgba(17, 17, 16, 0.85));
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--light);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(200, 169, 110, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brand);
  border: 1px solid var(--brand);
  padding: 0.4rem 1rem;
}

/* ============================================================
   KONTAKT
   ============================================================ */
.contact { background: var(--dark2); }

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.contact-info .section-sub { margin-bottom: 2.5rem; }

.contact-detail {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.contact-detail-icon {
  width: 36px; height: 36px;
  background: rgba(200, 169, 110, 0.1);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-detail-icon svg {
  width: 16px; height: 16px;
  stroke: var(--brand);
  fill: none;
  stroke-width: 1.5;
}
.contact-detail-text p {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}
.contact-detail-text span { font-size: 0.95rem; color: var(--light); }

.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.form-group input,
.form-group textarea,
.form-group select {
  background: var(--dark3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--light);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  outline: none;
  transition: border-color var(--transition);
  width: 100%;
  appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--brand); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select option { background: var(--dark3); }

.form-notice {
  font-size: 0.85rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-top: 0.5rem;
}
.form-notice.success { background: rgba(63, 109, 17, 0.2); color: #8fc45a; }
.form-notice.error   { background: rgba(163, 45, 45, 0.2); color: #f09595; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--dark);
  border-top: 1px solid rgba(200, 169, 110, 0.1);
  padding: 2.5rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  color: var(--white);
}
.footer-logo span { color: var(--brand); }
.footer-sro {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 300;
  letter-spacing: 0;
}
.footer-copy { font-size: 0.78rem; color: var(--muted); }
.footer-links { display: flex; gap: 2rem; }
.footer-links a {
  font-size: 0.78rem;
  color: var(--muted);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--brand); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .about-inner { gap: 3rem; }
  .contact-inner { gap: 3rem; }
}

@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }
  nav.scrolled { padding: 0.85rem 1.5rem; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(17, 17, 16, 0.97);
    padding: 1.5rem;
    gap: 1.25rem;
    border-bottom: 1px solid rgba(200, 169, 110, 0.15);
  }
  .nav-links.open { display: flex; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .hero { padding: 7rem 1.5rem 4rem; min-height: auto; flex-direction: column; align-items: flex-start; }
  .hero-stats {
  position: static;
  margin-top: 2.5rem;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-bottom: 0;
  width: 100%;
  justify-content: space-around;
  border-top: 1px solid rgba(200, 169, 110, 0.15);
  padding-top: 2rem;
  }

  section { padding: 4rem 1.5rem; }

  .about-inner { grid-template-columns: 1fr; gap: 3rem; }
  .about-visual { padding-bottom: 3.5rem; }
  .about-badge-box { bottom: 0; left: 0; padding: 1rem 1.5rem; position: relative; }

  .services-header { flex-direction: column; align-items: flex-start; }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 180px 180px 180px;
  }
  .gallery-item.span2 { grid-row: span 1; grid-column: span 2; }

  .contact-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-row { grid-template-columns: 1fr; }

  footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.5rem;
    gap: 1.25rem;
  }
  .footer-links { flex-wrap: wrap; gap: 1rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 3rem; }
  .gallery-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .gallery-item.span2 { grid-column: span 1; height: 260px; }
  .gallery-item { height: 200px; }
  .about-values { grid-template-columns: 1fr; }
}
