/* =============================================
   Credit Repair Guide — Shared Stylesheet
   ============================================= */

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

:root {
  --teal: #20c997;
  --teal-dark: #1a7a5e;
  --navy: #1a2e44;
  --amber: #ffc107;
  --light: #f8f9fa;
  --gray: #e9ecef;
  --text: #212529;
  --muted: #6c757d;
  --radius: 12px;
  --radius-lg: 20px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  line-height: 1.2;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: all .25s;
}
.btn-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 4px 20px rgba(32,201,151,.3);
}
.btn-primary:hover { background: var(--navy); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(32,201,151,.4); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-white {
  background: #fff;
  color: var(--teal);
}
.btn-white:hover { background: #f1f3f5; }

/* ── Nav ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,0,0,.07);
  padding: 14px 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; color: var(--navy); }
.nav-logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--teal), var(--navy));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.nav-logo-icon svg { width: 18px; height: 18px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--navy); transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--teal); }
.nav-cta { padding: 9px 20px; font-size: 13px; }
.nav-mobile-btn { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-mobile-menu { display: none; background: #fff; padding: 16px; border-radius: var(--radius); margin-top: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.nav-mobile-menu a { display: block; padding: 12px 16px; font-weight: 500; color: var(--navy); border-radius: 8px; }
.nav-mobile-menu a:hover { background: var(--light); color: var(--teal); }
.nav-mobile-menu .btn { width: 100%; justify-content: center; margin-top: 8px; }

/* ── Sections ── */
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-title { font-size: clamp(26px, 4vw, 38px); font-weight: 700; color: var(--navy); margin-bottom: 14px; }
.section-sub { font-size: 16px; color: var(--muted); max-width: 560px; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header .section-sub { margin: 0 auto; }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 60%, #f8f9fa 100%);
  position: relative;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; padding: 6px 16px; border-radius: 999px;
  box-shadow: 0 2px 12px rgba(0,0,0,.08); font-size: 13px; font-weight: 500;
  color: var(--navy); margin-bottom: 20px;
}
.hero h1 { font-size: clamp(32px, 5vw, 56px); font-weight: 700; color: var(--navy); margin-bottom: 18px; }
.text-teal { color: var(--teal); }
.hero-desc { font-size: 17px; color: var(--muted); max-width: 460px; margin-bottom: 28px; line-height: 1.7; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 24px; }
.hero-trust { display: flex; gap: 20px; font-size: 13px; color: var(--muted); }
.hero-trust span { display: flex; align-items: center; gap: 5px; }
.check { color: var(--teal); font-weight: 700; }
.hero-img-wrap { position: relative; }
.hero-img { width: 100%; max-width: 440px; border-radius: var(--radius-lg); box-shadow: 0 24px 64px rgba(0,0,0,.12); margin: 0 auto; object-fit: cover; }
.float-card {
  position: absolute; bottom: -16px; left: -16px;
  background: #fff; border-radius: var(--radius); padding: 14px 18px;
  box-shadow: 0 8px 28px rgba(0,0,0,.12); display: flex; align-items: center; gap: 12px;
}
.float-card-icon { width: 40px; height: 40px; background: rgba(32,201,151,.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.float-card-label { font-size: 11px; color: var(--muted); }
.float-card-val { font-size: 20px; font-weight: 700; color: var(--teal); }

/* ── Cards ── */
.card { background: #fff; border-radius: var(--radius-lg); padding: 32px; box-shadow: 0 4px 20px rgba(0,0,0,.06); transition: transform .3s, box-shadow .3s; }
.card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,.1); }
.card-icon { width: 56px; height: 56px; background: linear-gradient(135deg, var(--teal), var(--navy)); border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.card-icon svg { width: 26px; height: 26px; fill: white; }
.card h3 { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.card p { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ── Grid helpers ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }

/* ── Checklist ── */
.checklist { list-style: none; }
.checklist li { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 15px; color: var(--text); }
.checklist li::before { content: '✓'; color: var(--teal); font-weight: 700; font-size: 16px; flex-shrink: 0; }

/* ── Blog card ── */
.blog-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,.06); transition: transform .3s, box-shadow .3s; }
.blog-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,.1); }
.blog-card img { width: 100%; height: 200px; object-fit: cover; transition: transform .5s; }
.blog-card:hover img { transform: scale(1.04); }
.blog-card-body { padding: 24px; }
.blog-tag { display: inline-block; background: rgba(32,201,151,.1); color: var(--teal); font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 999px; margin-bottom: 10px; }
.blog-card h2, .blog-card h3 { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 10px; line-height: 1.4; }
.blog-card h2 a, .blog-card h3 a { transition: color .2s; }
.blog-card h2 a:hover, .blog-card h3 a:hover { color: var(--teal); }
.blog-card p { font-size: 13px; color: var(--muted); margin-bottom: 16px; line-height: 1.6; }
.blog-meta { display: flex; align-items: center; gap: 16px; font-size: 12px; color: var(--muted); }
.blog-read-more { color: var(--teal); font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; gap: 4px; transition: color .2s; }
.blog-read-more:hover { color: var(--navy); }

/* ── CTA Banner ── */
.cta-banner { background: linear-gradient(135deg, var(--teal), var(--teal-dark)); padding: 80px 0; text-align: center; }
.cta-banner h2 { font-size: clamp(24px, 3vw, 36px); font-weight: 700; color: #fff; margin-bottom: 14px; }
.cta-banner p { font-size: 16px; color: rgba(255,255,255,.88); max-width: 500px; margin: 0 auto 32px; }

/* ── Stats bar ── */
.stats-bar { background: var(--navy); padding: 60px 0; }
.stats-bar .stat { text-align: center; }
.stats-bar .stat-num { font-size: clamp(32px, 4vw, 48px); font-weight: 700; color: var(--teal); }
.stats-bar .stat-label { font-size: 14px; color: rgba(255,255,255,.75); margin-top: 4px; }

/* ── Page hero (inner pages) ── */
.page-hero { padding: 100px 0 60px; background: linear-gradient(135deg, var(--light), var(--gray)); }
.page-hero h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 700; color: var(--navy); margin-bottom: 14px; }
.page-hero p { font-size: 18px; color: var(--muted); }

/* ── Affiliate disclosure bar ── */
.disclosure-bar { background: #fff8e1; border-top: 1px solid #ffe082; border-bottom: 1px solid #ffe082; padding: 14px 0; }
.disclosure-bar p { font-size: 13px; color: #7a6000; text-align: center; }
.disclosure-bar a { color: var(--navy); text-decoration: underline; }

/* ── FAQ ── */
.faq-item { background: var(--light); border-radius: var(--radius); padding: 24px; margin-bottom: 16px; }
.faq-item h3 { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.faq-item p { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ── Testimonial ── */
.testimonial { background: var(--light); border-radius: var(--radius-lg); padding: 32px; }
.stars { color: var(--amber); font-size: 18px; margin-bottom: 12px; letter-spacing: 2px; }
.testimonial blockquote { font-size: 15px; color: var(--text); font-style: italic; margin-bottom: 16px; line-height: 1.7; }
.testimonial-author { font-weight: 700; color: var(--navy); font-size: 14px; }
.testimonial-loc { font-size: 12px; color: var(--muted); }

/* ── Trust badges ── */
.trust-row { display: flex; flex-wrap: wrap; gap: 20px; }
.trust-item { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }

/* ── Footer ── */
footer { background: var(--navy); color: rgba(255,255,255,.75); padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
footer h4 { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 16px; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 10px; }
footer ul li a { font-size: 13px; color: rgba(255,255,255,.65); transition: color .2s; }
footer ul li a:hover { color: var(--teal); }
.footer-brand { font-size: 13px; line-height: 1.7; color: rgba(255,255,255,.6); margin-top: 10px; max-width: 260px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,.45); }

/* ── Kikoff affiliate block ── */
.affiliate-block { border: 2px solid var(--teal); border-radius: var(--radius-lg); overflow: hidden; margin: 40px 0; }
.affiliate-block-header { background: var(--teal); padding: 10px 24px; }
.affiliate-block-header span { font-size: 11px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 1px; }
.affiliate-block-body { background: #fff; padding: 28px; display: flex; gap: 28px; align-items: flex-start; }
.affiliate-block-content { flex: 1; }
.affiliate-block-content h3 { font-size: 20px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.affiliate-block-content p { font-size: 14px; color: var(--muted); line-height: 1.7; margin-bottom: 16px; }
.affiliate-features { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; margin-bottom: 14px; }
.affiliate-features li { list-style: none; font-size: 13px; color: var(--text); display: flex; align-items: center; gap: 6px; }
.affiliate-features li::before { content: '✓'; color: var(--teal); font-weight: 700; }
.affiliate-fine { font-size: 11px; color: #aaa; font-style: italic; }
.affiliate-block-cta { flex-shrink: 0; display: flex; align-items: center; }

/* ── Resource cards ── */
.resource-card { background: #fff; border-radius: var(--radius-lg); border: 1px solid #eee; padding: 28px; box-shadow: 0 4px 16px rgba(0,0,0,.04); }
.resource-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.resource-cat { background: rgba(32,201,151,.1); color: var(--teal); font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 999px; }
.resource-badge { background: var(--amber); color: var(--navy); font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.resource-card h3 { font-size: 22px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.resource-stars { color: var(--amber); font-size: 14px; margin-bottom: 12px; }
.resource-card > p { font-size: 14px; color: var(--muted); margin-bottom: 16px; line-height: 1.7; }
.resource-features { list-style: none; margin-bottom: 20px; }
.resource-features li { font-size: 13px; color: var(--muted); padding: 5px 0; display: flex; align-items: center; gap: 8px; }
.resource-features li::before { content: '✓'; color: var(--teal); font-weight: 700; }

/* ── Free tool card ── */
.free-tool { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: 0 2px 12px rgba(0,0,0,.06); display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; transition: box-shadow .2s; }
.free-tool:hover { box-shadow: 0 8px 28px rgba(0,0,0,.1); }
.free-tool h3 { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 6px; transition: color .2s; }
.free-tool:hover h3 { color: var(--teal); }
.free-tool p { font-size: 13px; color: var(--muted); }

/* ── Form ── */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; font-size: 14px; color: var(--navy); margin-bottom: 7px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px; border: 1.5px solid #dde; border-radius: var(--radius);
  font-size: 14px; color: var(--text); background: #fff; transition: border-color .2s;
  font-family: inherit;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(32,201,151,.12);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-submit { width: 100%; padding: 16px; font-size: 15px; }

/* ── Blog post ── */
.post-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; }
.post-hero-img { width: 100%; height: 360px; object-fit: cover; border-radius: 0; }
.post-meta { display: flex; gap: 24px; font-size: 13px; color: var(--muted); padding: 20px 0; border-bottom: 1px solid #eee; margin-bottom: 32px; }
.post-content { font-size: 16px; line-height: 1.8; color: #333; }
.post-content h2 { font-size: 24px; font-weight: 700; color: var(--navy); margin: 36px 0 16px; }
.post-content p { margin-bottom: 18px; }
.post-content ul { margin: 0 0 18px 20px; }
.post-content ul li { margin-bottom: 8px; }
.post-excerpt-box { background: var(--light); border-radius: var(--radius); padding: 28px; margin-bottom: 28px; }
.post-excerpt-box p { font-size: 18px; color: var(--muted); font-style: italic; margin-bottom: 16px; }
.post-takeaway { display: flex; gap: 12px; margin-bottom: 14px; }
.takeaway-num { width: 28px; height: 28px; background: var(--teal); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; font-weight: 700; flex-shrink: 0; margin-top: 2px; }
.post-cta-box { background: linear-gradient(135deg, var(--teal), var(--teal-dark)); border-radius: var(--radius-lg); padding: 36px; text-align: center; margin: 36px 0; }
.post-cta-box h3 { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.post-cta-box p { font-size: 14px; color: rgba(255,255,255,.88); margin-bottom: 20px; }
.share-row { display: flex; align-items: center; gap: 12px; margin-top: 40px; padding-top: 28px; border-top: 1px solid #eee; }
.share-btn { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; font-weight: 700; }
.sidebar { }
.sidebar-box { background: var(--light); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 24px; }
.sidebar-box h3 { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 14px; }
.sidebar-box p { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 12px; }
.sidebar-cta { background: linear-gradient(135deg, var(--teal), var(--navy)); border-radius: var(--radius-lg); padding: 24px; text-align: center; }
.sidebar-cta h3 { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.sidebar-cta p { font-size: 13px; color: rgba(255,255,255,.8); margin-bottom: 16px; }
.related-post { display: flex; gap: 12px; margin-bottom: 16px; }
.related-post img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.related-post h4 { font-size: 13px; font-weight: 600; color: var(--navy); line-height: 1.4; margin-bottom: 4px; transition: color .2s; }
.related-post h4:hover { color: var(--teal); }
.related-post span { font-size: 11px; color: var(--muted); }

/* ── Newsletter ── */
.newsletter { background: linear-gradient(135deg, var(--teal), var(--teal-dark)); padding: 80px 0; text-align: center; }
.newsletter h2 { font-size: clamp(24px,3vw,34px); font-weight: 700; color: #fff; margin-bottom: 12px; }
.newsletter p { font-size: 16px; color: rgba(255,255,255,.85); max-width: 420px; margin: 0 auto 28px; }
.newsletter-form { display: flex; gap: 10px; max-width: 400px; margin: 0 auto 12px; }
.newsletter-form input { flex: 1; padding: 14px 18px; border: none; border-radius: var(--radius); font-size: 14px; }
.newsletter-form input:focus { outline: none; }
.newsletter-form button { padding: 14px 22px; background: var(--navy); color: #fff; border: none; border-radius: var(--radius); font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; }
.newsletter-fine { font-size: 12px; color: rgba(255,255,255,.55); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-grid, .post-layout, .footer-grid, .grid-4 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hero { min-height: auto; padding: 120px 0 60px; }
  .hero-img-wrap { order: -1; }
  .float-card { display: none; }
  .affiliate-block-body { flex-direction: column; }
  .affiliate-block-cta { width: 100%; }
  .affiliate-block-cta .btn { width: 100%; justify-content: center; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .nav-links, .nav-cta { display: none; }
  .nav-mobile-btn { display: block; }
  .hero-btns { flex-direction: column; }
  .newsletter-form { flex-direction: column; }
  .form-row { grid-template-columns: 1fr; }
  .post-meta { flex-wrap: wrap; gap: 12px; }
  .share-row { flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .affiliate-features { grid-template-columns: 1fr; }
}
