/* ===================================================
   DockPermitGuide — styles.css
   Aesthetic: Nautical-Editorial | Deep Navy + Warm Brass
   =================================================== */

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

/* === TOKENS === */
:root {
  --navy:       #0d1f35;
  --navy-mid:   #162d4a;
  --navy-light: #1e3d62;
  --brass:      #c9943a;
  --brass-light:#e8b55a;
  --cream:      #f5f0e8;
  --cream-dark: #e8e0d0;
  --slate:      #7a8fa6;
  --slate-light:#a4b8cc;
  --white:      #ffffff;
  --red-warn:   #c0392b;
  --green-ok:   #2d7a4f;

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

  --radius:  6px;
  --radius-lg: 12px;
  --shadow:  0 2px 16px rgba(13,31,53,0.12);
  --shadow-lg: 0 8px 40px rgba(13,31,53,0.22);

  --max-w: 1140px;
  --content-w: 800px;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 17px; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--navy);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brass); text-decoration: none; }
a:hover { color: var(--brass-light); text-decoration: underline; }
ul, ol { padding-left: 1.4em; }
li { margin-bottom: 0.35em; }

/* === SKIP LINK === */
.skip-link {
  position: absolute; top: -40px; left: 0;
  background: var(--brass); color: var(--navy);
  padding: 8px 16px; font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* === HEADER / NAV === */
.site-header {
  background: var(--navy);
  border-bottom: 3px solid var(--brass);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.site-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.logo-icon {
  width: 36px; height: 36px;
  background: var(--brass);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}
.logo-text span { color: var(--brass); }

.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav a {
  color: var(--slate-light);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 0.15s;
}
.site-nav a:hover { color: var(--brass-light); text-decoration: none; }
.site-nav .nav-cta {
  background: var(--brass);
  color: var(--navy);
  padding: 6px 14px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.site-nav .nav-cta:hover { background: var(--brass-light); color: var(--navy); }

.nav-toggle {
  display: none;
  background: none; border: none;
  color: var(--white); font-size: 1.5rem; cursor: pointer;
  padding: 4px;
}

/* === HERO === */
.hero {
  background: var(--navy);
  padding: 5rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 80% 60%, rgba(201,148,58,0.08) 0%, transparent 70%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 40px,
      rgba(255,255,255,0.015) 40px,
      rgba(255,255,255,0.015) 41px
    );
  pointer-events: none;
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(201,148,58,0.15);
  border: 1px solid rgba(201,148,58,0.3);
  color: var(--brass-light);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 720px;
  margin-bottom: 1.25rem;
}
.hero h1 em {
  font-style: italic;
  color: var(--brass-light);
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--slate-light);
  max-width: 580px;
  margin-bottom: 2rem;
  line-height: 1.65;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
}
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--brass);
  color: var(--navy);
  border-color: var(--brass);
}
.btn-primary:hover {
  background: var(--brass-light);
  border-color: var(--brass-light);
  color: var(--navy);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(201,148,58,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
}
.btn-outline:hover {
  border-color: var(--brass);
  color: var(--brass-light);
  text-decoration: none;
}
.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

/* === HERO STAT STRIP === */
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.stat { color: var(--white); }
.stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--brass-light);
  line-height: 1;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--slate-light);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* === ALERT BANNER === */
.alert-banner {
  background: rgba(201,148,58,0.12);
  border-left: 4px solid var(--brass);
  padding: 0.85rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.9rem;
  margin: 1.5rem 0;
}
.alert-banner strong { color: var(--brass); }

/* === LAYOUT === */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.content-wrap {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* === SECTION GENERIC === */
section { padding: 4rem 0; }
.section-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.6rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-bottom: 1rem;
}
.section-intro {
  font-size: 1rem;
  color: #4a5c70;
  max-width: 600px;
  margin-bottom: 2.5rem;
}

/* === HOW IT WORKS STEPS === */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.step-card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: relative;
}
.step-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: var(--cream-dark);
  line-height: 1;
  position: absolute;
  top: 1rem; right: 1.25rem;
}
.step-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}
.step-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.step-card p { font-size: 0.875rem; color: #4a5c70; }

/* === STATE GRID === */
.state-section { background: var(--navy); color: var(--white); }
.state-section .section-title { color: var(--white); }
.state-section .section-intro { color: var(--slate-light); }
.states-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-top: 2rem;
}
.state-card {
  background: var(--navy-mid);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 1rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.15s;
}
.state-card:hover {
  background: var(--navy-light);
  border-color: var(--brass);
  transform: translateY(-2px);
  text-decoration: none;
}
.state-flag { font-size: 1.5rem; flex-shrink: 0; }
.state-info { min-width: 0; }
.state-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.state-agency {
  font-size: 0.7rem;
  color: var(--slate-light);
  margin-top: 1px;
}
.state-card.velocity {
  border-color: var(--brass);
  background: rgba(201,148,58,0.08);
}
.state-card.velocity .state-name::after {
  content: ' ⚡';
  font-size: 0.7rem;
}

/* === TOPIC CARDS === */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.topic-card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-decoration: none;
  transition: all 0.18s;
  display: flex;
  flex-direction: column;
}
.topic-card:hover {
  border-color: var(--brass);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  text-decoration: none;
}
.topic-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}
.topic-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}
.topic-card p { font-size: 0.85rem; color: #4a5c70; flex: 1; }
.topic-arrow {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--brass);
  font-weight: 600;
}

/* === TOOL PROMO === */
.tool-promo {
  background: linear-gradient(135deg, var(--navy-light) 0%, var(--navy) 100%);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.tool-promo-icon {
  font-size: 4rem;
  flex-shrink: 0;
}
.tool-promo-text h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.tool-promo-text p {
  color: var(--slate-light);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

/* === FAQ === */
.faq-list { margin-top: 1.5rem; }
.faq-item {
  border-bottom: 1px solid var(--cream-dark);
}
.faq-item:first-child { border-top: 1px solid var(--cream-dark); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.1rem 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq-q:hover { color: var(--brass); }
.faq-chevron {
  flex-shrink: 0;
  font-size: 0.75rem;
  transition: transform 0.2s;
  color: var(--brass);
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-a {
  display: none;
  padding-bottom: 1.1rem;
  font-size: 0.9rem;
  color: #3a4f63;
  line-height: 1.7;
}
.faq-item.open .faq-a { display: block; }

/* === ARTICLE LAYOUT === */
.article-header {
  background: var(--navy);
  padding: 3rem 1.5rem 2.5rem;
}
.article-header .breadcrumb {
  font-size: 0.78rem;
  color: var(--slate-light);
  margin-bottom: 1rem;
}
.article-header .breadcrumb a { color: var(--brass); }
.article-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 720px;
}
.article-header .article-meta {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--slate-light);
  display: flex; flex-wrap: wrap; gap: 1.25rem;
}
.article-body {
  padding: 3rem 1.5rem;
  max-width: var(--content-w);
  margin: 0 auto;
}
.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin: 2.5rem 0 0.75rem;
  line-height: 1.25;
}
.article-body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin: 1.75rem 0 0.5rem;
}
.article-body p { margin-bottom: 1.1rem; }
.article-body ul, .article-body ol { margin-bottom: 1.1rem; }
.article-body strong { font-weight: 600; color: var(--navy); }

/* === INFO TABLE === */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.875rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.info-table thead {
  background: var(--navy);
  color: var(--white);
}
.info-table th {
  padding: 0.85rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.info-table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--cream-dark);
  vertical-align: top;
}
.info-table tr:last-child td { border-bottom: none; }
.info-table tbody tr:nth-child(even) { background: rgba(245,240,232,0.5); }

/* === QUICK FACTS BOX === */
.quick-facts {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 2rem 0;
}
.quick-facts h3 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brass-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}
.quick-facts ul { padding-left: 1.2em; }
.quick-facts li {
  font-size: 0.875rem;
  color: var(--cream);
  margin-bottom: 0.4rem;
  line-height: 1.5;
}
.quick-facts li strong { color: var(--brass-light); }

/* === DISCLAIMER === */
.disclaimer {
  background: rgba(201,148,58,0.08);
  border: 1px solid rgba(201,148,58,0.2);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: 0.8rem;
  color: #5a4a30;
  margin: 2rem 0;
  line-height: 1.55;
}
.disclaimer strong { color: var(--brass); }

/* === INTERNAL LINKS SIDEBAR === */
.related-links {
  background: var(--cream-dark);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}
.related-links h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}
.related-links ul { padding-left: 0; list-style: none; }
.related-links li { margin-bottom: 0.35rem; }
.related-links a { font-size: 0.875rem; color: var(--navy-light); }
.related-links a:hover { color: var(--brass); }

/* === TOOL PAGE === */
.tool-wrap {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: var(--shadow);
}
.wizard-step { display: none; }
.wizard-step.active { display: block; }
.wizard-step h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.25rem;
}
.wizard-progress {
  display: flex; gap: 4px; margin-bottom: 1.5rem;
}
.progress-dot {
  height: 4px;
  border-radius: 2px;
  flex: 1;
  background: var(--cream-dark);
  transition: background 0.2s;
}
.progress-dot.done { background: var(--brass); }
.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
}
.choice-btn {
  background: var(--cream);
  border: 2px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 1rem;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  text-align: left;
  transition: all 0.15s;
}
.choice-btn:hover, .choice-btn.selected {
  border-color: var(--brass);
  background: rgba(201,148,58,0.08);
}
.choice-btn .choice-icon { font-size: 1.5rem; margin-bottom: 0.35rem; }
.wizard-result {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 1.5rem;
}
.wizard-result h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brass-light);
  margin-bottom: 1rem;
}
.result-agency-list { list-style: none; padding: 0; }
.result-agency-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 0.875rem;
  color: var(--cream);
}
.result-agency-list li:last-child { border-bottom: none; }
.result-agency-list li strong { color: var(--brass-light); }
.wizard-nav {
  display: flex; gap: 0.75rem; margin-top: 1.25rem;
}

/* === PDF CTA === */
.pdf-cta {
  background: linear-gradient(135deg, #1a3a5c 0%, var(--navy) 100%);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 2.5rem 0;
}
.pdf-cta-icon { font-size: 3rem; flex-shrink: 0; }
.pdf-cta-text h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.3rem;
}
.pdf-cta-text p { color: var(--slate-light); font-size: 0.875rem; }

/* === FOOTER === */
.site-footer {
  background: var(--navy);
  color: var(--slate-light);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
  border-top: 3px solid var(--brass);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}
.footer-brand .logo-text { font-size: 1.1rem; }
.footer-brand p {
  font-size: 0.8rem;
  margin-top: 0.75rem;
  max-width: 240px;
  line-height: 1.6;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.75rem;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 0.4rem; }
.footer-col a { font-size: 0.8rem; color: var(--slate-light); }
.footer-col a:hover { color: var(--brass-light); }
.footer-bottom {
  max-width: var(--max-w);
  margin: 1.5rem auto 0;
  padding: 1.25rem 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.75rem;
}
.footer-bottom a { color: var(--slate-light); }

/* === ADS PLACEHOLDER === */
.ad-unit {
  background: rgba(0,0,0,0.04);
  border: 1px dashed var(--cream-dark);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  font-size: 0.72rem;
  color: var(--slate);
  min-height: 90px;
  display: flex; align-items: center; justify-content: center;
  margin: 1.5rem 0;
}

/* === UTILITY === */
.text-brass { color: var(--brass); }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .site-nav { display: none; flex-direction: column; }
  .site-nav.open {
    display: flex;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--navy);
    padding: 1rem 1.5rem;
    border-bottom: 2px solid var(--brass);
    gap: 1rem;
  }
  .nav-toggle { display: block; }
  .hero { padding: 3rem 1.25rem 2.5rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .tool-promo { flex-direction: column; gap: 1rem; }
  .pdf-cta { flex-direction: column; }
  .hero-stats { gap: 1.25rem; }
  .states-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
