:root {
  --navy: #0F3057;
  --navy-deep: #0A2340;
  --teal: #1C7293;
  --gold: #E9A13B;
  --cream: #EFEADC;
  --paper: #F2F7FA;
  --ink: #262624;
  --mist: #CADCFC;
  --muted: #6B6A66;
  --line: #D8D4C8;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 3px solid var(--gold);
}
.nav-row {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-family: var(--serif);
  font-weight: bold;
  font-size: 26px;
  color: #fff;
  letter-spacing: 0.5px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.brand .wave-mark { color: var(--gold); font-size: 20px; }
.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: block;
  padding: 10px 16px;
  font-size: 15px;
  letter-spacing: 0.3px;
  color: var(--mist);
  border-radius: 3px;
  transition: color .15s ease, background .15s ease;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.06); }
.nav-links a.active { color: var(--gold); font-weight: bold; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  background: none; border: none; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; }

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    inset: 76px 0 0 0;
    flex-direction: column;
    background: var(--navy-deep);
    padding: 18px 32px;
    gap: 2px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
  }
  .nav-links.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-links a { padding: 16px 4px; font-size: 18px; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-toggle { display: flex; }
}

/* ---------- Wave divider (signature element) ---------- */
.wave-divider {
  width: 100%;
  height: 40px;
  display: block;
}
.wave-divider.on-navy path { stroke: var(--gold); }
.wave-divider.on-paper path { stroke: var(--teal); opacity: 0.55; }

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(155deg, rgba(11,31,58,0.88) 0%, rgba(15,61,74,0.72) 100%),
    url("img/hero-sail.jpg") center 30% / cover no-repeat;
  color: #fff;
  padding: 96px 0 64px;
  position: relative;
  overflow: hidden;
}
.hero-eyebrow {
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 5px;
  color: var(--gold);
  text-transform: uppercase;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 78px);
  line-height: 1.05;
  margin: 22px 0 0;
  max-width: 15ch;
}
.hero p.lede {
  font-size: 21px;
  line-height: 1.6;
  color: var(--mist);
  max-width: 62ch;
  margin: 28px 0 0;
}
.hero .actions { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 14px 30px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 2px;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: #f4b458; }
.btn-outline { border-color: var(--mist); color: #fff; }
.btn-outline:hover { border-color: #fff; }

/* ---------- Sections ---------- */
section.block { padding: 88px 0; }
.block.paper { background: var(--paper); }
.eyebrow {
  font-size: 14px; font-weight: bold; letter-spacing: 5px;
  color: var(--teal); text-transform: uppercase;
}
h2.section-title {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 52px);
  color: var(--navy);
  margin: 18px 0 0;
  line-height: 1.1;
}
p.section-lede { font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 68ch; margin: 20px 0 0; }

/* ---------- Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 56px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; margin-top: 56px; }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 36px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(15,48,87,0.10); }
.card .num {
  font-family: var(--serif); font-weight: bold; font-size: 40px;
  color: var(--gold); line-height: 1;
}
.card h3 { font-family: var(--serif); font-size: 26px; color: var(--navy); margin: 16px 0 0; }
.card p { font-size: 16px; line-height: 1.55; color: var(--muted); margin: 12px 0 0; }
.card .meta { margin-top: 18px; font-size: 14px; color: var(--teal); font-weight: bold; letter-spacing: 0.4px; }

/* Log-style trip card */
.log-entry {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 32px;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}
.log-entry:first-child { padding-top: 0; }
.log-entry .num {
  font-family: var(--serif); font-weight: bold; font-size: 44px; color: var(--gold); line-height: 1;
}
.log-entry .status {
  display: inline-block; margin-top: 10px; font-size: 12px; font-weight: bold;
  letter-spacing: 1px; text-transform: uppercase; padding: 4px 10px;
  border: 1px solid currentColor; color: var(--teal);
}
.log-entry .status.done { color: var(--muted); }
.log-entry .status.planned { color: var(--gold); border-color: var(--gold); }
.log-entry h3 { font-family: var(--serif); font-size: 30px; color: var(--navy); margin: 0 0 8px; }
.log-entry .route { color: var(--teal); font-weight: bold; font-size: 15px; margin-bottom: 10px; }
.log-entry p { color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 68ch; }
.log-entry a.more { display: inline-block; margin-top: 14px; font-weight: bold; color: var(--navy); border-bottom: 2px solid var(--gold); }

@media (max-width: 640px) {
  .log-entry { grid-template-columns: 1fr; gap: 10px; }
}

/* ---------- Timeline (future trips) ---------- */
.timeline { margin-top: 56px; position: relative; }
.timeline::before {
  content: ''; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px;
  background: repeating-linear-gradient(to bottom, var(--gold) 0 6px, transparent 6px 12px);
}
.timeline-item { position: relative; padding: 0 0 44px 46px; }
.timeline-item::before {
  content: ''; position: absolute; left: 0; top: 4px; width: 24px; height: 24px;
  border-radius: 50%; background: var(--navy); border: 3px solid var(--gold);
}
.timeline-item .when { font-weight: bold; color: var(--teal); font-size: 15px; letter-spacing: 0.4px; }
.timeline-item h3 { font-family: var(--serif); font-size: 26px; color: var(--navy); margin: 8px 0 6px; }
.timeline-item p { color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 62ch; }

/* ---------- About ---------- */
.about-layout { display: grid; grid-template-columns: 320px 1fr; gap: 64px; margin-top: 56px; align-items: start; }
@media (max-width: 860px) { .about-layout { grid-template-columns: 1fr; } }
.portrait-frame {
  aspect-ratio: 4/5;
  display: flex; align-items: center; justify-content: center; color: var(--mist);
  font-family: var(--serif); font-size: 15px; text-align: center; border: 3px solid var(--gold);
  overflow: hidden;
}
.portrait-frame img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%;
}
.about-copy p { font-size: 18px; line-height: 1.7; color: var(--ink); margin: 0 0 20px; }
.stat-row { display: flex; gap: 48px; margin-top: 36px; flex-wrap: wrap; }
.stat-row .stat .n { font-family: var(--serif); font-weight: bold; font-size: 42px; color: var(--gold); line-height: 1; }
.stat-row .stat .l { margin-top: 8px; font-size: 14px; color: var(--muted); letter-spacing: 0.3px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 56px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  background: var(--navy); color: #fff; padding: 44px; position: relative; overflow: hidden;
}
.contact-card .eyebrow { color: var(--gold); }
.contact-card h3 { font-family: var(--serif); font-size: 28px; margin: 14px 0 18px; }
.contact-card a.big-link {
  display: inline-block; font-size: 20px; font-weight: bold; color: #fff;
  border-bottom: 2px solid var(--gold); padding-bottom: 3px; margin-top: 6px;
}
.contact-card p { color: var(--mist); line-height: 1.6; }
.social-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.social-list a { font-weight: bold; color: var(--navy); }
.social-list a:hover { color: var(--teal); }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--navy-deep); color: var(--mist); padding: 48px 0 32px; font-size: 14px;
}
.footer-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-row .brand { font-size: 19px; }
footer.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer.site-footer nav a:hover { color: #fff; }
.footer-copy { margin-top: 28px; color: #6d84a8; }

/* ---------- Utility ---------- */
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---------- Contact modal ---------- */
.contact-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity .18s ease;
}
.contact-modal.open { opacity: 1; pointer-events: auto; }
.contact-modal-backdrop {
  position: absolute; inset: 0; background: rgba(10,23,40,0.62);
}
.contact-modal-card {
  position: relative; z-index: 1;
  background: #fff; width: 100%; max-width: 480px;
  padding: 40px 36px 32px; border-top: 4px solid var(--gold);
  box-shadow: 0 24px 60px rgba(10,23,40,0.35);
  max-height: 88vh; overflow-y: auto;
  transform: translateY(10px) scale(0.98);
  transition: transform .18s ease;
}
.contact-modal.open .contact-modal-card { transform: translateY(0) scale(1); }
.contact-modal-card h3 {
  font-family: var(--serif); font-size: 28px; color: var(--navy); margin: 8px 0 22px;
}
.contact-modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px; border: none; background: none; cursor: pointer;
  font-size: 26px; line-height: 1; color: var(--muted);
}
.contact-modal-close:hover { color: var(--navy); }
.cf-label {
  display: block; font-size: 13px; font-weight: bold; letter-spacing: 0.3px;
  color: var(--navy); margin: 16px 0 6px;
}
.cf-label:first-of-type { margin-top: 0; }
.cf-input, .cf-textarea {
  width: 100%; font: inherit; font-size: 16px;
  border: 1px solid var(--line); padding: 12px 14px;
  background: var(--paper); color: var(--ink);
}
.cf-input:focus, .cf-textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; }
.cf-textarea { resize: vertical; min-height: 110px; }
.cf-counter { text-align: right; font-size: 12px; color: var(--muted); margin-top: 6px; }
.cf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cf-submit { margin-top: 20px; width: 100%; text-align: center; border: none; }
.cf-submit:disabled { opacity: 0.6; cursor: default; }
.cf-status { min-height: 20px; margin: 14px 0 0; font-size: 14px; }
.cf-status.ok { color: var(--teal); font-weight: bold; }
.cf-status.err { color: #b3492f; font-weight: bold; }
