/* ==========================================================
   🚀 TOURS PAGE — WORLD-CLASS ARCHITECTURE (v3.4)
   - Philosophy: High-Clarity, Vibrant, Editorial UX
   - Architecture: Isomorphic Component Engineering
   - Performance: GPU-Accelerated, Render-Isolated
   ========================================================== */

/* 1. MASTER TOKENS & RESET
   ------------------------------------------------------- */
:root {
  --card-radius: 24px;
  --radius-pill: 999px;
  --navy: #0b2a4a;
  --navy-soft: #143b66;
  --yellow: #f7b500; /* Gold Accent */
  --primary: #0077ff;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --white: #ffffff;
  --bg-light: #f8fafc;

  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lux: 0 30px 60px rgba(15, 23, 42, 0.15);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-elastic: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

body {
  font-family: "Poppins", system-ui, sans-serif;
  background: var(--white);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* 2. HERO — CINEMATIC VIBRANCY
   ------------------------------------------------------- */
.hero {
  position: relative;
  width: 100%;
  height: 100dvh;
  max-height: 900px;
  background: #000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  /* High-clarity filter settings */
  filter: brightness(1.05) saturate(1.1);
  animation: heroCinematicZoom 20s linear infinite alternate;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Soft gradient: Keeps top of image bright, ensures bottom text is readable */
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.6) 100%
  );
  padding: 2rem;
  text-align: center;
}

.hero__content {
  max-width: 960px;
  animation: fadeInUp 1.2s var(--ease-out-expo) forwards;
}

.hero__title {
  color: var(--white);
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.2rem;
  letter-spacing: -0.03em;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero__subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  line-height: 1.6;
  max-width: 70ch;
  margin-inline: auto;
  text-wrap: balance;
}

/* 3. EXPERIENCE SECTION (VIBRANT BENTO GRID)
   ------------------------------------------------------- */
.experience-section {
  padding: clamp(4rem, 10vw, 8rem) 1.5rem;
  background: var(--bg-light);
}

.experience-header {
  max-width: 900px;
  margin: 0 auto 60px;
  text-align: center;
}

.experience-header h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  color: var(--navy);
}

.experience-header p {
  margin-top: 1rem;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.experience-grid {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.experience-card {
  position: relative;
  height: 480px;
  border-radius: var(--card-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* VITAL: Center content alignment */
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: all 0.5s var(--ease-elastic);
  isolation: isolate;
}

.experience-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-lux);
}

.experience-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  /* Clean, bright travel photography filter */
  filter: brightness(1) saturate(1.05);
  transition: transform 0.8s var(--ease-out-expo);
}

.experience-card:hover img {
  transform: scale(1.1);
  filter: brightness(1.1);
}

.experience-overlay {
  position: absolute;
  inset: 0;
  /* Dynamic light-mask: ensures readability while keeping the card bright */
  background: radial-gradient(
    circle,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.5) 100%
  );
  z-index: -1;
}

.experience-content {
  padding: 2rem;
  text-align: center;
  color: var(--white);
  z-index: 2;
}

.experience-pill {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.experience-content h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.experience-content p {
  font-size: 1rem;
  max-width: 280px;
  margin: 0 auto 20px;
  opacity: 0.95;
}

.experience-cta {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--white);
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.experience-card:hover .experience-cta {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
  transform: scale(1.05);
}

/* 4. SERVICES SECTION (CENTERED PRECISION)
   ------------------------------------------------------- */
.services-section {
  padding: clamp(4rem, 10vw, 8rem) 1.5rem;
  background: var(--white);
}

.services-header {
  max-width: 900px;
  margin: 0 auto 60px;
  text-align: center;
}

.services-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--navy);
}

.services-grid {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.service-card {
  background: var(--bg-light);
  padding: 50px 30px;
  border-radius: var(--card-radius);
  text-decoration: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center; /* VITAL: Centering icons and text */
  justify-content: center;
  border: 1px solid transparent;
  transition: all 0.4s var(--ease-out-expo);
}

.service-card:hover {
  background: var(--white);
  border-color: var(--primary);
  transform: translateY(-8px);
  box-shadow: var(--shadow-lux);
}

.service-card img {
  width: 52px;
  height: 52px;
  margin-bottom: 24px;
  object-fit: contain;
  /* High-end icon shadow */
  filter: drop-shadow(0 8px 15px rgba(0, 119, 255, 0.15));
  transition: transform 0.4s var(--ease-elastic);
}

.service-card:hover img {
  transform: scale(1.15) rotate(-5deg);
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--navy);
}

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

/* 5. MASTER DEVICE COMPATIBILITY MATRIX
   ------------------------------------------------------- */

/* Tablets (iPad / Portrait) */
@media (max-width: 1024px) {
  .experience-card {
    height: 420px;
  }
  .hero {
    height: 75vh;
  }
}

/* Mobile (Large Phones) */
@media (max-width: 768px) {
  .hero__title {
    font-size: 2.5rem;
  }
  .hero__subtitle {
    font-size: 1rem;
  }

  .experience-grid {
    gap: 20px;
  }
  .experience-card {
    height: 400px;
  }

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

/* Small Mobile (iPhone SE / Older Androids) */
@media (max-width: 480px) {
  .hero {
    height: 70vh;
  }
  .hero__title {
    font-size: 2rem;
  }

  .experience-card {
    height: 380px;
  }
  .experience-content h3 {
    font-size: 1.6rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
  .service-card {
    padding: 40px 20px;
  }

  .experience-header h2 {
    font-size: 1.8rem;
  }
}

/* 6. GPU-ACCELERATED ANIMATIONS
   ------------------------------------------------------- */
@keyframes heroCinematicZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.1);
  }
}

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

/* Accessibility: Support for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero__image,
  .experience-card,
  .service-card,
  .service-card img {
    animation: none !important;
    transition: none !important;
  }
}
