/* Empresas de Loures — Design System Premium v2
   Fonts: Sora (display) + Inter (body). Classes 100% compatíveis com v1. */
:root {
  --brand-950: #0A1633;
  --brand-900: #0A2472;
  --brand-800: #0E3AA8;
  --brand-600: #0B5FFF;
  --brand-500: #4D8BFF;
  --brand-100: #E2EBFF;
  --brand-50: #EEF3FF;
  --accent: #FF6B1A;
  --accent-dark: #D9530A;
  --accent-soft: #FFF1E6;
  --ink: #101828;
  --muted: #5D6679;
  --line: #E5E1D6;
  --bg: #F7F5F0;
  --bg-soft: #EFECE3;
  --card: #FFFFFF;
  --success: #16A34A;
  --success-bg: #E7F7ED;
  --danger: #DC2626;
  --danger-bg: #FDECEC;
  --warning: #D97706;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 24px;
  --shadow-xs: 0 1px 2px rgba(10, 22, 51, .06);
  --shadow: 0 1px 2px rgba(10, 22, 51, .05), 0 8px 24px -8px rgba(10, 36, 114, .14);
  --shadow-lg: 0 2px 4px rgba(10, 22, 51, .05), 0 24px 64px -16px rgba(10, 36, 114, .28);
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --max: 1200px;
  --header-h: 76px;
  --gap: 1.25rem;
  --ring: 0 0 0 4px rgba(11, 95, 255, .16);
}

*,
*::before,
*::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; }
img, picture, video, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
ul[role="list"], ol[role="list"] { list-style: none; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--brand-600); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
a:active { color: var(--brand-800); }
:focus-visible { outline: 3px solid var(--brand-600); outline-offset: 2px; border-radius: 8px; }
::selection { background: var(--brand-600); color: #fff; }
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--brand-900);
  color: #fff; padding: .7rem 1.1rem; z-index: 200; border-radius: 0 0 12px 0; font-weight: 700;
}
.skip-link:focus { left: 0; }
.container { max-width: var(--max); margin-inline: auto; padding-inline: 1.5rem; width: 100%; }

/* ---------- Sections & type ---------- */
.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.section--soft { background: var(--bg-soft); border-block: 1px solid var(--line); }
.section--brand {
  background:
    radial-gradient(700px 320px at 85% 10%, rgba(255, 107, 26, .28), transparent 60%),
    radial-gradient(800px 380px at 10% 0%, rgba(77, 139, 255, .35), transparent 60%),
    linear-gradient(135deg, var(--brand-950), var(--brand-900) 60%, var(--brand-800));
  color: #fff;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display);
  font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-800); background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  padding: .38rem .9rem; border-radius: 999px; margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--brand-600)); flex: none; }
.section--brand .eyebrow, .hero .eyebrow {
  background: rgba(255, 255, 255, .12); border-color: rgba(255,255,255,.22);
  color: #fff; box-shadow: none; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
h1, h2, h3, h4 {
  font-family: var(--font-display); line-height: 1.12; letter-spacing: -.025em; text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 1.2rem + 4.2vw, 3.6rem); font-weight: 800; margin-bottom: .7rem; }
h2 { font-size: clamp(1.55rem, 1.1rem + 2.4vw, 2.35rem); font-weight: 800; margin-bottom: .6rem; }
h3 { font-size: clamp(1.05rem, .95rem + .6vw, 1.25rem); font-weight: 700; margin-bottom: .4rem; }
h4 { font-size: 1rem; font-weight: 700; }
.lead { color: var(--muted); font-size: clamp(1.02rem, .95rem + .5vw, 1.2rem); max-width: 62ch; line-height: 1.7; }
.small { font-size: .87rem; }
.muted { color: var(--muted); }
.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.6rem; }
.mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; }
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 2.6rem 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  border: 1px solid transparent; cursor: pointer;
  font-family: var(--font-display); font-weight: 700; font-size: .97rem; line-height: 1.2;
  padding: .85rem 1.5rem; border-radius: 14px; text-decoration: none !important; white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, filter .18s ease;
}
.btn:hover { transform: translateY(-2px); text-decoration: none !important; }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--brand-500) 0%, var(--brand-600) 45%, var(--brand-800) 100%);
  color: #fff; box-shadow: 0 10px 26px -8px rgba(11, 95, 255, .55), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn-primary:hover { filter: brightness(1.06); box-shadow: 0 16px 34px -8px rgba(11, 95, 255, .6), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-accent {
  background: linear-gradient(135deg, #FF8A3D 0%, var(--accent) 45%, var(--accent-dark) 100%);
  color: #fff; box-shadow: 0 10px 26px -8px rgba(255, 107, 26, .55), inset 0 1px 0 rgba(255,255,255,.3);
}
.btn-accent:hover { filter: brightness(1.05); box-shadow: 0 16px 34px -8px rgba(255, 107, 26, .6), inset 0 1px 0 rgba(255,255,255,.3); }
.btn-ghost { background: rgba(255,255,255,.7); border-color: var(--line); color: var(--ink); box-shadow: var(--shadow-xs); }
.btn-ghost:hover { border-color: var(--brand-600); color: var(--brand-600); background: #fff; }
.btn-light { background: #fff; color: var(--brand-900); box-shadow: var(--shadow); }
.btn-light:hover { background: var(--brand-50); }
.btn-danger { background: linear-gradient(135deg, #EF4444, #B91C1C); color: #fff; box-shadow: 0 10px 24px -8px rgba(220, 38, 38, .5); }
.btn-sm { padding: .55rem 1rem; font-size: .87rem; border-radius: 10px; }
.btn-lg { padding: 1.05rem 2rem; font-size: 1.08rem; border-radius: 16px; }
.btn-block { width: 100%; }
.btn-icon { padding: .55rem; border-radius: 12px; }

/* ---------- Header glass ---------- */
.header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5);
  background: rgba(247, 245, 240, .78);
  border-bottom: 1px solid rgba(10, 36, 114, .1);
  transition: box-shadow .25s ease, background .25s ease;
}
.header.is-scrolled, .header.scrolled {
  background: rgba(247, 245, 240, .92);
  box-shadow: 0 12px 32px -12px rgba(10, 36, 114, .22);
}
.header__inner { height: var(--header-h); display: flex; align-items: center; gap: 1rem; }
.logo {
  display: flex; align-items: center; gap: .65rem;
  font-family: var(--font-display); font-weight: 800; font-size: 1.14rem; line-height: 1.1;
  color: var(--ink); text-decoration: none !important;
}
.logo img {
  width: 44px; height: 44px; flex: none; border-radius: 12px;
  background: #fff; box-shadow: var(--shadow-xs); border: 1px solid var(--line);
}
.logo small { display: block; font-family: var(--font-body); font-size: .66rem; font-weight: 600;
  color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.nav { display: flex; gap: 1.15rem; margin-left: auto; align-items: center; }
.nav a {
  color: var(--ink); font-weight: 600; font-size: .94rem; text-decoration: none !important;
  padding: .5rem .2rem; border-bottom: 2px solid transparent; position: relative;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--brand-600); border-color: var(--brand-600); }
.nav .btn { border-bottom: 0; }
.burger {
  display: none; margin-left: auto; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: .55rem .7rem; cursor: pointer; color: var(--ink);
  font-size: 1.2rem; min-width: 44px; min-height: 44px; line-height: 1; box-shadow: var(--shadow-xs);
}
@media (max-width: 900px) {
  .nav { display: none; }
  .nav.open {
    display: flex; position: absolute; top: var(--header-h); left: 0; right: 0;
    background: rgba(255,255,255,.97); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 1rem 1.25rem 1.4rem; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg); margin-left: 0;
  }
  .nav.open a { padding: .7rem .2rem; border-bottom: 1px solid var(--line); }
  .nav.open .btn { margin-top: .8rem; }
  .burger { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(720px 340px at 88% -10%, rgba(255, 107, 26, .32), transparent 62%),
    radial-gradient(900px 420px at 12% -12%, rgba(77, 139, 255, .5), transparent 62%),
    linear-gradient(135deg, var(--brand-950) 0%, var(--brand-900) 55%, #14389B 100%);
  color: #fff; padding: clamp(3.5rem, 6vw, 5rem) 0 clamp(3rem, 5vw, 4rem);
}
.hero::before {
  content: ""; position: absolute; width: 560px; height: 560px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.1); right: -160px; top: -180px; pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: auto -10% -42% -10%; height: 62%;
  background: var(--bg); border-radius: 60% 60% 0 0 / 100% 100% 0 0;
  opacity: .05; pointer-events: none;
}
.hero h1 { color: #fff; max-width: 18ch; }
.hero .lead { color: #CBD8F5; }
.hero__stats { display: flex; gap: 2.2rem; margin-top: 1.6rem; flex-wrap: wrap; }
.hero__stats b { display: block; font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; line-height: 1.1; }
.hero__stats span { font-size: .85rem; color: #B9C8EA; }
.search-panel {
  background: rgba(255, 255, 255, .96); color: var(--ink);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 20px; box-shadow: var(--shadow-lg);
  padding: 1.1rem; margin-top: 2rem;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: .7rem;
  position: relative; z-index: 2;
}
.search-panel label { font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--muted); display: block; margin-bottom: .3rem; }
.search-panel input, .search-panel select {
  width: 100%; border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 12px; padding: .8rem .95rem; transition: border-color .15s, box-shadow .15s;
}
.search-panel input:focus, .search-panel select:focus {
  border-color: var(--brand-600); outline: none; box-shadow: var(--ring);
}
.search-panel .btn { align-self: end; }
.search-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--card);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg);
  overflow: hidden; z-index: 30; max-height: 320px; overflow-y: auto;
}
.search-results a { display: flex; gap: .7rem; align-items: center; justify-content: space-between;
  padding: .7rem 1rem; color: var(--ink); text-decoration: none !important; }
.search-results a:hover { background: var(--brand-50); }
@media (max-width: 900px) {
  .search-panel { grid-template-columns: 1fr; }
  .search-panel .btn { width: 100%; justify-content: center; }
}

/* ---------- Category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 1rem; }
.cat-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1rem; text-align: center; color: var(--ink); text-decoration: none !important;
  box-shadow: var(--shadow-xs);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.cat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: rgba(11,95,255,.4); }
.cat-card svg {
  width: 44px; height: 44px; margin: 0 auto .7rem; color: #fff;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-800));
  border-radius: 14px; padding: 9px; box-shadow: 0 8px 18px -6px rgba(11,95,255,.5);
}
.cat-card b { display: block; font-family: var(--font-display); font-size: .99rem; font-weight: 700; }
.cat-card span { font-size: .8rem; color: var(--muted); background: var(--bg);
  border: 1px solid var(--line); border-radius: 999px; padding: .12rem .65rem;
  display: inline-block; margin-top: .45rem; font-weight: 600; }

/* ---------- Business cards ---------- */
.biz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(295px, 1fr)); gap: 1.4rem; }
.biz-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow-xs);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.biz-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(11,95,255,.3); }
.biz-card__media { position: relative; aspect-ratio: 16 / 10; background: var(--bg-soft); overflow: hidden; }
.biz-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.biz-card:hover .biz-card__media img { transform: scale(1.05); }
.biz-card__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(10,22,51,0) 45%, rgba(10,22,51,.42) 100%);
}
.badge {
  position: absolute; top: .75rem; left: .75rem; z-index: 2;
  background: rgba(255, 255, 255, .82); color: var(--brand-900);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.7);
  font-size: .74rem; font-weight: 800; padding: .3rem .75rem; border-radius: 999px; letter-spacing: .02em;
  box-shadow: 0 4px 14px rgba(10,22,51,.18);
}
.badge--accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff; border-color: rgba(255,255,255,.35);
}
.badge--static { position: static; }
.fav-btn {
  position: absolute; top: .65rem; right: .65rem; z-index: 2; border: 1px solid rgba(255,255,255,.6);
  background: rgba(255, 255, 255, .85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 50%; width: 40px; height: 40px; cursor: pointer; font-size: 1.1rem; line-height: 1;
  color: var(--ink); box-shadow: 0 4px 14px rgba(10,22,51,.18);
  transition: transform .15s, background .15s;
}
.fav-btn:hover { transform: scale(1.08); }
.fav-btn[aria-pressed="true"] { background: #FFE4D1; color: var(--accent-dark); border-color: #FFC79E; }
.biz-card__body { padding: 1.2rem 1.25rem 1.35rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.biz-card h3 { margin: 0; }
.biz-card h3 a { color: var(--ink); text-decoration: none !important; }
.biz-card h3 a:hover { color: var(--brand-600); }
.rating { color: #E8A100; font-weight: 800; font-size: .9rem; }
.rating small { color: var(--muted); font-weight: 600; }
.biz-meta { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .87rem; color: var(--muted); }
.biz-card__actions { display: flex; gap: .55rem; margin-top: auto; padding-top: .8rem; }
.biz-card__actions .btn { flex: 1; }

/* ---------- CTA ---------- */
.cta-banner {
  background:
    radial-gradient(420px 220px at 90% 0%, rgba(255, 107, 26, .4), transparent 65%),
    linear-gradient(120deg, var(--brand-950), var(--brand-800) 55%, var(--brand-600));
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg); color: #fff; padding: clamp(1.8rem, 4vw, 2.8rem);
  display: grid; grid-template-columns: 1.3fr auto; gap: 1.5rem; align-items: center;
  position: relative; overflow: hidden; box-shadow: var(--shadow-lg);
}
.cta-banner::before { content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%;
  background: rgba(255, 255, 255, .12); right: -90px; top: -90px; pointer-events: none; }
.cta-banner::after { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%;
  background: rgba(255, 255, 255, .08); right: 140px; bottom: -70px; pointer-events: none; }
.cta-banner h2 { color: #fff; }
.cta-banner p { color: #D9E5FF; max-width: 52ch; }
.cta-banner ul { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .45rem; color: #E7EFFF; }
.cta-banner ul li::before { content: "✓"; color: var(--accent); font-weight: 800; margin-right: .5rem; }
@media (max-width: 800px) { .cta-banner { grid-template-columns: 1fr; } }

/* ---------- Posts / testi ---------- */
.post-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-xs);
  transition: transform .2s ease, box-shadow .2s ease;
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.post-card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; background: var(--bg-soft); }
.post-card__body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.post-card time { font-size: .76rem; color: var(--accent-dark); font-weight: 800;
  text-transform: uppercase; letter-spacing: .08em; }
.post-card h3 { margin: 0; }
.post-card p { color: var(--muted); font-size: .95rem; }
.testi {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 2.1rem; box-shadow: var(--shadow); position: relative;
}
.testi::before { content: "\201C"; position: absolute; top: .4rem; left: 1.2rem;
  font-size: 3.4rem; line-height: 1; color: var(--brand-100); font-family: Georgia, serif; }
.testi blockquote { font-size: 1.14rem; font-style: italic; position: relative; line-height: 1.7; }
.testi cite { display: block; margin-top: 1rem; font-style: normal; font-weight: 800; font-family: var(--font-display); }
.testi cite span { display: block; font-weight: 500; color: var(--muted); font-size: .9rem; font-family: var(--font-body); }

/* ---------- Footer rich ---------- */
.footer {
  background: linear-gradient(180deg, #0D1B3D 0%, var(--brand-950) 40%, #060D22 100%);
  color: #C9D6F2; margin-top: 0; position: relative;
}
.footer::before { content: ""; display: block; height: 4px;
  background: linear-gradient(90deg, var(--brand-600), var(--brand-500), var(--accent), var(--accent-dark)); }
.footer a { color: #DCE6FF; }
.footer a:hover { color: #fff; }
.footer .logo { color: #fff; }
.footer .logo img { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); box-shadow: none; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.2rem; padding: 3.2rem 0 2.2rem; }
.footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1rem;
  padding-bottom: .6rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer ul { list-style: none; padding: 0; display: grid; gap: .55rem; }
.footer ul a { transition: padding-left .15s, color .15s; }
.footer ul a:hover { padding-left: 4px; }
.footer p { font-size: .93rem; color: #A9B9DC; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 1.2rem 0; font-size: .87rem; background: rgba(0,0,0,.2); }
.footer__bottom .container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.social { display: flex; gap: .6rem; }
.social a {
  width: 40px; height: 40px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px; text-decoration: none !important; font-weight: 800;
  transition: transform .15s, background .15s;
}
.social a:hover { background: linear-gradient(135deg, var(--brand-600), var(--brand-800)); color: #fff; transform: translateY(-2px); }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Overlays ---------- */
.cookie-banner {
  position: fixed; bottom: 1rem; left: 1rem; right: 1rem; max-width: 580px;
  background: rgba(255,255,255,.96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg);
  padding: 1.1rem 1.2rem; z-index: 300; display: flex; gap: 1rem; align-items: center;
}
.cookie-banner p { font-size: .9rem; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(4, 10, 28, .62);
  backdrop-filter: blur(4px); display: grid; place-items: center; z-index: 400; padding: 1rem; }
.modal { background: var(--card); border-radius: 22px; max-width: 540px; width: 100%;
  padding: 1.8rem; box-shadow: var(--shadow-lg); max-height: 90vh; overflow-y: auto; border: 1px solid var(--line); }
.toast-wrap { position: fixed; bottom: 1.2rem; right: 1.2rem; display: grid; gap: .6rem; z-index: 500; }
.toast { background: var(--brand-950); color: #fff; padding: .85rem 1.2rem; border-radius: 14px;
  box-shadow: var(--shadow-lg); font-weight: 600; font-size: .92rem; animation: toast-in .25s ease;
  border: 1px solid rgba(255,255,255,.12); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.back-to-top {
  position: fixed; bottom: 1.2rem; left: 1.2rem; width: 48px; height: 48px; border-radius: 14px; border: 0;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-800)); color: #fff; font-size: 1.3rem;
  cursor: pointer; box-shadow: var(--shadow-lg); z-index: 250; transition: transform .15s, filter .15s;
}
.back-to-top:hover { filter: brightness(1.1); transform: translateY(-2px); }

/* ---------- Detail / listing ---------- */
.breadcrumb { font-size: .86rem; color: var(--muted); margin: 1.2rem 0; }
.breadcrumb a { color: var(--brand-600); }
.breadcrumbs { display: flex; gap: .4rem; align-items: center; padding: 1rem 1.5rem 0; font-size: .86rem; color: var(--muted); }
.biz-layout { display: grid; grid-template-columns: 1.65fr .95fr; gap: 1.6rem; align-items: start; }
@media (max-width: 960px) { .biz-layout { grid-template-columns: 1fr; } }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: .6rem; }
.gallery img { border-radius: 16px; object-fit: cover; width: 100%; height: 100%;
  min-height: 150px; background: var(--bg-soft); border: 1px solid var(--line); }
.gallery img:first-child { grid-row: span 2; min-height: 320px; }
@media (max-width: 640px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery img:first-child { grid-column: span 2; min-height: 220px; }
}
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.5rem; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .5rem; }
.tabs { display: flex; gap: .5rem; border-bottom: 2px solid var(--line); margin: 1.4rem 0 1rem; }
.tabs button { border: 0; background: none; padding: .7rem 1rem; font-weight: 700;
  font-family: var(--font-display); color: var(--muted); cursor: pointer;
  border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--brand-600); border-color: var(--brand-600); }
.sidebar { position: sticky; top: calc(var(--header-h) + 1rem); display: grid; gap: 1rem; }
@media (max-width: 960px) { .sidebar { position: static; } }
.map-box { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line);
  min-height: 260px; background: var(--bg-soft); box-shadow: var(--shadow-xs); }
.map-box #map, .map-box #map-diretorio, .map-box #map-preview, .map-box iframe {
  width: 100%; height: 280px; border: 0; display: block; }
.map-box #map-preview { height: 220px; }
.contact-list { list-style: none; padding: 0; display: grid; gap: .6rem; margin: .8rem 0; }
.contact-list li { display: flex; gap: .5rem; align-items: baseline; }
.contact-list a { color: var(--ink); text-decoration: none !important; font-weight: 600; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--brand-600); }
.qr-row { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1rem; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .35rem; }
.field input, .field select, .field textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: .8rem .95rem;
  background: #fff; color: var(--ink); box-shadow: var(--shadow-xs);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brand-600); outline: none; box-shadow: var(--ring);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .75; }
.field textarea { resize: vertical; min-height: 110px; }
.field .hint { font-size: .82rem; color: var(--muted); font-weight: 500; }
.field .error { font-size: .82rem; color: var(--danger); font-weight: 700; }
fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 1rem; }
legend { font-weight: 800; padding: 0 .5rem; font-family: var(--font-display); }
input[type="checkbox"] { width: 1.05rem; height: 1.05rem; accent-color: var(--brand-600); }
input[type="file"] { padding: .6rem; background: var(--bg-soft); }

/* ---------- Filters / toolbar / chips / pagination ---------- */
.filters {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.2rem; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr auto;
  gap: .7rem; align-items: end; box-shadow: var(--shadow);
}
@media (max-width: 960px) { .filters { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .filters { grid-template-columns: 1fr; } }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  margin: 1.4rem 0; flex-wrap: wrap; color: var(--muted); }
.toolbar h2 { color: var(--ink); margin: 0; }
.chips { display: flex; gap: .5rem; flex-wrap: wrap; }
.chip { background: #fff; color: var(--brand-800); font-weight: 700; font-size: .82rem;
  border-radius: 999px; padding: .35rem .9rem; border: 1px solid var(--line); cursor: pointer;
  box-shadow: var(--shadow-xs); transition: all .15s; }
.chip:hover { background: var(--brand-600); color: #fff; border-color: var(--brand-600); transform: translateY(-1px); }
.pagination { display: flex; gap: .45rem; justify-content: center; margin: 2rem 0; flex-wrap: wrap; }
.pagination a, .pagination span {
  border: 1px solid var(--line); border-radius: 12px; padding: .55rem .95rem; font-weight: 700;
  color: var(--ink); text-decoration: none !important; background: var(--card); box-shadow: var(--shadow-xs);
}
.pagination a:hover { border-color: var(--brand-600); color: var(--brand-600); transform: translateY(-1px); }
.pagination [aria-current="page"] { background: linear-gradient(135deg, var(--brand-600), var(--brand-800));
  color: #fff; border-color: transparent; }

/* ---------- Prose / table / alerts ---------- */
.prose { max-width: 72ch; }
.prose p { margin-bottom: 1rem; }
.prose ul, .prose ol { margin: 0 0 1rem 1.2rem; }
.prose li { margin-bottom: .35rem; }
.prose h2 { margin-top: 2rem; }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th, .table td { padding: .7rem .8rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted);
  font-family: var(--font-display); }
.alert { border-radius: 14px; padding: .95rem 1.15rem; font-weight: 600; margin-bottom: 1rem; border: 1px solid transparent; }
.alert--ok { background: var(--success-bg); color: #14703A; border-color: #B7E4C7; }
.alert--err { background: var(--danger-bg); color: #A11919; border-color: #F5C2C2; }
.alert ul { margin-left: 1.2rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; }
[x-cloak] { display: none !important; }

/* ---------- Admin (kept compatible) ---------- */
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 70vh; }
.admin-nav { background: linear-gradient(180deg, var(--brand-900), var(--brand-950));
  color: #CBD6F5; padding: 1.4rem 1rem; display: flex; flex-direction: column; gap: .4rem; }
.admin-nav a { color: #DCE6FF; padding: .6rem .8rem; border-radius: 10px;
  text-decoration: none !important; font-weight: 600; font-size: .93rem; }
.admin-nav a:hover, .admin-nav a.active { background: rgba(255, 255, 255, .12); color: #fff; }
.admin-nav .logo { color: #fff; margin-bottom: 1rem; }
.admin-main { padding: 1.6rem; max-width: 1100px; }
.admin-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; margin: 1.2rem 0; }
.admin-stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.2rem; box-shadow: var(--shadow); }
.admin-stat b { display: block; font-family: var(--font-display); font-size: 1.7rem;
  line-height: 1.1; color: var(--brand-600); }
.admin-stat span { font-size: .85rem; color: var(--muted); }
.admin-table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.admin-actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.status { display: inline-block; font-size: .78rem; font-weight: 800; padding: .22rem .7rem;
  border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }
.status--ok { background: var(--success-bg); color: #14703A; }
.status--pending { background: #FEF3C7; color: #92400E; }
.status--off { background: var(--danger-bg); color: #A11919; }
@media (max-width: 860px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-nav { flex-direction: row; overflow-x: auto; align-items: center; }
  .admin-main { padding: 1rem; }
}

@media print {
  .header, .footer, .cookie-banner, .back-to-top, .toast-wrap, .modal-backdrop, .biz-card__actions, .qr-row { display: none !important; }
  body { font-size: 12pt; color: #000; background: #fff; }
  .card, .biz-card { box-shadow: none; break-inside: avoid; }
}



@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ============ RESPONSIVE — mobile-first (<768px, alvo 360px) ============ */
html, body { overflow-x: hidden; }
body { overflow-wrap: break-word; word-break: break-word; }
img, picture, video, iframe { max-width: 100%; }
pre, code, table, p, h1, h2, h3, li, a { overflow-wrap: anywhere; word-break: break-word; }
.nav a, .burger, .btn, .pagination a, .pagination span, .tabs button, .chip, .social a, .fav-btn, .back-to-top { min-height: 44px; }
.nav a { display: inline-flex; align-items: center; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; }
.social a { width: 44px; height: 44px; }
.fav-btn { width: 44px; height: 44px; }
input, select, textarea { font-size: 16px; max-width: 100%; }
.breadcrumbs { overflow-x: auto; white-space: nowrap; padding-bottom: .4rem; -webkit-overflow-scrolling: touch; }
.biz-card, .post-card, .card, .testi, .cta-banner { min-width: 0; max-width: 100%; }
.biz-card__body, .post-card__body { min-width: 0; }
.biz-card__actions { flex-wrap: wrap; }
.biz-card__actions .btn { min-height: 44px; }

@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .container { padding-inline: 1rem; }
  .hero { padding: 2.6rem 0 2.2rem; }
  .hero__stats { gap: 1rem 1.5rem; }
  .search-panel { grid-template-columns: 1fr; padding: .9rem; }
  .search-panel .btn { width: 100%; min-height: 48px; }
  .search-panel input, .search-panel select { font-size: 16px; min-height: 48px; }
  .cat-grid, .biz-grid, .grid-3 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .field label { display: block; margin-bottom: .35rem; }
  .field input, .field select, .field textarea { font-size: 16px; min-height: 48px; }
  .field textarea { min-height: 110px; }
  .map-box #map, .map-box #map-diretorio, .map-box iframe { height: 280px; }
  .footer__grid { grid-template-columns: 1fr; gap: 1.5rem; padding: 2rem 0 1.4rem; }
  .cookie-banner { left: 0; right: 0; bottom: 0; max-width: none; border-radius: 18px 18px 0 0;
    flex-direction: column; align-items: stretch; gap: .8rem;
    padding: 1.1rem 1rem calc(1rem + env(safe-area-inset-bottom)); }
  .cookie-banner > div { display: grid; grid-template-columns: 1fr; gap: .5rem; margin-left: 0 !important; width: 100%; }
  .cookie-banner .btn { width: 100%; min-height: 48px; }
  .modal-backdrop { padding: 0; place-items: end center; }
  .modal { max-width: 100%; width: 100%; min-height: 90vh; max-height: 100dvh;
    border-radius: 18px 18px 0 0; padding: 1.3rem 1rem calc(1.3rem + env(safe-area-inset-bottom)); }
  .toast-wrap { left: 1rem; right: 1rem; bottom: 1rem; }
  .back-to-top { bottom: calc(1.2rem + env(safe-area-inset-bottom)); }
  .table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .tabs button { white-space: nowrap; min-height: 44px; }
}

@media (max-width: 480px) {
  body { font-size: 15px; }
  h1 { font-size: 1.8rem; }
  .section { padding: 2rem 0; }
  .hero { padding: 2.2rem 0 1.8rem; }
  .cat-grid { grid-template-columns: 1fr; }
  .biz-card__actions { flex-direction: column; }
  .biz-card__actions .btn { width: 100%; }
  .cta-banner { padding: 1.5rem 1.1rem; }
  .gallery { grid-template-columns: 1fr; }
  .gallery img:first-child { grid-column: auto; min-height: 220px; }
  .pagination a, .pagination span { padding: .6rem .8rem; }
  .testi { padding: 1.4rem; }
}
