/* ==========================================================================
   OneOnOneCreditRepair.com — Modern shared stylesheet
   Professional, clean, responsive, accessible. Offline-friendly (system fonts).
   ========================================================================== */

:root {
  /* Brand palette (evolution of the site's original blues) */
  --c-navy:     #14324f;
  --c-navy-2:   #185490;
  --c-blue:     #2792ff;
  --c-blue-soft:#eaf3fc;
  --c-bg:       #f5f8fb;
  --c-surface:  #ffffff;
  --c-ink:      #22303c;
  --c-muted:    #5f6c78;
  --c-line:     #dfe6ec;
  --c-cta:      #c8102e;
  --c-cta-dark: #a00c25;
  --c-gold:     #f4a91f;
  --c-success:  #1d7a4d;

  --radius: 10px;
  --shadow: 0 6px 24px rgba(20, 50, 79, .08);
  --shadow-sm: 0 2px 10px rgba(20, 50, 79, .07);

  --font-sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue",
               Arial, "Noto Sans", sans-serif;
  --space: 1.5rem;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--c-ink);
  background: var(--c-bg);
}
img { max-width: 100%; height: auto; }
a { color: var(--c-navy-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--c-navy); line-height: 1.2; font-weight: 700; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem 1.15rem; padding: 0; }
li { margin-bottom: .4rem; }
table { border-collapse: collapse; width: 100%; }

/* Skip link for accessibility */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--c-navy); color: #fff; padding: .6rem 1rem;
  border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Layout ---------- */
.site-wrap { max-width: 1120px; margin: 0 auto; padding: 0 1rem; }

/* ---------- Header ---------- */
.site-header {
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-line);
  box-shadow: var(--shadow-sm);
}
.site-header .site-wrap {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 1rem; justify-content: space-between; padding-top: .9rem; padding-bottom: .9rem;
}
.brand { display: flex; align-items: center; gap: .85rem; min-width: 240px; }
.brand img { width: 170px; height: auto; }
.brand-name { font-size: 1.15rem; font-weight: 800; color: var(--c-navy); line-height: 1.1; }
.brand-name span { display: block; font-size: .75rem; font-weight: 600; color: var(--c-muted); letter-spacing: .05em; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; }
.main-nav a {
  display: block; padding: .55rem .9rem; border-radius: 8px;
  font-weight: 600; color: var(--c-navy); font-size: .98rem;
}
.main-nav a:hover { background: var(--c-blue-soft); text-decoration: none; }
.main-nav a[aria-current="page"] { background: var(--c-navy); color: #fff; }
.main-nav a.cta {
  background: var(--c-cta); color: #fff; padding: .55rem 1.1rem;
}
.main-nav a.cta:hover { background: var(--c-cta-dark); }

/* Mobile toggle */
.nav-toggle {
  display: none; background: none; border: 1px solid var(--c-line);
  border-radius: 8px; font-size: 1.3rem; line-height: 1; padding: .45rem .7rem;
  color: var(--c-navy); cursor: pointer;
}
@media (max-width: 820px) {
  .nav-toggle { display: inline-block; }
  .main-nav { width: 100%; display: none; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding-top: .5rem; }
  .main-nav.open ul { display: flex; }
  .brand { min-width: 0; }
}
/* Accessible: nav menu when JS disabled is hidden; a fallback link shown. */
.nav-js-fallback { display: none; }
@media (max-width: 820px) {
  body.no-js .main-nav { display: block; }
  body.no-js .nav-toggle { display: none !important; }
}

/* ---------- Hero (homepage) ---------- */
.hero {
  background: linear-gradient(135deg, var(--c-navy) 0%, var(--c-navy-2) 60%, #1f6fd0 100%);
  color: #fff; padding: 3.5rem 0; border-radius: 0 0 18px 18px;
}
.hero .site-wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2.5rem; align-items: center; }
.hero h1 { color: #fff; font-size: 2.2rem; margin: 0 0 .4rem; }
.hero .lead { font-size: 1.2rem; opacity: .95; max-width: 34rem; }
.hero .hero-img { border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }
.btn {
  display: inline-block; padding: .8rem 1.5rem; border-radius: 8px;
  font-weight: 700; cursor: pointer; text-align: center; border: 2px solid transparent;
}
.btn-primary { background: var(--c-cta); color: #fff; }
.btn-primary:hover { background: var(--c-cta-dark); text-decoration: none; }
.btn-light { background: #fff; color: var(--c-navy); }
.btn-light:hover { background: var(--c-blue-soft); text-decoration: none; }
.btn-outline { border-color: #fff; color: #fff; background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,.12); text-decoration: none; }

@media (max-width: 820px) {
  .hero { padding: 2.5rem 0; }
  .hero .site-wrap { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.7rem; }
}

/* ---------- Main grid ---------- */
.page { padding: 2.5rem 0 3rem; }
.page-grid { display: grid; grid-template-columns: 1fr 320px; gap: 2rem; align-items: start; }
@media (max-width: 880px) { .page-grid { grid-template-columns: 1fr; } }

.content { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-sm); }
.content h1 { font-size: 1.9rem; margin: 0 0 1.25rem; padding-bottom: .75rem; border-bottom: 3px solid var(--c-blue); }
.content h2 { font-size: 1.4rem; margin: 2rem 0 .75rem; }
.content h3 { font-size: 1.15rem; margin: 1.5rem 0 .5rem; }
.content h3:first-of-type, .content h2:first-of-type { margin-top: 0; }

/* ---------- Sidebar ---------- */
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.card h2 { font-size: 1.15rem; margin: 0 0 1rem; padding-bottom: .6rem; border-bottom: 2px solid var(--c-blue); }
.results-list { list-style: none; margin: 0; padding: 0; }
.results-list li {
  display: flex; align-items: center; gap: .55rem; padding: .5rem 0;
  border-bottom: 1px dashed var(--c-line); font-weight: 600; color: var(--c-navy);
}
.results-list li::before { content: "•"; color: var(--c-blue); font-size: 1.2rem; }
.results-list li:last-child { border-bottom: 0; }

.testimonial { font-size: .95rem; color: var(--c-muted); font-style: italic; margin-bottom: .75rem; }
.testimonial:last-child { margin-bottom: 0; }
.testimonial cite { display: block; font-style: normal; font-size: .82rem; font-weight: 700; color: var(--c-navy); margin-top: .35rem; }

.sidebar-cta { background: var(--c-navy); color: #fff; text-align: center; }
.sidebar-cta h2 { color: #fff; border-color: var(--c-blue); }
.sidebar-cta .btn { width: 100%; }
.sidebar-cta p { color: rgba(255,255,255,.85); }

/* ---------- Home modules ---------- */
.home-section { padding: 3rem 0; }
.home-section .site-wrap > h2 { text-align: center; font-size: 1.8rem; margin: 0 0 1.7rem; }
.home-section .section-intro { text-align: center; color: var(--c-muted); max-width: 44rem; margin: -1rem auto 2rem; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.feature {
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow-sm);
}
.feature .icon {
  width: 52px; height: 52px; display: grid; place-items: center;
  border-radius: 12px; background: var(--c-blue-soft); color: var(--c-navy);
  font-size: 1.5rem; margin-bottom: 1rem;
}
.feature h3 { margin: 0 0 .5rem; font-size: 1.1rem; }
.feature p { margin: 0; color: var(--c-muted); font-size: .97rem; }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 1.5rem; }
.step { position: relative; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 1.6rem 1.4rem 1.2rem 1.6rem; box-shadow: var(--shadow-sm); }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -1rem; left: 1.2rem;
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: var(--c-blue); color: #fff; font-weight: 800;
  display: grid; place-items: center;
}
.step h3 { font-size: 1.05rem; margin: .4rem 0 .5rem; }
.step p { margin: 0; color: var(--c-muted); font-size: .95rem; }

.badge-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; align-items: center; justify-items: center; }
.badge-grid img { max-height: 100px; width: auto; }

.home-closing { background: var(--c-blue-soft); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 2rem; text-align: center; }
.home-closing h2 { margin: 0 0 .5rem; }

.faq-cta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 1.5rem; }
.faq-cta-card { background: var(--c-surface); border: 1px solid var(--c-line); border-left: 5px solid var(--c-blue); border-radius: var(--radius); padding: 1.25rem 1.5rem; box-shadow: var(--shadow-sm); }
.faq-cta-card h3 { margin: 0 0 .4rem; font-size: 1.05rem; }
.faq-cta-card p { margin: 0; color: var(--c-muted); font-size: .95rem; }

/* ---------- FAQ ---------- */
.faq-item { border: 1px solid var(--c-line); border-radius: var(--radius); margin-bottom: 1rem; background: var(--c-surface); overflow: hidden; }
.faq-item summary {
  cursor: pointer; padding: 1.1rem 1.25rem; font-weight: 700; color: var(--c-navy);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-item summary::after { content: "+"; font-size: 1.5rem; color: var(--c-blue); line-height: 1; }
.faq-item[open] summary::after { content: "–"; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .faq-body { padding: 0 1.25rem 1.1rem; color: var(--c-muted); }
.faq-item .faq-body table { font-size: .92rem; }
.faq-item .faq-body th { text-align: left; background: var(--c-blue-soft); }

/* ---------- Forms ---------- */
.form-table { width: 100%; border-collapse: collapse; }
.form-table th, .form-table td { padding: .55rem .5rem; vertical-align: top; }
.form-table th { text-align: left; width: 38%; font-weight: 600; color: var(--c-navy); white-space: normal; }
input[type="text"], input[type="tel"], input[type="email"], select, textarea {
  width: 100%; padding: .6rem .7rem; border: 1px solid var(--c-line);
  border-radius: 8px; font-family: inherit; font-size: 1rem; background: #fff; color: var(--c-ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--c-blue); outline-offset: 0; border-color: var(--c-blue); }
.phone-group { display: flex; gap: .25rem; align-items: center; }
.phone-group input { width: 4rem; flex: none; }
.phone-group input:last-child { width: 5rem; }
.btn[type="submit"], input[type="submit"], input[type="reset"], button {
  font-family: inherit;
}
.form-actions { display: flex; gap: .8rem; margin-top: 1rem; }
input[type="submit"] { background: var(--c-cta); color: #fff; border: none; padding: .75rem 1.5rem; border-radius: 8px; font-weight: 700; cursor: pointer; font-size: 1rem; }
input[type="submit"]:hover { background: var(--c-cta-dark); }
input[type="reset"] { background: var(--c-surface); color: var(--c-navy); border: 1px solid var(--c-line); padding: .75rem 1.5rem; border-radius: 8px; font-weight: 600; cursor: pointer; }
.form-note { color: var(--c-muted); font-size: .95rem; }
.required { color: var(--c-cta); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: .88rem; color: var(--c-muted); margin: 1.25rem 0 0; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.breadcrumb li:not(:last-child)::after { content: "›"; margin-left: .35rem; color: var(--c-line); }

/* ---------- Tables (content) ---------- */
.data-table { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); margin: 1rem 0; }
.data-table th, .data-table td { padding: .6rem .8rem; border-bottom: 1px solid var(--c-line); text-align: left; }
.data-table th { background: var(--c-blue-soft); color: var(--c-navy); font-weight: 700; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table .total { font-weight: 800; color: var(--c-cta); }
.example-head { font-weight: 800; color: var(--c-navy); margin: 1.5rem 0 .5rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--c-navy); color: rgba(255,255,255,.85); margin-top: 2rem;
  padding: 2.5rem 0 1.5rem; font-size: .93rem;
}
.site-footer .site-wrap { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem; }
.site-footer h3 { color: #fff; font-size: 1rem; margin: 0 0 .75rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer a { color: rgba(255,255,255,.85); }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-affil { display: flex; gap: 1rem; align-items: center; margin-top: .75rem; }
.footer-affil img { max-height: 60px; width: auto; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15); margin-top: 2rem;
  padding-top: 1.25rem; text-align: center; color: rgba(255,255,255,.65); font-size: .85rem;
}
.footer-bottom a { color: rgba(255,255,255,.75); }
@media (max-width: 760px) { .site-footer .site-wrap { grid-template-columns: 1fr; gap: 1.5rem; } }

/* ---------- Resources page ---------- */
.resource-list { list-style: none; margin: 0 0 1rem; padding: 0; }
.resource-list li { padding: .85rem 0; border-bottom: 1px solid var(--c-line); }
.resource-list li:first-child { padding-top: 0; }
.resource-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.resource-list > li > a { display: block; font-weight: 700; font-size: 1.05rem; }
.resource-list > li > strong { display: block; font-weight: 700; font-size: 1.05rem; color: var(--c-navy); margin-bottom: .1rem; }
.resource-list li p { margin: .3rem 0 0; color: var(--c-muted); font-size: .95rem; }

/* ---------- Notices ---------- */
.notice { background: var(--c-blue-soft); border: 1px solid var(--c-line); border-left: 5px solid var(--c-blue); padding: 1rem 1.25rem; border-radius: 8px; margin: 0 0 1.25rem; color: var(--c-navy); }
.notice small { display: block; margin-top: .4rem; }
.legal-list li { margin-bottom: .7rem; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.lead-sm { color: var(--c-muted); font-size: 1.05rem; }
