/* ==========================================================================
   Smooth Seas Sailing — site styles
   Design tokens from the design handoff (deep ocean navy theme)
   ========================================================================== */

:root {
  --bg: #0e1b2b;
  --nav-bg: rgba(20, 36, 56, 0.85);
  --card-bg: rgba(212, 212, 212, 0.08);
  --border-card: rgba(229, 229, 229, 0.14);
  --border-row: rgba(229, 229, 229, 0.12);
  --border-frame: rgba(229, 229, 229, 0.16);
  --border-badge: rgba(229, 229, 229, 0.25);
  --text: #ededed;
  --text-2: #d7dae0;
  --text-muted: #4fb2ff;
  --accent: #4fb2ff;
  --btn-bg: #ffffff;
  --btn-text: #161616;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-head: 'Geist', 'DM Sans', -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  font-family: var(--font-body);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--text); }
a:hover { color: #ffffff; }
::selection { background: rgba(107, 98, 242, 0.4); }

img { max-width: 100%; }

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
}

/* --------------------------------------------------------------------------
   Nav — sticky floating pill
   -------------------------------------------------------------------------- */
.nav-wrap {
  position: sticky;
  top: 16px;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 0 24px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-frame);
  border-radius: 9999px;
  padding: 6px 8px;
  max-width: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  padding: 4px 12px 4px 6px;
  white-space: nowrap;
}

.nav-brand img { width: 28px; height: 24px; object-fit: contain; }

.nav-brand span {
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
}

.nav-link {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 9999px;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-link:hover { background: rgba(212, 212, 212, 0.1); }

.nav-link.active {
  font-weight: 500;
  color: #161616;
  background: #ffffff;
}
.nav-link.active:hover { color: #161616; }

/* --------------------------------------------------------------------------
   Buttons & badges
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  background: var(--btn-bg);
  color: var(--btn-text);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 9999px;
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { color: var(--btn-text); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,0.35); }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 16px;
  padding: 10px 20px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  cursor: pointer;
  font-family: var(--font-body);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.btn-outline:hover { color: #ffffff; border-color: rgba(255, 255, 255, 0.8); }

.pill-btn {
  background: transparent;
  border: 1px solid var(--border-badge);
  border-radius: 9999px;
  padding: 9px 18px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-2);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.pill-btn:hover { color: #ffffff; border-color: rgba(229, 229, 229, 0.5); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border-badge);
  border-radius: 9999px;
  padding: 6px 16px;
  font-size: 14px;
  letter-spacing: 0.33px;
  color: var(--text-2);
}

/* --------------------------------------------------------------------------
   Page hero (title block)
   -------------------------------------------------------------------------- */
.page-hero { margin-top: 96px; }

h1.page-title {
  margin: 0;
  font-size: clamp(48px, 8vw, 80px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.035em;
  color: #ffffff;
  text-wrap: balance;
}

.page-hero .badge + h1.page-title { margin-top: 20px; }

.page-intro {
  margin: 24px 0 0;
  max-width: 760px;
  font-size: 20px;
  line-height: 1.55;
  color: var(--text-2);
}

/* --------------------------------------------------------------------------
   Home gradient hero
   -------------------------------------------------------------------------- */
.gradient-hero {
  margin-top: -64px;
  padding: 160px 24px 220px;
  background: linear-gradient(105deg, #c97b4e 0%, #9c6a5f 30%, #4d5a86 68%, #27418f 100%);
  position: relative;
}

.gradient-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 27, 43, 0.35) 0%, rgba(14, 27, 43, 0) 30%, rgba(14, 27, 43, 0.65) 100%);
}

.gradient-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
}

.gradient-hero h1 {
  margin: 0;
  font-size: clamp(48px, 8vw, 80px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.035em;
  color: #ffffff;
  text-wrap: balance;
}

.gradient-hero p {
  margin: 24px 0 0;
  max-width: 600px;
  font-size: 20px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
}

.hero-actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }

.hero-photo-wrap {
  max-width: 1400px;
  margin: -140px auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.hero-photo {
  display: block;
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 40px 40px 24px 24px;
  border: 1px solid var(--border-frame);
}

/* Trip page hero photo */
.trip-hero-wrap { margin-top: 48px; }

.trip-hero {
  display: block;
  width: 100%;
  height: 440px;
  object-fit: cover;
  border-radius: 40px 40px 24px 24px;
  border: 1px solid var(--border-frame);
}

.photo-credit {
  margin: 10px 4px 0;
  font-size: 13px;
  letter-spacing: 0.3px;
  color: var(--text-muted);
}
.photo-credit a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 2px; }
.photo-credit a:hover { color: var(--text-2); }

.photo-band { margin-top: 80px; }

.photo-band img {
  display: block;
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid var(--border-frame);
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { margin-top: 80px; }
.section-tight { margin-top: 64px; }

h2.section-title {
  margin: 0;
  font-family: var(--font-head);
  font-size: 36px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
}

/* Fact rows (Overview) */
.fact-list { display: flex; flex-direction: column; }

.fact-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--border-row);
}

.fact-row dt { font-size: 16px; color: var(--text-muted); margin: 0; }
.fact-row dd { font-size: 18px; color: var(--text); margin: 0; text-align: right; }
.fact-row a { text-decoration: underline; text-underline-offset: 3px; }

.overview-copy {
  margin: 0;
  font-size: 20px;
  line-height: 1.65;
  color: var(--text-2);
}

/* --------------------------------------------------------------------------
   Trip cards
   -------------------------------------------------------------------------- */
.trip-card {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  text-decoration: none;
  background: var(--card-bg);
  border: 1px solid var(--border-card);
  border-radius: 24px;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.trip-card:hover { border-color: rgba(229, 229, 229, 0.35); transform: translateY(-2px); }

.trip-card img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }

.trip-card-body {
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.trip-card-body h2, .trip-card-body h3 {
  margin: 0;
  font-family: var(--font-head);
  font-size: 40px;
  font-weight: 500;
  line-height: 1.11;
  color: var(--text);
}

.trip-card-body p {
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-2);
  max-width: 560px;
}

.trip-card-body .btn { margin-top: auto; }

.card-stack { display: flex; flex-direction: column; gap: 32px; }

/* Callout card */
.callout {
  background: var(--card-bg);
  border: 1px solid var(--border-card);
  border-radius: 24px;
  padding: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.callout h2 {
  margin: 0;
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 500;
  color: var(--text);
}

.callout p { margin: 8px 0 0; font-size: 18px; color: var(--text-2); }

/* Simple index rows (Where we've been / Channel Islands) */
.index-list { display: flex; flex-direction: column; }

.index-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  text-decoration: none;
  padding: 20px 4px;
  border-bottom: 1px solid var(--border-row);
  transition: background 0.15s ease;
}

a.index-row:hover { background: rgba(212, 212, 212, 0.05); }

.index-row .name { font-size: 20px; color: var(--text); }
.index-row .name .when { color: var(--text-muted); font-size: 15px; margin-left: 10px; }
.index-row .date { font-size: 16px; color: var(--text-muted); flex-shrink: 0; }

.index-row .num { font-size: 15px; color: var(--text-2); flex-shrink: 0; }
.index-row .num.muted { color: var(--text-muted); }

/* --------------------------------------------------------------------------
   Accordions
   -------------------------------------------------------------------------- */
.accordion {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-row);
}

.accordion details { border-bottom: 1px solid var(--border-row); }

.accordion summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 22px 4px;
  font: 400 20px var(--font-body);
  color: var(--text);
  transition: color 0.15s ease;
}

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

.accordion summary::after {
  content: "+";
  color: var(--accent);
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.2s ease, color 0.15s ease;
}

.accordion summary:hover::after { color: #8ccfff; }

.accordion details[open] summary::after { content: "\2013"; }
.accordion summary:hover { color: #ffffff; }

.accordion summary .head { font-family: var(--font-head); font-weight: 500; }
.accordion summary .day-tag { font-size: 15px; color: var(--text-2); margin-left: auto; }

.accordion-body {
  padding: 0 4px 26px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-2);
}

.accordion-body p { margin: 0 0 12px; }
.accordion-body p:last-child { margin-bottom: 0; }

.accordion-body ul {
  margin: 0 0 12px;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.accordion-body ul:last-child { margin-bottom: 0; }

.accordion-body strong { font-weight: 500; color: var(--text); }

.accordion-body a { text-decoration: underline; text-underline-offset: 3px; }

.notes { max-width: 1000px; }

.day-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.day-controls { display: flex; gap: 8px; }

/* Images inside accordion content */
.content-figure { margin: 20px 0 8px; }

.content-figure img {
  display: block;
  width: auto;
  max-width: min(640px, 100%);
  max-height: 760px;
  border-radius: 16px;
  border: 1px solid var(--border-frame);
  cursor: zoom-in;
  transition: opacity 0.15s ease;
}
.content-figure img:hover { opacity: 0.92; }

.content-figure figcaption {
  margin-top: 8px;
  font-size: 14px;
  letter-spacing: 0.33px;
  color: var(--text-muted);
}

.content-figure.wide img { max-width: 860px; }

/* Photo gallery strip */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin: 20px 0 8px;
}

.gallery img {
  display: block;
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border-frame);
  cursor: zoom-in;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.gallery img:hover { opacity: 0.9; transform: scale(1.02); }

.gallery-label {
  margin: 20px 0 0;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
}

/* --------------------------------------------------------------------------
   FAQ two-column
   -------------------------------------------------------------------------- */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 48px;
  align-items: start;
}

.faq-col h2 {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 500;
  color: var(--text);
}

.faq-col .accordion { border-top: 0; }

.faq-col .accordion summary .q { flex: 1; }

.faq-col .accordion-body { padding-bottom: 20px; }
.faq-col .accordion-body p { margin: 0 0 8px; }

/* --------------------------------------------------------------------------
   FAQ search
   -------------------------------------------------------------------------- */
.faq-search {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 560px;
  margin-top: 32px;
  padding: 4px 8px 4px 16px;
  background: var(--card-bg);
  border: 1px solid var(--border-badge);
  border-radius: 9999px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.faq-search:focus-within {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(212, 212, 212, 0.12);
}

.faq-search svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.faq-search input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  padding: 12px 0;
  font: 400 17px var(--font-body);
  color: var(--text);
}

.faq-search input::placeholder { color: var(--text-muted); }

.faq-search input::-webkit-search-cancel-button { -webkit-appearance: none; }

.faq-search-clear {
  background: transparent;
  border: 0;
  color: var(--text-muted);
  font-size: 22px;
  line-height: 1;
  padding: 6px 10px;
  cursor: pointer;
  border-radius: 9999px;
}
.faq-search-clear:hover { color: #ffffff; }

.faq-search-count {
  margin: 12px 0 0;
  font-size: 15px;
  color: var(--text-muted);
  min-height: 18px;
}

mark.faq-hl {
  background: rgba(240, 200, 90, 0.9);
  color: #161616;
  border-radius: 3px;
  padding: 0 2px;
}

.faq-col.search-empty { display: none; }

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(8, 15, 25, 0.92);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  padding: 40px;
  cursor: zoom-out;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: min(1200px, 92vw);
  max-height: 88vh;
  border-radius: 12px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
}

.lightbox .lb-caption {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 14px;
  color: var(--text-2);
}

.lightbox .lb-close {
  position: absolute;
  top: 20px;
  right: 28px;
  font-size: 28px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.7);
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
}
.lightbox .lb-close:hover { color: #ffffff; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
footer {
  max-width: 1400px;
  margin: 80px auto 0;
  padding: 28px 24px 40px;
  border-top: 1px solid rgba(229, 229, 229, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 24px; height: 20px; object-fit: contain; }
.footer-brand span { font-size: 15px; color: var(--text-muted); }

.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 14px; color: var(--text-muted); text-decoration: none; }
.footer-links a:hover { color: var(--text-2); }

/* --------------------------------------------------------------------------
   Reveal animation (subtle)
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .reveal.in { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 880px) {
  .nav { flex-wrap: wrap; justify-content: center; row-gap: 2px; }
  .nav-brand span { font-size: 14px; }
  .nav-link { padding: 6px 10px; }

  .gradient-hero { padding: 120px 24px 190px; }

  .hero-photo { height: 340px; }
  .trip-hero { height: 320px; border-radius: 28px 28px 18px 18px; }
  .photo-band img { height: 260px; }

  .split { grid-template-columns: 1fr; gap: 24px; }

  .trip-card { grid-template-columns: 1fr; }
  .trip-card img { min-height: 240px; max-height: 300px; }
  .trip-card-body { padding: 28px; }
  .trip-card-body h2, .trip-card-body h3 { font-size: 32px; }

  .faq-grid { grid-template-columns: 1fr; gap: 40px; }

  .section { margin-top: 64px; }
  .page-hero { margin-top: 72px; }

  .fact-row { flex-direction: column; gap: 2px; }
  .fact-row dd { text-align: left; }

  footer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .nav-wrap { padding: 0 12px; }
  .trip-card-body { padding: 22px; }
  .callout { padding: 28px; }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .gallery img { height: 130px; }
}
