/* ========================================
   LocalPresence — Custom Landing Page
   ======================================== */

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

:root {
  --bg: #f4f0e8;
  --bg-alt: #ece8df;
  --navy: #0f1b2d;
  --navy-mid: #1a2f47;
  --amber: #e8a838;
  --amber-dark: #c4891a;
  --amber-light: #f5c56a;
  --text: #1a1a2e;
  --text-mid: #3d3d5c;
  --text-dim: #6e6e8a;
  --white: #ffffff;
  --green: #2d9a4e;
  --green-bg: #e8f7ed;
  --border: #d4cfc6;
  --faded: #9a97ad;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Syne', system-ui, sans-serif;
  line-height: 1.15;
  font-weight: 800;
}

/* --- Navbar --- */
.navbar {
  background: var(--navy);
  padding: 0 48px;
  height: 60px;
  display: flex;
  align-items: center;
}
.navbar-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--white);
  letter-spacing: -0.02em;
}
.nav-tagline {
  color: var(--amber-light);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* --- Hero --- */
.hero {
  background: var(--navy);
  padding: 80px 48px 96px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(232,168,56,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: rgba(232,168,56,0.15);
  border: 1px solid rgba(232,168,56,0.4);
  color: var(--amber-light);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.hero-headline {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.hero-sub {
  font-size: 1.1rem;
  color: #a8b5cc;
  line-height: 1.65;
  max-width: 480px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stat {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--amber);
  min-width: 90px;
}

.stat-label {
  font-size: 0.85rem;
  color: #7a8fa8;
  line-height: 1.4;
}

/* --- Map Widget (Hero Visual) --- */
.hero-visual {
  display: flex;
  justify-content: center;
}

.map-widget {
  background: var(--bg);
  border-radius: 20px;
  width: 100%;
  max-width: 400px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.1);
}

.map-header {
  background: var(--navy-mid);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: #a8b5cc;
  font-weight: 500;
}

.map-pin {
  width: 16px; height: 16px;
  background: var(--amber);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(232,168,56,0.3);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(232,168,56,0.3); }
  50% { box-shadow: 0 0 0 8px rgba(232,168,56,0.1); }
}

.map-results {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.map-result {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.map-result.top-result {
  border-color: var(--amber);
  box-shadow: 0 4px 20px rgba(232,168,56,0.2);
}

.map-result.faded {
  opacity: 0.6;
}

.result-rank {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: var(--amber);
  min-width: 24px;
}

.result-info {
  flex: 1;
}

.result-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 3px;
}

.result-meta {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.result-stars {
  color: var(--amber);
  letter-spacing: -1px;
}

.result-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green);
  background: var(--green-bg);
  padding: 3px 8px;
  border-radius: 6px;
}

.map-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
}

.audit-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
}

.audit-dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
}

/* --- Proof Section --- */
.proof {
  background: var(--bg-alt);
  padding: 80px 48px;
  border-top: 1px solid var(--border);
}

.proof-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.proof-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 40px;
  text-align: center;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.proof-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
}

.proof-icon {
  width: 48px; height: 48px;
  background: var(--bg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  margin-bottom: 20px;
}

.proof-card h3 {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 10px;
}

.proof-card p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* --- Features --- */
.features {
  background: var(--bg);
  padding: 80px 48px;
}

.features-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--amber-dark);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}

.section-headline {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--text);
  margin-bottom: 56px;
  letter-spacing: -0.02em;
  max-width: 640px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  position: relative;
}

.feature-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.feature-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gbp-icon { background: rgba(232,168,56,0.15); color: var(--amber-dark); }
.web-icon { background: rgba(15,27,45,0.08); color: var(--navy); }
.outreach-icon { background: rgba(45,154,78,0.12); color: var(--green); }

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.feature-card > p {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.65;
  margin-bottom: 20px;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-list li {
  font-size: 0.82rem;
  color: var(--text-mid);
  padding-left: 18px;
  position: relative;
}

.feature-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--amber);
  font-weight: 700;
}

/* --- How It Works --- */
.howitworks {
  background: var(--navy);
  padding: 80px 48px;
}

.howitworks-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.howitworks .section-label { color: var(--amber-light); }
.howitworks .section-headline { color: var(--white); }

.steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 0;
  margin-top: 56px;
}

.step {
  padding: 32px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
}

.step-num {
  font-family: 'Syne', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--amber);
  margin-bottom: 16px;
  letter-spacing: -0.04em;
}

.step-body h3 {
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 10px;
}

.step-body p {
  font-size: 0.85rem;
  color: #7a8fa8;
  line-height: 1.6;
}

.step-connector {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, rgba(232,168,56,0.5), rgba(232,168,56,0.1));
  margin-top: 80px;
  flex-shrink: 0;
}

/* --- Outcomes --- */
.outcomes {
  background: var(--bg-alt);
  padding: 80px 48px;
  border-top: 1px solid var(--border);
}

.outcomes-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.outcomes-table {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
}

.outcome-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-bottom: 1px solid var(--border);
}

.outcome-row:last-child { border-bottom: none; }

.outcome-row.header-row {
  background: var(--navy);
}

.outcome-row.header-row .outcome-col {
  color: var(--white);
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
}

.outcome-row.header-row .outcome-col.featured {
  color: var(--amber);
}

.outcome-col {
  padding: 18px 24px;
  font-size: 0.85rem;
}

.outcome-row:not(.header-row) .outcome-col:not(:first-child) {
  font-weight: 500;
}

.outcome-col.label {
  font-weight: 600;
  color: var(--text);
}

.outcome-col.dim {
  color: var(--faded);
}

.outcome-col.green {
  color: var(--green);
  font-weight: 600;
}

.outcome-row:not(.header-row):nth-child(even) {
  background: var(--bg);
}

/* --- Closing --- */
.closing {
  background: var(--bg);
  padding: 96px 48px;
  text-align: center;
}

.closing-inner {
  max-width: 640px;
  margin: 0 auto;
}

.closing-headline {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text);
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.closing-body {
  font-size: 1.05rem;
  color: var(--text-dim);
  line-height: 1.7;
}

/* --- Footer --- */
.site-footer {
  background: var(--navy);
  padding: 64px 48px 32px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--white);
  display: block;
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 0.85rem;
  color: #5a7090;
  line-height: 1.6;
  max-width: 280px;
}

.footer-links {
  display: flex;
  gap: 48px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #5a7090;
  font-weight: 600;
  margin-bottom: 6px;
  font-family: 'DM Sans', sans-serif;
}

.footer-col a {
  font-size: 0.85rem;
  color: #8aa0b8;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--amber-light); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 32px;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: #3d5068;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .proof-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step-connector { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .outcomes-table { overflow-x: auto; }
}

@media (max-width: 600px) {
  .hero { padding: 48px 24px 64px; }
  .proof { padding: 48px 24px; }
  .features { padding: 48px 24px; }
  .howitworks { padding: 48px 24px; }
  .outcomes { padding: 48px 24px; }
  .closing { padding: 64px 24px; }
  .site-footer { padding: 48px 24px 24px; }
  .navbar { padding: 0 24px; }
}