/* =====================================================================
   LocalSEOKey WordPress Theme — main.css
   Single source of truth for all layout and component styles.
   Tailwind CDN only adds colour/spacing utilities on top of this.
   ===================================================================== */

/* ── Design tokens ─────────────────────────────────────────────────── */
:root {
  --brand-50:  #eef6ff;
  --brand-100: #d9eaff;
  --brand-200: #bcdaff;
  --brand-500: #2f7dff;
  --brand-600: #155ef0;
  --brand-700: #1149c4;
  --brand-900: #15387a;
  --accent-500:#ff7a18;
  --accent-600:#f25f00;
  --ink-300:   #aab1c5;
  --ink-400:   #6b7390;
  --ink-500:   #475068;
  --ink-700:   #1b2541;
  --ink-800:   #111a2e;
  --ink-900:   #0b1220;
  --font-sans:    'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-display: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --radius-card:  1rem;
  --shadow-card:  0 12px 30px -12px rgba(13,38,102,.12);
}

/* ── Reset / base ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-sans); color: var(--ink-900); background: #fff; margin: 0; }
h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.01em; color: var(--ink-900); margin-top: 0; }
h1 { font-size: clamp(2rem, 4vw, 3.5rem);   line-height: 1.1; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.2; }
h3 { font-size: clamp(1.125rem, 2vw, 1.5rem); line-height: 1.3; }
p  { margin-top: 0; }
a  { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; }
::selection { background: var(--brand-500); color: #fff; }

/* ── Container ─────────────────────────────────────────────────────── */
.container-x {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1rem;
}
@media (min-width: 768px)  { .container-x { padding-inline: 1.5rem; } }
@media (min-width: 1280px) { .container-x { padding-inline: 2rem; } }

/* ── Skip link ─────────────────────────────────────────────────────── */
.skip-link { position: absolute; left: -9999px; top: .5rem; background: #fff; padding: .5rem 1rem; border-radius: .375rem; font-size: .875rem; font-weight: 600; z-index: 9999; }
.skip-link:focus { left: .5rem; }

/* ═══════════════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #eef0f8;
}
.hdr-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: .75rem;
  padding-bottom: .75rem;
}
.hdr-logo { display: flex; align-items: center; gap: .5rem; text-decoration: none; }
.hdr-logo-icon {
  display: grid; place-items: center;
  width: 2.25rem; height: 2.25rem;
  border-radius: .5rem;
  background: var(--brand-600); color: #fff;
  font-weight: 800; font-family: var(--font-display); font-size: 1rem;
}
.hdr-logo-name { font-family: var(--font-display); font-weight: 800; font-size: 1.125rem; letter-spacing: -.025em; color: var(--ink-900); }

/* Nav — hidden on mobile, flex on desktop */
.site-nav { display: none; align-items: center; gap: .25rem; }
.nav-link { display: inline-block; padding: .5rem .75rem; border-radius: .375rem; font-size: .875rem; font-weight: 500; color: var(--ink-700); text-decoration: none; transition: color .15s, background .15s; }
.nav-link:hover, .nav-link.active { color: var(--brand-700); background: var(--brand-50); }

/* CTA row — hidden on mobile, flex on tablet+ */
.site-cta { display: none; align-items: center; gap: .75rem; }
.hdr-phone { font-size: .875rem; font-weight: 600; color: var(--ink-800); text-decoration: none; white-space: nowrap; }
.hdr-phone:hover { color: var(--brand-700); }

/* Hamburger — visible on mobile */
.menu-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem;
  border-radius: .375rem; border: 1px solid #e2e8f0;
  background: transparent; cursor: pointer; color: var(--ink-700);
}

/* Mobile dropdown */
.mobile-menu { display: none; border-top: 1px solid #f1f3fa; background: #fff; }
.mobile-menu.open { display: block; }
.mobile-nav { display: flex; flex-direction: column; gap: .25rem; padding-top: .75rem; padding-bottom: .75rem; }
.mobile-nav-link { display: block; padding: .625rem .75rem; border-radius: .375rem; font-weight: 500; color: var(--ink-800); text-decoration: none; }
.mobile-nav-link:hover { background: var(--brand-50); color: var(--brand-700); }
.mobile-nav-cta { display: flex; gap: .5rem; padding-top: .5rem; }

@media (min-width: 768px) {
  .site-cta { display: flex; }
}
@media (min-width: 1024px) {
  .site-nav { display: flex; }
  .menu-btn { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.4rem;
  border-radius: .65rem;
  font-weight: 600; font-size: .95rem;
  line-height: 1; text-decoration: none;
  cursor: pointer; border: none;
  transition: all .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--brand-600); color: #fff; box-shadow: 0 6px 18px -6px rgba(21,94,240,.55); }
.btn-primary:hover { background: var(--brand-700); transform: translateY(-1px); color: #fff; }
.btn-accent  { background: var(--accent-500); color: #fff; box-shadow: 0 6px 18px -6px rgba(255,122,24,.55); }
.btn-accent:hover  { background: var(--accent-600); transform: translateY(-1px); color: #fff; }
.btn-ghost   { background: #fff; color: var(--ink-900); border: 1px solid #e5e7ef; }
.btn-ghost:hover   { border-color: var(--brand-500); color: var(--brand-700); }
.btn-ghost-dark    { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.2); }
.btn-ghost-dark:hover { background: rgba(255,255,255,.2); color: #fff; }

/* ═══════════════════════════════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════════════════════════════ */
.card {
  background: #fff; border: 1px solid #eef0f6;
  border-radius: var(--radius-card); padding: 1.5rem;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.card:hover { border-color: var(--brand-200); box-shadow: var(--shadow-card); transform: translateY(-2px); }
.card-city  { padding: 1rem; text-align: center; }
.card-city:hover { background: var(--brand-50); border-color: var(--brand-200); }

/* ═══════════════════════════════════════════════════════════════════
   EYEBROW / BADGE
   ═══════════════════════════════════════════════════════════════════ */
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .12em;
  font-size: .75rem; font-weight: 700;
  color: var(--brand-700); background: var(--brand-50);
  padding: .4rem .7rem; border-radius: 999px;
}
.cat-badge {
  display: inline-block; padding: .25rem .7rem; border-radius: 999px;
  font-size: .75rem; font-weight: 600;
  background: var(--brand-50); color: var(--brand-700); text-decoration: none;
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE GRID HELPERS
   ═══════════════════════════════════════════════════════════════════ */
.grid-2, .grid-3, .grid-4, .grid-5 { display: grid; }

.grid-2 { gap: 1.25rem; }
.grid-3 { gap: 1.25rem; }
.grid-4 { gap: 1rem; }
.grid-5 { gap: .75rem; }

/* 2-col: sm+ */
@media (min-width: 640px)  {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
}
/* 3-col: md+ */
@media (min-width: 768px)  {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
/* Full: lg+ */
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-5 { grid-template-columns: repeat(5, 1fr); }
}

/* ═══════════════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════════════ */
.gradient-bg {
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(47,125,255,.18), transparent 60%),
    radial-gradient(800px 400px at 100% 0%,   rgba(255,122,24,.12),  transparent 60%),
    linear-gradient(180deg, #fbfdff 0%, #ffffff 100%);
}
/* Hero inner grid: single col mobile → 2 col desktop */
.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding-top: 4rem;
  padding-bottom: 4rem;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 7fr 5fr; }
}
.hero-stars { display: flex; align-items: center; gap: .25rem; }

/* ═══════════════════════════════════════════════════════════════════
   TRUST BAR
   ═══════════════════════════════════════════════════════════════════ */
.trust-bar { border-top: 1px solid #e8eaf2; border-bottom: 1px solid #e8eaf2; background: #fff; }
.trust-bar-inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
}
@media (min-width: 768px) {
  .trust-bar-inner { grid-template-columns: repeat(4, 1fr); }
}

/* ═══════════════════════════════════════════════════════════════════
   TWO-COLUMN SECTION LAYOUTS
   ═══════════════════════════════════════════════════════════════════ */
/* Generic 2-col with equal halves */
.section-cols {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}
/* 5fr / 7fr split (text left, content right) */
.section-cols-57 { display: grid; gap: 2.5rem; align-items: start; }
/* 7fr / 5fr split (content left, sidebar right) */
.section-cols-75 { display: grid; gap: 2.5rem; align-items: start; }

@media (min-width: 1024px) {
  .section-cols    { grid-template-columns: 1fr 1fr; }
  .section-cols-57 { grid-template-columns: 5fr 7fr; }
  .section-cols-75 { grid-template-columns: 7fr 5fr; }
}

/* ── Lead magnet 50/50 ── */
.lead-magnet-grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 1024px) { .lead-magnet-grid { grid-template-columns: 1fr 1fr; } }

/* ── City page layout with sticky sidebar ── */
.city-layout { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 1024px) {
  .city-layout { grid-template-columns: 7fr 5fr; }
  .city-sidebar .card { position: sticky; top: 6rem; }
}

/* ── FAQ layout ── */
.faq-layout { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .faq-layout { grid-template-columns: 4fr 8fr; } }

/* ── CTA banner inner ── */
.cta-inner { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 768px) {
  .cta-inner { grid-template-columns: 8fr 4fr; }
  .cta-btns  { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: flex-end; }
}

/* ── Contact page layout ── */
.contact-layout { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 1024px) { .contact-layout { grid-template-columns: 5fr 7fr; } }

/* ── Blog single layout ── */
.post-layout { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 1024px) { .post-layout { grid-template-columns: 8fr 4fr; } }

/* ── Case study layout ── */
.case-layout { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 1024px) { .case-layout { grid-template-columns: 7fr 5fr; } }

/* ── About page stats/story ── */
.about-story { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .about-story { grid-template-columns: 1fr 1fr; } }

/* ═══════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════ */
.site-footer { background: var(--ink-900); color: #94a3b8; margin-top: 4rem; }
.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}
@media (min-width: 768px)  { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 4fr 2fr 3fr 3fr; } }

.footer-link { color: #94a3b8; text-decoration: none; font-size: .875rem; }
.footer-link:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 1.25rem; padding-bottom: 1.25rem;
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between;
  gap: .75rem; font-size: .75rem; color: #475569;
}
.footer-social-link {
  display: grid; place-items: center;
  width: 2.25rem; height: 2.25rem;
  border-radius: .375rem; background: rgba(255,255,255,.06);
  color: #94a3b8; font-size: .8rem; font-weight: 700; text-decoration: none;
}
.footer-social-link:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ═══════════════════════════════════════════════════════════════════
   COMPONENT STYLES
   ═══════════════════════════════════════════════════════════════════ */

/* ── Breadcrumb ── */
.breadcrumb-nav { padding: .75rem 0; }
.breadcrumb-list { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .5rem; list-style: none; padding: 0; margin: 0; font-size: .8125rem; color: var(--ink-400); }
.breadcrumb-list a { color: var(--ink-500); text-decoration: none; }
.breadcrumb-list a:hover { color: var(--brand-700); }
.breadcrumb-sep { color: var(--ink-300); }

/* ── FAQ accordion ── */
details.faq-item { border: 1px solid #eef0f6; border-radius: var(--radius-card); overflow: hidden; }
details.faq-item + details.faq-item { margin-top: .75rem; }
details.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem; cursor: pointer; list-style: none;
  font-weight: 600; color: var(--ink-900);
}
details.faq-item summary:hover { background: #f8fafc; }
details.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { transition: transform .25s ease; flex-shrink: 0; display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--brand-50); color: var(--brand-700); }
details.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-body { padding: 0 1.25rem 1.25rem; color: var(--ink-700); line-height: 1.7; }

/* ── Process steps ── */
.process-step { display: flex; gap: 1rem; align-items: flex-start; }
.process-step + .process-step { margin-top: 1.5rem; }
.process-step-num {
  display: grid; place-items: center;
  width: 2.5rem; height: 2.5rem; flex-shrink: 0;
  border-radius: 50%; background: var(--brand-600); color: #fff;
  font-weight: 700; font-size: .9rem;
}

/* ── Results row ── */
.results-row {
  background: linear-gradient(135deg, var(--brand-700), var(--brand-900));
  border-radius: 1.25rem; padding: 2.5rem; color: #fff;
}
.results-metrics { display: grid; gap: 1.5rem; text-align: center; margin-top: 2rem; }
@media (min-width: 768px) { .results-metrics { grid-template-columns: repeat(3, 1fr); } }
.result-metric { font-family: var(--font-display); font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; color: #fff; }
.result-label  { font-size: .9375rem; color: rgba(255,255,255,.75); margin-top: .375rem; }

/* ── Testimonials ── */
.testimonial-figure { display: flex; flex-direction: column; margin: 0; }
.testimonial-quote  { color: var(--ink-800); line-height: 1.7; flex: 1; font-style: normal; }
.testimonial-footer { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #f1f5f9; }

/* ── CTA banner ── */
.cta-banner-wrap { border-radius: 1.25rem; padding: 2rem 2.5rem; }
.cta-blue { background: linear-gradient(135deg, var(--brand-700), var(--brand-900)); color: #fff; }
.cta-dark  { background: var(--ink-900); color: #fff; }
.cta-light { background: var(--brand-50); color: var(--ink-900); }

/* ── Problem / Solution ── */
.prob-sol-grid { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .prob-sol-grid { grid-template-columns: 1fr 1fr; } }

/* ── Feature grid ── */
.feature-icon { width: 2.5rem; height: 2.5rem; border-radius: .5rem; background: var(--brand-600); display: grid; place-items: center; margin-bottom: 1rem; color: #fff; }

/* ── Form inputs ── */
.field-input {
  display: block; width: 100%;
  border: 1px solid #d1d5e0; border-radius: .5rem;
  padding: .625rem .75rem; font-size: .875rem;
  outline: none; background: #fff; font-family: var(--font-sans);
  transition: border-color .15s, box-shadow .15s;
}
.field-input:focus { border-color: var(--brand-500); box-shadow: 0 0 0 3px var(--brand-100); }

/* ── Prose (blog content) ── */
.prose-seo { font-size: 1rem; line-height: 1.75; color: var(--ink-700); }
.prose-seo p  { margin-bottom: 1rem; }
.prose-seo h2 { margin-top: 2rem;   margin-bottom: .75rem; }
.prose-seo h3 { margin-top: 1.5rem; margin-bottom: .5rem; }
.prose-seo ul { list-style: disc;    padding-left: 1.5rem; margin-bottom: 1rem; }
.prose-seo ol { list-style: decimal; padding-left: 1.5rem; margin-bottom: 1rem; }
.prose-seo a  { color: var(--brand-700); text-decoration: underline; }
.prose-seo strong { font-weight: 700; }
.entry-content { max-width: 72ch; }

/* ═══════════════════════════════════════════════════════════════════
   FIXED WIDGETS
   ═══════════════════════════════════════════════════════════════════ */
.sticky-mobile-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  background: #fff; border-top: 1px solid #eef0f6;
  padding: .75rem 1rem; display: flex; gap: .5rem;
}
@media (min-width: 768px) { .sticky-mobile-cta { display: none; } }

.whatsapp-btn {
  position: fixed; bottom: 5rem; right: 1.25rem; z-index: 50;
  width: 3.25rem; height: 3.25rem; border-radius: 50%;
  background: #25d366; display: grid; place-items: center;
  box-shadow: 0 4px 14px -2px rgba(37,211,102,.5);
  transition: transform .2s ease;
}
.whatsapp-btn:hover { transform: scale(1.08); }
@media (min-width: 768px) { .whatsapp-btn { bottom: 1.5rem; } }

/* ── Hub Country Tabs ──────────────────────────────────────────────────────── */
.hub-tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  border-bottom: 2px solid var(--ink-100);
  padding-bottom: .75rem;
  margin-bottom: 0;
}
.hub-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1rem;
  border: 1px solid var(--ink-200);
  border-radius: 6px;
  background: #fff;
  font-size: .875rem;
  font-weight: 600;
  color: var(--ink-600);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  white-space: nowrap;
}
.hub-tab-btn:hover {
  background: var(--brand-50);
  border-color: var(--brand-300);
  color: var(--brand-700);
}
.hub-tab-btn.is-active {
  background: var(--brand-600);
  border-color: var(--brand-600);
  color: #fff;
}
.hub-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.375rem;
  height: 1.375rem;
  padding: 0 .35rem;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 700;
  background: rgba(255,255,255,.25);
  color: inherit;
}
.hub-tab-btn:not(.is-active) .hub-tab-count {
  background: var(--ink-100);
  color: var(--ink-500);
}
/* All panels visible without JS (crawlable); JS hides inactive ones */
.hub-tab-panel { display: block; }
/* JS-controlled: only active panel shown when JS runs */
.hub-tabs-js .hub-tab-panel:not(.is-active) { display: none; }
.hub-city-card { transition: box-shadow .15s, transform .15s; }
.hub-city-card:hover { transform: translateY(-2px); }
