/* ============================================
   MobileHomeTitle.info — Main Stylesheet
   Aesthetic: Editorial / Utilitarian / Warm
   ============================================ */

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

/* === VARIABLES === */
:root {
  --ink: #1a1410;
  --ink-light: #3d342b;
  --ink-muted: #6b5e52;
  --paper: #faf7f2;
  --paper-warm: #f3ede3;
  --paper-dark: #e8dfd0;
  --accent: #c94a1f;
  --accent-dark: #9e3614;
  --accent-light: #f0c4b4;
  --teal: #1d6b6b;
  --teal-light: #e0f0f0;
  --gold: #b8860b;
  --gold-light: #fdf3d0;
  --border: #d4c8b8;
  --border-strong: #a89880;
  --shadow: rgba(26,20,16,0.08);
  --shadow-strong: rgba(26,20,16,0.18);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Serif 4', Georgia, serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  --max-w: 860px;
  --max-w-wide: 1100px;
  --radius: 3px;
}

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

/* === HEADER === */
.site-header {
  background: var(--ink);
  color: var(--paper);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px var(--shadow-strong);
}
.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: 58px;
}
.site-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--paper);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.site-logo span { color: var(--accent); }
.site-nav { display: flex; gap: 0; }
.site-nav a {
  color: var(--paper-dark);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0 1rem;
  height: 58px;
  display: flex;
  align-items: center;
  border-bottom: 3px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.site-nav a:hover { color: var(--paper); border-bottom-color: var(--accent); }

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

/* === HERO / PAGE HEADER === */
.page-hero {
  background: var(--ink);
  color: var(--paper);
  padding: 3.5rem 1.5rem 3rem;
  border-bottom: 4px solid var(--accent);
}
.page-hero-inner { max-width: var(--max-w); margin: 0 auto; }
.page-hero .eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 0.75rem;
  display: block;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.page-hero .lead {
  font-size: 1.08rem;
  color: var(--paper-dark);
  max-width: 640px;
  line-height: 1.65;
}
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-muted);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}
.breadcrumb a { color: var(--ink-muted); }
.breadcrumb a:hover { color: var(--accent); }

/* === HOME HERO === */
.home-hero {
  background: var(--ink);
  color: var(--paper);
  padding: 5rem 1.5rem 4rem;
  border-bottom: 5px solid var(--accent);
  position: relative;
  overflow: hidden;
}
.home-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -80px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,74,31,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.home-hero-inner { max-width: var(--max-w-wide); margin: 0 auto; display: grid; grid-template-columns: 1fr 340px; gap: 4rem; align-items: center; }
.home-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}
.home-hero h1 em { color: var(--accent); font-style: normal; }
.home-hero .lead { font-size: 1.1rem; color: var(--paper-dark); line-height: 1.7; margin-bottom: 2rem; max-width: 520px; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
  border: 2px solid transparent;
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-dark); color: white; }
.btn-outline { background: transparent; color: var(--paper); border-color: var(--border-strong); }
.btn-outline:hover { background: var(--paper); color: var(--ink); }
.btn-teal { background: var(--teal); color: white; }
.btn-teal:hover { background: #155252; color: white; }

/* Hero stat box */
.hero-stat-box {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  padding: 2rem;
}
.hero-stat-box h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--accent-light);
  margin-bottom: 1.5rem;
  font-weight: 400;
  font-style: italic;
}
.stat-item { margin-bottom: 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.stat-item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.stat-number { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--paper); line-height: 1; }
.stat-label { font-size: 0.8rem; color: var(--paper-dark); margin-top: 0.2rem; }

/* === MAIN LAYOUT === */
.main-wrap { max-width: var(--max-w-wide); margin: 0 auto; padding: 3rem 1.5rem; display: grid; grid-template-columns: 1fr 280px; gap: 3.5rem; align-items: start; }
.main-wrap.no-sidebar { grid-template-columns: 1fr; max-width: var(--max-w); }
.content { min-width: 0; }

/* === TYPOGRAPHY === */
h1 { font-family: var(--font-display); font-size: 2.2rem; font-weight: 900; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 1.5rem; }
h2 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; margin: 2.5rem 0 1rem; color: var(--ink); }
h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; margin: 2rem 0 0.75rem; color: var(--ink); }
h4 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; margin: 1.5rem 0 0.5rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-muted); }
p { margin-bottom: 1.25rem; }
ul, ol { margin: 0 0 1.25rem 1.5rem; }
li { margin-bottom: 0.4rem; }
strong { font-weight: 600; color: var(--ink); }

/* First paragraph styling */
.content > p:first-of-type, .content .lead-para {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--ink-light);
}

/* === INFO BOXES === */
.info-box {
  background: var(--teal-light);
  border-left: 4px solid var(--teal);
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.info-box.warning { background: #fff8e6; border-color: var(--gold); }
.info-box.alert { background: #fef0ec; border-color: var(--accent); }
.info-box p:last-child { margin-bottom: 0; }
.info-box strong { display: block; margin-bottom: 0.4rem; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; }

/* === STEP LIST === */
.step-list { list-style: none; margin: 1.5rem 0; padding: 0; counter-reset: steps; }
.step-list li {
  counter-increment: steps;
  padding: 1.25rem 1.25rem 1.25rem 4rem;
  margin-bottom: 1rem;
  background: var(--paper-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
}
.step-list li::before {
  content: counter(steps);
  position: absolute;
  left: 1.25rem;
  top: 1.25rem;
  width: 1.75rem; height: 1.75rem;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.75rem;
  text-align: center;
}
.step-list li strong { display: block; margin-bottom: 0.25rem; }

/* === DATA TABLE === */
.data-table-wrap { overflow-x: auto; margin: 1.75rem 0; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.data-table th {
  background: var(--ink);
  color: var(--paper);
  padding: 0.65rem 1rem;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}
.data-table td { padding: 0.65rem 1rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.data-table tr:nth-child(even) td { background: var(--paper-warm); }
.data-table tr:hover td { background: var(--accent-light); }

/* === FAQ SECTION === */
.faq-section { margin: 3rem 0; }
.faq-section h2 { border-top: 3px solid var(--accent); padding-top: 1.5rem; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 1.1rem 0;
  font-family: var(--font-body); font-size: 1rem; font-weight: 600; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-question .faq-icon { font-size: 1.2rem; color: var(--accent); flex-shrink: 0; transition: transform 0.2s; }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-answer { display: none; padding: 0 0 1.25rem; color: var(--ink-light); }
.faq-answer.open { display: block; }
.faq-answer p:last-child { margin-bottom: 0; }

/* === SIDEBAR === */
.sidebar { position: sticky; top: 80px; }
.sidebar-card {
  background: var(--paper-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.sidebar-card h3 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}
.sidebar-card ul { list-style: none; margin: 0; padding: 0; }
.sidebar-card ul li { border-bottom: 1px solid var(--border); }
.sidebar-card ul li:last-child { border-bottom: none; }
.sidebar-card ul li a {
  display: block; padding: 0.6rem 0;
  font-size: 0.88rem; color: var(--ink-light);
  text-decoration: none;
}
.sidebar-card ul li a:hover { color: var(--accent); }
.ad-placeholder {
  background: var(--paper-dark);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 2rem 1rem;
  text-align: center;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  margin-bottom: 1.5rem;
  min-height: 250px;
  display: flex; align-items: center; justify-content: center;
}

/* === GRID CARDS === */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; margin: 1.75rem 0; }
.card {
  background: var(--paper-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-decoration: none;
  color: var(--ink);
  transition: box-shadow 0.15s, border-color 0.15s, transform 0.15s;
  display: block;
}
.card:hover { box-shadow: 0 4px 16px var(--shadow-strong); border-color: var(--accent); transform: translateY(-2px); color: var(--ink); }
.card-tag { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.5rem; }
.card h3 { font-size: 1rem; margin: 0 0 0.5rem; }
.card p { font-size: 0.85rem; color: var(--ink-muted); margin: 0; line-height: 1.5; }

/* === SECTION DIVIDERS === */
.section { padding: 3rem 0; border-top: 1px solid var(--border); }
.section:first-child { border-top: none; }
.section-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: block;
}

/* === HOME SECTIONS === */
.home-sections { max-width: var(--max-w-wide); margin: 0 auto; padding: 0 1.5rem 4rem; }
.home-section { padding: 3.5rem 0; border-top: 1px solid var(--border); }
.home-section:first-child { border-top: none; padding-top: 3rem; }
.home-section h2 { font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; margin-bottom: 0.5rem; }
.home-section .section-sub { color: var(--ink-muted); margin-bottom: 2rem; font-size: 0.95rem; }

/* State grid */
.state-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.6rem; margin-top: 1.5rem; }
.state-link {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  background: var(--paper-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--ink-light);
  text-decoration: none;
  transition: all 0.15s;
}
.state-link:hover { background: var(--accent); color: white; border-color: var(--accent); }
.state-link .state-abbr { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; color: var(--ink-muted); }
.state-link:hover .state-abbr { color: rgba(255,255,255,0.7); }

/* === TOOL PROMO BAND === */
.tool-band {
  background: var(--teal);
  color: var(--paper);
  padding: 3rem 1.5rem;
}
.tool-band-inner { max-width: var(--max-w-wide); margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; }
.tool-band h2 { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: 0.5rem; color: var(--paper); }
.tool-band p { color: rgba(255,255,255,0.8); margin: 0; }

/* === CHECKLIST STYLES === */
.checklist { list-style: none; margin: 1.5rem 0; padding: 0; }
.checklist li { display: flex; gap: 0.75rem; padding: 0.6rem 0; border-bottom: 1px solid var(--border); align-items: flex-start; }
.checklist li:last-child { border-bottom: none; }
.checklist .check { flex-shrink: 0; width: 1.1rem; height: 1.1rem; border: 2px solid var(--border-strong); border-radius: 2px; margin-top: 0.2rem; }

/* === DISCLAIMER === */
.disclaimer {
  background: var(--paper-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 2.5rem 0 0;
  font-size: 0.8rem;
  color: var(--ink-muted);
  line-height: 1.6;
}
.disclaimer strong { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }

/* === FOOTER === */
.site-footer {
  background: var(--ink);
  color: var(--paper-dark);
  padding: 3rem 1.5rem 2rem;
  margin-top: 4rem;
}
.footer-inner { max-width: var(--max-w-wide); margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-brand .site-logo { font-size: 1.1rem; display: block; margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.82rem; color: var(--ink-muted); 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(--accent); margin-bottom: 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { color: var(--ink-muted); text-decoration: none; font-size: 0.85rem; }
.footer-col ul li a:hover { color: var(--paper); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { font-size: 0.78rem; color: var(--ink-muted); margin: 0; }
.footer-bottom a { color: var(--ink-muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--paper); }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .home-hero-inner { grid-template-columns: 1fr; }
  .hero-stat-box { display: none; }
  .main-wrap { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .tool-band-inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .header-inner { }
  .site-nav { display: none; flex-direction: column; position: absolute; top: 58px; left: 0; right: 0; background: var(--ink); padding: 1rem 0; box-shadow: 0 4px 12px var(--shadow-strong); }
  .site-nav.open { display: flex; }
  .site-nav a { height: auto; padding: 0.75rem 1.5rem; border-bottom: none; border-left: 3px solid transparent; }
  .site-nav a:hover { border-left-color: var(--accent); }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .state-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .home-hero { padding: 3rem 1.25rem; }
}

/* === UTILITY === */
.text-center { text-align: center; }
.text-muted { color: var(--ink-muted); }
.text-small { font-size: 0.85rem; }
.mt-0 { margin-top: 0; }
.mb-2 { margin-bottom: 2rem; }
.tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: var(--paper-dark);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  text-transform: uppercase;
}
.tag.green { background: var(--teal-light); color: var(--teal); }
.tag.red { background: #fef0ec; color: var(--accent-dark); }
.tag.gold { background: var(--gold-light); color: var(--gold); }

/* === PRINT === */
@media print {
  .site-header, .site-footer, .sidebar, .ad-placeholder { display: none; }
  .main-wrap { grid-template-columns: 1fr; }
  body { font-size: 12pt; }
}
