/* ============================================================
   Georgia Payroll Guide — Main Stylesheet
   Primary: #b22234 (red) | Accent: #c8a415 (gold) | BG: #ffffff
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:    #b22234;
  --blue-dk: #8b1a29;
  --blue-lt: #f0d4d8;
  --gold:    #c8a415;
  --gold-dk: #a88a0e;
  --gray-50:  #f8f9fa;
  --gray-100: #f1f3f4;
  --gray-200: #e9ecef;
  --gray-400: #adb5bd;
  --gray-600: #6c757d;
  --gray-800: #343a40;
  --text:    #2c3e50;
  --text-lt: #555e68;
  --white:   #ffffff;
  --radius:  6px;
  --shadow:  0 2px 8px rgba(0,0,0,.09);
  --shadow-md: 0 4px 16px rgba(0,0,0,.12);
  --max-w:   1200px;
  --content-w: 780px;
}

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--gold-dk); text-decoration: underline; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--blue-dk);
}
h1 { font-size: 2rem; margin-bottom: .75rem; }
h2 { font-size: 1.5rem; margin-top: 2rem; margin-bottom: .75rem; }
h3 { font-size: 1.2rem; margin-top: 1.5rem; margin-bottom: .5rem; }

p { margin-bottom: 1rem; }
ul, ol { margin: 0 0 1rem 1.5rem; }
li { margin-bottom: .4rem; }

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

/* --- Layout Utilities --- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }
.container-narrow { max-width: 900px; margin: 0 auto; padding: 0 1.25rem; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--blue);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 1rem;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo .logo-icon {
  font-size: 1.6rem;
  line-height: 1;
}
.site-logo .logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.site-logo .logo-name {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--blue);
  letter-spacing: -.3px;
}
.site-logo .logo-tagline {
  font-size: .7rem;
  color: var(--gray-600);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: .25rem;
}
.main-nav a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text);
  padding: .45rem .7rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background .15s, color .15s;
}
.main-nav a:hover { background: var(--gray-100); color: var(--blue); }
.main-nav a.active { color: var(--blue); font-weight: 700; }

.btn-quote {
  background: var(--gold);
  color: var(--white) !important;
  padding: .45rem 1rem !important;
  border-radius: var(--radius) !important;
  font-weight: 600 !important;
  font-size: .85rem !important;
  transition: background .15s !important;
  white-space: nowrap;
}
.btn-quote:hover { background: var(--gold-dk) !important; text-decoration: none !important; }

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--blue-dk) 0%, var(--blue) 60%, #c0392b 100%);
  color: var(--white);
  padding: 4.5rem 0 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-content { position: relative; }
.hero-eyebrow {
  display: inline-block;
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.9);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3rem .9rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
}
.hero h1 {
  color: var(--white);
  font-size: 2.6rem;
  max-width: 700px;
  margin: 0 auto .75rem;
  line-height: 1.2;
}
.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,.85);
  max-width: 580px;
  margin: 0 auto 2rem;
}
.hero-cta-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  padding: .75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  transition: background .15s, transform .1s;
}
.btn-primary:hover { background: var(--gold-dk); color: var(--white); text-decoration: none; transform: translateY(-1px); }

.btn-secondary {
  display: inline-block;
  background: rgba(255,255,255,.15);
  color: var(--white);
  padding: .75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid rgba(255,255,255,.4);
  text-decoration: none;
  transition: background .15s;
}
.btn-secondary:hover { background: rgba(255,255,255,.25); color: var(--white); text-decoration: none; }

/* ============================================================
   FEATURE BOXES
   ============================================================ */
.features {
  padding: 3.5rem 0;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.feature-card {
  background: var(--white);
  border-radius: 8px;
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform .15s, box-shadow .15s;
  border-top: 4px solid var(--blue);
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.feature-card h3 { font-size: 1.1rem; margin: 0 0 .6rem; color: var(--blue); }
.feature-card p { font-size: .9rem; color: var(--text-lt); margin: 0; }

/* ============================================================
   ARTICLE GRID (Homepage)
   ============================================================ */
.latest-articles {
  padding: 3.5rem 0;
}
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--gray-200);
  padding-bottom: .75rem;
}
.section-header h2 {
  font-size: 1.35rem;
  margin: 0;
  color: var(--blue-dk);
}
.section-header a { font-size: .9rem; color: var(--gold); font-weight: 600; }

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.article-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  overflow: hidden;
  transition: transform .15s, box-shadow .15s;
  display: flex;
  flex-direction: column;
}
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.article-card-thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--blue-lt) 0%, #e8b0b7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  flex-shrink: 0;
}
.article-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.article-card-category {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .4rem;
}
.article-card h3 {
  font-size: 1rem;
  margin: 0 0 .5rem;
  line-height: 1.35;
}
.article-card h3 a { color: var(--blue-dk); }
.article-card h3 a:hover { color: var(--gold-dk); text-decoration: none; }
.article-card p { font-size: .88rem; color: var(--text-lt); margin: 0 0 .75rem; flex: 1; }
.article-meta { font-size: .78rem; color: var(--gray-400); margin-top: auto; }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--blue-dk), var(--blue));
  color: var(--white);
  padding: 3rem 0;
  text-align: center;
}
.cta-banner h2 { color: var(--white); font-size: 1.6rem; margin: 0 0 .5rem; }
.cta-banner p { color: rgba(255,255,255,.85); font-size: 1rem; margin: 0 0 1.75rem; }
.cta-banner .trust-badges {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin: 1.25rem 0 0;
  flex-wrap: wrap;
}
.trust-badge { font-size: .85rem; color: rgba(255,255,255,.8); display: flex; align-items: center; gap: .3rem; }

/* ============================================================
   BLOG LISTING
   ============================================================ */
.blog-hero {
  background: var(--blue);
  color: var(--white);
  padding: 3rem 0 2.5rem;
  text-align: center;
}
.blog-hero h1 { color: var(--white); margin: 0 0 .5rem; }
.blog-hero p { color: rgba(255,255,255,.85); margin: 0; font-size: 1.05rem; }

.category-filter {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  padding: .85rem 0;
}
.filter-buttons {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
.filter-btn {
  padding: .35rem .9rem;
  border: 2px solid var(--gray-200);
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--white);
  color: var(--text-lt);
  transition: all .15s;
}
.filter-btn:hover, .filter-btn.active {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
}

.blog-grid-section { padding: 2.5rem 0 4rem; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.blog-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .15s, box-shadow .15s;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.blog-card-thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--blue-lt), #e8b0b7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.blog-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.blog-card-category {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .5rem;
}
.blog-card h3 { font-size: 1.05rem; margin: 0 0 .6rem; line-height: 1.35; }
.blog-card h3 a { color: var(--blue-dk); }
.blog-card h3 a:hover { color: var(--gold-dk); text-decoration: none; }
.blog-card p { font-size: .88rem; color: var(--text-lt); flex: 1; margin: 0 0 1rem; }
.blog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .78rem;
  color: var(--gray-400);
  border-top: 1px solid var(--gray-200);
  padding-top: .75rem;
  margin-top: auto;
}
.read-more-link { font-size: .85rem; font-weight: 600; color: var(--blue); }
.read-more-link:hover { color: var(--gold-dk); text-decoration: none; }

/* ============================================================
   ARTICLE LAYOUT (2-column: content + sidebar)
   ============================================================ */
.article-hero {
  background: var(--blue);
  color: var(--white);
  padding: 2.5rem 0 2rem;
}
.article-hero h1 { color: var(--white); font-size: 1.9rem; max-width: 700px; margin: 0 0 .75rem; }
.article-hero .breadcrumb { font-size: .82rem; color: rgba(255,255,255,.7); margin-bottom: .75rem; }
.article-hero .breadcrumb a { color: rgba(255,255,255,.7); }
.article-hero .breadcrumb a:hover { color: var(--white); text-decoration: none; }
.article-meta-line {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: .83rem;
  color: rgba(255,255,255,.75);
}
.article-meta-line span { display: flex; align-items: center; gap: .3rem; }

.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2.5rem;
  padding: 2.5rem 0 4rem;
  align-items: start;
}

/* Article Body */
.article-body {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #2c3240;
}
.article-body h2 {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 1.4rem;
  color: var(--blue-dk);
  border-bottom: 2px solid var(--gray-200);
  padding-bottom: .5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}
.article-body h3 {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 1.1rem;
  color: var(--blue);
  margin-top: 1.75rem;
  margin-bottom: .6rem;
}
.article-body p { margin-bottom: 1.1rem; }
.article-body ul, .article-body ol { margin: 0 0 1.1rem 1.5rem; }
.article-body li { margin-bottom: .5rem; }
.article-body a { color: var(--blue); border-bottom: 1px solid var(--blue-lt); }
.article-body a:hover { color: var(--gold-dk); text-decoration: none; border-color: var(--gold); }

/* Table of Contents */
.toc-box {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 0 0 2rem;
}
.toc-box h4 {
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--blue);
  margin: 0 0 .75rem;
  font-family: system-ui, sans-serif;
}
.toc-box ol { margin: 0; padding-left: 1.2rem; }
.toc-box li { margin-bottom: .35rem; }
.toc-box a { font-size: .92rem; font-family: system-ui, sans-serif; border-bottom: none; }

/* Callout Boxes */
.callout {
  padding: 1.1rem 1.4rem;
  border-radius: var(--radius);
  margin: 1.75rem 0;
  font-family: system-ui, sans-serif;
  font-size: .95rem;
  line-height: 1.6;
}
.callout-warning { background: #fef9e7; border-left: 4px solid #f39c12; }
.callout-tip    { background: #eafaf1; border-left: 4px solid #27ae60; }
.callout-info   { background: #fdeef0; border-left: 4px solid var(--blue); }
.callout strong { display: block; margin-bottom: .3rem; }

/* Bottom CTA */
.article-cta-box {
  background: linear-gradient(135deg, var(--blue-dk), var(--blue));
  color: var(--white);
  border-radius: 8px;
  padding: 2rem;
  margin-top: 3rem;
  text-align: center;
}
.article-cta-box .cta-icon { font-size: 2rem; margin-bottom: .5rem; }
.article-cta-box h3 { color: var(--white); font-size: 1.25rem; margin: 0 0 .5rem; }
.article-cta-box p { color: rgba(255,255,255,.85); font-size: .95rem; margin: 0 0 1.25rem; }
.article-cta-box .btn-primary { font-size: 1rem; padding: .8rem 2rem; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar { position: sticky; top: 88px; }

.sidebar-cta {
  background: linear-gradient(135deg, var(--blue-dk), var(--blue));
  color: var(--white);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}
.sidebar-cta .cta-icon { font-size: 1.75rem; margin-bottom: .5rem; }
.sidebar-cta h4 { color: var(--white); font-size: 1rem; margin: 0 0 .4rem; }
.sidebar-cta p { font-size: .85rem; color: rgba(255,255,255,.82); margin: 0 0 1rem; }
.sidebar-cta .trust-lines { font-size: .78rem; color: rgba(255,255,255,.7); margin-top: .75rem; text-align: left; display: inline-block; }
.sidebar-cta .trust-lines span { display: flex; align-items: center; gap: .35rem; margin-bottom: .25rem; }
.btn-sidebar-cta {
  display: block;
  background: var(--gold);
  color: var(--white);
  padding: .65rem 1rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .9rem;
  text-align: center;
  text-decoration: none;
  transition: background .15s;
}
.btn-sidebar-cta:hover { background: var(--gold-dk); color: var(--white); text-decoration: none; }

.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}
.sidebar-widget h5 {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--blue);
  margin: 0 0 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--gray-200);
  font-family: system-ui, sans-serif;
}
.related-links { list-style: none; padding: 0; margin: 0; }
.related-links li { border-bottom: 1px solid var(--gray-100); padding: .55rem 0; }
.related-links li:last-child { border-bottom: none; }
.related-links a { font-size: .87rem; color: var(--blue-dk); line-height: 1.35; }
.related-links a:hover { color: var(--gold-dk); text-decoration: none; }

/* ============================================================
   ABOUT & CONTACT
   ============================================================ */
.page-hero {
  background: var(--blue);
  color: var(--white);
  padding: 3rem 0 2.5rem;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin: 0 0 .5rem; }
.page-hero p { color: rgba(255,255,255,.85); margin: 0; font-size: 1.05rem; }

.page-content { padding: 3rem 0 4rem; }
.page-content-inner { max-width: 820px; margin: 0 auto; }

.about-section { margin-bottom: 2.5rem; }
.about-section h2 { margin-top: 0; }

.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,.9);
  margin-top: .5rem;
  max-width: 600px;
}

.page-content-narrow {
  max-width: 780px;
  margin: 3rem auto 5rem;
  padding: 0 1rem;
}

.page-content-narrow h2 {
  margin-top: 2.5rem;
}

/* Contact page */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  padding: 3rem 0 5rem;
  align-items: start;
}

.contact-main h2 {
  margin-top: 2.5rem;
}

.contact-main h2:first-child {
  margin-top: 0;
}

.contact-card {
  border: 2px solid var(--blue-lt);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 1.5rem 0;
}

.contact-card-header {
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 1rem 1.25rem;
}

.contact-card-body {
  padding: 1.25rem;
  background: var(--gray-50);
}

.contact-card-body p {
  margin-bottom: .6rem;
}

.contact-sidebar {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-related h4 {
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--blue);
  margin: 0 0 .75rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--gray-200);
}

.sidebar-related ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-related ul li {
  border-bottom: 1px solid var(--gray-100);
  padding: .55rem 0;
}

.sidebar-related ul li:last-child {
  border-bottom: none;
}

.sidebar-related ul a {
  font-size: .87rem;
  color: var(--blue-dk);
  line-height: 1.35;
}

.sidebar-related ul a:hover {
  color: var(--gold-dk);
  text-decoration: none;
}

/* CTA box (about page, inline) */
.cta-box {
  background: linear-gradient(135deg, var(--blue-dk), var(--blue));
  color: var(--white);
  border-radius: 8px;
  padding: 2rem;
  margin-top: 2.5rem;
  text-align: center;
}
.cta-box .cta-icon { font-size: 2rem; margin-bottom: .5rem; }
.cta-box h3 { color: var(--white); font-size: 1.25rem; margin: 0 0 .5rem; }
.cta-box p { color: rgba(255,255,255,.85); font-size: .95rem; margin: 0 0 1.25rem; }
.cta-btn {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  padding: .7rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  transition: background .15s;
}
.cta-btn:hover { background: var(--gold-dk); color: var(--white); text-decoration: none; }

.btn-quote-full {
  display: block;
  background: var(--gold);
  color: var(--white);
  padding: .65rem 1rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .9rem;
  text-align: center;
  text-decoration: none;
  transition: background .15s;
}
.btn-quote-full:hover { background: var(--gold-dk); color: var(--white); text-decoration: none; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--gray-800);
  color: var(--gray-400);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-brand p { font-size: .88rem; line-height: 1.7; margin-top: .75rem; }
.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
}
.footer-brand .footer-logo-icon { font-size: 1.5rem; }
.footer-brand .footer-logo-name { font-size: 1rem; font-weight: 700; color: var(--white); }
.footer-brand .affiliate-link {
  display: inline-block;
  margin-top: .75rem;
  font-size: .82rem;
  color: var(--gold);
  font-weight: 600;
}
.footer-col h6 {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 1rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: .5rem; }
.footer-col ul a { font-size: .88rem; color: var(--gray-400); }
.footer-col ul a:hover { color: var(--gold); text-decoration: none; }

.footer-bottom {
  border-top: 1px solid #495057;
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
  font-size: .8rem;
}
.footer-disclaimer { max-width: 600px; font-size: .78rem; line-height: 1.6; }

/* ============================================================
   UTILITY COMPONENTS
   ============================================================ */
.badge {
  display: inline-block;
  padding: .2rem .6rem;
  border-radius: 50px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.badge-blue { background: var(--blue-lt); color: var(--blue-dk); }
.badge-gold { background: #fdf3d0; color: #7a5d00; }

.divider { border: none; border-top: 1px solid var(--gray-200); margin: 2rem 0; }

/* ============================================================
   QUICK ANSWER BOX
   ============================================================ */
.quick-answer {
  background: #fffbea;
  border: 2px solid #f0c040;
  border-left: 5px solid #e6a817;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 0 0 1.75rem;
}

.quick-answer-label {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #b07d00;
  margin-bottom: .4rem;
}

.quick-answer p {
  font-size: 1.05rem;
  font-weight: 600;
  color: #2c2c2c;
  margin: 0;
  line-height: 1.5;
}

/* ============================================================
   BLOCKQUOTE
   ============================================================ */
blockquote.source-quote {
  border-left: 4px solid var(--blue);
  background: #fef5f5;
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--gray-600);
  line-height: 1.7;
}

blockquote.source-quote cite {
  display: block;
  margin-top: .75rem;
  font-style: normal;
  font-size: .85rem;
  font-weight: 600;
  color: var(--blue);
}

/* ============================================================
   DISCLAIMER BOX
   ============================================================ */
.disclaimer-box {
  margin: 2.5rem 0 1rem;
  padding: 1.25rem 1.5rem;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-left: 4px solid var(--gray-400);
  border-radius: var(--radius);
}

.disclaimer-box h4 {
  font-size: .95rem;
  color: var(--gray-600);
  margin-bottom: .6rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.disclaimer-box p {
  font-size: .85rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: .5rem;
}

.disclaimer-box p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr 240px; gap: 2rem; }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 768px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.25rem; }

  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    border-bottom: 3px solid var(--blue);
    flex-direction: column;
    padding: 1rem;
    gap: .25rem;
    box-shadow: 0 4px 8px rgba(0,0,0,.1);
  }
  .main-nav.open { display: flex; }
  .main-nav a { width: 100%; padding: .7rem 1rem; }

  .hero { padding: 3rem 0 2.5rem; }
  .hero h1 { font-size: 1.75rem; }
  .hero-cta-group { flex-direction: column; align-items: center; }

  .features-grid { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

  .article-layout {
    grid-template-columns: 1fr;
    padding: 1.5rem 0 3rem;
  }
  .sidebar { position: static; }
  .article-hero h1 { font-size: 1.5rem; }

  .contact-layout {
    grid-template-columns: 1fr;
    padding: 1.5rem 0 3rem;
  }
  .contact-sidebar { position: static; }

  .footer-bottom { flex-direction: column; text-align: center; }

  .cta-banner .trust-badges { flex-direction: column; align-items: center; gap: .75rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.5rem; }
  .section-header { flex-direction: column; gap: .5rem; }
}

/* ============================================================
   INSTANT SEARCH
   ============================================================ */
.search-wrap { position: relative; display: flex; align-items: center; }
.search-toggle {
  background: none; border: none; cursor: pointer;
  color: var(--text); padding: .4rem;
  display: flex; align-items: center; border-radius: 6px;
  transition: background .15s;
}
.search-toggle:hover { background: var(--gray-100); }

.search-modal {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(3px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 6vh 1rem 0;
}
.search-modal[hidden] { display: none; }

.search-modal-inner {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0,0,0,.25);
  width: 100%; max-width: 620px;
  overflow: hidden;
  animation: searchIn .18s ease;
}
@keyframes searchIn {
  from { opacity: 0; transform: translateY(-12px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.search-input-wrap {
  display: flex; align-items: center; gap: .5rem;
  padding: .85rem 1rem;
  border-bottom: 1px solid #e5e7eb;
}
.search-icon { color: #9ca3af; flex-shrink: 0; }
.search-input {
  flex: 1; border: none; outline: none;
  font-size: 1.05rem; font-family: inherit;
  background: transparent; color: #111;
  min-width: 0;
}
.search-input::placeholder { color: #9ca3af; }
.search-close {
  background: none; border: none; cursor: pointer;
  font-size: 1.4rem; color: #9ca3af; line-height: 1;
  padding: 0 .2rem; transition: color .15s;
}
.search-close:hover { color: #374151; }

.search-results {
  max-height: 380px; overflow-y: auto;
  overscroll-behavior: contain;
}
.search-results[hidden] { display: none; }

.search-result {
  display: block; padding: .85rem 1.1rem;
  text-decoration: none; color: inherit;
  border-bottom: 1px solid #f3f4f6;
  transition: background .12s;
}
.search-result:last-child { border-bottom: none; }
.search-result:hover,
.search-result--active { background: #fff5f5; }

.search-result-title {
  font-weight: 600; font-size: .95rem;
  color: #111827; margin-bottom: .3rem;
  line-height: 1.35;
}
.search-result-title mark {
  background: #fef08a; color: #111; border-radius: 2px; padding: 0 1px;
}
.search-result-meta {
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
}
.search-cat {
  font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; border-radius: 4px; padding: .15rem .45rem;
  white-space: nowrap;
}
.search-snippet {
  font-size: .82rem; color: #6b7280; line-height: 1.4;
}
.search-snippet mark {
  background: #fef08a; color: #111; border-radius: 2px;
}

.search-no-results {
  padding: 1.5rem 1.1rem; text-align: center;
  font-size: .9rem; color: #6b7280;
}
.search-no-results strong { color: #374151; }

.search-footer {
  padding: .5rem 1rem; font-size: .75rem; color: #9ca3af;
  border-top: 1px solid #f3f4f6; background: #fafafa;
  display: flex; align-items: center; gap: .25rem;
}
kbd {
  display: inline-block; padding: .1rem .35rem;
  background: #e5e7eb; border: 1px solid #d1d5db;
  border-radius: 4px; font-size: .7rem; font-family: inherit;
  color: #374151;
}

body.search-open { overflow: hidden; }

@media (max-width: 480px) {
  .search-modal { padding: 3vh .5rem 0; }
  .search-modal-inner { border-radius: 10px; }
  .search-footer { display: none; }
}
