/*
Theme Name: EmergeLocal USA
Theme URI: https://www.emergelocal.com
Author: EmergeLocal USA, LLC
Description: Custom theme for EmergeLocal USA, LLC. One brand, two markets.
Version: 1.5.0
Requires PHP: 7.4
License: Proprietary
Text Domain: elusa
*/

:root {
  --blue: #1a00ff;
  --blue-deep: #1400c4;
  --green: #4CD600;
  --ink: #101223;
  --ink-soft: #4e5368;
  --ink-faint: #8a8fa3;
  --paper: #ffffff;
  --paper-tint: #E8F3FF;
  --line: #e2e6ef;
  --line-strong: #101223;
  --link: #1a00ff;
  --maxw: 1140px;
  --measure: 62ch;
  --fs-0: 1rem;
  --fs-1: 1.0625rem;
  --fs-2: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --fs-3: clamp(1.5rem, 1.25rem + 1.3vw, 2.25rem);
  --fs-4: clamp(2rem, 1.3rem + 2.6vw, 3.25rem);
  --space: clamp(56px, 9vw, 128px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: var(--fs-1);
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: 'liga' 1, 'kern' 1;
}
::selection { background: var(--blue); color: #fff; }

h1, h2, h3, h4 {
  font-family: 'League Spartan', 'Roboto', sans-serif;
  color: var(--ink);
  margin: 0 0 0.45em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-4); font-weight: 700; line-height: 1.02; letter-spacing: -0.025em; }
h2 { font-size: var(--fs-3); font-weight: 700; line-height: 1.08; letter-spacing: -0.015em; }
h3 { font-size: var(--fs-2); font-weight: 600; line-height: 1.15; }
h4 { font-size: var(--fs-1); font-weight: 700; }
p, ul, ol { max-width: var(--measure); margin-top: 0; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
img { max-width: 100%; height: auto; }
strong { font-weight: 600; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--blue); color: #fff; padding: 10px 16px; z-index: 99; }
.skip-link:focus { left: 10px; top: 10px; }

.kicker {
  font-family: 'League Spartan', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.kicker::before { content: ''; width: 22px; height: 2px; background: var(--green); flex: none; }

/* ---------- Header ---------- */
.site-head { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 72px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px;
}
.brand { display: flex; align-items: baseline; gap: 12px; text-decoration: none; }
.brand img { height: 38px; width: auto; display: block; align-self: center; }
.nav { display: flex; gap: clamp(18px, 3vw, 34px); flex-wrap: wrap; align-items: center; }
.nav a {
  font-family: 'League Spartan', sans-serif; font-weight: 600; font-size: 1rem;
  text-decoration: none; color: var(--ink-soft); letter-spacing: 0.01em;
  padding: 4px 0; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--green); }
.nav .cta { color: var(--blue); }
.nav .cta:hover { color: var(--blue-deep); }

/* ---------- Hero ---------- */
.hero { padding: clamp(28px, 4vw, 48px) 0 clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--line); }
.hero h1 { margin: 0; max-width: 24ch; }
.hero .lede {
  font-family: 'League Spartan', sans-serif; font-weight: 400;
  font-size: var(--fs-2); line-height: 1.35; color: var(--ink-soft);
  max-width: 52ch; margin: 20px 0 0;
}
.hero .sub { color: var(--ink-soft); max-width: var(--measure); margin: 14px 0 0; }
.hero .btn-row { margin-top: 26px; }

/* ---------- Buttons ---------- */
.btn-row { display: flex; gap: 12px 22px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-block; font-family: 'League Spartan', sans-serif; font-weight: 600;
  font-size: 1rem; letter-spacing: 0.02em; text-decoration: none;
}
.btn-primary {
  background: var(--blue); color: #fff; padding: 15px 30px 13px; border-radius: 999px;
  transition: background 0.15s ease;
}
.btn-primary:hover { background: var(--blue-deep); color: #fff; }
.btn-ghost { color: var(--ink); border: 0; padding: 15px 4px 13px; border-bottom: 2px solid var(--line-strong); border-radius: 0; }
.btn-ghost::after { content: '\2192'; margin-left: 8px; }
.btn-ghost:hover { color: var(--blue); border-bottom-color: var(--blue); }

/* ---------- Sections ---------- */
.section { padding: var(--space) 0; }
.section.tint { background: var(--paper-tint); border-top: 1px solid #d5e5fa; border-bottom: 1px solid #d5e5fa; }
.section.tint + .section { border-top: 0; }
.section-intro { color: var(--ink-soft); margin-bottom: clamp(36px, 5vw, 64px); }

/* Service index: editorial list, not cards */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 0 clamp(28px, 4vw, 56px); border-top: 1px solid var(--line-strong); }
.card { background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 26px 0 28px; }
.card .tag {
  font-family: 'League Spartan', sans-serif; font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 10px;
}
.card h3 { margin: 0 0 8px; font-size: 1.25rem; }
.card p { font-size: var(--fs-0); color: var(--ink-soft); line-height: 1.65; margin: 0; }

/* ---------- Cycle ---------- */
.cycle { display: grid; gap: 0 clamp(20px, 3vw, 40px); grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); counter-reset: step; margin-top: clamp(32px, 5vw, 56px); border-top: 1px solid var(--line-strong); }
.cycle .step { padding: 18px 0 8px; border-bottom: 1px solid var(--line); }
.cycle .step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: 'League Spartan', sans-serif; color: var(--ink-faint);
  font-weight: 600; font-size: 0.875rem; letter-spacing: 0.08em; display: block; margin-bottom: 10px;
}
.cycle .step strong {
  font-family: 'League Spartan', sans-serif; font-weight: 700; letter-spacing: 0.06em;
  font-size: 1rem; display: block; margin-bottom: 6px;
}
.cycle .step span { font-size: 0.9375rem; color: var(--ink-soft); display: block; max-width: 24ch; line-height: 1.55; }

/* ---------- Proof ---------- */
.proof { display: grid; gap: 0 clamp(28px, 4vw, 56px); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: clamp(28px, 4vw, 48px) 0; border-top: 1px solid var(--line-strong); }
.proof .stat { border: 0; padding: 22px 0 26px; border-bottom: 1px solid var(--line); }
.proof .stat b {
  font-family: 'League Spartan', sans-serif; font-size: clamp(2.5rem, 2rem + 2.2vw, 3.75rem);
  font-weight: 700; display: block; line-height: 1; letter-spacing: -0.02em; margin-bottom: 10px;
}
.proof .stat span { font-size: 0.9375rem; color: var(--ink-soft); display: block; max-width: 30ch; line-height: 1.6; }
.attribution { font-size: 0.9375rem; color: var(--ink-soft); max-width: 68ch; padding: 0 0 0 18px; border-left: 2px solid var(--green); line-height: 1.7; }

/* ---------- Prose pages ---------- */
.prose { padding: calc(var(--space) * 0.75) 0 var(--space); }
.prose h1 { max-width: 20ch; }
.prose h2 { margin-top: 2.2em; padding-top: 0.9em; border-top: 1px solid var(--line); max-width: var(--measure); }
.prose .lede { font-size: var(--fs-2); font-family: 'League Spartan', sans-serif; font-weight: 400; color: var(--ink-soft); line-height: 1.4; max-width: 44ch; margin-bottom: 0.5em; }

/* ---------- Forms ---------- */
.form { max-width: 560px; display: grid; gap: 20px; margin: 34px 0 10px; }
.form label { font-family: 'League Spartan', sans-serif; font-weight: 600; font-size: 0.9375rem; letter-spacing: 0.04em; display: block; margin-bottom: 7px; }
.form input, .form textarea {
  width: 100%; padding: 13px 15px; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 6px;
}
.form input:hover, .form textarea:hover { border-color: var(--ink-faint); }
.form input:focus, .form textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.form button { cursor: pointer; border: 0; font: inherit; }
.notice { border-left: 2px solid var(--green); background: var(--paper-tint); padding: 16px 20px; max-width: 560px; font-size: var(--fs-0); }
.hp-field { position: absolute !important; left: -9999px !important; }

/* ---------- Footer ---------- */
.site-foot { border-top: 1px solid var(--line-strong); margin-top: var(--space); }
.site-foot .wrap { padding-top: clamp(40px, 6vw, 64px); padding-bottom: 40px; }
.foot-row { display: flex; justify-content: space-between; gap: 28px 48px; flex-wrap: wrap; margin-bottom: clamp(36px, 6vw, 60px); }
.foot-addr { font-style: normal; font-size: 1rem; color: var(--ink-soft); line-height: 1.8; }
.foot-addr b { font-family: 'League Spartan', sans-serif; font-weight: 700; color: var(--ink); display: block; margin-bottom: 6px; font-size: 1.0625rem; }
.foot-nav { display: flex; gap: 26px; flex-wrap: wrap; align-items: flex-start; padding-top: 6px; }
.foot-nav a { font-family: 'League Spartan', sans-serif; font-weight: 600; font-size: 1rem; color: var(--ink-soft); text-decoration: none; }
.foot-nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.legal { font-size: 0.875rem; color: var(--ink-faint); border-top: 1px solid var(--line); padding-top: 20px; max-width: none; margin: 0; line-height: 1.7; }

@media (max-width: 480px) {
  .site-head .wrap { justify-content: center; text-align: center; }
  .nav { justify-content: center; }
  .btn-row .btn { width: 100%; text-align: center; }
  .btn-ghost { width: auto; }
}
