/* ============================================================
   IPWCF — International Personal Watercraft Federation
   Design: navy + marine blue, gold accent, mobile-first
   ============================================================ */

/* --- Reset & Base ----------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:        #0a2342;
  --navy-2:      #0f3a66;
  --blue:        #0b6bcb;
  --blue-dark:   #0857a6;
  --aqua:        #19b3c7;
  --gold:        #c9a227;
  --bg:          #ffffff;
  --bg-alt:      #f3f6fa;
  --border:      #dde4ee;
  --text:        #0f1b2d;
  --text-muted:  #52627a;
  --radius:      12px;
  --radius-sm:   8px;
  --max-w:       1120px;
  --head:        "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --body:        "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.icon { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }
.icon-sm { width: 16px; height: 16px; }

:focus-visible { outline: 3px solid var(--aqua); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

/* --- Layout ----------------------------------------------- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 16px; }

.section { padding: 56px 0; }
.section-alt { background: var(--bg-alt); }

/* --- Typography ------------------------------------------- */
.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}
.eyebrow-light { color: var(--aqua); }

.section-title {
  font-family: var(--head);
  font-size: clamp(1.9rem, 6vw, 2.75rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin-bottom: 14px;
  text-wrap: balance;
}

.section-intro {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 660px;
  margin-bottom: 32px;
}

.text-link { color: var(--blue); font-weight: 700; }
.text-link:hover { text-decoration: underline; }

/* --- Buttons ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 0.9rem; }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 1.05rem; }

.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }

.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

.btn-ghost { color: var(--navy); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--navy); }

/* --- Utility bar ------------------------------------------ */
.utility-bar { background: var(--navy); color: #c8d4e6; font-size: 0.8rem; }
.utility-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; }
.utility-official { display: flex; align-items: center; gap: 6px; line-height: 1.3; }
.utility-official .icon { width: 16px; height: 16px; color: var(--gold); }
.region-btn {
  display: flex; align-items: center; gap: 4px;
  color: #fff; font-weight: 600; padding: 6px 0; white-space: nowrap;
}
.region-btn .icon { width: 16px; height: 16px; }

/* --- Header ----------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(1.4) blur(8px);
}
.header-inner { display: flex; align-items: center; gap: 12px; min-height: 64px; }

.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; min-width: 0; }
.brand-emblem { width: 42px; height: 42px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.brand-abbr { font-family: var(--head); font-weight: 700; font-size: 1.45rem; letter-spacing: 0.06em; color: var(--navy); }
.brand-name { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); }

.nav-desktop { display: none; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.hide-xs { display: none; }

.menu-btn {
  width: 44px; height: 44px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  border-radius: var(--radius-sm);
}
.menu-btn span { width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile { border-top: 1px solid var(--border); padding: 8px 16px 20px; background: #fff; }
.nav-mobile > a {
  display: block; padding: 14px 4px; font-weight: 600; font-size: 1.05rem;
  border-bottom: 1px solid var(--border);
}
.nav-mobile-actions { display: grid; gap: 10px; margin-top: 18px; }

/* --- Hero ------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy) 0%, #0b2d55 60%, var(--navy-2) 100%);
  color: #fff;
  padding: 40px 0 88px;
}
.hero-map {
  position: absolute; right: -30%; top: 0; width: 130%; height: 100%;
  opacity: 0.25; pointer-events: none;
}
.hero-content { position: relative; }
.hero-title {
  font-family: var(--head);
  font-size: clamp(2.6rem, 11vw, 4.5rem);
  font-weight: 700;
  line-height: 0.98;
  margin-bottom: 14px;
  text-wrap: balance;
}
.hero-sub { color: #c8d4e6; font-size: 1.05rem; max-width: 560px; margin-bottom: 26px; }

/* Finder */
.finder {
  background: #fff; color: var(--text);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.25);
  max-width: 620px;
}
.finder-label { display: block; font-size: 0.8rem; font-weight: 700; color: var(--text-muted); margin: 0 0 6px 2px; }
.finder-row { position: relative; display: flex; gap: 8px; }
.finder-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.finder input {
  flex: 1; min-width: 0; min-height: 50px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 0 12px 0 40px;
  font: inherit; font-size: 1rem; /* 16px stops iOS zoom-on-focus */
  color: var(--text); background: #fff;
}
.finder input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(11,107,203,0.18); }
.finder-submit { min-height: 50px; padding: 0 18px; }
.finder-locate {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 10px; padding: 8px 2px; min-height: 40px;
  color: var(--blue); font-weight: 700; font-size: 0.95rem;
}
.finder-locate:disabled { opacity: 0.6; cursor: wait; }
.finder-status:empty { display: none; }
.finder-status { font-size: 0.9rem; color: #a3341f; margin-top: 4px; }

/* --- Quick actions ---------------------------------------- */
.quick { margin-top: -56px; position: relative; z-index: 2; }
.quick-grid { display: grid; gap: 10px; }
.quick-card {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; min-height: 76px;
  box-shadow: 0 6px 18px rgba(10,35,66,0.08);
  transition: border-color .15s, transform .15s;
}
.quick-card:hover { border-color: var(--blue); transform: translateY(-1px); }
.quick-icon {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: #e7f1fb; color: var(--blue); flex-shrink: 0;
}
.quick-text { display: flex; flex-direction: column; line-height: 1.3; flex: 1; }
.quick-text strong { font-size: 1.05rem; color: var(--navy); }
.quick-text span { font-size: 0.9rem; color: var(--text-muted); }
.quick-arrow { color: var(--text-muted); }

/* --- Regions ---------------------------------------------- */
.region-grid { display: grid; gap: 10px; }
.region-card {
  display: flex; align-items: center; gap: 14px;
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; min-height: 72px;
  transition: border-color .15s;
}
.region-card:hover { border-color: var(--blue); }
.region-card strong { display: block; color: var(--navy); font-size: 1.05rem; }
.region-sub { font-size: 0.88rem; color: var(--text-muted); }
.region-flag { font-size: 1.8rem; line-height: 1; }
.region-card-muted { background: var(--bg-alt); border-style: dashed; }

/* --- Steps ------------------------------------------------ */
.steps { list-style: none; display: grid; gap: 14px; }
.step { background: #fff; border-radius: var(--radius); padding: 22px; border: 1px solid var(--border); }
.step-num {
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--navy); color: #fff;
  font-family: var(--head); font-weight: 700; font-size: 1.15rem;
  margin-bottom: 12px;
}
.step h3, .compete-card h3, .pillar h3, .app-card h3 {
  font-family: var(--head); font-size: 1.45rem; font-weight: 700; line-height: 1.1; margin-bottom: 6px; color: var(--navy);
}
.step p { color: var(--text-muted); }

/* --- Compete ---------------------------------------------- */
.compete-grid { display: grid; gap: 14px; margin-top: 8px; }
.compete-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.compete-card p { color: var(--text-muted); margin-bottom: 16px; }
.compete-card-feature { border-top: 4px solid var(--aqua); }
.compete-card:first-child { border-top: 4px solid var(--blue); }

/* --- Pricing ---------------------------------------------- */
.price-grid { display: grid; gap: 12px; }
.price-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 4px 16px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px;
}
.price-name { font-family: var(--head); font-size: 1.45rem; font-weight: 700; line-height: 1.1; color: var(--navy); }
.price-amount {
  font-family: var(--head); font-size: 2.1rem; font-weight: 700; line-height: 1; color: var(--navy);
  text-align: right;
}
.price-unit {
  display: block; margin-top: 4px;
  font-family: var(--body); font-size: 0.8rem; font-weight: 600; color: var(--text-muted);
}
.price-desc { grid-column: 1 / -1; color: var(--text-muted); margin-top: 6px; }
.price-badge {
  grid-column: 1 / -1; justify-self: start;
  background: var(--gold); color: var(--navy);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; margin-bottom: 6px;
}
.price-card-feature { background: var(--navy); border-color: var(--navy); box-shadow: 0 14px 34px rgba(10,35,66,0.22); }
.price-card-feature .price-name, .price-card-feature .price-amount { color: #fff; }
.price-card-feature .price-unit, .price-card-feature .price-desc { color: #c8d4e6; }
.price-cta { grid-column: 1 / -1; margin-top: 14px; width: 100%; }
.price-note { font-size: 0.9rem; color: var(--text-muted); margin-top: 18px; }

/* --- Governance ------------------------------------------- */
.section-dark { background: var(--navy); color: #fff; }
.section-dark .section-intro { color: #c8d4e6; }
.pillars { display: grid; gap: 12px; }
.pillar {
  display: block;
  border: 1px solid rgba(255,255,255,0.14); border-radius: var(--radius);
  padding: 20px; background: rgba(255,255,255,0.03);
  transition: border-color .15s, background .15s;
}
.pillar:hover { border-color: var(--aqua); background: rgba(25,179,199,0.08); }
.pillar h3 { color: #fff; }
.pillar h3::before {
  content: ""; display: block; width: 28px; height: 3px; background: var(--gold); margin-bottom: 12px;
}
.pillar p { color: #c8d4e6; font-size: 0.95rem; }

/* --- Makes ------------------------------------------------ */
.section-makes { padding: 32px 0; border-bottom: 1px solid var(--border); }
.makes-inner { text-align: center; }
.makes-title { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); font-weight: 700; margin-bottom: 8px; }
.makes-list { font-family: var(--head); font-size: 1.35rem; font-weight: 600; color: var(--navy); line-height: 1.4; }
.makes-list span { color: var(--aqua); padding: 0 4px; }

/* --- Join / App ------------------------------------------- */
.join-grid { display: grid; gap: 28px; }
.join-actions { display: grid; gap: 10px; }
.app-card { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 24px; }
.app-card h3 { color: #fff; }
.app-card p { color: #c8d4e6; margin-bottom: 18px; }
.app-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: #000; color: #fff; border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-sm); padding: 8px 16px; min-height: 52px;
}
.store-btn .icon { width: 24px; height: 24px; }
.store-btn span { display: flex; flex-direction: column; line-height: 1.1; font-weight: 700; font-size: 1.05rem; }
.store-btn small { font-weight: 500; font-size: 0.68rem; }

/* --- Footer ----------------------------------------------- */
.footer { background: #071a31; color: #c8d4e6; padding: 44px 0 28px; font-size: 0.95rem; }
.footer-top { display: flex; flex-direction: column; gap: 10px; margin-bottom: 30px; }
.brand-footer .brand-abbr { color: #fff; }
.brand-footer .brand-name { color: #9fb0c8; }
.footer-motto { font-family: var(--head); font-size: 1.15rem; letter-spacing: 0.06em; color: var(--gold); }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; }
.footer-cols h3 { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; margin-bottom: 10px; }
.footer-cols a { display: block; padding: 6px 0; }
.footer-cols a:hover, .footer-legal a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 32px; padding-top: 20px; display: grid; gap: 8px; font-size: 0.85rem; }
.footer-legal { display: flex; gap: 18px; }
.footer-note { color: #8395af; font-size: 0.8rem; }

/* --- Region dialog ---------------------------------------- */
.region-dialog {
  margin: auto; border: 0; border-radius: var(--radius); padding: 0;
  width: min(420px, calc(100% - 32px));
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}
.region-dialog::backdrop { background: rgba(7,26,49,0.6); }
.region-dialog-inner { padding: 20px; }
.region-dialog-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.region-dialog-head h2 { font-family: var(--head); font-size: 1.6rem; color: var(--navy); }
.dialog-close { width: 44px; height: 44px; font-size: 1.8rem; line-height: 1; color: var(--text-muted); }
.region-option {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 10px; min-height: 52px; font-weight: 600; font-size: 1.05rem;
  border-radius: var(--radius-sm);
}
.region-option span { font-size: 1.5rem; }
.region-option:hover { background: var(--bg-alt); }
.region-dialog-note { font-size: 0.85rem; color: var(--text-muted); margin-top: 10px; padding: 0 10px; }

/* ==========================================================
   Larger screens
   ========================================================== */
@media (min-width: 480px) {
  .hide-xs { display: inline-flex; }
  .br-mobile { display: none; }
  .join-actions { grid-template-columns: auto auto; justify-content: start; }
}

@media (min-width: 720px) {
  .section { padding: 80px 0; }
  .container { padding: 0 24px; }
  .hero { padding: 72px 0 120px; }
  .hero-map { right: -10%; width: 75%; opacity: 0.7; }
  .finder { padding: 18px; }
  .quick { margin-top: -64px; }
  .quick-grid, .region-grid, .steps { grid-template-columns: repeat(3, 1fr); }
  .quick-card { flex-direction: column; align-items: flex-start; padding: 22px; }
  .quick-arrow { display: none; }
  .compete-grid { grid-template-columns: 1fr 1fr; }
  .price-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .price-card { grid-template-columns: 1fr; align-content: start; padding: 26px; }
  .price-amount { text-align: left; font-size: 2.6rem; margin-top: 8px; }
  .price-cta { align-self: end; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .footer-top { flex-direction: row; align-items: center; justify-content: space-between; }
  .footer-cols { grid-template-columns: repeat(4, 1fr); }
  .footer-bottom { grid-template-columns: 1fr auto; }
  .footer-note { grid-column: 1 / -1; }
}

@media (min-width: 960px) {
  .header-inner { min-height: 76px; gap: 28px; }
  .brand-emblem { width: 50px; height: 50px; }
  .brand-abbr { font-size: 1.65rem; }
  .brand-name { font-size: 0.72rem; }
  .nav-desktop { display: flex; gap: 26px; font-weight: 600; }
  .nav-desktop a { padding: 8px 0; border-bottom: 2px solid transparent; }
  .nav-desktop a:hover { border-color: var(--blue); color: var(--blue); }
  .menu-btn, .nav-mobile { display: none !important; }
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .join-grid { grid-template-columns: 1.3fr 1fr; align-items: center; gap: 56px; }
}

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