/* ==========================================================================
   Snijders and Creasey Yacht Management — Stylesheet
   ========================================================================== */

:root {
  --navy-950: #061423;
  --navy-900: #0a1f33;
  --navy-800: #0f2b45;
  --navy-700: #163a5c;
  --navy-600: #1d4b74;
  --brass-300: #dcc79e;                          /* brass on dark: highlights, hovers */
  --brass-500: #b08d57;                          /* brass on light: icons, borders, accents */
  --brass-700: #7d5f2f;                          /* brass text on light backgrounds */
  --white: #ffffff;
  --off-white: #f4f8fb;
  --ink-900: #0c1b2a;
  --ink-700: #324a5e;
  --ink-500: #5c7384;
  --ink-300: #9fb3c0;
  --border: #dfe9ef;
  --danger: #e2574c;
  --success: #3f8a6c;
  --radius-sm: 2px;                              /* buttons, inputs, tags */
  --radius-md: 3px;                              /* cards, panels */
  --radius-lg: 4px;                              /* large panels */
  --shadow-sm: 0 2px 10px rgba(10, 31, 51, 0.06);
  --shadow-md: 0 10px 30px rgba(10, 31, 51, 0.10);
  --shadow-lg: 0 24px 60px rgba(10, 31, 51, 0.18);
  --brass: #c9ab77;                              /* logo accent */
  --ff-head: 'Cormorant Garamond', Garamond, Georgia, serif;   /* headings — change this one line to restyle all headings */
  --ff-body: 'Inter', system-ui, sans-serif;     /* body text, nav, buttons, forms */
  --transition: 0.25s cubic-bezier(.4,0,.2,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-body);
  color: var(--ink-900);
  background: var(--off-white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 { font-family: var(--ff-head); color: var(--navy-900); line-height: 1.15; font-weight: 600; }
h4, h5 { font-family: var(--ff-body); line-height: 1.3; }   /* small headings and form labels read better in the body font */

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 800px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn-sm { padding: 10px 18px; font-size: 0.85rem; }
.btn-lg { padding: 17px 34px; font-size: 1rem; }
.btn-primary {
  background: var(--brass);
  color: var(--navy-950);
  box-shadow: 0 8px 20px rgba(10, 31, 51, 0.18);
}
.btn-primary:hover { transform: translateY(-2px); background: var(--brass-300); box-shadow: 0 14px 30px rgba(10, 31, 51, 0.24); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: rgba(10, 31, 51, 0.04);
  color: var(--navy-900);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { background: rgba(10, 31, 51, 0.08); transform: translateY(-2px); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; }

.btn-submit { position: relative; min-width: 190px; }
.btn-submit .btn-spinner {
  display: none;
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.btn-submit.is-loading .btn-text { display: none; }
.btn-submit.is-loading .btn-spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Toasts ---------- */
.toast-container {
  position: fixed; top: 100px; right: 24px; z-index: 9998;
  display: flex; flex-direction: column; gap: 12px; max-width: 360px; width: calc(100% - 48px);
}
.toast {
  background: var(--white);
  border-left: 4px solid var(--brass-500);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 14px 16px;
  display: flex; align-items: flex-start; gap: 12px;
  transform: translateX(120%); opacity: 0;
  animation: toastIn 0.4s cubic-bezier(.34,1.56,.64,1) forwards;
}
.toast.toast-out { animation: toastOut 0.35s ease forwards; }
.toast.toast-error { border-left-color: var(--danger); }
.toast.toast-success { border-left-color: var(--success); }
.toast-icon { font-size: 1.2rem; color: var(--brass-500); margin-top: 2px; }
.toast.toast-error .toast-icon { color: var(--danger); }
.toast.toast-success .toast-icon { color: var(--success); }
.toast-body strong { display: block; font-size: 0.92rem; color: var(--navy-900); }
.toast-body p { font-size: 0.82rem; color: var(--ink-500); margin-top: 2px; }
.toast-close { margin-left: auto; color: var(--ink-300); font-size: 0.9rem; }
@keyframes toastIn { to { transform: translateX(0); opacity: 1; } }
@keyframes toastOut { to { transform: translateX(120%); opacity: 0; } }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  background: rgba(10, 31, 51, 0.96);
  backdrop-filter: blur(10px);
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
  padding: 18px 0;
}
.site-header.scrolled { background: rgba(10, 31, 51, 0.92); box-shadow: var(--shadow-md); padding: 10px 0; }
.header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 16px;
}
.site-header .brand {
  grid-column: 1 / -1;
  grid-row: 1;
  justify-self: center;
  text-align: center;
  min-width: 0;
  max-width: min(760px, calc(100% - 250px));
}
.site-header .nav-link,
.site-header .header-quote {
  font-family: var(--ff-body);
}
.lookup-identity .quote-field:focus-within { position: relative; z-index: 6; }

/* Wordmark (Concept A). Its lettering is fixed and does not follow --ff-head. */
.brand { display: flex; align-items: center; color: #fff; }
.brand-logo { display: block; width: 100%; height: auto; overflow: visible; }
.site-header .brand-logo { width: clamp(220px, 30vw, 380px); max-width: 100%; }
.site-footer .brand-logo { width: 280px; max-width: 100%; }
.brand-logo .logo-name {
  fill: currentColor;
  font-family: 'Cormorant Garamond', Garamond, Georgia, 'Times New Roman', serif;
  font-size: 42px;
  font-weight: 600;
}
.brand-logo .logo-amp { fill: var(--brass); font-style: italic; font-weight: 500; }
.brand-logo .logo-rule { stroke: var(--brass); stroke-width: 1.4; }
.brand-logo .logo-sub {
  fill: currentColor;
  font-family: var(--ff-body);
  font-size: 15px;
  font-weight: 500;
  opacity: 0.85;
}
.site-header:has(.main-nav.is-open) { background: rgba(10, 31, 51, 0.96); }
.main-nav { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s ease; }
.main-nav.is-open { grid-template-rows: 1fr; }
.nav-panel { min-height: 0; overflow: hidden; }
.nav-links {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px;
  padding-top: 8px; padding-bottom: 24px;   /* top and bottom only, so the container keeps its side margins */
}
.nav-group { display: flex; flex-direction: column; min-width: 0; }
.nav-group-title {
  margin: 0; padding: 14px 0 6px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--brass-300);
}
.nav-link[aria-current="page"] { color: var(--brass-300); }
.footer-col a[aria-current="page"] { color: var(--brass-300); }
@media (max-width: 760px) {
  .nav-links { grid-template-columns: 1fr; }
}
.nav-link {
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  font-size: 1.02rem;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: color var(--transition);
}
.nav-link:hover { color: var(--brass-300); }
.nav-toggle {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  grid-column: 1; grid-row: 1; z-index: 1;
  width: 44px; height: 44px; flex: none; justify-self: start;
}
.header-quote { grid-column: 3; grid-row: 1; z-index: 1; justify-self: end; }
.quote-menu { position: relative; grid-column: 3; grid-row: 1; justify-self: end; z-index: 3; }
.quote-menu .header-quote { grid-column: auto; grid-row: auto; }
.quote-menu-chevron { font-size: 0.7rem; transition: transform 0.2s ease; }
.quote-menu.is-open .quote-menu-chevron { transform: rotate(180deg); }
.quote-menu-panel {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 230px;
  padding: 8px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}
.quote-menu.is-open .quote-menu-panel { display: block; }
.quote-menu-panel a {
  display: block;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  color: var(--navy-900);
  font-family: var(--ff-body);
  font-weight: 500;
  font-size: 0.9rem;
}
.quote-menu-panel a:hover { background: rgba(29,75,116,0.08); }
.nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: var(--transition); }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--navy-950) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  padding: 70px 0 60px;
  overflow: hidden;
}
#process, #calculator, #routes, #faq, #contact { scroll-margin-top: 110px; }
#services {
  background: linear-gradient(180deg, #0a1f33 0%, #061423 48%, #0f2b45 100%);
  padding: 148px 0 72px;
  scroll-margin-top: 110px;
  overflow: hidden;
}
#services .section-head h1 {
  color: #fff;
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  letter-spacing: 0.03em;
  margin: 0;
}
.hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); color: #fff; margin-bottom: 20px; }

.captain-card a { color: var(--navy-600); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Logo Strip ---------- */

/* ---------- Captains ---------- */
.captain-grid { display: grid; grid-template-columns: 1.25fr 0.85fr; gap: 26px; align-items: stretch; }
.captain-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  box-shadow: var(--shadow-sm);
}
.captain-card-lead { border-top: 4px solid var(--brass-500); }
.captain-top { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.captain-mark {
  width: 72px; height: 72px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-head); font-weight: 800; font-size: 1.35rem; color: var(--navy-950);
  background: var(--brass);
}
.captain-mark-alt { background: linear-gradient(135deg, var(--navy-700), var(--navy-900)); color: var(--brass-300); }
.captain-role {
  color: var(--navy-600); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 2px;
}
.captain-card h3 { font-size: 1.45rem; }
.captain-place { color: var(--ink-500); font-size: 0.88rem; margin-top: 4px; }
.captain-place i { color: var(--brass-500); margin-right: 6px; }
.captain-card > p { color: var(--ink-700); font-size: 0.95rem; margin-bottom: 12px; }
.captain-card em { font-style: italic; }
.captain-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.captain-facts span {
  background: #eef4f8; color: var(--navy-700); border-radius: var(--radius-sm);
  padding: 6px 12px; font-size: 0.78rem; font-weight: 600;
}
.record-panel {
  margin-top: 26px;
  background: var(--navy-900);
  color: rgba(255,255,255,0.86);
  border-radius: var(--radius-lg);
  padding: 32px 34px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 36px;
}
.record-kicker {
  grid-column: 1 / -1;
  color: var(--brass-300);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.record-panel blockquote p {
  font-family: var(--ff-head);
  font-size: 1.05rem;
  line-height: 1.45;
  color: #fff;
  margin-bottom: 12px;
}
.record-panel footer { font-size: 0.82rem; color: rgba(255,255,255,0.62); line-height: 1.5; }
.record-panel a { color: var(--brass-300); text-decoration: underline; text-underline-offset: 2px; }
.record-panel em { font-style: italic; }

/* ---------- Practice ---------- */
.practice-line { margin-bottom: 0; }

/* ---------- Generic Section ---------- */
.section { padding: 90px 0; }
.section-alt { background: #ecf3f7; }
.section-head { max-width: 680px; margin: 0 auto 50px; text-align: center; }
.section-tag {
  display: inline-block; color: var(--navy-600); background: rgba(29,75,116,0.1);
  padding: 6px 16px; border-radius: var(--radius-sm); font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 14px; }
.section-head p { color: var(--ink-500); font-size: 1.02rem; }

.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

/* ---------- Our Services: alternating photo and text rows ---------- */
#services .section-head { margin-bottom: clamp(40px, 6vw, 72px); }
.service-rows { display: grid; gap: clamp(40px, 5vw, 64px); max-width: 1040px; margin: 0 auto; }
.service-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.service-row:nth-child(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.service-row:nth-child(even) .service-media { order: 2; }
.service-media {
  aspect-ratio: 16 / 9;
  max-width: 100%;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--navy-800);
}
.service-media img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s cubic-bezier(.2,.6,.2,1);
}
.service-row:hover .service-media img { transform: scale(1.03); }
/* Placeholder until a photo is added: remove "is-placeholder" when it is */
.service-media.is-placeholder {
  display: grid; place-items: center;
  border: 1px dashed rgba(201, 171, 119, 0.55);
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.025) 0 14px, transparent 14px 28px),
    var(--navy-800);
}
.placeholder-label {
  padding: 0 24px; text-align: center;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--brass-300);
}
.service-copy { display: grid; gap: 12px; justify-items: start; }
.service-copy h2 {
  margin: 0;
  font-family: var(--ff-head);
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.005em;
  color: #fff;
}
/* The title is the link; its ::before stretches the click area over the whole row */
.service-link { color: inherit; text-decoration: none; }
.service-link::before { content: ""; position: absolute; inset: 0; }
.service-link:focus-visible { outline: none; }
.service-row:has(.service-link:focus-visible) { outline: 2px solid #fff; outline-offset: 10px; }
.service-copy p { margin: 0; max-width: 42ch; color: rgba(255,255,255,0.75); font-size: 1.02rem; line-height: 1.65; }
.service-more {
  margin-top: 8px;
  display: inline-flex; align-items: center; gap: 12px;
  padding-bottom: 6px; border-bottom: 1px solid currentColor;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--brass);
}
.service-more i { transition: transform var(--transition); }
.service-row:hover .service-more i,
.service-row:focus-within .service-more i { transform: translateX(6px); }
.services-other {
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.18);
  text-align: center;
  color: rgba(255,255,255,0.75);
}
.services-other a { margin-left: 6px; color: var(--brass); font-weight: 600; }
.services-other a i { margin-left: 4px; transition: transform var(--transition); }
.services-other a:hover i { transform: translateX(4px); }

.service-page {
  background: linear-gradient(180deg, #0a1f33 0%, #061423 48%, #0f2b45 100%);
  padding: 160px 0 96px;
  min-height: 70vh;
}
.service-page-short { min-height: 0; padding-bottom: 64px; }
.service-form { background: var(--off-white); scroll-margin-top: 110px; }
#guardiennageWizard .quote-step,
#projectWizard .quote-step,
#transportWizard .quote-step,
#surveyWizard .quote-step { min-width: 0; font-size: 0.78rem; padding: 8px 6px; }
#guardiennageWizard .place-suggestions.active,
#projectWizard .place-suggestions.active,
#transportWizard .place-suggestions.active,
#surveyWizard .place-suggestions.active { position: static; width: 100%; margin-top: 6px; }
#guardiennageWizard .calc-results,
#projectWizard .calc-results,
#transportWizard .calc-results,
#surveyWizard .calc-results { scroll-margin-top: 110px; }
.service-page h1 {
  color: #fff;
  font-family: var(--ff-head);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: 0.04em;
  margin-bottom: 18px;
  max-width: 16em;
}
.service-lead {
  color: rgba(255,255,255,0.78);
  font-size: 1.12rem;
  line-height: 1.6;
  max-width: 38rem;
}
.service-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 36px;
}
.service-actions a {
  color: #fff;
  font-family: var(--ff-body);
  font-weight: 500;
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(255,255,255,0.45);
  padding-bottom: 3px;
}
.service-actions a:hover { color: var(--brass-300); border-bottom-color: var(--brass-300); }

/* ---------- Process: four stages in a row, divided by fine rules ---------- */
.process-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--border);
}
.process-step { display: grid; gap: 12px; align-content: start; padding: 32px 28px 8px 0; }
.process-step + .process-step { padding-left: 28px; border-left: 1px solid var(--border); }
.process-number {
  font-family: var(--ff-head); font-size: 2.8rem; font-weight: 500; line-height: 1;
  color: var(--brass-500);
  font-variant-numeric: lining-nums;   /* Cormorant defaults to old-style figures, where 1 looks like I */
}
.process-step h3 { margin: 0; font-size: 1.5rem; }
.process-step p { margin: 0; color: var(--ink-500); font-size: 0.95rem; line-height: 1.65; }

/* ---------- Routes ---------- */
.route-card { padding: 26px; }
.route-from-to { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--navy-900); margin-bottom: 14px; flex-wrap: wrap; }
.route-from-to i { color: var(--brass-500); }
.route-meta { display: flex; gap: 18px; color: var(--ink-500); font-size: 0.85rem; }
.route-meta i { color: var(--navy-600); margin-right: 5px; }

/* ---------- Shared form field styles (used by contact form) ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field label { font-size: 0.85rem; font-weight: 600; color: var(--navy-700); }
.form-field input, .form-field select, .form-field textarea {
  padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 0.95rem; color: var(--ink-900); background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 4px rgba(29,75,116,0.12);
}
.form-field.is-invalid input, .form-field.is-invalid select, .form-field.is-invalid textarea {
  border-color: var(--danger); box-shadow: 0 0 0 4px rgba(226,87,76,0.1);
}
.form-field.is-valid input, .form-field.is-valid select {
  border-color: var(--success);
}
.field-error { display: none; color: var(--danger); font-size: 0.78rem; font-weight: 500; }
.form-field.is-invalid .field-error { display: block; }

/* ---------- AI Quiz Calculator ---------- */
.calculator-section { background: linear-gradient(180deg, var(--off-white), #e7f0f5); }

.quiz-stage { min-height: 220px; animation: fadeSlide 0.4s ease; }
@keyframes fadeSlide { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: translateX(0); } }
.quiz-question-title { font-size: 1.75rem; font-weight: 600; line-height: 1.15; margin-bottom: 18px; }
.quiz-question-title + .quiz-question-sub { margin-top: -10px; }   /* an introduction sits close under its heading */
.quiz-question-sub { color: var(--ink-500); font-size: 0.92rem; margin-bottom: 26px; }

.quiz-options { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.quiz-option {
  display: flex; align-items: center; gap: 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 16px 18px; cursor: pointer; transition: var(--transition);
  text-align: left; background: var(--white); width: 100%;
}
.quiz-option:hover { border-color: var(--navy-600); background: rgba(29,75,116,0.04); transform: translateY(-2px); }
.quiz-option.selected { border-color: var(--navy-600); background: rgba(29,75,116,0.08); box-shadow: 0 0 0 3px rgba(29,75,116,0.1); }
.quiz-option-icon {
  width: 38px; height: 38px; border-radius: var(--radius-sm); background: #eef4f8; color: var(--navy-600);
  display: flex; align-items: center; justify-content: center; font-size: 1.05rem; flex-shrink: 0;
  transition: var(--transition);
}
.quiz-option.selected .quiz-option-icon { background: var(--navy-600); color: #fff; }
.quiz-option-text strong { display: block; font-size: 0.95rem; color: var(--navy-900); }
.quiz-option-text small { color: var(--ink-500); font-size: 0.78rem; }
.quiz-option-check { margin-left: auto; color: var(--navy-600); opacity: 0; transition: var(--transition); }
.quiz-option.selected .quiz-option-check { opacity: 1; }

/* ---------- Place autocomplete ---------- */
.place-autocomplete { position: relative; }
.place-autocomplete input { width: 100%; padding-right: 42px; }
.place-autocomplete-icon { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--ink-300); pointer-events: none; }
.place-suggestions {
  display: none; position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 20;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md); max-height: 260px; overflow-y: auto;
}
.place-suggestions.active { display: block; }
.place-suggestion {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 16px;
  text-align: left; font-size: 0.9rem; color: var(--ink-900); border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.place-suggestion:last-child { border-bottom: none; }
.place-suggestion:hover, .place-suggestion.is-active { background: rgba(29,75,116,0.06); }
.vessel-suggestion { align-items: flex-start; }
.vessel-suggestion-text { display: flex; flex-direction: column; min-width: 0; text-align: left; }
.vessel-suggestion-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; }
.vessel-suggestion-text strong { color: var(--navy-900); }
.vessel-suggestion-flag { color: var(--ink-500); font-size: 0.82rem; font-weight: 600; }
.vessel-suggestion-text small { display: block; color: var(--ink-500); font-size: 0.78rem; font-weight: 500; }
.vessel-suggestion-status { padding: 12px 16px; color: var(--ink-500); font-size: 0.88rem; }
#vesselSuggestions { z-index: 40; width: 100%; }
#flagSuggestions { z-index: 45; width: 100%; }
.place-suggestion i { color: var(--navy-600); flex-shrink: 0; }

/* ---------- Vessel lookup stage ---------- */
.vessel-found-specs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 12px; }
.vessel-found-specs span {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 6px 14px; font-size: 0.82rem; color: var(--navy-700); font-weight: 600;
}
.vessel-found-specs i { color: var(--navy-600); margin-right: 6px; }

.quiz-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 32px; gap: 10px; flex-wrap: wrap; }

.checkbox-inline { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; max-width: 460px; }
.checkbox-inline input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--navy-600); flex-shrink: 0; }
.checkbox-inline span { font-size: 0.9rem; color: var(--ink-500); text-align: left; }

/* ---------- AI "thinking" overlay ---------- */
.ai-loading { display: none; flex-direction: column; align-items: center; text-align: center; padding: 60px 20px; }
.ai-loading.active { display: flex; }
.ai-loading-orb {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--navy-700);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 2rem;
  margin-bottom: 22px; animation: pulse-orb 1.4s ease-in-out infinite;
}
@keyframes pulse-orb { 0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(29,75,116,0.35); } 50% { transform: scale(1.08); box-shadow: 0 0 0 14px rgba(29,75,116,0); } }
.ai-loading h3 { font-size: 1.2rem; margin-bottom: 10px; }
.ai-loading p { color: var(--ink-500); font-size: 0.92rem; margin-bottom: 22px; min-height: 20px; }
.ai-loading-track { width: 240px; height: 5px; background: #e7eef2; border-radius: var(--radius-sm); overflow: hidden; }
.ai-loading-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--brass-500), var(--brass)); border-radius: var(--radius-sm); animation: loadFill 6s ease forwards; }
@keyframes loadFill { from { width: 0%; } to { width: 92%; } }

/* ---------- Results Panel ---------- */
.calc-results {
  display: none; flex-direction: column; align-items: center; text-align: center;
  padding: 20px 10px; animation: fadeSlide 0.5s ease;
}
.calc-results.active { display: flex; }
.results-icon { font-size: 3.4rem; color: var(--success); margin-bottom: 14px; animation: pop 0.5s cubic-bezier(.34,1.56,.64,1); }
@keyframes pop { 0% { transform: scale(0); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }
.results-source-badge {
  display: inline-flex; align-items: center; gap: 6px; background: rgba(176,141,87,0.12); color: var(--brass-700);
  padding: 5px 14px; border-radius: var(--radius-sm); font-size: 0.75rem; font-weight: 700; margin-bottom: 14px;
}
.calc-results h3 { font-size: 1.5rem; margin-bottom: 10px; }
.calc-results p { color: var(--ink-500); max-width: 480px; margin-bottom: 20px; }
.results-price {
  background: linear-gradient(120deg, rgba(176,141,87,0.1), rgba(29,75,116,0.1));
  border-radius: var(--radius-md); padding: 22px 40px; margin-bottom: 20px;
}
.results-price span { display: block; font-size: 0.85rem; color: var(--ink-500); margin-bottom: 6px; }
.results-price strong { font-family: var(--ff-head); font-size: 2.4rem; color: var(--navy-600); }
.results-price small { display: block; margin-top: 8px; font-size: 0.78rem; line-height: 1.45; color: var(--ink-500); font-weight: 500; }
.results-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
  margin: 0 0 22px;
  text-align: left;
  border: 0;
  background: transparent;
}
.cost-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.cost-table-wide { grid-column: 1 / -1; }
.cost-table caption {
  caption-side: top;
  text-align: left;
  padding: 13px 16px;
  font-family: var(--ff-head);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy-900);
  background: #f4f8fb;
  border-bottom: 1px solid var(--border);
}
.cost-table th,
.cost-table td {
  padding: 12px 16px;
  vertical-align: top;
  font-weight: 500;
}
.cost-table tbody th { text-align: left; }
.cost-table tbody th span {
  display: block; margin: 0; font-size: 0.92rem; font-weight: 700; color: var(--navy-900);
}
.cost-table tbody th small,
.cost-table tfoot th small {
  display: block; margin-top: 3px; font-size: 0.78rem; line-height: 1.45; font-weight: 500; color: var(--ink-500);
}
.cost-table td {
  width: 7.2rem;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.cost-table tbody td strong { font-size: 0.95rem; color: var(--navy-900); }
.cost-table tbody tr + tr th,
.cost-table tbody tr + tr td { border-top: 1px solid var(--border); }
.cost-table tfoot th,
.cost-table tfoot td {
  border-top: 1px solid var(--border);
  background: #f7fafc;
  text-align: left;
  font-weight: 700;
  color: var(--navy-900);
}
.cost-table tfoot td { text-align: right; }
.cost-table tfoot td strong { color: var(--navy-600); font-size: 1.05rem; }
.cost-estimate {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--navy-900);
  color: #fff;
}
.cost-estimate span {
  display: block; margin: 0; font-size: 0.75rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: rgba(255,255,255,0.7);
}
.cost-estimate small {
  display: block; margin-top: 4px; font-size: 0.8rem; line-height: 1.4; color: rgba(255,255,255,0.82);
}
.cost-estimate strong {
  font-family: var(--ff-head); font-size: 1.7rem; color: #fff; white-space: nowrap;
}
.results-grid { display: flex; gap: 30px; margin-bottom: 20px; flex-wrap: wrap; justify-content: center; }
.results-grid div { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.results-grid i { color: var(--brass-500); font-size: 1.3rem; }
.results-grid span { font-weight: 700; color: var(--navy-900); font-size: 1.05rem; }
.results-grid small { color: var(--ink-300); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.4px; }
.results-confidence { font-size: 0.8rem; color: var(--ink-300); font-style: italic; margin-bottom: 6px !important; }
.results-contact-note { font-size: 0.85rem; color: var(--ink-500); margin-bottom: 22px !important; }

.results-story {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.85fr);
  gap: 22px;
  width: 100%;
  align-self: stretch;
  align-items: stretch;
  text-align: left;
  margin-bottom: 22px;
}
.results-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  text-align: left;
}
.results-explain .results-icon { font-size: 1.7rem; margin-bottom: 6px; text-align: left; }
.results-explain h3,
.results-explain p,
.results-side p,
.vessel-photo figcaption { text-align: left; max-width: none; }
.results-explain .results-price { width: 100%; margin-top: 4px; margin-bottom: 0; padding: 12px 16px; }
.results-explain .results-price strong { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.results-summary { width: 100%; margin: 0 0 18px !important; }
.results-note {
  width: 100%; margin: -6px 0 18px; padding: 12px 14px; border-radius: var(--radius-md);
  background: #f7fafc; border: 1px solid var(--border); color: var(--navy-900);
  font-size: 0.9rem; white-space: pre-wrap;
}
.vessel-photo {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--navy-900);
  border: 1px solid var(--border);
}
.vessel-photo img {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: cover;
}
.vessel-photo img[hidden] { display: none !important; }
.vessel-photo figcaption {
  padding: 8px 12px 10px;
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--ink-500);
  background: #fff;
}
#calcResults, #aiLoading { scroll-margin-top: 96px; }

/* ---------- Testimonials ---------- */

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.faq-question {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; text-align: left; font-weight: 600; color: var(--navy-900); font-size: 0.98rem;
}
.faq-question i { color: var(--navy-600); transition: transform var(--transition); }
.faq-item.open .faq-question i { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.35s ease; padding: 0 24px; }
.faq-item.open .faq-answer { max-height: 480px; padding: 0 24px 22px; }
.faq-answer p { color: var(--ink-500); font-size: 0.92rem; }

/* ---------- CTA / Contact ---------- */
.cta-band { background: linear-gradient(160deg, var(--navy-900), var(--navy-700)); }
.cta-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.cta-copy h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 16px; }
.cta-copy p { color: rgba(255,255,255,0.75); font-size: 1rem; }
.contact-card { background: var(--white); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-lg); }
.contact-card .form-field { margin-bottom: 18px; }
.contact-card textarea { resize: vertical; }
.contact-card .btn { width: 100%; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: rgba(255,255,255,0.7); padding: 70px 0 0; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; }
.footer-brand p { font-size: 0.88rem; margin: 16px 0 20px; line-height: 1.7; }
.footer-col h4 { color: #fff; font-size: 0.95rem; margin-bottom: 18px; }
.footer-col a, .footer-col p { display: block; font-size: 0.88rem; margin-bottom: 12px; color: rgba(255,255,255,0.65); transition: color var(--transition); }
.footer-col a:hover { color: var(--brass-300); }
.footer-col p i { color: var(--brass-500); margin-right: 8px; width: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 22px 0; text-align: center; font-size: 0.8rem; color: rgba(255,255,255,0.4); }

/* ---------- Guided quote calculator ---------- */
.quote-shell {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  align-items: start;
}
.quote-main {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 32px 36px 28px;
  min-height: 520px;
}
.quote-aside {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 22px 22px 18px;
  position: sticky;
  top: 96px;
}
.aside-kicker {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--navy-600); margin-bottom: 8px;
}
.aside-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 0.88rem;
}
.aside-row span { color: var(--ink-500); flex-shrink: 0; }
.aside-row strong { display: block; text-align: right; color: var(--navy-900); font-weight: 600; }
.aside-row button, .review-item button, .vessel-banner button {
  color: var(--navy-600); font-weight: 700; font-size: 0.8rem; margin-top: 4px;
}
.aside-row button:hover, .review-item button:hover, .vessel-banner button:hover { text-decoration: underline; }
.aside-note { color: var(--ink-500); font-size: 0.82rem; margin-top: 14px; }

.quote-steps {
  display: flex; gap: 8px; list-style: none; margin: 0 0 26px; padding: 0;
}
.quote-step {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 8px; border-radius: var(--radius-sm); border: 1.5px solid var(--border);
  background: var(--white); color: var(--ink-500); font-weight: 600; font-size: 0.85rem;
}
.quote-step span {
  width: 22px; height: 22px; border-radius: 50%; background: #eef4f8;
  display: inline-flex; align-items: center; justify-content: center; font-size: 0.75rem;
}
.quote-step.is-current { border-color: var(--navy-600); color: var(--navy-900); background: rgba(29,75,116,0.08); }
.quote-step.is-current span { background: var(--navy-600); color: #fff; }
.quote-step.is-done { border-color: rgba(176,141,87,0.7); color: var(--navy-900); }
.quote-step:disabled { opacity: 0.45; cursor: default; }

.quote-block { margin-top: 22px; }
.quote-block h4 { font-size: 0.98rem; margin-bottom: 4px; }
/* Delivery result: fuel use is asked for beside the diesel cost it changes */
.fuel-adjust {
  margin-top: 16px; padding: 16px 18px;
  border: 1px solid var(--border); border-left: 3px solid var(--brass-500); border-radius: var(--radius-md);
  background: var(--white);
}
.fuel-adjust p { margin: 0; font-size: 0.92rem; color: var(--ink-700); }
.fuel-adjust-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.fuel-adjust-row input {
  width: 140px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font: inherit; color: var(--ink-900); background: var(--white);
}
.fuel-adjust-row input:focus { outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 4px rgba(29,75,116,0.12); }
.fuel-adjust-row input[aria-invalid="true"] { border-color: var(--danger); }
.fuel-adjust-unit { font-size: 0.88rem; color: var(--ink-500); }
.fuel-adjust #fuelAdjustError { color: var(--danger); }
.block-help, .field-hint { color: var(--ink-500); font-size: 0.84rem; margin-bottom: 12px; }
.field-hint { margin: 8px 0 0; }
.optional-tag {
  font-weight: 600; font-size: 0.72rem; color: var(--ink-300);
  text-transform: uppercase; letter-spacing: 0.04em;
}
.step-error {
  background: rgba(226,87,76,0.08); color: var(--danger);
  border-radius: var(--radius-sm); padding: 10px 14px; font-size: 0.88rem; font-weight: 600; margin-bottom: 14px;
}
.quote-field.is-invalid input, .quiz-options.is-invalid { border-color: var(--danger); }
.quiz-options.is-invalid { border-radius: var(--radius-md); box-shadow: 0 0 0 3px rgba(226,87,76,0.12); }
.quote-field label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 8px; color: var(--navy-900); }
.quote-field input {
  width: 100%; padding: 14px 16px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 1rem; color: var(--ink-900); background: var(--white);
}
.quote-field input:focus, .quote-field textarea:focus { outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 4px rgba(29,75,116,0.12); }
.quote-field textarea {
  width: 100%; min-height: 120px; padding: 14px 16px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-family: inherit; font-size: 1rem; line-height: 1.5;
  color: var(--ink-900); background: var(--white); resize: vertical;
}
.quote-field.is-invalid input { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(226,87,76,0.1); }
.quote-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.quote-main .checkbox-inline { max-width: none; margin-top: 8px; }
.quote-field label.checkbox-inline { display: flex; font-weight: 500; }   /* a tick box sits beside its text, not above it */
.quote-field .checkbox-inline input { width: 17px; padding: 0; }
.quote-main .place-autocomplete input { width: 100%; }

/* Yacht name on its own line; Flag and Year built side by side underneath */
.lookup-identity {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 12px;
  align-items: end;
}
.lookup-identity > [data-field="vesselName"] { grid-column: 1 / -1; }
.lookup-identity .quote-field { min-width: 0; }
.lookup-identity .quote-field input { width: 100%; }
.lookup-identity .quote-field label { white-space: nowrap; }
.lookup-flag-hint { margin: 8px 0 0; }
.lookup-flag-hint:empty { display: none; }
.quote-field[data-field="fuelLitersPerHour"] { max-width: 280px; }
.length-row { display: flex; gap: 10px; align-items: center; }
.length-row input { flex: 1; width: auto; min-width: 0; }
.unit-toggle { display: flex; border: 1.5px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; }
.unit-toggle button { padding: 12px 14px; font-weight: 700; color: var(--ink-500); font-size: 0.85rem; }
.unit-toggle button.is-on { background: var(--navy-600); color: #fff; }
.route-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.route-chip {
  border: 1.5px solid var(--border); background: #fff; border-radius: var(--radius-sm);
  padding: 8px 12px; font-size: 0.8rem; font-weight: 700; color: var(--navy-700);
}
.route-chip.selected, .route-chip:hover {
  border-color: var(--navy-600); color: var(--navy-600); background: rgba(29,75,116,0.06);
}
.quiz-options.cols-3 { grid-template-columns: repeat(3, 1fr); }
/* Guardiennage: the Weekly box holds a dropdown for once, twice or thrice a week */
.visits-weekly .quiz-option-text { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.visits-per-week {
  font: inherit; font-size: 0.85rem; color: var(--navy-900); background: var(--white);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 5px 8px; cursor: pointer;
}
.visits-per-week:focus { outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 3px rgba(29,75,116,0.12); }
.visits-weekly:focus-visible { outline: 2px solid var(--navy-600); outline-offset: 2px; }
.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;
}
.vessel-banner {
  display: flex; gap: 10px; align-items: flex-start;
  background: rgba(176,141,87,0.12); border-radius: var(--radius-md); padding: 12px 14px; margin-top: 16px;
  font-size: 0.9rem; color: var(--navy-900);
}
.vessel-banner i { color: var(--brass-500); margin-top: 3px; }
.review-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.review-item {
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
  padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-md); background: #f7fafc;
}
.review-item span { display: block; font-size: 0.75rem; color: var(--ink-500); text-transform: uppercase; letter-spacing: 0.04em; }
.review-item strong { color: var(--navy-900); font-size: 0.92rem; }
.review-note { align-items: flex-start; }
.review-note strong { display: block; font-weight: 600; white-space: pre-wrap; }
.route-use {
  margin-top: 16px; color: var(--navy-600); font-weight: 700; font-size: 0.85rem;
}
.route-use:hover { color: var(--navy-900); }
.results-trip { font-weight: 700; color: var(--navy-900) !important; margin-bottom: 4px !important; }
.results-yacht { font-size: 0.88rem; margin-bottom: 12px !important; }
.results-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.results-citations {
  list-style: none; text-align: left; width: 100%; max-width: 460px; margin: 0 0 16px; padding: 0;
}
.results-citations a { color: var(--navy-600); font-size: 0.82rem; }
.citations-label { font-size: 0.75rem; color: var(--ink-300); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }
.quote-shell .ai-loading,
.quote-shell .calc-results { grid-column: 1 / -1; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 36px 28px; }
.quote-shell .ai-loading { display: none; }
.quote-shell .ai-loading.active { display: flex; }
.quote-shell .calc-results { display: none; }
.quote-shell .calc-results.active { display: flex; }

/* ---------- Scroll to top ---------- */
.scroll-top {
  position: fixed; bottom: 28px; right: 28px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy-700); color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(20px);
  transition: var(--transition); z-index: 500;
}
.scroll-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { transform: translateY(-4px); }

/* ---------- Reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
[data-reveal].in-view { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-step,
  .process-step + .process-step { padding: 28px 28px 28px 0; border-left: none; border-bottom: 1px solid var(--border); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .cta-inner { grid-template-columns: 1fr; }
  .captain-grid, .record-panel { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  /* Compact header on phones: menu, logo and quotes on one row */
  .site-header { padding: 12px 0; }
  .site-header.scrolled { padding: 8px 0; }
  .header-inner { grid-template-columns: 44px minmax(0, 1fr) auto; column-gap: 10px; }
  .nav-toggle { grid-column: 1; grid-row: 1; }
  .header-quote { grid-column: 3; grid-row: 1; padding: 8px 12px; font-size: 0.78rem; }
  .quote-menu { grid-column: 3; grid-row: 1; }
  .quote-menu .header-quote { grid-column: auto; padding: 8px 10px; font-size: 0.78rem; gap: 6px; }
  .quote-instant { display: none; }
  .site-header .brand { grid-column: 2; grid-row: 1; max-width: 100%; justify-self: center; }
  .site-header .brand-logo { width: 100%; max-width: 230px; }
  #services { padding: 112px 0 56px; }
  .service-page { padding: 112px 0 64px; }
  #guardiennageWizard .quote-step,
  #projectWizard .quote-step,
  #transportWizard .quote-step,
  #surveyWizard .quote-step { flex-direction: column; gap: 4px; padding: 7px 2px; font-size: 0.68rem; line-height: 1.1; }   /* five steps: name under the number */
  #guardiennageWizard .quote-step span,
  #projectWizard .quote-step span,
  #transportWizard .quote-step span,
  #surveyWizard .quote-step span { font-size: 0.72rem; flex-shrink: 0; }
  #guardiennageWizard .aside-row,
  #transportWizard .aside-row,
  #surveyWizard .aside-row { flex-direction: column; align-items: flex-start; gap: 2px; }
  #guardiennageWizard .aside-row strong,
  #transportWizard .aside-row strong,
  #surveyWizard .aside-row strong { text-align: left; overflow-wrap: anywhere; }
  .service-row,
  .service-row:nth-child(even) { grid-template-columns: 1fr; gap: 22px; }
  .service-row:nth-child(even) .service-media { order: 0; }
  .grid-3 { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .quiz-options { grid-template-columns: 1fr; }
  .quiz-options.cols-3,
  .lookup-identity,
  .quote-grid-2,
  .quote-shell { grid-template-columns: minmax(0, 1fr); }   /* minmax lets the form shrink to a phone screen */
  #aiQuizWrap .quote-step { min-width: 0; font-size: 0.78rem; padding: 8px 6px; }
  #vesselSuggestions.active,
  #flagSuggestions.active { position: static; width: 100%; margin-top: 6px; }
  .quote-aside { position: static; }
  .quote-main { padding: 22px 16px 18px; min-height: 0; }
  .length-row { flex-wrap: wrap; }
  .length-row input { width: 100%; }
  /* phones: brand on top; Services, Company and Get In Touch in one row, divided by faded lines */
  .footer-inner { grid-template-columns: 1.15fr 0.9fr 1fr; gap: 28px 0; text-align: left; padding-bottom: 36px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-inner > .footer-col:not(.footer-brand) { padding: 0 10px; min-width: 0; }
  .footer-inner > .footer-col:not(.footer-brand) + .footer-col { border-left: 1px solid rgba(255,255,255,0.12); }
  .footer-inner > .footer-col:nth-child(2) { padding-left: 0; }
  .footer-col h4 { font-size: 0.82rem; margin-bottom: 10px; }
  .footer-col a, .footer-col p { font-size: 0.76rem; line-height: 1.35; margin-bottom: 9px; }
  .footer-col p i { margin-right: 5px; width: 11px; }
  .footer-contact p { position: relative; padding-left: 17px; }   /* wrapped lines line up with the text, not the icon */
  .footer-contact p i { position: absolute; left: 0; top: 0.2em; margin: 0; }
  .toast-container { right: 12px; left: 12px; max-width: none; top: 90px; }
}

@media (max-width: 800px) {
  .results-story,
  .results-breakdown { grid-template-columns: 1fr; }
  .results-explain,
  .results-explain h3,
  .results-explain p,
  .results-explain .results-icon { text-align: center; }
  .vessel-photo img { height: 190px; }
}

/* ---------- Accessibility ---------- */
.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 2000;
  padding: 10px 16px; border-radius: var(--radius-sm);
  background: var(--brass); color: var(--navy-950); font-weight: 600;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; outline: 2px solid #fff; outline-offset: 2px; }
main:focus { outline: none; }

/* Visitors who ask their device to reduce motion: no slide-ins, no animated scrolling */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* Line under each quote form's introduction */
.section-head .estimate-note {
  margin-top: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--brass-700);
}

/* ---------- Owner testimonials ---------- */
/* One row that loops: the script adds copies of the cards on each side, so swiping never reaches an end */
.testimonial-track {
  display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 2px 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.testimonial-track::-webkit-scrollbar { display: none; }
.testimonial-track > .testimonial { flex: 0 0 calc((100% - 48px) / 3); scroll-snap-align: start; }
.testimonial-controls { display: flex; justify-content: center; gap: 12px; margin-top: 22px; }
.testimonial-arrow {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--border); background: var(--white); color: var(--navy-900); cursor: pointer;
  transition: var(--transition);
}
.testimonial-arrow:hover, .testimonial-arrow:focus-visible { border-color: var(--navy-600); color: var(--navy-600); }
.testimonial {
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding: 30px 28px;
  background: var(--white);
  border-top: 2px solid var(--brass-500);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.testimonial blockquote { margin: 0; }
.testimonial blockquote p {
  font-family: var(--ff-head);
  font-style: italic;
  font-weight: 500;
  font-size: 1.35rem;
  line-height: 1.4;
  color: var(--navy-900);
}
.testimonial figcaption { display: grid; gap: 2px; font-size: 0.85rem; }
.testimonial figcaption strong { color: var(--navy-900); font-weight: 600; }
.testimonial figcaption span { color: var(--ink-500); }
/* Placeholder until the real quotes arrive. Remove the class when a card is filled in. */
.testimonial.is-placeholder { outline: 2px dashed var(--brass-500); outline-offset: -8px; opacity: 0.8; }
@media (max-width: 900px) {
  .testimonial-track > .testimonial { flex-basis: calc((100% - 24px) / 2); }
}
@media (max-width: 600px) {
  .testimonial-track { gap: 14px; }
  .testimonial-track > .testimonial { flex-basis: 86%; }
}

/* A link inside a footer sentence stays on the same line as its icon */
.footer-col p a { display: inline; margin: 0; }

/* Step headings receive focus so screen readers announce each new step;
   they are not controls, so no focus outline is drawn around them. */
.quiz-question-title:focus { outline: none; }

/* A hint with nothing to say yet takes no space (e.g. the length conversion before a length is entered) */
.field-hint:empty { display: none; }

/* ---------- Flags (js/flags.js) ---------- */
.flag-icon {
  display: inline-block; flex: none;
  width: 20px; height: 15px; object-fit: cover;
  border-radius: 2px; box-shadow: 0 0 0 1px rgba(10, 31, 51, 0.12);
  vertical-align: -2px;
}
.vessel-suggestion-flag { display: inline-flex; align-items: center; gap: 6px; }
.place-autocomplete .flag-in-input {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  display: flex; pointer-events: none;
}
.place-autocomplete .flag-in-input:empty { display: none; }
.place-autocomplete input.has-flag { padding-left: 44px; }

/* Delivery: departure timing frames, styled like the Meters/Feet switch */
.timing-frames {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 8px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); overflow: hidden;
}
.timing-frames button {
  display: grid; align-content: center; gap: 2px; min-height: 58px; padding: 10px 8px;
  text-align: center; font-weight: 700; font-size: 0.85rem; color: var(--ink-500); background: var(--white);
}
.timing-frames button + button { border-left: 1.5px solid var(--border); }
.timing-frames button small { font-size: 0.76rem; font-weight: 600; color: var(--brass-700); }
.timing-frames button:hover { background: rgba(29,75,116,0.05); }
.timing-frames button.is-on { background: var(--navy-600); color: #fff; }
.timing-frames button.is-on small { color: var(--brass-300); }
.timing-frames button:focus-visible { outline: 2px solid var(--navy-600); outline-offset: -4px; }
@media (max-width: 520px) {
  .timing-frames { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timing-frames button:nth-child(3) { border-left: none; }
  .timing-frames button:nth-child(n+3) { border-top: 1.5px solid var(--border); }
}


/* Our other services, on a result screen: one quiet line and a button */
.next-service-slot { width: 100%; text-align: left; margin-bottom: 20px; }
.next-service {
  margin: 8px 0 0; padding: 16px 18px;
  border: 1px solid var(--border); border-left: 3px solid var(--brass-500); border-radius: var(--radius-md);
  background: var(--white);
}
.next-service p { margin: 0; font-size: 0.92rem; color: var(--ink-700); }
.next-service-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.next-service-btn { padding: 9px 16px; font-size: 0.88rem; }
.next-service-btn[aria-pressed="true"] { border-color: var(--navy-600); background: rgba(29,75,116,0.08); }
.next-service p.next-service-added { margin-top: 10px; font-size: 0.84rem; color: var(--ink-500); }
.next-service p.next-service-added:empty { display: none; }

/* Transport: "Not known" under a size figure */
.quote-field label.checkbox-inline.size-unknown { margin-top: 8px; font-size: 0.86rem; }
.quote-field input:disabled { background: var(--paper, #f4f6f8); color: var(--ink-300); cursor: not-allowed; }

/* Service page banner with the service's photo beside the title (stacks on phones) */
.service-hero.has-media {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: 56px; align-items: center;
}
.service-hero-media { margin: 0; }
.service-hero-media img {
  display: block; width: 100%; height: 340px; object-fit: cover;
  border: 1px solid rgba(201, 171, 119, 0.35);
}
@media (max-width: 900px) {
  .service-hero.has-media { grid-template-columns: 1fr; gap: 32px; }
  .service-hero-media { max-width: 560px; }
  .service-hero-media img { height: auto; aspect-ratio: 5 / 3; }   /* stacked: a fixed shape rather than a thin strip */
}

/* A row of three photographs between sections of a service page.
   Each photo is framed with a white border and shown at 4:3, so it reads the same on every screen. */
.photo-band { background: var(--off-white); padding: 8px 0 64px; }
.photo-band-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.photo-band figure {
  margin: 0; background: var(--white); padding: 8px;
  border: 1px solid var(--border); box-shadow: 0 10px 24px rgba(10, 31, 51, 0.08);
}
.photo-band img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-band figcaption { margin-top: 10px; padding: 0 4px; font-size: 0.84rem; color: var(--ink-500); letter-spacing: 0.02em; }
/* Phones: a swipeable strip, one photo at a time with the next one peeking in */
@media (max-width: 760px) {
  .photo-band-grid {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
    scroll-padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-bottom: 6px; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .photo-band-grid::-webkit-scrollbar { display: none; }
  .photo-band figure { flex: 0 0 86%; scroll-snap-align: start; }
  /* survey page: the hull below the waterline leads on phones */
  .photo-band-survey figure:nth-child(1) { order: 4; }
  .photo-band-survey figure:nth-child(4) { order: 1; }
  .photo-band-survey figure:nth-child(2) { order: 2; }
  .photo-band-survey figure:nth-child(3) { order: 3; }
  .photo-band-survey figure:nth-child(5) { order: 5; }
  .photo-band-survey figure:nth-child(6) { order: 6; }
  .photo-dots { display: flex; justify-content: center; gap: 0; margin-top: 6px; }
  .photo-dots button {   /* an 8 px dot inside a 24 px touch area */
    box-sizing: content-box; width: 8px; height: 8px; padding: 8px; border: 0; border-radius: 50%;
    background: var(--border); background-clip: content-box; cursor: pointer;
  }
  .photo-dots button[aria-current="true"] { background: var(--navy-600); }
}
@media (min-width: 761px) { .photo-dots { display: none; } }
.photo-band-top { padding-top: 64px; }   /* a row that follows a coloured section needs space above it */

/* Privacy notice and other plain reading pages */
.legal { background: var(--off-white); }
.legal-body { max-width: 760px; }
.legal-body h2 { font-size: 1.6rem; margin: 36px 0 12px; }
.legal-body p, .legal-body li { color: var(--ink-700); font-size: 1rem; line-height: 1.7; }
.legal-body p { margin: 0 0 14px; }
.legal-body ul { margin: 0 0 14px; padding-left: 1.2rem; list-style: disc; }
.legal-body li { margin-bottom: 6px; }
.legal-body a { color: var(--navy-600); text-decoration: underline; text-underline-offset: 3px; }
.legal-updated { font-size: 0.88rem !important; color: var(--ink-500) !important; }
.form-privacy { margin: 18px auto 0; max-width: 640px; text-align: center; font-size: 0.84rem; color: var(--ink-500); }
.form-privacy a { color: var(--navy-600); text-decoration: underline; text-underline-offset: 3px; }
