/* TrailerTitle.info — Main Stylesheet */
/* Aesthetic: Industrial-utilitarian with warm amber accents. Feels like a well-worn manual. */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800&family=Barlow:wght@400;500;600&family=Courier+Prime:wght@400;700&display=swap');

:root {
  --bg:        #f5f0e8;
  --bg2:       #ede7d9;
  --bg3:       #e0d9cc;
  --ink:       #1a1610;
  --ink2:      #3d3628;
  --ink3:      #6b6154;
  --amber:     #c97d20;
  --amber-lt:  #e8a030;
  --amber-dk:  #8a5510;
  --red:       #b03020;
  --green:     #2a6640;
  --border:    #c8bfaa;
  --shadow:    rgba(26,22,16,0.12);

  --font-head: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;
  --font-mono: 'Courier Prime', monospace;

  --max-w: 1100px;
  --radius: 3px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
}

/* ── TYPOGRAPHY ── */
h1,h2,h3,h4,h5 {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.15;
  color: var(--ink);
}
h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }
h4 { font-size: 1.15rem; }
p  { margin-bottom: 1rem; color: var(--ink2); }
a  { color: var(--amber-dk); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--amber); }
ul, ol { padding-left: 1.4em; margin-bottom: 1rem; color: var(--ink2); }
li { margin-bottom: 0.3rem; }
strong { color: var(--ink); }
code  { font-family: var(--font-mono); font-size: 0.9em; background: var(--bg3); padding: 2px 5px; border-radius: 2px; }

/* ── LAYOUT ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }
.content-wrap { max-width: 800px; }

/* ── SITE HEADER ── */
#site-header {
  background: var(--ink);
  border-bottom: 4px solid var(--amber);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 1.25rem;
  max-width: var(--max-w); margin: 0 auto;
}
.site-logo {
  font-family: var(--font-head);
  font-size: 1.5rem; font-weight: 800;
  color: #fff; text-decoration: none;
  letter-spacing: 0.03em;
}
.site-logo span { color: var(--amber); }
.site-tagline {
  font-family: var(--font-mono);
  font-size: 0.7rem; color: #aaa;
  display: block; margin-top: -2px;
}
nav ul { list-style: none; display: flex; gap: 1.5rem; padding: 0; margin: 0; }
nav a { color: #ccc; text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: color 0.15s; }
nav a:hover { color: var(--amber); }
.nav-cta { background: var(--amber); color: var(--ink) !important; padding: 0.3rem 0.8rem; border-radius: var(--radius); font-weight: 600 !important; }
.nav-cta:hover { background: var(--amber-lt) !important; color: var(--ink) !important; }

/* ── BREADCRUMB ── */
.breadcrumb {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 0;
  font-size: 0.82rem;
  color: var(--ink3);
}
.breadcrumb a { color: var(--amber-dk); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 0.35rem; }

/* ── HERO ── */
.hero {
  background: var(--ink2);
  background-image:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 20px,
      rgba(255,255,255,0.015) 20px,
      rgba(255,255,255,0.015) 40px
    );
  padding: 3.5rem 1.25rem;
  border-bottom: 4px solid var(--amber);
}
.hero h1 { color: #fff; margin-bottom: 0.75rem; }
.hero .hero-sub { color: #c8bfaa; font-size: 1.1rem; max-width: 620px; margin-bottom: 1.5rem; }
.hero-badge {
  display: inline-block;
  background: var(--amber);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.15s;
  cursor: pointer;
  border: none;
  letter-spacing: 0.02em;
}
.btn-primary { background: var(--amber); color: var(--ink); }
.btn-primary:hover { background: var(--amber-lt); color: var(--ink); }
.btn-outline { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-outline:hover { background: #fff; color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink2); }
.btn-sm { font-size: 0.88rem; padding: 0.45rem 1rem; }

/* ── CARDS ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--amber);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: box-shadow 0.15s, transform 0.15s;
}
.card:hover { box-shadow: 0 4px 16px var(--shadow); transform: translateY(-2px); }
.card h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.card p { font-size: 0.9rem; margin-bottom: 0.75rem; }
.card a { font-weight: 600; font-size: 0.9rem; }

/* ── 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: #fff;
  border: 1px solid var(--border);
  border-left: 3px solid var(--amber);
  padding: 0.6rem 0.8rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius);
  transition: all 0.12s;
}
.state-link:hover { background: var(--amber); color: var(--ink); border-left-color: var(--amber-dk); }
.state-link .abbr { font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink3); display: block; }

/* ── ARTICLE / CONTENT ── */
.article-body { padding: 2.5rem 0; }
.article-body h2 { margin: 2rem 0 0.75rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.article-body h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.article-body h3 { margin: 1.5rem 0 0.5rem; }
.article-body h4 { margin: 1.2rem 0 0.4rem; }

/* ── CALLOUT BOXES ── */
.callout {
  border-left: 4px solid var(--amber);
  background: #fff;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.callout.warn  { border-color: var(--red); }
.callout.good  { border-color: var(--green); }
.callout .callout-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.4rem;
}
.callout.warn .callout-title { color: var(--red); }
.callout.good .callout-title { color: var(--green); }

/* ── STEP LIST ── */
.step-list { list-style: none; padding: 0; counter-reset: steps; }
.step-list li {
  counter-increment: steps;
  display: flex; gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px dashed var(--border);
}
.step-list li:last-child { border-bottom: none; }
.step-list li::before {
  content: counter(steps);
  flex-shrink: 0;
  width: 2rem; height: 2rem;
  background: var(--amber);
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ── TABLES ── */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
thead th {
  background: var(--ink);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  text-align: left;
  padding: 0.65rem 0.85rem;
  letter-spacing: 0.02em;
}
tbody tr { border-bottom: 1px solid var(--border); }
tbody tr:nth-child(even) { background: var(--bg2); }
tbody td { padding: 0.6rem 0.85rem; }
.tag-yes { color: var(--green); font-weight: 700; }
.tag-no  { color: var(--red); font-weight: 700; }
.tag-vary{ color: var(--amber-dk); font-weight: 600; }

/* ── FAQ ── */
.faq-list { margin: 1.5rem 0; }
details {
  border: 1px solid var(--border);
  border-left: 3px solid var(--amber);
  margin-bottom: 0.5rem;
  border-radius: var(--radius);
  background: #fff;
}
details[open] { background: #fff; }
summary {
  padding: 0.85rem 1rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
summary::after { content: '+'; font-size: 1.2rem; color: var(--amber); font-weight: 800; }
details[open] summary::after { content: '−'; }
.faq-answer { padding: 0 1rem 1rem; color: var(--ink2); font-size: 0.95rem; }

/* ── TOOL WIDGET ── */
.tool-box {
  background: #fff;
  border: 2px solid var(--amber);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
}
.tool-box h3 { margin-bottom: 1rem; }
.form-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem; }
.form-group { flex: 1; min-width: 200px; }
.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: 0.35rem;
}
.form-group select,
.form-group input {
  width: 100%;
  padding: 0.55rem 0.8rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.15s;
}
.form-group select:focus,
.form-group input:focus {
  outline: none; border-color: var(--amber);
}
.tool-result {
  background: var(--ink);
  color: #fff;
  padding: 1.25rem;
  border-radius: var(--radius);
  margin-top: 1rem;
  display: none;
}
.tool-result.show { display: block; }
.tool-result h4 { color: var(--amber); font-size: 1rem; margin-bottom: 0.75rem; }
.result-row { display: flex; justify-content: space-between; padding: 0.35rem 0; border-bottom: 1px solid rgba(255,255,255,0.1); font-size: 0.9rem; }
.result-row:last-child { border-bottom: none; }
.result-label { color: #aaa; }
.result-val { font-weight: 600; color: var(--amber-lt); }

/* ── CHECKLIST ── */
.checklist { list-style: none; padding: 0; }
.checklist li {
  display: flex; align-items: flex-start; gap: 0.6rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}
.checklist li::before {
  content: '☐';
  font-size: 1.1rem;
  color: var(--amber);
  flex-shrink: 0;
  margin-top: 0.05rem;
}

/* ── SIDEBAR LAYOUT ── */
.page-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
  padding: 2.5rem 0;
  max-width: var(--max-w);
  margin: 0 auto;
}
.sidebar { padding-left: 1rem; border-left: 1px solid var(--border); }
.sidebar-widget {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--amber);
  padding: 1.1rem;
  margin-bottom: 1.25rem;
  border-radius: var(--radius);
}
.sidebar-widget h4 { font-size: 0.95rem; margin-bottom: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
.sidebar-links { list-style: none; padding: 0; }
.sidebar-links li { border-bottom: 1px solid var(--bg3); }
.sidebar-links a { display: block; padding: 0.4rem 0; font-size: 0.88rem; color: var(--ink2); text-decoration: none; }
.sidebar-links a:hover { color: var(--amber-dk); text-decoration: underline; }

/* ── FOOTER ── */
#site-footer {
  background: var(--ink);
  color: #aaa;
  padding: 2.5rem 1.25rem 1.5rem;
  margin-top: 3rem;
  border-top: 4px solid var(--amber);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  max-width: var(--max-w);
  margin: 0 auto 2rem;
}
.footer-about p { font-size: 0.88rem; line-height: 1.6; color: #888; }
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.75rem;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 0.4rem; }
.footer-col a { color: #888; text-decoration: none; font-size: 0.88rem; }
.footer-col a:hover { color: var(--amber); }
.footer-bottom {
  max-width: var(--max-w); margin: 0 auto;
  border-top: 1px solid #333;
  padding-top: 1rem;
  font-size: 0.8rem;
  color: #666;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 0.5rem;
}
.footer-logo { font-family: var(--font-head); font-size: 1.1rem; font-weight: 800; color: #fff; }
.footer-logo span { color: var(--amber); }

/* ── DISCLAIMER ── */
.disclaimer {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--ink3);
  padding: 0.85rem 1rem;
  font-size: 0.82rem;
  color: var(--ink3);
  border-radius: var(--radius);
  margin: 2rem 0 1rem;
}

/* ── SECTION DIVIDERS ── */
.section { padding: 2.5rem 0; }
.section-alt { background: var(--bg2); padding: 2.5rem 1.25rem; }
.section-title { margin-bottom: 0.4rem; }
.section-sub { color: var(--ink3); margin-bottom: 1.5rem; font-size: 1rem; }
.divider { border: none; border-top: 2px dashed var(--border); margin: 2rem 0; }

/* ── ADS PLACEHOLDER ── */
.ad-slot {
  background: var(--bg2);
  border: 1px dashed var(--border);
  text-align: center;
  padding: 1rem;
  color: var(--ink3);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  margin: 1.5rem 0;
  border-radius: var(--radius);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .page-layout { grid-template-columns: 1fr; }
  .sidebar { border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  nav ul { gap: 1rem; }
}
@media (max-width: 600px) {
  .header-inner { flex-direction: column; gap: 0.75rem; align-items: flex-start; }
  nav ul { flex-wrap: wrap; gap: 0.75rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 2rem 1.25rem; }
  .form-row { flex-direction: column; }
}

/* ── PRINT ── */
@media print {
  #site-header, #site-footer, .ad-slot, .sidebar, nav { display: none; }
  body { background: #fff; color: #000; }
  .hero { background: #f0f0f0 !important; }
}
