/* =============================================================
   GRÜNBERG BAUARBEITEN — STYLESHEET (zelená / krémová varianta)
   ============================================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --c-green-900: #16261c;
  --c-green-800: #1e3a2b;
  --c-green-700: #28493a;
  --c-green-600: #3a5c49;
  --c-green-mist: #eef1ec;
  --c-cream:    #faf9f6;
  --c-cream-2:  #f4f2ec;
  --c-white:    #ffffff;
  --c-ink:      #1b1c17;
  --c-muted:    #6f6e63;
  --c-muted-2:  #9a998d;
  --c-border:   rgba(27,28,23,0.1);
  --c-border-2: rgba(255,255,255,0.14);
  --c-gold:     #b28a4c;

  --radius:     18px;
  --radius-sm:  10px;
  --shadow:     0 4px 28px rgba(22,38,28,0.08);
  --shadow-lg:  0 18px 60px rgba(22,38,28,0.16);
  --transition: 0.5s cubic-bezier(0.16,1,0.3,1);

  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
}

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

body {
  font-family: var(--font-body);
  background: var(--c-white);
  color: var(--c-ink);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--c-cream); }
::-webkit-scrollbar-thumb { background: var(--c-green-700); border-radius: 3px; }
::selection { background: var(--c-green-800); color: var(--c-white); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.section    { padding: 120px 0; }
.section-cream { background: var(--c-cream); }
.accent     { color: var(--c-green-800); font-family: var(--font-display); font-style: italic; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-green-700);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 22px; height: 1px;
  background: var(--c-green-700);
  display: inline-block;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 3.9vw, 3.1rem);
  font-weight: 600;
  color: var(--c-ink);
  line-height: 1.18;
  letter-spacing: -0.01em;
}
.section-header p {
  color: var(--c-muted);
  font-size: 1.02rem;
  max-width: 480px;
  margin-top: 16px;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: background var(--transition), color var(--transition), transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--c-green-800);
  color: var(--c-white);
}
.btn-primary:hover { background: var(--c-green-700); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost {
  background: transparent;
  color: var(--c-ink);
  border-color: rgba(27,28,23,0.22);
}
.btn-ghost:hover { border-color: var(--c-ink); background: rgba(27,28,23,0.04); }
.btn-on-dark {
  background: var(--c-white);
  color: var(--c-green-800);
}
.btn-on-dark:hover { background: var(--c-cream); transform: translateY(-2px); }
.btn-outline-on-dark {
  background: transparent;
  color: var(--c-white);
  border-color: var(--c-border-2);
}
.btn-outline-on-dark:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.4); }
.btn-sm { padding: 12px 22px; font-size: 0.85rem; }

/* ---- REVEAL ---- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s var(--transition); }
.reveal.visible { opacity: 1; transform: none; }
.reveal[style*="--delay"] { transition-delay: var(--delay, 0s); }

/* =============================================================
   NAVBAR
   ============================================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 22px 0;
  background: rgba(250,249,246,0);
  border-bottom: 1px solid transparent;
  transition: background 0.4s, padding 0.3s, border-color 0.4s, box-shadow 0.4s;
}
.navbar.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--c-border);
  padding: 14px 0;
  box-shadow: 0 2px 20px rgba(22,38,28,0.05);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--c-ink);
  flex-shrink: 0;
}
.logo-mark { width: 42px; height: 42px; flex-shrink: 0; color: var(--c-green-800); object-fit: contain; }
.logo-chip {
  display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px;
  background: var(--c-cream);
  border-radius: 50%;
  flex-shrink: 0;
  padding: 6px;
}
.logo-chip .logo-mark { width: 100%; height: 100%; }
.logo-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--c-ink);
}
.logo-text span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-top: 2px;
}
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  text-decoration: none;
  color: var(--c-ink);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--c-green-700); }
.nav-right { display: flex; align-items: center; gap: 26px; flex-shrink: 0; }
.nav-phone {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--c-ink);
  font-size: 0.9rem;
  font-weight: 500;
}
.nav-phone svg { width: 17px; height: 17px; color: var(--c-green-700); flex-shrink: 0; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 5;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--c-ink); border-radius: 2px; transition: var(--transition); }
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* =============================================================
   HERO
   ============================================================= */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--c-green-900);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center 62%;
  transform: scale(1.06);
  transition: transform 7s ease;
}
.hero-bg.loaded { transform: scale(1); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15,25,18,0.82) 0%, rgba(15,25,18,0.58) 42%, rgba(15,25,18,0.32) 68%, rgba(15,25,18,0.5) 100%),
    linear-gradient(to top, rgba(10,18,13,0.55) 0%, transparent 34%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  padding: 150px 32px 90px;
  margin: 0 auto 0 0;
}
.hero-content .container-inner { max-width: 1200px; }
.hero-inner { max-width: 1200px; margin: 0 auto; padding: 0 32px; width: 100%; }
.hero-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 50px;
  padding: 6px 16px;
  margin-bottom: 26px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.6vw, 4.1rem);
  font-weight: 600;
  color: var(--c-white);
  line-height: 1.14;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}
.hero-sub {
  font-size: 1.08rem;
  color: rgba(255,255,255,0.82);
  max-width: 460px;
  margin-bottom: 38px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* =============================================================
   FEATURES STRIP
   ============================================================= */
.features { padding: 90px 0; background: var(--c-cream); position: relative; }
.wall-divider {
  position: absolute;
  top: -1px; left: 50%;
  transform: translate(-50%, -100%);
  width: 220px;
  opacity: 0.9;
  pointer-events: none;
}
.wall-divider img { width: 100%; height: auto; display: block; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 46px;
}
.feature-item { text-align: left; }
.feature-icon {
  width: 46px; height: 46px;
  color: var(--c-green-800);
  margin-bottom: 20px;
}
.feature-icon svg { width: 100%; height: 100%; }
.feature-item h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--c-ink);
  margin-bottom: 8px;
}
.feature-item p { font-size: 0.9rem; color: var(--c-muted); line-height: 1.6; }

/* =============================================================
   ABOUT
   ============================================================= */
.about { background: var(--c-white); }
.about-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
  align-items: center;
}
.about-content p {
  color: var(--c-muted);
  font-size: 0.98rem;
  margin: 20px 0;
  max-width: 460px;
}
.about-visual { position: relative; }
.about-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 6/5;
}
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-badge {
  position: absolute;
  bottom: -26px; left: -26px;
  background: var(--c-green-800);
  color: var(--c-white);
  border-radius: var(--radius-sm);
  padding: 20px 26px;
  box-shadow: var(--shadow-lg);
}
.about-badge strong { display: block; font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; }
.about-badge span { font-size: 0.76rem; color: rgba(255,255,255,0.75); letter-spacing: 0.02em; }

/* =============================================================
   GALLERY / PROJECTS
   ============================================================= */
.gallery { background: var(--c-cream); }
.gallery-inner {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  align-items: center;
}
.gallery-head p { color: var(--c-muted); font-size: 0.95rem; margin: 16px 0 28px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.gallery-card {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/5;
  position: relative;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.gallery-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.gallery-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s var(--transition);
}
.gallery-card:hover img { transform: scale(1.07); }
.gallery-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,30,22,0.55) 0%, transparent 45%);
}

/* =============================================================
   CONTACT
   ============================================================= */
.contact { padding: 100px 0 120px; background: var(--c-white); }
.contact-card {
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.05fr 0.85fr;
  box-shadow: var(--shadow-lg);
}
.contact-promo {
  background: var(--c-green-800);
  color: var(--c-white);
  padding: 56px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contact-promo .eyebrow { color: rgba(255,255,255,0.7); }
.contact-promo .eyebrow::before { background: rgba(255,255,255,0.5); }
.contact-promo h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.9vw, 2.3rem);
  font-weight: 600;
  line-height: 1.22;
  margin-bottom: 16px;
}
.contact-promo p { color: rgba(255,255,255,0.78); font-size: 0.92rem; margin-bottom: 28px; max-width: 320px; }
.contact-details {
  background: var(--c-cream-2);
  padding: 56px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 30px;
}
.contact-item { display: flex; align-items: flex-start; gap: 16px; }
.c-icon {
  width: 42px; height: 42px;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-green-800);
  flex-shrink: 0;
}
.c-icon svg { width: 18px; height: 18px; }
.contact-item strong { display: block; font-size: 0.72rem; color: var(--c-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 4px; font-weight: 600; }
.contact-item a, .contact-item span { color: var(--c-ink); text-decoration: none; font-size: 0.96rem; font-weight: 500; }
.contact-item a:hover { color: var(--c-green-700); }
.contact-map {
  position: relative;
  background: var(--c-green-mist);
  min-height: 260px;
  overflow: hidden;
}
.contact-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-pin {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 40px; height: 40px;
  background: var(--c-green-800);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 8px rgba(30,58,43,0.14), var(--shadow);
}
.map-pin svg { width: 18px; height: 18px; color: var(--c-white); position: static; }

/* =============================================================
   FOOTER
   ============================================================= */
.footer { background: var(--c-green-900); color: rgba(255,255,255,0.7); padding-top: 80px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--c-border-2);
}
.footer .nav-logo { color: var(--c-white); }
.footer .logo-mark { color: var(--c-white); }
.footer .logo-text span { color: rgba(255,255,255,0.5); }
.footer-brand p { font-size: 0.88rem; color: rgba(255,255,255,0.55); margin-top: 18px; max-width: 280px; }
.footer-social {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid var(--c-border-2);
  border-radius: 50%;
  color: var(--c-white);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.footer-social:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.4); }
.footer-social svg { width: 16px; height: 16px; }
.footer-col h4 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--c-white); margin-bottom: 20px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { text-decoration: none; color: rgba(255,255,255,0.58); font-size: 0.9rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--c-white); }
.footer-col span { font-size: 0.9rem; color: rgba(255,255,255,0.58); }
.footer-bottom {
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom span { font-size: 0.8rem; color: rgba(255,255,255,0.4); }
.footer-bottom-links { display: flex; gap: 22px; }
.footer-bottom-links a { font-size: 0.8rem; color: rgba(255,255,255,0.4); text-decoration: none; transition: color 0.2s; }
.footer-bottom-links a:hover { color: var(--c-white); }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .about-inner { grid-template-columns: 1fr; gap: 56px; }
  .about-visual { order: -1; max-width: 480px; margin: 0 auto; }
  .gallery-inner { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-card { grid-template-columns: 1fr; }
  .contact-map { min-height: 200px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .features { padding: 64px 0; }
  .nav-links { display: none; position: fixed; inset: 0; top: 74px; background: var(--c-cream); flex-direction: column; align-items: center; justify-content: center; gap: 30px; font-size: 1.15rem; z-index: 150; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-phone { display: none; }
  .hero-content { padding: 130px 24px 70px; max-width: 100%; }
  .features-grid { grid-template-columns: 1fr; gap: 34px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .contact-promo, .contact-details { padding: 40px 26px; }
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .about-badge { left: 16px; bottom: -20px; padding: 16px 20px; }
}
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .container { padding: 0 20px; }
}

/* =============================================================
   CONTACT MODAL
   ============================================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(15,22,16,0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal-panel {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--c-white);
  border-radius: var(--radius);
  padding: 48px 40px 40px;
  box-shadow: var(--shadow-lg);
  transform: translateY(24px) scale(0.98);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), opacity 0.4s;
}
.modal-overlay.open .modal-panel { transform: none; opacity: 1; }
.modal-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--c-border);
  background: var(--c-white);
  color: var(--c-ink);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.modal-close:hover { background: var(--c-cream); border-color: var(--c-ink); }
.modal-close svg { width: 16px; height: 16px; }
.modal-panel h3 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--c-ink);
  line-height: 1.25;
  margin-bottom: 8px;
}
.modal-sub { color: var(--c-muted); font-size: 0.92rem; margin-bottom: 28px; }

.hp-field { position: absolute; left: -9999px; opacity: 0; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--c-ink);
  margin-bottom: 7px;
}
.form-group input, .form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  background: var(--c-cream);
  font-family: var(--font-body);
  font-size: 0.94rem;
  color: var(--c-ink);
  transition: border-color 0.2s, background 0.2s;
}
.form-group textarea { resize: vertical; min-height: 90px; }
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--c-green-700);
  background: var(--c-white);
}
.btn-full { width: 100%; margin-top: 6px; }
.form-error {
  display: none;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: #fbeceb;
  color: #9a3b34;
  font-size: 0.85rem;
  text-align: center;
}
.form-error a { color: inherit; font-weight: 600; }
.form-error.visible { display: block; }

.form-success-panel {
  display: none;
  text-align: center;
  padding: 20px 8px 8px;
}
.form-success-panel.visible { display: block; }
.success-icon {
  width: 60px; height: 60px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--c-green-mist);
  color: var(--c-green-800);
  display: flex; align-items: center; justify-content: center;
}
.success-icon svg { width: 26px; height: 26px; }
.form-success-panel h3 { text-align: center; }
.form-success-panel p { color: var(--c-muted); font-size: 0.94rem; margin-bottom: 26px; }

@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
  .modal-panel { padding: 40px 24px 32px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal, .hero-bg, .gallery-card img { transition: none !important; }
}
