/* Cruise Asia enquiry page, 2026-10-05 redesign.
   One stylesheet replaces com.css, globals.css, mobile-ui.css and motion.css.
   Colours: Andaman Deep, Lagoon, white, Haze, Ink and Buoy Orange (the only primary button colour). */

@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/public-sans-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/public-sans-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
:root {
  --andaman: #0d3b4c;
  --lagoon: #137a80;
  --lagoon-light: #1a9aa0;
  --haze: #eef3f4;
  --ink: #1c2b33;
  --ink-muted: #51616a;
  --buoy: #f28c38;
  --buoy-hover: #f59e57;
  --field: #7c8b92;
  --danger: #b42318;
  --success: #0f7b4f;
  --line: rgba(13, 59, 76, 0.16);
  --on-dark: rgba(255, 255, 255, 0.9);
  --on-dark-muted: rgba(255, 255, 255, 0.78);

  --font: "Public Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --text-small: 0.875rem;
  --text-body: 1rem;
  --text-lead: 1.125rem;
  --text-h3: 1.375rem;
  --text-h2: 1.75rem;
  --text-h1: 2.25rem;
  --text-display: 3.25rem;

  --gutter: 16px;
  --max: 1120px;
  --radius: 10px;
  --radius-media: 12px;
  --motion-fast: 160ms;
  --motion-base: 240ms;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 768px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; --text-h2: 2.25rem; } }

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--text-body);
  line-height: 1.6;
  font-kerning: normal;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; color: var(--andaman); font-weight: 700; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: var(--text-h1); line-height: 1.1; }
h2 { font-size: var(--text-h2); line-height: 1.2; }
h3 { font-size: var(--text-h3); line-height: 1.3; font-weight: 650; }
p, ul, ol, dl, dd { margin: 0; }
a { color: var(--lagoon); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--andaman); outline-offset: 3px; }
.on-dark :focus-visible, .hero :focus-visible, .site-footer :focus-visible { outline-color: #fff; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.num { font-variant-numeric: tabular-nums; }

.container { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 48px 0; }
.section--haze { background: var(--haze); }
.section .intro { margin-top: 12px; max-width: 62ch; font-size: var(--text-lead); line-height: 1.55; color: var(--ink-muted); }
.note { color: var(--ink-muted); font-size: var(--text-body); max-width: 68ch; }
@media (min-width: 1024px) { .section { padding: 96px 0; } }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-size: var(--text-body);
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--motion-fast) var(--ease), border-color var(--motion-fast) var(--ease), color var(--motion-fast) var(--ease);
}
.btn .icon { width: 20px; height: 20px; flex: none; }
.btn.primary { background: var(--buoy); color: var(--ink); }
.btn.primary:hover { background: var(--buoy-hover); }
.btn.secondary { background: #fff; color: var(--andaman); border-color: var(--andaman); }
.btn.secondary:hover { background: var(--haze); }
.btn.on-dark { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.72); }
.btn.on-dark:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; }
.btn[disabled], .btn[aria-busy="true"] { cursor: progress; opacity: 0.8; }

/* Header, laid over the hero photo */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 3; color: #fff; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 50%; background: #fff; object-fit: cover; }
.brand-name { display: block; font-size: var(--text-lead); font-weight: 700; line-height: 1.2; }
.brand-place { display: block; font-size: var(--text-small); line-height: 1.3; color: var(--on-dark); }
.header-nav { display: none; }
.header-nav a { color: #fff; text-decoration: none; font-weight: 550; }
.header-nav a:hover { text-decoration: underline; }
@media (min-width: 1024px) { .header-nav { display: flex; gap: 28px; } }

/* Hero */
.hero { position: relative; background: var(--andaman); color: #fff; }
.hero-right {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: var(--hero-color, #788aa8);
  background-size: cover;
  background-position: center;
}
.hero-right::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 112px;
  z-index: 1;
  background: linear-gradient(rgba(6, 28, 36, 0.6), rgba(6, 28, 36, 0));
}
.hero-right picture { position: absolute; inset: 0; }
.hero-img { width: 100%; height: 100%; object-fit: cover; }
.hero-left { display: flex; flex-direction: column; padding: 24px var(--gutter) 40px; }
.hero h1 { color: #fff; }
/* Phones: the facts and the enquiry button come before the description, so the button is on the first screen. */
.hero .cta-row { order: 1; }
.hero .sub { order: 2; }
.hero-title-details { display: block; margin-top: 10px; font-size: var(--text-h3); line-height: 1.3; font-weight: 500; letter-spacing: 0; color: var(--on-dark); }
.hero .sub { margin-top: 24px; max-width: 58ch; color: var(--on-dark); }
.hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 20px; padding: 14px 0 0; border-top: 1px solid rgba(255, 255, 255, 0.24); }
.hero-facts dt { font-size: var(--text-small); color: var(--on-dark-muted); }
.hero-facts dd { font-weight: 650; line-height: 1.35; }
.cta-row { display: grid; gap: 12px; margin-top: 24px; }
@media (min-width: 560px) { .cta-row { display: flex; flex-wrap: wrap; } }
@media (min-width: 900px) {
  .hero { display: flex; align-items: flex-end; min-height: min(86svh, 820px); }
  .hero-right { position: absolute; inset: 0; aspect-ratio: auto; }
  .hero-right::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(8, 36, 48, 0.88) 0%, rgba(8, 36, 48, 0.7) 36%, rgba(8, 36, 48, 0) 66%);
  }
  .hero-left { position: relative; z-index: 2; width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 128px var(--gutter) 72px; }
  .hero-left > * { max-width: 600px; }
  .hero h1 { font-size: var(--text-display); line-height: 1.05; }
  .hero .sub { order: 0; margin-top: 16px; }
  .hero-facts { order: 0; margin-top: 24px; }
  .hero .cta-row { order: 0; margin-top: 28px; }
}

/* Horizontal rails on phones, grids on larger screens */
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 84%;
  gap: 16px;
  margin: 28px calc(-1 * var(--gutter)) 0;
  padding: 0 var(--gutter) 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--gutter);
  scrollbar-width: thin;
}
.rail > * { scroll-snap-align: start; min-width: 0; }
@media (min-width: 768px) {
  .rail { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; margin: 32px 0 0; padding: 0; overflow: visible; }
}
@media (min-width: 1024px) {
  .yacht-rail { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .route-rail { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; }
}

/* Yacht cards: photo first, no frame */
.yacht { display: flex; flex-direction: column; }
.yacht-media { display: block; border-radius: var(--radius-media); overflow: hidden; background: var(--haze); aspect-ratio: 4 / 3; }
.yacht-media img { width: 100%; height: 100%; object-fit: cover; }
.yacht h3 { margin-top: 16px; }
.yacht-facts { margin-top: 4px; color: var(--ink-muted); }
.yacht-price { margin-top: 10px; font-size: var(--text-lead); color: var(--ink); }
.yacht-price strong { font-weight: 700; color: var(--andaman); }
.yacht .btn { margin-top: 16px; align-self: flex-start; }
@media (max-width: 559px) { .yacht .btn { align-self: stretch; } }

/* Routes, lengths and a typical day */
.routes-layout { display: grid; gap: 40px; margin-top: 32px; }
@media (min-width: 1024px) { .routes-layout { grid-template-columns: 3fr 2fr; gap: 64px; margin-top: 40px; } }
.length-list { list-style: none; padding: 0; margin-top: 16px; border-top: 1px solid var(--line); }
.length-list > li { display: grid; gap: 6px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.length-days { font-size: var(--text-lead); font-weight: 700; line-height: 1.3; color: var(--andaman); }
.length-days span { margin-left: 8px; font-size: var(--text-small); font-weight: 500; color: var(--ink-muted); }
@media (min-width: 640px) {
  .length-list > li { grid-template-columns: 6.5rem minmax(0, 1fr); gap: 16px; }
  .length-days span { display: block; margin-left: 0; }
}
.length-text { color: var(--ink); }
.stops { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; margin: 0 0 4px; padding: 0; list-style: none; color: var(--andaman); font-weight: 650; }
.stops li + li::before { content: ""; display: inline-block; width: 16px; height: 1px; margin: 0 8px; vertical-align: middle; background: var(--lagoon-light); }
.length-foot { margin-top: 16px; font-size: var(--text-small); }
.day-list { list-style: none; padding: 0; margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.day-list li { position: relative; padding-top: 14px; border-top: 2px solid var(--lagoon-light); }
.day-time { display: block; font-weight: 650; color: var(--andaman); }
#route-options { margin-top: 48px; }
@media (min-width: 1024px) { #route-options { margin-top: 64px; } }
.route { display: flex; flex-direction: column; color: var(--ink); text-decoration: none; }
.route-media { border-radius: var(--radius-media); overflow: hidden; background: #dfe8ea; aspect-ratio: 3 / 2; }
.route-media img { width: 100%; height: 100%; object-fit: cover; }
.route-days { margin-top: 14px; font-size: var(--text-small); font-weight: 650; color: var(--lagoon); }
.route-title { margin-top: 2px; font-size: var(--text-lead); font-weight: 650; line-height: 1.35; color: var(--andaman); }
.route:hover .route-title { text-decoration: underline; text-underline-offset: 3px; }
.route-meta { margin-top: 4px; color: var(--ink-muted); }

/* Why us */
.reasons { margin-top: 24px; display: grid; gap: 20px; }
.reasons > div { padding-top: 16px; border-top: 1px solid var(--line); }
.reasons dt { font-weight: 650; font-size: var(--text-lead); color: var(--andaman); }
.reasons dd { margin-top: 4px; max-width: 60ch; }
@media (min-width: 768px) { .reasons { grid-template-columns: 1fr 1fr; gap: 28px 48px; } }

/* Enquiry form */
.quote-grid { display: grid; gap: 28px; }
@media (min-width: 1024px) {
  .quote-grid { grid-template-columns: 2fr 3fr; grid-template-areas: "aside main" "terms main"; gap: 0 64px; align-items: start; }
  .quote-aside { grid-area: aside; }
  .quote-main { grid-area: main; }
  .quote-terms { grid-area: terms; }
}
.selection-note { margin: 0 0 16px; padding: 12px 14px; border-left: 3px solid var(--lagoon); border-radius: 0 8px 8px 0; background: var(--haze); font-size: var(--text-body); }
.enquiry-selected { outline: 2px solid var(--lagoon); outline-offset: 2px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 12px; }
.form-grid > .field { grid-column: 1 / -1; min-width: 0; }
.form-grid > .field.half { grid-column: auto; }
@media (min-width: 640px) { .form-grid { gap: 20px; } .form-grid > .field { grid-column: auto; } .form-grid > .field.span-2 { grid-column: 1 / -1; } }
.field label { display: block; margin-bottom: 6px; font-weight: 600; color: var(--ink); }
.field .optional { font-weight: 400; color: var(--ink-muted); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--field);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
}
.field textarea { resize: vertical; min-height: 112px; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230d3b4c' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.field input[readonly] { cursor: pointer; }
.field input::placeholder, .field textarea::placeholder { color: #66757d; opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--andaman); }
.field .hint { margin-top: 6px; font-size: var(--text-small); color: var(--ink-muted); }
.field .error { display: none; margin-top: 6px; font-size: var(--text-small); font-weight: 600; color: var(--danger); }
.field[data-invalid] input, .field[data-invalid] select, .field[data-invalid] textarea { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
.field[data-invalid] .error { display: block; }
.phone-fields { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); gap: 8px; }
@media (max-width: 420px) { .phone-fields { grid-template-columns: 1fr; } }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 24px; }
#f-submit { min-width: 240px; }
@media (max-width: 559px) { #f-submit { width: 100%; } }
#f-status { font-size: var(--text-small); }
#f-status.is-error { color: var(--danger); font-weight: 600; }
.form-note { margin-top: 12px; font-size: var(--text-small); color: var(--ink-muted); }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(28, 43, 51, 0.3); border-top-color: var(--ink); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.success-panel { padding: 24px; border-radius: var(--radius-media); background: #e8f4ee; color: var(--ink); }
.success-panel:focus { outline: none; }
.success-panel h3 { color: var(--success); font-size: var(--text-lead); }
.success-panel p { margin-top: 8px; }
.success-panel .btn { margin-top: 16px; }
#booking-terms { margin-top: 4px; padding: 20px; border-radius: var(--radius-media); background: var(--haze); font-size: var(--text-small); line-height: 1.6; }
#booking-terms h3 { font-size: var(--text-body); margin-bottom: 8px; }
#booking-terms ul { padding-left: 18px; display: grid; gap: 6px; }
#booking-terms b { font-weight: 650; color: var(--andaman); }
#booking-terms a { display: inline-flex; align-items: center; min-height: 44px; }

/* FAQ */
.faq-list { margin-top: 28px; border-top: 1px solid var(--line); max-width: 820px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  position: relative;
  display: block;
  min-height: 48px;
  padding: 18px 44px 18px 0;
  list-style: none;
  cursor: pointer;
  font-size: var(--text-lead);
  font-weight: 600;
  line-height: 1.4;
  color: var(--andaman);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before, .faq-list summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 14px;
  height: 2px;
  background: var(--andaman);
  transition: transform var(--motion-base) var(--ease);
}
.faq-list summary::after { transform: rotate(90deg); }
.faq-list details[open] summary::after { transform: rotate(0deg); }
.faq-list details p { max-width: 68ch; padding: 0 0 20px; }

/* Footer */
.site-footer { background: var(--andaman); color: var(--on-dark); font-size: var(--text-body); }
.site-footer a, .site-footer .link-button { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 16px; padding-top: 48px; padding-bottom: 32px; }
.footer-grid > div { grid-column: 1 / -1; }
.footer-grid > .footer-col { grid-column: auto; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 2fr; gap: 32px; padding-top: 56px; padding-bottom: 40px; } .footer-grid > div { grid-column: auto; } }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 40px; height: 40px; border-radius: 50%; background: #fff; }
.footer-brand-name { font-weight: 700; font-size: var(--text-lead); color: #fff; }
.footer-about { margin-top: 16px; max-width: 40ch; }
.site-footer h3 { font-size: var(--text-body); font-weight: 650; color: #fff; }
.footer-links { list-style: none; padding: 0; margin-top: 12px; display: grid; gap: 2px; }
.footer-links a, .footer-links .link-button { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; }
.footer-links a:hover, .footer-links .link-button:hover { text-decoration: underline; }
.link-button { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; text-align: left; }
.footer-contact { list-style: none; padding: 0; margin-top: 12px; display: grid; gap: 14px; }
.footer-contact .map-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-contact .map-links a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-contact a[href^="mailto:"] { display: inline-flex; align-items: center; min-height: 44px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.16); padding: 16px 0; font-size: var(--text-small); text-align: center; color: var(--on-dark-muted); }
.footer-bottom .font-semibold { font-weight: 650; color: #fff; }

/* Phones: one full-width enquiry bar, hidden while another enquiry action or the form is in view */
.floating {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--line);
  transition: transform var(--motion-base) var(--ease), visibility 0s linear 0s;
}
.floating .enquiry-link { width: 100%; }
body.enquiry-in-view .floating,
body:has(#enquiry-form :focus) .floating,
body:has(#ca-consent-banner:not([hidden])) .floating,
body:has(dialog[open]) .floating {
  transform: translateY(110%);
  visibility: hidden;
  transition: transform var(--motion-base) var(--ease), visibility 0s linear var(--motion-base);
}
@media (max-width: 899px) { .site-footer { padding-bottom: 72px; } }
@media (min-width: 900px) { .floating { display: none; } }

/* Date picker colours */
.flatpickr-calendar { font-family: var(--font); border-radius: 12px; box-shadow: 0 12px 32px rgba(13, 59, 76, 0.2); }
.flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange,
.flatpickr-day.selected:hover, .flatpickr-day.startRange:hover, .flatpickr-day.endRange:hover { background: var(--andaman); border-color: var(--andaman); color: #fff; }
.flatpickr-day.inRange { background: var(--haze); border-color: var(--haze); box-shadow: -5px 0 0 var(--haze), 5px 0 0 var(--haze); }
.flatpickr-day.today { border-color: var(--lagoon); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
}
