/* ============================================
   VR des Chutes — Stylesheet
   Modern, responsive, blue/green/grey palette
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Primary palette — blue/green/grey */
  --blue-900: #0b1d3a;
  --blue-800: #0f2d5e;
  --blue-700: #14418a;
  --blue-600: #1a56b0;
  --blue-500: #2568c4;
  --blue-400: #4a8ae0;
  --blue-100: #dbeafe;
  --blue-50:  #eff6ff;

  --green-700: #15613a;
  --green-600: #1a7a4a;
  --green-500: #22965c;
  --green-400: #34d27e;
  --green-300: #6ee7a8;
  --green-100: #d1fae5;
  --green-50:  #ecfdf5;

  --grey-900: #111827;
  --grey-800: #1f2937;
  --grey-700: #374151;
  --grey-600: #4b5563;
  --grey-500: #6b7280;
  --grey-400: #9ca3af;
  --grey-300: #d1d5db;
  --grey-200: #e5e7eb;
  --grey-100: #f3f4f6;
  --grey-50:  #f9fafb;

  --white: #ffffff;

  /* Semantic tokens */
  --color-primary: var(--blue-600);
  --color-primary-dark: var(--blue-800);
  --color-accent: var(--green-500);
  --color-accent-light: var(--green-100);
  --color-text: var(--grey-800);
  --color-text-light: var(--grey-600);
  --color-bg: var(--white);
  --color-bg-alt: var(--grey-50);

  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;

  /* Spacing */
  --section-pad: clamp(4rem, 8vw, 7rem);
  --container-max: 1200px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.35s ease;
  --transition-slow: 0.6s ease;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 14px rgba(0,0,0,.1);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.12);
  --shadow-xl: 0 20px 50px rgba(0,0,0,.16);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--blue-900);
}

/* ---------- Utility ---------- */
.container {
  width: 90%;
  max-width: var(--container-max);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-500), var(--green-500));
  border-radius: var(--radius-full);
}

.section-header--left {
  text-align: left;
}

.section-header--left h2::after {
  left: 0;
  transform: none;
}

.section-header p {
  color: var(--color-text-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 1rem auto 0;
}

.section-header--left p {
  margin-left: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  letter-spacing: 0.02em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-600), var(--green-600));
  color: var(--white);
  border-color: transparent;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(26, 86, 176, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--blue-800);
  transform: translateY(-2px);
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: all var(--transition-base);
}

.navbar.scrolled {
  background: rgba(11, 29, 58, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.6rem 0;
  box-shadow: var(--shadow-lg);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-img {
  height: 50px;
  width: auto;
  transition: height var(--transition-base);
}

.navbar.scrolled .logo-img {
  height: 40px;
}

.nav-menu {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  position: relative;
  padding: 0.25rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green-400);
  transition: width var(--transition-base);
}

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

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
  background: var(--blue-900);
}

.hero-landscape {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(11, 29, 58, 0.55) 0%,
    rgba(11, 29, 58, 0.3) 50%,
    rgba(15, 45, 94, 0.6) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  max-width: 800px;
}

.hero-logo {
  height: clamp(140px, 22vw, 200px);
  width: auto;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 6px 20px rgba(0,0,0,0.4));
  animation: fadeInDown 0.8s ease forwards;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 800;
  color: var(--white);
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  margin-bottom: 0.5rem;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  font-weight: 400;
  opacity: 0.95;
  margin-bottom: 0.5rem;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-tagline {
  font-size: 1rem;
  opacity: 0.8;
  font-weight: 500;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease 0.5s both;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero-scroll-indicator span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 12px;
  position: relative;
}

.hero-scroll-indicator span::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--white);
  border-radius: 2px;
  animation: scrollBounce 2s infinite;
}

/* ---------- Services ---------- */
.services {
  padding: var(--section-pad) 0;
  background: var(--color-bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-500), var(--green-500));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-100);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 56px;
  height: 56px;
  color: var(--blue-600);
  margin-bottom: 1.25rem;
  transition: color var(--transition-base);
}

.service-card:hover .service-icon {
  color: var(--green-500);
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Services highlight (mobile unit) */
.services-highlight {
  margin-top: 3rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 2.5rem;
  background: linear-gradient(135deg, var(--blue-50), var(--green-50));
  border-radius: var(--radius-lg);
  border: 1px solid var(--green-100);
}

.highlight-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  color: var(--green-600);
}

.highlight-text h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
  color: var(--green-700);
}

.highlight-text p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* ---------- Vehicles ---------- */
.vehicles {
  padding: var(--section-pad) 0;
  background: var(--blue-900);
  color: var(--white);
}

.vehicles .section-header h2 {
  color: var(--white);
}

.vehicles .section-header h2::after {
  background: linear-gradient(90deg, var(--green-400), var(--blue-400));
}

.vehicles .section-header p {
  color: rgba(255,255,255,0.7);
}

.vehicle-types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.vehicle-type {
  text-align: center;
}

.vehicle-type img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  border: 1px solid rgba(255,255,255,0.1);
  transition: transform var(--transition-base);
}

.vehicle-type:hover img {
  transform: scale(1.03);
}

.vehicle-type span {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--green-300);
}

/* ---------- About ---------- */
.about {
  padding: var(--section-pad) 0;
  background: var(--color-bg-alt);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-lead {
  font-size: 1.15rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.about-content p {
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

.about-stats {
  display: flex;
  gap: 3rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--grey-200);
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.5rem;
  background: linear-gradient(135deg, var(--blue-600), var(--green-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.about-brands h3 {
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
}

.brand-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.brand-tag {
  display: inline-block;
  padding: 0.5rem 1.1rem;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--blue-700);
  transition: all var(--transition-base);
}

.brand-tag:hover {
  background: var(--blue-600);
  color: var(--white);
  border-color: var(--blue-600);
  transform: translateY(-2px);
}

.brand-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--color-text-light);
  font-style: italic;
}

/* ---------- Gallery ---------- */
.gallery {
  padding: var(--section-pad) 0;
  background: var(--color-bg);
}

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

.gallery-item--wide {
  grid-column: span 2;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 10;
  transition: transform var(--transition-slow);
  display: block;
}

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

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem 1rem;
  background: linear-gradient(transparent, rgba(11, 29, 58, 0.85));
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  transform: translateY(100%);
  transition: transform var(--transition-base);
}

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

.gallery-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--grey-100), var(--grey-200));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--grey-300);
  transition: all var(--transition-base);
  position: relative;
}

.gallery-placeholder::after {
  content: attr(data-label);
  color: var(--grey-400);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  text-align: center;
  padding: 1rem;
}

.gallery-placeholder:hover {
  border-color: var(--blue-400);
  background: linear-gradient(135deg, var(--blue-50), var(--green-50));
}

/* ---------- Contact ---------- */
.contact {
  padding: var(--section-pad) 0;
  background: linear-gradient(135deg, var(--blue-900), var(--blue-800));
  color: var(--white);
}

.contact .section-header h2 {
  color: var(--white);
}

.contact .section-header h2::after {
  background: linear-gradient(90deg, var(--green-400), var(--blue-400));
}

.contact .section-header p {
  color: rgba(255,255,255,0.7);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.contact-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  transition: all var(--transition-base);
}

.contact-card:hover {
  background: rgba(255,255,255,0.14);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

.contact-icon {
  width: 48px;
  height: 48px;
  color: var(--green-400);
  margin: 0 auto 1rem;
}

.contact-card h3 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
  opacity: 0.7;
}

.contact-value {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
  transition: color var(--transition-fast);
}

a.contact-value:hover {
  color: var(--green-300);
}

.contact-note {
  text-align: center;
  padding: 1rem 2rem;
  background: rgba(34, 150, 92, 0.15);
  border: 1px solid rgba(34, 150, 92, 0.3);
  border-radius: var(--radius-full);
  display: inline-flex;
  margin: 0 auto;
  width: auto;
}

.contact .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact .section-header,
.contact .contact-grid {
  width: 100%;
}

.contact-note p {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--green-300);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--grey-900);
  color: var(--grey-400);
  padding: 3.5rem 0 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--grey-800);
}

.footer-logo {
  height: 45px;
  width: auto;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.65;
  max-width: 320px;
}

.footer h4 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a,
.footer-contact a {
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--green-400);
}

.footer-contact p {
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.footer-bottom {
  text-align: center;
  padding: 1.5rem 0;
  font-size: 0.8rem;
  color: var(--grey-600);
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50% { transform: translateX(-50%) translateY(12px); opacity: 0.3; }
}

/* Scroll reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */

/* Tablet */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* Mobile landscape / small tablet */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    background: var(--blue-900);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 0;
    transition: right var(--transition-base);
    box-shadow: var(--shadow-xl);
  }

  .nav-menu.open {
    right: 0;
  }

  .nav-link {
    display: block;
    padding: 1rem 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .hero-logo {
    height: clamp(110px, 30vw, 150px);
  }

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

  .services-highlight {
    flex-direction: column;
    text-align: center;
  }

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

  .gallery-item--wide {
    grid-column: span 2;
  }

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

  .about-stats {
    gap: 2rem;
  }

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

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-brand p {
    max-width: 100%;
  }

  .footer-links ul {
    align-items: center;
  }
}

/* Mobile portrait */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
  }

  .vehicle-types {
    grid-template-columns: 1fr 1fr;
  }

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

  .gallery-item--wide {
    grid-column: span 1;
  }

  .about-stats {
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
  }

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

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
