:root {
  --company-primary: #0d6efd;
  --company-accent: #16a34a;
  --company-font: system-ui, sans-serif;
  --public-ink: #102033;
  --public-muted: #607085;
  --public-surface: #f4f7fb;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.public-company-site {
  margin: 0;
  color: var(--public-ink);
  background: #fff;
  font-family: var(--company-font);
}
.public-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: .85rem 0;
  color: #fff;
  background: var(--company-primary);
  background: color-mix(in srgb, var(--company-primary) 88%, #061426);
  box-shadow: 0 8px 30px rgba(8, 24, 44, .18);
}
.public-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: 0;
  color: #fff;
  text-decoration: none;
  font-size: 1.05rem;
}
.public-brand img {
  width: 48px;
  height: 48px;
  padding: 4px;
  border-radius: .75rem;
  background: #fff;
  object-fit: contain;
}
.public-brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: .75rem;
  background: rgba(255,255,255,.14);
}
.public-hero {
  overflow: hidden;
  color: #fff;
  background: var(--company-primary);
  background:
    radial-gradient(circle at 85% 10%, color-mix(in srgb, var(--company-accent) 42%, transparent), transparent 32%),
    linear-gradient(135deg, color-mix(in srgb, var(--company-primary) 78%, #071529), color-mix(in srgb, var(--company-primary) 92%, #020817));
}
.public-hero h1 {
  max-width: 780px;
  margin: 1rem 0;
  font-size: clamp(2.7rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.055em;
}
.public-hero .lead { max-width: 700px; color: rgba(255,255,255,.78); }
.public-eyebrow, .public-section-label {
  display: inline-flex;
  align-items: center;
  color: var(--company-accent);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.public-eyebrow { color: #fff; }
.public-accent-button, .public-primary-button {
  border: 0;
  color: #fff;
  background: var(--company-accent);
  font-weight: 700;
}
.public-accent-button:hover, .public-primary-button:hover {
  color: #fff;
  background: var(--company-accent);
  background: color-mix(in srgb, var(--company-accent) 84%, #000);
}
.public-primary-button { background: var(--company-primary); }
.public-primary-button:hover { background: var(--company-primary); background: color-mix(in srgb, var(--company-primary) 84%, #000); }
.public-trust-row { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: 2rem; color: rgba(255,255,255,.8); }
.public-trust-row span { display: flex; gap: .5rem; align-items: center; }
.public-hero-card {
  padding: 2rem;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 1.5rem;
  background: rgba(255,255,255,.1);
  box-shadow: 0 30px 70px rgba(0,0,0,.22);
  backdrop-filter: blur(16px);
}
.public-hero-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: 1.25rem;
  border-radius: 1rem;
  color: #fff;
  background: var(--company-accent);
  font-size: 1.7rem;
}
.public-mini-feature { display: flex; gap: .6rem; margin-top: .8rem; color: rgba(255,255,255,.84); }
.public-mini-feature i { color: var(--company-accent); }
.public-section { padding: 6rem 0; }
.public-section h2, .public-section-heading h2 { margin: .65rem 0 1rem; font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 800; letter-spacing: -.04em; }
.public-copy { color: var(--public-muted); font-size: 1.1rem; line-height: 1.8; }
.public-contact-card {
  display: grid;
  gap: .9rem;
  height: 100%;
  padding: 1.75rem;
  border-radius: 1.25rem;
  background: var(--public-surface);
}
.public-contact-card h3 { font-weight: 800; }
.public-contact-card a, .public-contact-card span { display: flex; gap: .75rem; align-items: flex-start; color: var(--public-ink); text-decoration: none; }
.public-contact-card i { color: var(--company-primary); }
.public-services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.public-service { display: flex; gap: .75rem; align-items: center; padding: 1.15rem; border: 1px solid #e4eaf1; border-radius: 1rem; font-weight: 650; }
.public-service i { color: var(--company-accent); }
.public-estimator-section { padding: 6rem 0; background: var(--public-surface); }
.public-section-heading { max-width: 720px; margin: 0 auto 2.5rem; }
.public-section-heading p { color: var(--public-muted); }
.public-estimator-card {
  max-width: 980px;
  margin: auto;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border-radius: 1.5rem;
  background: #fff;
  box-shadow: 0 24px 70px rgba(20, 43, 70, .12);
}
.public-estimator-card .form-control { border-color: #dbe3ec; border-radius: .8rem; }
.pac-container { z-index: 2000 !important; }
.public-result { padding: 1.25rem; border-radius: 1rem; }
.public-result-loading { color: var(--public-muted); background: var(--public-surface); }
.public-result-error { color: #991b1b; background: #fee2e2; }
.public-result-success { display: flex; gap: 1rem; align-items: center; color: #166534; background: #dcfce7; }
.public-result-success i { font-size: 1.8rem; }
.public-result-success span { display: block; }
.public-result-estimate { border: 1px solid #dbe3ec; border-color: color-mix(in srgb, var(--company-primary) 25%, #fff); background: #f7f9fc; background: color-mix(in srgb, var(--company-primary) 6%, #fff); }
.public-estimate-total { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid #dbe3ec; }
.public-estimate-total strong { color: var(--company-primary); font-size: 2rem; }
.public-estimate-facts { display: grid; gap: .5rem; padding: 1rem 0; }
.public-estimate-facts div { display: flex; justify-content: space-between; gap: 1rem; }
.public-estimate-note { margin: 0; color: var(--public-muted); font-size: .85rem; }
.public-contact-fields { margin-top: 1.5rem; }
.public-contact-fields h3 { font-weight: 800; }
.public-honeypot { position: absolute !important; left: -10000px !important; opacity: 0 !important; }
.public-footer { padding: 1.5rem 0; color: rgba(255,255,255,.72); background: #071421; font-size: .9rem; }
.public-footer a { color: #fff; }

@media (max-width: 767.98px) {
  .public-nav .btn-outline-light { display: none; }
  .public-brand strong { max-width: 155px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .public-services-grid { grid-template-columns: 1fr; }
  .public-section, .public-estimator-section { padding: 4rem 0; }
  .public-estimate-facts div { align-items: flex-start; }
}

body.public-directory-site,
body.business-marketing-site {
  margin: 0;
  color: #102033;
  background: #fff;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.directory-nav { padding: .9rem 0; border-bottom: 1px solid #e5eaf0; background: rgba(255,255,255,.94); backdrop-filter: blur(16px); }
.directory-brand { display: flex; align-items: center; gap: .7rem; color: #102033; text-decoration: none; }
.directory-brand > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: .8rem; color: #fff; background: #102033; }
.directory-hero { padding: 7rem 0 6rem; background: radial-gradient(circle at 50% 0, #dcecff, transparent 48%), #f7f9fc; }
.directory-eyebrow { color: #2864dc; font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.directory-hero h1, .business-hero h1 { margin: 1rem 0 1.25rem; font-size: clamp(3rem, 7vw, 5.8rem); font-weight: 850; line-height: .98; letter-spacing: -.06em; }
.directory-hero p, .business-hero p { max-width: 720px; margin: 0 auto 2rem; color: #65758a; font-size: 1.2rem; }
.directory-search { position: relative; display: flex; align-items: center; gap: .75rem; max-width: 820px; margin: auto; padding: .6rem; border: 1px solid #dce3eb; border-radius: 1rem; background: #fff; box-shadow: 0 22px 60px rgba(27,55,90,.13); }
.directory-search > i { margin-left: .6rem; color: #718096; font-size: 1.2rem; }
.directory-search input { flex: 1; min-width: 0; padding: .75rem 0; border: 0; outline: 0; font-size: 1rem; }
.directory-search button { padding: .85rem 1.25rem; border: 0; border-radius: .75rem; color: #fff; background: #102033; font-weight: 700; }
.directory-search .directory-location-button { display: flex; align-items: center; gap: .4rem; color: #2864dc; background: #edf4ff; white-space: nowrap; }
.directory-search .directory-location-button:hover { background: #dceaff; }
.directory-search-status { min-height: 1.5rem; max-width: 820px; margin: .75rem auto 0; color: #65758a; font-size: .9rem; text-align: left; }
.directory-search-status.is-error { color: #b42318; }
.directory-search-status.is-loading { color: #2864dc; }
.directory-results { min-height: 420px; padding: 5rem 0 6rem; }
.directory-results h2, .business-section h2, .directory-business-cta h2 { margin: .4rem 0 0; font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 800; letter-spacing: -.04em; }
.directory-location-summary { display: flex; align-items: center; gap: 1rem; margin: -1rem 0 2rem; padding: .9rem 1rem; border-radius: .9rem; color: #3f5269; background: #f0f5fb; }
.directory-location-summary span { font-weight: 700; }
.directory-location-summary small { flex: 1; color: #65758a; }
.directory-location-summary a { color: #2864dc; font-weight: 700; text-decoration: none; }
.directory-company-card { display: flex; flex-direction: column; height: 100%; padding: 1.4rem; border: 1px solid #e3e8ef; border-radius: 1.25rem; background: #fff; box-shadow: 0 15px 45px rgba(16,32,51,.07); transition: transform .2s ease, box-shadow .2s ease; }
.directory-company-card:hover { transform: translateY(-4px); box-shadow: 0 22px 60px rgba(16,32,51,.12); }
.directory-company-brand { display: flex; align-items: center; gap: 1rem; }
.directory-company-brand img, .directory-company-brand > span { width: 62px; height: 62px; border: 1px solid #e3e8ef; border-radius: 1rem; object-fit: contain; padding: 5px; background: #fff; }
.directory-company-brand > span { display: grid; place-items: center; color: #fff; background: #102033; font-size: 1.4rem; font-weight: 800; }
.directory-company-brand h3 { margin: 0; font-size: 1.15rem; font-weight: 800; }
.directory-company-brand p { margin: .25rem 0 0; color: #65758a; font-size: .85rem; }
.directory-company-copy { flex: 1; margin: 1.2rem 0; color: #65758a; line-height: 1.65; }
.directory-company-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.directory-company-meta span { padding: .35rem .55rem; border-radius: .5rem; color: #3f5269; background: #f0f4f8; font-size: .75rem; }
.directory-company-meta .directory-distance { color: #1859c9; background: #e8f1ff; font-weight: 800; }
.directory-empty { padding: 5rem 1rem; border: 1px dashed #ccd5df; border-radius: 1.25rem; text-align: center; background: #f8fafc; }
.directory-empty > i { color: #94a3b8; font-size: 2.5rem; }
.directory-business-cta { color: #fff; background: #102033; }
.directory-business-cta .container { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding-top: 4rem; padding-bottom: 4rem; }
.directory-business-cta .directory-eyebrow { color: #82aefc; }
.business-hero { padding: 7rem 0; background: radial-gradient(circle at 80% 10%, #d8e8ff, transparent 35%), #f7f9fc; }
.business-hero p { margin-left: 0; }
.business-feature-panel { display: grid; gap: .8rem; padding: 2rem; border-radius: 1.5rem; color: #fff; background: #102033; box-shadow: 0 30px 70px rgba(16,32,51,.2); }
.business-feature-panel span { display: flex; gap: .8rem; align-items: center; padding: .75rem; border-radius: .75rem; background: rgba(255,255,255,.07); }
.business-feature-panel i { color: #78a7ff; }
.business-section { padding: 6rem 0; }
.business-feature-card { height: 100%; padding: 1.6rem; border: 1px solid #e3e8ef; border-radius: 1.2rem; }
.business-feature-card > i { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 1.25rem; border-radius: .8rem; color: #fff; background: #2864dc; font-size: 1.2rem; }
.business-feature-card h3 { font-size: 1.15rem; font-weight: 800; }
.business-feature-card p { margin-bottom: 0; color: #65758a; line-height: 1.65; }

@media (max-width: 767.98px) {
  .directory-nav .btn-outline-secondary { display: none; }
  .directory-hero, .business-hero { padding: 4.5rem 0; }
  .directory-search { align-items: stretch; flex-wrap: wrap; }
  .directory-search input { width: calc(100% - 3rem); }
  .directory-search .directory-location-button { flex: 1; justify-content: center; }
  .directory-search button { width: 100%; }
  .directory-location-summary { align-items: flex-start; flex-direction: column; gap: .35rem; }
  .directory-business-cta .container { align-items: flex-start; flex-direction: column; }
}
