/* ============ RankCompass enhancements (imported design ideas) ============ */

/* ---- Hero ranking dashboard visual ---- */
.rankviz { position: relative; }
.rank-panel {
  background: #12294A; border: 1px solid rgba(255,255,255,0.10); border-radius: 20px;
  padding: 24px 24px 18px; box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}
.rp-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rp-top span { color: #B6C2D4; font-family: var(--font-head); font-weight: 600; font-size: 14px; }
.rp-top .live { color: #FF8C5F; background: rgba(255,107,53,0.14); border: 1px solid rgba(255,107,53,0.3); font-size: 10px; font-weight: 800; letter-spacing: .08em; padding: 3px 9px; border-radius: 6px; }
.rp-rank { display: flex; align-items: center; gap: 12px; margin: 8px 0 6px; }
.rp-rank b, .rp-rank { font-family: var(--font-head); }
.rp-rank .big { font-family: var(--font-head); font-weight: 800; font-size: 2.8rem; color: #fff; line-height: 1; }
.rp-up { color: #34D399; background: rgba(52,211,153,0.12); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 8px; }
.rp-chart { width: 100%; height: auto; display: block; margin-top: 4px; }
.rp-axis { display: flex; justify-content: space-between; color: #6E809B; font-size: 11px; font-family: var(--font-head); margin-top: 2px; padding: 0 4px; }
.localpack {
  position: absolute; right: -10px; bottom: -26px; width: 300px; max-width: 82%;
  background: #fff; border-radius: 16px; box-shadow: 0 24px 50px rgba(11,31,58,0.35);
  padding: 16px; border: 1px solid #EEF1F6;
}
.lp-h { font-family: var(--font-head); font-weight: 700; font-size: 11px; letter-spacing: .04em; color: var(--muted); text-transform: uppercase; margin-bottom: 12px; }
.lp-row { display: flex; align-items: center; gap: 12px; padding: 9px 8px; border-radius: 10px; }
.lp-row + .lp-row { margin-top: 2px; }
.lp-you { background: var(--accent-soft); }
.lp-n, .lp-n2 { flex: none; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 13px; }
.lp-n { background: var(--accent); color: #fff; }
.lp-n2 { background: #EEF1F6; color: var(--muted); }
.lp-row > div { flex: 1; min-width: 0; }
.lp-row b { display: block; font-family: var(--font-head); color: var(--navy); font-size: 14px; }
.lp-row small { color: var(--muted); font-size: 11.5px; }
.lp-tag { flex: none; font-size: 10px; font-weight: 800; color: var(--accent); background: #fff; border: 1px solid var(--accent); padding: 2px 7px; border-radius: 6px; }
@media (max-width: 940px) { .localpack { position: static; width: 100%; max-width: 100%; margin-top: 16px; } .rankviz { margin-top: 8px; } }

/* ---- Numbered cards (services) ---- */
.numbered .card { position: relative; padding-top: 30px; }
.numbered { counter-reset: ncard; }
.numbered .card::after {
  counter-increment: ncard; content: "0" counter(ncard);
  position: absolute; top: 20px; right: 24px;
  font-family: var(--font-head); font-weight: 800; font-size: 14px; color: var(--accent); opacity: .85;
}

/* ---- How it works: numbered process ---- */
.proc { display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; counter-reset: step; }
.proc-item { border-top: 2px solid var(--line); padding-top: 20px; }
.proc-item .pl { counter-increment: step; font-family: var(--font-head); font-weight: 800; font-size: 12px; letter-spacing: .08em; color: var(--accent); text-transform: uppercase; margin-bottom: 10px; }
.proc-item .pl::before { content: "0" counter(step) " — "; }
.proc-item h4 { font-size: 1.15rem; margin-bottom: 8px; }
.proc-item p { color: var(--slate); font-size: .95rem; }
/* dark treatment when on a navy section */
.section-navy .proc-item { border-top-color: rgba(255,255,255,0.16); }
.section-navy .proc-item h4 { color: #fff; }
.section-navy .proc-item p { color: #94A3B8; }
@media (max-width: 1024px) { .proc { grid-template-columns: repeat(3, 1fr); gap: 26px 24px; } }
@media (max-width: 700px) { .proc { grid-template-columns: 1fr 1fr; gap: 24px; } }
@media (max-width: 440px) { .proc { grid-template-columns: 1fr; } }

/* ---- Referral / testimonial split ---- */
.split { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; align-items: stretch; }
.quote-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 20px; padding: 34px; display: flex; flex-direction: column; justify-content: center; }
.quote-card .q { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; color: var(--navy); line-height: 1.4; }
.quote-card .q .hl { color: var(--accent); }
.quote-who { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.quote-who .av { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg,#1E3A5F,#0B1F3A); flex: none; }
.quote-who b { font-family: var(--font-head); color: var(--navy); display: block; font-size: 14px; }
.quote-who small { color: var(--muted); }
.most-card { background: var(--navy); border-radius: 20px; padding: 34px; color: #B6C2D4; display: flex; flex-direction: column; justify-content: center; }
.most-card .big { font-family: var(--font-head); font-weight: 800; font-size: 3rem; color: var(--accent); line-height: 1; margin-bottom: 12px; }
.most-card p { color: #CBD5E1; font-size: 1.02rem; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

/* ---- Orange CTA band ---- */
.cta-orange { background: linear-gradient(135deg, var(--accent) 0%, #FF8A4C 100%); border-radius: 24px; padding: 54px; position: relative; overflow: hidden; }
.cta-orange::before { content: ''; position: absolute; inset: 0; background: radial-gradient(600px 300px at 85% 20%, rgba(255,255,255,0.18), transparent 60%); }
.cta-orange .inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: center; }
.cta-orange h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.cta-orange .actions { display: flex; flex-direction: column; gap: 12px; }
.cta-orange p { color: rgba(255,255,255,0.92); margin-top: 12px; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: #06162c; }
.btn-onorange-ghost { background: rgba(255,255,255,0.14); color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-onorange-ghost:hover { background: rgba(255,255,255,0.22); }
@media (max-width: 760px) { .cta-orange { padding: 34px 26px; } .cta-orange .inner { grid-template-columns: 1fr; gap: 18px; } }


/* ---- Hero: tighter height + keep "Top-3 map rankings" on one line ---- */
.hero { padding: 70px 0 78px; }
.hero h1 { font-size: clamp(1.95rem, 3.7vw, 2.8rem); line-height: 1.12; }
.hero p { font-size: 1.08rem; margin: 16px 0 24px; }
.hero-trust { margin-top: 26px; gap: 26px; }

/* ---- Two-column service-page hero (for visuals) ---- */
.page-hero .ph-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.page-hero .ph-grid h1 { max-width: none; }
@media (max-width: 940px) { .page-hero .ph-grid { grid-template-columns: 1fr; gap: 30px; } }

/* ---- Case-study carousel (homepage) ---- */
.carousel { position: relative; }
.car-track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 6px 2px 16px; -webkit-overflow-scrolling: touch; }
.car-track::-webkit-scrollbar { height: 6px; }
.car-track::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.car-slide { scroll-snap-align: center; flex: 0 0 min(600px, 90%); }
.car-slide .cs-feature { margin: 0; height: 100%; }
.car-slide .stat-tiles { grid-template-columns: repeat(2, 1fr); margin: 18px 0 0; }
.car-btns { display: flex; justify-content: center; gap: 12px; margin-top: 8px; }
.car-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; display: grid; place-items: center; color: var(--navy); font-size: 20px; line-height: 1; transition: border-color .15s, background .15s; }
.car-btn:hover { border-color: var(--navy); background: var(--bg-soft); }

/* ---- Ensure nav dropdowns always render above page content ---- */
.nav { z-index: 200; }
.has-drop .dropdown { z-index: 210; }

/* ---- 5-widget stat row (case studies) ---- */
.stat-tiles.five { grid-template-columns: repeat(5, 1fr); }
.stat-tiles.five .v { font-size: 1.7rem; }
@media (max-width: 980px) { .stat-tiles.five { grid-template-columns: repeat(3, 1fr); } }

/* ---- Before/after local-grid map (case study) ---- */
.grid-ba { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 8px 0 4px; }
.ba-col .cap { text-align: center; font-family: var(--font-head); font-weight: 800; font-size: 12px; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; margin-bottom: 10px; }
.ba-maps { display: grid; gap: 3px; }
.ba-maps .mcell { aspect-ratio: 1; border-radius: 4px; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: clamp(8px, 1vw, 12px); color: #fff; }
.mg { background: #1E7B34; color:#fff; } .ml { background: #6DAF3A; color:#fff; } .my { background: #F0C020; color: #3a2c00; } .mo { background: #E8721C; color:#fff; } .mr { background: #B42318; color:#fff; } .mx { background: #94A3B8; color:#fff; }
.ba-legend { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 12px; font-size: 11px; color: var(--muted); }
.ba-legend span { display: inline-flex; align-items: center; gap: 5px; }
.ba-legend i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
@media (max-width: 560px) { .grid-ba { grid-template-columns: 1fr; gap: 16px; } }

/* ---- 3-stat band ---- */
.statband.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .statband.three { grid-template-columns: 1fr; } }

/* ---- 4-tier pricing grid ---- */
.price-grid.four { grid-template-columns: repeat(4, 1fr); gap: 20px; }
.price-grid.four .price { padding: 26px 22px; }
@media (max-width: 1040px) { .price-grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .price-grid.four { grid-template-columns: 1fr; } }

/* ---- Meet the team (about) ---- */
.team-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; max-width: 1040px; margin: 40px auto 0; }
.team-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 20px; padding: 42px 28px; text-align: center; }
.team-av { width: 122px; height: 122px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 20px; font-family: var(--font-head); font-weight: 800; font-size: 2rem; color: #fff; background: linear-gradient(135deg, #1E3A5F, #0B1F3A); letter-spacing: .02em; box-shadow: 0 12px 30px rgba(11,31,58,0.18); }
.team-card b { font-family: var(--font-head); color: var(--navy); font-size: 1.25rem; display: block; margin-bottom: 5px; }
.team-role { color: var(--accent); font-weight: 700; font-size: .98rem; font-family: var(--font-head); }
@media (max-width: 720px) { .team-row { grid-template-columns: 1fr; max-width: 380px; } }

/* ---- Enterprise custom band (pricing) ---- */
.ent-band { position: relative; overflow: hidden; max-width: 980px; margin: 36px auto 0; background: linear-gradient(135deg, #0B1F3A 0%, #12294A 100%); border: 1px solid rgba(255,255,255,0.08); border-radius: 22px; padding: 34px 40px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; box-shadow: 0 24px 60px rgba(11,31,58,0.28); }
.ent-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(460px 220px at 88% 8%, rgba(255,107,53,0.16), transparent 62%); pointer-events: none; }
.ent-left { position: relative; display: flex; gap: 18px; align-items: flex-start; flex: 1 1 460px; }
.ent-badge { flex: none; width: 52px; height: 52px; border-radius: 14px; background: rgba(255,107,53,0.14); border: 1px solid rgba(255,107,53,0.32); display: grid; place-items: center; }
.ent-badge svg { width: 26px; height: 26px; stroke: var(--accent); }
.ent-tag { display: inline-block; font-family: var(--font-head); font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.ent-band h3 { color: #fff; font-family: var(--font-head); font-size: 1.28rem; line-height: 1.25; margin-bottom: 8px; max-width: 560px; }
.ent-band p { color: #B6C2D4; font-size: .96rem; line-height: 1.55; max-width: 560px; margin: 0; }
.ent-right { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; flex: 0 0 auto; padding-left: 32px; border-left: 1px solid rgba(255,255,255,0.10); }
.ent-price { color: #fff; font-family: var(--font-head); line-height: 1; text-align: center; }
.ent-price small { display: block; color: #8FA0B6; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 5px; }
.ent-price b { font-size: 2.6rem; font-weight: 800; }
.ent-price span { color: #8FA0B6; font-size: 14px; font-weight: 600; }
.ent-right .btn { width: 100%; }
@media (max-width: 720px) { .ent-band { flex-direction: column; align-items: flex-start; padding: 28px 24px; } .ent-left { flex: 1 1 auto; } .ent-right { align-items: stretch; width: 100%; padding-left: 0; border-left: 0; border-top: 1px solid rgba(255,255,255,0.10); padding-top: 20px; } .ent-price { text-align: left; } }

/* ---- Blog article prose ---- */
.prose h2 { font-family: var(--font-head); font-size: 1.5rem; color: var(--navy); margin: 32px 0 12px; line-height: 1.25; }
.prose p { color: var(--slate); line-height: 1.75; margin-bottom: 16px; font-size: 1.05rem; }
.prose ul { margin: 0 0 18px 0; padding-left: 22px; }
.prose li { color: var(--slate); line-height: 1.7; margin-bottom: 9px; }
.prose strong { color: var(--navy); }
.prose a { color: var(--accent); font-weight: 600; }

/* ---- GSC organic performance (service page) ---- */
.gsc-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 920px; margin: 26px auto 0; }
.gsc-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.gsc-card .l { color: var(--muted); font-size: .9rem; font-family: var(--font-head); font-weight: 600; }
.gsc-card .v { font-family: var(--font-head); font-weight: 800; font-size: 1.85rem; color: var(--navy); margin-top: 6px; }
.gsc-card .v.up { color: #16A34A; }
.gsc-legend { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; margin-bottom: 10px; font-size: 13px; color: var(--slate); font-family: var(--font-head); font-weight: 600; }
.gsc-legend span { display: inline-flex; align-items: center; gap: 7px; }
.gsc-legend i { display: inline-block; }
@media (max-width: 760px) { .gsc-cards { grid-template-columns: repeat(2, 1fr); } }
