/* =============================================
   Coastal Boat Tours — Main Stylesheet
   Pender Harbour, BC
   =============================================

   Table of Contents:
   01. Fonts & Custom Properties
   02. Reset & Base
   03. Typography
   04. Layout Utilities
   05. Navigation
   06. Buttons
   07. Home Hero
   08. Intro Section
   09. Tour Preview Cards
   10. Testimonials
   11. Page Hero (inner pages)
   12. Tours Detail Page
   13. About Page
   14. Booking Page
   15. Contact & Map
   16. Footer
   17. Wave Dividers
   18. Scroll Animations & Transitions
   19. Responsive Breakpoints
   ============================================= */


/* ── 01. Fonts & Custom Properties ─────────── */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800;1,9..40,300;1,9..40,400;1,9..40,700&display=swap');

:root {
  /* ─ Brand Primaries ─ */
  --color-brand-green:  #217458;
  --color-brand-yellow: #F5CD21;

  /* ─ Colour Palette ─ */
  --color-deep:       #0d1a10;   /* very dark — footer, dark overlays */
  --color-navy:       #1b2d1f;   /* dark forest neutral — headings, cards */
  --color-ocean:      #1d5c3e;   /* mid green — supporting accents */
  --color-teal:       #217458;   /* brand green — primary accent, CTA */
  --color-sky:        #F5CD21;   /* brand yellow — italic hero highlight, stars (sparingly) */
  --color-foam:       #e8f4ee;   /* light green — icon backgrounds, tints */
  --color-white:      #fafcfd;   /* crisp white */
  --color-cream:      #f4efe5;   /* warm cream — alternate section bg */
  --color-sand:       #c8b49a;   /* sand — footer overlines, decorative */
  --color-driftwood:  #8b7055;   /* driftwood — muted warm tone */
  --color-text:       #1e2b20;   /* primary body text */
  --color-text-muted: #516058;   /* secondary / descriptive text */

  /* ─ Original ocean palette — swap back in to restore blue scheme ──────
  --color-deep:       #091c2a;
  --color-navy:       #112638;
  --color-ocean:      #1b4a6b;
  --color-teal:       #2a8fa3;
  --color-sky:        #7bbfd4;
  --color-foam:       #dff0f5;
  --color-text:       #1a2a35;
  --color-text-muted: #5a7282;
  ──────────────────────────────────────────────────────────────────────── */

  /* ─ Typography ─ */
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans:  'DM Sans', system-ui, -apple-system, sans-serif;

  /* ─ Spacing ─ */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  3.5rem;
  --space-xl:  6rem;
  --space-xxl: 9rem;

  /* ─ Dimensions ─ */
  --nav-height:    72px;
  --max-width:     1180px;
  --max-width-sm:  740px;

  /* ─ Shape ─ */
  --radius:    10px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  /* ─ Motion ─ */
  --ease-out:  cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in:   cubic-bezier(0.64, 0, 0.78, 0);
  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* ─ Shadows ─ */
  --shadow-sm:   0 2px 12px rgba(13, 26, 16, 0.08);
  --shadow-md:   0 8px 32px rgba(13, 26, 16, 0.14);
  --shadow-lg:   0 20px 60px rgba(13, 26, 16, 0.22);
  --shadow-card: 0 4px 24px rgba(13, 26, 16, 0.10);
}


/* ── 02. Reset & Base ───────────────────────── */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Page fade-in transition — controlled by JS adding .page-loaded */
body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background-color: var(--color-white);
  line-height: 1.7;
  overflow-x: hidden;
  opacity: 0;
  transition: opacity 0.4s ease;
}

body.page-loaded { opacity: 1; }

img { display: block; max-width: 100%; height: auto; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

/* Accessible focus ring */
:focus-visible {
  outline: 2px solid var(--color-teal);
  outline-offset: 3px;
  border-radius: 3px;
}


/* ── 03. Typography ─────────────────────────── */

h1, h2, h3, h4, h5 {
  font-family: var(--font-sans);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-navy);
}

h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.85rem); }
h4 { font-size: 1.15rem; }

p {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* Overline label — used above section headings */
.overline {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: 0.85rem;
}

.overline--light { color: var(--color-sand); }


/* ── 04. Layout Utilities ───────────────────── */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container--sm {
  max-width: var(--max-width-sm);
}

.section {
  padding: var(--space-xl) 0;
}

.section--cream { background-color: var(--color-cream); }
.section--navy  { background-color: var(--color-navy);  color: var(--color-white); }
.section--deep  { background-color: var(--color-deep);  color: var(--color-white); }

.section__header {
  margin-bottom: var(--space-lg);
}

.section__header h2 {
  margin-bottom: 0.75rem;
}

.section__header p {
  max-width: none;
}

/* Two- and three-column grids */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

/* White text overrides for dark backgrounds */
.section--navy .section__header h2,
.section--deep .section__header h2 {
  color: var(--color-white);
}

.section--navy .section__header p,
.section--deep .section__header p {
  color: rgba(255, 255, 255, 0.65);
}


/* ── 05. Navigation ─────────────────────────── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  /* Default: solid for inner pages */
  background-color: rgba(13, 26, 16, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background-color var(--transition), box-shadow var(--transition);
}

/* On the home page (body.has-hero), nav starts transparent */
body.has-hero .nav {
  background-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.has-hero .nav--scrolled {
  background-color: rgba(13, 26, 16, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 28px rgba(0, 0, 0, 0.22);
}

/* White "Book Now" pill while nav is transparent over the hero */
body.has-hero .nav__links .btn--nav {
  background-color: var(--color-white);
  color: var(--color-deep);
}

body.has-hero .nav__links .btn--nav:hover {
  background-color: rgba(255, 255, 255, 0.85);
  color: var(--color-deep);
  transform: translateY(-1px);
}

/* Revert to teal once the nav has scrolled to solid */
body.has-hero .nav--scrolled .nav__links .btn--nav {
  background-color: var(--color-teal);
  color: var(--color-white);
}

body.has-hero .nav--scrolled .nav__links .btn--nav:hover {
  background-color: #185c40;
  color: var(--color-white);
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Logo image */
.nav__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav__logo-img {
  height: 46px;
  width: auto;
  display: block;
}

/* Desktop nav links */
.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__links a {
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.78);
  position: relative;
  padding-bottom: 2px;
  transition: color var(--transition);
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-sand);
  transition: width var(--transition);
}

.nav__links a:hover         { color: var(--color-white); }
.nav__links a:hover::after  { width: 100%; }
.nav__links a.active        { color: var(--color-white); }
.nav__links a.active::after { width: 100%; }

/* Book Now nav button */
.nav__links .btn--nav {
  background-color: var(--color-teal);
  color: var(--color-white);
  padding: 0.55rem 1.3rem;
  border-radius: 100px;
  font-size: 0.84rem;
  font-weight: 500;
  transition: background-color var(--transition), transform var(--transition);
}

.nav__links .btn--nav::after { display: none; }

.nav__links .btn--nav:hover {
  background-color: #185c40;
  transform: translateY(-1px);
  color: var(--color-white);
}

/* Hamburger button — desktop hidden */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  padding: 6px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.nav__toggle:hover { background: rgba(255, 255, 255, 0.08); }

.nav__toggle span {
  display: block;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.25s ease, width 0.3s ease;
  transform-origin: center;
}

.nav__toggle span:nth-child(1) { width: 24px; }
.nav__toggle span:nth-child(2) { width: 17px; }
.nav__toggle span:nth-child(3) { width: 24px; }

/* Animated X when open */
.nav__toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); width: 24px; }
.nav__toggle.active span:nth-child(2) { opacity: 0; width: 0; }
.nav__toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); width: 24px; }

/* Mobile overlay */
.nav__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav__overlay.visible {
  opacity: 1;
  pointer-events: auto;
}


/* ── 06. Buttons ─────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.88rem 2rem;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition), border-color var(--transition), color var(--transition);
  white-space: nowrap;
}

.btn:hover  { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); box-shadow: none; }

.btn--lg { padding: 1.05rem 2.6rem; font-size: 0.95rem; }

.btn--primary {
  background-color: var(--color-teal);
  color: var(--color-white);
}
.btn--primary:hover { background-color: #185c40; }

.btn--white {
  background-color: var(--color-white);
  color: var(--color-navy);
}
.btn--white:hover { background-color: #f0f5f1; }

/* Yellow CTA — use sparingly, hero primary action only */
.btn--yellow {
  background-color: var(--color-sky);
  color: var(--color-deep);
  font-weight: 600;
}
.btn--yellow:hover { background-color: #d4af1c; }

.btn--outline {
  background: transparent;
  border: 1.5px solid var(--color-navy);
  color: var(--color-navy);
}
.btn--outline:hover {
  background-color: var(--color-navy);
  color: var(--color-white);
}

.btn--outline-white {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  color: var(--color-white);
}
.btn--outline-white:hover {
  border-color: var(--color-white);
  background: rgba(255, 255, 255, 0.1);
}

/* Arrow icon inside buttons */
.btn .arrow {
  display: inline-block;
  transition: transform var(--transition);
}
.btn:hover .arrow { transform: translateX(4px); }


/* ── 07. Home Hero ─────────────────────────── */

.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  color: var(--color-white);
}

/* Crossfade video container */
.hero__video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Both video layers: stacked, absolutely positioned */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 1.5s ease;
}

/* Static poster — hidden on desktop, shown on mobile */
.hero__video-poster {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Dark gradient overlay — keeps headline readable */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    165deg,
    rgba(13, 26, 16, 0.40) 0%,
    rgba(13, 26, 16, 0.55) 50%,
    rgba(13, 26, 16, 0.78) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 var(--space-md);
}

/* Animated entry for hero elements (play after page-loaded fade-in) */
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.6rem;
  opacity: 0;
  animation: heroFadeUp 0.9s var(--ease-out) 0.5s forwards;
}

.hero__eyebrow::before,
.hero__eyebrow::after {
  content: '';
  display: inline-block;
  width: 36px;
  height: 1px;
  background: rgba(255, 255, 255, 0.7);
  opacity: 1;
}

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  color: var(--color-white);
  margin-bottom: 1.6rem;
  line-height: 1.08;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.28);
  opacity: 0;
  animation: heroFadeUp 0.9s var(--ease-out) 0.68s forwards;
}

.hero h1 em {
  font-style: italic;
  color: var(--color-sky);
}

.hero__sub {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2.8rem;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  opacity: 0;
  animation: heroFadeUp 0.9s var(--ease-out) 0.84s forwards;
}

.hero__cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: heroFadeUp 0.9s var(--ease-out) 1s forwards;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0;
  animation: heroFadeUp 0.9s var(--ease-out) 1.2s forwards;
}

.hero__scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
  animation: scrollPulse 2.2s infinite;
}

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

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 0.9; transform: scaleY(0.75); }
}


/* ── 08. Intro Section ──────────────────────── */

.intro {
  padding: var(--space-xl) 0;
}

.intro__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.intro__text .overline { margin-bottom: 1rem; }
.intro__text h2 { margin-bottom: 1.5rem; }
.intro__text p  { margin-bottom: 1.1rem; }
.intro__text p:last-of-type { margin-bottom: 2rem; }

.intro__image-wrap {
  position: relative;
}

.intro__image {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* Floating badge stat */
.intro__badge {
  position: absolute;
  bottom: -1.8rem;
  left: -1.8rem;
  background: var(--color-cream);
  border-radius: var(--radius);
  padding: 1.3rem 1.6rem;
  box-shadow: var(--shadow-md);
  max-width: 190px;
}

.intro__badge-number {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  color: var(--color-navy);
  line-height: 1;
  font-weight: 700;
}

.intro__badge-text {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.45;
  margin-top: 0.3rem;
}


/* ── 09. Tour Preview Cards ─────────────────── */

.tours-preview {
  padding: var(--space-xl) 0;
}

.tour-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.tour-cards--single {
  grid-template-columns: 1fr;
}

.tour-cards--single .tour-card {
  flex-direction: row;
}

.tour-cards--single .tour-card__image-wrap {
  width: 48%;
  flex-shrink: 0;
  aspect-ratio: auto;
}

.tour-cards--single .tour-card__body {
  flex: 1;
  padding: 2.5rem 2.5rem;
}

@media (max-width: 768px) {
  .tour-cards--single .tour-card { flex-direction: column; }
  .tour-cards--single .tour-card__image-wrap { width: 100%; order: 0; aspect-ratio: 16/9; }
}

.tour-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}

.tour-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-lg);
}

.tour-card__image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  flex-shrink: 0;
}

.tour-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s ease;
}

.tour-card:hover .tour-card__image { transform: scale(1.06); }

.tour-card__tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(13, 26, 16, 0.75);
  backdrop-filter: blur(8px);
  color: var(--color-sand);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.32rem 0.85rem;
  border-radius: 100px;
}

.tour-card__body {
  padding: 1.8rem 2rem 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Small meta row — duration, group size */
.tour-card__meta {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 0.9rem;
  flex-wrap: wrap;
}

.tour-card__meta-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.tour-card__meta-item svg { color: var(--color-teal); flex-shrink: 0; }

.tour-card__body h3 {
  color: var(--color-navy);
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
}

.tour-card__body p {
  flex: 1;
  margin-bottom: 1.8rem;
  font-size: 0.97rem;
}

.tour-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(13, 26, 16, 0.08);
  margin-top: auto;
}

.tour-card__price {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: var(--color-navy);
  font-weight: 600;
  line-height: 1;
}

.tour-card__price span {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 400;
  margin-top: 3px;
}


/* ── 10. Testimonials ───────────────────────── */

.testimonials {
  padding: var(--space-xl) 0;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: var(--space-lg);
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2rem;
  transition: background-color var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}

.testimonial-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

.testimonial-card__stars {
  font-size: 0.85rem;
  color: var(--color-sky);   /* brand yellow — one of the few deliberate uses */
  letter-spacing: 3px;
  margin-bottom: 1.2rem;
}

.testimonial-card__quote {
  font-family: var(--font-serif);
  font-size: 4.5rem;
  line-height: 0.8;
  color: var(--color-teal);
  opacity: 0.5;
  display: block;
  margin-bottom: 1rem;
  font-style: italic;
}

.testimonial-card__text {
  font-family: var(--font-serif);
  font-size: 1.02rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.72;
  margin-bottom: 1.8rem;
  flex: 1;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: auto;
}

.testimonial-card__avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}

.testimonial-card__name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-white);
}

.testimonial-card__location {
  font-size: 0.78rem;
  color: var(--color-sand);
  margin-top: 1px;
}


/* ── 11. Page Hero (inner pages) ────────────── */

.page-hero {
  height: 52vh;
  min-height: 400px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding-bottom: var(--space-lg);
  padding-top: var(--nav-height);
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  z-index: 0;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13, 26, 16, 0.35) 0%,
    rgba(13, 26, 16, 0.85) 100%
  );
  z-index: 1;
}

.page-hero > .container {
  width: 100%;
}

.page-hero__content {
  position: relative;
  z-index: 2;
  color: var(--color-white);
}

.page-hero__content .overline  { color: var(--color-sand); margin-bottom: 0.5rem; }
.page-hero__content h1         { color: var(--color-white); line-height: 1.1; }
.page-hero__content p          {
  color: rgba(255, 255, 255, 0.78);
  margin-top: 0.85rem;
  font-size: 1.1rem;
}


/* ── 12. Tours Detail Page ──────────────────── */

.tours-detail { padding: var(--space-xl) 0; }

/* Alternating image/text layout for each tour */
.tour-detail-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-lg);
  align-items: start;
  padding: var(--space-lg) 0;
  border-bottom: 1px solid rgba(13, 26, 16, 0.1);
}

.tour-detail-card:last-child { border-bottom: none; }

/* Flip even cards */
.tour-detail-card:nth-child(even) { grid-template-columns: 0.9fr 1.1fr; }
.tour-detail-card:nth-child(even) .tour-detail__image-wrap { order: 2; }
.tour-detail-card:nth-child(even) .tour-detail__content    { order: 1; }

.tour-detail__image-wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Each image gets its own frame for independent border-radius + hover clip */
.tour-detail__image-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.tour-detail__image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease;
}

.tour-detail__image-frame:hover .tour-detail__image { transform: scale(1.04); }

.tour-detail__content { padding: 0.5rem 0; }
.tour-detail__content .overline { margin-bottom: 0.5rem; }
.tour-detail__content h2 { margin-bottom: 1.1rem; }
.tour-detail__content > p { margin-bottom: 1.6rem; }

/* What's included list */
.tour-highlights { margin-bottom: 2rem; }

.tour-highlights__label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.tour-highlights__list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.tour-highlights__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.tour-highlights__list li::before {
  content: '—';
  color: var(--color-teal);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0px;
}

/* Tour info grid (duration, group, price, season) */
.tour-detail__meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 1.6rem;
  background: var(--color-cream);
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

.tour-meta-item__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}

.tour-meta-item__value {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--color-navy);
  font-weight: 500;
}


/* ── 13. About Page ─────────────────────────── */

.skipper-section { padding: var(--space-xl) 0; }

.skipper__image {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.skipper__content h2 { margin-bottom: 1.5rem; }
.skipper__content p  { margin-bottom: 1.2rem; }

.skipper__signature {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-style: italic;
  color: var(--color-navy);
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(13, 26, 16, 0.12);
}

.skipper__signature span {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-style: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-top: 0.25rem;
}

/* Harbour features grid */
.harbour-section { padding: var(--space-xl) 0; }

.harbour-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: var(--space-lg);
}

.harbour-feature {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}

.harbour-feature__icon {
  width: 50px;
  height: 50px;
  background: var(--color-teal);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-white);
}

.harbour-feature__text h4 {
  font-size: 1.1rem;
  color: var(--color-navy);
  margin-bottom: 0.35rem;
}

.harbour-feature__text p {
  font-size: 0.92rem;
}

/* What to expect — numbered steps */
.expect-section { padding: var(--space-xl) 0; }

.expect-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.expect-step {
  padding: 2rem 0;
}

.expect-step__number {
  font-family: var(--font-serif);
  font-size: 4rem;
  line-height: 1;
  color: var(--color-teal);
  opacity: 0.35;
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: block;
}

.expect-step h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.expect-step p { font-size: 0.95rem; }

/* About CTA banner */
.about-cta {
  padding: var(--space-xl) 0;
  text-align: center;
}

.about-cta h2 { color: var(--color-white); margin-bottom: 1rem; }
.about-cta p  {
  color: rgba(255, 255, 255, 0.7);
  max-width: 480px;
  margin: 0 auto 2.5rem;
}


/* ── 14. Booking Page ───────────────────────── */

.booking-section { padding: var(--space-xl) 0; }

.booking-intro {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-lg);
  align-items: center;
}

.booking-intro h2 { margin-bottom: 1rem; }

@media (max-width: 768px) {
  .booking-intro { grid-template-columns: 1fr; }
}

/* Calendly embed container */
#calendly-embed {
  min-height: 680px;
  background: var(--color-cream);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--color-sand);
  padding: 3rem 2rem;
  text-align: center;
  color: var(--color-text-muted);
  overflow: hidden;
}

/* Placeholder shown before Calendly script is dropped in */
.embed-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  max-width: 400px;
}

.embed-placeholder svg    { color: var(--color-sand); }
.embed-placeholder h3     { font-size: 1.4rem; }
.embed-placeholder p      { font-size: 0.9rem; }
.embed-placeholder .label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--color-sand);
  color: var(--color-white);
  padding: 0.35rem 1rem;
  border-radius: 100px;
}

/* Contact strip */
.contact-strip {
  padding: var(--space-lg) 0;
}

.contact-strip__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
}

.contact-item__icon {
  width: 54px;
  height: 54px;
  background: var(--color-teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  margin-bottom: 0.3rem;
}

.contact-item__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.contact-item__value {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--color-navy);
  text-align: left;
}

.contact-item__value a {
  color: var(--color-ocean);
  transition: color var(--transition);
}
.contact-item__value a:hover { color: var(--color-teal); }

/* Map */
/* ── Getting Here ───────────────────────────── */

.getting-here__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.getting-here__card {
  background: var(--color-foam);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
}

.getting-here__card-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(33, 116, 88, 0.12);
  color: var(--color-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.getting-here__card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--color-navy);
}

.getting-here__card p {
  font-size: 0.97rem;
  line-height: 1.75;
  margin-bottom: 0.75rem;
}

.getting-here__card p:last-of-type {
  margin-bottom: 0;
}

.getting-here__address {
  font-style: normal;
  margin: 1.1rem 0 0.9rem;
}

.getting-here__address a {
  font-size: 0.97rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  text-decoration: none;
  border-bottom: 1px solid rgba(33, 116, 88, 0.3);
  transition: color var(--transition), border-color var(--transition);
}

.getting-here__address a:hover {
  color: var(--color-teal);
  border-color: var(--color-teal);
}

.getting-here__link {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-teal);
  text-decoration: none;
  margin-top: 0.25rem;
  transition: color var(--transition);
}

.getting-here__link:hover { color: var(--color-ocean); }

.getting-here__photo {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.getting-here__photo img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .getting-here__grid { grid-template-columns: 1fr; }
}


/* ── Map ────────────────────────────────────── */

.map-section { padding: 0 0 var(--space-xl); }
.map-section h2 { text-align: center; margin-bottom: var(--space-md); }

.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.map-wrap iframe { display: block; width: 100%; }


/* ── 15. Footer ─────────────────────────────── */

.footer {
  background: var(--color-deep);
  color: var(--color-white);
  padding: var(--space-lg) 0 var(--space-md);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: var(--space-md);
}

.footer__logo-img {
  height: 56px;
  width: auto;
  display: block;
  margin-bottom: 0.75rem;
}

.footer__brand-tag {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-sand);
  margin-bottom: 1.2rem;
}

.footer__brand p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  max-width: 280px;
  line-height: 1.75;
}

.footer__col h5 {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-sand);
  margin-bottom: 1.2rem;
}

.footer__col ul { display: flex; flex-direction: column; gap: 0.65rem; }
.footer__col ul a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.58);
  transition: color var(--transition);
}
.footer__col ul a:hover { color: var(--color-white); }

.footer__col address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer__col address p,
.footer__col address a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.58);
  transition: color var(--transition);
}
.footer__col address a:hover { color: var(--color-white); }
.footer__phones { display: none; }
.contact-item--phone { display: none; }
.page-hero__bg--about { object-position: center 25%; }
@media (min-width: 1025px) {
  .page-hero__bg--about { object-position: center 75%; }
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer__bottom p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.38);
  margin: 0;
}

.footer__bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer__bottom-links a {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.38);
  transition: color var(--transition);
}
.footer__bottom-links a:hover { color: rgba(255, 255, 255, 0.7); }


/* ── 16. Wave Dividers ──────────────────────── */

.wave { line-height: 0; overflow: hidden; display: block; margin-bottom: -1px; }
.wave svg { display: block; width: 100%; }


/* ── 17. Scroll Animations & Transitions ────── */

/* Elements start hidden and slide into view */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-44px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-right {
  opacity: 0;
  transform: translateX(44px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.93);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.visible,
.reveal-left.visible,
.reveal-right.visible,
.reveal-scale.visible {
  opacity: 1;
  transform: none;
}

/* Stagger delays */
.delay-1 { transition-delay: 0.10s; }
.delay-2 { transition-delay: 0.20s; }
.delay-3 { transition-delay: 0.30s; }
.delay-4 { transition-delay: 0.40s; }
.delay-5 { transition-delay: 0.50s; }
.delay-6 { transition-delay: 0.62s; }

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero__eyebrow, .hero h1, .hero__sub, .hero__cta, .hero__scroll {
    opacity: 1;
    animation: none;
  }

  .hero__scroll-line { animation: none; }
}


/* ── 18. Responsive Breakpoints ─────────────── */

@media (max-width: 1024px) {

  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer__brand { grid-column: 1 / -1; }

  .testimonial-grid { grid-template-columns: 1fr 1fr; }
  .testimonial-grid .testimonial-card:last-child { grid-column: 1 / -1; }

  .tour-detail-card,
  .tour-detail-card:nth-child(even) {
    grid-template-columns: 1fr;
  }
  .tour-detail-card:nth-child(even) .tour-detail__image-wrap { order: 0; }
  .tour-detail-card:nth-child(even) .tour-detail__content    { order: 0; }
}

@media (max-width: 768px) {
  :root {
    --space-xl: 4rem;
    --space-lg: 2.5rem;
  }

  /* Mobile nav drawer */
  .nav__toggle { display: flex; }

  .nav__links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(310px, 82vw);
    background: var(--color-deep);
    flex-direction: column;
    align-items: flex-start;
    padding: calc(var(--nav-height) + 2.5rem) 2rem 2.5rem;
    gap: 0.25rem;
    z-index: 1001;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.38s var(--ease-out);
  }

  .nav__links.open { transform: translateX(0); }

  .nav__links a {
    font-size: 1.25rem;
    padding: 0.9rem 0;
    width: 100%;
    color: rgba(255,255,255,0.7);
    border: none;
  }

  .nav__links a.active {
    color: var(--color-white);
    text-decoration: underline;
    text-decoration-color: var(--color-teal);
    text-underline-offset: 5px;
    text-decoration-thickness: 2px;
  }

  .nav__links a::after { display: none; }

  .nav__links li:last-child {
    margin-top: 2rem;
    width: 100%;
  }

  .nav__links .btn--nav {
    display: block;
    width: 100% !important;
    text-align: center;
    border-radius: 100px;
    padding: 0.85rem 1.5rem;
    background-color: var(--color-teal) !important;
    color: var(--color-white) !important;
    border: none !important;
    text-decoration: none !important;
  }

  /* Page layout adjustments */
  .intro__inner { grid-template-columns: 1fr; }
  .intro__image-wrap { order: -1; }
  .intro__badge { display: none; }

  .tour-cards { grid-template-columns: 1fr; }

  .testimonial-grid { grid-template-columns: 1fr; }
  .testimonial-grid .testimonial-card:last-child { grid-column: auto; }

  .harbour-grid { grid-template-columns: 1fr; }

  .expect-grid { grid-template-columns: 1fr; }
  .expect-step { padding: 1.5rem 0; }

  .contact-strip__inner { grid-template-columns: 1fr; gap: 2rem; }

  .footer__inner { grid-template-columns: 1fr; gap: var(--space-md); }
  .footer__brand { grid-column: auto; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 0.5rem; }

  .hero__cta { flex-direction: column; align-items: center; }

  /* Mobile: hide videos, show static poster instead */
  .hero__video { display: none; }
  .hero__video-poster { display: block; }

  .tour-detail__meta { grid-template-columns: 1fr 1fr; }

  .grid-2 { grid-template-columns: 1fr !important; }
}

@media (max-width: 480px) {
  :root { --space-md: 1.25rem; }

  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.75rem; }

  .btn--lg { padding: 1rem 1.8rem; font-size: 0.9rem; }

  .tour-detail__meta { grid-template-columns: 1fr; }
}
