/* ==========================================================
   Holy Spirit Led Tours - Fun & Meaningful Christian Vacations - Main Stylesheet
   Version: 72.2 (VORTEX: "Overlay Diet + Brown Bar Everywhere + Mobile Brighten + Final Merge")
   Code By Mark Cameron (+ a caffeinated assistant)
   ========================================================== */

/* ================================
   ROOT VARIABLES & GLOBAL RESET
   ================================ */
:root {
  --primary-color: #8B4513;            /* Lovely “pilgrimage brown” */
  --primary-color-rgb: 139, 69, 19;
  --secondary-color: #DAA520;          /* Hallelujah gold */
  --secondary-color-rgb: 218, 165, 32;

  --dark-color: #333333;
  --light-color: #f8f5f0;              /* parchment-y background */
  --white-color: #ffffff;

  --text-color: #4a5568;
  --text-light: #718096;

  --heading-font: 'Playfair Display', serif;
  --body-font: 'Open Sans', sans-serif;

  --transition-speed: 0.3s ease;
  --container-width: 1140px;

  --box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  --box-shadow-hover: 0 6px 18px rgba(0,0,0,0.12);
  --border-radius: 10px;

  --tan-dark: #EAE0D5;
  --tan-light: #F7F3ED;
  --border-color: #DCD0C0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--body-font); line-height: 1.65; color: var(--text-color); background-color: var(--light-color); overflow-x: hidden; cursor: auto !important; }

/* Lock body during mobile menu / lightbox */
body.menu-open { overflow: hidden; }

/* ================================
   TYPOGRAPHY & GENERIC ELEMENTS
   ================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  color: var(--primary-color);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75em;
}

.section-title { font-size: 2.5rem; font-weight: 800; margin-bottom: 25px; text-align: center; }

.section-subtitle,
.page-header-subtitle {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 650px;
  margin: 0 auto 50px auto;
  line-height: 1.7;
  text-align: center;
}

p { margin-bottom: 1.25em; }

a { color: var(--primary-color); text-decoration: none; transition: color var(--transition-speed); }
a:hover { color: var(--secondary-color); text-decoration: none; }

.container { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }
.section { padding: 45px 0; }

/* Buttons */
.btn {
  display: inline-block; padding: 10px 25px; font-size: 0.95rem; font-weight: 600;
  border-radius: var(--border-radius); transition: all var(--transition-speed);
  cursor: pointer; text-align: center; position: relative; overflow: hidden; z-index: 1;
  letter-spacing: 0.3px; border: 2px solid transparent;
}
.btn-primary { background-color: var(--primary-color); color: var(--white-color); border-color: var(--primary-color); }
.btn-primary:hover { background-color: #7A3C10; border-color: #7A3C10; transform: translateY(-2px); box-shadow: var(--box-shadow-hover); }
.btn-secondary { background-color: var(--secondary-color); color: var(--dark-color); border-color: var(--secondary-color); }
.btn-secondary:hover { background-color: #C8941C; border-color: #C8941C; transform: translateY(-2px); box-shadow: var(--box-shadow-hover); }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg { padding: 15px 35px; font-size: 1.1rem; }

/* Utilities */
.text-center { text-align: center; }
.mt-3 { margin-top: 1.5rem; }
.text-muted { color: #869ab8 !important; }
.bg-light-alt { background-color: var(--tan-light); }

/* ===================================
   HEADER & NAV (Fixed, translucent)
   =================================== */
#main-header {
  /* Brown + 65% opacity before scroll */
  background-color: rgba(132, 67, 11, 0.65) !important;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  box-shadow: none;

  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

/* Lighter translucent header after scroll */
#main-header.scrolled {
  background-color: rgba(255, 255, 255, 0.65) !important;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar .nav-container {
  display: flex; justify-content: space-between; align-items: center;
  height: 80px; width: 100%; max-width: 100%; margin: 0 auto; padding: 0 25px; gap: 15px;
}

.nav-logo { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; z-index: 1003; }
.nav-logo img { height: 31px; width: auto; transition: transform 0.3s ease; }
.nav-logo:hover img { transform: scale(1.05); }

.nav-logo-tagline {
  color: var(--white-color); font-size: 0.65rem; font-weight: 600;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.7); transition: color var(--transition-speed);
  line-height: 1.2; margin-top: 4px;
}
#main-header.scrolled .nav-logo-tagline { color: var(--dark-color); text-shadow: none; }

.nav-menu { display: flex; list-style: none; align-items: center; margin: 0; padding: 0; }
.nav-item { margin: 0; }

.nav-link {
  color: var(--white-color); font-weight: 600; font-size: 0.9rem;
  padding: 8px 10px; position: relative; transition: color 0.3s ease;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5); white-space: nowrap;
}
#main-header.scrolled .nav-link { color: var(--dark-color); text-shadow: none; }

.nav-link::after {
  content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px;
  background-color: var(--secondary-color); transition: width var(--transition-speed);
}

.nav-link:hover, .nav-link.active { color: var(--secondary-color) !important; text-shadow: none !important; }
#main-header.scrolled .nav-link:hover, #main-header.scrolled .nav-link.active { color: var(--primary-color) !important; }
#main-header.scrolled .nav-link.active::after { background-color: var(--primary-color); }

.dropdown { position: relative; }
.dropdown-menu {
  display: block; position: absolute; top: 100%; left: 0; background-color: var(--white-color);
  list-style: none; padding: 8px 0; margin-top: 8px; min-width: 230px; box-shadow: var(--box-shadow);
  border-radius: var(--border-radius); z-index: 1001; border: 1px solid #eee;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}
.dropdown.dropdown-active > .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.nav-cta-area { display: flex; flex-direction: column; align-items: center; z-index: 1003; }
.nav-book-now-btn { padding: 8px 24px; font-size: 0.9rem; background-color: var(--secondary-color); color: var(--dark-color); border-color: var(--secondary-color); text-shadow: none; }
.nav-book-now-btn:hover { background-color: var(--primary-color); border-color: var(--primary-color); color: var(--white-color); transform: scale(1.05); }

/* "All Inclusive" tagline under the button */
.nav-cta-area .cta-tagline{
  display:block; color: var(--white-color); font-family: var(--body-font);
  font-weight: 600; font-style: normal; font-size: 0.75rem; line-height: 1.1; margin-top: 4px;
  text-shadow: 0 1px 3px rgba(0,0,0,.8); text-align: center;
}

.hamburger { display: none; cursor: pointer; background: none; border: none; padding: 10px; z-index: 1002; }
.hamburger .bar { display: block; width: 22px; height: 2px; margin: 5px auto; background-color: var(--white-color); transition: all 0.3s ease-in-out; }
#main-header.scrolled .hamburger .bar { background-color: var(--dark-color); }

/* ================================
   HERO & GENERIC PAGE HEADERS
   ================================ */
main#primary { padding-top: 80px; }

.hero.video-hero,
.page-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: var(--white-color);
  background-size: cover;
  background-position: center center;
}

/* Full-bleed homepage hero (video) */
.hero.video-hero {
  height: 100vh;
  min-height: 600px;
  margin-top: -80px;
}

/* Standard interior page header */
.page-header {
  width: 100%;
  aspect-ratio: 16 / 6;
  min-height: 300px;
  max-height: 450px;
  margin-top: -80px;
}

/* Hero media */
.hero-video-wrapper { position: absolute; inset: 0; z-index: 1; }
#heroVideo { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* ------------------------------------------------------------
   OVERLAY (balanced contrast)
   - Desktop/Tablet: softer than before so the video breathes.
   - Mobile: bring back a very light overlay so it’s not blinding.
   ------------------------------------------------------------ */
.hero-overlay,
.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  transition: background 0.3s ease;
  /* Desktop/Tablet (default): gentle gradient, ~28% edges / ~18% center */
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.28) 0%,
    rgba(0,0,0,0.18) 40%,
    rgba(0,0,0,0.18) 60%,
    rgba(0,0,0,0.28) 100%
  );
}

/* Mobile: subtle ~12% tint for readability without crushing brightness */
@media (max-width: 767.98px) {
  .hero-overlay,
  .page-header::before {
    background: rgba(0,0,0,0.12);
  }
}

/* Content wrapper */
.hero .hero-content,
.page-header-content {
  position: relative; z-index: 3; max-width: 100%; width: 100%; padding: 20px 2vw;
  animation: fadeInAndUp 1.2s ease-out forwards;
}

@keyframes fadeInAndUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* Inline tour links in hero */
.hero-tour-links { display: grid; grid-template-columns: 1fr 1.2fr 1fr; align-items: start; width: 100%; margin-bottom: 25px; gap: 15px; }
.hero-title-link {
  font-family: var(--heading-font); font-weight: 800; line-height: 1.2; color: var(--secondary-color);
  text-shadow: 0 2px 4px rgba(0,0,0,0.6), 0 5px 20px rgba(0,0,0,0.5);
  font-size: clamp(1.1rem, 2.2vw, 1.8rem); text-decoration: none; transition: transform 0.3s ease, text-shadow 0.3s ease; padding: 10px 0;
}
.hero-title-link:hover { transform: scale(1.05); text-shadow: 0 3px 8px rgba(0,0,0,0.7), 0 8px 25px rgba(0,0,0,0.6); }

.hero-tagline {
  font-family: var(--body-font); font-weight: 600; font-size: 1.1rem; letter-spacing: 0.5px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8); color: var(--white-color); margin-bottom: 25px;
}
.hero-button-group { margin-top: 15px; display: flex; flex-direction: column; align-items: center; }
.hero-button-subtext {
  display: block; margin-top: 8px; font-family: var(--body-font); font-weight: 600; font-size: 0.9rem;
  color: var(--white-color); text-shadow: 0 1px 3px rgba(0,0,0,0.8); letter-spacing: 0.3px; text-align: center;
}

/* Flags in hero */
.hero-flags { display: inline-flex; gap: 6px; margin-left: 8px; vertical-align: middle; }
.hero-flags img { width: 34px; height: auto; border-radius: 3px; box-shadow: 0 2px 6px rgba(0,0,0,0.3); transition: transform 0.2s ease-in-out; }
.hero-flags img:hover { transform: scale(1.1); }

/* ================================
   HOMEPAGE & COMPONENTS
   ================================ */
.tour-preview-section { padding-top: 25px; }
.tour-cards-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; }
.tour-card {
  background-color: var(--white-color); border-radius: var(--border-radius); box-shadow: var(--box-shadow);
  overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column;
}
.tour-card:hover { transform: translateY(-6px); box-shadow: var(--box-shadow-hover); }
.tour-card-image img { width: 100%; height: 220px; object-fit: cover; display: block; }
.tour-card-content { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.tour-card-title { font-family: var(--heading-font); font-size: 1.4rem; color: var(--primary-color); margin-bottom: 10px; font-weight: 700; }
.tour-card-description { font-size: 0.9rem; margin-bottom: 20px; flex-grow: 1; line-height: 1.6; color: var(--text-light); }
.tour-card .btn-secondary { font-size: 0.85rem; padding: 8px 20px; margin-top: auto; }
.tour-preview-footnote { margin-top: 30px; color: var(--text-light); font-size: 0.9rem; font-style: italic; max-width: 500px; margin-left: auto; margin-right: auto; }
.tour-preview-footnote p { margin-bottom: 0; }

.explore-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px 40px; align-items: start; }
.feature-item { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 15px; }
.feature-item i { font-size: 2.5rem; color: var(--secondary-color); margin-bottom: 15px; }
.feature-item h3 { font-size: 1.3rem; margin-bottom: 8px; }
.feature-item p { font-size: 0.9rem; color: var(--text-light); line-height: 1.6; margin: 0; }

/* Narrative */
.dynamic-narrative-section { background-color: var(--light-color); }
#typewriter-text {
  width: 90%; max-width: 900px; margin: 0 auto; text-align: left; font-family: var(--heading-font);
  font-size: 1.5rem; color: #1E88E5; line-height: 1.7; min-height: 100px; opacity: 0; transition: opacity 0.5s ease; position: relative;
}
#typewriter-text::after { content: '|'; position: absolute; animation: blink 1s step-end infinite; color: var(--secondary-color); }
#typewriter-text.typing-done::after { display: none; }
@keyframes blink { from, to { opacity: 1; } 50% { opacity: 0; } }

/* Apple-style showcase */
.tour-showcase-apple-section { background-color: var(--white-color); }
.tour-showcase-apple-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 30px; }
.tour-box-apple {
  background-color: var(--tan-light); border-radius: 12px; padding: 0; text-align: center; box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border-color); transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.tour-box-apple:hover { transform: translateY(-6px); box-shadow: 0 10px 25px rgba(0,0,0,0.09); border-color: var(--secondary-color); }
.tour-box-apple-title {
  font-family: var(--heading-font); font-size: 1.25rem; color: var(--dark-color); font-weight: 700; margin: 0; line-height: 1.3;
  padding: 20px; background-color: var(--tan-dark); border-bottom: 1px solid var(--border-color); white-space: nowrap;
}
.tour-box-apple-body { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.tour-box-apple-summary { font-size: 1rem; color: var(--text-color); font-weight: 600; margin-bottom: 20px; min-height: 4.5em; }
.tour-box-apple-footer { padding: 0 25px 25px 25px; border-top: 1px solid var(--border-color); margin-top: auto; }
.btn.btn-apple-style { display: flex; align-items: center; justify-content: center; width: 100%; font-family: var(--body-font); font-weight: 600; padding: 12px 22px; text-transform: none; font-size: 0.9rem; margin-top: 15px; background-color: var(--primary-color); color: var(--white-color); border-color: var(--primary-color); }
.btn.btn-apple-style:hover { background-color: #7A3C10; border-color: #7A3C10; }
.tour-showcase-footer-text { margin-top: 40px; padding-top: 25px; border-top: 1px solid #e0e0e0; }
.tour-showcase-footer-text p { font-size: 0.95rem; color: var(--text-color); max-width: 600px; margin: 0 auto 8px auto; line-height: 1.6; }
.tour-showcase-footer-text p:first-child { font-family: var(--heading-font); font-weight: 600; color: var(--primary-color); font-size: 1.1rem; }

/* Testimonials */
.testimonials-section { background-color: var(--light-color); }
.testimonial-slider { position: relative; overflow: hidden; max-width: 900px; margin: 0 auto; }
.testimonial-slides { display: flex; transition: transform 0.5s ease-in-out; }
.testimonial-slide { min-width: 100%; box-sizing: border-box; padding: 20px 60px; text-align: center; }
.testimonial-quote { font-family: var(--heading-font); font-size: 1.2rem; font-style: italic; color: var(--text-color); margin-bottom: 1rem; min-height: 80px; }
.testimonial-author { font-weight: bold; color: var(--primary-color); }
.slider-controls button {
  position: absolute; top: 50%; transform: translateY(-50%); background-color: rgba(var(--primary-color-rgb), 0.5);
  color: white; border: none; border-radius: 50%; width: 40px; height: 40px; cursor: pointer; transition: background-color 0.3s ease; z-index: 10;
}
.slider-controls button:hover { background-color: rgba(var(--primary-color-rgb), 0.8); }
.slider-controls .prev-slide { left: 10px; }
.slider-controls .next-slide { right: 10px; }

/* Details lists */
.tour-box-details { text-align: left; }
.detail-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.detail-icon i { color: var(--primary-color); font-size: 1rem; margin-top: 4px; }
.detail-label { font-weight: bold; white-space: nowrap; }
.detail-value { color: var(--text-light); }
.country-stack { display: flex; flex-direction: column; align-items: flex-start; }
.country-stack span { line-height: 1.5; }
.inline-flag { display: inline-block; vertical-align: middle; margin-left: 6px; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }

/* ================================
   TOUR PAGE SPECIFIC
   (the “brown bar” lives here)
   ================================ */

/* The glorious, restored brown strip — visible on ALL devices */
.tour-key-details-strip {
  background-color: var(--primary-color); color: var(--white-color);
  padding: 12px 0;                                  /* Default desktop padding */
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border-top: 3px solid var(--secondary-color);
  border-bottom: 3px solid var(--secondary-color);
  position: relative; z-index: 10;
}
.details-strip-content {
  display: flex; justify-content: space-around; align-items: stretch;
  flex-wrap: wrap; gap: 20px;
}
.key-detail-item {
  display: flex; align-items: center; gap: 14px; text-align: left;
  padding: 6px 10px; flex-grow: 1; justify-content: center;
}
.key-detail-item i { font-size: 2.1rem; color: var(--secondary-color); opacity: 0.9; }
.key-detail-item div { display: flex; flex-direction: column; }
.key-detail-item strong {
  font-family: var(--body-font); font-size: 0.82rem; font-weight: 600; text-transform: uppercase;
  color: rgba(255,255,255,0.75); letter-spacing: 0.5px;
}
.key-detail-item span { font-family: var(--body-font); font-weight: 700; font-size: 1.08rem; }
.key-detail-item.countries-item > div { display: flex; flex-direction: row; align-items: center; gap: 10px; }

/* ===========================================
   Itinerary Layout (timeline + images grid)
   =========================================== */
.tour-layout-section { padding-top: 40px; }
.tour-layout-grid { display: grid; grid-template-columns: 280px 1fr; gap: 0 60px; position: relative; }
.tour-layout-grid::before { content: ''; position: absolute; top: 25px; bottom: 25px; left: calc(280px + 30px - 2px); width: 4px; background-color: var(--tan-dark); z-index: 1; border-radius: 2px; }
#itinerary-progress-line { position: absolute; top: 25px; left: calc(280px + 30px - 2px); width: 7px; background-color: var(--primary-color); z-index: 2; height: 0; transition: height 0.4s ease-out; border-radius: 2px; }
.itinerary-nav-sticky-content { position: -webkit-sticky; position: sticky; top: 100px; }
.itinerary-nav h4 { font-size: 1.2rem; padding-bottom: 10px; margin-bottom: 15px; border-bottom: 2px solid var(--border-color); }
.itinerary-nav ul { list-style: none; padding: 0; }
.itinerary-nav-link { display: block; padding: 10px 15px; margin-bottom: 5px; font-weight: 600; color: var(--text-light); border-radius: var(--border-radius); transition: all 0.3s ease; }
.itinerary-nav-link:hover { background-color: var(--tan-light); }
.itinerary-nav-link.is-active { background-color: var(--tan-dark); color: var(--primary-color); font-weight: 700; }

.itinerary-day-content { position: relative; padding-bottom: 80px; margin-bottom: 80px; }
.itinerary-day-content:last-child { margin-bottom: 0; }
.itinerary-day-content h3 { font-size: 1.8rem; margin-bottom: 1rem; }
.itinerary-day-content::before {
  content: ''; position: absolute; top: 10px; left: -48px; width: 20px; height: 20px;
  background-color: var(--light-color); border: 4px solid var(--tan-dark); border-radius: 50%; z-index: 3; transition: all 0.4s ease;
}
.itinerary-day-content.is-active::before { border-color: var(--primary-color); background-color: var(--primary-color); transform: scale(1.1); }

.itinerary-image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; margin-top: 25px; }
.itinerary-image-wrapper { display: block; position: relative; overflow: hidden; border-radius: var(--border-radius); box-shadow: var(--box-shadow); aspect-ratio: 4 / 3; }
.itinerary-image-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.itinerary-image-wrapper:hover img { transform: scale(1.08); }
.image-overlay-zoom {
  position: absolute; inset: 0; background-color: rgba(var(--primary-color-rgb), 0.5);
  color: var(--white-color); display: flex; justify-content: center; align-items: center; font-size: 2rem; opacity: 0; transition: opacity 0.3s ease;
}
.itinerary-image-wrapper:hover .image-overlay-zoom { opacity: 1; }

.itinerary-day-content p.scripture {
  font-style: italic; font-family: var(--heading-font); font-size: 1.1rem; color: var(--text-light);
  border-left: 3px solid var(--secondary-color); padding-left: 1.5em; margin: 1.5em 0;
}

/* ================================
   ALL-INCLUSIVE STRIP
   ================================ */
.all-inclusive-section { background-color: var(--tan-dark); border-top: 1px solid var(--border-color); padding: 60px 0; }
.all-inclusive-title { text-align: center; margin-bottom: 40px; font-size: 2rem; }
.all-inclusive-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; list-style: none; padding: 0; max-width: 1000px; margin: 0 auto; }
.all-inclusive-list li { display: flex; align-items: center; font-size: 1.1rem; color: var(--text-color); font-weight: 600; }
.all-inclusive-list li i { color: var(--secondary-color); font-size: 1.5rem; margin-right: 15px; width: 25px; text-align: center; }
.all-inclusive-footnote { text-align: center; margin-top: 40px; font-style: italic; color: var(--text-light); }

/* ================================
   SPECIAL NOTE CALLOUT
   ================================ */
.special-note-section { padding-top: 0; padding-bottom: 0; }
.special-note {
  display: flex; align-items: flex-start; gap: 20px; background-color: var(--tan-light);
  border-left: 4px solid var(--secondary-color); padding: 25px; margin: 0 auto;
  border-radius: 0 var(--border-radius) var(--border-radius) 0; max-width: 900px;
}
.special-note i { font-size: 1.8rem; color: var(--secondary-color); margin-top: 5px; }
.special-note h4 { margin-top: 0; margin-bottom: 8px; font-size: 1.2rem; color: var(--primary-color); }
.special-note p { font-size: 0.95rem; color: var(--text-color); line-height: 1.6; margin-bottom: 0; }

/* ================================
   GALLERY
   ================================ */
.location-gallery-section { margin-bottom: 70px; }
.location-section-header { text-align: center; margin-bottom: 40px; }
.location-title { font-size: clamp(1.8rem, 5vw, 2.5rem); padding-bottom: 10px; border-bottom: 2px solid var(--secondary-color); display: inline-block; }

.gallery-grid {
  display: grid; grid-auto-flow: dense; gap: 15px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); grid-auto-rows: 200px;
}
.gallery-item {
  display: block; position: relative; overflow: hidden; border-radius: var(--border-radius);
  box-shadow: var(--box-shadow); transition: all 0.4s ease;
}
.gallery-item.is-portrait { grid-row: span 2; }
.gallery-item:hover { box-shadow: var(--box-shadow-hover); transform: scale(1.03); z-index: 10; }

.gallery-item img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.gallery-item:hover img { transform: scale(1.1); }

.gallery-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 20px; text-align: left; color: var(--white-color);
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 70%); opacity: 0; transition: opacity 0.4s ease-in-out;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

.overlay-content { transform: translateY(15px); transition: transform 0.4s ease-in-out; }
.gallery-item:hover .overlay-content { transform: translateY(0); }
.overlay-title { font-family: var(--heading-font); font-size: 1.2rem; color: var(--white-color); font-weight: 700; line-height: 1.3; margin: 0 0 5px; text-shadow: 1px 1px 3px rgba(0,0,0,0.7); }
.overlay-prompt { font-size: 0.9rem; font-weight: 600; color: rgba(var(--secondary-color-rgb), 0.9); }
.overlay-prompt i { margin-right: 6px; }

/* ================================
   FOOTER
   ================================ */
#main-footer { background-color: #2c2c2e; color: #aeb1b8; padding: 60px 0 20px; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 40px; padding-bottom: 40px; }
.footer-logo-area { text-align: center; max-width: 500px; margin: 0 auto; }
.footer-building-img {
  max-width: 250px; width: 100%; height: auto; display: block; margin: 0 auto 20px;
  border-radius: var(--border-radius); border: 2px solid var(--border-color);
}
.footer-logo-img { max-width: 250px; margin-bottom: 25px; }
.footer-contact-info p { margin-bottom: 10px; display: flex; align-items: center; justify-content: center; line-height: 1.5; font-size: 1.1rem; font-weight: 600; }
.footer-contact-info i { color: var(--secondary-color); margin-right: 12px; width: 16px; text-align: center; }
.footer-contact-info a { color: #aeb1b8; transition: color 0.3s ease; }
.footer-contact-info a:hover { color: var(--white-color); }
.footer-socials { margin-top: 25px; }
.footer-socials a {
  display: inline-flex; justify-content: center; align-items: center; width: 38px; height: 38px;
  background-color: #48484a; color: var(--white-color); border-radius: 50%; margin-right: 10px;
  transition: background-color 0.3s ease, transform 0.3s ease; font-size: 1rem;
}
.footer-socials a:hover { background-color: var(--secondary-color); transform: translateY(-2px); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 25px; margin-top: 30px; text-align: center; font-size: 0.85rem; color: #8e8e93; }

/* ================================
   ANIMATIONS & UTILITIES
   ================================ */
.fade-in, .fade-in-up { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease-out, transform 0.7s ease-out; }
.fade-in.visible, .fade-in-up.visible { opacity: 1; transform: translateY(0); }

#scrollTopBtn {
  display: none; position: fixed; bottom: 20px; right: 20px; z-index: 999;
  border: none; outline: none; background-color: var(--primary-color); color: white;
  cursor: pointer; padding: 12px; border-radius: 50%; width: 45px; height: 45px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2); transition: background-color 0.3s, transform 0.3s;
  align-items: center; justify-content: center;
}
#scrollTopBtn:hover { background-color: #7A3C10; transform: translateY(-2px); }

/* ================================
   RESPONSIVE BREAKPOINTS
   ================================ */
@media (max-width: 992px) {
  /* Mobile nav overlay */
  .nav-menu {
    position: fixed; left: -100%; top: 0; width: 100%; height: 100vh; background-color: var(--white-color);
    transition: left 0.3s ease-in-out; z-index: 1001; display: flex; flex-direction: column; justify-content: center; padding-top: 0;
  }
  .nav-menu.active { left: 0; }
  .nav-cta-area { display: none; }
  .nav-item { margin: 18px 0; }
  .nav-link { font-size: 1.2rem; color: var(--dark-color); text-shadow: none; }
  .hamburger { display: block; }
  .hamburger.active .bar:nth-child(2) { opacity: 0; }
  .hamburger.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Layout tweaks */
  .footer-grid { grid-template-columns: 1fr; }
  .tour-showcase-apple-grid { grid-template-columns: 1fr; }
  .explore-features { grid-template-columns: repeat(2, 1fr); }

  /* Hero link layout */
  .hero-tour-links { display: flex; flex-direction: column; gap: 25px; }
  .hero-tour-links > a:nth-child(n) { text-align: center !important; }

  /* Itinerary vertical line off on small screens */
  .tour-layout-grid, .tour-layout-grid::before, #itinerary-progress-line { display: block; }
  .tour-layout-grid::before, #itinerary-progress-line { display: none; }
  .itinerary-nav { display: none; }
  .itinerary-day-content::before { display: none; }
  .itinerary-day-content { margin-bottom: 40px; padding-bottom: 40px; border-bottom: 1px solid #e0e0e0; }
}

@media (max-width: 768px) {
  .hero-title-link { font-size: clamp(1.5rem, 6vw, 1.8rem); }
  .testimonial-slide { padding: 20px; }
  .slider-controls { display: none; }

  /* === MOBILE HERO VIDEO: brighten (since overlay is faint) === */
  #heroVideo {
    filter: brightness(1.25) contrast(1.1) saturate(1.08);
    transition: filter 0.3s ease-in-out;
  }

  /* Brown bar: compact & space-efficient on phones */
  .tour-key-details-strip { padding: 6px 0; }
  .details-strip-content { gap: 10px; }
  .key-detail-item { gap: 10px; padding: 4px 6px; }
  .key-detail-item i { font-size: 1.3rem; }
  .key-detail-item strong { font-size: 0.72rem; }
  .key-detail-item span { font-size: 0.92rem; }
}

@media (max-width: 576px) {
  #typewriter-text { font-size: 1.2rem; }
  .explore-features { grid-template-columns: 1fr; }
}

@media (min-width: 993px) {
  .nav-logo img { transform: scale(1.2); }
  .nav-logo-tagline { font-size: 0.78rem; margin-top: 8px; }
}

/* Unified page-header typography (yellow hero title + white subtitle) */
.page-header .page-title{
  color: var(--secondary-color);
  font-size: clamp(2.25rem, 8vw + 1rem, 5.5rem);
  font-weight: 800; line-height: 1.1;
  text-shadow: 0 3px 8px rgba(0,0,0,0.7);
  margin-bottom: 0.5em;
}
.page-header .page-header-subtitle{
  color: var(--white-color);
  font-size: clamp(1.1rem, 3vw + 0.5rem, 1.6rem);
  max-width: 60ch; margin-left: auto; margin-right: auto;
  font-weight: 600; line-height: 1.5;
  text-shadow: 0 2px 5px rgba(0,0,0,0.8);
  opacity: 1;
}

/* ==========================================================
   VORTEX: UNIVERSAL LIGHTBOX (Tours + Gallery)
   ========================================================== */
.mcv3-lightbox { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center; }
.mcv3-lightbox.active { display: flex; }
.mcv3-lightbox-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.9); backdrop-filter: blur(4px); opacity: 1; }
.mcv3-lightbox-content { position: relative; z-index: 1; width: min(92vw, 1400px); height: min(92vh, 900px); display: flex; flex-direction: column; }
.mcv3-lightbox-image-container { flex: 1; display: flex; align-items: center; justify-content: center; }
.mcv3-lightbox-image-container img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--border-radius); box-shadow: var(--box-shadow-hover); }
.mcv3-lightbox-caption { text-align: center; margin-top: .75rem; color: var(--light-color); }
.mcv3-lightbox-title { color: var(--white-color); margin: 0 0 .25rem; font-size: clamp(1.1rem, 1.6vw, 1.5rem); }
.mcv3-lightbox-description { margin: 0; opacity: .9; font-size: .95rem; }
.mcv3-lightbox-close, .mcv3-lightbox-nav {
  position: absolute; z-index: 2; border: 0; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.15); color: #fff; cursor: pointer; display: grid; place-items: center; transition: .2s ease;
}
.mcv3-lightbox-close { top: 16px; right: 16px; }
.mcv3-lightbox-nav { top: 50%; transform: translateY(-50%); }
.mcv3-prev { left: 16px; } .mcv3-next { right: 16px; }
.mcv3-lightbox-close:hover, .mcv3-lightbox-nav:hover { background: rgba(255,255,255,.25); transform: translateY(-50%) scale(1.06); }
.mcv3-lightbox-close:hover { transform: scale(1.06); }
@media (max-width: 640px){ .mcv3-lightbox-description{ display:none; } }

/* ================================
   MOBILE-ONLY HERO TEXT OFFSETS
   (lifted titles; subtitles hidden)
   ================================ */
@media (max-width: 767.98px) {
  /* Jesus / Paul / Mary pages */
  .jesus_tour_php .page-header,
  .paul_tour_php  .page-header,
  .mary_tour_php  .page-header {
    --mobile-header-offset: calc(90px + env(safe-area-inset-top, 0px));
    padding-top: var(--mobile-header-offset);
    min-height: 55vh;
  }
  .jesus_tour_php .page-header .page-header-content,
  .paul_tour_php  .page-header .page-header-content,
  .mary_tour_php  .page-header .page-header-content { position: relative; top: 0; transform: none; }

  .jesus_tour_php .page-header .page-title,
  .paul_tour_php  .page-header .page-title,
  .mary_tour_php  .page-header .page-title {
    font-size: clamp(30px, 8.8vw, 42px);
    line-height: 1.15;
    margin-top: 0 !important;
    margin-bottom: .6rem;
  }
  .jesus_tour_php .page-header .page-header-subtitle,
  .paul_tour_php  .page-header .page-header-subtitle,
  .mary_tour_php  .page-header .page-header-subtitle {
    display: none !important;
  }

  /* Paul gets a touch more breathing room (he talks a lot) */
  .paul_tour_php .page-header {
    --mobile-header-offset: calc(102px + env(safe-area-inset-top, 0px));
  }

  /* Staff page mobile polish */
  .staff_php .page-header {
    --mobile-header-offset: calc(88px + env(safe-area-inset-top, 0px));
    min-height: 50vh; padding-top: var(--mobile-header-offset);
  }
  .staff_php .page-header .page-header-content { position: relative; top: 0; transform: none; }
  .staff_php .page-header .page-title {
    font-size: clamp(26px, 7.2vw, 34px); line-height: 1.15; margin-bottom: .25rem;
  }
  .staff_php .page-header .page-header-subtitle { display: none !important; }
}

/* Fun detail: add a cruise emoji to Paul links because… cruise. */
a[href$="paul_tour.php"]::after{
  content: " 🚢";
  margin-left: .35em;
}

/* Optional logo wrapper helpers (header/footer badges) */
.logo-wrapper { display: flex; flex-direction: column; align-items: center; }
.logo-tagline { font-size: 0.72rem; color: #4a4a4a; font-weight: 500; margin-top: 2px; text-align: center; line-height: 1.2; letter-spacing: 0.2px; }


/* ================================
   HERO VIDEO RESPONSIVE FIX
   ================================ */
.hero-video-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden; /* Prevents video bleed */
  z-index: 1;
}

/* Default video styling for all screens */
#heroVideo {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover; /* Ensures full coverage */
  transform: translate(-50%, -50%);
  background-color: #000; /* Prevents white bars during load */
}

/* Mobile adjustments — forces full-width scaling */
@media (max-width: 767.98px) {
  #heroVideo {
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
    transform: translate(-50%, -50%);
  }
}


/* Keep Lightbox images contained to the viewport (site-wide) */
.lightbox .lb-outerContainer,
.lightbox .lb-container {
  width: auto !important;
  height: auto !important;
}

.lightbox .lb-image {
  max-width: 92vw;   /* never wider than viewport */
  max-height: 88vh;  /* never taller than viewport */
  width: auto !important;
  height: auto !important;
  object-fit: contain; /* show full image without cropping */
}

/* Optional: add a little breathing room on very small screens */
@media (max-width: 480px) {
  .lightbox .lb-image {
    max-width: 94vw;
    max-height: 82vh;
  }
}

/* Fit Lightbox2 images to the viewport (and never exceed it) */
#lightbox .lb-outerContainer,
#lightbox .lb-container {
  width: auto !important;
  height: auto !important;
}

#lightbox img.lb-image {
  max-width: 90vw !important;   /* <= viewport width */
  max-height: 85vh !important;  /* <= viewport height */
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
}

/* Keep the caption block from forcing extra width */
#lightbox .lb-dataContainer { max-width: 90vw !important; }
/* GLightbox */
.glightbox-container .gslide-image img { 
  max-width: 90vw !important; max-height: 85vh !important; width:auto !important; height:auto !important; object-fit:contain !important;
}
/* lightGallery */
.lg-outer .lg-image {
  max-width: 90vw !important; max-height: 85vh !important; width:auto !important; height:auto !important; object-fit:contain !important;
}
/* PhotoSwipe (v4 theme) */
.pswp__img {
  max-width: 90vw !important; max-height: 85vh !important; width:auto !important; height:auto !important; object-fit:contain !important;
}
/* --- Fit MCV3 lightbox images to the viewport --- */
.mcv3-lightbox .mcv3-lightbox-content{
  max-width: 92vw;
  max-height: 90vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.mcv3-lightbox .mcv3-lightbox-image-container{
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(8px, 2vw, 16px);
}

.mcv3-lightbox .mcv3-lightbox-image-container img{
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;   /* never exceed the content box */
  max-height: 100% !important;  /* keep full image visible */
  object-fit: contain !important;
}

/* Keep captions from forcing extra height */
.mcv3-lightbox .mcv3-lightbox-caption{
  max-height: 18vh;
  overflow: auto;
}
/* --- MCV3 Lightbox: fit image to screen and keep caption visible --- */
.mcv3-lightbox .mcv3-lightbox-content{
  box-sizing: border-box;
  width: min(92vw, 1200px);
  max-height: 90vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;   /* reserve space for caption */
}

.mcv3-lightbox .mcv3-lightbox-image-container{
  flex: 1 1 auto;           /* image shrinks to leave room for caption */
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(8px, 2vw, 16px);
}

.mcv3-lightbox .mcv3-lightbox-image-container img{
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;   /* never wider than content box */
  max-height: 100% !important;  /* never taller than content box */
  object-fit: contain !important;
}

/* Make sure caption isn't absolutely positioned/hidden; allow scroll if long */
.mcv3-lightbox .mcv3-lightbox-caption{
  position: static !important;  /* override any absolute overlay */
  flex: 0 0 auto;
  max-height: 18vh;
  overflow: auto;
  padding: 10px 14px;
  -webkit-overflow-scrolling: touch;
}

/* Small screens: allow a little more caption height and slightly less image */
@media (max-width: 640px){
  .mcv3-lightbox .mcv3-lightbox-content{ max-height: 86vh; }
  .mcv3-lightbox .mcv3-lightbox-caption{ max-height: 24vh; }
}

/* If JS adds inline width/height, these keep our bounds in control */
.mcv3-lightbox .mcv3-lightbox-image-container img[style]{
  max-width: 100% !important;
  max-height: 100% !important;
}



/* Desktop hero video: cap height + cover fit */
@media (min-width: 992px){
  .video-hero{
    height: clamp(460px, 68vh, 820px); /* adjust the 68vh / 820px to taste */
    position: relative;
    overflow: hidden;
  }
  .video-hero .hero-video-wrapper{ position:absolute; inset:0; }
  .video-hero video{
    width:100%; height:100%;
    object-fit: cover;         /* fills box, slight crop */
    object-position: 50% 40%;  /* nudge focal point upward a bit */
  }
}



/* Prevent layout shift while testimonials change */
.testimonials-section .testimonial-slider { overflow: hidden; }
.testimonials-section .testimonial-slides { min-height: 320px; } /* fallback */
@media (max-width: 768px) {
  .testimonials-section .testimonial-slides { min-height: 460px; }
}


/* Full-bleed, responsive hero */
.hero { position: relative; overflow: hidden; }

/* Reserve a nice, responsive hero height:
   - never shorter than 55% of viewport
   - aim for 16:9 based on width
   - cap so it doesn't get ridiculously tall on ultra-wide screens */
.hero-media.hero-cover {
  width: 100%;
  height: clamp(55vh, 56.25vw, 90vh); /* 56.25vw ≈ 16:9 of viewport width */
  position: relative;
  overflow: hidden;
}

/* Make the video fill the box without black bars */
.hero-media.hero-cover > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;         /* key: fill & crop gracefully */
  object-position: center;   /* adjust below if your subject is off-center */
}

/* Optional: tweak focal point per viewport (keeps the subject visible) */
@media (max-width: 768px) {
  .hero-media.hero-cover > video { object-position: center 40%; } /* lift subject a bit on phones */
}

/* Keep your overlay/content above the video */
.hero-overlay,
.hero-content,
.hero .container { position: relative; z-index: 1; }




/* Center the titles on the pricing cards */
.pricing-card-title{
  text-align: center;
}
/* Force hero flags below tour titles */
.hero-title-link .hero-flags {
  display: block;
  text-align: center;
  margin-top: 4px;
}




/* --- Mobile-only offset for the three hero titles --- */
@media (max-width: 640px){
  /* move the whole titles row */
  .hero.video-hero .hero-content .hero-tour-links{
    margin-top:40px !important;        /* physical push; affects layout */
  }

  /* belt-and-suspenders: if a theme rule blocks margin, also shift visually */
  .hero.video-hero .hero-content .hero-tour-links{
    transform: translateY(40px);
    will-change: transform;
  }

  /* (Optional) if you prefer to target each link individually instead of the row: */
  .hero.video-hero .hero-content .hero-link--paul,
  .hero.video-hero .hero-content .hero-link--jesus,
  .hero.video-hero .hero-content .hero-link--mary{
    display: inline-block;
  }
}
