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

html {
  scroll-behavior: auto; /* JS handles smooth scroll */
  overflow-x: hidden;    /* root-level containment — body alone isn't enough */
}

body {
  font-family: 'DM Sans', sans-serif;
  background-color: #f8f6f2;
  color: #1c1c1c;
  overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Archivo', sans-serif;
}

.section-label {
  display: inline-block;
  position: relative;
  padding-left: 20px;
}
.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 2px;
  background: #e8a020;
}

/* ===== NAVBAR ===== */
#navbar {
  background: transparent;
}
#navbar.scrolled {
  background: rgba(17, 17, 17, 0.97);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}
#navbar.scrolled #nav-logo,
#navbar.scrolled .nav-link {
  color: #ffffff;
}

.nav-link {
  font-family: 'Archivo', sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  position: relative;
  transition: color 0.2s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #e8a020;
  transition: width 0.25s ease;
}
.nav-link:hover { color: #ffffff; }
.nav-link:hover::after { width: 100%; }

/* ===== HERO ===== */
.hero-diagonal {
  -webkit-clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
  clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
}

/* Contain GSAP x-axis slide animations so they don't cause horizontal scroll */
#about,
#services,
#why-us,
#dotacie,
#gallery,
#contact {
  overflow-x: hidden;
}

/* ===== SERVICES ZIGZAG ===== */
.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.service-row:last-child {
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.service-row.reverse .service-img-wrap { order: 2; }
.service-row.reverse .service-text-wrap { order: 1; }

.service-img-wrap {
  position: relative;
  overflow: hidden;
}
.service-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.service-row:hover .service-img-wrap img {
  transform: scale(1.04);
}

.service-text-wrap {
  padding: 4rem 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-number {
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: 5rem;
  line-height: 1;
  color: rgba(232, 160, 32, 0.12);
  margin-bottom: -1rem;
  display: block;
}

@media (max-width: 768px) {
  .service-row {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .service-row.reverse .service-img-wrap { order: 0; }
  .service-row.reverse .service-text-wrap { order: 1; }
  .service-img-wrap { height: 260px; }
  .service-text-wrap { padding: 2rem 1.5rem; }
  .service-number { font-size: 3rem; }
}

/* ===== WHY US GRID ===== */
.why-card {
  background: #f8f6f2;
  padding: 2.5rem 2rem;
  transition: background 0.2s ease, transform 0.2s ease;
}
.why-card:hover {
  background: #ffffff;
  transform: translateY(-2px);
}
.why-icon-wrap {
  width: 48px;
  height: 48px;
  background: #e8a020;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

/* ===== DOTÁCIE BENTO ===== */
.dotacie-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  padding: 1.75rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.dotacie-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(232,160,32,0.3);
}
.dotacie-card:nth-child(1),
.dotacie-card:nth-child(2) {
  grid-column: span 1;
}
@media (min-width: 640px) {
  .dotacie-card:first-child {
    grid-column: span 2;
  }
}

/* ===== GALLERY GROUPS ===== */
.gallery-groups {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.gallery-group-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #4a5568;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e8e5e0;
  margin-bottom: 0.25rem;
}
.gallery-group-label i { color: #1c1c1c; }

.gallery-group-label--video {
  color: #e8a020;
  border-bottom-color: rgba(232,160,32,0.3);
  margin-top: 1.5rem;
}
.gallery-group-label--video i { color: #e8a020; }

/* ===== GALLERY UNIFORM GRID ===== */
.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.gallery-item {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4 / 3;
  background: #e8e5e0;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.gallery-item:hover img {
  transform: scale(1.06);
}

/* Regular photo overlay */
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(17,17,17,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}
.gallery-item:hover .gallery-item-overlay {
  background: rgba(17,17,17,0.45);
}
.gallery-item-overlay svg {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s ease, transform 0.3s ease;
  color: white;
}
.gallery-item:hover .gallery-item-overlay svg {
  opacity: 1;
  transform: scale(1);
}

/* Video thumbnail — always-visible overlay */
.gallery-item--video img {
  filter: brightness(0.72);
  transition: transform 0.5s ease, filter 0.3s ease;
}
.gallery-item--video:hover img {
  transform: scale(1.06);
  filter: brightness(0.55);
}

.gallery-video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
}

.play-btn {
  width: 52px;
  height: 52px;
  background: #e8a020;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  transition: transform 0.2s ease, background 0.2s ease;
  flex-shrink: 0;
}
.gallery-item--video:hover .play-btn {
  transform: scale(1.12);
  background: #f5b030;
}

.video-label {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.9);
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.video-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #e8a020;
  border-radius: 3px;
  padding: 3px 7px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: white;
}
.video-badge i { flex-shrink: 0; }

/* Responsive grid columns */
@media (max-width: 1024px) { .gallery-masonry { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .gallery-masonry { grid-template-columns: repeat(2, 1fr); gap: 8px; } }
@media (max-width: 400px)  { .gallery-masonry { grid-template-columns: repeat(2, 1fr); gap: 6px; } }

/* Mobile: smaller play button */
@media (max-width: 640px) {
  .play-btn { width: 38px; height: 38px; }
  .play-btn svg { width: 20px; height: 20px; }
  .video-label { font-size: 0.6rem; }
  .video-badge { font-size: 0.6rem; padding: 2px 5px; }
}

/* ===== ABOUT HIGHLIGHTS ===== */
.about-highlight {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: white;
  border-radius: 4px;
  border-left: 3px solid #e8a020;
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  color: #1c1c1c;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.about-highlight i {
  color: #e8a020;
  flex-shrink: 0;
}

/* ===== INSTAGRAM REEL MODAL ===== */
.reel-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.reel-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.reel-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}
.reel-modal-content {
  position: relative;
  z-index: 1;
  width: 90vw;
  max-width: 420px;
  max-height: 90vh;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  transform: scale(0.92);
  transition: transform 0.3s ease;
}
.reel-modal.open .reel-modal-content {
  transform: scale(1);
}
.reel-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}
.reel-modal-close:hover {
  color: #e8a020;
}
.reel-modal-body {
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 85vh;
}
.reel-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ===== FAQ ===== */
.faq-item {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq-item:hover {
  border-color: rgba(232,160,32,0.3);
}
.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 span {
  font-size: 1rem;
}
.faq-icon {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.faq-item.open .faq-icon {
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1.5rem;
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 1.5rem 1.25rem;
}

/* ===== CONTACT CARDS ===== */
.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contact-card-icon {
  width: 44px;
  height: 44px;
  background: rgba(232,160,32,0.15);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-card-icon i { color: #e8a020; }
.contact-card-label {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.25rem;
}
.contact-card-value {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}
a.contact-card-value:hover { color: #e8a020; }

/* ===== SCROLL TOP ===== */
#scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}

/* GSAP sets initial states itself — no CSS pre-hiding needed */

/* ===== 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;
  }
  .stagger-parent .stagger-item {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ===== FOCUS STATES ===== */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #e8a020;
  outline-offset: 2px;
}

/* ===== MOBILE MENU ===== */
.mobile-nav-link {
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: block;
  transition: color 0.2s ease;
}
.mobile-nav-link:hover { color: #e8a020; }

/* ===== RESPONSIVE: ≤ 480px (small phones) ===== */
@media (max-width: 480px) {
  /* Nav */
  #navbar .max-w-7xl { padding-left: 1rem; padding-right: 1rem; }

  /* Hero */
  #hero .max-w-7xl { padding-left: 1rem; padding-right: 1rem; }
  #hero-headline { font-size: 2.5rem; line-height: 1.05; }
  #hero-subheadline { font-size: 1rem; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas a { width: 100%; justify-content: center; }

  /* About */
  #about .max-w-7xl { padding-left: 1rem; padding-right: 1rem; }
  #about-headline { font-size: 2rem; }

  /* Services */
  #services .max-w-7xl { padding-left: 1rem; padding-right: 1rem; }
  .service-text-wrap { padding: 1.5rem 1rem; }
  .service-number { font-size: 2.5rem; }

  /* Why Us */
  #why-us .max-w-7xl { padding-left: 1rem; padding-right: 1rem; }
  .why-card { padding: 1.5rem 1.25rem; }

  /* Dotácie */
  #dotacie .max-w-7xl { padding-left: 1rem; padding-right: 1rem; }

  /* Gallery */
  #gallery .max-w-7xl { padding-left: 1rem; padding-right: 1rem; }
  .gallery-masonry { columns: 2; column-gap: 8px; }
  .gallery-item { margin-bottom: 8px; }

  /* CTA */
  #cta-banner .max-w-4xl { padding-left: 1rem; padding-right: 1rem; }
  #cta-headline { font-size: 2rem; }

  /* Contact */
  .contact-info-col { padding: 3rem 1.25rem; }
  .contact-form-col { padding: 3rem 1.25rem; }
  .contact-card-value { word-break: break-all; }

  /* Footer */
  #footer .max-w-7xl { padding-left: 1rem; padding-right: 1rem; }

  /* Floating buttons — nudge closer to edge */
  #scroll-top { bottom: 1rem; right: 1rem; }
  #whatsapp-btn { bottom: 1rem; left: 1rem; }
}

/* ===== RESPONSIVE: < 350px (very small screens) ===== */
@media (max-width: 349px) {
  /* Nav */
  #navbar .max-w-7xl { padding-left: 0.75rem; padding-right: 0.75rem; }
  #navbar .h-20 { height: 3.5rem; }
  #nav-logo { font-size: 1.25rem; }

  /* All section containers */
  #hero .max-w-7xl,
  #about .max-w-7xl,
  #services .max-w-7xl,
  #why-us .max-w-7xl,
  #dotacie .max-w-7xl,
  #gallery .max-w-7xl,
  #cta-banner .max-w-4xl,
  #footer .max-w-7xl { padding-left: 0.75rem; padding-right: 0.75rem; }

  /* Hero */
  #hero-headline { font-size: 2rem; }
  #hero-subheadline { font-size: 0.9rem; }
  #hero .pt-32 { padding-top: 5rem; }
  .hero-ctas a { padding: 0.875rem 1.25rem; font-size: 0.875rem; }

  /* About */
  #about-headline { font-size: 1.75rem; }
  #about-img { max-height: 240px; }

  /* Services */
  .service-text-wrap { padding: 1.25rem 0.75rem; }
  .service-text-wrap h3 { font-size: 1.25rem; }
  .service-number { font-size: 2rem; }
  .service-img-wrap { height: 200px; }

  /* Why Us */
  .why-card { padding: 1.25rem 1rem; }

  /* Dotácie */
  #dotacie-headline { font-size: 1.75rem; }
  .dotacie-card { padding: 1.25rem; }

  /* Gallery — single column on very small screens */
  .gallery-masonry { columns: 1; }

  /* CTA */
  #cta-headline { font-size: 1.75rem; }
  #cta-banner { padding-top: 4rem; padding-bottom: 4rem; }

  /* Contact */
  .contact-info-col { padding: 2.5rem 0.75rem; }
  .contact-form-col { padding: 2.5rem 0.75rem; }
  #contact-headline { font-size: 1.75rem; }
  .contact-card-value { font-size: 0.875rem; word-break: break-all; }

  /* Footer */
  #footer { padding-top: 2rem; padding-bottom: 2rem; }

  /* Floating buttons */
  #scroll-top { bottom: 0.75rem; right: 0.75rem; width: 2.5rem; height: 2.5rem; }
  #whatsapp-btn { bottom: 0.75rem; left: 0.75rem; width: 3rem; height: 3rem; }
}
