:root {
  --bg: #0a0a0a;
  --bg-alt: #161616;
  --deep: #ffffff;
  --white: #ffffff;
  --ink: #ece9e2;
  --ink-muted: #a8a29a;
  --line: #333333;
  --accent: #d97b3f;
  --accent-dark: #b45f28;
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.55);
  --max-width: 1200px;
  --placeholder-bg: repeating-linear-gradient(
    135deg,
    #1c1c1c,
    #1c1c1c 10px,
    #121212 10px,
    #121212 20px
  );
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3, h4 { font-family: Georgia, "Times New Roman", serif; color: var(--deep); line-height: 1.2; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 3.5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-heading { max-width: 720px; margin: 0 auto 2.5rem; text-align: center; }
.section-heading h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.btn {
  display: inline-block; padding: 0.75rem 1.5rem; border-radius: 999px;
  background: var(--accent); color: var(--white); text-decoration: none;
  font-weight: 600; border: none; cursor: pointer; font-size: 1rem;
  transition: background 0.15s ease;
}
.btn:hover { background: var(--accent-dark); }
.btn-outline {
  background: transparent; border: 2px solid var(--white); color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.15); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); box-shadow: 0 1px 0 var(--line); }
.site-header-inner { max-width: var(--max-width); margin: 0 auto; padding: 0.75rem 1.25rem; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--deep); font-weight: 700; font-size: 1.15rem; font-family: Georgia, serif; }
.brand-logo { width: 42px; height: 42px; object-fit: cover; border-radius: 50%; }
.site-nav { display: flex; gap: 1.5rem; }
.site-nav a { text-decoration: none; color: var(--ink); font-weight: 600; }
.site-nav a:hover { color: var(--accent); }
.nav-toggle {
  display: none; flex-direction: column; gap: 4px; background: none; border: none;
  cursor: pointer; padding: 0.5rem;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--deep); display: block; }

/* ---------- Photo box components ---------- */
/* Fixed set of reusable box types. Same class => same ratio/object-fit everywhere. */
.photo-box {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--placeholder-bg);
  box-shadow: var(--shadow);
  border: 3px solid var(--white);
}
.photo-box .box-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.box-placeholder-label {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 0.9rem; font-size: 0.82rem; line-height: 1.35;
  color: var(--ink-muted); font-weight: 600;
}
.standard-box { aspect-ratio: 4 / 3; }
.hero-box { aspect-ratio: 16 / 9; }
.map-box { aspect-ratio: 4 / 3; }
.map-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Home: top hero banner ---------- */
.hero-banner { line-height: 0; }
/* Capped to keep content below the fold on wide/tall viewports; scoped to
   the home hero banner only, not .hero-box elsewhere (e.g. The Boat page
   uses .standard-box, not .hero-box, and is unaffected either way).
   object-fit: cover already applies to .box-photo via the shared
   .photo-box rule, so the image fills the capped box without distortion. */
.hero-banner .hero-box { width: 100%; max-height: 70vh; }
.hero-banner-overlay {
  position: absolute; inset: 0; display: flex; align-items: flex-end;
  padding: 2rem clamp(1.25rem, 4vw, 3rem);
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.75) 100%);
}
.hero-banner-overlay h1 {
  color: var(--white); margin: 0; font-size: clamp(2.2rem, 6vw, 4rem);
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

/* ---------- Home: hero ---------- */
.hero { background: linear-gradient(180deg, var(--bg-alt), var(--bg)); padding: 2.5rem 0 3.5rem; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.5rem; align-items: center; }
.hero-copy h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.hero-copy p { font-size: 1.1rem; color: var(--ink-muted); }
.hero-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.charter-preview-grid, .location-preview-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
.location-preview-grid { grid-template-columns: repeat(5, 1fr); }
.preview-card { text-decoration: none; color: inherit; }
.preview-card h3 { font-size: 1rem; margin: 0.6rem 0 0; }

.boat-teaser { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }

/* ---------- Charters page (also reused by Locations - see below) ---------- */
.charter-list { display: flex; flex-direction: column; gap: 3rem; }
.charter-card { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.charter-card:nth-child(even) .charter-copy { order: 2; }
/* Deterministic fr-based sizing, no auto/percentage circularity: column
   widths are fixed fractions (2fr:1fr) independent of row content, so each
   side box's height is definite (from its own width via .standard-box's
   aspect-ratio), which makes the auto row tracks definite too. row-gap is 0
   so the two stacked side boxes' combined height has no gap term - which
   means the main box's own natural aspect-ratio height at 2x the side
   box's width (2fr vs 1fr) resolves to exactly that combined height with no
   override needed on the main box at all. column-gap keeps the visual gap
   between the main photo and the side-photo stack. Reused as-is by
   Locations (three photos: main + two stacked sides), not duplicated. */
.charter-photos {
  display: grid;
  grid-template-columns: 2fr 1fr;
  column-gap: 0.75rem;
  row-gap: 0;
}
.charter-photos .standard-box:first-child { grid-row: span 2; }
.charter-tag {
  display: inline-block; background: var(--accent); color: var(--white); font-size: 0.75rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 0.25rem 0.7rem;
  border-radius: 999px; margin-bottom: 0.6rem;
}
.charter-meta { display: flex; gap: 1.5rem; margin: 1rem 0; flex-wrap: wrap; }
.charter-meta div { font-size: 0.9rem; }
.charter-meta strong { display: block; color: var(--deep); font-size: 1rem; }
.charter-bullets { list-style: none; margin: 1rem 0; padding: 0; display: grid; gap: 0.4rem; }
.charter-bullets li { padding-left: 1.4rem; position: relative; }
.charter-bullets li::before { content: "\2713"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* ---------- Locations page ---------- */
/* Locations now reuses .charter-list/.charter-card/.charter-photos directly
   (see Charters section above) instead of a separate single-photo grid, so
   each location gets the same main+stacked-sides three-photo composition.
   .location-card is kept as an additional marker class; .locations-grid
   below is unused after this change but left defined rather than removed,
   to avoid an unrelated deletion beyond what was asked. */
.locations-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.location-card h3 { margin-top: 0.75rem; }

/* ---------- The Boat page ---------- */
.boat-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; margin-bottom: 3rem; }
.spec-table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.spec-table td { padding: 0.5rem 0; border-bottom: 1px solid var(--line); }
.spec-table td:first-child { color: var(--ink-muted); width: 40%; }
.placeholder-note {
  background: #3a2a10; border: 1px solid #6b4a1f; color: #f0c896; padding: 0.75rem 1rem;
  border-radius: var(--radius-sm); font-size: 0.88rem; margin: 0.75rem 0;
}
.crew-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.crew-card h3 { margin: 0.75rem 0 0.1rem; }
.crew-role { color: var(--accent); font-weight: 600; font-size: 0.9rem; margin-bottom: 0.5rem; }

/* ---------- Contact page ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.contact-form { display: grid; gap: 1rem; }
.contact-form label { font-weight: 600; display: block; margin-bottom: 0.3rem; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 0.7rem 0.9rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 1rem; background: var(--bg-alt); color: var(--ink);
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.form-status { font-weight: 600; }
.form-status.error { color: #ff8a80; }
.form-status.success { color: #69db7c; }
.contact-details p { margin-bottom: 0.5rem; }

/* ---------- Gallery page ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-alt); color: var(--ink); padding: 2.5rem 0 1rem; margin-top: 4rem; }
.site-footer a { color: var(--ink); }
.site-footer-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2rem; }
.footer-brand .brand-logo { margin-bottom: 0.75rem; }
.footer-nav { display: flex; flex-direction: column; gap: 0.5rem; text-align: right; }
.footer-copyright { text-align: center; font-size: 0.8rem; opacity: 0.7; margin: 2rem 0 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--bg);
    flex-direction: column; padding: 1rem 1.25rem; gap: 1rem; box-shadow: var(--shadow);
    display: none;
  }
  .site-nav.open { display: flex; }
  .hero-grid, .boat-teaser, .charter-card, .boat-layout, .contact-layout { grid-template-columns: 1fr; }
  .charter-card:nth-child(even) .charter-copy { order: 0; }
  .charter-preview-grid { grid-template-columns: repeat(2, 1fr); }
  .location-preview-grid { grid-template-columns: repeat(2, 1fr); }
  .locations-grid { grid-template-columns: 1fr 1fr; }
  .crew-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-nav { text-align: left; }
  .site-footer-inner { flex-direction: column; }
}
@media (max-width: 560px) {
  .hero-photos { grid-template-columns: 1fr; }
  .charter-photos { grid-template-columns: 1fr; gap: 0.75rem; }
  .charter-photos .standard-box:first-child { grid-row: auto; }
  .locations-grid, .charter-preview-grid, .location-preview-grid, .gallery-grid { grid-template-columns: 1fr; }
}
