/* ================================================================
   SmartBoats.org — Modern Marina design system v2
   ================================================================ */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --bg-panel: #eef2f7;
  --bg-dark: #0b1f33;
  --ink: #0b1f33;            /* deep marine navy */
  --ink-soft: #4a5e77;
  --ink-mute: #8c9aad;
  --ink-faint: #b8c2d0;
  --line: #e3e9f1;
  --line-strong: #c9d3e0;
  --accent: #0077b6;         /* marina blue */
  --accent-dark: #005a8a;
  --accent-light: #90cdf4;
  --accent-sun: #f59e0b;     /* warm sun yellow for highlights */
  --accent-sun-soft: rgba(245, 158, 11, 0.1);
  --success: #22c55e;
  --danger: #dc2626;
  --water-1: #caf0f8;
  --water-2: #90e0ef;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px -2px rgba(11,31,51,0.08);
  --shadow-md: 0 10px 30px -15px rgba(0,119,182,0.25);
  --shadow-lg: 0 20px 40px -20px rgba(0,119,182,0.3);
  --display: 'Fraunces', Georgia, serif;
  --body: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== NAV ===== */
nav.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--line);
  padding: 16px 40px;
  display: flex; justify-content: space-between; align-items: center;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 500;
  font-size: 21px; letter-spacing: -0.01em;
  color: var(--ink);
}
.logo-mark {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  display: grid; place-items: center;
  color: white; font-size: 15px;
  box-shadow: 0 2px 8px -2px rgba(0,119,182,0.4);
}
.logo em { color: var(--accent); font-style: normal; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  font-size: 14px; font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-cta {
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: white !important;
  font-weight: 500; font-size: 13px;
  transition: all 0.2s;
}
.nav-cta:hover { background: var(--ink); transform: translateY(-1px); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500;
  transition: all 0.2s;
  cursor: pointer; border: 1px solid transparent;
  font-family: var(--body);
}
.btn-primary {
  background: var(--accent); color: white;
  box-shadow: 0 4px 14px -4px rgba(0,119,182,0.4);
}
.btn-primary:hover { background: var(--ink); transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(11,31,51,0.3); }
.btn-ghost {
  background: white; color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sun {
  background: var(--accent-sun); color: var(--ink);
  box-shadow: 0 4px 14px -4px rgba(245,158,11,0.4);
}
.btn-sun:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(245,158,11,0.5); }

/* ===== PAGE HEAD (internal pages) ===== */
.page-head {
  max-width: 1200px; margin: 0 auto;
  padding: 60px 40px 40px;
}
.page-head .crumb {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ink-mute);
  margin-bottom: 24px;
}
.page-head .crumb a {
  color: var(--ink-soft); transition: color 0.2s;
}
.page-head .crumb a:hover { color: var(--accent); }
.page-head .crumb .sep { color: var(--ink-faint); }
.page-head h1 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.05; letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 20px;
  max-width: 22ch;
}
.page-head h1 em { font-style: italic; font-weight: 500; color: var(--accent); }
.page-head .page-sub {
  font-size: 19px; line-height: 1.55;
  color: var(--ink-soft);
  max-width: 62ch;
}

/* ===== FOOTER ===== */
footer {
  background: var(--bg-soft);
  padding: 72px 40px 28px;
  border-top: 1px solid var(--line);
  margin-top: 80px;
}
.foot-inner {
  max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}
.foot-brand { display: flex; flex-direction: column; gap: 14px; }
.foot-brand p {
  color: var(--ink-soft); font-size: 14px;
  max-width: 34ch; line-height: 1.55;
}
.foot-newsletter {
  display: flex; gap: 8px; max-width: 320px;
  margin-top: 8px;
}
.foot-newsletter input {
  flex: 1; padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: white; font-size: 14px;
  font-family: inherit;
}
.foot-newsletter input:focus {
  outline: 2px solid var(--accent-light);
  outline-offset: 1px; border-color: var(--accent);
}
.foot-newsletter button {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: white; border: none;
  font-size: 14px; font-weight: 500;
  cursor: pointer; font-family: inherit;
}
.foot-newsletter button:hover { background: var(--ink); }
.foot-col h5,
.foot-col .foot-h {
  font-size: 12px; font-weight: 600;
  color: var(--ink); text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 14px;
  margin-top: 0;
}
.foot-col a {
  display: block; padding: 5px 0;
  color: var(--ink-soft); font-size: 14px;
  transition: color 0.2s;
}
.foot-col a:hover { color: var(--accent); }
.foot-bot {
  max-width: 1400px; margin: 0 auto;
  padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 13px; color: var(--ink-mute);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  nav.nav { padding: 14px 24px; }
  .nav-links { gap: 20px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .page-head { padding: 40px 24px 30px; }
  footer { padding: 48px 24px 24px; }
  .foot-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  .foot-bot { flex-direction: column; gap: 10px; }
}
@media (max-width: 560px) {
  .foot-inner { grid-template-columns: 1fr; }
}

/* ================================================================
   Shared compare-table (used across guide listicles)
   ================================================================ */
.compare-table {
  margin: 32px 0;
  overflow-x: auto;
}
.compare-table table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  font-size: 13px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.compare-table th {
  padding: 12px 14px;
  font-size: 11px; font-weight: 600;
  color: var(--ink-mute);
  text-transform: uppercase; letter-spacing: 0.07em;
  text-align: left;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.compare-table th:first-child { min-width: 130px; }
.compare-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft); line-height: 1.4;
  vertical-align: top;
}
.compare-table td strong { color: var(--ink); font-weight: 600; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table .good { color: #16a34a; font-weight: 500; }
.compare-table .meh  { color: var(--accent-sun); font-weight: 500; }
.compare-table .bad  { color: #dc2626; font-weight: 500; }
.compare-table tr.highlight td { background: rgba(0,119,182,0.04); }
.compare-table caption {
  caption-side: top;
  text-align: left;
  font-size: 11px; font-weight: 600;
  color: var(--ink-mute);
  text-transform: uppercase; letter-spacing: 0.07em;
  margin-bottom: 10px;
}
