/* ============================================================
   Bluebreak Charters — one page, phone first.
   Plain CSS. No build step, no framework, no web fonts.
   Widths grow at 700px (two columns) and 1000px (three).
   ============================================================ */

:root {
  --navy-900: #04192b;
  --navy-800: #062033;
  --navy-700: #0b3350;
  --blue-500: #1673b4;
  --blue-300: #7fc0ec;
  --sand:     #f6f2ea;
  --paper:    #ffffff;
  --ink:      #16242e;
  --ink-soft: #4a5b68;
  --sun:      #e8893a;
  --sun-dark: #c96f24;

  --wrap: 1100px;
  --radius: 14px;
  --tap: 48px;                       /* every button clears this */
  --shadow: 0 2px 4px rgba(4, 25, 43, .06), 0 10px 28px rgba(4, 25, 43, .10);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;          /* sticky header does not cover headings */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;              /* 17px — readable outdoors */
  line-height: 1.6;
  overflow-x: hidden;                /* nothing escapes sideways */
}

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

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(1.65rem, 5vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p  { margin: 0 0 1rem; }

a { color: var(--blue-500); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }

.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;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--sun); color: #fff; padding: .85rem 1.25rem;
  font-weight: 600; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ───────────────────────── Header ───────────────────────── */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 32, 51, .92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 60px;
}

.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  color: #fff; text-decoration: none; font-weight: 700;
  font-size: 1.02rem; letter-spacing: -.01em;
  padding: .4rem 0;
}

.brand-mark {
  width: 20px; height: 20px; flex: 0 0 20px; border-radius: 50%;
  background:
    linear-gradient(to bottom, var(--blue-300) 0 48%, var(--blue-500) 48% 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .85);
}

.nav { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }

.nav a {
  display: inline-block;
  color: rgba(255, 255, 255, .86);
  text-decoration: none;
  font-size: .95rem; font-weight: 600;
  padding: .7rem .6rem;
  border-radius: 8px;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .1); }

/* On the narrowest phones the brand name alone is enough up top. */
@media (max-width: 380px) {
  .brand-name { font-size: .95rem; }
  .nav a { padding: .7rem .4rem; font-size: .88rem; }
}

/* ───────────────────────── Buttons ───────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--tap);
  padding: .8rem 1.5rem;
  border-radius: 999px;
  font-size: 1.02rem; font-weight: 700;
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
  transition: transform .12s ease, background-color .12s ease, box-shadow .12s ease;
}

.btn-primary {
  background: var(--sun); color: #fff;
  box-shadow: 0 4px 14px rgba(201, 111, 36, .35);
}
.btn-primary:hover { background: var(--sun-dark); }
.btn-primary:active { transform: translateY(1px); }

.btn-block { display: flex; width: 100%; margin-top: auto; }
.btn-wide  { display: flex; width: 100%; max-width: 420px; margin: 2rem auto 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* ───────────────────────── Hero ───────────────────────── */

.hero {
  position: relative;
  min-height: 86svh;                 /* fills a phone screen, mobile bars allowed for */
  display: flex; align-items: flex-end;
  padding: 5rem 0 3rem;
  background: var(--navy-900);
  overflow: hidden;
}

/* Fallback for browsers without svh */
@supports not (height: 1svh) {
  .hero { min-height: 86vh; }
}

/* <picture> wraps the photo so browsers can take the WebP and older ones
   fall back to the JPEG. It is taken out of flow with the image. */
.hero picture { position: absolute; inset: 0; display: block; }

.hero-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 62% center;       /* keeps the boat in frame on narrow screens */
}

/* Dark from the bottom so white text always has something to sit on. */
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top,
      rgba(4, 25, 43, .92) 0%,
      rgba(4, 25, 43, .78) 28%,
      rgba(4, 25, 43, .34) 58%,
      rgba(4, 25, 43, .12) 100%);
}

.hero-inner { position: relative; color: #fff; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: .78rem; font-weight: 700;
  color: var(--blue-300);
  margin: 0 0 .6rem;
}

.hero h1 {
  font-size: clamp(2.6rem, 12vw, 5rem);
  margin: 0 0 .35em;
  letter-spacing: -.025em;
  text-shadow: 0 2px 24px rgba(4, 25, 43, .6);
}

.hero-line {
  font-size: clamp(1.08rem, 4.4vw, 1.4rem);
  max-width: 34ch;
  color: rgba(255, 255, 255, .95);
  margin-bottom: 1.75rem;
  text-shadow: 0 1px 14px rgba(4, 25, 43, .7);
}

.hero-actions { display: flex; flex-direction: column; gap: .75rem; }

@media (min-width: 560px) {
  .hero-actions { flex-direction: row; }
  .hero-line { max-width: 42ch; }
}

/* ───────────────────────── Sections ───────────────────────── */

.section { padding: 3.25rem 0; }
.section h2 { text-align: center; }

.section-intro {
  text-align: center;
  max-width: 54ch;
  margin: 0 auto 2.25rem;
  color: var(--ink-soft);
  font-size: 1.06rem;
}

@media (min-width: 700px) {
  .section { padding: 4.5rem 0; }
}

/* ───────────────────────── Trip cards ───────────────────────── */

.trips { background: var(--sand); }

.card-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 700px)  { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  display: flex; flex-direction: column;
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.card picture { display: block; }

.card-photo { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

@supports not (aspect-ratio: 3 / 2) {
  .card-photo { height: 210px; }
}

.card-body {
  display: flex; flex-direction: column; flex: 1;
  padding: 1.4rem 1.25rem 1.5rem;
}

.card h3 { color: var(--navy-800); margin-bottom: .75rem; }

.facts { list-style: none; margin: 0 0 1rem; padding: 0; }

.facts li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .45rem 0;
  border-bottom: 1px solid #e9e3d8;
  font-size: .95rem;
}
.facts li:first-child { border-top: 1px solid #e9e3d8; }

.fact-k { color: var(--ink-soft); }
.fact-v { font-weight: 700; text-align: right; color: var(--navy-700); }

.card-body p { color: var(--ink-soft); margin-bottom: 1.4rem; }

/* ───────────────────────── Included ───────────────────────── */

.two-col { display: grid; gap: 2rem; }

@media (min-width: 760px) {
  .two-col { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

.col-title {
  color: var(--navy-800);
  padding-bottom: .5rem;
  border-bottom: 3px solid var(--blue-300);
  display: inline-block;
}

.ticks, .dots { list-style: none; margin: 0 0 1rem; padding: 0; }

.ticks li, .dots li {
  position: relative;
  padding: .5rem 0 .5rem 2rem;
  border-bottom: 1px solid #ecefF1;
}

.ticks li::before {
  content: "";
  position: absolute; left: .25rem; top: 1.05rem;
  width: 11px; height: 6px;
  border-left: 3px solid var(--blue-500);
  border-bottom: 3px solid var(--blue-500);
  transform: rotate(-45deg);
}

.dots li::before {
  content: "";
  position: absolute; left: .45rem; top: 1.1rem;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--sun);
}

.note {
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  background: var(--sand);
  border-left: 4px solid var(--sun);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink-soft);
  font-size: .98rem;
}

/* ───────────────────────── Contact ───────────────────────── */

.contact { background: var(--navy-800); color: #fff; }
.contact h2 { color: #fff; }
.contact .section-intro { color: rgba(255, 255, 255, .8); }

.contact-list {
  list-style: none; margin: 0 auto; padding: 0;
  max-width: 640px;
}

.contact-item {
  display: flex; flex-direction: column; gap: .15rem;
  padding: .9rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.contact-label {
  font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--blue-300);
}

.contact-value {
  font-size: 1.1rem; font-weight: 600;
  color: #fff;
  word-break: break-word;
  min-height: 1.6rem;
}

/* Tappable values get the full thumb target. */
a.contact-value {
  display: inline-flex; align-items: center;
  min-height: var(--tap);
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(127, 192, 236, .8);
  text-underline-offset: 4px;
}
a.contact-value:hover { color: var(--blue-300); }

/* Details the owner has still to supply. */
.pending {
  color: rgba(255, 255, 255, .62);
  font-weight: 500; font-style: italic;
}

.weather {
  max-width: 640px;
  margin: 2.5rem auto 0;
  padding: 1.35rem 1.4rem;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
}
.weather h3 { color: var(--blue-300); font-size: 1.1rem; }
.weather p  { color: rgba(255, 255, 255, .88); margin: 0; font-size: .98rem; }

/* ───────────────────────── Footer ───────────────────────── */

.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, .62);
  padding: 2.25rem 0 2.75rem;
  text-align: center;
}

.footer-brand {
  color: #fff; font-weight: 700; font-size: 1.05rem;
  margin: 0 0 .4rem; letter-spacing: -.01em;
}

.footer-small {
  margin: 0 auto;
  max-width: 58ch;
  font-size: .85rem;
  line-height: 1.6;
}

/* ───────────────────────── Print ───────────────────────── */

@media print {
  .site-header, .hero-photo, .hero-scrim, .btn { display: none !important; }
  body { color: #000; font-size: 11pt; }
  .hero { min-height: 0; padding: 0; background: none; }
  .hero-inner, .hero h1, .hero-line { color: #000; text-shadow: none; }
  .contact { background: none; color: #000; }
  .contact h2, .contact-value, .contact-label, .weather h3, .weather p { color: #000; }
}
