/* ============================================
   MATEJ MLYNEK – Custom Styles
   Design: Bold & Editorial | Archivo + DM Sans
   Colors: Charcoal, Rust, Warm White
   ============================================ */

:root {
  --primary: #c0622a;
  --secondary: #1c1c1c;
  --accent: #e8a87c;
  --dark: #111111;
  --light: #f5f2ee;
  --text: #2a2a2a;
  --text-light: #8a8278;
}

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

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

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

/* ---- PAGE LOADER ---- */
#page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #111111;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}
.loader-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: #c0622a;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- NAVBAR ---- */
#navbar {
  background: rgba(245, 242, 238, 0.97);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}

.nav-logo-main { color: var(--secondary); transition: color 0.3s; }
.nav-logo-sub { color: var(--text-light); transition: color 0.3s; }
.nav-link {
  font-family: 'Archivo', sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  color: var(--secondary);
  text-decoration: none;
  position: relative;
  transition: color 0.2s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.25s ease;
}
.nav-link:hover::after { width: 100%; }
.nav-link:hover { color: var(--primary); }

.nav-cta-btn {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  border-color: var(--primary);
  color: var(--primary);
  transition: all 0.2s;
}
.nav-cta-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--secondary);
  transition: all 0.3s;
}

/* Mobile menu */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background: var(--light);
}
.mobile-menu.open { max-height: 600px; }
.mobile-nav-link {
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--secondary);
  text-decoration: none;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  display: block;
  transition: color 0.2s;
}
.mobile-nav-link:hover { color: var(--primary); }

/* ---- WHATSAPP ICON ---- */
.wa-icon {
  color: inherit;
  flex-shrink: 0;
}

/* ---- HERO ---- */
.hero-section { background: var(--dark); }
.hero-bg {
  background-image: var(--hero-bg-url);
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 8s ease;
}
.hero-bg.loaded { transform: scale(1); }
.hero-overlay {
  background: linear-gradient(to top, rgba(10,10,10,0.85) 0%, rgba(10,10,10,0.4) 60%, rgba(10,10,10,0.2) 100%);
}
.hero-headline {
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.0;
  letter-spacing: -0.03em;
}
.hero-badge {
  font-family: 'Archivo', sans-serif;
  letter-spacing: 0.15em;
  background: rgba(0,0,0,0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-color: var(--accent);
  color: var(--accent);
}
.hero-cta-btn,
.hero-cta-outline {
  font-family: 'Archivo', sans-serif;
  /* Only transition hover properties — NOT opacity/transform (avoids GSAP conflict) */
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
  /* Ensure visible even if GSAP fails */
  visibility: visible !important;
}
.hero-cta-btn:hover {
  background: #a8521f;
  box-shadow: 0 8px 24px rgba(192,98,42,0.3);
}
.hero-cta-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}


/* ---- SECTION LABELS ---- */
.section-label {
  display: inline-block;
  font-family: 'Archivo', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--primary);
}
.section-label-light {
  display: inline-block;
  font-family: 'Archivo', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(232,168,124,0.4);
}

/* ---- ABOUT ---- */
#about_1 { overflow-x: hidden; }
.stat-card {
  background: #fff;
  padding: 2rem;
  border-left: 4px solid var(--primary);
  transition: transform 0.2s, box-shadow 0.2s;
}
.stat-card:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.stat-icon-wrap {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(192,98,42,0.1);
  color: var(--primary);
  margin-bottom: 1rem;
}
.stat-word {
  font-family: 'Archivo', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--primary);
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}
.stat-text {
  min-width: 0;
}
.stat-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ---- SERVICES ---- */
.service-card {
  background: #1c1c1c;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
  cursor: default;
}
.service-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--primary);
  transition: width 0.4s ease;
}
.service-card:hover::before { width: 100%; }
.service-card:hover { background: #242424; }
.service-card.featured { background: var(--primary); }
.service-card.featured:hover { background: #a8521f; }
.service-card.featured::before { background: #fff; }
.service-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  margin-bottom: 1.25rem;
}
.service-card.featured .service-icon { background: rgba(255,255,255,0.2); }
.service-title {
  font-family: 'Archivo', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}
.service-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
}
.service-card.featured .service-desc { color: rgba(255,255,255,0.8); }

/* ---- GALLERY ---- */
.gallery-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/2;
  background: #ddd;
  cursor: pointer;
}
.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}
.gallery-card:hover img { transform: scale(1.07); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(17,17,17,0);
  display: flex;
  align-items: flex-end;
  padding: 1.75rem;
  transition: background 0.3s;
}
.gallery-card:hover .gallery-overlay { background: rgba(17,17,17,0.6); }
.gallery-caption {
  font-family: 'Archivo', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s;
}
.gallery-card:hover .gallery-caption { opacity: 1; transform: translateY(0); }
.gallery-zoom-icon {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s, transform 0.3s;
}
.gallery-card:hover .gallery-zoom-icon { opacity: 1; transform: scale(1); }

/* ---- PROCESS TIMELINE ---- */
.timeline-container {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Vertical line running through the center dot column */
.timeline-container::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255,255,255,0.08);
  transform: translateX(-50%);
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr 56px 1fr;
  align-items: start;
  gap: 0;
  padding: 0 0 3.5rem 0;
  position: relative;
}
.timeline-item:last-child { padding-bottom: 0; }

/* Content on the left (even items) */
.timeline-content-left {
  padding-right: 2.5rem;
  text-align: right;
}
/* Content on the right (odd items) */
.timeline-content-right {
  padding-left: 2.5rem;
  text-align: left;
}
/* Empty spacer for the opposite side */
.timeline-spacer { visibility: hidden; }

/* Center dot + step number column */
.timeline-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: 1;
  padding-top: 0.25rem;
}
.timeline-dot {
  width: 44px;
  height: 44px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.2s;
}
.timeline-item:hover .timeline-dot {
  background: #a8521f;
  transform: scale(1.08);
}
.timeline-step {
  font-family: 'Archivo', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.2);
}

/* Card content */
.timeline-title {
  font-family: 'Archivo', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.timeline-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
}
.timeline-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(192,98,42,0.15);
  margin-bottom: 0.75rem;
  color: var(--primary);
}

/* Mobile: stack vertically, line on left */
@media (max-width: 640px) {
  .timeline-container::before {
    left: 22px;
    transform: none;
  }
  .timeline-item {
    grid-template-columns: 56px 1fr;
    padding-bottom: 2.5rem;
  }
  .timeline-content-left,
  .timeline-content-right {
    padding-left: 1.5rem;
    padding-right: 0;
    text-align: left;
    grid-column: 2;
    grid-row: 1;
  }
  .timeline-node {
    grid-column: 1;
    grid-row: 1;
  }
  .timeline-spacer { display: none; }
}

/* ---- TESTIMONIALS ---- */
.testimonial-row {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}
.testimonial-row.right {
  flex-direction: row-reverse;
}

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

.testimonial-bubble {
  position: relative;
  background: #fff;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  max-width: 100%;
  flex: 1;
}

/* Left-pointing tail (for left-aligned bubbles) */
.testimonial-row:not(.right) .testimonial-bubble::before {
  content: '';
  position: absolute;
  top: 18px;
  left: -10px;
  border-width: 8px 10px 8px 0;
  border-style: solid;
  border-color: transparent #fff transparent transparent;
}

/* Right-pointing tail (for right-aligned bubbles) */
.testimonial-row.right .testimonial-bubble::before {
  content: '';
  position: absolute;
  top: 18px;
  right: -10px;
  border-width: 8px 0 8px 10px;
  border-style: solid;
  border-color: transparent transparent transparent #fff;
}

.testimonial-quote {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.testimonial-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.testimonial-name {
  font-family: 'Archivo', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--secondary);
}
.testimonial-role {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 0.1rem;
}
.testimonial-stars {
  display: flex;
  gap: 2px;
  color: var(--primary);
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .testimonial-row,
  .testimonial-row.right { flex-direction: column; gap: 0.75rem; }
  .testimonial-row:not(.right) .testimonial-bubble::before,
  .testimonial-row.right .testimonial-bubble::before { display: none; }
}

/* ---- CTA BANNER ---- */
.cta-section { background: var(--dark); }
.cta-bg {
  background-image: var(--cta-bg-url);
  background-size: cover;
  background-position: center;
}
.cta-overlay {
  background: rgba(10,10,10,0.78);
}
.cta-main-btn {
  font-family: 'Archivo', sans-serif;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.cta-main-btn:hover {
  background: #a8521f;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(192,98,42,0.35);
}

/* ---- FAQ ---- */
.faq-item {
  background: #fff;
  border-left: 3px solid transparent;
  transition: border-color 0.2s;
}
.faq-item.open {
  border-left-color: var(--primary);
}
.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;
  text-align: left;
}
.faq-question-text {
  font-family: 'Archivo', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--secondary);
  line-height: 1.4;
}
.faq-icon {
  flex-shrink: 0;
  color: var(--text-light);
  transition: transform 0.3s ease;
}
.faq-item.open .faq-icon {
  transform: rotate(180deg);
  color: var(--primary);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.5rem;
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 1.5rem 1.25rem;
}
.faq-answer p {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.75;
}

/* ---- FLOATING CALL BUTTON ---- */
.floating-call-btn {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(192,98,42,0.35);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s, box-shadow 0.2s;
  pointer-events: none;
}
.floating-call-btn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.floating-call-btn:hover {
  background: #a8521f;
  box-shadow: 0 6px 28px rgba(192,98,42,0.45);
  transform: translateY(-2px);
}
@media (max-width: 640px) {
  .floating-call-text { display: none; }
  .floating-call-btn {
    padding: 0.875rem;
    border-radius: 50%;
    width: 52px;
    height: 52px;
    justify-content: center;
  }
}

/* ---- CONTACT ---- */
#contact_1 { overflow-x: hidden; }
.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: #fff;
  border-left: 3px solid var(--primary);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.contact-card:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.contact-card-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(192,98,42,0.1);
  flex-shrink: 0;
  color: var(--primary);
}
.contact-card-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
}

.map-container { border: 1px solid rgba(0,0,0,0.08); }

/* ---- FORM ---- */
.form-label {
  display: block;
  font-family: 'Archivo', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}
.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  background: #fff;
  border: 1.5px solid rgba(0,0,0,0.1);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}
.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(192,98,42,0.1);
}
.form-submit-btn {
  font-family: 'Archivo', sans-serif;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.2s;
}
.form-submit-btn:hover {
  background: #a8521f;
  transform: translateY(-1px);
}

/* ---- FOOTER ---- */
.footer-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-link:hover { color: var(--accent); }
.footer-contact-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-contact-link:hover { color: var(--accent); }

/* ---- SCROLL TO TOP ---- */
.scroll-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 100;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
  pointer-events: none;
}
.scroll-top-btn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.scroll-top-btn:hover { background: #a8521f; }

/* ---- PREFERS 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;
  }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .hero-headline { font-size: clamp(2rem, 10vw, 3rem); }
  .stat-word { font-size: 1.15rem; }

  /* Center about section on mobile */
  .about-text-col {
    text-align: center;
  }
  .about-text-col .section-label {
    margin: 0 auto;
  }
  .about-text-col .flex {
    justify-content: center;
  }
  .about-stats-col {
    width: 100%;
    padding: 0;
  }
  #about-stats {
    gap: 1rem;
    max-width: 100%;
  }
  .stat-card {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }
  .stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
  }
  .stat-card .stat-icon-wrap {
    margin-bottom: 0;
    flex-shrink: 0;
  }
  .stat-card .stat-word {
    margin-bottom: 0.15rem;
    font-size: 1.05rem;
  }
  .stat-card .stat-label {
    font-size: 0.82rem;
  }
}
