/* ============================================================
   ProNear — Design tokens
   Navy #14284A / Signal Coral #FF5A36 / Verified Teal #0EA5A0
   Display: Space Grotesk · Body: Inter · Data: IBM Plex Mono
   ============================================================ */

:root{
  --navy: #14284A;
  --navy-deep: #0C1B33;
  --accent: #FF5A36;
  --verified: #0EA5A0;
  --gold: #E8B93F;
  --paper: #F7F8FA;
  --ink: #101828;
  --ink-soft: #475467;
  --line: #E4E7EC;
  --white: #FFFFFF;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow: 0 4px 24px rgba(16,24,40,.08);
  --shadow-lg: 0 12px 40px rgba(16,24,40,.14);
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  width: 100%;
}

img{ max-width: 100%; display: block; }

a{ color: inherit; text-decoration: none; }

.container{
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

h1, h2, h3{
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.15;
  margin: 0;
}

/* ============ Buttons ============ */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary{ background: var(--accent); color: #fff; }
.btn-primary:hover{ transform: translateY(-1px); box-shadow: 0 8px 20px rgba(255,90,54,.28); }
.btn-ghost{ background: transparent; color: var(--navy); border: 1.5px solid var(--line); }
.btn-ghost:hover{ border-color: var(--navy); }

/* ============ Header ============ */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}
.brand{ display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-logo{ height: 36px; width: auto; }
.brand-mark{
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--navy), var(--accent));
  flex-shrink: 0;
}
.brand-name{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span{
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--navy);
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity: 0; }
.nav-toggle.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

.primary-nav{
  display: flex;
  align-items: center;
  gap: 28px;
}
.primary-nav a:not(.btn){
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
}
.primary-nav a:not(.btn):hover{ color: var(--navy); }
.nav-actions{ display: flex; align-items: center; gap: 10px; margin-left: 6px; }
.nav-overlay{ display: none; }

@media (max-width: 900px){
  .nav-toggle{ display: flex; }

  .primary-nav{
    position: fixed;
    top: 72px;
    right: 0;
    height: calc(100vh - 72px);
    width: min(84vw, 320px);
    max-width: 100vw;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 22px;
    gap: 6px;
    box-shadow: -8px 0 30px rgba(16,24,40,.12);
    transform: translateX(100%);
    transition: transform .3s ease;
    overflow-y: auto;
    z-index: 101;
  }
  .primary-nav.open{ transform: translateX(0); }
  .primary-nav a:not(.btn){
    width: 100%;
    padding: 12px 4px;
    border-bottom: 1px solid var(--line);
  }
  .nav-actions{
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin: 16px 0 0;
  }
  .nav-actions .btn{ width: 100%; }

  .nav-overlay{
    display: block;
    position: fixed;
    inset: 72px 0 0 0;
    background: rgba(12,27,51,.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
    z-index: 99;
  }
  .nav-overlay.open{ opacity: 1; pointer-events: auto; }
}

/* ============ Hero ============ */
.hero{
  position: relative;
  background: radial-gradient(120% 140% at 15% 0%, #1c3866 0%, var(--navy) 45%, var(--navy-deep) 100%);
  color: #fff;
  padding: 76px 0 84px;
  overflow: hidden;
}
.hero-inner{ position: relative; z-index: 2; max-width: 720px; }
.eyebrow{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: #FFB199;
  margin: 0 0 14px;
  font-weight: 600;
}
.hero h1{
  color: #fff;
  font-size: clamp(30px, 5.4vw, 50px);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.hero-sub{
  color: #C9D3E4;
  font-size: 17px;
  margin: 16px 0 32px;
  max-width: 560px;
  line-height: 1.55;
}

/* Signature radar-ping element behind the search panel */
.hero-radar{
  position: absolute;
  top: -60px;
  right: -80px;
  width: 520px;
  height: 520px;
  pointer-events: none;
  z-index: 1;
}
.hero-radar .ring{
  position: absolute;
  inset: 0;
  margin: auto;
  border: 1.5px solid rgba(255,90,54,.35);
  border-radius: 50%;
  animation: radarPulse 3.6s ease-out infinite;
}
.hero-radar .r1{ width: 140px; height: 140px; animation-delay: 0s; }
.hero-radar .r2{ width: 140px; height: 140px; animation-delay: 1.2s; }
.hero-radar .r3{ width: 140px; height: 140px; animation-delay: 2.4s; }
.hero-radar .dot{
  position: absolute;
  top: 50%; left: 50%;
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 6px rgba(255,90,54,.18);
}
@keyframes radarPulse{
  0%   { width: 20px; height: 20px; opacity: .9; }
  100% { width: 480px; height: 480px; opacity: 0; }
}
@media (prefers-reduced-motion: reduce){
  .hero-radar .ring{ animation: none; opacity: .15; width: 300px; height: 300px; }
}
@media (max-width: 700px){
  .hero-radar{ width: 320px; height: 320px; top: -40px; right: -100px; }
}

/* Search panel */
.search-panel{
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 18px;
  display: grid;
  grid-template-columns: 1.1fr 1.1fr auto;
  gap: 12px;
  align-items: end;
  box-shadow: var(--shadow-lg);
}
.search-field{ display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.search-field label{
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.search-field input{
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
}
.search-field input:focus{ border-color: var(--accent); outline: none; background: #fff; }
.location-input-wrap{ position: relative; display: flex; }
.location-input-wrap input{ padding-right: 42px; }
.locate-btn{
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--navy);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.locate-btn:hover{ background: var(--accent); }
.locate-status{ font-size: 12px; color: var(--verified); font-family: var(--font-mono); min-height: 14px; }
.search-submit{ height: 46px; }

@media (max-width: 760px){
  .search-panel{ grid-template-columns: 1fr; }
}

.quick-chips{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.chip{
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.22);
  color: #E4E9F3;
}
.chip:hover{ background: rgba(255,255,255,.18); }

/* ============ Stats bar ============ */
.stats-bar{ background: var(--navy-deep); }
.stats-inner{
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  padding: 22px 20px;
}
.stat{ display: flex; flex-direction: column; gap: 2px; }
.stat-num{ font-family: var(--font-mono); font-size: 22px; font-weight: 600; color: #fff; }
.stat-label{ font-size: 12.5px; color: #9FB0CC; }

/* ============ Sections ============ */
.section{ padding: 72px 0; }
.section-alt{ background: #fff; }
.section-title{ font-size: clamp(24px, 3.4vw, 32px); }
.section-sub{ color: var(--ink-soft); margin: 10px 0 36px; max-width: 560px; }

/* Categories */
.category-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
.category-card{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.category-card:hover{ transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.category-icon{
  width: 42px; height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(20,40,74,.08), rgba(255,90,54,.10));
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
}
.category-icon img{ width: 24px; height: 24px; object-fit: contain; }
.category-name{ font-weight: 600; font-size: 14.5px; color: var(--ink); }
.empty-note{ color: var(--ink-soft); }

/* How it works */
.how-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
@media (max-width: 760px){
  .how-grid{ grid-template-columns: 1fr; }
}
.how-col h3{ font-size: 19px; margin-bottom: 22px; }
.how-steps{ list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.how-steps li{ display: flex; gap: 16px; }
.step-no{
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  flex-shrink: 0;
  padding-top: 2px;
}
.how-steps strong{ display: block; font-size: 15px; color: var(--navy); margin-bottom: 4px; }
.how-steps p{ margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.5; }

/* Provider CTA */
.provider-cta{
  background: linear-gradient(120deg, var(--navy), #1d3f74);
  border-radius: var(--radius-lg);
  color: #fff;
  margin: 0 20px;
  max-width: 1180px;
  margin-inline: auto;
}
.provider-cta-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 48px 40px;
}
.provider-cta h2{ color: #fff; font-size: clamp(22px, 3vw, 28px); margin: 10px 0 8px; }
.provider-cta p{ color: #C9D3E4; margin: 0; max-width: 440px; }
.badge-verified{
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--verified);
  background: rgba(14,165,160,.14);
  border: 1px solid rgba(14,165,160,.4);
  padding: 5px 12px;
  border-radius: 999px;
}

/* ============ Footer ============ */
.site-footer{ background: var(--navy-deep); color: #C9D3E4; padding: 56px 0 0; margin-top: 40px; }
.footer-inner{
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .brand-name{ color: #fff; }
.footer-brand{ max-width: 300px; }
.footer-tag{ font-size: 13.5px; color: #8FA1BF; margin-top: 10px; }
.footer-cols{ display: flex; gap: 60px; flex-wrap: wrap; }
.footer-cols h4{ font-size: 13px; color: #fff; margin: 0 0 14px; text-transform: uppercase; letter-spacing: .04em; }
.footer-cols a{ display: block; font-size: 14px; color: #9FB0CC; padding: 6px 0; }
.footer-cols a:hover{ color: #fff; }
.footer-bottom{ padding: 20px; font-size: 12.5px; color: #7387A6; text-align: center; }
