/*
Theme Name: RankPilot
Theme URI: https://rankpilot.org
Author: RankPilot
Description: Custom WordPress theme for RankPilot SEO Agency
Version: 1.0
*/

/* =====================================================
   RankPilot — Main Stylesheet  v24
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400&display=swap');

/* ── Variables ── */
:root {
  --dark:       #080D1A;
  --dark-2:     #0D1526;
  --dark-3:     #111d35;
  --dark-4:     #1a2540;
  --blue:       #3B82F6;
  --blue-dark:  #2563EB;
  --blue-light: #60a5fa;
  --gray-bg:    #F5F7FA;
  --gray-border:#E2E8F0;
  --text:       #1e293b;
  --text-muted: #64748b;
  --white:      #ffffff;
  --green:      #10b981;
  --yellow:     #f59e0b;
  --red:        #ef4444;
  --nav-h:      68px;
  --radius:     12px;
  --radius-sm:  8px;
  --shadow:     0 4px 24px rgba(0,0,0,.08);
  --shadow-md:  0 8px 40px rgba(0,0,0,.12);
}

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

html, body { overflow-x: hidden; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── Typography ── */
h1, h2, h3, h4, h5 {
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.02em;
}
h1 { font-size: clamp(2.6rem, 6.5vw, 5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }
h5 { font-size: .9rem; letter-spacing: .04em; text-transform: uppercase; }
p  { line-height: 1.7; }

em { font-style: normal; color: var(--blue); }

/* Dark-bg overrides */
.section-dark h2 em,
.hero h1 em,
.hero h1 span,
.page-hero h1 span { color: var(--blue); }

/* ── Layout helpers ── */
.container    { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 760px;  margin: 0 auto; padding: 0 1.5rem; }
.text-center  { text-align: center; }
.white        { color: var(--white) !important; }

.lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
}
.lead.text-center,
.text-center .lead { margin-left: auto; margin-right: auto; }
.section-dark .lead { color: rgba(255,255,255,.55); }

.divider {
  width: 48px; height: 4px;
  background: #3B82F6;
  border-radius: 2px;
  margin: 1.25rem 0 1.75rem;
}
.divider-c { margin-left: auto; margin-right: auto; }

.eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .6rem;
}
.eyebrow-dark { color: var(--blue-light); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: .9rem;
  transition: all .18s ease;
  white-space: nowrap;
  cursor: pointer;
}
.btn-lg  { padding: .9rem 2rem; font-size: 1rem; }
.btn-sm  { padding: .5rem 1.1rem; font-size: .82rem; }

.btn-blue {
  background: var(--blue-dark);
  color: var(--white);
}
.btn-blue:hover { background: var(--blue); box-shadow: 0 4px 16px rgba(59,130,246,.35); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--gray-border);
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }

.hero .btn-outline,
.page-hero .btn-outline,
.cta-section .btn-outline {
  color: var(--blue);
  border-color: var(--blue);
}
.hero .btn-outline:hover,
.page-hero .btn-outline:hover,
.cta-section .btn-outline:hover {
  background: rgba(59,130,246,.12);
  border-color: var(--blue-light);
  color: var(--blue-light);
}

.btn-white {
  background: var(--white);
  color: var(--blue-dark);
  font-weight: 700;
}
.btn-white:hover { background: #f0f4ff; box-shadow: 0 4px 20px rgba(0,0,0,.15); }

/* ── Navigation ── */
.nav-wrap {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(8,13,26,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: .5rem;
}

.nav-logo img,
.nav-logo .custom-logo,
.footer-brand .custom-logo,
.footer-brand .nav-logo img {
  height: 40px;
  width: auto;
  max-width: 180px;
  display: block;
  object-fit: contain;
}
/* Shrink logo on smaller screens */
@media (max-width: 768px) {
  .nav-logo img,
  .nav-logo .custom-logo,
  .footer-brand .custom-logo {
    height: 32px;
    max-width: 140px;
  }
}
@media (max-width: 480px) {
  .nav-logo img,
  .nav-logo .custom-logo,
  .footer-brand .custom-logo {
    height: 28px;
    max-width: 120px;
  }
}

.logo-name {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--white);
}
.logo-name span { color: var(--blue); }
footer .logo-name span { color: var(--blue); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: .25rem;
  flex: 1;
  justify-content: center;
}

.nav-menu li a {
  display: block;
  padding: .45rem .4rem;
  font-size: .78rem;
  font-weight: 700;
  color: rgba(255,255,255,.82);
  border-radius: 5px;
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.nav-menu li a:hover,
.nav-menu li.active a { color: var(--white); background: rgba(255,255,255,.07); }

.nav-actions { margin-left: auto; flex-shrink: 0; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  padding: .4rem;
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: rgba(255,255,255,.75);
  border-radius: 2px;
  transition: all .2s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero (homepage) ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--dark);
  overflow: hidden;
  padding-top: var(--nav-h);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 30% 40%, rgba(37,99,235,.22) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 70% 60%, rgba(59,130,246,.10) 0%, transparent 60%);
  pointer-events: none;
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  margin: 0 auto;
  padding: 5rem 1.5rem 6rem;
  width: 100%;
}

.hero-content { max-width: 860px; text-align: center; margin: 0 auto; }

.hero h1 {
  color: var(--white);
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,.6);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ── Stats band ── */
.stats-band {
  background: var(--dark-2);
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.stats-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}

.stat-val {
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue-light);
  letter-spacing: -.03em;
}
.stat-lbl {
  font-size: .8rem;
  color: rgba(255,255,255,.45);
  margin-top: .2rem;
  font-weight: 500;
}

/* ── Page hero (inner pages) ── */
.page-hero {
  background: var(--dark);
  padding: calc(var(--nav-h) + 4rem) 0 4rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 20% 50%, rgba(37,99,235,.2) 0%, transparent 65%);
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
}
.page-hero-inner h1 {
  color: var(--white);
  margin: .5rem 0 1rem;
  font-size: clamp(1.8rem, 4vw, 2.75rem);
}
.page-hero-inner p {
  color: rgba(255,255,255,.6);
  font-size: 1.05rem;
  max-width: 580px;
  margin: 0 auto 1.75rem;
}

/* ── Results band (inner pages) ── */
.results-band {
  background: var(--dark-2);
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.results-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}
.result-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue-light);
  letter-spacing: -.03em;
}
.result-lbl {
  font-size: .8rem;
  color: rgba(255,255,255,.45);
  margin-top: .2rem;
  font-weight: 500;
}

/* ── Sections ── */
.section {
  padding: 5rem 0;
}
.section-gray { background: var(--gray-bg); }
.section-dark {
  background: var(--dark-2);
  color: var(--white);
}
.section-dark h2 { color: var(--white); }
.section-dark p  { color: rgba(255,255,255,.6); }

/* ── Services grid ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--white);
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.service-card:hover {
  border-color: var(--blue);
  box-shadow: 0 8px 32px rgba(59,130,246,.12);
  transform: translateY(-3px);
}
.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: .6rem;
}
.service-card p {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}
.service-link {
  font-size: .85rem;
  font-weight: 600;
  color: var(--blue-dark);
  transition: color .15s;
}
.service-link:hover { color: var(--blue); }

/* ── Steps grid ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
  gap: 1.5rem;
  margin-top: 3rem;
}

.step {
  text-align: center;
  padding: 2rem 1rem;
  position: relative;
  z-index: 1;
}
.step-num {
  width: 44px; height: 44px;
  background: var(--blue-dark);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  font-weight: 700;
  margin: 0 auto 1rem;
  flex-shrink: 0;
}
.step h4 { margin-bottom: .5rem; }
.step p   { font-size: .9rem; color: var(--text-muted); }

/* ── Why grid ── */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.why-list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.why-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.why-item .step-num { margin: 0; }
.why-item h4 { margin-bottom: .3rem; }
.why-item p { font-size: .9rem; color: var(--text-muted); }

/* ── Score ring widget ── */
.why-visual {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 14rem;
}
@media (max-width: 1024px) {
  .why-visual { margin-top: 0 !important; }
}
@media (max-width: 768px) {
  .why-visual { display: none; }
}
.score-ring-wrap {
  background: var(--dark-2);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.score-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
}
.score-ring {
  width: 120px; height: 120px;
  border-radius: 50%;
  background: conic-gradient(var(--blue) 0% 88%, rgba(255,255,255,.08) 88% 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.score-ring::before {
  content: '';
  position: absolute;
  inset: 10px;
  background: var(--dark-2);
  border-radius: 50%;
}
.score-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}
.score-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.score-sub {
  font-size: .65rem;
  color: var(--green);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: .15rem;
}

/* ── Audit rows ── */
.audit-items {
  background: var(--dark-2);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  overflow: hidden;
}
.audit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.5rem;
  font-size: 1rem;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.audit-row:last-child { border-bottom: none; }
.audit-row .name { color: rgba(255,255,255,.7); }
.audit-status {
  font-size: .85rem;
  font-weight: 700;
  padding: .35rem .9rem;
  border-radius: 100px;
}
.s-pass { background: rgba(16,185,129,.15); color: var(--green); }
.s-warn { background: rgba(245,158,11,.15); color: var(--yellow); }

/* ── Split layout ── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }

.split h2 { margin-bottom: .5rem; }
.split .lead { margin-bottom: 1.5rem; }

.split-list {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.split-list li {
  padding-left: 1.2rem;
  position: relative;
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.split-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-size: .8rem;
}

.split-visual {
  background: var(--dark-3);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 2rem;
}

/* ── Mini cards ── */
.mini-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.mini-card {
  background: var(--white);
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  transition: border-color .2s, box-shadow .2s;
}
.section-gray .mini-card { background: var(--white); }
.mini-card:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 20px rgba(59,130,246,.1);
}
.mini-card h4 {
  font-size: .95rem;
  margin-bottom: .5rem;
  color: var(--text);
}
.mini-card p {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ── Vertical steps ── */
.vsteps {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.vstep {
  display: flex;
  gap: 1.25rem;
  padding-bottom: 2rem;
  position: relative;
}
.vstep:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 21px;
  top: 44px;
  bottom: 0;
  width: 1px;
  background: var(--gray-border);
}
.section-dark .vstep:not(:last-child)::before { background: rgba(255,255,255,.1); }
.vstep-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(59,130,246,.15);
  border: 1px solid rgba(59,130,246,.35);
  color: var(--blue-light);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: .9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.vstep-body h4 {
  color: var(--text);
  margin-bottom: .35rem;
  font-size: 1rem;
}
.vstep-body p {
  font-size: .9rem;
  color: var(--text-muted);
}
.section-dark .vstep-body h4 { color: var(--white); }
.section-dark .vstep-body p  { color: rgba(255,255,255,.55); }

/* ── Testimonials ── */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.testi-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.testi-stars { color: #facc15; font-size: 1rem; letter-spacing: 2px; }
.testi-text {
  font-size: .9rem;
  color: rgba(255,255,255,1);
  line-height: 1.7;
  flex: 1;
  font-style: italic;
}
.testi-author { display: flex; align-items: center; gap: .75rem; }
.testi-name {
  font-weight: 700;
  font-size: .88rem;
  color: var(--white);
}
.testi-co {
  font-size: .78rem;
  color: rgba(255,255,255,1);
}

/* ── Pricing ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}
.pricing-card {
  background: var(--white);
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .9rem;
  transition: box-shadow .2s;
}
.pricing-card:hover { box-shadow: var(--shadow-md); }

.pricing-card.featured {
  border-color: var(--blue-dark);
  box-shadow: 0 8px 40px rgba(37,99,235,.18);
  transform: translateY(-6px);
}
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue-dark);
  color: var(--white);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .25rem .8rem;
  border-radius: 100px;
  white-space: nowrap;
}
.pricing-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}
.pricing-price {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.04em;
  line-height: 1;
}
.pricing-price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0;
}
.pricing-period,
.pricing-tagline {
  font-size: .82rem;
  color: var(--text-muted);
}
.pricing-features {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  flex: 1;
  margin-bottom: .5rem;
}
.pricing-features li {
  font-size: .88rem;
  color: var(--text-muted);
  padding-left: 1.3rem;
  position: relative;
}
.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

/* ── FAQ ── */
.faq-list {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.faq-item {
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--white);
}
.section-gray .faq-item { background: var(--white); }
.faq-q {
  padding: 1.1rem 1.5rem;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--text);
  transition: color .15s;
}
.faq-q:hover { color: var(--blue-dark); }
.faq-q::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform .2s;
}
.faq-item.open .faq-q { color: var(--blue-dark); }
.faq-item.open .faq-q::after {
  content: '−';
  transform: none;
}
.faq-a {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.7;
  transition: max-height .3s ease, padding .3s ease;
}
.faq-item.open .faq-a {
  max-height: 400px;
  padding: 0 1.5rem 1.1rem;
}

/* ── About stats grid ── */
.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}
@media (max-width: 768px) {
  .about-stats-grid { grid-template-columns: 1fr !important; max-width: 400px !important; }
}

/* ── Case Studies ── */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.case-card {
  background: var(--white);
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: .85rem;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.case-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.case-industry {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: rgba(59,130,246,.1);
  color: var(--blue-dark);
  padding: .25rem .75rem;
  border-radius: 100px;
  width: fit-content;
}
.case-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}
.case-desc {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}
.case-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--gray-border);
  border-bottom: 1px solid var(--gray-border);
}
.case-stat-num {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--blue-dark);
  letter-spacing: -.02em;
}
.case-stat-lbl {
  font-size: .72rem;
  color: var(--text-muted);
  margin-top: .15rem;
}
.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: auto;
  padding-top: .85rem;
}
.case-tags span {
  font-size: 1.2rem;
  font-weight: 600;
  background: var(--gray-bg);
  color: var(--text-muted);
  padding: .2rem .65rem;
  border-radius: 100px;
}

/* ── CTA section ── */
.cta-section {
  background: linear-gradient(135deg, #3B82F6 0%, #1d4ed8 100%);
  padding: 6rem 0;
  text-align: center;
}
.cta-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.cta-inner h2 {
  color: var(--white);
  margin-bottom: 1rem;
}
.cta-inner .lead {
  max-width: none;
  margin-bottom: 2.5rem;
  color: rgba(255,255,255,.8);
}
.cta-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Footer ── */
footer {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,.07);
  color: rgba(255,255,255,.7);
  font-size: .9rem;
}
.footer-grid {
  max-width: 1140px;
  margin: 0 auto;
  padding: 6rem 1.5rem 3rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}
.footer-brand p {
  font-size: .78rem;
  font-weight: 700;
  color: rgba(255,255,255,1);
  line-height: 1.65;
  margin-top: .75rem;
  max-width: 280px;
}
.footer-col h5 {
  color: rgba(255,255,255,.9);
  font-size: 1rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.footer-col ul li a {
  color: rgba(255,255,255,1);
  font-size: .78rem;
  font-weight: 700;
  transition: color .15s;
}
.footer-col ul li a:hover { color: var(--white); }

.footer-bottom {
  max-width: 1140px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .82rem;
  font-weight: 700;
  color: rgba(255,255,255,.5);
}
.footer-legal {
  display: flex;
  gap: 1.5rem;
}
.footer-legal a {
  color: rgba(255,255,255,.5);
  font-weight: 700;
  transition: color .15s;
}
.footer-legal a:hover { color: rgba(255,255,255,.7); }

/* ── Contact form ── */
.contact-form-wrap {
  background: var(--white);
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}
.form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.form-group label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .7rem 1rem;
  border: 1.5px solid var(--gray-border);
  border-radius: 6px;
  font-size: .9rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color .15s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue-dark);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ── Info box ── */
.info-box {
  background: rgba(59,130,246,.07);
  border: 1px solid rgba(59,130,246,.2);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.info-box a { color: var(--blue-dark); font-weight: 600; }
.info-box a:hover { text-decoration: underline; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid    { grid-template-columns: repeat(2, 1fr); }
  .case-grid     { grid-template-columns: repeat(2, 1fr); }
  .footer-grid   { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand  { grid-column: 1 / -1; }
  .why-grid      { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }

  .nav-menu {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(8,13,26,.97);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 1.5rem;
    gap: .25rem;
    border-bottom: 1px solid rgba(255,255,255,.07);
    z-index: 99;
  }
  .nav-menu.open { display: flex; }
  .nav-menu li a { padding: .75rem 1rem; font-size: .95rem; }

  .nav-actions { display: none; }
  .nav-hamburger { display: flex; }

  .hero-inner { padding: 3rem 1.5rem 4rem; }
  .hero-btns  { flex-direction: row; flex-wrap: wrap; gap: .75rem; }
  .hero-btns .btn { text-align: center; justify-content: center; flex: 1 1 auto; min-width: 0; }

  .stats-inner  { grid-template-columns: repeat(2, 1fr); }
  .results-inner { grid-template-columns: repeat(2, 1fr); }

  .services-grid { grid-template-columns: 1fr; }
  .steps-grid    { grid-template-columns: 1fr; }
  .case-grid     { grid-template-columns: 1fr; }
  .testi-grid    { grid-template-columns: 1fr; }
  .pricing-grid  {
    grid-template-columns: 1fr !important;
    max-width: 440px;
  }
  .pricing-card.featured { transform: none; }

  .mini-cards    { display: flex !important; flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: .5rem; }
  .mini-card     { flex: 0 0 78vw; scroll-snap-align: start; }
  .split         { grid-template-columns: 1fr; gap: 2.5rem; direction: ltr !important; }
  .form-row      { grid-template-columns: 1fr; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 1.5rem 2rem;
  }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal  { justify-content: center; }

  .cta-section { padding: 4rem 0; }
  .contact-form-wrap { padding: 1.75rem 1.25rem; }
}

@media (max-width: 480px) {
  .stats-inner   { grid-template-columns: repeat(2, 1fr); }
  .results-inner { grid-template-columns: repeat(2, 1fr); }
  .case-stats    { grid-template-columns: repeat(3, 1fr); gap: .25rem; }
  .case-stat-num { font-size: .95rem; }
  h1 { font-size: 2rem; }
  .hero h1 { font-size: 2.8rem; }
  h2 { font-size: 1.6rem; }
}
