/* =========================================================================
   SJS Charters — visual system
   Display: Saira Condensed (bold, tournament-poster feel for a sport charter)
   Body:    Saira (same family DNA, cohesive, readable)
   Palette stays true to the brief: black ink, white/light paper, Carolina blue.
   ========================================================================= */

:root {
  --ink: #101820;
  --muted: #53616d;
  --line: #d8e0e6;
  --paper: #f6f8fa;
  --white: #ffffff;
  --blue: #67b7df;
  --blue-bright: #8ad0f0;
  --blue-dark: #0e5a7b;
  --navy: #153346;
  --sea: #dff1f9;
  --shadow: 0 18px 44px rgba(16, 24, 32, 0.16);
  --shadow-soft: 0 6px 20px rgba(16, 24, 32, 0.06);
  --radius: 8px;
  --radius-sm: 6px;

  --font-display: "Saira Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Saira", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;

  color-scheme: light;
  font-family: var(--font-body);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

/* Keyboard focus — visible, consistent, on-brand */
:where(a, button, summary, .button, [tabindex]):focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 3px;
}

/* Reduced motion — respect it everywhere */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---- Skip link ---- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 30;
  background: var(--ink);
  color: var(--white);
  padding: 0.75rem 1rem;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 1rem;
}

/* ---- Header ---- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 4vw, 3rem);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(216, 224, 230, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-logo {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
  border: 2px solid var(--blue);
  background: var(--white);
}

.nav-links {
  display: flex;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.nav-links a {
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-links a {
  position: relative;
  padding: 0.2rem 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--blue-dark);
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0 0.6rem;
  background: transparent;
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}
.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 94svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  padding: 7rem clamp(1rem, 5vw, 4rem) 5rem;
  /* Dark field behind the width-constrained hero photo so the side
     gutters read as intentional framing, not a gap. */
  background: var(--ink);
}

.hero-video,
.hero-overlay {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1280px;
  height: 100%;
}

.hero-video {
  z-index: -2;
  overflow: hidden;
  background: url("images/header/south-jersey-shark-charter-hero.webp") center / cover no-repeat;
}

.hero-video iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100%, calc(100svh * 16 / 9));
  height: max(100%, calc(100vw * 9 / 16));
  border: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: -2;
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(6, 18, 26, 0.5) 0%, transparent 26%, rgba(6, 18, 26, 0.3) 66%, rgba(6, 18, 26, 0.82) 100%),
    linear-gradient(90deg, rgba(6, 18, 26, 0.72), transparent 62%);
}

.hero-content {
  width: min(780px, 100%);
  color: var(--white);
}

/* One orchestrated entrance — staggered rise on load */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-content > * {
  animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero-content > *:nth-child(1) {
  animation-delay: 0.05s;
}
.hero-content > *:nth-child(2) {
  animation-delay: 0.14s;
}
.hero-content > *:nth-child(3) {
  animation-delay: 0.23s;
}
.hero-content > *:nth-child(4) {
  animation-delay: 0.32s;
}
.hero-content > *:nth-child(5) {
  animation-delay: 0.41s;
}
.hero-content > *:nth-child(6) {
  animation-delay: 0.5s;
}

.eyebrow,
.trip-kicker {
  margin: 0 0 0.8rem;
  font-family: var(--font-display);
  color: var(--blue-dark);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--blue-bright);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: -0.005em;
}

h1 {
  margin: 0;
  font-size: clamp(3.4rem, 10vw, 7.5rem);
  font-weight: 800;
  line-height: 0.88;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4.6vw, 4rem);
  font-weight: 800;
  line-height: 0.96;
}

h3 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.4rem, 2.4vw, 1.95rem);
  font-weight: 700;
  line-height: 1.06;
}

.hero-lede {
  margin: 1rem 0 0;
  max-width: 720px;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.2vw, 2.5rem);
  font-weight: 700;
  line-height: 1.06;
  text-transform: none;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  margin: 1.1rem 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* ---- Tide-line signature motif ---- */
.tide-rule {
  display: block;
  width: min(220px, 60%);
  height: 10px;
  margin: 1.1rem 0 0.2rem;
  color: var(--blue-bright);
}

.tide-rule--ink {
  width: min(260px, 70%);
  margin: 1.2rem 0 0;
  color: var(--blue);
}

/* ---- Buttons ---- */
.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1.15rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease,
    border-color 0.15s ease, box-shadow 0.15s ease;
}

.button.primary {
  background: var(--blue);
  color: var(--ink);
}

.button.primary:hover {
  background: var(--blue-bright);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(103, 183, 223, 0.35);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.72);
  color: var(--white);
}

.button.secondary:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

/* ---- Quick info strip ---- */
.quick-info {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.quick-info div {
  padding: 1.35rem clamp(1rem, 3vw, 2rem);
  border-right: 1px solid var(--line);
}

.quick-info div:last-child {
  border-right: 0;
}

.quick-info span,
dt {
  display: block;
  font-family: var(--font-display);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quick-info strong,
dd {
  display: block;
  margin: 0.3rem 0 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* ---- Sections ---- */
.section {
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 5vw, 4rem);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section-heading p:not(.eyebrow) {
  max-width: 640px;
  color: var(--muted);
  font-size: 1.1rem;
}

/* ---- Trips ---- */
.trips {
  background: var(--paper);
}

.trip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.trip-card {
  display: grid;
  align-content: space-between;
  gap: 1.5rem;
  min-height: 100%;
  padding: clamp(1.4rem, 3vw, 2.1rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.trip-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.trip-card.featured {
  border-color: var(--blue);
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, var(--sea) 0%, var(--white) 38%);
}

.trip-card p:not(.trip-kicker) {
  color: var(--muted);
}

.trip-kicker {
  margin-bottom: 0.6rem;
}

dl {
  display: grid;
  gap: 0.95rem;
  margin: 0;
}

.trip-card .rate dd {
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue-dark);
}

/* ---- Split / story ---- */
.split,
.fit {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  background: var(--white);
}

.split-copy {
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.split-copy p:first-child {
  margin-top: 0;
}

.story {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
  background: var(--sea);
}

.story-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.story-copy p:not(.eyebrow) {
  color: #334653;
  font-size: 1.08rem;
}

/* ---- Gallery ---- */
.gallery-section {
  background: var(--paper);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.gallery img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--line);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow);
}

.gallery img:nth-child(1),
.gallery img:nth-child(6),
.gallery img:nth-child(9) {
  grid-column: span 2;
  aspect-ratio: 16 / 10;
}

/* ---- Fit ---- */
.fit {
  align-items: start;
}

.fit-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fit-list li {
  min-height: 5.5rem;
  display: flex;
  align-items: center;
  padding: 1rem 1.1rem;
  background: var(--paper);
  border-left: 5px solid var(--blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-weight: 600;
}

/* ---- FAQ ---- */
.faq {
  background: var(--white);
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

details[open] {
  border-color: var(--blue);
  box-shadow: var(--shadow-soft);
}

summary {
  cursor: pointer;
  list-style: none;
  padding: 1.05rem 3rem 1.05rem 1.15rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
  position: relative;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "";
  position: absolute;
  right: 1.15rem;
  top: 50%;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--blue-dark);
  border-bottom: 2px solid var(--blue-dark);
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.2s ease;
}

details[open] summary::after {
  transform: translateY(-35%) rotate(-135deg);
}

details p {
  margin: 0;
  padding: 0 1.15rem 1.1rem;
  color: var(--muted);
}

/* ---- Contact ---- */
.contact {
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 5vw, 4rem);
  background: var(--navy);
  color: var(--white);
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.7fr);
  gap: 1.5rem;
  align-items: end;
}

.contact .eyebrow {
  color: var(--blue-bright);
}

.contact p:not(.eyebrow) {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.82);
}

address {
  display: grid;
  gap: 0.6rem;
  font-style: normal;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
}

address a {
  color: var(--white);
  text-decoration: none;
}

address a:hover {
  color: var(--blue-bright);
}

.social-row {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.social-row a,
.social-row span {
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.9rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.social-row a:hover {
  border-color: var(--blue-bright);
  color: var(--blue-bright);
}

.social-row span {
  color: rgba(255, 255, 255, 0.58);
}

/* ---- Footer ---- */
.site-footer {
  padding: 1.3rem clamp(1rem, 5vw, 4rem);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem clamp(1rem, 4vw, 3rem) 1rem;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(16, 24, 32, 0.1);
    display: none;
  }

  .nav-links a {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-links a:last-child {
    border-bottom: 0;
  }

  .nav-links a::after {
    display: none;
  }

  .site-header.nav-open .nav-links {
    display: flex;
  }

  .quick-info,
  .trip-grid,
  .split,
  .story,
  .fit,
  .contact-inner {
    grid-template-columns: 1fr;
  }

  .quick-info div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .quick-info div:last-child {
    border-bottom: 0;
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery img:nth-child(1),
  .gallery img:nth-child(6),
  .gallery img:nth-child(9) {
    grid-column: span 1;
    aspect-ratio: 4 / 5;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 0.75rem 0.85rem;
  }

  .brand span:last-child {
    display: none;
  }

  .brand-logo {
    width: 2.75rem;
    height: 2.75rem;
  }

  .hero {
    min-height: 92svh;
    padding: 6rem 1rem 3rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .fit-list,
  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery img {
    min-height: 260px;
  }
}
