:root {
  /* Epoch Voyages brand */
  --brand: #150096;          /* primary */
  --brand-600: #0f006d;      /* darker hover/focus */
  --brand-400: #3b2ac0;      /* mid accent (links/lines) */
  --brand-100: #e9e6ff;      /* very light tint backgrounds */
  --text: #222;
  --bg: #fff;
}

/* Smooth scrolling + offset for sticky header anchors */
html {
  scroll-behavior: smooth;
}
:target {
  scroll-margin-top: 80px;
}

/* Global reset-ish */
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, "Times New Roman", Times, serif;
  line-height: 1.55;
}

/* Utility */
.nowrap {
  white-space: nowrap;
}

/* Global image sanity */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Links */
a {
  color: var(--brand);
  text-decoration: none;
}
a:hover {
  color: var(--brand-600);
  text-decoration: underline;
}

/* Container */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* =========================
   Header / Navigation
========================= */
.nav {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid var(--brand-100);
  z-index: 1000;
}
.nav__inner {
  display: flex;
  align-items: center;
  padding: 0.8rem 0;
  gap: 0.5rem;
}
.nav__spacer {
  margin-left: auto;
}

/* Logo: never scrunch */
.logo {
  flex: 0 0 auto;
}
.logo__img {
  height: 60px;
  width: auto !important;
  max-width: none;
  object-fit: contain;
  display: block;
}
@media (max-width: 600px) {
  .logo__img {
    height: 42px;
  }
}

/* Desktop main nav */
.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.main-nav a {
  padding: 0.25rem 0.1rem;
}
.main-nav .divider {
  color: var(--brand);
  opacity: 0.4;
  font-size: 0.95rem;
  user-select: none;
}

/* Make header nav button wider */
.main-nav .btn {
  padding: 0.6rem 1.25rem;   /* wider left/right space */
  font-size: 0.95rem;        /* slightly larger (optional) */
  flex-shrink: 0;            /* prevents it from squeezing */
  display: inline-block;
  margin-left: 0.5rem;       /* spacing from the divider */
}

/* Buttons */
.btn {
  background-color: var(--brand);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition:
    background-color 0.25s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.btn:hover,
.btn:focus {
  background-color: var(--brand);
  box-shadow: 0 2px 8px rgba(21, 0, 150, 0.28);
  color: #fff;
  transform: translateY(-1px);
}

/* =========================
   Mobile header / Hamburger
========================= */

/* Default: hidden on desktop */
.hamburger {
  display: none;
}
.mobile-menu {
  display: none;
}
.mobile-backdrop {
  display: none;
}

/* Make [hidden] truly hide */
[hidden],
.mobile-menu[hidden],
.mobile-backdrop[hidden] {
  display: none !important;
}

/* Mobile: hide desktop nav & show hamburger; hide FAB Inquiry */
@media (max-width: 700px) {
  .main-nav {
    display: none !important;
  }
  .main-nav .btn {
    display: none !important;
  }
  .fab-inquiry {
    display: none !important;
  }

  /* Inset logo + hamburger from edges */
  .nav__inner {
    padding: 0.8rem 1.1rem;
  }

  .hamburger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column; /* stack bars */
    gap: 6px;               /* spacing between bars */
    width: 42px;
    height: 42px;
    padding: 0;
    margin-left: 0.25rem;
    background: #fff;
    border: 1px solid var(--brand-100);
    border-radius: 8px;
    cursor: pointer;
  }

  .hamburger__bar {
    width: 22px;
    height: 3px;
    background: var(--brand);
    border-radius: 2px;
    transition:
      transform 0.2s ease,
      opacity 0.2s ease;
  }

  /* X animation */
  .hamburger.is-open .hamburger__bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .hamburger.is-open .hamburger__bar:nth-child(2) {
    opacity: 0;
  }
  .hamburger.is-open .hamburger__bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  /* Backdrop under the menu (click to close) */
  .mobile-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    z-index: 998;
  }

  /* Slide-down mobile menu panel (fixed so it works while scrolled) */
  .mobile-menu {
    position: fixed;
    left: 0;
    right: 0;
    top: 60px; /* JS can adjust if needed */
    background: #fff;
    border-bottom: 1px solid #eee;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    display: grid;
    gap: 0;
    z-index: 999;
    padding: 0.25rem 0;
    animation: menuSlide 0.18s ease-out;
  }

  .mobile-menu a {
    display: block;
    padding: 0.9rem 1.25rem;
    color: var(--text);
    text-decoration: none;
    border-top: 1px solid #f2f2f6;
  }

  .mobile-menu a:first-child {
    border-top: none;
  }

  @keyframes menuSlide {
    from {
      opacity: 0;
      transform: translateY(-6px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* =========================
   Hero (homepage) + Subhero (destinations)
========================= */
.hero {
  position: relative;
  min-height: clamp(420px, 68vh, 820px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero__bg picture,
.hero__img {
  width: 100%;
  height: 100%;
  display: block;
}
.hero__img {
  object-fit: cover;
  filter: brightness(0.55);
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2em;
  padding: 1rem;
}
.hero__content h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.1;
  font-weight: 500;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  color: #fff;
}

/* Ensure hero title is always visible on home */
.home-page .hero .hero__content h1,
.home-page .hero .hero__content h2 {
  color: #fff !important;
  opacity: 1 !important;
  transform: none !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}
.home-page .hero.section h2 {
  color: #fff !important;
}

/* Destination banner */
.subhero {
  position: relative;
  min-height: 45vh;
  display: grid;
  place-items: center;
  color: #fff;
  text-align: center;
  z-index: 1;
}
.subhero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.55);
}
.subhero__content {
  position: relative;
  padding: 1rem;
  z-index: 2;
}
.subhero h1 {
  font-size: clamp(1.9rem, 4.8vw, 3rem);
  line-height: 1.15;
  margin: 0;
}

/* Hero headline double-line layout */
.hero-title {
  margin: 0;
  line-height: 1.1;
  font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}
.hero-title .line1,
.hero-title .line2 {
  display: block;
}
.hero-title .line2 {
  margin-top: 0.5em;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-title .line1 {
    animation: fadeInUp 1s ease forwards 0.2s;
    opacity: 0;
    transform: translateY(15px);
  }
  .hero-title .line2 {
    animation: fadeInUp 1s ease forwards 0.8s;
    opacity: 0;
    transform: translateY(15px);
  }
}

/* =========================
   Sections & Spacing
========================= */
.section {
  padding: 2.75rem 0;
}
.section--alt {
  background: var(--brand-100);
  padding: 2.5rem 0;
}
@media (max-width: 768px) {
  .section {
    padding: 2.25rem 0;
  }
  .section--alt {
    padding: 2.25rem 0;
  }
}
.section h2 {
  color: var(--brand);
}
.lead {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  text-align: center;
}

/* Home page title harmony */
.home-page .section h2 {
  font-size: clamp(1.7rem, 2.6vw, 2rem);
  line-height: 1.2;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: var(--brand);
}
.home-page #about .about__text h3 {
  font-size: clamp(1.7rem, 2.6vw, 2rem);
  line-height: 1.2;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: var(--brand);
}

/* Home page slightly tighter rhythm */
.home-page .section {
  padding: 2.25rem 0;
}
@media (max-width: 768px) {
  .home-page .section {
    padding: 1.75rem 0;
  }
}
.home-page .section + .section {
  margin-top: -0.5rem;
}

/* Ultra-tighten only the TOP of About on home */
.home-page #about.section {
  padding-top: 0.75rem;
  padding-bottom: 2.25rem;
}
.home-page .section--alt + #about.section {
  margin-top: -0.75rem;
}

/* =========================
   Chips / CTAs
========================= */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 1rem 0 0;
}
.chip {
  background: #fff;
  border: 1px solid var(--brand-100);
  color: #333;
  padding: 0.4rem 0.6rem;
  border-radius: 999px;
  font-size: 0.9rem;
}
.cta-bar {
  text-align: center;
  margin-top: 1.25rem;
}

/* =========================
   Cards / Grids (homepage)
========================= */
.grid {
  display: grid;
  gap: 26px;
}

.grid--cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
  padding: 8px;
}
.card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.card:hover img {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.45),
    rgba(0, 0, 0, 0)
  );
  pointer-events: none;
}
.card__title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  text-align: center;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  z-index: 2;
  padding: 0 0.5rem;
}
@media (max-width: 900px) {
  .grid--cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    padding: 6px;
  }
}
@media (max-width: 600px) {
  .grid--cards {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 4px;
  }
}

/* =========================
   About split layout
========================= */
.about__profile {
  display: grid;
  grid-template-columns: 0.5fr 2.5fr;
  gap: 2.5rem;
  align-items: center;
  margin-top: 2rem;
}
.about__photo img {
  width: auto;
  max-width: 140px;
  height: auto;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  display: block;
  margin: 0 auto;
  border: 4px solid rgba(21, 0, 150, 0.75);
}
.about__text {
  width: 100%;
  padding-right: 1rem;
}
.about__text h3 {
  font-size: 1.9rem;
  color: var(--brand);
  margin-bottom: 1.2rem;
  font-weight: 600;
}
.about__text p {
  margin-bottom: 1.25rem;
  line-height: 1.7;
  font-size: 1.05rem;
  color: #333;
}
@media (max-width: 900px) {
  .about__profile {
    grid-template-columns: 0.95fr 2.05fr;
    gap: 2rem;
  }
}
@media (max-width: 768px) {
  .about__profile {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    text-align: center;
  }
  .about__photo img {
    max-width: 180px;
    margin: 0 auto 1rem;
  }
  .about__text {
    text-align: center;
    padding-right: 0;
    max-width: 36rem;
    margin: 0 auto;
  }
}
@media (max-width: 480px) {
  .about__photo img {
    max-width: 150px;
    margin: 0 auto 1rem;
  }
}

/* =========================
   Contact section
========================= */
.contact__inner {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.contact__intro {
  margin: 0 auto 1.5rem;
  max-width: 36ch;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1rem;
  line-height: 1.6;
}
/* Let the sentence fit on one line on wider screens */
@media (min-width: 900px) {
  .contact__intro {
    max-width: 48ch;
  }
}
.contact__cta .btn {
  padding: 0.6rem 1.4rem;
}

/* =========================
   Itinerary cards (destination pages)
========================= */
.itinerary {
  display: grid;
  gap: 22px;
}
.day {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 1rem 1.1rem 1.15rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.day h3 {
  margin: 0.55rem 0 0.35rem;
  color: var(--brand);
  font-size: 1.15rem;
}
.meta {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}
.hotel {
  font-weight: 600;
}
.callout {
  background: #faf9ff;
  border: 1px solid var(--brand-100);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  color: #333;
  margin-top: 0.5rem;
}

/* Base media block */
.day-media {
  margin: 0 0 0.35rem;
}
.day-media img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

/* Desktop / tablet: larger images with fixed ratio */
@media (min-width: 768px) {
  .day {
    display: grid;
    grid-template-columns: 320px 1fr; /* wider image column */
    gap: 1.25rem;
    align-items: flex-start;
  }
  .day-media {
    margin: 0;
  }
  .day-media img {
    aspect-ratio: 4 / 3;
  }
  .day-media img:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  }
}

/* Mobile: all images same size, full card width */
@media (max-width: 767.98px) {
  .day {
    display: block;
  }
  .day-media {
    margin: 0 0 0.5rem;
  }
  .day-media img {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 4 / 3 !important; /* force uniform size across pages */
    height: auto;
    object-fit: cover;
  }
}

/* =========================
   Footer
========================= */
.footer {
  text-align: center;
  padding: 2rem 1rem;
  background-color: #fff;
  color: var(--brand);
  border-top: 1px solid #e6e6e6;
}
.footer a {
  color: var(--brand);
  text-decoration: none;
}
.footer a:hover {
  text-decoration: underline;
}

/* =========================
   Reveal-on-scroll animations
   (sections: disabled; hero still uses fadeInUp)
========================= */

/* Keep this – hero title uses it */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Make all .reveal content always visible, no animation */
.reveal,
.reveal.is-visible {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
  transition: none !important;
}

/* Still respect reduced-motion, but it's basically a no-op now */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.is-visible {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}

/* You can delete this mobile-only block if it still exists:
@media (max-width: 700px) {
  .reveal,
  .reveal.is-visible {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}
*/


/* Focus styles */
:focus-visible {
  outline: 3px solid var(--brand-400);
  outline-offset: 2px;
}

/* Anchor offsets for sticky header */
#philosophy,
#destinations,
#about,
#contact {
  scroll-margin-top: 90px;
}

/* =========================
   Philosophy line (hero subheading)
========================= */
.philosophy-line {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  line-height: 1.5;
  font-weight: 400;
  color: var(--brand);
  text-align: center;
  max-width: 820px;
  margin: 1.25rem auto 0;
  letter-spacing: 0.2px;
  padding: 0 1rem;
}
.philosophy-line .brand {
  font-weight: 600;
  color: var(--brand);
}
/* When combined with .lead */
.lead.philosophy-line {
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
}

/* Responsive line-break helpers for hero text */
.hide-mobile {
  display: inline;
}
.show-mobile {
  display: none;
}
@media (max-width: 700px) {
  .philosophy-line {
    font-size: 1.15rem;
    line-height: 1.55;
    padding: 0 1.25rem;
  }
  .hide-mobile {
    display: none;
  }
  .show-mobile {
    display: inline;
  }
}
