/* =======================================
   GLOBAL RESET & BASE STYLING
======================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  background-color: #fff;
  color: #333;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}


/* =======================================
   HEADER STYLES
======================================= */
.site-header {
  background-color: #0077B6;
  padding: 1rem 0;
}

.site-header .container {
  display: flex;
  flex-direction: row;           /* ✅ ensures horizontal layout */
  justify-content: space-between;
  align-items: center;           /* ✅ vertical center align */
  padding: 0 1rem;
}

/* Logo */
/* Logo styles */
.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  line-height: 1;
  padding: 0.25rem 0;
}

.logo img {
  width: 160px;
  height: auto;
  display: block;
}


/* Main Desktop Nav */
.main-nav {
  flex: 1;
  text-align: right;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.main-nav a {
  color: white;
  text-decoration: none;
}


/* =======================================
   MOBILE NAVIGATION
======================================= */

/* Hamburger Icon */
/* Hamburger styles */
.hamburger {
  font-size: 2rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
  margin: 0;
  display: block;
}

/* Fullscreen Mobile Menu */
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background-color: #0077B6;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: top;
  z-index: 999;
  padding: 2rem;
}

.mobile-nav.open {
  display: flex;
}

/* Close Button */
.close-nav {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2.5rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* Mobile Nav Links */
.mobile-nav ul {
  list-style: none;
  text-align: center;
}

.mobile-nav li {
  margin: 1.5rem 0;
}

.mobile-nav a {
  font-size: 1.75rem;
  color: white;
  text-decoration: none;
  font-weight: bold;
}


/* =======================================
   HERO SECTION
======================================= */
.hero {
  background: url('assets/images/hero.jpg') no-repeat center center/cover;
  padding: 20rem 1rem;
  color: white;
  text-align: center;
}

.hero h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.cta-button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background-color: #FF5733;
  color: white;
  text-decoration: none;
  border-radius: 5px;
}

/* Hero Section Video Background */
.hero {
  position: relative;
  padding: 20rem 1rem;
  color: white;
  text-align: center;
  overflow: hidden;
}

.hero-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

/*=================================*/
/* Featured Destinations Section */

.section-destinations {
  background: #f8fafc;
  padding: 60px 0;
  text-align: center;
}

.section-destinations h2 {
  font-size: 2.2rem;
  margin-bottom: 2rem;
  color: #fff;
}

.destination-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.destination-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  background: #fff;
  transition: transform 0.2s;
}

.destination-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.destination-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-radius: 18px 18px 0 0;
}

.card-overlay {
  padding: 1.2rem;
  background: linear-gradient(180deg,rgba(255,255,255,0.95) 80%,rgba(255,255,255,0.7) 100%);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.card-overlay h3 {
  font-size: 1.3rem;
  margin: 0 0 0.5rem 0;
  color: #0a6fa6;
}

.card-overlay p {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: #444;
}

.btn-secondary {
  display: inline-block;
  padding: 0.5em 1.2em;
  background: #0a6fa6;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s;
}

.btn-secondary:hover {
  background: #095a85;
}


/* Carousel Styles */
.carousel {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s;
  min-height: 350px;
}

.destination-card {
  flex: 0 0 100%;
  max-width: 100%;
  display: block;
  opacity: 1;
  transition: opacity 0.3s;
}

@media (min-width: 768px) {
  .carousel-track {
    gap: 2rem;
  }
  .destination-card {
    flex: 0 0 32%;
    max-width: 32%;
  }
  .carousel-btn.prev {
    left: 10px;
  }
  .carousel-btn.next {
    right: 10px;
  }
}


/* Testimonials Section - Improved Contrast */
.section-testimonials {
  background: linear-gradient(135deg, #e3f0fa 0%, #E8B319 100%);
  padding: 40px 0 70px 0;
  text-align: center;
  position: relative;
  box-shadow: 0 8px 32px rgba(10,111,166,0.08);
  border-top: 4px solid #0a6fa6;
}

.section-testimonials::before {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: #0a6fa6;
  margin: 0 auto 32px auto;
  border-radius: 2px;
}

.section-testimonials h2 {
  font-size: 2rem;
  margin-bottom: 2.5rem;
  color: #0a6fa6;
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
}

.testimonial-slider {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.testimonial-slider blockquote {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(10,111,166,0.07);
  padding: 2rem 2rem 1.5rem 2rem;
  font-size: 1.25rem;
  color: #222;
  margin: 0;
  position: relative;
}

.testimonial-slider blockquote span {
  display: block;
  margin-top: 1.2rem;
  font-size: 1rem;
  color: #0a6fa6;
  font-weight: 600;
  letter-spacing: 0.5px;
}

@media (max-width: 767px) {
  .section-testimonials {
    padding: 50px 0 40px 0;
  }
  .testimonial-slider blockquote {
    font-size: 1rem;
    padding: 1.2rem 1rem 1rem 1rem;
  }
}

/* Testimonial Slider Animation */
.testimonial-slider blockquote {
  display: none;
  opacity: 0;
  transition: opacity 0.5s;
}

.testimonial-slider blockquote.active {
  display: block;
  opacity: 1;
}

/*=========================================
   HOW IT WORKS SECTION
========================================= */
.section-how-it-works {
  background: url('assets/images/cabo_boat.webp') no-repeat center center/cover, #f3f7fa;
  padding: 120px 0px;
  text-align: center;
  position: relative;
}

.section-how-it-works::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(243,247,250,0.25); /* subtle overlay for readability */
  z-index: 0;
}

.section-how-it-works h2 {
  font-size: 2rem;
  margin-bottom: 2.5rem;
  color: #0a6fa6;
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
}

.steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.step {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(10,111,166,0.07);
  padding: 2rem 1.5rem;
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 280px;
  border: 2px solid #e0e7ef; /* visually define card edges */
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.step:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 6px 24px rgba(10,111,166,0.12);
  border-color: #0a6fa6;
}

.step h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #222;
}

.step p {
  font-size: 1rem;
  color: #444;
  margin: 0;
}

@media (max-width: 767px) {
  .steps {
    flex-direction: column;
    gap: 1.5rem;
  }
  .step {
    max-width: 100%;
  }
}

/* Lead Modal Styles */
.lead-modal {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(10, 20, 40, 0.55);
  animation: fadeIn 0.4s;
}
.lead-modal[style*="display: none"] { display: none !important; }
.lead-modal-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
}
.lead-modal-content {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 40px rgba(10,111,166,0.13);
  padding: 2.5rem 2rem 2rem 2rem;
  max-width: 540px;
  width: 95vw;
  position: relative;
  z-index: 2;
  animation: fadeInUp 0.5s;
}
.lead-modal-close {
  position: absolute;
  top: 1.1rem;
  right: 1.3rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: #0a6fa6;
  cursor: pointer;
  z-index: 3;
  transition: color 0.2s;
}
.lead-modal-close:hover { color: #FF5733; }
.lead-modal-content h2 {
  margin-top: 0;
  font-size: 1.7rem;
  color: #0a6fa6;
  font-weight: 700;
}
.lead-modal-sub {
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 1.5rem;
}
.lead-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1.2rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
}
.form-group label {
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: #0a6fa6;
  font-size: 1rem;
}
.required { color: #FF5733; margin-left: 2px; }
.optional { color: #888; font-size: 0.95em; margin-left: 4px; }
.form-group input,
.form-group select {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1.5px solid #c7d6e6;
  border-radius: 7px;
  font-size: 1rem;
  margin-bottom: 0.1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #f8fafc;
}
.form-group input:focus,
.form-group select:focus {
  border-color: #0a6fa6;
  outline: none;
  box-shadow: 0 0 0 2px #e3f0fa;
}
.error {
  color: #FF5733;
  font-size: 0.93rem;
  min-height: 1.1em;
  margin-bottom: 0.1em;
}
.lead-modal-submit {
  width: 100%;
  margin-top: 1.2rem;
  padding: 0.9rem 0;
  background: #0a6fa6;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.2s;
}
.lead-modal-submit:hover,
.lead-modal-submit:focus {
  background: #FF5733;
}
.privacy-note {
  font-size: 0.93rem;
  color: #888;
  margin-top: 0.7rem;
  text-align: center;
}
.lead-success {
  text-align: center;
  padding: 2rem 0.5rem 1rem 0.5rem;
}
.lead-success h2 {
  color: #0a6fa6;
  margin-bottom: 1rem;
}

/* Make modal content scrollable on mobile */
@media (max-width: 700px) {
  .lead-modal-content {
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.2rem 0.5rem 1.2rem 0.5rem;
    box-sizing: border-box;
  }
  .lead-modal {
    align-items: center;
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px);}
  to { opacity: 1; transform: translateY(0);}
}


/* On-page lead form tweaks */
.lead-form-section {
  background: #1d1e1e;
  padding: 60px 0;
  text-align: center;
}
.lead-form-inline {
  max-width: 900px;
  margin: 0 auto;
}
.lead-form-inline .lead-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1.2rem;
}
@media (max-width: 700px) {
  .lead-form-inline .lead-form-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* =======================================
   FOOTER
======================================= */
/* FOOTER STYLING */
.site-footer {
  background-color: #0077B6; /* Ocean Blue */
  color: white;
  padding: 3rem 1.5rem 2rem;
  font-family: 'Poppins', sans-serif;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
  gap: 2rem;
}

.footer-brand {
  flex: 1 1 200px;
}

.footer-brand .logo {
  font-family: 'Poppins', sans-serif;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.footer-nav {
  display: flex;
  flex: 2 1 500px;
  justify-content: space-between;
  gap: 1rem;
}

.footer-column h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column a {
  color: white;
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.8;
  transition: color 0.3s;
}

.footer-column a:hover {
  color: #FF5733; /* Sunset Orange */
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  padding-top: 1rem;
  font-size: 0.85rem;
  opacity: 0.9;
}

.footer-bottom a {
  color: #F4E1C1; /* Sand Beige */
  text-decoration: none;
  margin: 0 0.5rem;
}

.footer-bottom a:hover {
  color: #00A896; /* Wave Teal */
}

/* Responsive */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-nav {
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
  }

  .footer-column {
    width: 100%;
  }
}



/* =======================================
   RESPONSIVE STYLES
======================================= */

/* Tablet & Desktop Overrides */
@media (min-width: 768px) {
  .main-nav {
    display: block;
  }

  .main-nav ul {
    justify-content: flex-end;
    gap: 2rem;
  }

  .main-nav li {
    margin: 0;
  }

  .hamburger,
  .mobile-nav {
    display: none;
  }

  .hero h2 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.25rem;
  }

  .cta-button {
    font-size: 1.1rem;
  }
}



/* =======================================
   DARK MODE (SYSTEM PREFERENCE)
======================================= */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #121212;
    color: #eaeaea;
  }

  .site-header {
    background-color: #1a1a1a;
  }

   .main-nav a,
  .mobile-nav a,
  .close-nav {
    color: #eaeaea;
  }

  .hero {
    background-blend-mode: overlay;
    background-color: #00000088;
    color: #ffffff;
  }

  .cta-button {
    background-color: #FF7F50;
    color: #000;
  }

  .site-footer {
    background-color: #1a1a1a;
    color: #bbb;
  }
  .section-destinations {
    background: #1a1a1a;
  }
}


/* Mobile-Only Overrides --- if anything is below this it will not apply */
/* =======================================
   MOBILE-ONLY STYLES
======================================= */
@media (max-width: 767px) {
  .main-nav {
    display: none;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 1rem;
  }

  /* Optional: add this if hamburger or logo spacing looks off - THIS FIXED MY OPEN/CLOSE HAMBURGER ALIGNMENT WITH X */
  .logo,
  .hamburger {
    margin-bottom: 0;
    margin-right: -1.25rem; /* Adjust as needed */
  }
}


/* =======================================
   DEBUGGING STYLES (REMOVE IN PRODUCTION)
======================================= *
.logo {
   border: 1px dashed lime; 
}

.hamburger {
  border: 1px dashed red;
}

.main-nav {
  border: 2px dashed yellow;
}
*/