/* ============================================================
   ZoraSurf — Morocco Surf & Kitesurf Camps
   Ocean: #0B1F3A  |  Teal: #00B4CC  |  Fire: #FF5C35  |  Sand: #F5EFE0
   Fonts: Sora (display) + Hanken Grotesk (body)
   ============================================================ */

/* ---- Material Symbols ---- */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  display: inline-flex; align-items: center; vertical-align: middle;
  font-size: inherit; line-height: 1;
}

/* ---- Navbar scroll effect ---- */
#navbar { background: transparent; transition: all 0.3s ease; }
#navbar.scrolled {
  background: rgba(11, 31, 58, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.3);
}

/* ---- Hero ---- */
.hero-section { background: #0B1F3A; }

.hero-bg {
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(0, 180, 204, 0.18) 0%, transparent 65%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(255, 92, 53, 0.10) 0%, transparent 55%),
    linear-gradient(155deg, #040E1C 0%, #0B1F3A 35%, #0D2B4A 65%, #093040 100%);
}

.hero-wave-overlay {
  background-image: repeating-linear-gradient(
    -48deg,
    transparent, transparent 50px,
    rgba(0, 180, 204, 0.025) 50px,
    rgba(0, 180, 204, 0.025) 100px
  );
}

/* ---- Location tabs ---- */
.loc-tab {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 18px; border-radius: 100px;
  font-size: 13px; font-weight: 600; font-family: 'Hanken Grotesk', sans-serif;
  border: 1.5px solid rgba(255, 255, 255, 0.30);
  color: rgba(255, 255, 255, 0.85);
  background: rgba(5, 20, 55, 0.82);
  cursor: pointer; transition: all 0.22s; letter-spacing: 0.03em;
}
.loc-tab:hover { border-color: #00B4CC; color: #00B4CC; background: rgba(0, 180, 204, 0.1); }
.loc-tab.active { background: #00B4CC; border-color: #00B4CC; color: #fff; }

/* ---- Hero CTA buttons ---- */
.hero-cta-kite, .hero-cta-surf {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 32px; border-radius: 12px;
  font-family: 'Sora', sans-serif; font-weight: 700; font-size: 15px;
  transition: all 0.25s; text-decoration: none; letter-spacing: 0.01em;
}
.hero-cta-kite {
  background: #00B4CC; color: #fff;
}
.hero-cta-kite:hover {
  background: #008FA3; transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 180, 204, 0.45);
}
.hero-cta-surf {
  background: rgba(255, 255, 255, 0.09);
  border: 2px solid rgba(255, 255, 255, 0.35);
  color: #fff;
}
.hero-cta-surf:hover {
  background: #fff; color: #0B1F3A; border-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(255, 255, 255, 0.2);
}

/* ---- Scroll indicator ---- */
@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
.scroll-dot { animation: bounceDown 1.8s ease-in-out infinite; }

/* ---- Wave divider ---- */
.wave-divider { display: block; line-height: 0; }
.wave-divider svg { display: block; width: 100%; }

/* ---- Activity cards ---- */
.activity-card {
  border-radius: 20px; overflow: hidden; position: relative;
  min-height: 520px; display: flex; flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  transition: transform 0.35s cubic-bezier(0.34,1.4,0.64,1), box-shadow 0.35s;
}
.activity-card:hover { transform: translateY(-8px); box-shadow: 0 32px 80px rgba(0, 0, 0, 0.28); }

.kite-card .activity-bg {
  position: absolute; inset: 0;
  background: linear-gradient(145deg, #051828 0%, #0B3A50 50%, #006070 100%);
}
.surf-card .activity-bg {
  position: absolute; inset: 0;
  background: linear-gradient(145deg, #0B1F14 0%, #1A3D28 50%, #2A6040 100%);
}

.activity-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.25) 55%, transparent 100%);
}
.activity-content { position: relative; z-index: 10; margin-top: auto; padding: 36px 32px; }
.activity-icon { font-size: 40px; margin-bottom: 10px; }
.activity-tag {
  display: inline-block; padding: 5px 14px; border-radius: 100px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  background: rgba(0, 180, 204, 0.18); border: 1px solid rgba(0, 180, 204, 0.4);
  color: #00D6EF; font-family: 'Hanken Grotesk', sans-serif;
}
.surf-card .activity-tag {
  background: rgba(60, 180, 100, 0.18); border-color: rgba(60, 180, 100, 0.4); color: #4DC87A;
}
.activity-btn {
  display: inline-block; padding: 13px 26px; border-radius: 10px;
  background: #00B4CC; color: #fff;
  font-family: 'Sora', sans-serif; font-weight: 700; font-size: 14px;
  text-decoration: none; transition: all 0.2s; letter-spacing: 0.01em;
}
.activity-btn:hover { background: #0099B0; transform: translateX(4px); }
.surf-btn { background: #2E7D52; }
.surf-btn:hover { background: #1E5A3A; }

/* ---- Section divider ---- */
.section-eyebrow {
  display: inline-block; font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: #00B4CC; font-family: 'Hanken Grotesk', sans-serif;
}

/* ---- Location cards ---- */
.location-card {
  background: #fff; border-radius: 18px; overflow: hidden;
  box-shadow: 0 4px 24px rgba(11, 31, 58, 0.07);
  transition: transform 0.3s cubic-bezier(0.34,1.4,0.64,1), box-shadow 0.3s;
}
.location-card:hover { transform: translateY(-6px); box-shadow: 0 18px 48px rgba(11, 31, 58, 0.16); }
.location-img { height: 185px; position: relative; }
/* A city with an uploaded photo: the gradient class stays underneath and shows
   through while the image loads, so the card is never a blank rectangle. */
.location-img.has-photo { background-size: cover; background-position: center; background-repeat: no-repeat; }
.location-img.has-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 55%);
}
.location-img.has-photo .location-img-label { z-index: 1; }
.essaouira-img { background: linear-gradient(135deg, #0A2540 0%, #006B8A 60%, #00B4CC 100%); }
.taghazout-img { background: linear-gradient(135deg, #1A3B1E 0%, #2A7038 60%, #3FC26A 100%); }
.tamraght-img  { background: linear-gradient(135deg, #3A1800 0%, #CC6600 60%, #FF9A35 100%); }
.dakhla-img    { background: linear-gradient(135deg, #1A0A38 0%, #5A1A9A 60%, #9050CC 100%); }

.location-img-label {
  position: absolute; bottom: 14px; left: 14px;
  background: rgba(0, 0, 0, 0.45); backdrop-filter: blur(8px);
  color: #fff; font-size: 18px; font-weight: 800;
  font-family: 'Sora', sans-serif; padding: 4px 14px; border-radius: 100px;
}
.location-body { padding: 20px 22px 24px; }
.location-badge {
  display: inline-block; padding: 4px 13px; border-radius: 100px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  font-family: 'Hanken Grotesk', sans-serif;
}
.kite-badge { background: rgba(0, 180, 204, 0.1); color: #008FA3; border: 1px solid rgba(0, 180, 204, 0.3); }
.surf-badge { background: rgba(46, 125, 82, 0.1); color: #2E7D52; border: 1px solid rgba(46, 125, 82, 0.3); }
.combo-badge { background: rgba(255, 92, 53, 0.1); color: #CC3D16; border: 1px solid rgba(255, 92, 53, 0.3); }

.location-body h3 { font-family: 'Sora', sans-serif; }
.location-stats { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: rgba(11, 31, 58, 0.5); margin-top: 14px; }
.location-stats span { display: flex; align-items: center; gap: 6px; }

/* ---- Package cards ---- */
.pkg-card {
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 6px 28px rgba(11, 31, 58, 0.09);
  border: 1px solid rgba(11, 31, 58, 0.06);
  transition: transform 0.3s cubic-bezier(0.34,1.4,0.64,1), box-shadow 0.3s;
  position: relative; background: #fff;
}
.pkg-card:hover { transform: translateY(-5px); box-shadow: 0 22px 55px rgba(11, 31, 58, 0.18); }
.pkg-featured {
  border-color: #00B4CC; box-shadow: 0 10px 40px rgba(0, 180, 204, 0.22);
  transform: scale(1.03);
}
.pkg-featured:hover { transform: scale(1.03) translateY(-5px); }
.pkg-popular-badge {
  position: absolute; top: 16px; right: 16px; z-index: 5;
  background: #FF5C35; color: #fff;
  font-size: 10px; font-weight: 700; padding: 4px 13px; border-radius: 100px;
  font-family: 'Hanken Grotesk', sans-serif; letter-spacing: 0.06em; text-transform: uppercase;
}
.pkg-header {
  background: linear-gradient(140deg, #0B1F3A 0%, #162F50 100%);
  padding: 28px 28px 22px;
}
.pkg-featured .pkg-header { background: linear-gradient(140deg, #006A7A 0%, #00B4CC 100%); }
.pkg-sport-tag {
  font-size: 10px; font-weight: 700; color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.1em; text-transform: uppercase;
  font-family: 'Hanken Grotesk', sans-serif;
}
.pkg-featured .pkg-sport-tag { color: rgba(255, 255, 255, 0.75); }
.pkg-duration { font-size: 12px; color: rgba(255,255,255,0.45); margin-top: 6px; font-family: 'Hanken Grotesk', sans-serif; }
.pkg-body { padding: 26px 28px 28px; }
.pkg-price { margin-bottom: 22px; font-family: 'Hanken Grotesk', sans-serif; color: rgba(11,31,58,0.5); font-size: 14px; }
.pkg-features { list-style: none; padding: 0; margin: 0 0 22px; }
.pkg-features li {
  padding: 9px 0; font-size: 13.5px; color: rgba(11,31,58,0.72);
  border-bottom: 1px solid rgba(11,31,58,0.06);
  font-family: 'Hanken Grotesk', sans-serif; display: flex; gap: 8px;
}
.pkg-features li:last-child { border-bottom: none; }
.pkg-location { font-size: 11px; color: rgba(11,31,58,0.4); margin-bottom: 22px; font-family: 'Hanken Grotesk', sans-serif; }
.pkg-btn {
  display: block; text-align: center; padding: 14px;
  border-radius: 11px; background: #0B1F3A; color: #fff;
  font-family: 'Sora', sans-serif; font-weight: 700; font-size: 14px;
  text-decoration: none; transition: all 0.2s; letter-spacing: 0.01em;
}
.pkg-btn:hover { background: #1A3A5A; transform: translateY(-1px); }
.pkg-featured .pkg-btn { background: #FF5C35; }
.pkg-featured .pkg-btn:hover { background: #E04820; }

/* ---- Why ZoraSurf ---- */
.why-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px; padding: 28px 26px;
  transition: background 0.25s, border-color 0.25s;
}
.why-card:hover { background: rgba(255,255,255,0.08); border-color: rgba(0,180,204,0.25); }
.why-icon { font-size: 34px; margin-bottom: 14px; }

/* ---- Story Carousel ---- */
:root {
  --card-w: 295px;
  --card-h: 530px;
  --card-offset: 315px;
}
@media (max-width: 640px) {
  :root {
    --card-w: 220px;
    --card-h: 385px;
    --card-offset: 232px;
  }
}

.story-carousel-wrap {
  position: relative;
  max-width: none;
  width: 100%;
  margin: 0 auto;
}

.story-carousel {
  position: relative;
  height: var(--card-h);
  overflow: hidden;
}

/* Each story slide */
.story-slide {
  position: absolute;
  top: 0;
  left: 50%;
  width: var(--card-w);
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition:
    transform  0.45s cubic-bezier(0.25, 1, 0.5, 1),
    filter     0.45s ease,
    opacity    0.45s ease,
    box-shadow 0.45s ease;
  /* default: hidden behind center */
  transform: translateX(-50%) scale(0.7);
  filter: blur(14px);
  opacity: 0;
  z-index: 1;
}

/* Active (center) */
.story-slide[data-offset="0"] {
  transform: translateX(-50%) scale(1);
  filter: none;
  opacity: 1;
  z-index: 10;
  cursor: pointer;   /* the centred slide is a link to its product */
  box-shadow: none;
}

/* Left adjacent */
.story-slide[data-offset="-1"] {
  transform: translateX(calc(-50% - var(--card-offset))) scale(0.87);
  filter: blur(5px);
  opacity: 1;
  z-index: 5;
}

/* Right adjacent */
.story-slide[data-offset="1"] {
  transform: translateX(calc(-50% + var(--card-offset))) scale(0.87);
  filter: blur(5px);
  opacity: 1;
  z-index: 5;
}

/* Further left */
.story-slide[data-offset="-2"] {
  transform: translateX(calc(-50% - calc(var(--card-offset) * 1.73))) scale(0.74);
  filter: blur(9px);
  opacity: 0.90;
  z-index: 2;
}

/* Further right */
.story-slide[data-offset="2"] {
  transform: translateX(calc(-50% + calc(var(--card-offset) * 1.73))) scale(0.74);
  filter: blur(9px);
  opacity: 0.90;
  z-index: 2;
}

/* Slide internals */
.ss-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }

/* .ss-pattern removed: it drew 1px diagonal lines every 22px across each slide.
   Harmless as texture over the old abstract gradients, but over a real
   photograph it reads as scratches on the image. */

.ss-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(0, 0, 0, 0.78) 0%,
    rgba(0, 0, 0, 0.12) 55%,
    transparent 100%
  );
}

.ss-top {
  position: absolute; top: 16px; right: 16px; z-index: 2;
}

.ss-dot {
  width: 10px; height: 10px; border-radius: 100px;
}
.ss-dot.kite { background: #00B4CC; }
.ss-dot.surf { background: #4DC87A; }

.ss-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 22px 20px; z-index: 2;
}

.ss-badge {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: 0.05em;
  padding: 4px 12px; border-radius: 100px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-family: 'Hanken Grotesk', sans-serif;
  margin-bottom: 8px;
  backdrop-filter: blur(6px);
}

.ss-location {
  font-family: 'Sora', sans-serif;
  font-weight: 800; font-size: 20px;
  color: #fff; line-height: 1.15;
}

.ss-sublabel {
  font-size: 12px; color: rgba(255, 255, 255, 0.52);
  margin-top: 3px; font-family: 'Hanken Grotesk', sans-serif;
}

/* Arrows */
.story-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 100px;
  background: rgba(255, 255, 255, 0.92);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 20;
  transition: background 0.2s, transform 0.2s, color 0.2s;
  color: #0B1F3A;
}
.story-arrow:hover {
  background: #00B4CC; color: #fff;
  transform: translateY(-50%) scale(1.1);
}
.story-arrow-left  { left: 12px; }
.story-arrow-right { right: 12px; }

/* Dots */
.story-dots-wrap {
  display: flex; justify-content: center;
  align-items: center; gap: 7px; margin-top: 22px;
}

.gallery-dot {
  width: 7px; height: 7px; border-radius: 100px;
  background: rgba(11, 31, 58, 0.18); border: none;
  cursor: pointer; padding: 0;
  transition: all 0.28s ease;
}
.gallery-dot.active {
  background: #00B4CC; width: 22px;
}

/* ---- Testimonials ---- */
.testimonial-card {
  background: #fff; border-radius: 18px; padding: 28px;
  box-shadow: 0 4px 22px rgba(11,31,58,0.07);
  border: 1px solid rgba(11,31,58,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}
.testimonial-card:hover { transform: translateY(-3px); box-shadow: 0 12px 36px rgba(11,31,58,0.13); }
.stars { color: #F7941D; font-size: 16px; display: flex; gap: 3px; }
.avatar {
  width: 42px; height: 42px; border-radius: 100px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-family: 'Sora', sans-serif;
  color: #fff; font-size: 16px; flex-shrink: 0;
}

/* ---- Book CTA ---- */
.cta-section { background: linear-gradient(145deg, #051525 0%, #0B1F3A 40%, #093040 70%, #0A3A48 100%); }
.book-form-input {
  width: 100%; background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.15); border-radius: 10px;
  padding: 13px 16px; color: #fff; font-family: 'Hanken Grotesk', sans-serif;
  font-size: 14px; transition: border-color 0.2s;
  -webkit-appearance: none; appearance: none;
}
.book-form-input::placeholder { color: rgba(255,255,255,0.4); }
.book-form-input:focus { outline: none; border-color: #00B4CC; }
.book-form-input option { background: #0B1F3A; color: #fff; }
.book-form-label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 7px; color: rgba(255,255,255,0.7); font-family: 'Hanken Grotesk', sans-serif; letter-spacing: 0.04em; }

/* ---- Scroll reveal ---- */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---- Mobile nav ---- */
#mob-menu {
  transform: translateY(-8px); opacity: 0; pointer-events: none;
  transition: all 0.25s ease;
}
#mob-menu.open {
  transform: translateY(0); opacity: 1; pointer-events: auto;
}

/* ---- Responsive tweaks ---- */
@media (max-width: 640px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 160px 160px 160px;
  }
  .gallery-large { grid-row: 1 / 2; grid-column: 1 / 3; }
  .gallery-wide  { grid-column: 1 / 3; }
}
