/* ===== R TRANS EUROPE s.r.o. - Custom Styles ===== */

/* CSS Custom Properties */
:root {
  --primary: #B8860B;
  --secondary: #2C3E50;
  --accent: #D4A843;
  --dark: #1A1A2E;
  --light: #F5F0EB;
  --text: #2D2D2D;
  --text-light: #6B7280;
}

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

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Navbar */
.navbar-transparent {
  background: transparent;
}

.navbar-solid {
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

.navbar-transparent .nav-logo,
.navbar-transparent .nav-link {
  color: #ffffff;
}

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

.nav-link {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  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%;
}

/* Hero collage */
.hero-collage-item {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.hero-collage-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-collage-item:hover img {
  transform: scale(1.05);
}

.hero-collage-item:first-child {
  grid-row: span 2;
}

/* Section accent line */
.accent-line {
  width: 48px;
  height: 3px;
  background: var(--primary);
  margin-bottom: 1rem;
}

/* Service row */
.service-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem 2rem;
  background: var(--light);
  border-radius: 16px;
  border-left: 4px solid transparent;
  transition: all 0.4s ease;
  cursor: default;
}

.service-row:hover {
  border-left-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  transform: translateX(8px);
}

.service-number {
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: 2.5rem;
  color: var(--accent);
  opacity: 0.3;
  line-height: 1;
  min-width: 60px;
  transition: opacity 0.3s ease;
}

.service-row:hover .service-number {
  opacity: 0.7;
}

.service-icon-wrap {
  width: 48px;
  height: 48px;
  background: var(--secondary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.3s ease;
}

.service-row:hover .service-icon-wrap {
  background: var(--primary);
}

.service-icon-wrap svg {
  width: 22px;
  height: 22px;
  color: white;
}

/* Feature card */
.feature-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.4s ease;
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
  transform: translateY(-4px);
}

.feature-icon-wrap {
  width: 52px;
  height: 52px;
  background: var(--accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.feature-icon-wrap svg {
  width: 24px;
  height: 24px;
  color: var(--dark);
}

/* Gallery item */
.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  aspect-ratio: 1;
}

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

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

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 46, 0);
  transition: background 0.3s ease;
}

.gallery-item:hover::after {
  background: rgba(26, 26, 46, 0.3);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  color: white;
  font-weight: 600;
  font-size: 0.85rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: 2;
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

/* Contact info item */
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  background: rgba(212, 168, 67, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

/* Stat counter */
.stat-block {
  text-align: center;
  padding: 1rem;
  border-top: 3px solid var(--accent);
}

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

.stat-label {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}

/* CTA section gradient overlay */
.cta-overlay {
  background: linear-gradient(to right, rgba(26, 26, 46, 0.92), rgba(26, 26, 46, 0.7));
}

/* Scroll top button */
#scroll-top.visible {
  opacity: 1;
  pointer-events: all;
}

/* Form success */
.form-success-show {
  display: block !important;
}

/* Footer link */
.footer-link {
  color: #9CA3AF;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

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

/* Mobile menu transitions */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

#mobile-menu.open {
  display: block;
  max-height: 400px;
}

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

  .service-row:hover,
  .feature-card:hover,
  .gallery-item img,
  .hero-collage-item img {
    transform: none !important;
  }
}

/* ===== Overflow containment for GSAP slide animations ===== */
#about_1,
#services_1,
#features_1,
#contact_1 {
  overflow-x: hidden;
}

/* ===== Responsive: Tablet & below (768px) ===== */
@media (max-width: 768px) {
  .service-row {
    grid-template-columns: 1fr;
    padding: 1.25rem;
  }

  .service-row:hover {
    transform: none;
  }

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

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

  .contact-info-item {
    word-break: break-word;
  }
}

/* ===== Responsive: Small phones (480px) ===== */
@media (max-width: 480px) {
  .stat-block {
    padding: 0.5rem;
  }

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

  .stat-label {
    font-size: 0.75rem;
  }

  .service-row {
    padding: 1rem;
    gap: 1rem;
  }

  .service-number {
    font-size: 1.5rem;
    min-width: 40px;
  }

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

  .feature-card {
    padding: 1.25rem;
  }

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

/* ===== Responsive: Very small screens (350px) ===== */
@media (max-width: 350px) {
  /* Tighter container padding */
  .max-w-7xl,
  .max-w-3xl {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }

  /* Nav */
  #nav_1 > div {
    height: 3.5rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .nav-logo {
    font-size: 0.9rem !important;
  }

  /* Hero */
  #hero_1 h1 {
    font-size: 1.75rem !important;
  }

  #hero_1 p {
    font-size: 0.95rem !important;
  }

  /* Hero CTAs stack vertically */
  #hero_1 .flex-wrap {
    flex-direction: column;
  }

  #hero_1 .hero-cta-primary,
  #hero_1 .hero-cta-secondary {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  /* About stats: single column */
  #about-stats {
    grid-template-columns: 1fr !important;
    gap: 0.5rem;
  }

  .stat-block {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-align: left;
    border-top: none;
    border-left: 3px solid var(--accent);
    padding: 0.5rem 0.75rem;
  }

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

  /* About image */
  #about_1 img {
    max-height: 240px;
  }

  /* Services */
  .service-row {
    padding: 0.75rem;
    gap: 0.5rem;
  }

  .service-row h3 {
    font-size: 0.9rem !important;
  }

  .service-row p {
    font-size: 0.8rem !important;
  }

  .service-number {
    font-size: 1.25rem;
    min-width: 30px;
  }

  .service-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 8px;
  }

  /* Contact padding */
  #contact_1 .bg-secondary {
    padding: 1rem !important;
  }

  #contact_1 .bg-light {
    padding: 1rem !important;
  }

  .contact-info-item {
    word-break: break-all;
  }

  .contact-info-icon {
    width: 36px;
    height: 36px;
  }

  /* CTA banner */
  #cta_1 h2 {
    font-size: 1.5rem !important;
  }

  /* Floating buttons closer to edge */
  #scroll-top {
    right: 0.75rem;
    bottom: 0.75rem;
    width: 2.5rem;
    height: 2.5rem;
  }

  .fixed.bottom-20 {
    right: 0.75rem;
    bottom: 3.5rem;
    width: 3rem;
    height: 3rem;
  }

  /* Gallery 2-col on very small */
  #gallery-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem;
  }

  /* Footer single column */
  #footer_1 .grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }
}

/* Glightbox overrides */
.gslide-description {
  background: var(--dark) !important;
}

.gslide-title {
  font-family: 'Archivo', sans-serif !important;
  color: white !important;
}