/* ============================================
   ILT Golf Vacations — Cinematic Style
   ============================================ */

:root {
  --color-primary: #3797a7;
  --color-accent: #c0392b;
  --color-bg: #0a0a0a;
  --color-bg-light: #111111;
  --color-text: #e2e1cf;
  --color-heading: #f0f1f2;
  --color-muted: #888;
  --font-heading: 'Josefin Sans', sans-serif;
  --font-body: 'Roboto Condensed', sans-serif;
  --section-pad: clamp(4rem, 10vh, 8rem);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--color-primary);
  z-index: 9999;
  pointer-events: none;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-heading);
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.heading-xl {
  font-size: clamp(2.5rem, 6vw, 6rem);
}

.heading-lg {
  font-size: clamp(2rem, 4.5vw, 4.5rem);
}

.heading-md {
  font-size: clamp(1.5rem, 3vw, 3rem);
}

.subtitle {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1rem, 1.8vw, 1.5rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.body-text {
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  max-width: 55ch;
  line-height: 1.8;
}

/* ---------- Section defaults ---------- */
section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--section-pad) clamp(1.5rem, 4vw, 4rem);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

#hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-loading {
  position: absolute;
  z-index: 5;
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1.5rem;
  opacity: 0;
}

.hero-content h1 {
  margin-bottom: 1rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
}

.hero-content .subtitle {
  opacity: 1;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.8);
}

/* ---------- Scroll Indicator ---------- */
.scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-indicator span {
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.5);
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid rgba(255, 255, 255, 0.4);
  border-bottom: 2px solid rgba(255, 255, 255, 0.4);
  transform: rotate(45deg);
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ---------- STATS ---------- */
.stats {
  background: var(--color-bg-light);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  padding: 2rem 1rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 5rem);
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: clamp(0.85rem, 1.2vw, 1.1rem);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-muted);
}

.stat-divider {
  width: 40px;
  height: 2px;
  background: var(--color-primary);
  margin: 1rem auto;
  opacity: 0.5;
}

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

.destinations .section-inner {
  max-width: 1600px;
}

.destinations-heading {
  text-align: center;
  margin-bottom: 3rem;
  padding: 0 clamp(1.5rem, 4vw, 4rem);
}

/* ---------- ABOUT ---------- */
.about {
  background: var(--color-bg-light);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 6rem);
  align-items: center;
}

.about-image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  height: 100%;
  min-height: 400px;
}

.about-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.about-text h2 {
  margin-bottom: 1.5rem;
}

.about-text p {
  margin-bottom: 1.2rem;
}

.about-text .license {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
}

/* ---------- CTA ---------- */
.cta {
  position: relative;
  background: var(--color-bg);
  text-align: center;
}

.cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.3);
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.55);
  z-index: 1;
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-content h2 {
  margin-bottom: 1.5rem;
}

.cta-content .subtitle {
  margin-bottom: 2.5rem;
  opacity: 1;
}

/* ---------- Button ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(0.9rem, 1.1vw, 1.1rem);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
  position: relative;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(55, 151, 167, 0.35);
}

/* ---------- FOOTER ---------- */
.footer {
  min-height: auto;
  background: #050505;
  padding: 3rem 0;
  text-align: center;
  display: block;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 4rem);
}

.footer-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-heading);
  margin-bottom: 0.75rem;
}

.footer-phone {
  font-size: 1rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 1rem;
}

.footer-copy {
  font-size: 0.75rem;
  color: #555;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

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

  .about-image-wrap {
    min-height: 300px;
  }
}

@media (max-width: 600px) {
  section {
    min-height: auto;
  }

  .hero {
    min-height: 100vh;
  }
}
