/* ═══════════════════════════════════════════════════════════
   WANDERWELL TRAVELS — Shared Stylesheet
   ═══════════════════════════════════════════════════════════ */

/* ── BRAND PALETTE (from WanderWell logo) ── */
:root {
  --teal:        #2A5C6B;
  --teal-dark:   #1A3D48;
  --teal-light:  #4A8FA0;
  --coral:       #D4907A;
  --coral-light: #E8BCA8;
  --cream:       #FAF7F4;
  --sand:        #F0E8E0;
  --warm-dark:   #3D2B24;
  --warm-gray:   #8B7B74;
  --white:       #FFFFFF;
  --font-head:   'Playfair Display', Georgia, serif;
  --font-body:   'Lato', sans-serif;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; overflow-x: hidden; max-width: 100%; }
body  { font-family: var(--font-body); color: var(--warm-dark); background: var(--cream); overflow-x: hidden; max-width: 100%; }
img   { max-width: 100%; display: block; }
a     { text-decoration: none; color: inherit; }
ul    { list-style: none; }

h1,h2,h3,h4 { font-family: var(--font-head); line-height: 1.15; }

.section-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--coral);
  display: block;
  margin-bottom: 0.75rem;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 1rem 2.2rem;
  border-radius: 3px;
  transition: all 0.25s ease;
  cursor: pointer;
}
.btn-primary  { background: var(--coral);      color: var(--white);    border: 2px solid var(--coral); }
.btn-primary:hover  { background: transparent; color: var(--coral); }
.btn-outline  { background: transparent;       color: var(--white);    border: 2px solid var(--white); }
.btn-outline:hover  { background: var(--white); color: var(--teal-dark); }
.btn-teal     { background: var(--teal);        color: var(--white);    border: 2px solid var(--teal); }
.btn-teal:hover     { background: var(--teal-dark); border-color: var(--teal-dark); }

/* ═══════════════════════════
   HEADER / NAV
═══════════════════════════ */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.25rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.35s ease, padding 0.35s ease;
}
#header.scrolled { background: var(--teal-dark); padding: 0.9rem 3rem; }
#header.solid     { background: var(--teal-dark); }

.header-logo { display: flex; align-items: center; gap: 0.75rem; }
.header-logo-icon {
  width: 44px; height: 44px;
  background: white; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; padding: 5px;
  flex-shrink: 0;
}
.header-logo-text { font-family: var(--font-head); font-size: 1.3rem; color: var(--white); font-weight: 600; }

nav ul { display: flex; align-items: center; gap: 2rem; }
nav ul li a {
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.88); transition: color 0.2s; position: relative;
}
nav ul li a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px; background: var(--coral); transition: width 0.25s;
}
nav ul li a:hover { color: var(--white); }
nav ul li a:hover::after { width: 100%; }
nav ul li a.active { color: var(--white); }
nav ul li a.active::after { width: 100%; }

.dropdown { position: relative; }
.dropdown > a::after { content: ' ▾'; letter-spacing: 0; }
.dropdown-menu {
  position: absolute; top: calc(100% + 1rem); left: 50%; transform: translateX(-50%);
  background: var(--teal-dark); min-width: 200px; padding: 0.75rem 0;
  border-top: 2px solid var(--coral); opacity: 0; pointer-events: none;
  transition: opacity 0.2s, top 0.2s;
}
.dropdown:hover .dropdown-menu { opacity: 1; pointer-events: auto; top: calc(100% + 0.5rem); }
.dropdown-menu a {
  display: block; padding: 0.6rem 1.25rem; font-size: 0.78rem;
  color: rgba(255,255,255,0.85) !important;
}
.dropdown-menu a:hover { color: var(--white) !important; background: rgba(255,255,255,0.08); }
.dropdown-menu a::after { display: none !important; }

.nav-cta { background: var(--coral); color: var(--white) !important; padding: 0.55rem 1.2rem; border-radius: 3px; }
.nav-cta:hover { background: var(--coral-light); color: var(--teal-dark) !important; }
.nav-cta::after { display: none !important; }

/* ═══════════════════════════
   PAGE HERO (inner pages)
═══════════════════════════ */
.page-hero {
  position: relative;
  height: 55vh; min-height: 420px;
  display: flex; align-items: flex-end; justify-content: flex-start;
  padding: 0 3rem 4rem;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.04); transition: transform 6s ease;
}
.page-hero:hover .page-hero-bg { transform: scale(1.0); }
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(26,61,72,0.80) 0%, rgba(26,61,72,0.3) 70%, transparent 100%);
}
.page-hero-content { position: relative; z-index: 1; max-width: 600px; }
.page-hero-eyebrow {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--coral-light); display: block; margin-bottom: 1rem;
}
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); color: var(--white); font-weight: 600; margin-bottom: 1rem; }
.page-hero p { font-size: 1rem; color: rgba(255,255,255,0.8); line-height: 1.75; max-width: 500px; }

/* ═══════════════════════════
   TRUST BAR
═══════════════════════════ */
#trust-bar {
  background: var(--teal-dark);
  padding: 1.5rem 3rem;
  display: flex; justify-content: center; gap: 4rem; flex-wrap: wrap;
}
.trust-item { display: flex; align-items: center; gap: 0.75rem; color: var(--white); }
.trust-icon {
  width: 32px; height: 32px; background: rgba(212,144,122,0.3); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.trust-text strong { display: block; font-size: 1.1rem; font-family: var(--font-head); }
.trust-text span { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.65); }

/* ═══════════════════════════
   SERVICE CARDS (shared)
═══════════════════════════ */
.service-card {
  position: relative; overflow: hidden; border-radius: 4px; cursor: pointer; height: 520px;
}
.service-card-image {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transition: transform 0.5s ease;
}
.service-card:hover .service-card-image { transform: scale(1.06); }
.service-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,61,72,0.92) 0%, rgba(26,61,72,0.2) 50%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 2.5rem 2rem; text-align: left; transition: background 0.3s;
}
.service-card:hover .service-card-overlay {
  background: linear-gradient(to top, rgba(26,61,72,0.98) 0%, rgba(26,61,72,0.4) 50%, transparent 100%);
}
.service-card-tag { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--coral-light); margin-bottom: 0.5rem; }
.service-card h3 { font-size: 1.65rem; color: var(--white); margin-bottom: 0.75rem; }
.service-card p { font-size: 0.9rem; color: rgba(255,255,255,0.75); line-height: 1.65; margin-bottom: 1.5rem; max-height: 0; overflow: hidden; transition: max-height 0.4s ease, opacity 0.4s; opacity: 0; }
.service-card:hover p { max-height: 200px; opacity: 1; }
.service-link { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--coral-light); transition: gap 0.2s; }
.service-link:hover { gap: 0.9rem; }

/* ═══════════════════════════
   TESTIMONIALS (shared)
═══════════════════════════ */
.testimonial-card {
  background: var(--white); padding: 2.5rem; border-radius: 4px;
  border-top: 3px solid var(--coral); box-shadow: 0 4px 24px rgba(42,92,107,0.08);
}
.testimonial-stars { color: var(--coral); font-size: 1rem; letter-spacing: 0.1em; margin-bottom: 1.25rem; }
.testimonial-text { font-family: var(--font-head); font-style: italic; font-size: 1.05rem; color: var(--teal-dark); line-height: 1.7; margin-bottom: 1.5rem; }
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.author-avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--teal-light), var(--coral)); flex-shrink: 0; }
.author-name { font-weight: 700; font-size: 0.9rem; color: var(--warm-dark); }
.author-trip { font-size: 0.77rem; color: var(--warm-gray); }

/* ═══════════════════════════
   NEWSLETTER
═══════════════════════════ */
#newsletter { position: relative; overflow: hidden; padding: 6rem 3rem; background: var(--sand); }
.newsletter-inner { max-width: 680px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.newsletter-logo { width: 64px; height: 64px; margin: 0 auto 1.5rem; opacity: 0.25; }
#newsletter h2 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); color: var(--teal-dark); margin-bottom: 1rem; }
#newsletter p { color: var(--warm-gray); line-height: 1.75; margin-bottom: 2.5rem; font-size: 1rem; }
.kit-form {
  display: flex; max-width: 480px; margin: 0 auto 1rem;
  border-radius: 3px; overflow: hidden; box-shadow: 0 4px 24px rgba(42,92,107,0.12);
}
.kit-form input { flex: 1; padding: 1.1rem 1.5rem; border: none; background: var(--white); font-family: var(--font-body); font-size: 0.95rem; color: var(--warm-dark); outline: none; }
.kit-form input::placeholder { color: var(--warm-gray); }
.kit-form button { padding: 1.1rem 1.8rem; background: var(--teal); color: var(--white); border: none; font-family: var(--font-body); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; transition: background 0.2s; }
.kit-form button:hover { background: var(--teal-dark); }
.newsletter-note { font-size: 0.78rem; color: var(--warm-gray); }
.newsletter-perks { display: flex; justify-content: center; gap: 2rem; margin-top: 2.5rem; flex-wrap: wrap; }
.perk { font-size: 0.8rem; color: var(--teal); font-weight: 700; display: flex; align-items: center; gap: 0.4rem; }
.perk::before { content: '✦'; color: var(--coral); font-size: 0.6rem; }

/* ═══════════════════════════
   FOOTER
═══════════════════════════ */
footer { background: var(--teal-dark); color: rgba(255,255,255,0.75); padding: 4rem 3rem 2rem; }
.footer-top {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem;
  max-width: 1200px; margin: 0 auto; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand h3 { font-family: var(--font-head); font-size: 1.4rem; color: var(--white); margin-bottom: 1rem; }
.footer-brand p { font-size: 0.88rem; line-height: 1.75; margin-bottom: 1.5rem; }
.footer-social { display: flex; gap: 0.75rem; }
.social-icon { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; font-size: 0.8rem; transition: background 0.2s; cursor: pointer; }
.social-icon:hover { background: var(--coral); }
.footer-col h4 { font-family: var(--font-body); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--coral-light); margin-bottom: 1.25rem; }
.footer-col ul li { margin-bottom: 0.65rem; font-size: 0.88rem; }
.footer-col ul li a { color: rgba(255,255,255,0.65); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom { max-width: 1200px; margin: 2rem auto 0; display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; flex-wrap: wrap; gap: 1rem; }
.footer-bottom a { color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer-bottom a:hover { color: var(--white); }

/* ═══════════════════════════
   REVEAL ANIMATIONS
═══════════════════════════ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }
.reveal-delay-4 { transition-delay: 0.48s; }

/* ═══════════════════════════
   UTILITY
═══════════════════════════ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 3rem; }
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* ═══════════════════════════
   HAMBURGER BUTTON
═══════════════════════════ */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1001;
  position: relative;
}
.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ═══════════════════════════
   MOBILE NAV
═══════════════════════════ */
@media (max-width: 768px) {
  /* Always show dark header on mobile so hamburger is visible against it */
  #header {
    padding: 1rem 1.5rem;
    background: #1A5566 !important;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    box-sizing: border-box;
  }

  .menu-toggle { display: flex; flex-shrink: 0; margin-left: auto; }

  /* Use visibility/opacity — no transform means NO horizontal overflow or swipe-to-reveal */
  nav {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: #1A5566;
    z-index: 999;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 72px 2rem 3rem;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  nav.open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
  nav ul li { width: 100%; }
  nav ul li > a {
    font-size: 1rem !important;
    padding: 1rem 0;
    display: block;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.9) !important;
    letter-spacing: 0.06em;
  }
  nav ul li > a::after { display: none !important; }
  nav ul li > a:hover::after { display: none !important; }

  /* Dropdowns always expanded on mobile */
  .dropdown > a::after { content: '' !important; }
  .dropdown-menu {
    position: static;
    opacity: 1 !important;
    pointer-events: auto;
    background: transparent;
    border: none;
    padding: 0.25rem 0 0.75rem 1rem;
    min-width: auto;
    box-shadow: none;
    transform: none;
  }
  .dropdown-menu a {
    display: block;
    padding: 0.5rem 0 !important;
    font-size: 0.85rem !important;
    color: rgba(255,255,255,0.6) !important;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .dropdown-menu a:hover { color: #E8BCA8 !important; background: transparent; }

  /* CTA button at bottom of mobile menu */
  .nav-cta {
    display: block !important;
    text-align: center;
    margin-top: 1.5rem;
    padding: 1rem 1.5rem !important;
    background: #D4907A !important;
    color: white !important;
    border-radius: 3px;
    font-size: 0.85rem;
  }
  .nav-cta:hover { background: #E8BCA8 !important; }
}
