/* ==========================================================================
   Imperia Boat Garage — Design System
   Navy + Gold, mobile-first, "rent americano" style
   ========================================================================== */

:root {
  --navy-950: #050f1e;
  --navy-900: #0a1a30;
  --navy-800: #0f2540;
  --navy-700: #17385c;
  --navy-600: #23507f;
  --gold-600: #b3812f;
  --gold-500: #c9963e;
  --gold-400: #dcae62;
  --gold-300: #ecca8f;
  --gold-100: #faf1e2;
  --cream: #f6f3ec;
  --white: #ffffff;
  --ink: #0a1628;
  --gray-700: #3d4a5c;
  --gray-600: #5b6b7f;
  --gray-400: #94a3b8;
  --gray-200: #e3e7ed;
  --gray-100: #f1f3f6;

  --font-display: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1240px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;

  --shadow-sm: 0 2px 8px rgba(5, 15, 30, 0.08);
  --shadow-md: 0 8px 24px rgba(5, 15, 30, 0.12);
  --shadow-lg: 0 20px 50px rgba(5, 15, 30, 0.22);
  --shadow-gold: 0 10px 30px rgba(201, 150, 62, 0.35);

  --header-h: 72px;
  --mobile-cta-h: 64px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--mobile-cta-h);
  overflow-x: hidden;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--navy-950);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-600);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--gold-500);
  display: inline-block;
  border-radius: 2px;
}

.section {
  padding: 72px 0;
  position: relative;
}
.section--tight { padding: 56px 0; }
.section--navy {
  background: linear-gradient(160deg, var(--navy-950), var(--navy-800) 65%, var(--navy-900));
  color: var(--white);
}
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--cream { background: var(--cream); }

.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 {
  font-size: clamp(28px, 5vw, 42px);
  margin-top: 12px;
}
.section-head p {
  margin-top: 16px;
  font-size: 17px;
  color: var(--gray-600);
}
.section--navy .section-head p { color: var(--gray-400); }

/* reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:active { transform: scale(0.97); }

.btn--gold {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--navy-950);
  box-shadow: var(--shadow-gold);
}
.btn--gold:hover { box-shadow: 0 14px 36px rgba(201, 150, 62, 0.45); }

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}
.btn--outline:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); }

.btn--outline-navy {
  background: transparent;
  color: var(--navy-950);
  border: 1.5px solid var(--navy-800);
}
.btn--outline-navy:hover { background: var(--navy-950); color: var(--white); }

.btn--block { width: 100%; }
.btn--sm { padding: 11px 20px; font-size: 14px; }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.site-header::before {
  content: "";
  position: absolute; inset: 0;
  background: transparent;
  transition: background 0.25s ease, backdrop-filter 0.25s ease;
  z-index: -1;
}
.site-header.is-scrolled::before,
.site-header.is-open::before {
  background: rgba(5, 15, 30, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand { display: flex; align-items: center; gap: 11px; }
.brand__icon { height: 26px; width: auto; flex-shrink: 0; }
.brand__name {
  display: flex;
  flex-direction: column;
  line-height: 1;
  font-family: var(--font-display);
  white-space: nowrap;
}
.brand__name .brand__pre {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: var(--gold-400);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.brand__name .brand__main {
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--white);
  text-transform: uppercase;
}

.main-nav {
  display: none;
}
.main-nav ul { display: flex; gap: 30px; }
.main-nav a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--white);
  opacity: 0.85;
  transition: opacity 0.15s ease, color 0.15s ease;
  position: relative;
}
.main-nav a:hover { opacity: 1; }
.main-nav a.is-active,
.mobile-nav a.is-active {
  opacity: 1;
  color: var(--gold-400);
}
.footer-col a.is-active { color: var(--gold-400); }

.header-actions { display: flex; align-items: center; gap: 14px; }

.lang-switch {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 2px;
}
.lang-switch button {
  padding: 6px 10px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.02em;
}
.lang-switch button.is-active {
  background: var(--gold-500);
  color: var(--navy-950);
}

.header-cta { display: none; }

/* On mobile the language switch already lives in the open mobile-nav
   panel; showing it in the compact header too crowds the brand name. */
.header-actions .lang-switch { display: none; }

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  align-items: center;
}
.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.site-header.is-open .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.is-open .hamburger span:nth-child(2) { opacity: 0; }
.site-header.is-open .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav overlay */
.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--navy-950);
  z-index: 190;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  overflow-y: auto;
}
.mobile-nav.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mobile-nav .container { padding-top: 28px; padding-bottom: 40px; }
.mobile-nav ul { display: flex; flex-direction: column; }
.mobile-nav a {
  display: block;
  padding: 16px 4px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.mobile-nav .lang-switch { margin-top: 28px; align-self: flex-start; }
.mobile-nav .btn { margin-top: 24px; }

body.nav-open { overflow: hidden; }

/* Sticky mobile CTA bar */
.mobile-cta-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 150;
  background: rgba(5, 15, 30, 0.96);
  backdrop-filter: blur(8px);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255,255,255,0.08);
}
.mobile-cta-bar .btn { width: 100%; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding-top: calc(var(--header-h) + 36px);
  padding-bottom: 56px;
  background:
    radial-gradient(ellipse 120% 60% at 85% -10%, rgba(201,150,62,0.25), transparent 60%),
    linear-gradient(180deg, var(--navy-950), var(--navy-900) 55%, var(--navy-800));
  color: var(--white);
  overflow: hidden;
}

.hero__waves {
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  width: 100%;
  height: auto;
  color: var(--white);
  opacity: 0.03;
}

.hero__grid {
  display: flex;
  flex-direction: column;
  gap: 36px;
  position: relative;
  z-index: 2;
}

.hero__boat {
  position: relative;
  opacity: 0.9;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}
.hero__boat img {
  width: 100%;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.35));
}

.hero__content { text-align: center; }
.hero__content .eyebrow { justify-content: center; }
.hero__content .eyebrow::before { display: none; }

.hero h1 {
  margin-top: 16px;
  font-size: clamp(34px, 8vw, 64px);
  letter-spacing: -0.02em;
  color: var(--white);
}
.hero h1 em {
  font-style: normal;
  color: var(--gold-400);
}

.hero__sub {
  margin: 20px auto 0;
  max-width: 560px;
  font-size: 17px;
  color: var(--gray-400);
}

.hero__actions {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hero__actions .btn { width: 100%; }

.hero__stats {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.hero__stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(22px, 4vw, 30px);
  color: var(--white);
}
.hero__stat span {
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-400);
}

/* ==========================================================================
   Page hero (inner pages banner)
   ========================================================================== */

.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + 44px);
  padding-bottom: 48px;
  background:
    radial-gradient(ellipse 120% 60% at 90% -10%, rgba(201,150,62,0.22), transparent 60%),
    linear-gradient(160deg, var(--navy-950), var(--navy-800) 70%, var(--navy-900));
  color: var(--white);
  overflow: hidden;
}
.page-hero__boat {
  position: absolute;
  top: 50%;
  right: -60px;
  transform: translateY(-50%);
  width: 340px;
  opacity: 0.08;
  pointer-events: none;
  display: none;
}
.page-hero__inner { position: relative; z-index: 2; max-width: 640px; }
.page-hero .eyebrow { justify-content: flex-start; }
.page-hero h1 {
  margin-top: 14px;
  color: var(--white);
  font-size: clamp(30px, 6vw, 48px);
  letter-spacing: -0.02em;
}
.page-hero p {
  margin-top: 16px;
  font-size: 16.5px;
  color: var(--gray-400);
  max-width: 560px;
}
.page-hero__crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gray-400);
  margin-bottom: 18px;
}
.page-hero__crumb a { color: var(--gray-400); transition: color 0.15s ease; }
.page-hero__crumb a:hover { color: var(--gold-400); }

@media (min-width: 1024px) {
  .page-hero { padding-bottom: 70px; }
}

/* ==========================================================================
   CTA band
   ========================================================================== */

.cta-band {
  text-align: center;
}
.cta-band h2 { color: var(--white); font-size: clamp(26px, 5vw, 38px); }
.cta-band p { margin-top: 14px; color: var(--gray-400); font-size: 16px; max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-band .btn { margin-top: 26px; }

/* ==========================================================================
   Teaser cards (home -> inner pages)
   ========================================================================== */

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-600);
}
.card-link svg { width: 16px; height: 16px; transition: transform 0.15s ease; }
.service-card:hover .card-link svg { transform: translateX(3px); }

/* ==========================================================================
   Service cards
   ========================================================================== */

.service-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
.service-grid--3 { gap: 22px; }
.service-grid--3 .service-card { padding: 28px 24px; }
.service-grid--3 .service-card__icon { width: 48px; height: 48px; }
.service-grid--3 .service-card__icon svg { width: 22px; height: 22px; }
.service-grid--3 .service-card h3 { font-size: 18.5px; }

.service-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.service-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--navy-800), var(--navy-950));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-400);
  margin-bottom: 20px;
}
.service-card__icon svg { width: 26px; height: 26px; }

.service-card h3 { font-size: 21px; margin-bottom: 10px; }
.service-card p { color: var(--gray-600); font-size: 15.5px; }

.service-card__list {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.service-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: var(--gray-700);
}
.service-card__list svg {
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin-top: 2px;
  color: var(--gold-600);
}

/* Feature checklist (struttura) */
.feature-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 24px;
}
.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
}
.feature-list svg {
  flex-shrink: 0;
  width: 20px; height: 20px;
  color: var(--gold-500);
}

/* ==========================================================================
   Stats strip
   ========================================================================== */

.stats-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 20px;
}
.stat {
  text-align: center;
  padding: 24px 12px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(26px, 5vw, 36px);
  color: var(--navy-950);
}
.stat span {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-600);
}

/* ==========================================================================
   Security grid
   ========================================================================== */

.security-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.security-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 26px 22px;
}
.security-card svg {
  width: 30px; height: 30px;
  color: var(--gold-400);
  margin-bottom: 16px;
}
.security-card h3 { font-size: 17px; margin-bottom: 8px; }
.security-card p { font-size: 14.5px; color: var(--gray-400); }

/* ==========================================================================
   Process steps
   ========================================================================== */

.process {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.process-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  padding-bottom: 36px;
  position: relative;
}
.process-step:last-child { padding-bottom: 0; }
.process-step__num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--navy-950);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.process-step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 48px;
  bottom: 0;
  width: 2px;
  background: repeating-linear-gradient(to bottom, var(--gray-200) 0 6px, transparent 6px 12px);
}
.process-step__body h3 { font-size: 19px; margin-bottom: 8px; }
.process-step__body p { color: var(--gray-600); font-size: 15px; }

/* ==========================================================================
   Location
   ========================================================================== */

.location-wrap {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.location-intro { max-width: 640px; }

.map-shell {
  position: relative;
  width: 100%;
  height: 340px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--navy-900);
}
#site-map { width: 100%; height: 100%; z-index: 1; background: var(--navy-900); }

.leaflet-popup-content-wrapper {
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
}
.leaflet-popup-content b { color: var(--gold-600); }
.map-pin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--gold-500);
  border: 2px solid var(--white);
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
}
.map-pin--main {
  width: 26px; height: 26px;
  background: var(--navy-950);
  border: 3px solid var(--gold-500);
}

.location-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 24px;
  border-top: 1px solid var(--gray-200);
}
.location-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 4px;
  border-bottom: 1px solid var(--gray-200);
  font-size: 15px;
}
.location-list li b {
  font-family: var(--font-display);
  color: var(--gold-600);
  font-size: 14px;
}
.location-list li.is-highlight { color: var(--navy-950); font-weight: 700; }

.highway-note {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gold-600);
}
.highway-note svg { width: 20px; height: 20px; }

@media (min-width: 640px) {
  .location-list { grid-template-columns: 1fr 1fr; column-gap: 40px; display: grid; }
}

@media (min-width: 1024px) {
  .map-shell { height: 460px; }
  .location-list { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================================
   Form
   ========================================================================== */

.quote-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.quote-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  box-shadow: var(--shadow-lg);
}

.form-row { margin-bottom: 18px; }
.form-row-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.form-row label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--gray-700);
  margin-bottom: 8px;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 15.5px;
  background: var(--gray-100);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  background: var(--white);
}
.form-row textarea { resize: vertical; min-height: 96px; }

.form-note {
  font-size: 13px;
  color: var(--gray-600);
  margin-top: 14px;
  text-align: center;
}

.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}
.form-success.is-visible { display: block; }
.form-success svg {
  width: 56px; height: 56px;
  color: var(--gold-500);
  margin: 0 auto 16px;
}
.form-success h3 { font-size: 22px; margin-bottom: 10px; }
.form-success p { color: var(--gray-600); }

.quote-form.is-hidden { display: none; }

.quote-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.quote-side-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  background: var(--cream);
  border-radius: var(--radius-md);
}
.quote-side-card svg {
  width: 24px; height: 24px;
  color: var(--gold-600);
  flex-shrink: 0;
  margin-top: 2px;
}
.quote-side-card h4 { font-size: 15.5px; margin-bottom: 4px; }
.quote-side-card p { font-size: 14px; color: var(--gray-600); }
.quote-side-card a { color: var(--navy-800); font-weight: 700; text-decoration: underline; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--navy-950);
  color: var(--gray-400);
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}
.footer-brand img { height: 30px; margin-bottom: 14px; }
.footer-brand p { font-size: 14px; max-width: 320px; }

.footer-col h4 {
  color: var(--white);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a, .footer-col p { font-size: 14.5px; }
.footer-col a:hover { color: var(--white); }

.footer-lang { margin-top: 6px; }

.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
}
.footer-bottom a { text-decoration: underline; }

/* ==========================================================================
   Icon helpers
   ========================================================================== */
.icon { width: 24px; height: 24px; }

/* ==========================================================================
   Cookie banner
   ========================================================================== */

.cookie-banner {
  position: fixed;
  left: 16px; right: 16px;
  bottom: calc(var(--mobile-cta-h) + 16px + env(safe-area-inset-bottom));
  z-index: 300;
  background: var(--navy-950);
  color: var(--gray-400);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  gap: 14px;
}
.cookie-banner.is-visible { display: flex; }
.cookie-banner p { font-size: 13.5px; line-height: 1.5; }
.cookie-banner p a { color: var(--gold-400); text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 12px; }
.cookie-banner__actions .btn { flex: 1; }

@media (min-width: 640px) {
  .cookie-banner {
    left: auto; right: 24px; bottom: 24px;
    max-width: 400px;
  }
  .cookie-banner__actions .btn { flex: none; }
}

/* ==========================================================================
   Legal / privacy page
   ========================================================================== */

.legal-content {
  max-width: 760px;
  margin: 0 auto;
}
.legal-content .updated {
  color: var(--gray-600);
  font-size: 14px;
  margin-bottom: 40px;
}
.legal-section { margin-bottom: 32px; }
.legal-section h2 {
  font-size: 20px;
  margin-bottom: 10px;
}
.legal-section p {
  color: var(--gray-600);
  font-size: 15.5px;
  line-height: 1.7;
}

/* ==========================================================================
   Tablet (>= 640px)
   ========================================================================== */
@media (min-width: 640px) {
  .hero__actions { flex-direction: row; justify-content: center; }
  .hero__actions .btn { width: auto; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-strip { grid-template-columns: repeat(4, 1fr); }
  .security-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-list { grid-template-columns: repeat(2, 1fr); }
  .form-row-group { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   Desktop (>= 1024px)
   ========================================================================== */
@media (min-width: 1024px) {
  .hero { padding-bottom: 90px; }
  .hero__grid {
    flex-direction: row;
    align-items: center;
    gap: 60px;
  }
  .hero__content {
    text-align: left;
    flex: 1.1;
  }
  .hero__content .eyebrow { justify-content: flex-start; }
  .hero__content .eyebrow::before { display: inline-block; }
  .hero__sub { margin-left: 0; }
  .hero__actions { justify-content: flex-start; }
  .hero__stats {
    grid-template-columns: repeat(4, 1fr);
    max-width: 640px;
  }
  .hero__boat { flex: 1; max-width: 560px; }

  .section { padding: 110px 0; }
  .section-head h2 { font-size: 44px; }

  .service-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .service-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .security-grid { grid-template-columns: repeat(5, 1fr); }
  .stats-strip { gap: 24px; }

  .process {
    flex-direction: row;
    gap: 24px;
  }
  .process-step {
    grid-template-columns: 1fr;
    text-align: left;
    flex: 1;
  }
  .process-step__num { margin-bottom: 20px; }
  .process-step:not(:last-child)::before {
    left: 48px;
    top: 24px;
    right: auto;
    bottom: auto;
    width: calc(100% - 24px);
    height: 2px;
    background: repeating-linear-gradient(to right, var(--gray-200) 0 6px, transparent 6px 12px);
  }

  .quote-wrap { grid-template-columns: 1.3fr 1fr; align-items: start; gap: 56px; }
  .quote-form { padding: 40px; }

  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

/* ==========================================================================
   Desktop nav (>= 1200px)
   The full horizontal nav + lang switch + CTA need more room than the
   1024px content breakpoint provides; switching them earlier caused the
   header to wrap onto two lines and overlap the page content below it.
   ========================================================================== */
@media (min-width: 1200px) {
  body { padding-bottom: 0; }
  .mobile-cta-bar { display: none; }
  .cookie-banner { bottom: 24px; }

  .main-nav { display: block; }
  .header-cta { display: inline-flex; }
  .header-actions .lang-switch { display: flex; }
  .hamburger { display: none; }

  .hero { padding-top: calc(var(--header-h) + 80px); }
  .page-hero { padding-top: calc(var(--header-h) + 70px); }
  .page-hero__boat { display: block; }
}

@media (min-width: 1280px) {
  .hero h1 { font-size: 68px; }
}
