
/*
Theme Name: RichardRecovery
Theme URI: http://www.RichardRecovery.com
Description: business theme
Author: RichardRecovery
Author URI: http://www.RichardRecovery.com

*/

:root {
  --navy-900: #0a1628;
  --navy-800: #0f2038;
  --navy-700: #16304f;
  --teal-500: #2563eb;
  --teal-400: #3b82f6;
  --cyan-400: #38bdf8;
  --blue-600: #1d4ed8;
  --slate-50:  #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-900: #0f172a;
  --amber-400: #fbbf24;
  --white: #ffffff;
  --radius: 14px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .08);
  --shadow-md: 0 6px 24px rgba(15, 23, 42, .10);
  --shadow-lg: 0 18px 50px rgba(15, 23, 42, .16);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--slate-700);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--blue-600); text-decoration: none; }
ul { list-style: none; }

.container { width: min(1140px, 92%); margin: 0 auto; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { color: var(--slate-900); line-height: 1.25; font-weight: 700; }

.hero-title, .page-hero h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 800; letter-spacing: -0.02em; }

.section { padding: 84px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 14px; }
.section-head p { color: var(--slate-500); font-size: 1.05rem; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal-500);
  margin-bottom: 12px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: none;
  cursor: pointer;
  transition: all .25s ease;
}
.btn-primary {
  background: linear-gradient(120deg, var(--teal-500), var(--cyan-400));
  color: var(--navy-900);
  box-shadow: 0 8px 24px rgba(37, 99, 235, .35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(37, 99, 235, .45); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, .4);
}
.btn-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); }
.btn-outline {
  background: transparent;
  color: var(--teal-500);
  border: 1.5px solid var(--teal-500);
}
.btn-outline:hover { background: rgba(37, 99, 235, .08); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 22, 40, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--white); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.01em; }
.logo-mark {
  width: 38px; height: 38px;
  display: block;
  border-radius: 9px;
  overflow: hidden;
  background: var(--white);
  padding: 3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}
.logo-mark img { width: 100%; height: 100%; display: block; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { color: rgba(255, 255, 255, .75); font-weight: 500; font-size: .95rem; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-cta { padding: 10px 24px; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--white); margin: 5px 0; transition: .3s; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    background: var(--navy-900);
    padding: 20px 0 28px;
    gap: 18px;
    display: none;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .nav-links.open { display: flex; }
}

/* ---------- Hero (home) ---------- */
.hero {
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(56, 130, 246, .18), transparent 60%),
    radial-gradient(700px 400px at 10% 110%, rgba(37, 99, 235, .15), transparent 60%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 60%, #0c2542 100%);
  color: rgba(255, 255, 255, .82);
  padding: 110px 0 130px;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; }
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero h1 .grad {
  background: linear-gradient(100deg, var(--teal-400), var(--cyan-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead { font-size: 1.15rem; max-width: 540px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-badges { display: flex; gap: 28px; flex-wrap: wrap; }
.hero-badge { display: flex; align-items: center; gap: 9px; font-size: .9rem; color: rgba(255,255,255,.75); }
.hero-badge .tick {
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(59, 130, 246, .15);
  color: var(--teal-400);
  display: grid; place-items: center;
  font-size: .72rem; font-weight: 700;
}

.hero-card {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(8px);
}
.hero-card .file-row {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 14px;
  font-size: .92rem;
  color: rgba(255,255,255,.85);
}
.file-ico { font-size: 1.3rem; }
.status {
  margin-left: auto;
  font-size: .75rem; font-weight: 700;
  padding: 4px 12px; border-radius: 999px;
}
.status.ok   { background: rgba(59, 130, 246,.15); color: var(--teal-400); }
.status.wait { background: rgba(56, 130, 246,.15); color: var(--cyan-400); }
.hero-card .note { font-size: .82rem; color: rgba(255,255,255,.55); text-align: center; margin-top: 14px; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  background:
    radial-gradient(700px 400px at 85% 0%, rgba(56, 130, 246,.16), transparent 60%),
    linear-gradient(160deg, var(--navy-900), var(--navy-800));
  color: rgba(255,255,255,.8);
  padding: 76px 0 68px;
}
.page-hero h1 { color: var(--white); margin-bottom: 16px; }
.page-hero p { max-width: 640px; font-size: 1.08rem; }
.breadcrumb { font-size: .85rem; color: rgba(255,255,255,.5); margin-bottom: 18px; }
.breadcrumb a { color: var(--teal-400); }

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.card .icon {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  font-size: 1.5rem;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(37, 99, 235,.12), rgba(56, 130, 246,.12));
  margin-bottom: 20px;
  overflow: hidden;
}
.card .icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card img.svc-img {
  width: 100%;
  height: 85px;
  object-fit: cover;
  display: block;
  border-radius: 10px;
  margin-bottom: 20px;
}
.card h3 { font-size: 1.18rem; margin-bottom: 12px; }
.card p { color: var(--slate-500); font-size: .95rem; margin-bottom: 18px; }
.card .link { font-weight: 600; font-size: .92rem; color: var(--teal-500); display: inline-flex; align-items: center; gap: 6px; }
.card .link:hover { gap: 10px; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step { position: relative; text-align: center; padding: 0 10px; }
.step .num {
  counter-increment: step;
  width: 58px; height: 58px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1.25rem; font-weight: 800;
  color: var(--navy-900);
  background: linear-gradient(135deg, var(--teal-400), var(--cyan-400));
  box-shadow: 0 8px 20px rgba(37, 99, 235,.35);
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { font-size: .9rem; color: var(--slate-500); }

/* ---------- Feature list ---------- */
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature .f-icon {
  flex: 0 0 46px;
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-size: 1.2rem;
  background: linear-gradient(135deg, rgba(37, 99, 235,.12), rgba(56, 130, 246,.12));
}
.feature h3 { font-size: 1.02rem; margin-bottom: 6px; }
.feature p { font-size: .92rem; color: var(--slate-500); }

/* ---------- Testimonials ---------- */
.testi {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 30px;
}
.testi .stars { color: var(--amber-400); letter-spacing: 2px; margin-bottom: 14px; font-size: .95rem; }
.testi blockquote { font-size: .96rem; color: var(--slate-600); margin-bottom: 20px; }
.testi .who { display: flex; align-items: center; gap: 12px; }
.testi .avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; font-size: .9rem;
  color: var(--white);
  background: linear-gradient(135deg, var(--teal-500), var(--blue-600));
}
.testi .who .name { font-weight: 700; color: var(--slate-900); font-size: .93rem; }
.testi .who .loc { font-size: .8rem; color: var(--slate-500); }

/* ---------- Brand strip ---------- */
.brand-strip { background: var(--slate-50); border-top: 1px solid var(--slate-200); border-bottom: 1px solid var(--slate-200); padding: 36px 0; }
.brand-strip .logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 44px; }
.brand-strip .logos span {
  font-weight: 700; font-size: 1.06rem; color: var(--slate-500);
  opacity: .75; letter-spacing: .01em;
}

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border: 1px solid var(--slate-200); border-radius: 12px; margin-bottom: 14px; background: var(--white); overflow: hidden; }
.faq-q {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: none; border: none; cursor: pointer;
  padding: 20px 24px;
  font-family: var(--font);
  font-size: 1rem; font-weight: 600; color: var(--slate-900);
  text-align: left;
}
.faq-q .chev { transition: transform .3s; color: var(--teal-500); font-size: .9rem; flex: 0 0 auto; }
.faq-item.open .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a > div { padding: 0 24px 22px; color: var(--slate-600); font-size: .95rem; }

/* ---------- Tables ---------- */
.spec-table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.spec-table th, .spec-table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--slate-200); }
.spec-table th { background: var(--slate-50); color: var(--slate-900); font-weight: 700; white-space: nowrap; }
.spec-table td { color: var(--slate-600); }
.spec-table tr:hover td { background: rgba(37, 99, 235,.03); }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(600px 300px at 20% 0%, rgba(56, 130, 246,.2), transparent 60%),
    linear-gradient(120deg, var(--navy-900), var(--navy-700));
  border-radius: 20px;
  padding: 64px 48px;
  text-align: center;
  color: rgba(255,255,255,.8);
}
.cta-band h2 { color: var(--white); font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 14px; }
.cta-band p { max-width: 560px; margin: 0 auto 30px; }

/* ---------- Forms ---------- */
.form-wrap { background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow-md); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: .86rem; font-weight: 600; color: var(--slate-700); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--slate-200);
  border-radius: 10px;
  font-family: var(--font);
  font-size: .95rem;
  color: var(--slate-900);
  background: var(--slate-50);
  transition: border .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal-500); background: var(--white);
}
.field textarea { min-height: 130px; resize: vertical; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Contact info blocks ---------- */
.contact-item { display: flex; gap: 16px; align-items: flex-start; padding: 22px 0; border-bottom: 1px solid var(--slate-200); }
.contact-item:last-child { border-bottom: none; }
.contact-item .c-icon {
  flex: 0 0 46px; width: 46px; height: 46px;
  border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(37, 99, 235,.12), rgba(56, 130, 246,.12));
  font-size: 1.15rem;
}
.contact-item h3 { font-size: 1rem; margin-bottom: 4px; }
.contact-item p, .contact-item a { font-size: .93rem; color: var(--slate-500); }

/* ---------- Prose ---------- */
.prose { max-width: 800px; }
.prose h2 { font-size: 1.55rem; margin: 44px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--slate-600); margin-bottom: 16px; }
.prose ul { margin: 0 0 16px 4px; }
.prose ul li { color: var(--slate-600); padding-left: 26px; position: relative; margin-bottom: 9px; }
.prose ul li::before {
  content: "✓";
  position: absolute; left: 0;
  color: var(--teal-500); font-weight: 700;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.6); padding: 64px 0 0; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--white); font-size: .95rem; margin-bottom: 18px; }
.site-footer .logo { margin-bottom: 16px; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer ul a { color: rgba(255,255,255,.6); transition: color .2s; }
.site-footer ul a:hover { color: var(--teal-400); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 22px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
  font-size: .84rem;
}

/* ---------- Blog / case studies ---------- */
.blog-card { display: flex; flex-direction: column; }
.blog-card .thumb {
  height: 180px;
  border-radius: 10px;
  display: block;
  overflow: hidden;
  position: relative;
  background: linear-gradient(140deg, var(--navy-800), var(--navy-700));
  margin-bottom: 20px;
}
.blog-card .thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.blog-card:hover .thumb img { transform: scale(1.06); }
.blog-card .thumb .cat-badge {
  position: absolute;
  left: 12px; bottom: 12px;
  background: rgba(10, 22, 40, .82);
  color: var(--teal-400);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.post-meta { display: flex; align-items: center; gap: 12px; font-size: .82rem; color: var(--slate-500); margin-bottom: 10px; }
.post-meta .cat { color: var(--teal-500); font-weight: 700; }
.blog-card h3 { font-size: 1.08rem; line-height: 1.4; margin-bottom: 10px; }
.blog-card p { margin-bottom: 16px; }
.blog-card .link { margin-top: auto; }

.article-head { max-width: 800px; margin: 0 auto 34px; }
.article-head h1 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin: 10px 0 16px; }
.article-body { max-width: 800px; margin: 0 auto; font-size: 1.02rem; }
.article-body h2 { font-size: 1.35rem; margin: 40px 0 14px; }
.article-body p { color: var(--slate-600); margin-bottom: 16px; }
.article-body ul { margin: 0 0 16px 4px; }
.article-body ul li { color: var(--slate-600); padding-left: 26px; position: relative; margin-bottom: 9px; }
.article-body ul li::before { content: "✓"; position: absolute; left: 0; color: var(--teal-500); font-weight: 700; }
.result-box {
  background: linear-gradient(135deg, rgba(37, 99, 235,.08), rgba(56, 130, 246,.08));
  border: 1px solid rgba(37, 99, 235,.25);
  border-radius: 12px;
  padding: 22px 26px;
  margin: 28px 0;
}
.result-box h3 { font-size: 1rem; margin-bottom: 8px; }
.result-box p { margin: 0; font-size: .95rem; }
.post-footer { max-width: 800px; margin: 48px auto 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Misc ---------- */
.tag {
  display: inline-block;
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  color: var(--slate-600);
  font-size: .8rem; font-weight: 600;
  padding: 5px 13px;
  border-radius: 999px;
  margin: 0 8px 10px 0;
}
.alt-bg { background: var(--slate-50); }
