/* ─────────────────────────────────────────────
   MIRO'S BEACH HUT — style.css
   ───────────────────────────────────────────── */

/* ── LUXURY LAYOUT + BOOKING.COM THEME TOKENS ── */
:root {
  /* Mapping original luxury variables to Booking.com brand */
  --gold:         #febb02;   /* Action Yellow */
  --gold-light:   #f4a900;   /* Darker yellow for hover */
  --sand:         #ffffff;   /* Pure white background to contrast */
  --sand-dark:    #f5f5f5;   /* Light grey for cards/sections */
  --ocean:        #0071c2;   /* Booking Light Blue */
  --ocean-deep:   #003580;   /* Airways Blue - Primary Dark */
  --ocean-bright: #008234;   /* Green */
  --white:        #ffffff;
  --text-main:    #1a1a1a;
  --text-muted:   #6b6b6b;
  
  --radius-sm:    2px;
  --radius-md:    4px;
  --radius-lg:    8px;
  --transition:   0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  /* Booking.com System Fonts */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--sand);
  color: var(--text-main);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { text-decoration: none; color: inherit; }

/* ── TYPOGRAPHY (Booking.com Fonts, Luxury Sizes) ── */
h1, h2, h3 { 
  font-family: inherit; /* Use body system font */
  line-height: 1.1; 
  font-weight: 700;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(3.5rem, 10vw, 8rem); font-weight: 800; text-transform: uppercase; }
h2 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 700; }
h3 { font-size: 1.4rem; font-weight: 600; }
/* Disable italics to keep the crisp, utilitarian feel but colored as accent */
em { font-style: normal; color: var(--gold); } 

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background: var(--gold);
  color: var(--ocean-deep);
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.9em 2.2em;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}
.btn-large { padding: 1.1em 2.8em; font-size: 1rem; }
.btn-glow  { box-shadow: 0 0 40px rgba(254, 187, 2, 0.35); }
.btn-icon  { font-size: 0.7em; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  color: white;
  background: var(--ocean-deep);
  border: 1px solid var(--ocean);
  border-radius: var(--radius-sm);
  padding: 0.9em 2.2em;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-ghost:hover {
  background: var(--ocean);
}

/* ── LABELS ── */
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ocean);
  margin-bottom: 1rem;
}

/* ─────────────────── NAV ─────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 4rem;
  transition: background var(--transition), backdrop-filter var(--transition), padding var(--transition);
}
#navbar.scrolled {
  background: rgba(0, 53, 128, 0.95); /* Booking.com Blue Header */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 1rem 4rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.nav-logo {
  font-weight: 800;
  font-size: 1.45rem;
  color: white;
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav-links a {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: white;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--gold); }

/* ─────────────────── HERO ─────────────────── */
#hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('images/01_beach_aerial.png');
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  transition: transform 12s ease-out;
  will-change: transform;
}
.hero-bg.loaded { transform: scale(1.0); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 53, 128, 0.45) 0%, /* Blue tint over hero */
    rgba(0, 53, 128, 0.70) 60%,
    var(--ocean-deep) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 2rem;
  transform: translateY(30px);
  opacity: 0;
  transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 1.2s ease;
}
.hero-content.visible {
  transform: translateY(0);
  opacity: 1;
}
.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}
.hero-title {
  color: white;
  margin-bottom: 1.6rem;
}
.hero-sub {
  font-size: 1.1rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  max-width: 480px;
  margin: 0 auto 2.8rem;
  line-height: 1.7;
}
.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.6);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: scrollHint 2.5s ease-in-out infinite;
}
.scroll-line {
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
}
@keyframes scrollHint {
  0%, 100% { opacity: 0.45; transform: translateX(-50%) translateY(0); }
  50%       { opacity: 0.8;  transform: translateX(-50%) translateY(6px); }
}

/* ─────────────────── INTRO STRIP ─────────────────── */
.intro-strip {
  background: var(--ocean-deep); /* Booking blue background */
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 3rem;
  gap: 0;
  flex-wrap: wrap;
}
.strip-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 3rem;
  flex: 1;
  min-width: 200px;
  justify-content: center;
}
.strip-icon { font-size: 1.6rem; }
.strip-icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px; /* Smooth edge just in case the blue hex is slightly off */
}
.strip-text { display: flex; flex-direction: column; gap: 0.2rem; }
.strip-text strong { font-size: 0.95rem; font-weight: 700; }
.strip-text span { font-size: 0.8rem; color: rgba(255,255,255,0.7); }
.strip-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.2); flex-shrink: 0; }

/* ─────────────────── EXPERIENCE ─────────────────── */
.experience-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 8rem 3rem;
  text-align: center;
}
.section-title { margin-bottom: 1.8rem; color: var(--ocean-deep); }
.section-body {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 660px;
  margin: 0 auto 5rem;
  line-height: 1.6;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  text-align: left;
}
.feature-card {
  background: var(--sand-dark); /* Light grey card */
  border-radius: var(--radius-md);
  padding: 2.5rem;
  border: 1px solid #e7e7e7;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 15px 30px rgba(0,0,0,0.08); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-num {
  font-size: 3.5rem;
  font-weight: 800;
  color: rgba(0, 53, 128, 0.1); /* Faded booking blue */
  line-height: 1;
  margin-bottom: 0.8rem;
}
.feature-card h3 { margin-bottom: 0.7rem; color: var(--ocean-deep); }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

/* ─────────────────── GALLERY ─────────────────── */
.gallery-section {
  padding: 6rem 3rem 8rem;
  max-width: 1280px;
  margin: 0 auto;
}
.gallery-section .section-title { margin-bottom: 3rem; text-align: center;}
.gallery-section .section-label { text-align: center; }

.gallery-hero-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.gallery-main {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16 / 9; /* Wider for full width */
  background: var(--ocean-deep);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
.gallery-main img {
  transition: opacity 0.5s ease;
}
.gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 2rem 2rem 1.6rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: opacity 0.4s ease;
}

.gallery-thumbs-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.gallery-arrow {
  position: absolute;
  z-index: 10;
  background: white;
  color: var(--ocean-deep);
  border: 1px solid #e7e7e7;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: background var(--transition), transform var(--transition);
}
.gallery-arrow:hover {
  background: var(--sand-dark);
  transform: scale(1.05);
}
.gallery-arrow.prev { left: -22px; }
.gallery-arrow.next { right: -22px; }

.gallery-thumbs {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  width: 100%;
  padding: 0.5rem;
  scrollbar-width: none; /* Hide scrollbar Firefox */
}
.gallery-thumbs::-webkit-scrollbar { display: none; } /* Hide scrollbar Webkit */

.thumb {
  width: 140px;
  height: 90px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 3px solid transparent;
  transition: border-color var(--transition), transform var(--transition), opacity var(--transition);
  opacity: 0.65;
  flex-shrink: 0;
}
.thumb img { height: 100%; object-fit: cover; }
.thumb:hover { opacity: 0.9; transform: scale(1.02); }
.thumb.active { border-color: var(--gold); opacity: 1; }

/* ─────────────────── LOCATION ─────────────────── */
.location-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
}
.location-img {
  overflow: hidden;
}
.location-img img {
  height: 100%;
  transition: transform 8s ease;
}
.location-img:hover img { transform: scale(1.04); }

.location-content {
  background: var(--sand-dark);
  color: var(--text-main);
  padding: 6rem 5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.location-content .section-title { color: var(--ocean-deep); margin-bottom: 1.5rem; }
.location-content p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.6; margin-bottom: 2.5rem; }
.location-details { display: flex; flex-direction: column; gap: 0.9rem; }
.loc-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
  padding: 0.9rem 1.2rem;
  background: white;
  border: 1px solid #e7e7e7;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--ocean); /* Booking accent */
}

/* ─────────────────── CTA SECTION ─────────────────── */
.cta-section {
  position: relative;
  text-align: center;
  padding: 10rem 2rem;
  overflow: hidden;
}
.cta-bg {
  position: absolute;
  inset: 0;
}
.cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 53, 128, 0.85); /* Deep booking blue */
}
.cta-content {
  position: relative;
  z-index: 2;
  color: white;
}
.cta-content h2 { color: white; font-size: clamp(2.5rem, 6vw, 4.5rem); margin-bottom: 1.2rem; }
.cta-content p { color: rgba(255,255,255,0.9); font-size: 1.1rem; margin-bottom: 3rem; }
.cta-content strong { color: var(--gold); font-weight: 800; }

/* ─────────────────── FOOTER ─────────────────── */
footer {
  background: var(--ocean-deep);
  color: white;
  text-align: center;
  padding: 4rem 2rem;
}
.footer-logo {
  font-weight: 800;
  font-size: 1.8rem;
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
}
.footer-tagline {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2rem;
}
.footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.5); font-weight: 500; }

/* ─────────────────── VIDEO OVERLAY ─────────────────── */
.video-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 53, 128, 0.96); /* Blue backdrop */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  animation: fadeInOverlay 0.45s ease forwards;
}
.video-overlay.hidden {
  display: none;
}
@keyframes fadeInOverlay {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.video-wrapper {
  width: min(95vw, 1400px);
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(0,0,0,0.5);
  animation: scaleInVideo 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
@keyframes scaleInVideo {
  from { transform: scale(0.88); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}
.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}
.video-close {
  position: fixed;
  top: 1.5rem;
  right: 2rem;
  font-size: 1.8rem;
  font-weight: 700;
  color: rgba(255,255,255,0.65);
  cursor: pointer;
  z-index: 10000;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: color var(--transition), background var(--transition);
}
.video-close:hover { color: white; background: rgba(255,255,255,0.2); }

.video-label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

/* ─────────────────── ANIMATIONS ─────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.85s ease, transform 0.85s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─────────────────── RESPONSIVE ─────────────────── */
@media (max-width: 900px) {
  #navbar { padding: 1.2rem 2rem; }
  #navbar.scrolled { padding: 0.9rem 2rem; }
  .nav-links a { display: none; }
  .gallery-hero-wrap { grid-template-columns: 1fr; }
  .gallery-thumbs { flex-direction: row; max-height: none; overflow-x: auto; overflow-y: visible; }
  .thumb { min-width: 100px; height: 70px; }
  .location-section { grid-template-columns: 1fr; }
  .location-img { height: 300px; }
  .location-content { padding: 4rem 2.5rem; }
  .strip-item { padding: 0.8rem 1.5rem; }
  .strip-divider { display: none; }
  .experience-section { padding: 5rem 1.5rem; }
}

@media (max-width: 560px) {
  .hero-cta { flex-direction: column; }
  .intro-strip { flex-direction: column; }
  .gallery-section { padding: 4rem 1rem 5rem; }
}
