/* ==========================================================================
   Pet Shop Mogi Dog — estilos
   Mobile-first. Sem fontes externas: pilha de sistema (arredondada quando disponível).
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;

  /* Cores — derivadas da logomarca (verde) e da fachada (verde-limão) */
  --green-900: #0f3d20;
  --green-800: #154f2a;
  --green-700: #1b6b36;   /* ações principais (contraste 6,2:1 com branco) */
  --green-500: #5cb46a;   /* verde da logomarca — uso decorativo */
  --hero-green: #10bd63;  /* casa com o fundo da foto principal */
  --lime-300: #c8ef7a;
  --lime-100: #eef9d9;
  --cream-50: #fffdf8;
  --cream-100: #fbf6ea;
  --sand-200: #efe6d2;
  --ink-900: #1c2620;
  --ink-700: #3d4a42;     /* texto secundário (contraste 9:1 no creme) */
  --line: #e2dccb;
  --white: #ffffff;
  --focus: #0b57d0;

  /* Tipografia */
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI", system-ui, sans-serif;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
  --fs-h3: clamp(1.3rem, 1.1rem + 0.8vw, 1.6rem);
  --fs-h2: clamp(1.75rem, 1.3rem + 2vw, 2.6rem);
  --fs-h1: clamp(2.1rem, 1.4rem + 3.4vw, 3.6rem);

  /* Espaço e forma */
  --gutter: 16px;
  --section-y: clamp(3.5rem, 2.5rem + 4vw, 6.5rem);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 1px 2px rgba(15, 61, 32, .06), 0 10px 28px -12px rgba(15, 61, 32, .22);
  --header-h: 72px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--cream-50);
  color: var(--ink-900);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
ul, ol { padding: 0; margin: 0; list-style: none; }
h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 .6em;
  color: var(--green-900);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); font-weight: 800; }
h2 { font-size: var(--fs-h2); font-weight: 800; }
h3 { font-size: var(--fs-h3); font-weight: 700; }
p { margin: 0 0 1em; }

a { color: var(--green-700); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { color: var(--green-900); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
@media (min-width: 600px) { :root { --gutter: 24px; } }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--green-900); color: var(--white);
  padding: .7rem 1rem; border-radius: var(--radius-sm);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--white); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.icon-sm { width: 1em; height: 1em; }

.kicker {
  display: inline-block;
  margin-bottom: .75rem;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green-800);
  background: var(--lime-100);
  border-radius: 999px;
  padding: .3rem .8rem;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 48px;
  padding: .75rem 1.3rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { min-height: 44px; padding: .55rem 1rem; font-size: var(--fs-sm); }
.btn-lg { min-height: 56px; padding: .9rem 1.6rem; font-size: 1.125rem; }

.btn-wa { background: var(--green-700); color: var(--white); box-shadow: 0 8px 20px -10px rgba(27, 107, 54, .8); }
.btn-wa:hover { background: var(--green-800); color: var(--white); }

.btn-outline { background: transparent; color: var(--green-800); border-color: var(--green-700); }
.btn-outline:hover { background: var(--green-700); color: var(--white); }

.btn-light { background: var(--white); color: var(--green-800); }
.btn-light:hover { background: var(--lime-100); color: var(--green-900); }

.link-btn {
  background: none; border: 0; padding: 0;
  font: inherit; color: inherit;
  text-decoration: underline; text-underline-offset: .18em;
  cursor: pointer;
}

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 253, 248, .96);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(255, 253, 248, .86); backdrop-filter: blur(8px); }
}
.header-inner {
  display: flex; align-items: center; gap: .75rem;
  min-height: var(--header-h);
}
.brand { display: block; flex: none; margin-right: auto; border-radius: var(--radius-sm); }
.brand img { width: 64px; height: 64px; }

.nav-toggle {
  order: 3;
  display: inline-flex; align-items: center; gap: .4rem;
  min-height: 44px; padding: .5rem .8rem;
  border: 2px solid var(--line); border-radius: 999px;
  background: var(--white); color: var(--green-900);
  font: inherit; font-weight: 700; font-size: var(--fs-sm);
  cursor: pointer;
}
.header-cta { order: 2; }

.site-nav {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--cream-50);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 24px -16px rgba(15, 61, 32, .3);
}
.site-nav.is-open { display: block; }
.site-nav ul { padding: .5rem var(--gutter) 1rem; }
.site-nav a {
  display: block; padding: .85rem .25rem;
  color: var(--ink-900); font-weight: 600; text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.site-nav li:last-child a { border-bottom: 0; }
.site-nav a:hover { color: var(--green-700); }

@media (max-width: 380px) {
  .header-cta span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .header-cta { padding-inline: .8rem; }
  .header-cta .icon { width: 1.4em; height: 1.4em; }
}

@media (min-width: 960px) {
  :root { --header-h: 88px; }
  .brand img { width: 76px; height: 76px; }
  .nav-toggle { display: none; }
  .site-nav {
    display: block; position: static;
    background: none; border: 0; box-shadow: none;
    margin-right: .5rem;
  }
  .site-nav ul { display: flex; gap: .25rem; padding: 0; }
  .site-nav a {
    border: 0; padding: .55rem .8rem; border-radius: 999px;
    font-size: var(--fs-sm);
  }
  .site-nav a:hover { background: var(--lime-100); color: var(--green-900); }
  .header-cta { order: 3; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--hero-green);
  isolation: isolate;
}
.hero-media img {
  width: 100%;
  aspect-ratio: 5 / 2;
  object-fit: cover;
  object-position: 82% 30%;
}
.hero-layout { position: relative; margin-top: -1.5rem; padding-bottom: 1.5rem; }
.hero-card {
  background: var(--cream-50);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.25rem 1.25rem;
  box-shadow: var(--shadow);
}
.hero-card .kicker { margin-bottom: .6rem; }
.hero-card h1 { margin-bottom: .45em; }
.hero-card h1 { font-size: clamp(1.75rem, 1.2rem + 2.6vw, 2.2rem); }
.hero-card .lead { font-size: 1rem; line-height: 1.5; color: var(--ink-700); margin-bottom: 0; }
.hero-cta { margin: 1rem 0 .25rem; }

/* Celulares baixos (ex.: 360 × 640): foto e texto mais compactos. */
@media (max-width: 599px) and (max-height: 700px) {
  .hero-media img { aspect-ratio: 3 / 1; }
  .hero-card { padding-top: 1.1rem; }
  .hero-card .lead { font-size: .9375rem; }
  .hero-cta { margin-top: .75rem; }
  .hero-cta .btn { min-height: 50px; }
}
.cta-label { font-weight: 700; margin-bottom: .6rem; color: var(--green-900); }
.hero-cta .btn { width: 100%; }
.hero-links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.hero-links a {
  display: inline-flex; align-items: center; gap: .35rem;
  min-height: 44px;
  font-weight: 700; color: var(--green-800);
}
.hero-links .icon { width: 1.1em; height: 1.1em; transition: transform .2s ease; }
.hero-links a:hover .icon { transform: translateX(3px); }

@media (min-width: 600px) {
  .hero-media img { aspect-ratio: 16 / 9; object-position: 85% 40%; }
  .hero-cta .btn { width: auto; }
  .hero-card { padding: 2rem 2rem 1.75rem; }
  .hero-card h1 { font-size: var(--fs-h1); }
  .hero-card .lead { font-size: 1.0625rem; }
}

/* Desktop: o topo ocupa a altura da tela (menos o cabeçalho) e o cartão
   se ajusta à altura disponível, para o botão de WhatsApp ficar sempre visível. */
@media (min-width: 960px) {
  .hero {
    min-height: calc(100vh - var(--header-h));
    min-height: calc(100svh - var(--header-h));
    display: flex; align-items: center;
  }
  .hero-media { position: absolute; inset: 0; z-index: -1; }
  .hero-media img {
    width: 100%; height: 100%;
    aspect-ratio: auto;
    object-position: right center;
  }
  .hero-layout { margin-top: 0; padding-block: clamp(1rem, 3.5vh, 3rem); }
  .hero-card {
    max-width: 620px;
    padding: clamp(1.25rem, 3.5vh, 2.5rem) 2.25rem;
    background: rgba(255, 253, 248, .97);
  }
  .hero-card h1 { font-size: clamp(2rem, 6vh, 3.4rem); }
  .hero-card .lead { font-size: clamp(1rem, 2.4vh, 1.1875rem); line-height: 1.55; }
  .hero-cta {
    display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem;
    margin: clamp(.75rem, 2.5vh, 1.5rem) 0 clamp(.25rem, 1vh, .75rem);
  }
  .cta-label { flex-basis: 100%; margin-bottom: 0; }
}

/* ---------- Seções ---------- */
.section { padding-block: var(--section-y); }
.section-head { margin-bottom: 2rem; }
.section-head h2 { margin-bottom: .4rem; }

/* Sobre */
.about-grid { display: grid; gap: 2rem; align-items: center; }
.about-media img {
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3; object-fit: cover;
  box-shadow: var(--shadow);
}
.about-text p { color: var(--ink-700); font-size: var(--fs-lg); }
.about-badge {
  display: flex; align-items: center; gap: 1rem;
  margin-top: 1.5rem !important;
  padding: 1rem 1.2rem;
  background: var(--lime-100);
  border-left: 6px solid var(--green-500);
  border-radius: var(--radius-sm);
  font-size: var(--fs-base) !important;
}
.about-badge strong {
  font-family: var(--font-display);
  font-size: 2.4rem; line-height: 1;
  color: var(--green-700);
}
.about-badge span { color: var(--green-900); font-weight: 600; }

@media (min-width: 860px) {
  .about-grid { grid-template-columns: 1.05fr 1fr; gap: 4rem; }
}

/* Serviços */
.services {
  background: var(--cream-100);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.svc {
  display: grid; gap: 1.5rem;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}
.svc-media { display: grid; gap: .75rem; }
.svc-media img {
  width: 100%;
  aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius);
}
.svc-media--pair { grid-template-columns: 1fr 1fr; }
.svc-media--pair img { aspect-ratio: 1 / 1; }
.svc-body h3 { margin-bottom: 1rem; }

.paw-list li {
  position: relative;
  padding: .6rem 0 .6rem 2rem;
  border-bottom: 1px dashed var(--line);
}
.paw-list li:last-child { border-bottom: 0; }
.paw-list li::before {
  content: "";
  position: absolute; left: 0; top: 1.05rem;
  width: 1.1rem; height: .65rem;
  border-radius: 999px;
  background: var(--lime-300);
  box-shadow: inset 0 0 0 2px var(--green-500);
}

.tech-list > div {
  padding: .9rem 0;
  border-bottom: 1px dashed var(--line);
}
.tech-list > div:last-child { border-bottom: 0; }
.tech-list dt {
  font-family: var(--font-display);
  font-weight: 800; font-size: 1.125rem;
  color: var(--green-800);
}
.tech-list dd { margin: .2rem 0 0; color: var(--ink-700); }

@media (min-width: 860px) {
  .svc {
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: 3rem;
    padding: 1.75rem;
  }
  .svc:nth-of-type(even) .svc-media { order: 2; }
  .svc-body { padding-right: 1rem; }
  .svc:nth-of-type(even) .svc-body { padding: 0 0 0 1rem; }
}

/* Outras opções */
.others { margin-top: 3rem; }
.others-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}
.tile {
  position: relative;
  display: flex; flex-direction: column; justify-content: flex-end; gap: .75rem;
  min-height: 150px;
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
}
.tile-icon {
  display: grid; place-items: center;
  width: 52px; height: 52px; margin-bottom: auto;
  border-radius: 16px;
  background: var(--lime-100);
  color: var(--green-700);
}
.tile-icon .icon { width: 28px; height: 28px; }
.tile-name {
  font-family: var(--font-display);
  font-weight: 800; font-size: 1.0625rem; line-height: 1.25;
  color: var(--green-900);
}
.tile--photo { grid-column: 1 / -1; min-height: 220px; padding: 0; border: 0; }
.tile--photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.tile--photo .tile-name {
  position: relative;
  margin: 1rem; padding: .4rem .9rem;
  align-self: flex-start;
  background: var(--cream-50);
  border-radius: 999px;
}
.others-note { margin-top: 1.25rem; color: var(--ink-700); }
.others-note a { font-weight: 700; }

@media (min-width: 700px) {
  .others-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tile--photo { grid-column: span 2; grid-row: span 2; min-height: 0; }
}
@media (min-width: 1024px) {
  .others-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .tile { grid-column: span 1; min-height: 170px; }
  .tile--photo { grid-column: span 2; grid-row: auto; }
}

/* Antes e depois */
.results { margin-top: 3.5rem; }
.results-grid { display: grid; gap: 1rem; }
.results figure {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .6rem .6rem .2rem;
}
.results img { border-radius: calc(var(--radius) - 6px); width: 100%; }
.results figcaption {
  padding: .6rem .4rem;
  font-family: var(--font-display); font-weight: 800;
  color: var(--green-800);
}
@media (min-width: 640px) { .results-grid { grid-template-columns: 1fr 1fr; } }

/* Diferenciais */
.highlights-grid { display: grid; gap: 2.5rem; align-items: center; }
.check-list { display: grid; gap: .25rem; }
.check-list li {
  display: flex; gap: .85rem; align-items: flex-start;
  padding: .85rem 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-lg);
}
.check-list li:last-child { border-bottom: 0; }
.check-list .icon {
  width: 1.75rem; height: 1.75rem; padding: .3rem;
  margin-top: .05rem;
  border-radius: 50%;
  background: var(--green-700); color: var(--white);
}
.highlights-media img {
  border-radius: 50% 50% var(--radius-lg) var(--radius-lg) / 38% 38% var(--radius-lg) var(--radius-lg);
  aspect-ratio: 4 / 5; object-fit: cover; object-position: 40% center;
  width: 100%;
}
@media (min-width: 860px) {
  .highlights-grid { grid-template-columns: 1.4fr 1fr; gap: 4.5rem; }
}

/* Horário */
.hours { background: var(--green-900); color: #e9f3ea; }
.hours h2 { color: var(--white); }
.hours .kicker { background: rgba(200, 239, 122, .16); color: var(--lime-300); }
.hours .section-head p { color: #d7e6d9; }
.hours .section-head a { color: var(--lime-300); font-weight: 700; }
.hours .section-head a:hover { color: var(--white); }
.wa-inline { display: inline-flex; align-items: center; gap: .4rem; vertical-align: bottom; }
.wa-inline .icon { width: 1.35em; height: 1.35em; color: #25d366; } /* verde oficial do WhatsApp */
.hours :focus-visible { outline-color: var(--lime-300); }

.hours-grid { display: grid; gap: 1rem; align-items: start; }
.hours-table {
  width: 100%;
  border-collapse: separate; border-spacing: 0;
  background: var(--cream-50); color: var(--ink-900);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-size: var(--fs-base);
}
.hours-table thead th {
  background: var(--lime-100);
  text-align: left; padding: .9rem 1.25rem;
  font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--green-800);
}
.hours-table thead th:last-child, .hours-table td { text-align: right; }
.hours-table tbody th, .hours-table td {
  padding: .85rem 1.25rem;
  border-top: 1px solid var(--line);
  font-weight: 600;
}
.hours-table tbody th { text-align: left; }
.hours-table td { font-variant-numeric: tabular-nums; }
.hours-table .is-closed td { color: #8a3b1e; }
.hours-table .is-today { background: #f6fbe9; }
.hours-table .is-today th { box-shadow: inset 6px 0 0 var(--green-500); }
.today-tag {
  display: inline-block; margin-left: .5rem;
  padding: .1rem .55rem; border-radius: 999px;
  background: var(--green-700); color: var(--white);
  font-size: .75rem; font-weight: 700; vertical-align: middle;
}
@media (min-width: 860px) {
  .hours-grid { grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: center; }
}

/* Contato */
.contact-grid { display: grid; gap: 2.5rem; align-items: center; }
.contact address {
  font-style: normal;
  font-size: var(--fs-lg);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.contact address strong { font-family: var(--font-display); color: var(--green-900); font-size: 1.25em; }
.contact-list { margin: 2rem 0 0; display: grid; gap: 1.25rem; }
.contact-list dt {
  font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-700);
}
.contact-list dd { margin: .25rem 0 0; font-size: var(--fs-lg); }
.contact-list dd > a { font-weight: 700; }
.social { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.social a {
  display: inline-flex; align-items: center; gap: .45rem;
  min-height: 44px; font-weight: 700;
}
.contact-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; }
.contact-media figcaption { margin-top: .6rem; font-size: var(--fs-sm); color: var(--ink-700); }
@media (min-width: 960px) {
  .contact-grid { grid-template-columns: 1fr 1.1fr; gap: 4rem; }
}

/* Chamada final */
.final-cta {
  position: relative;
  overflow: hidden;
  background: var(--green-700);
  color: var(--white);
  padding-block: var(--section-y);
  text-align: center;
}
.final-cta-inner { position: relative; max-width: 760px; }
.final-cta h2 { color: var(--white); }
.final-cta p { font-size: var(--fs-lg); color: #eaf5ec; }
.final-paw {
  position: absolute; z-index: 0;
  width: 220px; height: 220px;
  right: -60px; top: -70px;
  color: rgba(255, 255, 255, .08);
  transform: rotate(18deg);
}
.final-cta h2, .final-cta p, .final-actions { position: relative; z-index: 1; }
.final-actions {
  display: flex; flex-direction: column; align-items: center; gap: 1.25rem;
  margin-top: 1.75rem;
}
.final-actions .btn { max-width: 100%; }
.final-social { display: flex; gap: .75rem; }
.final-social a {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .55);
  color: var(--white);
  transition: background-color .2s ease;
}
.final-social a:hover { background: rgba(255, 255, 255, .15); }
.final-cta :focus-visible { outline-color: var(--white); }

/* ---------- Rodapé ---------- */
.site-footer {
  background: var(--cream-100);
  border-top: 1px solid var(--line);
  padding-block: 2.25rem calc(2.25rem + 72px);
  font-size: var(--fs-sm);
  color: var(--ink-700);
}
.footer-inner { display: grid; gap: 1.25rem; justify-items: center; text-align: center; }
.footer-logo { width: 72px; height: 72px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.5rem; }
.footer-links a, .footer-links .link-btn {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--ink-900); font-weight: 600;
}
.credit { margin: 0; }
.credit a { color: var(--green-800); font-weight: 700; }

@media (min-width: 860px) {
  .site-footer { padding-bottom: 2.25rem; }
  .footer-inner { grid-template-columns: auto 1fr auto; text-align: left; justify-items: start; }
  .footer-links { justify-content: flex-start; }
}

/* ---------- Botão flutuante do WhatsApp ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  display: grid; place-items: center;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--green-700); color: var(--white);
  box-shadow: 0 10px 24px -8px rgba(15, 61, 32, .6);
  transition: transform .2s ease, background-color .2s ease;
}
.wa-float .icon { width: 30px; height: 30px; }
.wa-float:hover { background: var(--green-800); color: var(--white); transform: scale(1.05); }
.cc-banner-open .wa-float { display: none; }

/* ---------- Página interna (Política) ---------- */
.page-header {
  background: var(--cream-100);
  border-bottom: 1px solid var(--line);
  padding-block: 2.5rem 2rem;
}
.page-header p { color: var(--ink-700); margin: 0; }
.prose { max-width: 760px; padding-block: 2.5rem 4rem; }
.prose h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.8rem); margin-top: 2.25rem; }
.prose h3 { font-size: 1.2rem; margin-top: 1.5rem; }
.prose ul { list-style: disc; padding-left: 1.25rem; margin-bottom: 1em; }
.prose li { margin-bottom: .4rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: var(--fs-sm); }
.prose th, .prose td { text-align: left; vertical-align: top; padding: .7rem .6rem; border-bottom: 1px solid var(--line); }
.prose thead th { background: var(--lime-100); color: var(--green-900); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pending {
  background: #fff3cd; color: #5c4400;
  padding: .05rem .35rem; border-radius: 4px;
  font-weight: 700;
}
.back-link { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; font-weight: 700; }

/* ---------- Página 404 ---------- */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-block: 4rem; }
.notfound-logo { margin: 0 auto 1rem; }
.notfound .actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 1.5rem; }

/* ==========================================================================
   Consentimento de cookies
   ========================================================================== */
.cc-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  background: var(--white);
  border-top: 4px solid var(--green-500);
  box-shadow: 0 -12px 32px -12px rgba(15, 61, 32, .35);
  max-height: 85vh; overflow-y: auto;
}
.cc-banner[hidden] { display: none; }
.cc-banner-inner {
  display: grid; gap: 1rem;
  padding-block: 1.1rem calc(1.1rem + env(safe-area-inset-bottom, 0px));
}
.cc-banner p { margin: 0; font-size: .875rem; line-height: 1.5; color: var(--ink-900); }
.cc-banner a { font-weight: 700; }
.cc-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; }
.cc-actions .btn {
  width: 100%; justify-content: center; text-align: center;
  min-height: 44px; padding: .45rem .5rem;
  font-size: .875rem;
}

@media (min-width: 600px) {
  .cc-actions { grid-template-columns: repeat(3, auto); justify-content: start; gap: .5rem; }
  .cc-actions .btn { width: auto; padding-inline: 1.1rem; font-size: var(--fs-sm); }
}
@media (min-width: 1024px) {
  .cc-banner-inner { grid-template-columns: 1fr auto; align-items: center; gap: 2rem; }
}

.cc-panel {
  width: min(640px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--cream-50);
  color: var(--ink-900);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45);
}
.cc-panel::backdrop { background: rgba(15, 30, 20, .55); }
.cc-panel[open] { display: flex; flex-direction: column; }
.cc-panel-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 1.25rem .75rem;
  border-bottom: 1px solid var(--line);
}
.cc-panel-head h2 { font-size: 1.4rem; margin: 0; }
.cc-close {
  display: grid; place-items: center; flex: none;
  width: 44px; height: 44px;
  border-radius: 50%; border: 2px solid var(--line);
  background: var(--white); color: var(--ink-900);
  cursor: pointer;
}
.cc-panel-body { padding: 1rem 1.25rem; overflow-y: auto; }
.cc-panel-body > p { font-size: var(--fs-sm); color: var(--ink-700); }
.cc-cat {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}
.cc-cat-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.cc-cat h3 { font-size: 1.0625rem; margin: 0; }
.cc-cat p { margin: .35rem 0 0; font-size: var(--fs-sm); color: var(--ink-700); }
.cc-always { font-size: .8125rem; font-weight: 700; color: var(--green-800); white-space: nowrap; }

/* Interruptor (checkbox com role="switch") */
.cc-switch { position: relative; display: inline-flex; flex: none; }
.cc-switch input {
  appearance: none; -webkit-appearance: none;
  width: 52px; height: 30px; margin: 0;
  border-radius: 999px;
  background: #b9b3a3;
  cursor: pointer;
  transition: background-color .2s ease;
}
.cc-switch input::after {
  content: "";
  position: absolute; top: 3px; left: 3px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
  transition: transform .2s ease;
}
.cc-switch input:checked { background: var(--green-700); }
.cc-switch input:checked::after { transform: translateX(22px); }
.cc-switch input:disabled { cursor: not-allowed; opacity: .7; }
.cc-switch input:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.cc-panel-foot {
  display: grid; gap: .5rem;
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid var(--line);
  background: var(--white);
}
.cc-panel-foot .btn { width: 100%; justify-content: center; text-align: center; }
@media (min-width: 600px) {
  .cc-panel-foot { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
