:root {
  --navy: #062d47;
  --navy-deep: #031f32;
  --blue: #0d6582;
  --aqua: #62c6c4;
  --sun: #ffc857;
  --cream: #f8f4ea;
  --paper: #fffdf8;
  --ink: #163242;
  --muted: #647985;
  --line: rgba(6, 45, 71, 0.13);
  --radius-lg: 30px;
  --radius-md: 20px;
  --shadow: 0 24px 60px rgba(2, 32, 51, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--cream);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, select, input { font: inherit; }
button { color: inherit; }

.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: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  transform: translateY(-140%);
  padding: 10px 16px;
  border-radius: 8px;
  background: white;
  color: var(--navy);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  padding: 0 clamp(22px, 5vw, 76px);
  color: white;
  transition: background .25s ease, box-shadow .25s ease, height .25s ease;
}
.site-header.is-solid {
  height: 70px;
  background: rgba(3, 31, 50, .94);
  box-shadow: 0 10px 30px rgba(3, 31, 50, .14);
  backdrop-filter: blur(14px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -.03em;
  font-size: 1.15rem;
}
.brand em { color: var(--aqua); font-style: normal; font-weight: 500; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  color: var(--sun);
  font-size: 1.6rem;
  line-height: 1;
}
.primary-nav { display: flex; align-items: center; gap: 32px; font-size: .92rem; font-weight: 650; }
.primary-nav a { opacity: .84; transition: opacity .2s ease; }
.primary-nav a:hover, .primary-nav a:focus-visible { opacity: 1; }
.primary-nav .nav-cta {
  padding: 10px 18px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  opacity: 1;
}
.menu-toggle { display: none; background: none; border: 0; padding: 8px; }
.menu-toggle > span:not(.sr-only) { display: block; width: 24px; height: 2px; margin: 5px; background: white; }

.hero {
  position: relative;
  isolation: isolate;
  min-height: 820px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  align-items: center;
  gap: clamp(50px, 8vw, 130px);
  padding: 130px clamp(24px, 7vw, 110px) 190px;
  overflow: hidden;
  background:
    radial-gradient(circle at 83% 22%, rgba(98,198,196,.22), transparent 25%),
    linear-gradient(125deg, #052b45 0%, #084761 52%, #0d6b7c 100%);
  color: white;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .16;
  background-image: radial-gradient(rgba(255,255,255,.7) .7px, transparent .7px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to right, black, transparent 75%);
}
.hero-copy { min-width: 0; max-width: 720px; }
.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow.light { color: var(--aqua); }
.hero h1, .section-intro h2, .section-heading-row h2, .island-copy h2, .closing-card h2, .legal-shell h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.045em;
}
.hero h1 { margin: 0; font-size: clamp(3.6rem, 7.6vw, 7.5rem); }
.hero h1 span { color: var(--sun); font-style: italic; }
.hero-lead { max-width: 590px; margin: 30px 0 0; color: rgba(255,255,255,.74); font-size: clamp(1.05rem, 1.7vw, 1.3rem); }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 38px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 25px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-sun { background: var(--sun); color: var(--navy-deep); box-shadow: 0 12px 25px rgba(255,200,87,.2); }
.button-primary { background: var(--navy); color: white; box-shadow: 0 12px 25px rgba(3,31,50,.14); }
.text-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; }
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translateX(4px); }
.light-link { color: white; }

.hero-route {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: clamp(25px, 3vw, 38px);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.1);
  box-shadow: 0 40px 90px rgba(1,21,35,.3);
  backdrop-filter: blur(16px);
  transform: rotate(1.5deg);
}
.route-card-top { display: flex; align-items: center; gap: 9px; color: rgba(255,255,255,.7); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 5px rgba(255,200,87,.15); }
.route-ports { display: grid; grid-template-columns: 1fr minmax(70px, .6fr) 1fr; align-items: center; gap: 12px; padding: 42px 0 34px; }
.route-ports strong { display: block; font-family: Georgia, serif; font-size: clamp(1.6rem, 2.8vw, 2.5rem); font-weight: 500; }
.route-ports small { color: var(--aqua); }
.align-right { text-align: right; }
.route-line { position: relative; text-align: center; }
.route-line::before { content: ""; position: absolute; top: 50%; left: 0; right: 0; border-top: 1px dashed rgba(255,255,255,.45); }
.route-line span { position: relative; z-index: 1; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--sun); color: var(--navy); }
.route-meta { display: flex; justify-content: space-between; gap: 20px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.65); font-size: .78rem; }
.hero-orbit { position: absolute; z-index: -1; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; }
.orbit-one { width: 620px; height: 620px; right: -120px; top: 60px; }
.orbit-two { width: 420px; height: 420px; right: -20px; top: 160px; }
.hero-coast { position: absolute; z-index: 0; left: 0; right: 0; bottom: -1px; height: 210px; }
.hero-coast svg { width: 100%; height: 100%; }

.section-shell { width: min(1180px, calc(100% - 44px)); margin: 0 auto; }
.finder-section { position: relative; z-index: 5; margin-top: -58px; padding: 32px clamp(24px, 4vw, 48px) 28px; border: 1px solid rgba(6,45,71,.08); border-radius: var(--radius-lg); background: var(--paper); box-shadow: var(--shadow); }
.section-intro h2, .section-heading-row h2, .island-copy h2, .closing-card h2 { margin: 0; color: var(--navy); font-size: clamp(2.3rem, 4.5vw, 4.6rem); }
.compact-intro { display: grid; grid-template-columns: .75fr 1fr; column-gap: 40px; align-items: end; }
.compact-intro .eyebrow { grid-column: 1 / -1; }
.compact-intro p:last-child { margin: 0; color: var(--muted); }
.route-finder { display: grid; grid-template-columns: 1fr auto 1fr minmax(160px, .65fr) auto; align-items: end; gap: 12px; margin-top: 30px; }
.route-finder label { display: grid; gap: 7px; color: var(--muted); font-size: .78rem; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.route-finder input { width: 100%; height: 54px; min-width: 0; padding: 0 16px; border: 1px solid var(--line); border-radius: 14px; background: white; color: var(--ink); }
.route-finder input:focus { outline: 3px solid rgba(98,198,196,.28); border-color: var(--aqua); }
.swap-button { width: 44px; height: 44px; margin-bottom: 5px; border: 1px solid var(--line); border-radius: 50%; background: white; cursor: pointer; }
.finder-button { height: 54px; }
.finder-button:disabled { opacity: .75; cursor: wait; transform: none; }
.button-spinner { width: 16px; height: 16px; margin-left: 10px; border: 2px solid rgba(255,255,255,.35); border-top-color: white; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.data-note { margin: 18px 0 0; color: var(--muted); font-size: .78rem; }
.form-error { margin: 16px 0 0; padding: 12px 15px; border-radius: 12px; background: #fff0ed; color: #8e362c; font-size: .88rem; font-weight: 700; }

.routes-section { padding: 120px 0 130px; }
.section-heading-row { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 38px; }
.result-count { color: var(--muted); font-weight: 700; }
.routes-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.route-result-card { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255,255,255,.58); transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.route-result-card:hover { transform: translateY(-4px); background: white; box-shadow: 0 18px 45px rgba(6,45,71,.09); }
.route-result-region { color: var(--blue); font-size: .72rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.route-result-ports { display: grid; grid-template-columns: 1fr auto 1fr; gap: 15px; align-items: center; margin: 18px 0 10px; }
.route-result-ports strong:last-child { text-align: right; }
.route-result-ports span { color: var(--aqua); font-size: 1.35rem; }
.route-result-card p { margin: 0 0 18px; color: var(--muted); font-size: .9rem; }
.schedule-label { display: inline-block; padding: 6px 10px; border-radius: 999px; background: #e8f3f2; color: #226866; font-size: .7rem; font-weight: 800; }
.route-check-button { display: inline-flex; gap: 8px; padding: 0; border: 0; background: none; color: var(--blue); font-weight: 800; cursor: pointer; }
.route-check-button span { transition: transform .2s ease; }
.route-check-button:hover span { transform: translateX(4px); }
.empty-results { padding: 50px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius-md); }
.text-button { border: 0; background: none; color: var(--blue); font-weight: 800; text-decoration: underline; cursor: pointer; }
.disruption-panel { margin: -12px 0 24px; padding: 18px 22px; border: 1px solid #e6c66a; border-radius: 16px; background: #fff8dc; color: #674f13; }
.disruption-panel summary { font-weight: 850; cursor: pointer; }
.disruption-panel p { margin: 8px 0; font-size: .82rem; }
.disruption-panel ul { margin: 10px 0 0; padding-left: 20px; font-size: .82rem; }
.disruption-panel li + li { margin-top: 6px; }
.sailing-card { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 220px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255,255,255,.72); box-shadow: 0 14px 42px rgba(6,45,71,.06); }
.sailing-card-main { min-width: 0; padding: 24px 28px; }
.operator-row { display: flex; align-items: center; gap: 12px; }
.operator-row > div { display: grid; }
.operator-row small { color: var(--muted); }
.operator-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--navy); color: var(--sun); font-weight: 900; }
.sailing-times { display: grid; grid-template-columns: 1fr minmax(110px, .55fr) 1fr; align-items: center; gap: 18px; margin: 27px 0 21px; }
.sailing-times strong { display: block; color: var(--navy); font-family: Georgia, serif; font-size: 2rem; font-weight: 500; line-height: 1; }
.sailing-times div > span { color: var(--muted); font-size: .78rem; }
.duration-line { position: relative; text-align: center; }
.duration-line::before { content: ""; position: absolute; z-index: 0; top: 50%; left: 0; right: 0; border-top: 1px dashed rgba(6,45,71,.28); }
.duration-line span { position: relative; z-index: 1; padding: 4px 9px; border-radius: 999px; background: var(--paper); color: var(--blue) !important; font-weight: 800; }
.trip-flags { display: flex; flex-wrap: wrap; gap: 7px; }
.trip-flags span { padding: 5px 9px; border-radius: 999px; background: #edf5f4; color: #2c6a68; font-size: .68rem; font-weight: 800; }
.sailing-card-action { display: flex; align-items: stretch; justify-content: center; flex-direction: column; padding: 24px; border-left: 1px solid var(--line); background: white; }
.sailing-card-action > small { color: var(--muted); }
.sailing-card-action > strong { margin: 2px 0 15px; color: var(--navy); font-family: Georgia, serif; font-size: 2rem; font-weight: 500; }
.sailing-card-action > span { margin-top: 10px; color: var(--muted); font-size: .64rem; text-align: center; }
.booking-button { min-height: 46px; padding-inline: 15px; font-size: .78rem; }

.islands-section { padding: 110px 0; background: var(--navy); color: white; }
.island-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(60px, 10vw, 150px); align-items: center; }
.island-copy h2, .closing-card h2 { color: white; }
.island-copy > p:not(.eyebrow) { max-width: 480px; color: rgba(255,255,255,.68); }
.island-list { border-top: 1px solid rgba(255,255,255,.16); }
.island-list article { display: grid; grid-template-columns: 45px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.island-list article > span { color: var(--aqua); font-size: .72rem; font-weight: 800; }
.island-list h3 { margin: 0 0 3px; font-family: Georgia, serif; font-size: 1.55rem; font-weight: 500; }
.island-list p { margin: 0; color: rgba(255,255,255,.56); font-size: .88rem; }

.guide-section { padding: 130px 0 90px; }
.section-intro { max-width: 720px; }
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 55px; }
.guide-grid article { min-height: 280px; padding: 30px; border-top: 3px solid var(--aqua); background: rgba(255,255,255,.5); }
.guide-number { color: var(--blue); font-size: .72rem; font-weight: 900; }
.guide-grid h3 { margin: 65px 0 10px; font-family: Georgia, serif; font-size: 1.7rem; font-weight: 500; }
.guide-grid p { margin: 0; color: var(--muted); font-size: .92rem; }

.closing-section { padding: 35px 0 120px; }
.closing-card { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: clamp(35px, 6vw, 72px); border-radius: var(--radius-lg); background: linear-gradient(125deg, #0d6077, #062d47); color: white; overflow: hidden; }
.closing-card h2 { font-size: clamp(2.5rem, 5vw, 5rem); }
.site-footer { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 25px; padding: 50px clamp(22px, 5vw, 76px); background: var(--navy-deep); color: rgba(255,255,255,.7); }
.footer-brand { color: white; }
.site-footer p { text-align: center; }
.footer-links { display: flex; gap: 18px; justify-content: flex-end; font-size: .85rem; }
.site-footer small { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: .74rem; }

.legal-page { min-height: 100vh; background: var(--cream); }
.legal-page .site-header { position: static; background: var(--navy-deep); }
.legal-shell { width: min(760px, calc(100% - 44px)); margin: 0 auto; padding: 100px 0; }
.legal-shell h1 { margin: 0 0 30px; color: var(--navy); font-size: clamp(3rem, 7vw, 6rem); }
.legal-shell p { color: var(--muted); }
.legal-shell .text-link { margin-top: 24px; color: var(--blue); }
.empty-state-page { display: grid; min-height: 80vh; align-content: center; justify-items: start; }

@media (max-width: 900px) {
  .hero { min-height: auto; grid-template-columns: minmax(0, 1fr); padding-top: 145px; padding-bottom: 175px; }
  .hero-copy { max-width: 760px; }
  .hero-route { width: min(570px, 100%); justify-self: end; }
  .compact-intro { grid-template-columns: 1fr; gap: 16px; }
  .route-finder { grid-template-columns: 1fr auto 1fr; }
  .route-finder label:nth-of-type(3) { grid-column: 1 / 2; }
  .finder-button { grid-column: 2 / -1; }
  .island-layout { grid-template-columns: 1fr; }
  .guide-grid { grid-template-columns: 1fr; }
  .guide-grid article { min-height: auto; }
  .guide-grid h3 { margin-top: 30px; }
  .site-footer { grid-template-columns: 1fr; text-align: left; }
  .site-footer p { text-align: left; }
  .footer-links { justify-content: flex-start; }
  .site-footer small { grid-column: 1; }
}

@media (max-width: 720px) {
  .site-header { height: 72px; padding-inline: 20px; }
  .menu-toggle { display: block; }
  .primary-nav {
    position: absolute;
    top: 68px;
    left: 15px;
    right: 15px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 14px;
    border-radius: 16px;
    background: var(--paper);
    color: var(--navy);
    box-shadow: var(--shadow);
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: 12px; }
  .primary-nav .nav-cta { border-color: var(--line); }
  .hero { padding-inline: 22px; padding-top: 125px; }
  .hero h1 { max-width: 100%; font-size: clamp(3rem, 13vw, 4.8rem); overflow-wrap: anywhere; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .route-ports { grid-template-columns: 1fr; gap: 16px; text-align: center; }
  .align-right { text-align: center; }
  .route-line::before { left: 18%; right: 18%; }
  .route-meta { flex-direction: column; gap: 5px; text-align: center; }
  .finder-section { width: calc(100% - 24px); margin-top: -35px; }
  .route-finder { grid-template-columns: 1fr; }
  .swap-button { justify-self: center; margin: -4px 0; transform: rotate(90deg); }
  .finder-button { grid-column: 1; }
  .routes-section, .guide-section { padding-top: 90px; padding-bottom: 90px; }
  .section-heading-row { align-items: flex-start; flex-direction: column; }
  .routes-grid { grid-template-columns: 1fr; }
  .route-result-ports { font-size: .9rem; }
  .sailing-card { grid-template-columns: 1fr; }
  .sailing-card-main { padding: 22px 20px; }
  .sailing-card-action { border-top: 1px solid var(--line); border-left: 0; }
  .sailing-times { grid-template-columns: 1fr; gap: 12px; }
  .sailing-times > div, .sailing-times .align-right { text-align: left; }
  .duration-line { text-align: left; }
  .duration-line::before { display: none; }
  .duration-line span { padding-left: 0; }
  .islands-section { padding: 85px 0; }
  .closing-card { align-items: flex-start; flex-direction: column; }
}

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