/* ════════════════════════════════════════════════════════════
   HAPPY'S FISHING — Main Stylesheet

   SWAPPING IMAGES
   Hero background  →  .hero-bg    (url line below)
   CTA background   →  .cta-bg     (url line below)
   Carousel images  →  index.html  (.carousel-item src attributes)
   ════════════════════════════════════════════════════════════ */


/* === RESET & DESIGN TOKENS ══════════════════════════════ */

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

:root {
  /* Dark surfaces — nav, hero, CTA */
  --ink:       #0d1219;
  --ink-nav:   rgba(13, 18, 25, 0.93);

  /* Light surfaces — experience, sponsors, footer */
  --sand:      #f0ebe2;
  --sand-mid:  #e4ddd3;

  /* Text on light */
  --dark:      #1a2028;
  --mid:       #4a5260;
  --dim:       #8a9099;

  /* Text on dark */
  --bone:      #dbd5cc;

  /* Accent — Pacific kelp sage */
  --kelp:      oklch(44% 0.085 163);

  --white:     #ffffff;

  /* Borders */
  --border-d:  rgba(219, 213, 204, 0.10);
  --border-l:  rgba(26, 32, 40, 0.11);
  --border-lm: rgba(26, 32, 40, 0.20);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  background: var(--sand);
  color: var(--dark);
  overflow-x: hidden;
}

/* Subtle film-grain texture over entire page */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

section { scroll-margin-top: 60px; }


/* === NAVIGATION ══════════════════════════════════════════ */

nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 60px;
  padding: 0 48px;
  background: var(--ink-nav);
  border-bottom: 1px solid var(--border-d);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--bone);
  text-decoration: none;
  white-space: nowrap;
}

/* Decorative rules flanking the logo text */
.nav-logo::before,
.nav-logo::after {
  content: '';
  display: block;
  flex-shrink: 0;
  width: 24px;
  height: 1px;
  background: rgba(219, 213, 204, 0.35);
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(219, 213, 204, 0.45);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--bone); }

.nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.nav-cta {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--white);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: transparent;
  padding: 6px 14px;
  transition: background 0.22s, color 0.22s, border-color 0.22s;
}

.nav-cta:hover {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}

/* Hamburger button — hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 22px;
  height: 14px;
  margin-left: 16px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--bone);
  transition: transform 0.2s, opacity 0.2s;
}


/* === HERO SECTION ════════════════════════════════════════ */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100vh;
  min-height: 620px;
  padding: 0 0 56px 64px;
  overflow: hidden;
  background: var(--ink);
}

/* ↓ HERO IMAGE — replace the url() value to swap the photo */
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(8, 12, 18, 0.52) 30%, rgba(8, 12, 18, 0.08) 100%),
    linear-gradient(to top,   rgba(8, 12, 18, 0.42) 0%,  transparent 45%),
    url('../images/IMG_3853.jpg') center / cover no-repeat;
}

.hero-eyebrow {
  position: relative;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 20px;
}

.hero-title {
  position: relative;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(3.2rem, 5.8vw, 5.4rem);
  font-weight: 500;
  line-height: 1.05;
  color: var(--white);
  max-width: 560px;
  margin-bottom: 26px;
  text-wrap: pretty;
}

.hero-sub {
  position: relative;
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(219, 213, 204, 0.75);
  max-width: 400px;
  margin-bottom: 40px;
}

.hero-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.hero-trust {
  position: absolute;
  bottom: 26px;
  left: 64px;
  display: flex;
  align-items: center;
}

.hero-trust span {
  font-size: 0.67rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(219, 213, 204, 0.38);
}

.trust-sep { margin: 0 14px; color: rgba(219, 213, 204, 0.18); }


/* === BUTTONS ═════════════════════════════════════════════ */

.btn-primary {
  display: inline-block;
  padding: 13px 26px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: transparent;
  color: var(--white);
  font-family: 'Jost', sans-serif;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.22s, color 0.22s, border-color 0.22s;
}

.btn-primary:hover {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}

.btn-ghost {
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(219, 213, 204, 0.48);
  text-decoration: none;
  border-bottom: 1px solid rgba(219, 213, 204, 0.18);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.btn-ghost:hover {
  color: var(--bone);
  border-color: rgba(219, 213, 204, 0.5);
}

.btn-cta {
  position: relative;
  display: inline-block;
  overflow: hidden;
  padding: 13px 26px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: transparent;
  color: var(--white);
  font-family: 'Jost', sans-serif;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.22s, color 0.22s, border-color 0.22s;
}

/* Phone number revealed on hover — uses real DOM spans so JS can update the text */
.btn-label { transition: opacity 0.22s ease; }

.btn-hover-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  color: var(--ink);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.btn-cta:hover { background: var(--white); color: transparent; border-color: var(--white); }
.btn-cta:hover .btn-hover-label { opacity: 1; }


/* === EXPERIENCE SECTION ══════════════════════════════════ */

.section-experience {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 80px;
  padding: 100px 64px;
  background: var(--sand);
}

/* Kelp-green accent rule along the top edge */
.section-experience::before {
  content: '';
  position: absolute;
  top: 0;
  left: 64px;
  right: 64px;
  height: 1px;
  background: linear-gradient(to right, var(--kelp), transparent);
  opacity: 0.4;
}

.exp-eyebrow {
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--kelp);
  margin-bottom: 20px;
}

.exp-title {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(2.2rem, 3.8vw, 3.4rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0.01em;
  color: var(--dark);
  max-width: 500px;
  margin-bottom: 36px;
  text-wrap: pretty;
}

.exp-captain-label {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 10px;
}

.exp-captain-bio {
  font-family: 'Libre Baskerville', serif;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--mid);
  max-width: 420px;
  margin-bottom: 10px;
}

.exp-quote {
  font-size: 0.82rem;
  font-style: italic;
  color: var(--dim);
  margin-bottom: 44px;
}

.charter-list { border-top: 1px solid var(--border-l); }

.charter-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--border-l);
  transition: border-color 0.2s;
}

.charter-item:hover { border-bottom-color: var(--kelp); }

.charter-item h3 {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 7px;
}

.charter-item p {
  font-size: 0.82rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--mid);
}


/* === GALLERY CAROUSEL ════════════════════════════════════ */

/* Sticky right-hand panel that holds the scrolling images */
.exp-right {
  position: sticky;
  top: 80px;
  height: calc(100vh - 140px);
  min-height: 480px;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.carousel-item {
  flex-shrink: 0;
  height: 260px;
  overflow: hidden;
  background: var(--sand-mid);
}

.carousel-item img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
}

/* Full-panel overlay shown when a carousel item is hovered */
.carousel-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  background-size: cover;
  background-position: center;
  transition: opacity 0.35s ease;
}

.carousel-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Per-image crop overrides — set via data-overlay-position in HTML */
.carousel-overlay.pos-top    { background-position: center top    !important; }
.carousel-overlay.pos-bottom { background-position: center bottom !important; }


/* === SPONSORS STRIP ══════════════════════════════════════ */

.section-sponsors:not([hidden]) {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 40px 64px;
  background: var(--sand-mid);
  border-top: 1px solid var(--border-l);
  border-bottom: 1px solid var(--border-l);
}

.sponsors-label {
  font-size: 0.64rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}

.sponsors-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 900px;
  width: 100%;
  overflow: visible;
}

.brand-tag {
  padding: 10px 16px;
  border: 1px solid var(--border-l);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
  text-align: center;
  transition: border-color 0.2s, color 0.2s;
}

.brand-tag:hover {
  border-color: var(--border-lm);
  color: var(--mid);
}


/* === CTA / BOOK SECTION ══════════════════════════════════ */

.section-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 560px;
  padding: 0 64px;
  overflow: hidden;
}

/* ↓ CTA IMAGE — replace the url() value to swap the photo */
.cta-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(5, 9, 14, 0.18) 0%, rgba(5, 9, 14, 0.52) 100%),
    url('../images/IMG_3548.jpg') center / cover no-repeat;
}

.cta-content { position: relative; }

.cta-eyebrow {
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 20px;
}

.cta-title {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  font-weight: 500;
  line-height: 1.08;
  color: var(--white);
  max-width: 480px;
  margin-bottom: 36px;
  text-wrap: pretty;
}


/* === FOOTER ══════════════════════════════════════════════ */

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 22px 48px;
  background: var(--sand);
  border-top: 1px solid var(--border-l);
}

.footer-brand {
  grid-column: 2;
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--mid);
}

/* Decorative rules flanking the footer brand name */
.footer-brand::before,
.footer-brand::after {
  content: '';
  display: block;
  flex-shrink: 0;
  width: 20px;
  height: 1px;
  background: var(--border-lm);
}

.footer-phone {
  grid-column: 3;
  justify-self: end;
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--dim);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-phone:hover { color: var(--dark); }


/* === AVAILABILITY BANNER ═════════════════════════════════ */

.site-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-align: center;
}

.banner-gold  { background: #b8860b; color: #fff; }
.banner-blue  { background: #2c5282; color: #fff; }
.banner-green { background: var(--kelp); color: #fff; }
.banner-red   { background: #9b2335; color: #fff; }


/* === TESTIMONIAL ══════════════════════════════════════════ */

#testimonial-block {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border-l);
}

.testimonial-quote {
  font-family: 'Libre Baskerville', serif;
  font-style: italic;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--mid);
  margin-bottom: 12px;
}

.testimonial-attribution {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}


/* === SCHEDULE NOTE ════════════════════════════════════════ */

#schedule-note:not([hidden]) {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  background: var(--sand-mid);
  border-top: 1px solid var(--border-l);
}

.schedule-text {
  font-size: 0.76rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--dim);
  text-align: center;
}


/* === CHARTER PRICE ════════════════════════════════════════ */

.charter-price {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--kelp);
  margin-top: 6px;
  letter-spacing: 0.04em;
}


/* === SPONSOR LOGO VARIANT ═════════════════════════════════ */

.brand-tag--logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px 20px;
  border: none;
  overflow: visible;
  transition: transform 0.2s ease;
}

.brand-tag--logo img {
  max-width: 180px;
  max-height: 72px;
  object-fit: contain;
  transition: filter 0.2s ease;
}

.brand-tag--logo:hover {
  transform: translateY(-3px);
}

.brand-tag--logo:hover img {
  filter: drop-shadow(0 4px 10px rgba(13, 18, 25, 0.18));
}


/* === GALLERY ═════════════════════════════════════════════ */

.nav-links a.nav-current {
  color: var(--bone);
}

.gallery-page {
  padding-top: 60px;
  min-height: 100vh;
  background: var(--bone);
}

.gallery-hd {
  padding: 72px 64px 48px;
  text-align: center;
}

.gallery-eyebrow {
  font-size: 0.64rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 12px;
}

.gallery-title {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 500;
  color: var(--dark);
  margin: 0;
}

.gallery-grid {
  columns: 3 240px;
  column-gap: 10px;
  padding: 0 48px 80px;
  max-width: 1400px;
  margin: 0 auto;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 10px;
  cursor: zoom-in;
  overflow: hidden;
  background: var(--sand-mid);
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease, opacity 0.2s;
}

.gallery-item:hover img {
  transform: scale(1.04);
  opacity: 0.9;
}

.gallery-empty {
  text-align: center;
  color: var(--dim);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  padding: 80px 0;
}

/* Lightbox */

#lightbox:not([hidden]) {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  inset: 0;
  z-index: 200;
}

.lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 18, 0.93);
  cursor: zoom-out;
}

.lb-inner {
  position: relative;
  z-index: 1;
  max-width: min(90vw, 1200px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.lb-img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  display: block;
  user-select: none;
}

.lb-caption {
  color: rgba(219, 213, 204, 0.65);
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-align: center;
  margin: 0;
}

.lb-close,
.lb-prev,
.lb-next {
  position: fixed;
  z-index: 2;
  background: none;
  border: none;
  color: var(--bone);
  cursor: pointer;
  line-height: 1;
  opacity: 0.55;
  transition: opacity 0.2s;
  padding: 0;
}

.lb-close:hover,
.lb-prev:hover,
.lb-next:hover { opacity: 1; }

.lb-close {
  top: 22px;
  right: 28px;
  font-size: 2rem;
}

.lb-prev,
.lb-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 3.5rem;
}

.lb-prev { left: 16px; }
.lb-next { right: 16px; }


/* === RESPONSIVE BREAKPOINTS ══════════════════════════════
   1024px  Tablet landscape
    768px  Tablet portrait / large mobile
    480px  Mobile landscape / small phone
    390px  Mobile portrait (iPhone 14)
   ══════════════════════════════════════════════════════ */

/* --- 1024px: tighten experience column gap --- */
@media (max-width: 1024px) {
  .section-experience { gap: 48px; }
}

/* --- 768px: single column, hamburger nav --- */
@media (max-width: 768px) {

  /* Navigation */
  nav { padding: 0 24px; }
  .nav-toggle { display: flex; }
  .nav-cta    { display: none; }

  .nav-links {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    z-index: 99;
    flex-direction: column;
    gap: 0;
    padding: 0 24px;
    background: var(--ink);
    border-bottom: 1px solid var(--border-d);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.2s, transform 0.2s;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .nav-links li a {
    display: block;
    padding: 14px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-d);
  }

  /* Hero */
  .hero       { padding: 0 24px 48px; }
  .hero-trust { left: 24px; }

  /* Experience — stack to single column */
  .section-experience {
    grid-template-columns: 1fr;
    padding: 64px 24px;
    gap: 0;
  }

  .section-experience::before { left: 24px; right: 24px; }

  /* Carousel — static side-by-side row, no scroll */
  .exp-right {
    position: static;
    height: 220px;
    min-height: unset;
    margin-top: 48px;
  }

  .carousel-track { flex-direction: row; height: 100%; }

  .carousel-item {
    flex: 1;
    height: 100%;
    min-width: 0;
  }

  .carousel-item[aria-hidden="true"] { display: none; }
  .carousel-overlay                  { display: none; }

  /* Sponsors */
  .section-sponsors { padding: 32px 24px; }

  /* CTA */
  .section-cta { padding: 0 28px; }

  /* Footer — stacked */
  footer {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px 24px;
    text-align: center;
    justify-items: center;
  }

  .footer-brand { grid-column: 1; }
  .footer-phone { grid-column: 1; justify-self: center; }
}

/* --- 480px --- */
@media (max-width: 480px) {
  .hero       { min-height: 560px; }
  .section-cta { height: 460px; }
}

/* --- 390px: tighten all horizontal padding --- */
@media (max-width: 390px) {
  nav                  { padding: 0 16px; }
  .hero                { padding: 0 20px 40px; }
  .hero-trust          { left: 20px; bottom: 18px; }
  .section-experience  { padding: 48px 20px; }
  .section-sponsors    { padding: 28px 20px; }
  footer               { padding: 18px 20px; }
}

/* --- Gallery responsive --- */
@media (max-width: 768px) {
  .gallery-hd   { padding: 56px 24px 40px; }
  .gallery-grid { columns: 2 160px; column-gap: 8px; padding: 0 20px 60px; }
  .gallery-item { margin-bottom: 8px; }
  .lb-prev      { left: 6px; }
  .lb-next      { right: 6px; }
}

@media (max-width: 480px) {
  .gallery-grid { columns: 1; }
}
