/* ============================================================
   SquareOps — LOCAL PAGE modules (lp-)
   Fresh, local-SEO-specific UI layered on top of the shared
   design system (colors_and_type.css + site.css + service-page.css).
   Reuses .ac-* sections; adds NEW local modules only.
   ============================================================ */

/* ---- Local breadcrumb (sits under header) ---- */
.lp-crumb { background: var(--so-bg-soft); border-bottom: 1px solid var(--so-divider); }
.lp-crumb .so-container { display: flex; align-items: center; gap: 9px; padding-top: 13px; padding-bottom: 13px; font: 500 13px/1 var(--so-font-sans); color: var(--so-fg-2); flex-wrap: wrap; }
.lp-crumb a { color: var(--so-fg-2); transition: color var(--so-dur-fast) var(--so-ease-out); }
.lp-crumb a:hover { color: var(--so-teal-alt); }
.lp-crumb i { font-size: 8px; opacity: 0.5; }
.lp-crumb .here { color: var(--so-navy); font-weight: 600; }

/* ============================================================
   LOCAL HERO — split gradient banner + live local-context panel
   ============================================================ */
.lp-hero { position: relative; overflow: hidden; background: var(--so-gradient-brand); padding: 60px 0 70px; }
.lp-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.lp-hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px); background-size: 48px 48px; }
.lp-hero-glow { position: absolute; width: 460px; height: 460px; border-radius: 50%; filter: blur(95px); opacity: 0.5; }
.lp-hero-glow.g1 { background: rgba(108,221,190,0.55); top: -220px; right: -120px; }
.lp-hero-glow.g2 { background: rgba(5,51,75,0.6); bottom: -260px; left: -160px; }
.lp-hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 54px; align-items: center; }

.lp-hero-eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.22); background: rgba(255,255,255,0.10); color: #fff; font: 600 12.5px/1 var(--so-font-sans); margin-bottom: 20px; }
.lp-hero-eyebrow .pin { color: var(--so-teal-light); font-size: 12px; }
.lp-hero h1 { font-family: var(--so-font-display); font-size: clamp(32px, 3.9vw, 46px); line-height: 1.14; font-weight: 700; letter-spacing: -0.02em; color: #fff; margin: 0 0 16px; }
.lp-hero h1 .hl { color: var(--so-teal-light); }
.lp-hero-sub { font-size: 17.5px; line-height: 1.65; color: rgba(255,255,255,0.86); max-width: 560px; margin: 0 0 24px; }
.lp-hero-cta { display: flex; flex-wrap: wrap; gap: 13px; margin-bottom: 24px; }
.lp-btn-ghost { display: inline-flex; align-items: center; gap: 9px; padding: 14px 24px; border-radius: 8px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.28); color: #fff; font: 700 14.5px/1 var(--so-font-sans); transition: all var(--so-dur-base) var(--so-ease-out); }
.lp-btn-ghost:hover { background: rgba(255,255,255,0.16); transform: translateY(-2px); }

/* sector chips */
.lp-hero-sectors { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.lp-hero-sectors .lbl { font: 600 11.5px/1 var(--so-font-mono); color: rgba(255,255,255,0.6); letter-spacing: 0.04em; text-transform: uppercase; margin-right: 2px; }
.lp-sector-chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 999px; background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.16); color: #fff; font: 600 12px/1 var(--so-font-sans); }
.lp-sector-chip i { color: var(--so-teal-light); font-size: 11px; }

/* ---- Live local-context panel (the fresh local hero module) ---- */
.lp-context { background: rgba(255,255,255,0.95); border: 1px solid rgba(255,255,255,0.5); border-radius: 18px; overflow: hidden; box-shadow: var(--so-shadow-2xl); backdrop-filter: blur(10px); }
.lp-context-head { display: flex; align-items: center; gap: 11px; padding: 15px 18px; border-bottom: 1px solid var(--so-divider); background: rgba(255,255,255,0.7); }
.lp-context-flag { width: 34px; height: 34px; border-radius: 9px; background: var(--so-gradient-accent); color: #fff; display: grid; place-items: center; font-size: 14px; flex-shrink: 0; }
.lp-context-title { font: 700 13.5px/1.2 var(--so-font-display); color: var(--so-navy); }
.lp-context-sub { font: 500 11px/1.2 var(--so-font-mono); color: var(--so-fg-2); margin-top: 3px; }
.lp-context-pill { margin-left: auto; font: 700 10.5px/1 var(--so-font-sans); color: #036c44; background: rgba(0,208,132,0.12); border: 1px solid rgba(0,208,132,0.22); padding: 6px 10px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.lp-context-pill .blip { width: 7px; height: 7px; border-radius: 50%; background: #00d084; box-shadow: 0 0 0 4px rgba(0,208,132,0.18); }
.lp-context-body { padding: 8px 18px 6px; }
.lp-ctx-row { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px dashed var(--so-divider); }
.lp-ctx-row:last-child { border-bottom: 0; }
.lp-ctx-ico { width: 30px; height: 30px; border-radius: 8px; background: var(--so-bg-muted); color: var(--so-navy); display: grid; place-items: center; font-size: 13px; }
.lp-ctx-k { font: 700 13px/1.25 var(--so-font-sans); color: var(--so-navy); }
.lp-ctx-v { font: 500 11.5px/1.3 var(--so-font-mono); color: var(--so-fg-2); margin-top: 3px; }
.lp-ctx-badge { font: 700 10px/1 var(--so-font-sans); padding: 6px 9px; border-radius: 999px; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.lp-ctx-badge.ok { background: rgba(0,208,132,0.12); color: #036c44; }
.lp-ctx-badge.info { background: rgba(59,130,246,0.12); color: #1d4ed8; }
.lp-ctx-badge.warn { background: rgba(245,158,11,0.14); color: #9a6207; }
.lp-ctx-badge i { font-size: 9px; }
.lp-context-foot { display: flex; align-items: center; gap: 9px; padding: 13px 18px; border-top: 1px solid var(--so-divider); background: rgba(255,255,255,0.7); font: 500 11.5px/1.4 var(--so-font-mono); color: var(--so-fg-2); }
.lp-context-foot i { color: var(--so-teal-alt); }

/* ============================================================
   LOCAL STAT STRIP (replaces generic navy band, region-specific)
   ============================================================ */
.lp-strip { background: var(--so-navy); color: #fff; }
.lp-strip .so-container { display: grid; grid-template-columns: repeat(4, 1fr); }
.lp-strip-item { padding: 30px 26px; border-left: 1px solid rgba(255,255,255,0.10); }
.lp-strip-item:first-child { border-left: 0; }
.lp-strip-v { font-family: var(--so-font-display); font-weight: 700; font-size: 30px; line-height: 1; color: var(--so-teal-light); display: flex; align-items: baseline; gap: 6px; }
.lp-strip-v .u { font-size: 14px; color: rgba(255,255,255,0.7); font-weight: 600; }
.lp-strip-l { font: 600 13.5px/1.3 var(--so-font-sans); color: #fff; margin-top: 9px; }
.lp-strip-s { font-size: 11.5px; color: rgba(255,255,255,0.55); margin-top: 4px; line-height: 1.4; }

/* ============================================================
   RESIDENCY GUARDRAILS (compliance-forward explainer)
   ============================================================ */
.lp-residency { display: grid; grid-template-columns: 1fr 0.9fr; gap: 52px; align-items: center; }
.lp-guard { background: var(--so-navy); border-radius: 18px; padding: 28px; box-shadow: var(--so-shadow-xl); position: relative; overflow: hidden; }
.lp-guard::before { content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%; background: rgba(56,181,151,0.16); filter: blur(80px); top: -160px; right: -120px; }
.lp-guard-head { position: relative; display: flex; align-items: center; gap: 11px; padding-bottom: 18px; margin-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,0.10); }
.lp-guard-head .ico { width: 38px; height: 38px; border-radius: 10px; background: rgba(56,181,151,0.16); border: 1px solid rgba(56,181,151,0.3); color: var(--so-teal-light); display: grid; place-items: center; font-size: 16px; }
.lp-guard-head h4 { font-family: var(--so-font-display); font-size: 16px; font-weight: 600; color: #fff; margin: 0; }
.lp-guard-head .s { font: 500 11.5px/1.2 var(--so-font-mono); color: rgba(255,255,255,0.55); margin-top: 3px; }
.lp-guard-list { position: relative; list-style: none; padding: 0; margin: 0; }
.lp-guard-list li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px dashed rgba(255,255,255,0.10); }
.lp-guard-list li:last-child { border-bottom: 0; }
.lp-guard-list .chk { width: 22px; height: 22px; border-radius: 50%; background: rgba(0,208,132,0.16); color: var(--so-teal-light); display: grid; place-items: center; font-size: 10px; margin-top: 1px; }
.lp-guard-list .gk { font: 700 13.5px/1.3 var(--so-font-sans); color: #fff; }
.lp-guard-list .gv { font-size: 12.5px; line-height: 1.5; color: rgba(255,255,255,0.7); margin-top: 3px; }

/* ============================================================
   WASTE TEARDOWN — idle resource reclaim rows
   ============================================================ */
.lp-waste { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--so-border); border-radius: 18px; overflow: hidden; background: #fff; box-shadow: var(--so-shadow-md); }
.lp-waste-head { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 16px; padding: 14px 24px; background: var(--so-bg-soft); border-bottom: 1px solid var(--so-border); font: 700 11px/1 var(--so-font-sans); letter-spacing: 0.05em; text-transform: uppercase; color: var(--so-fg-3); }
.lp-waste-head .r { text-align: right; }
.lp-waste-row { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 16px; align-items: center; padding: 16px 24px; border-bottom: 1px solid var(--so-divider); transition: background var(--so-dur-fast) var(--so-ease-out); }
.lp-waste-row:last-child { border-bottom: 0; }
.lp-waste-row:hover { background: var(--so-bg-soft); }
.lp-waste-name { display: flex; align-items: center; gap: 12px; }
.lp-waste-name .wi { width: 36px; height: 36px; border-radius: 9px; background: rgba(245,158,11,0.12); color: #b45309; display: grid; place-items: center; font-size: 14px; flex-shrink: 0; }
.lp-waste-name .wt { font: 700 14px/1.25 var(--so-font-sans); color: var(--so-navy); }
.lp-waste-name .ws { font: 500 11.5px/1.3 var(--so-font-mono); color: var(--so-fg-2); margin-top: 3px; }
.lp-waste-bar { height: 8px; border-radius: 4px; background: var(--so-bg-muted); overflow: hidden; }
.lp-waste-bar span { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #17c799, #3aaa82); }
.lp-waste-save { text-align: right; }
.lp-waste-save .amt { font: 700 17px/1 var(--so-font-display); color: #036c44; }
.lp-waste-save .lbl { font: 500 11px/1.2 var(--so-font-mono); color: var(--so-fg-3); margin-top: 4px; }
.lp-waste-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 16px 24px; background: var(--so-navy); color: #fff; }
.lp-waste-foot .ft { font: 600 13px/1.4 var(--so-font-sans); display: flex; align-items: center; gap: 9px; }
.lp-waste-foot .ft i { color: var(--so-teal-light); }
.lp-waste-foot .total { font: 700 15px/1 var(--so-font-display); color: var(--so-teal-light); }
.lp-waste-note { font: 500 12px/1.5 var(--so-font-mono); color: var(--so-fg-3); margin-top: 14px; text-align: center; }

/* ============================================================
   REGION LOCATOR — stylized UAE/region panel with city pins
   ============================================================ */
.lp-locator { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 52px; align-items: center; }
.lp-map { position: relative; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; background: radial-gradient(120% 120% at 70% 20%, #0f4f3d 0%, #05334B 60%, #04283b 100%); border: 1px solid rgba(56,181,151,0.25); box-shadow: var(--so-shadow-2xl); }
.lp-map-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(108,221,190,0.10) 1px, transparent 1px), linear-gradient(90deg, rgba(108,221,190,0.10) 1px, transparent 1px); background-size: 40px 40px; mask-image: radial-gradient(120% 100% at 60% 40%, #000 30%, transparent 80%); }
.lp-map-coast { position: absolute; inset: 0; }
.lp-map-coast .blob { position: absolute; border-radius: 46% 54% 60% 40% / 50% 42% 58% 50%; background: rgba(56,181,151,0.14); border: 1px solid rgba(108,221,190,0.22); }
.lp-map-coast .b1 { width: 58%; height: 52%; top: 26%; left: 22%; }
.lp-map-coast .b2 { width: 30%; height: 30%; top: 14%; left: 54%; border-radius: 56% 44% 40% 60% / 48% 56% 44% 52%; background: rgba(56,181,151,0.10); }
.lp-pin { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.lp-pin .dot { width: 13px; height: 13px; border-radius: 50%; background: var(--so-teal-light); box-shadow: 0 0 0 5px rgba(108,221,190,0.22); position: relative; }
.lp-pin.primary .dot { width: 16px; height: 16px; background: #00d084; box-shadow: 0 0 0 6px rgba(0,208,132,0.28); }
.lp-pin .dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid rgba(108,221,190,0.5); animation: lp-ping 2.6s var(--so-ease-out) infinite; }
.lp-pin.primary .dot::after { animation-delay: 0s; }
@keyframes lp-ping { 0% { transform: scale(0.6); opacity: 0.9; } 80%, 100% { transform: scale(2.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .lp-pin .dot::after { animation: none; } }
.lp-pin .lbl { font: 700 11px/1 var(--so-font-sans); color: #fff; background: rgba(5,51,75,0.55); border: 1px solid rgba(255,255,255,0.14); padding: 5px 9px; border-radius: 999px; white-space: nowrap; backdrop-filter: blur(4px); }
.lp-pin.primary .lbl { background: rgba(0,208,132,0.2); border-color: rgba(0,208,132,0.4); }
.lp-map-tag { position: absolute; left: 16px; bottom: 16px; font: 600 11px/1.3 var(--so-font-mono); color: rgba(255,255,255,0.6); display: flex; align-items: center; gap: 7px; }
.lp-map-tag i { color: var(--so-teal-light); }
.lp-map-region { position: absolute; right: 16px; top: 16px; white-space: nowrap; font: 700 10.5px/1 var(--so-font-sans); letter-spacing: 0.05em; text-transform: uppercase; color: var(--so-teal-light); background: rgba(5,51,75,0.5); border: 1px solid rgba(108,221,190,0.25); padding: 7px 11px; border-radius: 999px; }
/* city list beside map */
.lp-cities { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lp-cities li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--so-border); border-radius: 12px; background: #fff; font: 600 13.5px/1.2 var(--so-font-sans); color: var(--so-navy); transition: all var(--so-dur-base) var(--so-ease-out); }
.lp-cities li:hover { border-color: var(--so-teal); box-shadow: var(--so-shadow-sm); }
.lp-cities li i { color: var(--so-teal-alt); font-size: 12px; }
.lp-cities li .meta { margin-left: auto; font: 500 11px/1 var(--so-font-mono); color: var(--so-fg-3); }

/* ============================================================
   SECTORS — vertical cards
   ============================================================ */
.lp-sectors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 8px; }
.lp-sector { background: #fff; border: 1.5px solid var(--so-border); border-radius: 16px; padding: 26px; transition: all var(--so-dur-base) var(--so-ease-out); }
.lp-sector:hover { transform: translateY(-4px); border-color: var(--so-teal); box-shadow: var(--so-shadow-lg); }
.lp-sector .si { width: 48px; height: 48px; border-radius: 12px; background: var(--so-gradient-accent); color: #fff; display: grid; place-items: center; font-size: 19px; margin-bottom: 16px; }
.lp-sector h3 { font-family: var(--so-font-display); font-size: 18px; font-weight: 600; color: var(--so-fg); margin: 0 0 9px; }
.lp-sector p { font-size: 13.5px; line-height: 1.6; color: var(--so-fg-2); margin: 0 0 14px; }
.lp-sector .tags { display: flex; flex-wrap: wrap; gap: 7px; }
.lp-sector .tag { font: 600 11px/1 var(--so-font-sans); padding: 6px 10px; border-radius: 999px; background: var(--so-bg-muted); color: var(--so-navy); }

/* ============================================================
   AUDIT LEAD MAGNET — 37-check free Cloud Cost Audit
   ============================================================ */
.lp-audit { background: #fff; border: 1px solid var(--so-border); border-radius: 22px; overflow: hidden; box-shadow: var(--so-shadow-xl); display: grid; grid-template-columns: 1.15fr 0.85fr; }
.lp-audit-main { padding: 44px 44px 40px; }
.lp-audit-badge { display: inline-flex; align-items: center; gap: 8px; font: 700 11px/1 var(--so-font-sans); letter-spacing: 0.06em; text-transform: uppercase; color: #036c44; background: rgba(0,208,132,0.12); border: 1px solid rgba(0,208,132,0.2); padding: 7px 13px; border-radius: 999px; margin-bottom: 18px; }
.lp-audit h3 { font-family: var(--so-font-display); font-size: 28px; font-weight: 700; color: var(--so-fg); margin: 0 0 12px; letter-spacing: -0.01em; }
.lp-audit p { font-size: 15px; line-height: 1.65; color: var(--so-fg-2); margin: 0 0 22px; max-width: 460px; }
.lp-audit-cta { display: flex; flex-wrap: wrap; gap: 13px; align-items: center; }
.lp-audit .meta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--so-divider); }
.lp-audit .meta span { display: inline-flex; align-items: center; gap: 8px; font: 600 12.5px/1 var(--so-font-sans); color: var(--so-fg-2); }
.lp-audit .meta i { color: var(--so-teal); }
.lp-audit-side { background: var(--so-gradient-brand); padding: 38px 34px; color: #fff; position: relative; overflow: hidden; }
.lp-audit-side::before { content: ""; position: absolute; width: 280px; height: 280px; border-radius: 50%; background: rgba(255,255,255,0.12); filter: blur(80px); top: -120px; right: -80px; }
.lp-audit-side h4 { position: relative; font-family: var(--so-font-display); font-size: 15px; font-weight: 600; margin: 0 0 18px; color: #fff; display: flex; align-items: center; gap: 9px; }
.lp-audit-checks { position: relative; list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.lp-audit-checks li { display: flex; align-items: flex-start; gap: 11px; font: 500 13px/1.45 var(--so-font-sans); color: rgba(255,255,255,0.9); }
.lp-audit-checks li i { color: var(--so-teal-light); font-size: 12px; margin-top: 3px; }
.lp-audit-count { position: relative; margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.16); font: 600 12.5px/1.4 var(--so-font-mono); color: rgba(255,255,255,0.7); }
.lp-audit-count b { color: var(--so-teal-light); font-weight: 700; }

/* ============================================================
   RELATED LOCAL PAGES — other cities
   ============================================================ */
.lp-related { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 8px; }
.lp-rel-city { display: flex; align-items: center; gap: 13px; padding: 18px 20px; border: 1px solid var(--so-border); border-radius: 14px; background: #fff; transition: all var(--so-dur-base) var(--so-ease-out); }
.lp-rel-city:hover { transform: translateY(-3px); border-color: var(--so-teal); box-shadow: var(--so-shadow-md); }
.lp-rel-city .ci { width: 40px; height: 40px; border-radius: 10px; background: var(--so-bg-muted); color: var(--so-navy); display: grid; place-items: center; font-size: 15px; flex-shrink: 0; }
.lp-rel-city .cn { font: 700 14.5px/1.2 var(--so-font-display); color: var(--so-navy); }
.lp-rel-city .cs { font: 500 11.5px/1.2 var(--so-font-mono); color: var(--so-fg-2); margin-top: 3px; }
.lp-rel-city .go { margin-left: auto; color: var(--so-fg-3); font-size: 12px; transition: all var(--so-dur-base) var(--so-ease-out); }
.lp-rel-city:hover .go { color: var(--so-teal); transform: translateX(2px); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .lp-hero-inner, .lp-residency, .lp-locator, .lp-audit { grid-template-columns: 1fr; gap: 38px; }
  .lp-audit-side { order: -1; }
  .lp-sectors, .lp-related { grid-template-columns: repeat(2, 1fr); }
  .lp-strip .so-container { grid-template-columns: repeat(2, 1fr); }
  .lp-strip-item:nth-child(3) { border-left: 0; }
}
@media (max-width: 620px) {
  .lp-hero { padding: 44px 0 50px; }
  .lp-sectors, .lp-related, .lp-cities { grid-template-columns: 1fr; }
  .lp-strip .so-container { grid-template-columns: 1fr; }
  .lp-strip-item { border-left: 0; border-top: 1px solid rgba(255,255,255,0.10); }
  .lp-strip-item:first-child { border-top: 0; }
  .lp-waste-head { display: none; }
  .lp-waste-row { grid-template-columns: 1fr auto; gap: 12px; }
  .lp-waste-bar { display: none; }
  .lp-audit-main { padding: 30px 24px; }
  .lp-audit h3 { font-size: 23px; }
}
