/* ============================================================
   LocallyGlobally Listings — design tokens
   Palette: Ink Navy / Directory Amber / Slate Paper / Signal Teal
   Type: Archivo (display) + Inter (body/UI)
   ============================================================ */

:root {
  --navy-900: #131c33;
  --navy-800: #1b2740;
  --navy-700: #24345a;
  --amber-500: #e8a33d;
  --amber-600: #cf8a24;
  --amber-100: #fdf1dd;
  --teal-600: #2f8f82;
  --teal-100: #e2f3f0;
  --paper-0: #f4f6f8;
  --paper-50: #ffffff;
  --line-200: #e1e5ea;
  --ink-900: #1c212b;
  --ink-600: #545c69;
  --ink-400: #8992a1;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --shadow-card: 0 1px 2px rgba(19, 28, 51, 0.06), 0 8px 20px -12px rgba(19, 28, 51, 0.18);
  --shadow-pop: 0 20px 45px -20px rgba(19, 28, 51, 0.35);

  --font-display: "Archivo", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--paper-0);
  line-height: 1.55;
}

h1, h2, h3, h4, .display-font {
  font-family: var(--font-display);
  color: var(--navy-900);
  letter-spacing: -0.01em;
}

a { color: var(--navy-800); text-decoration: none; }

.container-xl { max-width: 1200px; }

.section { padding: 4.5rem 0; }
.section-tight { padding: 3rem 0; }

.section-head {
  max-width: 620px;
  margin-bottom: 2.25rem;
}
.section-head h2 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); margin-bottom: 0.6rem; }
.section-head p { color: var(--ink-600); margin-bottom: 0; font-size: 1.02rem; }
.section-head .kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--teal-600);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
}

/* ---------------- Buttons ---------------- */
.btn { font-weight: 600; border-radius: var(--radius-sm); padding: 0.62rem 1.3rem; }
.btn-amber {
  background: var(--amber-500);
  border: 1px solid var(--amber-500);
  color: var(--navy-900);
}
.btn-amber:hover { background: var(--amber-600); border-color: var(--amber-600); color: var(--navy-900); }
.btn-navy { background: var(--navy-900); border: 1px solid var(--navy-900); color: #fff; }
.btn-navy:hover { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.btn-outline-navy { background: transparent; border: 1.5px solid var(--navy-900); color: var(--navy-900); }
.btn-outline-navy:hover { background: var(--navy-900); color: #fff; }
.btn-ghost-light { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.35); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,0.18); color: #fff; }

/* ---------------- Navbar ---------------- */
.ll-navbar {
  background: var(--paper-50);
  border-bottom: 1px solid var(--line-200);
  padding: 0.75rem 0;
}
.ll-brand { display: flex; align-items: center; gap: 0.55rem; font-family: var(--font-display); font-weight: 700; font-size: 1.28rem; color: var(--navy-900); }
.ll-brand .pin {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--navy-900);
  display: flex; align-items: center; justify-content: center;
  color: var(--amber-500); font-size: 1rem;
}
.ll-brand .brand-sub { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.66rem; color: var(--ink-400); letter-spacing: 0.03em; }
.ll-navbar .nav-link { font-weight: 500; color: var(--ink-900); padding: 0.5rem 0.85rem; }
.ll-navbar .nav-link:hover { color: var(--navy-900); }
.ll-navbar .nav-cta { display: flex; align-items: center; gap: 0.6rem; }

/* ---------------- Hero ---------------- */
.hero {
  background: radial-gradient(circle at 14% 20%, #24345a 0%, var(--navy-900) 55%, var(--navy-900) 100%);
  color: #fff;
  padding: 4.5rem 0 6.5rem;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle, rgba(232,163,61,0.18) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  opacity: 0.35;
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(232,163,61,0.14); border: 1px solid rgba(232,163,61,0.4);
  color: var(--amber-500); padding: 0.35rem 0.85rem; border-radius: 30px;
  font-size: 0.82rem; font-weight: 600; margin-bottom: 1.2rem;
}
.hero h1 { font-size: clamp(2.1rem, 4vw, 3.15rem); line-height: 1.1; color: #fff; margin-bottom: 1rem; }
.hero p.lead { color: rgba(255,255,255,0.78); font-size: 1.08rem; max-width: 560px; }
.hero-stats { display: flex; gap: 2rem; margin-top: 2.1rem; }
.hero-stats .stat b { font-family: var(--font-display); font-size: 1.5rem; display: block; color: #fff; }
.hero-stats .stat span { color: rgba(255,255,255,0.62); font-size: 0.85rem; }

/* Search card */
.search-card {
  position: relative;
  background: var(--paper-50);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  box-shadow: var(--shadow-pop);
  margin-top: -2.6rem;
}
.search-card .field-label {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--ink-400); margin-bottom: 0.3rem; display: block;
}
.search-card .form-control,
.search-card .form-select {
  border: 1.5px solid var(--line-200);
  border-radius: var(--radius-sm);
  padding: 0.62rem 0.85rem;
  font-size: 0.95rem;
}
.search-card .form-control:focus,
.search-card .form-select:focus {
  border-color: var(--navy-700);
  box-shadow: 0 0 0 3px rgba(27,39,64,0.12);
}
.search-card .divider-v { width: 1px; background: var(--line-200); }
.search-card .btn-search {
  background: var(--navy-900); color: #fff; border: none;
  border-radius: var(--radius-sm); font-weight: 600; padding: 0.72rem 1.2rem;
  width: 100%; height: 100%;
}
.search-card .btn-search:hover { background: var(--navy-700); color: #fff; }
.search-tags { margin-top: 0.9rem; display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 0.85rem; }
.search-tags span { color: var(--ink-400); }
.search-tags a { color: var(--ink-600); background: var(--paper-0); border: 1px solid var(--line-200); padding: 0.25rem 0.7rem; border-radius: 30px; }
.search-tags a:hover { border-color: var(--navy-700); color: var(--navy-900); }

/* ---------------- Category grid ---------------- */
.category-card {
  display: flex; flex-direction: column; gap: 0.7rem;
  background: var(--paper-50);
  border: 1px solid var(--line-200);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.1rem;
  height: 100%;
  transition: border-color .15s ease, transform .15s ease;
}
.category-card:hover { border-color: var(--navy-700); transform: translateY(-2px); }
.category-card .cat-icon {
  width: 46px; height: 46px; border-radius: 10px;
  background: var(--amber-100); color: var(--amber-600);
  display: flex; align-items: center; justify-content: center; font-size: 1.15rem;
}
.category-card h3 { font-size: 1rem; margin: 0; color: var(--navy-900); }
.category-card .cat-count { font-size: 0.82rem; color: var(--ink-400); }

/* ---------------- Location chips / discovery ---------------- */
.location-strip { display: flex; gap: 0.9rem; overflow-x: auto; padding-bottom: 0.6rem; scrollbar-width: thin; }
.location-chip {
  flex: 0 0 auto; min-width: 190px;
  background: var(--navy-900); color: #fff; border-radius: var(--radius-md);
  padding: 1.1rem 1.2rem; position: relative; overflow: hidden;
}
.location-chip::after {
  content: "\f3c5"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  position: absolute; right: -6px; bottom: -14px; font-size: 3rem; color: rgba(255,255,255,0.06);
}
.location-chip .city { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; }
.location-chip .state { color: rgba(255,255,255,0.6); font-size: 0.8rem; }
.location-chip .count { margin-top: 0.6rem; font-size: 0.8rem; color: var(--amber-500); font-weight: 600; }

/* ---------------- Business card ---------------- */
.biz-card {
  background: var(--paper-50);
  border: 1px solid var(--line-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 100%;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-card);
}
.biz-card .biz-cover {
  height: 108px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-900));
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.85); font-size: 1.9rem;
  position: relative;
}
.biz-card .biz-badge {
  position: absolute; top: 0.65rem; left: 0.65rem;
  background: var(--amber-500); color: var(--navy-900);
  font-size: 0.7rem; font-weight: 700; padding: 0.2rem 0.55rem; border-radius: 30px;
}
.biz-card .biz-verified {
  position: absolute; top: 0.65rem; right: 0.65rem;
  background: rgba(255,255,255,0.92); color: var(--teal-600);
  font-size: 0.72rem; font-weight: 700; padding: 0.2rem 0.55rem; border-radius: 30px;
  display: flex; align-items: center; gap: 0.3rem;
}
.biz-card .biz-body { padding: 1.05rem 1.1rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.biz-card .biz-cat { font-size: 0.75rem; font-weight: 700; color: var(--teal-600); text-transform: uppercase; letter-spacing: 0.04em; }
.biz-card h3 { font-size: 1.08rem; margin: 0.25rem 0 0.2rem; }
.biz-card .biz-loc { font-size: 0.85rem; color: var(--ink-400); margin-bottom: 0.55rem; }
.biz-card .biz-desc { font-size: 0.88rem; color: var(--ink-600); flex: 1; margin-bottom: 0.8rem; }
.biz-card .biz-rating { display: flex; align-items: center; gap: 0.35rem; font-size: 0.85rem; font-weight: 600; color: var(--navy-900); margin-bottom: 0.85rem; }
.biz-card .biz-rating .fa-star { color: var(--amber-500); }
.biz-card .biz-rating .count { color: var(--ink-400); font-weight: 400; }
.biz-card .biz-actions { display: flex; gap: 0.5rem; margin-bottom: 0.75rem; }
.biz-card .biz-actions a {
  width: 34px; height: 34px; border-radius: 8px;
  border: 1px solid var(--line-200); color: var(--ink-600);
  display: flex; align-items: center; justify-content: center; font-size: 0.9rem;
}
.biz-card .biz-actions a:hover { border-color: var(--navy-700); color: var(--navy-900); }
.biz-card .biz-actions a.wa:hover { border-color: #2f8f6a; color: #2f8f6a; }
.biz-card .btn-view { width: 100%; }

/* ---------------- Popular services / professional listings ---------------- */
.service-row {
  display: flex; align-items: center; gap: 1rem;
  background: var(--paper-50); border: 1px solid var(--line-200); border-radius: var(--radius-md);
  padding: 0.95rem 1.1rem;
}
.service-row .service-icon {
  width: 42px; height: 42px; border-radius: 9px; flex: 0 0 auto;
  background: var(--teal-100); color: var(--teal-600);
  display: flex; align-items: center; justify-content: center;
}
.service-row .service-name { font-weight: 600; font-size: 0.94rem; margin-bottom: 0.1rem; }
.service-row .service-meta { font-size: 0.8rem; color: var(--ink-400); }

.pro-card {
  background: var(--paper-50); border: 1px solid var(--line-200); border-radius: var(--radius-md);
  padding: 1.1rem; display: flex; gap: 0.9rem; align-items: flex-start; height: 100%;
}
.pro-card .pro-avatar {
  width: 52px; height: 52px; border-radius: 50%; flex: 0 0 auto;
  background: var(--navy-900); color: var(--amber-500);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--font-display);
}
.pro-card h3 { font-size: 1rem; margin-bottom: 0.1rem; }
.pro-card .pro-role { font-size: 0.82rem; color: var(--teal-600); font-weight: 600; margin-bottom: 0.35rem; }
.pro-card .pro-loc { font-size: 0.8rem; color: var(--ink-400); }

/* ---------------- Offers ---------------- */
.offer-card {
  background: repeating-linear-gradient(135deg, var(--amber-100), var(--amber-100) 10px, #fdf6e9 10px, #fdf6e9 20px);
  border: 1px dashed var(--amber-600);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.2rem;
  height: 100%;
}
.offer-card .offer-cat { font-size: 0.72rem; font-weight: 700; color: var(--amber-600); text-transform: uppercase; letter-spacing: 0.04em; }
.offer-card h3 { font-size: 1rem; margin: 0.3rem 0 0.15rem; }
.offer-card .offer-biz { font-size: 0.85rem; color: var(--ink-600); margin-bottom: 0.5rem; }
.offer-card .offer-valid { font-size: 0.78rem; color: var(--ink-400); }

/* ---------------- Business profile preview ---------------- */
.profile-preview {
  background: var(--paper-50); border: 1px solid var(--line-200); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-card);
}
.profile-cover {
  height: 150px;
  background: linear-gradient(120deg, var(--navy-900) 0%, var(--navy-700) 60%, var(--teal-600) 130%);
  position: relative;
}
.profile-avatar {
  width: 84px; height: 84px; border-radius: 16px;
  background: var(--paper-50); border: 4px solid var(--paper-50);
  position: absolute; left: 1.6rem; bottom: -34px;
  display: flex; align-items: center; justify-content: center;
  color: var(--navy-900); font-size: 1.6rem; box-shadow: var(--shadow-card);
}
.profile-body { padding: 2.6rem 1.8rem 1.8rem; }
.profile-stat { text-align: center; }
.profile-stat b { display: block; font-family: var(--font-display); font-size: 1.25rem; color: var(--navy-900); }
.profile-stat span { font-size: 0.78rem; color: var(--ink-400); }
.profile-tab-list { display: flex; gap: 1.4rem; border-bottom: 1px solid var(--line-200); margin: 1.4rem 0 1.2rem; font-size: 0.9rem; }
.profile-tab-list .tab { padding-bottom: 0.7rem; color: var(--ink-400); font-weight: 600; }
.profile-tab-list .tab.active { color: var(--navy-900); border-bottom: 2px solid var(--amber-500); }

/* ---------------- How it works ---------------- */
.step-card { position: relative; padding-left: 3.2rem; }
.step-card .step-index {
  position: absolute; left: 0; top: 0;
  width: 2.4rem; height: 2.4rem; border-radius: 9px;
  background: var(--navy-900); color: var(--amber-500);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700;
}
.step-card h3 { font-size: 1.02rem; margin-bottom: 0.35rem; }
.step-card p { font-size: 0.9rem; color: var(--ink-600); margin: 0; }

/* ---------------- CTA band ---------------- */
.cta-band {
  background: var(--navy-900); color: #fff; border-radius: var(--radius-lg);
  padding: 3rem 2.4rem; position: relative; overflow: hidden;
}
.cta-band::before {
  content: "\f3c5"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  position: absolute; right: 1.5rem; top: 50%; transform: translateY(-50%);
  font-size: 8rem; color: rgba(255,255,255,0.05);
}
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 0.6rem; }
.cta-band p { color: rgba(255,255,255,0.72); max-width: 480px; margin-bottom: 1.6rem; }
.cta-band .cta-points { list-style: none; padding: 0; margin: 1.4rem 0; }
.cta-band .cta-points li { display: flex; gap: 0.6rem; align-items: baseline; color: rgba(255,255,255,0.85); font-size: 0.92rem; margin-bottom: 0.5rem; }
.cta-band .cta-points i { color: var(--amber-500); }

/* ---------------- Inquiry form ---------------- */
.inquiry-panel {
  background: var(--paper-50); border: 1px solid var(--line-200); border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}
.inquiry-panel label { font-weight: 600; font-size: 0.85rem; color: var(--navy-900); margin-bottom: 0.3rem; }
.inquiry-panel .form-control, .inquiry-panel .form-select, .inquiry-panel textarea {
  border: 1.5px solid var(--line-200); border-radius: var(--radius-sm); padding: 0.6rem 0.8rem;
}
.inquiry-panel .form-control:focus, .inquiry-panel .form-select:focus, .inquiry-panel textarea:focus {
  border-color: var(--navy-700); box-shadow: 0 0 0 3px rgba(27,39,64,0.12);
}
.inquiry-note { display: flex; gap: 0.7rem; background: var(--teal-100); border-radius: var(--radius-md); padding: 1rem 1.1rem; font-size: 0.85rem; color: #1e5a52; }
.form-success {
  background: var(--teal-100); border: 1px solid #bfe4dd; color: #1e5a52;
  border-radius: var(--radius-md); padding: 0.9rem 1.1rem; font-size: 0.92rem; margin-bottom: 1.2rem;
  display: flex; gap: 0.6rem; align-items: center;
}
.form-error {
  background: #fdeceb; border: 1px solid #f6c7c2; color: #9c2f24;
  border-radius: var(--radius-md); padding: 0.9rem 1.1rem; font-size: 0.92rem; margin-bottom: 1.2rem;
  display: flex; gap: 0.6rem; align-items: center;
}

/* ---------------- Footer ---------------- */
.ll-footer { background: var(--navy-900); color: rgba(255,255,255,0.7); padding: 3.4rem 0 1.4rem; }
.ll-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 1rem; }
.ll-footer a { color: rgba(255,255,255,0.62); font-size: 0.9rem; }
.ll-footer a:hover { color: var(--amber-500); }
.ll-footer .footer-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.ll-footer .footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 2.4rem; padding-top: 1.3rem; font-size: 0.82rem; display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: space-between; }
.ll-footer .social-row { display: flex; gap: 0.6rem; }
.ll-footer .social-row a {
  width: 34px; height: 34px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
}
.ll-footer .social-row a:hover { border-color: var(--amber-500); }

/* ---------------- WhatsApp float + scroll-to-top (CSS only) ---------------- */
.float-stack { position: fixed; right: 1.3rem; bottom: 1.3rem; z-index: 1030; display: flex; flex-direction: column; gap: 0.7rem; align-items: flex-end; }
.wa-float {
  width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
  box-shadow: 0 10px 25px -8px rgba(37,211,102,0.6);
}
.wa-float:hover { background: #1ebe5b; color: #fff; }
.top-float {
  width: 44px; height: 44px; border-radius: 50%; background: var(--navy-900); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
  box-shadow: var(--shadow-card);
}
.top-float:hover { background: var(--navy-700); color: #fff; }

#top { scroll-margin-top: 1rem; }

/* ---------------- Utilities ---------------- */
.bg-paper { background: var(--paper-0); }
.text-teal { color: var(--teal-600); }
.divider-dot { color: var(--line-200); }

@media (max-width: 991.98px) {
  .search-card { margin-top: 1.6rem; }
  .hero { padding-bottom: 4rem; }
  .location-chip { min-width: 160px; }
}

@media (max-width: 575.98px) {
  .section { padding: 3rem 0; }
  .cta-band { padding: 2.2rem 1.4rem; text-align: left; }
  .cta-band::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .category-card, a { transition: none !important; }
}