/* LucheVanToGo.com — responsive site layout
   All colors/type/spacing come from the design-system tokens (var(--*)). */

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

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}

/* ── Header ─────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header__bar {
  background: var(--bayani-blue);
  color: #fff;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  height: 68px;
}
.site-header__brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 44px;
}
/* ── Sections ───────────────────────────────────── */
.section { padding: var(--space-8) 0; }
.section--white { background: var(--surface-card); }
.section--dark {
  background: var(--surface-dark);
  color: var(--text-on-dark);
  position: relative;
  overflow: hidden;
}

.section__heading { font-size: clamp(26px, 3.2vw, var(--text-h2)); margin: var(--space-2) 0 var(--space-5); }
.section--dark .section__heading { color: var(--pearl-white); }

/* Hero slider — full-viewport photo carousel */
.hero-slider {
  position: relative;
  height: calc(100svh - 89px); /* sticky bar (68) + tricolor band (21) */
  min-height: 540px;
  max-height: 960px;
  overflow: hidden;
  background: var(--navy-900);
}
.hero-slider__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slider__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 600ms var(--ease-out);
}
.hero-slider__slide.is-active { opacity: 1; }
.hero-slider__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-slider__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(17, 29, 59, 0.84) 0%, rgba(17, 29, 59, 0.52) 40%, rgba(17, 29, 59, 0.06) 72%),
    linear-gradient(to top, rgba(17, 29, 59, 0.62) 0%, rgba(17, 29, 59, 0) 34%);
  pointer-events: none;
}
.hero-slider__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: var(--space-4);
  padding-bottom: 72px; /* room for controls row */
}
.hero-slider__eyebrow { color: var(--araw-gold); }
.hero-slider__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
@media (prefers-reduced-motion: no-preference) {
  .hero-slider__text {
    animation: hero-text-in 360ms var(--ease-out);
  }
}
/* transform-only: if the animation clock freezes (throttled iframes),
   the text stays fully visible — never animate opacity here */
@keyframes hero-text-in {
  from { transform: translateY(10px); }
  to   { transform: translateY(0); }
}
.hero-slider__headline {
  font-size: clamp(38px, 5.6vw, 66px);
  text-transform: uppercase;
  line-height: var(--leading-tight);
  letter-spacing: 0.01em;
  color: var(--pearl-white);
  max-width: 13ch;
}
.hero-slider__sub {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(17px, 1.7vw, var(--text-body-lg));
  line-height: var(--leading-body);
  color: rgba(248, 246, 240, 0.92);
  max-width: 440px;
}
.hero-slider__actions {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-2);
  flex-wrap: wrap;
}
.hero-slider__controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--space-5);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.hero-slider__dots {
  display: flex;
  gap: var(--space-2);
  align-items: center;
}
.hero-slider__dot {
  width: 28px;
  height: 16px;
  padding: 6px 0;
  background: none;
  border: none;
  cursor: pointer;
  background-clip: content-box;
  background-color: rgba(248, 246, 240, 0.45);
  border-radius: var(--radius-pill);
  transition: background-color var(--dur-fast) var(--ease-out), width var(--dur-med) var(--ease-out);
}
.hero-slider__dot:hover { background-color: rgba(248, 246, 240, 0.8); }
.hero-slider__dot.is-active {
  width: 44px;
  background-color: var(--araw-gold);
}
.hero-slider__dot:focus-visible { outline: 3px solid var(--focus-ring); }
.hero-slider__arrows {
  display: flex;
  gap: var(--space-2);
}
.hero-slider__arrow {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--dagat-navy);
  color: var(--pearl-white);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out);
}
.hero-slider__arrow:hover { background: var(--bayani-blue); }
.hero-slider__arrow:active { transform: translateY(1px); }
.hero-slider__arrow:focus-visible { outline: 3px solid var(--focus-ring); }

/* ── Breakpoints ────────────────────────────────── */
@media (max-width: 640px) {
  .container { padding-left: var(--space-4); padding-right: var(--space-4); }
  .section { padding: var(--space-7) 0; }

  /* Stacked hero: full landscape image on top, text below on navy */
  .hero-slider {
    height: auto;
    min-height: 0;
    max-height: none;
    display: block;
    background: var(--dagat-navy);
  }
  .hero-slider__media {
    position: relative;
    inset: auto;
    width: 100%;
    aspect-ratio: 1920 / 1086; /* matches the photos — shows the whole image, no cropping */
  }
  .hero-slider__scrim {
    background: linear-gradient(to top, rgba(17, 29, 59, 0.55) 0%, rgba(17, 29, 59, 0) 42%);
  }
  .hero-slider__content {
    position: static;
    height: auto;
    padding: var(--space-6) var(--space-4) var(--space-5);
    padding-bottom: var(--space-5);
  }
  .hero-slider__headline { font-size: clamp(32px, 8.5vw, 44px); }
  .hero-slider__controls {
    position: static;
    bottom: auto;
    padding: 0 var(--space-4) var(--space-6);
    justify-content: space-between;
  }
}
