/* ============================================================
   BoaterCard.info — Master Stylesheet
   Aesthetic: Clean nautical editorial — navy/white/amber
   Fonts: Playfair Display (headings) + Source Serif 4 (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,700&family=Source+Serif+4:ital,wght@0,300;0,400;0,600;1,400&family=JetBrains+Mono:wght@400;600&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --navy:      #0d2340;
  --navy-mid:  #1a3a5c;
  --navy-soft: #2d5a8e;
  --sky:       #e8f4fd;
  --amber:     #f0a500;
  --amber-lt:  #fdf3d7;
  --white:     #ffffff;
  --off-white: #f7f9fc;
  --gray-100:  #eef1f6;
  --gray-300:  #c8d0dc;
  --gray-500:  #7a8898;
  --gray-700:  #3d4a58;
  --text:      #1c2b3a;
  --red-warn:  #c0392b;

  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Serif 4', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius:    6px;
  --shadow:    0 2px 12px rgba(13,35,64,.10);
  --shadow-lg: 0 8px 32px rgba(13,35,64,.18);

  --max-w: 900px;
  --max-w-wide: 1120px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 17px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy-soft); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--amber); }

/* ── Header ─────────────────────────────────────────────────── */
.site-header {
  background: var(--navy);
  border-bottom: 3px solid var(--amber);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.site-logo {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.site-logo span { color: var(--amber); }
.site-nav { display: flex; gap: 0; list-style: none; }
.site-nav a {
  display: block;
  padding: .4rem .85rem;
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: rgba(255,255,255,.82);
  text-decoration: none;
  border-radius: var(--radius);
  transition: color .18s, background .18s;
}
.site-nav a:hover { color: var(--amber); background: rgba(255,255,255,.07); }
.nav-cta {
  background: var(--amber) !important;
  color: var(--navy) !important;
  padding: .4rem 1rem !important;
  font-weight: 700 !important;
}
.nav-cta:hover { background: #d49200 !important; color: var(--navy) !important; }

/* hamburger */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .5rem; }
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--white); margin: 5px 0;
  transition: transform .25s;
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, var(--navy-soft) 100%);
  color: var(--white);
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1rem;
}
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.15;
  max-width: 780px;
  margin: 0 auto 1.25rem;
}
.hero-sub {
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 2.25rem;
  color: rgba(255,255,255,.82);
  font-weight: 300;
}
.hero-btns { display: flex; gap: .85rem; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: .72rem 1.6rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .18s;
}
.btn-primary { background: var(--amber); color: var(--navy); border-color: var(--amber); }
.btn-primary:hover { background: #d49200; border-color: #d49200; color: var(--navy); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn-outline:hover { border-color: var(--white); color: var(--white); background: rgba(255,255,255,.1); }
.btn-navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-mid); }

/* ── Breadcrumb ─────────────────────────────────────────────── */
.breadcrumb {
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-300);
  padding: .5rem 1.5rem;
  font-size: .78rem;
  color: var(--gray-500);
  font-family: var(--font-mono);
}
.breadcrumb a { color: var(--navy-soft); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span::before { content: ' › '; }

/* ── Page Layout ─────────────────────────────────────────────── */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 3rem 1.5rem 2.5rem;
  border-bottom: 3px solid var(--amber);
}
.page-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 700;
  max-width: var(--max-w);
  margin: 0 auto .75rem;
  line-height: 1.2;
}
.page-hero p {
  max-width: var(--max-w);
  margin: 0 auto;
  color: rgba(255,255,255,.8);
  font-size: 1rem;
}
.page-hero .meta {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: .6rem;
  display: block;
}
.main-content {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}
.main-content h2 {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
  margin: 2.5rem 0 .85rem;
  padding-bottom: .4rem;
  border-bottom: 2px solid var(--gray-100);
}
.main-content h2:first-child { margin-top: 0; }
.main-content h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy-mid);
  margin: 1.8rem 0 .6rem;
}
.main-content p { margin-bottom: 1.1rem; }
.main-content ul, .main-content ol {
  margin: .75rem 0 1.1rem 1.5rem;
}
.main-content li { margin-bottom: .4rem; }

/* ── Alert Box ───────────────────────────────────────────────── */
.alert {
  border-left: 4px solid var(--amber);
  background: var(--amber-lt);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
  font-size: .95rem;
}
.alert.alert-red {
  border-color: var(--red-warn);
  background: #fdf0ee;
}
.alert.alert-navy {
  border-color: var(--navy);
  background: var(--sky);
}
.alert strong { display: block; margin-bottom: .25rem; }

/* ── Info Table ─────────────────────────────────────────────── */
.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
  margin: 1.25rem 0 2rem;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  overflow: hidden;
}
.info-table thead { background: var(--navy); color: var(--white); }
.info-table thead th {
  padding: .75rem 1rem;
  text-align: left;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
}
.info-table tbody tr:nth-child(even) { background: var(--off-white); }
.info-table tbody tr:hover { background: var(--sky); }
.info-table td { padding: .65rem 1rem; border-bottom: 1px solid var(--gray-100); vertical-align: top; }
.info-table td:first-child { font-weight: 600; }
.badge {
  display: inline-block;
  padding: .18rem .55rem;
  border-radius: 99px;
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .04em;
}
.badge-green { background: #d4edda; color: #155724; }
.badge-amber { background: var(--amber-lt); color: #7a5c00; }
.badge-red   { background: #f8d7da; color: #721c24; }
.badge-gray  { background: var(--gray-100); color: var(--gray-700); }

/* ── Cards & Grid ─────────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.1rem;
  margin: 1.5rem 0;
}
.card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  transition: transform .18s, box-shadow .18s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: inherit; text-decoration: none; }
.card h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: var(--navy);
  margin: 0 0 .4rem;
}
.card p { font-size: .88rem; color: var(--gray-700); margin: 0; line-height: 1.5; }
.card-icon { font-size: 1.6rem; margin-bottom: .6rem; }
.card-tag {
  font-family: var(--font-mono);
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--amber);
  font-weight: 600;
  margin-bottom: .3rem;
}

/* ── State Grid ─────────────────────────────────────────────── */
.state-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: .6rem;
  margin: 1.25rem 0;
}
.state-link {
  display: block;
  padding: .55rem .85rem;
  background: var(--off-white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: .88rem;
  font-weight: 600;
  color: var(--navy-mid);
  text-decoration: none;
  transition: all .15s;
}
.state-link:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ── FAQ ─────────────────────────────────────────────────────── */
.faq { margin: 2rem 0; }
.faq-item {
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  margin-bottom: .6rem;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  background: var(--off-white);
  border: none;
  padding: .9rem 1.1rem;
  text-align: left;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background .15s;
}
.faq-q:hover { background: var(--sky); }
.faq-q::after { content: '+'; font-size: 1.3rem; color: var(--amber); font-weight: 300; flex-shrink: 0; }
.faq-item.open .faq-q::after { content: '−'; }
.faq-a {
  display: none;
  padding: .9rem 1.1rem;
  font-size: .93rem;
  border-top: 1px solid var(--gray-300);
  background: var(--white);
}
.faq-item.open .faq-a { display: block; }

/* ── Download Card ───────────────────────────────────────────── */
.download-card {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 2rem 0;
}
.download-icon { font-size: 2.5rem; flex-shrink: 0; }
.download-card h3 { font-family: var(--font-head); font-size: 1.15rem; margin-bottom: .25rem; color: var(--white); }
.download-card p { font-size: .88rem; color: rgba(255,255,255,.75); margin: 0 0 .75rem; }

/* ── Tool Box ─────────────────────────────────────────────────── */
.tool-box {
  background: var(--sky);
  border: 2px solid var(--navy-soft);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 2rem 0;
}
.tool-box h2 { border: none; font-size: 1.35rem; margin-top: 0; }
.tool-step { margin-bottom: 1.25rem; }
.tool-step label {
  display: block;
  font-weight: 600;
  font-size: .88rem;
  margin-bottom: .4rem;
  color: var(--navy);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.tool-step select, .tool-step input {
  width: 100%;
  padding: .6rem .85rem;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .95rem;
  background: var(--white);
  color: var(--text);
}
.tool-step select:focus, .tool-step input:focus {
  outline: none;
  border-color: var(--navy-soft);
  box-shadow: 0 0 0 3px rgba(45,90,142,.15);
}
.tool-result {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-top: 1.25rem;
  display: none;
}
.tool-result.visible { display: block; }
.tool-result .result-verdict {
  font-family: var(--font-head);
  font-size: 1.3rem;
  margin-bottom: .5rem;
}
.tool-result .result-verdict.yes { color: #7bdd9a; }
.tool-result .result-verdict.no  { color: #f0a500; }
.tool-result p { font-size: .92rem; color: rgba(255,255,255,.85); margin-bottom: .5rem; }

/* ── Section ─────────────────────────────────────────────────── */
.section { padding: 3.5rem 1.5rem; }
.section-inner { max-width: var(--max-w-wide); margin: 0 auto; }
.section-title {
  font-family: var(--font-head);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .4rem;
}
.section-sub { color: var(--gray-500); margin-bottom: 2rem; font-size: .97rem; }
.section-alt { background: var(--off-white); border-top: 1px solid var(--gray-100); border-bottom: 1px solid var(--gray-100); }
.section-dark { background: var(--navy); color: var(--white); }
.section-dark .section-title { color: var(--white); }
.section-dark .section-sub { color: rgba(255,255,255,.65); }

/* ── Stat Strip ─────────────────────────────────────────────── */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0;
  background: var(--amber);
}
.stat {
  padding: 1.5rem 1.25rem;
  text-align: center;
  border-right: 1px solid rgba(0,0,0,.1);
}
.stat:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--navy);
  display: block;
  line-height: 1;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--navy-mid);
  margin-top: .25rem;
}

/* ── Disclaimer ─────────────────────────────────────────────── */
.disclaimer {
  background: var(--gray-100);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: .85rem 1.1rem;
  font-size: .8rem;
  color: var(--gray-500);
  margin: 2rem 0 0;
  line-height: 1.5;
}

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.7);
  padding: 3rem 1.5rem 1.5rem;
}
.footer-inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer-brand .site-logo { font-size: 1.2rem; display: inline-block; margin-bottom: .75rem; }
.footer-brand p { font-size: .85rem; line-height: 1.6; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--amber);
  margin-bottom: .75rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .35rem; }
.footer-col a { color: rgba(255,255,255,.65); text-decoration: none; font-size: .88rem; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .78rem;
  flex-wrap: wrap;
  gap: .5rem;
}
.footer-legal a { color: rgba(255,255,255,.5); text-decoration: none; margin-left: 1rem; }
.footer-legal a:hover { color: var(--white); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .site-nav { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--navy); padding: 1rem 1.5rem; border-top: 1px solid rgba(255,255,255,.1); }
  .site-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 3rem 1.25rem 2.5rem; }
  .download-card { flex-direction: column; text-align: center; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  html { font-size: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; align-items: stretch; }
  .btn { text-align: center; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
}

/* ── Utility ─────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-amber { color: var(--amber); }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; }
.tag-new {
  display: inline-block;
  background: var(--red-warn);
  color: white;
  font-family: var(--font-mono);
  font-size: .6rem;
  font-weight: 600;
  padding: .1rem .4rem;
  border-radius: 3px;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-left: .3rem;
}
