/* ==========================================================================
   Salt & Sail SXM — Design system
   Palette: deep chart-navy + warm paper + lagoon teal + brass accent
   Type: Fraunces (display) / Libre Franklin (text)
   ========================================================================== */

:root {
  --ink: #0d1f2d;
  --ink-soft: #16303f;
  --paper: #f7f4ec;
  --paper-dim: #efe9d8;
  --lagoon: #1f6f63;
  --lagoon-dark: #164f46;
  --brass: #b8862f;
  --brass-light: #d9ac57;
  --text: #1a2229;
  --text-on-ink: #f7f4ec;
  --text-muted: #55606a;
  --line: #d8d0bc;
  --line-on-ink: rgba(247, 244, 236, 0.22);
  --max: 1120px;
  --radius: 2px;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Libre Franklin", "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 500; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; max-width: 62ch; color: var(--text); }
p.lede { font-size: 1.15rem; color: var(--text-muted); }

a { color: var(--lagoon-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brass); }

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

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85em 1.5em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--brass); color: var(--ink); }
.btn-primary:hover { background: var(--brass-light); color: var(--ink); }
.btn-outline-ink { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline-ink:hover { background: var(--ink); color: var(--text-on-ink); }
.btn-outline-light { border-color: var(--line-on-ink); color: var(--text-on-ink); background: transparent; }
.btn-outline-light:hover { border-color: var(--brass-light); color: var(--brass-light); }

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--ink);
  color: var(--text-on-ink);
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line-on-ink);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 1.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-on-ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.01em;
}
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand small { display: block; font-family: var(--font-body); font-size: 0.62rem; letter-spacing: 0.14em; color: var(--brass-light); font-weight: 600; }

.main-nav { display: flex; align-items: center; gap: 1.75rem; }
.main-nav a {
  color: var(--text-on-ink);
  text-decoration: none;
  font-size: 0.95rem;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { border-bottom-color: var(--brass); color: var(--text-on-ink); }

.lang-switch { display: flex; gap: 0.4rem; font-size: 0.85rem; }
.lang-switch a { color: var(--line-on-ink); padding: 0.2em 0.4em; }
.lang-switch a[aria-current="true"] { color: var(--brass-light); font-weight: 700; }

.nav-actions { display: flex; align-items: center; gap: 1.25rem; }

.nav-toggle { display: none; }

@media (max-width: 860px) {
  .main-nav { position: fixed; inset: 64px 0 0 0; background: var(--ink); flex-direction: column; align-items: flex-start; padding: 1.5rem; gap: 1.25rem; transform: translateX(100%); transition: transform 0.25s ease; }
  .main-nav.open { transform: translateX(0); }
  .nav-toggle {
    display: inline-flex; background: none; border: 1px solid var(--line-on-ink); color: var(--text-on-ink);
    width: 40px; height: 40px; align-items: center; justify-content: center; cursor: pointer; border-radius: var(--radius);
  }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--ink);
  color: var(--text-on-ink);
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 0;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; padding-bottom: 3rem; }
.hero-eyebrow { font-size: 0.95rem; color: var(--brass-light); font-family: var(--font-display); font-style: italic; margin-bottom: 0.75rem; }
.hero p.lede { color: rgba(247,244,236,0.78); }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.75rem; }
.hero-figure { position: relative; }
.horizon {
  width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ---------- Sections ---------- */
section { padding: 4.5rem 0; }
section.tight { padding: 3rem 0; }
.section-dark { background: var(--ink); color: var(--text-on-ink); }
.section-dark p { color: rgba(247,244,236,0.75); }
.section-dim { background: var(--paper-dim); }

.section-head { max-width: 640px; margin-bottom: 2.5rem; }
.kicker { font-family: var(--font-display); font-style: italic; color: var(--lagoon-dark); font-size: 1.05rem; margin-bottom: 0.4em; }
.section-dark .kicker { color: var(--brass-light); }

/* ---------- Two column intro ---------- */
.intro-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3.5rem; align-items: start; }
.spec-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.spec-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7em 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.spec-list span:first-child { color: var(--text-muted); }
.spec-list span:last-child { font-weight: 600; text-align: right; }

@media (max-width: 860px) {
  .intro-grid { grid-template-columns: 1fr; }
}

/* ---------- Logbook / itinerary ---------- */
.logbook { border-left: 1px solid var(--line); margin-left: 0.4rem; }
.log-entry { position: relative; padding: 0 0 2.5rem 2.25rem; }
.log-entry:last-child { padding-bottom: 0; }
.log-entry::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 0.4em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brass);
}
.log-time { font-family: var(--font-display); font-style: italic; color: var(--lagoon-dark); font-size: 1.05rem; display: block; margin-bottom: 0.2em; }

/* ---------- Photo placeholders ---------- */
.photo-slot {
  border: 1px dashed var(--ink);
  background: repeating-linear-gradient(135deg, transparent, transparent 10px, rgba(13,31,45,0.05) 10px, rgba(13,31,45,0.05) 11px);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.85rem;
  padding: 1.5rem;
  min-height: 220px;
  border-radius: var(--radius);
}
.photo-slot span { max-width: 22ch; }
.section-dark .photo-slot { border-color: var(--line-on-ink); color: rgba(247,244,236,0.6); }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.gallery-grid .photo-slot:nth-child(3n+1) { min-height: 280px; }
@media (max-width: 720px) { .gallery-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .gallery-grid { grid-template-columns: 1fr; } }

/* ---------- Cards-free feature rows ---------- */
.feature-rows { border-top: 1px solid var(--line); }
.feature-row { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; padding: 1.75rem 0; border-bottom: 1px solid var(--line); }
.feature-row h3 { margin-bottom: 0.3em; }
@media (max-width: 700px) { .feature-row { grid-template-columns: 1fr; gap: 0.4rem; } }

/* ---------- Pricing / manifest table ---------- */
.manifest { width: 100%; border-collapse: collapse; margin-top: 1.5rem; }
.manifest caption { text-align: left; font-family: var(--font-display); font-style: italic; font-size: 1.2rem; margin-bottom: 0.75rem; color: var(--lagoon-dark); }
.manifest th, .manifest td { text-align: left; padding: 0.9em 0.75em; border-bottom: 1px solid var(--line); font-size: 0.97rem; }
.manifest thead th { border-bottom: 2px solid var(--ink); font-family: var(--font-body); font-weight: 700; }
.manifest td:last-child, .manifest th:last-child { text-align: right; white-space: nowrap; }
.note {
  border-left: 3px solid var(--brass);
  padding: 0.9rem 1.25rem;
  background: var(--paper-dim);
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
}
.placeholder-tag { color: var(--brass); font-weight: 700; }

.included-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; margin-top: 2rem; }
.included-cols h4 { font-family: var(--font-body); font-weight: 700; font-size: 0.85rem; text-transform: none; margin-bottom: 0.6em; color: var(--lagoon-dark); }
.included-cols ul { margin: 0; padding-left: 1.1em; }
.included-cols li { margin-bottom: 0.4em; }
@media (max-width: 700px) { .included-cols { grid-template-columns: 1fr; } }

/* ---------- Testimonials ---------- */
.testi { border-top: 1px solid var(--line); }
.testi blockquote { border-bottom: 1px solid var(--line); padding: 2rem 0; margin: 0; }
.testi blockquote p { font-family: var(--font-display); font-size: 1.3rem; font-style: italic; max-width: 58ch; color: var(--text); }
.testi cite { font-style: normal; font-size: 0.88rem; color: var(--text-muted); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--lagoon); color: var(--text-on-ink); text-align: left; }
.cta-band h2 { color: var(--text-on-ink); }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band p { color: rgba(247,244,236,0.85); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; }
.contact-details dt { font-size: 0.8rem; color: var(--text-muted); margin-top: 1.2em; }
.contact-details dd { margin: 0.15em 0 0; font-size: 1.05rem; font-weight: 600; }
.form-field { margin-bottom: 1.1rem; }
.form-field label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.35em; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 0.7em 0.85em; border: 1px solid var(--line); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 0.98rem; background: #fff; color: var(--text);
}
.form-field textarea { resize: vertical; min-height: 110px; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(247,244,236,0.75); padding: 3.5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--line-on-ink); }
.footer-grid h4 { color: var(--text-on-ink); font-family: var(--font-body); font-weight: 700; font-size: 0.85rem; margin-bottom: 0.9em; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 0.55em; }
.footer-grid a { color: rgba(247,244,236,0.75); text-decoration: none; }
.footer-grid a:hover { color: var(--brass-light); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 1.5rem; font-size: 0.82rem; flex-wrap: wrap; gap: 0.75rem; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Utility ---------- */
.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: -999px; top: 0; background: var(--brass); color: var(--ink);
  padding: 0.6em 1em; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
