:root {
  --ink: #18212f;
  --muted: #667085;
  --line: #d9e2ec;
  --panel: #ffffff;
  --soft: #f5f7fb;
  --brand: #0f766e;
  --brand-dark: #115e59;
  --accent: #eab308;
  --danger: #b42318;
  --radius: 8px;
  --shadow: 0 18px 50px rgba(16, 24, 40, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: #fff;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 44px minmax(280px, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid rgba(217, 226, 236, .8);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 190px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--brand), #14532d);
}
.brand strong, .brand small { display: block; line-height: 1.05; }
.brand small { color: var(--muted); margin-top: 3px; }
.icon-button, .close-menu {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}
.search-shell {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: visible;
  background: #fff;
}
.search-shell input {
  min-width: 0;
  height: 46px;
  border: 0;
  padding: 0 14px;
  outline: none;
}
.search-shell input::placeholder {
  color: #68646e;
  opacity: 1;
  transition: opacity .22s ease;
}
.search-shell.is-placeholder-changing input::placeholder {
  opacity: .12;
}
.search-shell button, .admin-link, .primary-action, .admin-logout {
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: var(--brand);
  padding: 0 18px;
  font-weight: 800;
  cursor: pointer;
}
.search-shell button { margin: 4px; }
.admin-link {
  display: inline-flex;
  align-items: center;
  height: 44px;
}
.admin-logout {
  height: 44px;
  background: var(--danger);
}
.suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 30;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: none;
}
.suggestions a {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid #eef2f7;
}
.suggestions a:hover { background: #f0fdfa; }
.suggestions small { color: var(--muted); }

.side-menu {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 50;
  width: min(340px, 88vw);
  padding: 20px;
  background: #fff;
  border-right: 1px solid var(--line);
  transform: translateX(-105%);
  transition: transform .2s ease;
  box-shadow: var(--shadow);
}
.side-menu.is-open { transform: translateX(0); }
.side-menu nav { display: grid; gap: 8px; margin-top: 26px; }
.side-menu a {
  padding: 14px;
  border-radius: 8px;
  background: var(--soft);
  font-weight: 800;
}
.scrim {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(15, 23, 42, .45);
}

.hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  color: #fff;
  background: #0f172a;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .6s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 18, 32, .88), rgba(10, 18, 32, .38), rgba(10, 18, 32, .2));
}
.hero-slide.no-copy::after {
  display: none;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-slide.no-copy img {
  opacity: 1;
  filter: none;
}
.hero-caption {
  position: absolute;
  z-index: 2;
  right: clamp(18px, 5vw, 72px);
  bottom: 72px;
  max-width: 360px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 8px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
}
.hero-caption strong { display: block; font-size: 1.35rem; margin-bottom: 8px; }
.hero-caption a {
  display: inline-flex;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  color: #10201d;
  background: var(--accent);
  font-weight: 900;
}
.hero-search-card {
  position: relative;
  z-index: 3;
  width: min(720px, calc(100% - 32px));
  padding: clamp(28px, 6vw, 76px) 0 0 clamp(16px, 4vw, 56px);
}
.hero-search-card p, .eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: .78rem;
  font-weight: 900;
  color: var(--accent);
}
.hero h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(2.2rem, 5vw, 4.9rem);
  line-height: .98;
}
.quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.quick-filters button {
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 999px;
  padding: 10px 14px;
  color: #fff;
  background: rgba(255,255,255,.14);
  cursor: pointer;
}
.slider-controls {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  padding: 0 34px;
}
.slider-controls button {
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 50%;
  color: #fff;
  background: rgba(15, 23, 42, .2);
  font-size: 2.6rem;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
}
.slider-controls button:hover { background: rgba(15, 23, 42, .45); }

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-strip div {
  padding: 22px clamp(14px, 3vw, 36px);
  background: #fff;
}
.trust-strip strong { display: block; font-size: 1.45rem; }
.trust-strip span { color: var(--muted); }

.section {
  padding: clamp(42px, 7vw, 86px) clamp(16px, 4vw, 56px);
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.section h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 3rem);
}
select, textarea, .admin-form input, .admin-form select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
}
.company-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.empty-state {
  grid-column: 1 / -1;
  margin: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
  text-align: center;
}
.company-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 28px rgba(16, 24, 40, .08);
}
.compact-company-card {
  transition: transform .18s ease, box-shadow .18s ease;
}
.compact-company-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, .14);
}
.company-card-main {
  display: grid;
  color: inherit;
}
.company-media {
  position: relative;
  aspect-ratio: 16 / 8.5;
  background: var(--soft);
}
.company-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.company-logo { display: none; }
.company-body { padding: 12px; }
.pill {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--brand-dark);
  background: #ccfbf1;
  font-size: .78rem;
  font-weight: 900;
}
.company-body h3 { margin: 10px 0 6px; font-size: 1.02rem; line-height: 1.18; }
.address, .rating { color: var(--muted); }
.rating { margin: 10px 0; color: #8a5a00; font-weight: 800; }
.compact-company-card .address {
  margin: 0 0 10px;
  font-size: .9rem;
}
.open-company {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 10px;
  border-radius: 8px;
  color: #fff;
  background: var(--brand);
  font-size: .86rem;
  font-weight: 900;
}
.home-contact-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0 12px 12px;
}

.home-contact-actions a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 8px;
  color: #111827;
  background: #fff;
  font-size: .82rem;
  font-weight: 900;
}

.home-contact-actions .home-whatsapp {
  color: #fff;
  border-color: #16a34a;
  background: #16a34a;
}

.home-contact-actions .home-map,
.home-contact-actions .home-instagram {
  grid-column: 1 / -1;
}

.home-contact-actions .home-map {
  color: #fff;
  border-color: var(--brand);
  background: var(--brand);
}

.home-contact-actions .home-instagram {
  color: #fff;
  border-color: #c13584;
  background: #c13584;
}
.site-footer {
  display: grid;
  justify-items: center;
  gap: 18px;
  width: 100%;
  margin-top: 10px;
  padding: 28px 16px 36px;
  background: rgba(238, 239, 241, .84);
  text-align: center;
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.footer-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid #6b7280;
  border-radius: 4px;
  color: #20242d;
  background: transparent;
  font-size: .92rem;
  font-weight: 700;
}

.copyright {
  margin: 0;
  color: #20242d;
  font-size: .95rem;
}

.developer-credit {
  display: grid;
  justify-items: center;
  gap: 4px;
}

.developer-credit p {
  margin: 0;
  color: #1f2937;
  font-size: .72rem;
  line-height: 1;
}

.developer-credit img {
  width: min(100%, 150px);
  height: auto;
  border-radius: 4px;
}
.action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}
.action-grid a, .outline-action {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  font-weight: 800;
  text-align: center;
}
.action-grid .whatsapp { color: #fff; background: #16a34a; border-color: #16a34a; }
.action-grid .call { color: #fff; background: var(--brand); border-color: var(--brand); }

.ad-band {
  padding: 0 clamp(16px, 4vw, 56px);
}
.ad-band a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 22px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #0f766e, #7c2d12);
}
.ad-band span, .ad-band em { font-style: normal; color: #fde68a; font-weight: 800; }
.ad-band strong { font-size: clamp(1.1rem, 2vw, 1.6rem); }

.category-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
}
.category-card {
  min-height: 104px;
  display: grid;
  align-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--soft);
  cursor: pointer;
}
.category-card strong { font-size: .98rem; }
.category-card span { color: var(--muted); font-size: .86rem; }

.content-hub { background: var(--soft); }
.hub-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.hub-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.hub-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.hub-grid article > *:not(img) { margin-left: 14px; margin-right: 14px; }
.hub-grid span {
  display: inline-block;
  margin-top: 14px;
  color: var(--brand-dark);
  font-weight: 900;
}
.hub-grid p { color: var(--muted); padding-bottom: 14px; }

.footer {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding: 34px clamp(16px, 4vw, 56px);
  color: #fff;
  background: #101828;
}
.footer p { color: #cbd5e1; max-width: 520px; }
.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-content: start;
}

.business-hero {
  display: grid;
  min-height: 500px;
  align-items: end;
  padding: clamp(32px, 7vw, 80px) clamp(16px, 4vw, 56px);
  color: #fff;
  background-size: cover;
  background-position: center;
  position: relative;
}
.business-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15,23,42,.9), rgba(15,23,42,.38));
}
.business-hero > div { position: relative; max-width: 760px; }
.business-hero h1 { font-size: clamp(2.2rem, 5vw, 4.5rem); margin: 12px 0; }
.business-logo-large { display: none; }
.business-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  padding: clamp(34px, 5vw, 70px) clamp(16px, 4vw, 56px);
}
.business-main, .business-sidebar {
  display: grid;
  gap: 22px;
  align-content: start;
}
.info-panel, .admin-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: #fff;
}
.info-panel h2, .info-panel h3 { margin-top: 0; }
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
}
.video-frame, .map-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 8px;
  background: var(--soft);
}
.contact-list { display: grid; gap: 10px; }
.contact-list a, .contact-list span {
  display: block;
  padding: 12px;
  border-radius: 8px;
  background: var(--soft);
}
.budget-button {
  display: flex;
  justify-content: center;
  padding: 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--brand);
  font-weight: 900;
}
.side-ad, .footer-ad {
  display: block;
  padding: 18px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #7c2d12, #0f766e);
}
.review {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 10px;
}

.business-profile {
  max-width: 1280px;
  margin: 34px auto 56px;
  padding: 0 22px;
  display: grid;
  grid-template-columns: 416px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.business-profile-image {
  padding: 12px;
  border-radius: 4px;
  background: #eeeeee;
}

.business-profile-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.business-profile-content h1 {
  margin: 0;
  color: #050505;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: .95;
  letter-spacing: 0;
}

.business-tagline {
  margin: 8px 0 20px;
  color: #565656;
  font-style: italic;
  font-weight: 700;
}

.business-actions-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.phone-strip {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 999px;
  background: #ededed;
}

.phone-strip a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  color: #2f2f35;
  font-weight: 900;
}

.phone-strip a + a {
  border-left: 1px solid #c9c9c9;
}

.whatsapp-outline {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 28px;
  border: 1px solid #159447;
  border-radius: 999px;
  color: #159447;
  background: #fff;
  font-weight: 700;
}

.instagram-outline {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  border: 1px solid #c13584;
  border-radius: 999px;
  color: #c13584;
  background: #fff;
  font-weight: 700;
}

.whatsapp-icon {
  width: 17px;
  height: 17px;
  display: inline-block;
}

.business-meta-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .9fr);
  gap: 22px;
  margin-top: 22px;
  color: #202027;
  font-size: .92rem;
}

.share-line {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
  font-size: .95rem;
}

.share-line strong {
  width: 100%;
}

.share-line a {
  color: #159447;
  font-weight: 800;
}

.business-details-simple {
  max-width: 1280px;
  margin: 0 auto 46px;
  padding: 0 22px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.map-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--brand);
  font-weight: 900;
}

.auth-page {
  min-height: calc(100vh - 190px);
  display: grid;
  place-items: start center;
  padding: 34px 16px 70px;
}

.auth-panel {
  width: min(470px, 100%);
  padding: 34px;
  border: 1px solid rgba(203, 213, 225, .85);
  border-radius: 8px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 18px 45px rgba(15, 23, 42, .1);
}

.auth-panel h1 {
  margin: 0 0 10px;
  color: #111827;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
}

.auth-panel p:not(.eyebrow) {
  color: #52525b;
  margin-bottom: 24px;
}

.social-login {
  display: grid;
  gap: 12px;
}

.social-button {
  min-height: 54px;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border: 1px solid #d7dde6;
  border-radius: 8px;
  background: #fff;
  color: #1f2937;
  font-weight: 900;
}

.social-button span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 950;
}

.google-login span {
  background: #ea4335;
}

.facebook-login span {
  background: #1877f2;
  font-family: Arial, sans-serif;
  font-size: 1.35rem;
}

.admin-body { background: var(--soft); }
.login-body {
  min-height: 100vh;
  background:
    linear-gradient(145deg, rgba(255,255,255,.94) 0 28%, rgba(231,232,233,.78) 28% 29%, transparent 29%),
    radial-gradient(circle at 50% 20%, rgba(255,255,255,.9), rgba(236,240,244,.94) 68%),
    #eef1f4;
}
.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.login-panel {
  width: min(100%, 440px);
  display: grid;
  gap: 12px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow);
}
.login-logo {
  justify-self: center;
}
.login-logo img {
  width: min(280px, 100%);
}
.login-panel h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 2.9rem);
  line-height: 1;
}
.login-copy,
.login-message {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}
.login-panel input {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
}
.login-back {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
}
.admin-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 73px);
}
.admin-nav {
  padding: 22px;
  border-right: 1px solid var(--line);
  background: #fff;
}
.admin-nav a {
  display: block;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 8px;
  font-weight: 800;
}
.admin-nav a:hover { background: #f0fdfa; }
.admin-main { padding: 28px; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.stat {
  padding: 18px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
}
.stat strong { display: block; font-size: 1.8rem; }
.admin-grid {
  display: grid;
  grid-template-columns: minmax(320px, 420px) 1fr;
  gap: 18px;
}
.admin-form {
  display: grid;
  gap: 10px;
}
.admin-form textarea {
  min-height: 90px;
  padding-top: 10px;
}
.file-field {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px dashed #b8c4d3;
  border-radius: 8px;
  background: #f8fafc;
  color: #475467;
  font-weight: 800;
}
.file-field input {
  border: 0;
  min-height: auto;
  padding: 0;
  background: transparent;
}
.check-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid #d7dde6;
  border-radius: 8px;
  background: #fff;
  color: #344054;
  font-weight: 800;
}
.check-field input {
  width: 18px;
  height: 18px;
  min-height: auto;
}
.form-help {
  display: block;
  color: #667085;
  line-height: 1.35;
}
.admin-list {
  display: grid;
  gap: 10px;
}
.admin-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: end;
}
.edit-button {
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--brand);
  padding: 9px 12px;
  cursor: pointer;
}
.danger {
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--danger);
  padding: 9px 12px;
  cursor: pointer;
}

@media (max-width: 1040px) {
  .company-grid, .hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .business-layout { grid-template-columns: 1fr; }
  .business-profile,
  .business-details-simple {
    grid-template-columns: 1fr;
  }
  .business-meta-row {
    grid-template-columns: 1fr;
  }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .topbar {
    grid-template-columns: 1fr 44px;
  }
  .search-shell, .admin-link, .admin-logout {
    grid-column: 1 / -1;
  }
  .hero { min-height: 640px; }
  .hero-caption {
    left: 16px;
    right: 16px;
    bottom: 86px;
  }
  .trust-strip, .company-grid, .hub-grid, .category-grid, .stats-grid {
    grid-template-columns: 1fr;
  }
  .section-head, .footer, .ad-band a { display: grid; }
  .action-grid, .gallery { grid-template-columns: 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-nav { border-right: 0; border-bottom: 1px solid var(--line); }
  .business-profile {
    margin-top: 22px;
    padding: 0 16px;
  }
  .business-details-simple {
    padding: 0 16px;
  }
  .phone-strip,
  .whatsapp-outline {
    width: 100%;
  }
  .phone-strip a {
    flex: 1;
    text-align: center;
  }
}

/* Busca66-inspired visual layer */
body {
  background:
    linear-gradient(145deg, rgba(255,255,255,.92) 0 28%, rgba(231,232,233,.78) 28% 29%, transparent 29%),
    linear-gradient(23deg, transparent 0 56%, rgba(210,213,218,.72) 56% 57%, transparent 57%),
    radial-gradient(circle at 58% 30%, rgba(255,255,255,.88), rgba(232,234,236,.82) 46%, rgba(247,248,249,.96) 72%),
    #f2f3f4;
  background-attachment: fixed;
}

.topbar {
  position: relative;
  grid-template-columns: 44px minmax(210px, 330px) minmax(360px, 1fr) auto;
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px 0 34px;
  border-bottom: 0;
  background: transparent;
  backdrop-filter: none;
}

.menu-toggle {
  grid-column: 1;
  grid-row: 1;
  border: 0;
  color: #555;
  background: transparent;
  font-size: 1.6rem;
}

.busca-brand {
  min-width: 270px;
  grid-column: 2;
}

.busca-brand strong {
  font-size: clamp(2rem, 4vw, 3.05rem);
  line-height: .78;
  color: #2d1b62;
  font-weight: 950;
  letter-spacing: -1px;
}

.busca-brand strong span {
  color: #64b9e8;
  margin-left: 2px;
}

.busca-brand small {
  color: #69b9e4;
  text-align: right;
  font-size: 1rem;
  margin-top: 6px;
  letter-spacing: 0;
}

.logo-brand {
  min-width: min(360px, 100%);
  justify-content: center;
}

.logo-brand img {
  width: min(330px, 100%);
  height: auto;
}

.topbar .brand-mark {
  display: none;
}

.topbar .search-shell {
  grid-column: 3;
  height: 62px;
  align-self: center;
  border: 1.5px solid #2d1b62;
  border-radius: 13px;
  background: rgba(255,255,255,.94);
  box-shadow: none;
  overflow: visible;
}

.search-shell input {
  height: 60px;
  padding-left: 40px;
  color: #57545f;
  background: transparent;
}

.search-shell button {
  width: 72px;
  margin: 0;
  border-radius: 0 12px 12px 0;
  color: transparent;
  background: transparent;
  font-size: 0;
  position: relative;
}

.search-shell button::before {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  border: 3px solid #74777c;
  border-radius: 50%;
  top: 17px;
  left: 19px;
}

.search-shell button::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 3px;
  border-radius: 4px;
  background: #74777c;
  transform: rotate(45deg);
  top: 41px;
  left: 42px;
}

.admin-link { display: none; }

.hero {
  width: min(1295px, 100%);
  min-height: 270px;
  height: 270px;
  margin: 0 auto 48px;
  border-radius: 4px;
  background: #10104b;
  box-shadow: 0 20px 45px rgba(24, 33, 47, .13);
}

.hero-slide::after {
  background:
    linear-gradient(90deg, rgba(4, 18, 80, .96) 0 42%, rgba(8, 18, 83, .78) 58%, rgba(15, 15, 76, .94) 100%);
}

.hero-slide img {
  opacity: .38;
  filter: saturate(.72) contrast(1.08);
}

.hero-caption {
  left: clamp(32px, 7vw, 96px);
  right: 48px;
  top: 20px;
  bottom: 0;
  max-width: none;
  display: grid;
  grid-template-columns: minmax(260px, 430px) 1fr;
  gap: 34px;
  align-items: start;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
}

.hero-caption strong {
  align-self: start;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 9vw, 7.1rem);
  line-height: .95;
  font-weight: 500;
  color: #fff;
}

.hero-caption strong::after {
  content: "SOLUCOES EM SEGURANCA";
  display: block;
  margin-top: 4px;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: #eca81d;
  font-size: clamp(1.1rem, 2.4vw, 1.75rem);
  font-weight: 800;
}

.hero-caption span {
  margin-top: 8px;
  color: #fff;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  line-height: 1.55;
  max-width: 650px;
}

.hero-caption span::before {
  content: "Cercas Eletricas\A Portoes Eletronicos\A Instalacoes e manutencao de cameras de seguranca\A Alarmes residenciais e comerciais\A Instalacoes eletricas em geral\A Monitoramento 24hrs";
  white-space: pre-line;
  display: block;
}

.hero-caption span {
  font-size: 0;
}

.hero-caption span::before {
  font-size: clamp(1.15rem, 2.1vw, 1.55rem);
  line-height: 1.32;
}

.hero-caption a {
  position: absolute;
  left: -96px;
  bottom: 0;
  min-width: 560px;
  height: 70px;
  align-items: center;
  padding-left: 100px;
  border-radius: 0;
  color: #fff;
  background: #e9a11b;
  font-size: 0;
}

.hero-caption a::before {
  content: "(66) 99989-9154";
  font-size: 2rem;
  font-weight: 950;
}

.hero-search-card {
  display: none;
}

.slider-controls .slider-prev { transform: none; }
.slider-controls .slider-next { transform: none; }

.trust-strip {
  max-width: 1295px;
  margin: 0 auto 40px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  border: 0;
  background: transparent;
}

.trust-strip article {
  min-height: 104px;
  display: grid;
  grid-template-columns: 154px 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(203, 213, 225, .82);
  border-radius: 4px;
  background: rgba(255,255,255,.48);
}

.trust-strip article:not(:has(img)) {
  grid-template-columns: 1fr;
  padding-left: 18px;
}

.notice-link {
  width: 100%;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.notice-link strong,
.notice-link span {
  display: block;
}


.trust-strip img {
  width: 154px;
  height: 88px;
  border-radius: 8px;
  object-fit: cover;
}

.trust-strip strong {
  display: block;
  color: #17c9b8;
  text-transform: uppercase;
  font-size: .82rem;
  letter-spacing: 0;
  margin-bottom: 8px;
}

.trust-strip span {
  display: block;
  color: #3f3f46;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.12;
  font-weight: 900;
}

.section {
  max-width: 1295px;
  margin: 0 auto;
  padding: 0 0 44px;
}

.section-head {
  margin-bottom: 18px;
}

.section-head h2 {
  font-size: 1.35rem;
  color: #35353c;
}

.eyebrow {
  color: #17c9b8;
}

.categories-section .section-head {
  display: none;
}

.category-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px;
}

.category-card {
  min-height: 164px;
  display: grid;
  grid-template-rows: 120px auto;
  justify-items: center;
  align-content: start;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
}

.category-card .category-logo {
  width: 100%;
  height: 120px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #2d1b62;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 950;
}

.category-card strong {
  color: #202027;
  font-size: .95rem;
  text-align: center;
}

.category-card small {
  display: none;
}

.company-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.company-card {
  border: 0;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .09);
}

.ad-band {
  max-width: 1295px;
  margin: 0 auto 44px;
  padding: 0;
}

.ad-band a {
  background: linear-gradient(135deg, #10104b, #161870 55%, #e9a11b 55%);
}

.content-hub {
  max-width: none;
  padding-left: calc((100% - min(1295px, 100%)) / 2);
  padding-right: calc((100% - min(1295px, 100%)) / 2);
  background: rgba(255,255,255,.28);
}

@media (max-width: 1040px) {
  .topbar {
    grid-template-columns: 44px 1fr;
    padding: 22px 18px;
  }

  .topbar .search-shell {
    grid-column: 1 / -1;
  }

  .trust-strip,
  .category-grid,
  .company-grid {
    padding-left: 16px;
    padding-right: 16px;
  }

  .company-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }

  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .topbar {
    grid-template-columns: 44px 1fr 44px;
  }

  .menu-toggle {
    grid-column: 1;
    grid-row: 1;
    z-index: 2;
  }

  .logo-brand {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: center;
  }

  .logo-brand img {
    width: min(330px, calc(100vw - 120px));
  }

  .topbar .search-shell {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .busca-brand {
    min-width: 0;
  }

  .busca-brand strong {
    font-size: 2rem;
  }

  .hero {
    width: calc(100% - 24px);
    height: 330px;
    min-height: 330px;
  }

  .hero-caption {
    left: 22px;
    right: 22px;
    top: 18px;
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .hero-caption strong {
    font-size: 3.2rem;
  }

  .hero-caption span::before {
    font-size: 1.05rem;
    line-height: 1.45;
  }

  .hero-caption a {
    left: -22px;
    min-width: calc(100% + 44px);
    height: 58px;
    padding-left: 28px;
  }

  .hero-caption a::before {
    font-size: 1.35rem;
  }

  .trust-strip article,
  .trust-strip article:not(:has(img)) {
    grid-template-columns: 1fr;
  }

  .trust-strip img {
    width: 100%;
    height: 140px;
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .company-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  body {
    background-size: auto;
    overflow-x: hidden;
  }

  .topbar {
    grid-template-columns: 42px 1fr 42px;
    gap: 10px;
    padding: 18px 14px 16px;
  }

  .menu-toggle {
    grid-column: 1;
    grid-row: 1;
    z-index: 2;
    width: 42px;
    height: 42px;
    align-self: center;
  }

  .logo-brand {
    grid-column: 1 / -1;
    grid-row: 1;
    min-width: 0;
    justify-self: center;
  }

  .logo-brand img {
    width: min(270px, calc(100vw - 120px));
  }

  .admin-link {
    display: none;
  }

  .admin-logout {
    display: none;
  }

  .topbar .search-shell {
    grid-column: 1 / -1;
    grid-row: 2;
    height: 56px;
    border-radius: 10px;
  }

  .search-shell input {
    height: 54px;
    padding-left: 18px;
    padding-right: 4px;
    font-size: .92rem;
  }

  .search-shell button {
    width: 58px;
  }

  .search-shell button::before {
    width: 21px;
    height: 21px;
    top: 15px;
    left: 14px;
  }

  .search-shell button::after {
    top: 37px;
    left: 34px;
  }

  .suggestions {
    max-height: 60vh;
    overflow-y: auto;
  }

  .hero {
    width: calc(100% - 24px);
    height: 220px;
    min-height: 220px;
    margin-bottom: 26px;
  }

  .slider-controls {
    padding: 0 12px;
  }

  .slider-controls button {
    width: 40px;
    height: 40px;
    font-size: 2rem;
  }

  .trust-strip {
    width: calc(100% - 28px);
    margin-bottom: 28px;
    padding-left: 0;
    padding-right: 0;
    gap: 14px;
  }

  .trust-strip article,
  .trust-strip article:not(:has(img)) {
    min-height: auto;
    padding: 18px;
  }

  .trust-strip span {
    font-size: 1.22rem;
  }

  .section {
    width: 100%;
    padding-left: 14px;
    padding-right: 14px;
  }

  .section-head {
    gap: 14px;
    margin-bottom: 14px;
  }

  .section-head h2 {
    font-size: 1.35rem;
    line-height: 1.18;
  }

  #categoryFilter {
    width: 100%;
  }

  .company-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-left: 0;
    padding-right: 0;
  }

  .company-media {
    aspect-ratio: 16 / 8;
  }

  .company-body h3 {
    font-size: 1.15rem;
  }

  .home-contact-actions {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer {
    gap: 14px;
    padding: 24px 14px 30px;
  }

  .footer-actions {
    gap: 10px;
  }

  .footer-actions a {
    min-height: 38px;
    padding: 0 12px;
    font-size: .86rem;
  }

  .developer-credit img {
    width: min(100%, 138px);
  }

  .side-menu {
    width: min(310px, 86vw);
  }

  .business-profile {
    grid-template-columns: 1fr;
    margin-top: 16px;
    margin-bottom: 28px;
  }

  .business-profile-image {
    padding: 8px;
  }

  .business-profile-content h1 {
    font-size: 2.1rem;
    line-height: 1.02;
  }

  .business-actions-row {
    gap: 10px;
  }

  .phone-strip {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    border-radius: 14px;
    padding: 8px;
  }

  .phone-strip a {
    padding: 8px;
  }

  .phone-strip a + a {
    border-left: 0;
    border-top: 1px solid #d7dde6;
  }

  .whatsapp-outline,
  .instagram-outline {
    width: 100%;
  }

  .business-meta-row {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 16px;
  }

  .business-details-simple {
    padding-left: 14px;
    padding-right: 14px;
  }

  .map-frame {
    aspect-ratio: 4 / 3;
  }

  .admin-main {
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
    padding: 16px 14px;
  }

  .admin-shell,
  .admin-nav {
    width: 100%;
    min-width: 0;
  }

  .admin-nav {
    display: grid;
    gap: 8px;
    padding: 12px 14px;
  }

  .admin-nav a {
    margin-bottom: 0;
  }

  .admin-grid {
    grid-template-columns: 1fr;
    width: 100%;
    min-width: 0;
  }

  .admin-card {
    min-width: 0;
    padding: 16px;
  }

  .admin-form input,
  .admin-form select,
  .admin-form textarea,
  .admin-form button,
  .file-field,
  .check-field {
    width: 100%;
    min-width: 0;
  }

  .admin-card h1,
  .admin-card h2 {
    font-size: 1.55rem;
  }

  .admin-item {
    grid-template-columns: 1fr;
  }

  .admin-actions {
    justify-content: start;
  }
}
