/* =========================================================
   John's Pass Pontoons — styles
   Hand-built, no framework. Fast, clean, mobile-first.
   ========================================================= */

:root {
  /* Brand palette — matched to the homepage's navy/gold identity */
  --aqua:       #15B4C7;
  --deep-aqua:  #0E94A6;
  --light-aqua: #6FD7E2;
  --navy:       #0C2531;
  --navy-deep:  #081A23;
  --ink:        #13303B;
  --gold:       #E0A83E;
  --deep-gold:  #C8902E;
  --gold-soft:  #EEC579;
  --paper:      #F3F0EA;
  --grey-teal:  #5E7178;
  --white:      #ffffff;

  /* Fonts */
  --serif:  "Fraunces", Georgia, serif;
  --sans:   "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --script: "Dancing Script", cursive;

  /* Layout */
  --wrap: 1180px;
  --radius: 18px;
  --shadow: 0 18px 50px -18px rgba(15, 58, 64, .35);
  --shadow-sm: 0 8px 24px -12px rgba(15, 58, 64, .3);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
/* stop iOS double-tap-to-zoom (keeps pinch-zoom for accessibility) */
* { touch-action: manipulation; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.08; margin: 0; font-weight: 700; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

.script { font-family: var(--script); font-weight: 700; color: var(--gold); }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .72rem;
  font-weight: 700;
  color: var(--deep-aqua);
  margin: 0 0 14px;
}
.eyebrow.light { color: var(--light-aqua); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--sans); font-weight: 700; font-size: 1rem;
  padding: 15px 30px; border-radius: 999px; cursor: pointer;
  border: 2px solid transparent; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  will-change: transform;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--deep-gold));
  color: var(--ink); box-shadow: 0 12px 26px -10px rgba(240,165,42,.75);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -10px rgba(240,165,42,.85); }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.65); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,.24); transform: translateY(-3px); }
.btn-teal { background: var(--ink); color: #fff; }
.btn-teal:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.btn-lg { padding: 18px 40px; font-size: 1.08rem; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center;
  padding: 18px 0; transition: background .35s, padding .35s, box-shadow .35s;
}
.header.scrolled {
  background: rgba(252,250,245,.92);
  backdrop-filter: blur(12px);
  padding: 10px 0; box-shadow: 0 6px 24px -16px rgba(15,58,64,.5);
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  background: rgba(255,255,255,.07); border: 1px solid rgba(238,197,121,.35);
  display: grid; place-items: center; color: #fff; font-family: var(--serif);
  font-weight: 800; font-size: 1.25rem;
}
.brand-name { font-family: var(--serif); font-weight: 800; font-size: 1.12rem; line-height: 1; color: #fff; transition: color .35s; }
.brand-name span { display: block; font-family: var(--script); font-weight: 700; font-size: 1.15rem; color: var(--gold); }
.scrolled .brand-name { color: var(--ink); }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a.link { font-weight: 600; font-size: .95rem; color: #fff; transition: color .3s; position: relative; }
.nav a.link::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--gold); transition: width .3s var(--ease); }
.nav a.link:hover::after { width: 100%; }
.scrolled .nav a.link { color: var(--ink); }

.menu-btn { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-btn span { display: block; width: 26px; height: 2.5px; background: #fff; border-radius: 2px; margin: 5px 0; transition: .3s; }
.scrolled .menu-btn span { background: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  color: #fff; overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; animation: heroZoom 18s var(--ease) infinite alternate; }
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.09); } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(15,58,64,.35) 0%, rgba(15,58,64,.12) 35%, rgba(15,58,64,.62) 100%),
    linear-gradient(90deg, rgba(15,58,64,.45), transparent 60%);
}
.hero-inner { padding: 120px 0 90px; max-width: 760px; }
.hero h1 { font-size: clamp(2.9rem, 8vw, 5.6rem); text-shadow: 0 4px 30px rgba(0,0,0,.35); }
.hero h1 .script { display: block; font-size: clamp(2.4rem, 7vw, 4.4rem); margin-bottom: -.1em; }
.hero p.lede { font-size: clamp(1.05rem, 2.4vw, 1.3rem); max-width: 540px; margin: 22px 0 34px; text-shadow: 0 2px 16px rgba(0,0,0,.4); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.85); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.scroll-hint::after { content: ""; width: 1px; height: 34px; background: rgba(255,255,255,.7); animation: scrollPulse 1.8s var(--ease) infinite; }
@keyframes scrollPulse { 0%,100% { opacity: .3; transform: scaleY(.6); } 50% { opacity: 1; transform: scaleY(1); } }

/* Anchor links land below the fixed header, not under it */
section[id], footer[id] { scroll-margin-top: 78px; }

/* ---------- Trust bar ---------- */
.trustbar { background: #fff; border-bottom: 1px solid rgba(15,58,64,.07); }
.trustbar ul {
  list-style: none; margin: 0; padding: 22px 0; display: grid;
  grid-template-columns: repeat(4, 1fr); gap: 18px; text-align: center;
}
.trustbar li { display: flex; flex-direction: column; gap: 2px; position: relative; }
.trustbar li + li::before { content: ""; position: absolute; left: 0; top: 10%; height: 80%; width: 1px; background: rgba(15,58,64,.1); }
.trustbar b { font-family: var(--serif); font-size: 1.05rem; color: var(--ink); }
.trustbar span { font-size: .8rem; color: var(--grey-teal); }

/* ---------- Section shared ---------- */
.section { padding: clamp(70px, 10vw, 130px) 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto clamp(40px, 6vw, 64px); }
.section-head h2 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
.section-head p { color: var(--grey-teal); font-size: 1.08rem; margin-top: 16px; }

/* ---------- Adventure cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  min-height: 460px; display: flex; align-items: flex-end; color: #fff;
  box-shadow: var(--shadow); isolation: isolate;
}
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s var(--ease); }
.card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15,58,64,0) 30%, rgba(15,58,64,.85) 100%); }
.card:hover img { transform: scale(1.07); }
.card-body { padding: 30px; }
.card-body h3 { font-size: 1.7rem; margin-bottom: 8px; }
.card-body p { font-size: .96rem; color: rgba(255,255,255,.9); margin: 0 0 16px; }
.card-price { font-family: var(--sans); font-weight: 700; font-size: .92rem; color: var(--gold); letter-spacing: .02em; }
.card-link { margin-top: 16px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .92rem; color: #fff; }
.card-link .arw { transition: transform .3s var(--ease); }
.card:hover .card-link .arw { transform: translateX(5px); }

/* ---------- Fleet ---------- */
.fleet { background: linear-gradient(180deg, #fff, var(--paper)); }
.fleet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.boat {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  border: 1px solid rgba(15,58,64,.06);
}
.boat:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.boat-media { aspect-ratio: 4/3; overflow: hidden; }
.boat-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.boat:hover .boat-media img { transform: scale(1.06); }
.boat-body { padding: 24px; }
.boat-body h3 { font-size: 1.4rem; }
.boat-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 16px; }
.tag { font-size: .74rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: rgba(21,180,199,.12); color: var(--deep-aqua); }
.boat-foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid rgba(15,58,64,.08); padding-top: 16px; }
.boat-price b { font-family: var(--serif); font-size: 1.5rem; color: var(--ink); }
.boat-price small { display: block; color: var(--grey-teal); font-size: .78rem; }

/* ---------- Moments / gallery ---------- */
.moments { position: relative; color: #fff; overflow: hidden; }
.moments-media { position: absolute; inset: 0; z-index: -2; }
.moments-media img { width: 100%; height: 100%; object-fit: cover; }
.moments::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(15,58,64,.82), rgba(15,58,64,.35)); }
.moments .inner { max-width: 540px; padding: clamp(80px,12vw,150px) 0; }
.moments h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.moments h2 .script { display: block; color: var(--gold); }
.moments p { margin: 20px 0 30px; font-size: 1.1rem; color: rgba(255,255,255,.92); }

/* ---------- Reviews ---------- */
.reviews { background: var(--ink); color: #fff; }
.reviews .section-head h2 { color: #fff; }
.stars-big { color: var(--gold); font-size: 1.5rem; letter-spacing: 3px; }
.reviews .section-head p { color: rgba(255,255,255,.7); }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius); padding: 30px;
}
.review .stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 14px; }
.review q { font-family: var(--serif); font-style: italic; font-size: 1.12rem; display: block; margin-bottom: 18px; quotes: none; }
.review cite { font-style: normal; font-weight: 700; font-size: .9rem; color: var(--light-aqua); }
.reviews-cta { text-align: center; margin-top: 40px; }
.reviews-cta .btn-ghost { border-color: rgba(255,255,255,.4); }

/* ---------- FAQ ---------- */
.faq { background: linear-gradient(180deg, var(--paper), #fff); }
.faq-list { max-width: 760px; margin: 0 auto; }
.faq details {
  background: #fff; border: 1px solid rgba(15,58,64,.1); border-radius: 14px;
  margin-bottom: 12px; overflow: hidden; transition: box-shadow .25s;
}
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 22px; font-family: var(--serif);
  font-size: 1.12rem; font-weight: 700; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq-plus { position: relative; width: 18px; height: 18px; flex: none; }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; background: var(--deep-aqua); border-radius: 2px; transition: transform .3s var(--ease); }
.faq-plus::before { top: 8px; left: 0; width: 18px; height: 2.5px; }
.faq-plus::after { left: 8px; top: 0; width: 2.5px; height: 18px; }
.faq details[open] .faq-plus::after { transform: rotate(90deg); opacity: 0; }
.faq-a { padding: 0 22px 22px; }
.faq-a p { margin: 0; color: var(--grey-teal); }

/* ---------- Find Us ---------- */
.find-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 46px; align-items: center; }
.find-info h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
.find-lead { color: var(--grey-teal); margin: 14px 0 24px; font-size: 1.05rem; }
.find-list { list-style: none; padding: 0; margin: 0 0 26px; }
.find-list li { padding: 12px 0; border-bottom: 1px solid rgba(15,58,64,.08); display: flex; flex-direction: column; gap: 3px; }
.find-list b { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--deep-aqua); }
.find-list a { color: var(--ink); font-weight: 600; }
.find-map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 340px; }
.find-map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

@media (max-width: 820px) {
  .find-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* ---------- Final CTA ---------- */
.final { position: relative; color: #fff; text-align: center; overflow: hidden; }
.final-media { position: absolute; inset: 0; z-index: -2; }
.final-media img { width: 100%; height: 100%; object-fit: cover; }
.final::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15,58,64,.55), rgba(15,58,64,.75)); }
.final .inner { padding: clamp(90px,13vw,160px) 0; }
.final h2 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
.final h2 .script { display: block; color: var(--gold); }
.final p { font-size: 1.15rem; margin: 20px auto 34px; max-width: 460px; color: rgba(255,255,255,.92); }
.final .btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { background: #0a2b30; color: rgba(255,255,255,.75); padding: 64px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer h4 { font-family: var(--sans); text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; color: var(--light-aqua); margin-bottom: 18px; }
.footer a { display: block; padding: 5px 0; transition: color .25s; }
.footer a:hover { color: #fff; }
.footer .brand-name { color: #fff; }
.footer-blurb { font-size: .92rem; margin: 16px 0 0; max-width: 260px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 48px; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .82rem; }

/* ---------- Sticky mobile book bar ---------- */
.mobile-book { display: none; }
@media (max-width: 760px) {
  .mobile-book {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    position: fixed; left: 14px; right: 14px; bottom: 14px; z-index: 90;
    padding: 15px; border-radius: 999px; font-weight: 700; font-size: 1.02rem;
    color: var(--ink); background: linear-gradient(135deg, var(--gold), var(--deep-gold));
    box-shadow: 0 12px 30px -8px rgba(240,165,42,.7); text-align: center;
    padding-bottom: calc(15px + env(safe-area-inset-bottom, 0px));
  }
  .mobile-book span { font-weight: 600; opacity: .85; }
  /* Keep the footer clear of the floating button */
  .footer { padding-bottom: 96px; }
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .cards, .fleet-grid, .review-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .nav { display: none; }
  .menu-btn { display: block; }

  /* Mobile slide-in nav */
  .nav.open {
    display: flex; position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 26px;
    background: var(--ink); padding: 40px; z-index: 200;
    animation: slideIn .35s var(--ease);
  }
  .nav.open a.link { color: #fff; font-size: 1.3rem; }
  .nav.open .btn { margin-top: 10px; }
  @keyframes slideIn { from { transform: translateX(100%); } to { transform: none; } }
  .nav-scrim { display: none; }
  .nav-scrim.show { display: block; position: fixed; inset: 0; background: rgba(10,43,48,.55); z-index: 150; }
}

@media (max-width: 720px) {
  .trustbar ul { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; }
  .trustbar li:nth-child(3)::before { display: none; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
}

/* Very small phones (iPhone SE and down) */
@media (max-width: 380px) {
  .wrap { width: min(100% - 28px, var(--wrap)); }
  .brand-name { font-size: 1rem; }
  .card-body, .boat-body, .review { padding: 22px; }
}

/* Tablets: 2-up grids look better than 1 or 3 */
@media (min-width: 721px) and (max-width: 980px) {
  .cards, .fleet-grid, .review-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* The hidden attribute must always win, even over display:grid/flex rules */
[hidden]{display:none!important}
