/* ============================================
   Marko Villani - Stavebné práce
   Design: Warm & Organic | Earth Tones
   ============================================ */

:root {
  --primary: #C17F3E;
  --secondary: #2C2C2C;
  --accent: #D4923A;
  --dark: #1A1A1A;
  --light: #F5F0EB;
  --text: #333333;
  --text-light: #7A7A7A;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  color: var(--text);
  overflow-x: hidden;
}

/* ============================================
   NAVIGATION
   ============================================ */

.nav-static {
  background: var(--light);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.nav-static .nav-link,
.nav-static .nav-logo {
  color: var(--secondary);
}

.nav-static .nav-cta {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Mobile menu */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open {
  transform: translateX(0);
}

/* Hamburger */
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translateY(4.5px) translateX(4.5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-4.5px) translateX(4.5px);
}

/* ============================================
   HERO
   ============================================ */

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(245, 240, 235, 0.47);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
}

.hero-badge span {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 50px;
}

/* ============================================
   SECTION LABELS
   ============================================ */

.section-label {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
  position: relative;
  padding-left: 48px;
}

.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 36px;
  height: 2px;
  background: var(--primary);
}

.hero-label {
  background: var(--primary);
  color: #fff !important;
  padding: 6px 18px 6px 18px;
  border-radius: 999px;
  padding-left: 18px;
}

.hero-label::before {
  display: none;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about-text {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text);
  max-width: 700px;
}

.about-text::first-letter {
  font-size: 3.5rem;
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  color: var(--primary);
  float: left;
  line-height: 1;
  margin-right: 8px;
  margin-top: 4px;
}

.stat-card {
  border-left: 3px solid var(--primary);
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.stat-value {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 2.5rem;
  color: var(--primary);
  line-height: 1.1;
}

/* ============================================
   SERVICES SECTION
   ============================================ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  cursor: default;
}

.service-card-image {
  position: absolute;
  inset: 0;
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-card:hover .service-card-image img {
  transform: scale(1.08);
}

.service-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 26, 26, 0.85) 0%, rgba(26, 26, 26, 0.3) 60%, rgba(26, 26, 26, 0.1) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  transition: background 0.3s ease;
}

.service-card:hover .service-card-overlay {
  background: linear-gradient(to top, rgba(26, 26, 26, 0.9) 0%, rgba(26, 26, 26, 0.5) 60%, rgba(26, 26, 26, 0.2) 100%);
}

.service-number {
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.15);
  line-height: 1;
  position: absolute;
  top: 1.25rem;
  left: 1.5rem;
}

.service-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  transition: background 0.3s ease;
}

.service-card:hover .service-icon-wrap {
  background: var(--accent);
}

/* ============================================
   CTA BANNER
   ============================================ */

.cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.75);
  z-index: 1;
}

.cta-section {
  position: relative;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--primary);
}

/* ============================================
   TESTIMONIALS
   ============================================ */

.testimonial-slider-wrap {
  position: relative;
  overflow: hidden;
}

.testimonial-slider {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-slide {
  min-width: 100%;
  padding: 0 1rem;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2.5rem;
  max-width: 680px;
  margin: 0 auto;
  position: relative;
}

.testimonial-quote {
  color: rgba(193, 127, 62, 0.15);
  margin-bottom: 1.25rem;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 2rem;
}

.testimonial-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.testimonial-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(193, 127, 62, 0.1);
}

.testimonial-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.testimonial-dot.active {
  background: var(--primary);
  transform: scale(1.2);
}

.testimonial-dot:hover {
  background: var(--accent);
}

/* ============================================
   GALLERY
   ============================================ */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

.gallery-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1/1;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-card:hover img {
  transform: scale(1.08);
}

.gallery-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 26, 26, 0.7) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

.gallery-card:hover .gallery-card-overlay {
  opacity: 1;
}


/* ============================================
   PROCESS SECTION
   ============================================ */

/* Timeline */
.timeline {
  position: relative;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  position: relative;
  align-self: stretch;
}

.timeline-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 2;
  box-shadow: 0 4px 16px rgba(193, 127, 62, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover .timeline-icon-wrap {
  transform: scale(1.12);
  box-shadow: 0 6px 24px rgba(193, 127, 62, 0.4);
}

.timeline-connector {
  width: 2px;
  flex: 1;
  background: rgba(193, 127, 62, 0.25);
  margin-top: 6px;
}

.timeline-card {
  flex: 1;
  background: #fff;
  border-radius: 14px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border-left: 3px solid var(--primary);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover .timeline-card {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.timeline-step-label {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(193, 127, 62, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
}

@media (max-width: 640px) {
  .timeline-item {
    gap: 1rem;
  }

  .timeline-icon-wrap {
    width: 44px;
    height: 44px;
  }

  .timeline-card {
    padding: 1.25rem;
  }
}

/* ============================================
   FAQ SECTION
   ============================================ */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  text-align: left;
  transition: background 0.2s ease;
}

.faq-question:hover {
  background: rgba(193, 127, 62, 0.04);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer p {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.95rem;
}

.faq-chevron {
  transition: transform 0.3s ease;
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 12px;
  transition: background 0.3s ease;
}

.contact-info-card:hover {
  background: rgba(193, 127, 62, 0.05);
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid #E0D8CF;
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: #fff;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(193, 127, 62, 0.1);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(193, 127, 62, 0.25);
}

/* ============================================
   FOOTER
   ============================================ */

.footer-link {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--primary);
}

/* ============================================
   SCROLL TOP BUTTON
   ============================================ */

#scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================
   MAP CONTAINER
   ============================================ */

.map-container {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.map-container iframe {
  width: 100%;
  height: 300px;
  border: 0;
}

/* ============================================
   FORM VALIDATION
   ============================================ */

.contact-form input.error,
.contact-form textarea.error {
  border-color: #e74c3c;
}

.form-success {
  padding: 1rem;
  border-radius: 12px;
  background: rgba(193, 127, 62, 0.1);
  color: var(--primary);
  font-weight: 500;
  text-align: center;
  display: none;
}

.form-success.show {
  display: block;
}

/* ============================================
   RESPONSIVENESS FIXES
   ============================================ */

/* Contain GSAP slide animations within sections */
#about_1,
#services_1,
#gallery_1,
#testimonials_1,
#process_1,
#contact_1,
#cta_1 {
  overflow-x: hidden;
}

/* ---- 768px and below (tablet) ---- */
@media (max-width: 768px) {
  .stat-value {
    font-size: 2rem;
  }

  .stat-card {
    padding: 1.25rem;
  }

  .about-text {
    font-size: 1rem;
  }

  .about-text::first-letter {
    font-size: 2.75rem;
  }

  .map-container iframe {
    height: 220px;
  }

  .testimonial-card {
    padding: 1.75rem;
  }
}

/* ---- 480px and below (small phones) ---- */
@media (max-width: 480px) {
  .service-card {
    aspect-ratio: 4/3;
  }

  .service-card-overlay {
    padding: 1.25rem;
  }

  .service-number {
    font-size: 2rem;
  }

  .stat-value {
    font-size: 1.75rem;
  }

  .stat-card {
    padding: 1rem;
  }

  .section-label {
    font-size: 0.65rem;
    letter-spacing: 2px;
    padding-left: 36px;
  }

  .section-label::before {
    width: 24px;
  }

  .btn-primary {
    padding: 14px 24px;
    font-size: 0.9rem;
  }

  .contact-info-card {
    padding: 0.75rem;
    gap: 0.75rem;
  }

  .contact-icon {
    width: 38px;
    height: 38px;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 12px 14px;
    font-size: 0.9rem;
  }

  .timeline-icon-wrap {
    width: 40px;
    height: 40px;
  }

  .timeline-card {
    padding: 1rem;
    margin-bottom: 1.5rem;
  }

  .timeline-step-label {
    font-size: 0.6rem;
    letter-spacing: 1.5px;
  }

  .gallery-card {
    aspect-ratio: 4/3;
  }

  .testimonial-card {
    padding: 1.25rem;
  }

  .testimonial-btn {
    width: 38px;
    height: 38px;
  }

  .footer-link {
    font-size: 0.9rem;
  }

  #scroll-top {
    width: 40px;
    height: 40px;
    bottom: 4px;
    right: 4px;
  }

  #whatsapp-btn {
    width: 48px;
    height: 48px;
    bottom: 50px;
    right: 4px;
  }
}

/* ---- Below 350px (very small screens) ---- */
@media (max-width: 350px) {
  .nav-static .nav-logo {
    font-size: 1rem;
  }

  .hero-content h1 {
    font-size: 1.75rem !important;
  }

  .hero-content p {
    font-size: 0.95rem !important;
  }

  .hero-btns {
    flex-direction: column !important;
  }

  .hero-btns a {
    width: 100%;
    text-align: center;
    font-size: 0.9rem !important;
    padding: 12px 16px !important;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

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

  .stat-value {
    font-size: 1.5rem;
  }

  .about-text::first-letter {
    font-size: 2.25rem;
  }

  .timeline-item {
    gap: 0.75rem;
  }

  .timeline-icon-wrap {
    width: 36px;
    height: 36px;
  }

  .timeline-card {
    padding: 0.85rem;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 10px 12px;
  }

  .map-container iframe {
    height: 180px;
  }

  .cta-section h2 {
    font-size: 1.5rem !important;
  }

  [class*="max-w-"] {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }

  .contact-info-card div:last-child {
    word-break: break-all;
  }
}