/* ========================================================================
   MoonRiver Vacations — Global Stylesheet
   Easily editable. All colors, fonts, and spacing live in :root below.
   ======================================================================== */

:root {
  --navy-900: #0a1a2f;
  --navy-800: #102542;
  --navy-700: #1c4377;
  --blue-500: #5abaff;
  --blue-300: #aacbe3;
  --blue-100: #eaf3fb;
  --gold: #3ab6ec;
  --gold-light: #9fe4ff;
  --white: #ffffff;
  --off-white: #b9f0ff;
  --text: #1a2434;
  --muted: #0095ff;

  --serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;

  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 4px 14px rgba(10, 26, 47, 0.08);
  --shadow-md: 0 14px 40px rgba(10, 26, 47, 0.14);
  --shadow-lg: 0 30px 80px rgba(10, 26, 47, 0.22);
  --container: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; color: var(--navy-900); }
h1 { font-size: clamp(2.5rem, 6vw, 5.5rem); line-height: 1.05; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.15; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; line-height: 1.3; margin-bottom: 0.5rem; }
p { color: var(--muted); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.section { padding: 110px 0; }
.section-tight { padding: 70px 0; }
.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.section-head { text-align: center; max-width: 720px; margin: 0 auto 70px; }
.section-head p { font-size: 1.1rem; margin-top: 12px; }

/* ------------ Buttons ------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.35s var(--ease);
  border: 1px solid transparent;
  background: none;
  font-family: var(--sans);
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy-900);
  box-shadow: 0 10px 30px rgba(201, 169, 106, 0.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(201, 169, 106, 0.5); }
.btn-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--white); }
.btn-dark { background: var(--navy-900); color: var(--white); }
.btn-dark:hover { background: var(--navy-700); transform: translateY(-2px); }

/* ------------ Navigation ------------ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 22px 0;
  transition: all 0.4s var(--ease);
  background: rgba(10, 26, 47, 0.15);
  backdrop-filter: blur(12px);
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-sm);
  padding: 14px 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--white); transition: color 0.4s; }
.nav.scrolled .logo { color: var(--navy-900); }
.logo svg { width: 42px; height: 42px; }
.logo-text { font-family: var(--serif); font-size: 1.5rem; line-height: 1; letter-spacing: 0.02em; }
.logo-text small { display: block; font-family: var(--sans); font-size: 0.62rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold); margin-top: 4px; }

.nav-links { display: flex; gap: 38px; list-style: none; }
.nav-links a {
  color: var(--white); font-size: 0.93rem; font-weight: 500; letter-spacing: 0.04em;
  position: relative; padding: 8px 0; transition: color 0.3s;
}
.nav.scrolled .nav-links a { color: var(--navy-800); }
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1px;
  background: var(--gold); transition: width 0.3s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-toggle { display: none; background: none; border: 0; color: inherit; cursor: pointer; }
.nav-toggle svg { width: 28px; height: 28px; stroke: currentColor; }

@media (max-width: 900px) {
  .nav-toggle { display: block; color: var(--white); }
  .nav.scrolled .nav-toggle { color: var(--navy-900); }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--white); padding: 20px 28px;
    box-shadow: var(--shadow-md);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: all 0.3s var(--ease);
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { color: var(--navy-800); padding: 14px 0; border-bottom: 1px solid var(--blue-100); }
}

/* ------------ Hero ------------ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
  color: var(--white);
}
.hero-media {
  position: absolute; inset: 0; z-index: 0;
}
.hero-media video, .hero-media img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(10,26,47,0.55) 0%, rgba(10,26,47,0.35) 50%, rgba(10,26,47,0.85) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 880px; padding: 120px 0 80px;
}
.hero-content .eyebrow { color: var(--gold-light); }
.hero h1 { color: var(--white); font-weight: 400; }
.hero h1 em { font-style: italic; color: var(--gold-light); }
.hero-sub { font-size: 1.2rem; color: rgba(255,255,255,0.85); margin: 24px 0 40px; max-width: 620px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; }

.scroll-cue {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  z-index: 2; color: rgba(255,255,255,0.7); font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-cue::after {
  content: ''; width: 1px; height: 40px; background: rgba(255,255,255,0.5);
  animation: scrollPulse 2s var(--ease) infinite;
}
@keyframes scrollPulse { 0%,100%{opacity:0.3;transform:scaleY(0.6);} 50%{opacity:1;transform:scaleY(1);} }

/* ------------ Page Hero (sub pages) ------------ */
.page-hero {
  position: relative; min-height: 60vh;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); text-align: center;
  padding: 160px 0 80px;
  overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10,26,47,0.85), rgba(24,54,94,0.7));
  z-index: 1;
}
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); font-size: clamp(2.5rem, 5vw, 4rem); }
.page-hero p { color: rgba(255,255,255,0.85); margin-top: 16px; font-size: 1.15rem; }

/* ------------ Cards ------------ */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.card-media { aspect-ratio: 4/3; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.card:hover .card-media img { transform: scale(1.08); }
.card-body { padding: 28px; }
.card-body h3 { margin-bottom: 10px; }
.card-tag {
  display: inline-block; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 12px;
}

.service-card {
  padding: 36px 30px; background: var(--white);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  transition: all 0.4s var(--ease);
  border: 1px solid rgba(10,26,47,0.05);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--gold-light); }
.service-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-100), var(--white));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px; color: var(--navy-700);
}
.service-icon svg { width: 30px; height: 30px; }

/* Vendor / partner cards */
.vendor-card {
  padding: 32px 24px; text-align: center;
  background: var(--white); border-radius: var(--radius);
  border: 1px solid rgba(10,26,47,0.06);
  transition: all 0.35s var(--ease);
}
.vendor-card:hover { background: var(--navy-900); color: var(--white); transform: translateY(-4px); }
.vendor-card:hover h3, .vendor-card:hover p { color: var(--white); }
.vendor-name { font-family: var(--serif); font-size: 1.5rem; color: var(--navy-900); margin-bottom: 8px; }
.vendor-card p { font-size: 0.9rem; }

/* ------------ About ------------ */
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
@media (max-width: 900px) { .about-split { grid-template-columns: 1fr; gap: 40px; } }
.about-img { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-img img { aspect-ratio: 4/5; object-fit: cover; }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.stat strong { display: block; font-family: var(--serif); font-size: 2.4rem; color: var(--navy-900); }
.stat span { font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }

/* ------------ Specialties grid (about) ------------ */
.specialty {
  padding: 28px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--white), var(--off-white));
  border: 1px solid rgba(10,26,47,0.05);
  transition: transform 0.4s var(--ease);
}
.specialty:hover { transform: translateY(-4px); }
.specialty h3 { font-size: 1.25rem; margin-bottom: 8px; }
.specialty p { font-size: 0.95rem; }

/* ------------ Testimonials ------------ */
.testimonials-bg { background: var(--navy-900); color: var(--white); }
.testimonials-bg h2 { color: var(--white); }
.testimonial {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  padding: 36px; border-radius: var(--radius-lg);
}
.stars { color: var(--gold); margin-bottom: 16px; letter-spacing: 4px; }
.testimonial p { color: rgba(255,255,255,0.85); font-style: italic; font-size: 1.05rem; }
.testimonial-author { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.testimonial-author img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.testimonial-author strong { color: var(--white); display: block; }
.testimonial-author span { color: rgba(255,255,255,0.6); font-size: 0.85rem; }

/* ------------ Gallery ------------ */
.gallery-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
}
.gallery-item {
  overflow: hidden; border-radius: var(--radius);
  position: relative; cursor: pointer;
  background: var(--blue-100);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item::after {
  content: attr(data-label); position: absolute; left: 20px; bottom: 16px;
  color: var(--white); font-family: var(--serif); font-size: 1.1rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6); opacity: 0; transform: translateY(8px);
  transition: all 0.4s var(--ease);
}
.gallery-item:hover::after { opacity: 1; transform: translateY(0); }
.gallery-item.span-2 { grid-column: span 2; }
.gallery-item.row-2 { grid-row: span 2; }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } .gallery-item.span-2 { grid-column: span 1; } }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; background: rgba(10,26,47,0.95);
  z-index: 200; display: none; align-items: center; justify-content: center; padding: 40px;
}
.lightbox.open { display: flex; animation: fadeIn 0.3s ease; }
.lightbox img { max-width: 90vw; max-height: 88vh; border-radius: var(--radius); }
.lightbox-close { position: absolute; top: 24px; right: 30px; color: var(--white); background: none; border: 0; font-size: 2rem; cursor: pointer; }
@keyframes fadeIn { from{opacity:0;} to{opacity:1;} }

/* ------------ Blog ------------ */
.blog-meta { font-size: 0.82rem; color: var(--muted); display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.blog-meta span { display: inline-flex; align-items: center; gap: 6px; }
.blog-meta a { color: var(--navy-700); font-weight: 500; }

.share-bar { display: flex; gap: 12px; margin-top: 18px; }
.share-bar button {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--blue-100); border: 0; color: var(--navy-700);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  transition: all 0.3s;
}
.share-bar button:hover { background: var(--gold); color: var(--white); }

/* ------------ Forms ------------ */
.form-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 48px; box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 18px; }
.form-row.single { grid-template-columns: 1fr; }
@media (max-width: 700px) { .form-row { grid-template-columns: 1fr; } }
.form-field label {
  display: block; font-size: 0.82rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--navy-700); font-weight: 600; margin-bottom: 8px;
}
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px;
  border: 1px solid rgba(10,26,47,0.15); background: var(--off-white);
  font-family: inherit; font-size: 0.96rem; color: var(--text);
  transition: all 0.25s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: 0; border-color: var(--gold); background: var(--white);
  box-shadow: 0 0 0 4px rgba(201,169,106,0.12);
}
.form-field textarea { min-height: 120px; resize: vertical; }

.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 50px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-card {
  background: var(--navy-900); color: var(--white); padding: 40px;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
}
.contact-info-card h3 { color: var(--white); }
.contact-info-card p, .contact-info-card a { color: rgba(255,255,255,0.8); }
.contact-info-card .info-row { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.contact-info-card .info-row:last-child { border-bottom: 0; }
.contact-info-card svg { width: 22px; flex-shrink: 0; color: var(--gold); }

.map-placeholder {
  margin-top: 30px; aspect-ratio: 16/9; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--blue-300), var(--navy-700));
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-family: var(--serif); font-size: 1.4rem;
  position: relative; overflow: hidden;
}
.map-placeholder::before {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'><path d='M0 50 Q25 30 50 50 T100 50' stroke='rgba(255,255,255,0.2)' fill='none' stroke-width='1'/></svg>");
  opacity: 0.6;
}

/* ------------ Footer ------------ */
footer {
  background: var(--navy-900); color: rgba(255,255,255,0.7);
  padding: 80px 0 30px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 50px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }
footer h4 { color: var(--white); font-family: var(--sans); font-size: 0.85rem; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 22px; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 12px; }
footer ul a { font-size: 0.92rem; transition: color 0.3s; }
footer ul a:hover { color: var(--gold); }
.footer-logo { color: var(--white); margin-bottom: 18px; }
.newsletter { display: flex; gap: 8px; margin-top: 14px; }
.newsletter input {
  flex: 1; padding: 12px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.06); color: var(--white); font-family: inherit;
}
.newsletter input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter button {
  padding: 12px 22px; border-radius: 999px; border: 0; background: var(--gold);
  color: var(--navy-900); font-weight: 600; cursor: pointer; transition: all 0.3s;
}
.newsletter button:hover { background: var(--gold-light); }
.socials { display: flex; gap: 12px; margin-top: 18px; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.08); display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.3s;
}
.socials a:hover { background: var(--gold); color: var(--navy-900); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom {
  margin-top: 60px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.85rem;
}

/* ------------ Floating UI ------------ */
.fab {
  position: fixed; right: 28px; bottom: 28px; z-index: 90;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy-900); padding: 16px 26px; border-radius: 999px;
  font-weight: 600; box-shadow: 0 14px 40px rgba(201,169,106,0.45);
  display: inline-flex; align-items: center; gap: 10px;
  transition: transform 0.3s var(--ease);
}
.fab:hover { transform: translateY(-3px) scale(1.03); }

.back-to-top {
  position: fixed; right: 28px; bottom: 100px; z-index: 89;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy-900); color: var(--white);
  display: none; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: var(--shadow-md);
  transition: transform 0.3s;
}
.back-to-top:hover { transform: translateY(-3px); }
.back-to-top.visible { display: inline-flex; }

@media (max-width: 600px) {
  .fab { padding: 14px 20px; font-size: 0.85rem; right: 16px; bottom: 16px; }
  .back-to-top { right: 16px; bottom: 80px; }
}

/* ------------ Scroll Reveal ------------ */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ------------ Banner / CTA strip ------------ */
.cta-strip {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: var(--white); border-radius: var(--radius-lg);
  padding: 60px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-strip::before {
  content: ''; position: absolute; top: -50%; left: -10%; width: 60%; height: 200%;
  background: radial-gradient(circle, rgba(201,169,106,0.25), transparent 60%);
}
.cta-strip h2 { color: var(--white); position: relative; }
.cta-strip p { color: rgba(255,255,255,0.8); margin: 12px auto 30px; max-width: 560px; position: relative; }
.cta-strip .btn { position: relative; }

/* Utility */
.text-center { text-align: center; }
.mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; } .mt-5 { margin-top: 3rem; }
.hero-media img {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  border-radius: 16px;
  /* Optional */
}
