/* Magnet Fishing Legal Guide — styles.css */
/* Palette: deep water navy, rust orange accent, clean white */

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

:root {
  --navy: #0d2137;
  --navy-mid: #163352;
  --rust: #c9581a;
  --rust-light: #e06b2a;
  --gold: #d4a843;
  --cream: #faf8f4;
  --white: #ffffff;
  --gray-100: #f4f4f4;
  --gray-200: #e8e8e8;
  --gray-600: #5a5a5a;
  --gray-800: #2c2c2c;
  --font-sans: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'Courier New', monospace;
  --radius: 6px;
  --shadow: 0 2px 8px rgba(0,0,0,0.10);
  --shadow-md: 0 4px 18px rgba(0,0,0,0.14);
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--gray-800);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── HEADER ── */
.site-header {
  background: var(--navy);
  color: var(--white);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.28);
}

.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.site-logo .logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--rust);
  border-radius: 50%;
  font-size: 1rem;
  flex-shrink: 0;
}

.site-logo span { color: var(--gold); }

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 0.15rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  font-size: 0.82rem;
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.active {
  background: var(--rust);
  color: var(--white);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1rem;
}

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, #1a4a6b 100%);
  color: var(--white);
  padding: 3.5rem 1.25rem 3rem;
  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%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  pointer-events: none;
}

.hero-inner { max-width: 780px; margin: 0 auto; position: relative; }

.hero-eyebrow {
  display: inline-block;
  background: var(--rust);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero h1 em { color: var(--gold); font-style: normal; }

.hero p {
  font-size: 1.05rem;
  opacity: 0.88;
  max-width: 580px;
  margin: 0 auto 1.75rem;
}

.hero-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
  line-height: 1;
}

.btn-primary { background: var(--rust); color: var(--white); border-color: var(--rust); }
.btn-primary:hover { background: var(--rust-light); border-color: var(--rust-light); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }
.btn-gold { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-gold:hover { background: #e0b84e; }

/* ── LAYOUT ── */
.page-wrapper { max-width: 1140px; margin: 0 auto; padding: 2.5rem 1.25rem; flex: 1; }
.page-wrapper.narrow { max-width: 820px; }

.content-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: start;
}

/* ── BREADCRUMB ── */
.breadcrumb {
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
  padding: 0.6rem 1.25rem;
  font-size: 0.8rem;
  color: var(--gray-600);
}

.breadcrumb-inner { max-width: 1140px; margin: 0 auto; }
.breadcrumb a { color: var(--rust); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 0.4rem; }

/* ── CARDS ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.15s, transform 0.15s;
}

.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.card a { text-decoration: none; color: inherit; display: block; }

.card-icon {
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
  display: block;
}

.card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.card p { font-size: 0.83rem; color: var(--gray-600); line-height: 1.5; }

.card-arrow {
  color: var(--rust);
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 0.75rem;
  display: inline-block;
}

/* ── STATE GRID ── */
.state-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.6rem;
  margin: 1.5rem 0;
}

.state-link {
  display: block;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 0.6rem 0.85rem;
  text-decoration: none;
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.12s;
  border-left: 3px solid transparent;
}

.state-link:hover {
  border-left-color: var(--rust);
  background: var(--gray-100);
  color: var(--rust);
}

/* ── ARTICLE ── */
.article-header { margin-bottom: 2rem; }

.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--gray-600);
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.article-meta .tag {
  background: var(--navy);
  color: var(--white);
  padding: 0.2rem 0.6rem;
  border-radius: 2rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.article-content h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--navy); font-weight: 800; margin-bottom: 0.5rem; line-height: 1.25; }
.article-content h2 { font-size: 1.3rem; color: var(--navy); font-weight: 700; margin: 2rem 0 0.75rem; padding-top: 1rem; border-top: 2px solid var(--gray-200); }
.article-content h3 { font-size: 1.05rem; color: var(--navy-mid); font-weight: 700; margin: 1.5rem 0 0.5rem; }
.article-content h4 { font-size: 0.95rem; font-weight: 700; margin: 1.25rem 0 0.4rem; }
.article-content p { margin-bottom: 1rem; }
.article-content ul, .article-content ol { margin: 0.75rem 0 1rem 1.5rem; }
.article-content li { margin-bottom: 0.4rem; }
.article-content strong { color: var(--navy); }
.article-content a { color: var(--rust); }
.article-content a:hover { text-decoration: none; }

/* ── CALLOUT BOXES ── */
.callout {
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-left: 4px solid;
  font-size: 0.93rem;
}

.callout-warning { background: #fff8e6; border-color: var(--gold); }
.callout-info { background: #e8f0f8; border-color: var(--navy-mid); }
.callout-danger { background: #fdf0ed; border-color: var(--rust); }
.callout-success { background: #edf7f0; border-color: #3a9e5f; }

.callout strong { display: block; margin-bottom: 0.35rem; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }

/* ── FAQ ── */
.faq-section { margin: 2rem 0; }

.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: 0.6rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: var(--white);
  border: none;
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background 0.12s;
}

.faq-question:hover { background: var(--gray-100); }
.faq-question .faq-icon { color: var(--rust); font-size: 1.1rem; flex-shrink: 0; transition: transform 0.2s; }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }

.faq-answer {
  display: none;
  padding: 0 1.25rem 1rem;
  font-size: 0.92rem;
  color: var(--gray-600);
  line-height: 1.65;
  border-top: 1px solid var(--gray-200);
}

.faq-answer.open { display: block; }

/* ── SIDEBAR ── */
.sidebar { position: sticky; top: 72px; }

.sidebar-box {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
}

.sidebar-box h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--rust);
}

.sidebar-box ul { list-style: none; }
.sidebar-box li { border-bottom: 1px solid var(--gray-100); }
.sidebar-box li:last-child { border-bottom: none; }
.sidebar-box a {
  display: block;
  padding: 0.5rem 0;
  color: var(--gray-800);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.12s;
}
.sidebar-box a:hover { color: var(--rust); }

/* ── TOOL ── */
.tool-widget {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin: 1.5rem 0;
}

.tool-widget h2 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 1rem;
  border: none !important;
  padding: 0 !important;
}

.tool-row { margin-bottom: 1rem; }

.tool-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 0.35rem;
}

.tool-row input, .tool-row select {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.9rem;
  background: var(--gray-100);
  color: var(--gray-800);
  transition: border-color 0.12s;
}

.tool-row input:focus, .tool-row select:focus {
  outline: none;
  border-color: var(--navy-mid);
  background: var(--white);
}

.tool-result {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-top: 1rem;
  font-size: 0.95rem;
}

.tool-result .result-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gold);
  display: block;
  margin-bottom: 0.25rem;
}

/* ── PDF DOWNLOAD ── */
.pdf-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-md);
}

.pdf-banner .pdf-icon { font-size: 2.5rem; flex-shrink: 0; }
.pdf-banner h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.25rem; }
.pdf-banner p { font-size: 0.85rem; opacity: 0.82; margin: 0 0 0.75rem; }

/* ── STATUS BADGE ── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.badge-legal { background: #d4edda; color: #1a6130; }
.badge-restricted { background: #fff3cd; color: #7c5a00; }
.badge-banned { background: #f8d7da; color: #842029; }
.badge-unclear { background: var(--gray-200); color: var(--gray-600); }

/* ── TABLE ── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin: 1rem 0;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.data-table th {
  background: var(--navy);
  color: var(--white);
  padding: 0.7rem 1rem;
  text-align: left;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.data-table td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--gray-200);
  vertical-align: top;
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--gray-100); }

/* ── SECTIONS ── */
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--rust);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.section-intro {
  color: var(--gray-600);
  font-size: 1rem;
  max-width: 640px;
  margin-bottom: 1.75rem;
}

/* ── DISCLAIMER ── */
.disclaimer {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: 0.8rem;
  color: var(--gray-600);
  margin: 2rem 0;
  line-height: 1.55;
}

.disclaimer strong { color: var(--gray-800); }

/* ── FOOTER ── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 2.5rem 1.25rem 1.25rem;
  margin-top: auto;
  font-size: 0.85rem;
}

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand .site-logo { margin-bottom: 0.75rem; font-size: 1rem; }
.footer-brand p { font-size: 0.82rem; line-height: 1.6; opacity: 0.75; max-width: 260px; }

.footer-col h4 {
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.85rem;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.45rem; }
.footer-col a { color: rgba(255,255,255,0.65); text-decoration: none; transition: color 0.12s; }
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.78rem;
  opacity: 0.6;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .content-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .site-nav { display: none; }
  .site-nav.open { display: block; position: absolute; top: 60px; left: 0; right: 0; background: var(--navy); padding: 0.75rem 1.25rem 1rem; border-top: 1px solid rgba(255,255,255,0.1); }
  .site-nav.open ul { flex-direction: column; gap: 0; }
  .site-nav.open a { padding: 0.6rem 0; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .pdf-banner { flex-direction: column; text-align: center; }
  .hero-actions { flex-direction: column; align-items: center; }
}

/* ── UTILITY ── */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.text-center { text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
