/* =========================================================
   Upa Pets — Landing Page
   Layout: editorial e assimétrico; seções alternam branco,
   off-white azulado e um único bloco azul-marinho (cirurgias).
   Azul do logo como âncora; verde só no WhatsApp; vermelho só no plantão.
   ========================================================= */
:root {
  /* Cor */
  --navy: #15166a;          /* fundo do logo oficial */
  --navy-deep: #0d0e4b;
  --royal: #2c3fb2;         /* azul da fachada e do letreiro */
  --ink: #15173a;
  --text: #3d4163;
  --muted: #646985;
  --paper: #ffffff;
  --mist: #f4f5fa;
  --line: #e1e3ee;
  --wa: #128a43;            /* verde WhatsApp com contraste AA para texto branco */
  --wa-hover: #0e7337;
  --alert: #d3283a;         /* uso pontual: plantão */

  /* Tipografia */
  --f-display: "Saira Semi Condensed", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
  --f-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --fs-h1: clamp(2.05rem, 1.35rem + 3.3vw, 3.75rem);
  --fs-h2: clamp(1.7rem, 1.25rem + 1.9vw, 2.7rem);
  --fs-h3: 1.3rem;
  --fs-lead: clamp(1.03rem, .98rem + .3vw, 1.18rem);

  /* Espaço */
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 8vw, 120px);
  --radius: 14px;
  --header-h: 68px;
  --mobile-bar-h: 0px;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
figure { margin: 0; }
h1, h2, h3 { font-family: var(--f-display); color: var(--ink); line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -.005em; }
h1 { font-size: var(--fs-h1); font-weight: 700; }
h2 { font-size: var(--fs-h2); font-weight: 700; }
h3 { font-size: var(--fs-h3); font-weight: 600; }
p { margin: 0; }
a { color: var(--royal); }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--royal); outline-offset: 3px; border-radius: 4px; }
.section-navy :focus-visible, .final :focus-visible, .site-footer :focus-visible { outline-color: #fff; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }

.ico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: .8em 1.35em;
  border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem/1.2 var(--f-body); text-decoration: none; text-align: center;
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn-lg { min-height: 56px; padding: .95em 1.6em; font-size: 1.05rem; }
.btn-sm { min-height: 42px; padding: .55em 1.05em; font-size: .94rem; }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 8px 20px -10px rgba(18,138,67,.7); }
.btn-wa:hover { background: var(--wa-hover); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: saturate(160%) blur(10px); backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: block; flex: none; }
.brand img { height: 50px; width: auto; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .97rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--royal); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 10px; cursor: pointer; align-items: center; justify-content: center; }
.menu-btn .ico { width: 22px; height: 22px; }
.menu-btn .ico-close { display: none; }
.menu-btn[aria-expanded="true"] .ico-open { display: none; }
.menu-btn[aria-expanded="true"] .ico-close { display: block; }

/* ---------- Status plantão ---------- */
.status { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 6px 14px 6px 12px; border-radius: 999px; background: #fdecee; color: #8f1422; font-size: .9rem; }
.status strong { font-weight: 600; letter-spacing: .02em; }
.status-time { color: #8f1422; opacity: .85; }
.status-time::before { content: "·"; margin-right: 8px; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--alert); box-shadow: 0 0 0 0 rgba(211,40,58,.5); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(211,40,58,.45); } 70%,100% { box-shadow: 0 0 0 9px rgba(211,40,58,0); } }
.status-light { background: rgba(255,255,255,.1); color: #fff; }

/* ---------- Hero ---------- */
/* Hero: foto de fundo em tela cheia, com véu claro para leitura à esquerda */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center;
  min-height: calc(100svh - var(--header-h));
  min-height: max(560px, calc(100svh - var(--header-h)));
}
/* Foto de fundo: ocupa a altura toda à direita, até a borda, e se dissolve em branco atrás do texto */
.hero-banner { position: absolute; top: 0; right: 0; bottom: 0; width: 62%; z-index: -2; margin: 0; background: #dfe3ee; }
.hero-banner picture { width: 100%; height: 100%; }
.hero-banner img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 30%; animation: settle 1.8s cubic-bezier(.2,.7,.2,1) both; }
.hero-banner::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, var(--paper) 0%, rgba(255,255,255,.9) 14%, rgba(255,255,255,.45) 32%, rgba(255,255,255,0) 52%),
    linear-gradient(0deg, var(--paper) 0%, rgba(255,255,255,0) 22%),
    linear-gradient(180deg, rgba(21,22,106,.10) 0%, rgba(21,22,106,0) 30%);
}
.hero-copy {
  width: 100%;
  display: flex; flex-direction: column; align-items: flex-start; gap: 20px; min-width: 0;
  padding-block: clamp(32px, 5vw, 72px);
  padding-inline: max(var(--gutter), calc(50vw - 600px + var(--gutter)));
  animation: rise .7s .15s cubic-bezier(.2,.7,.2,1) both;
}
.hero-copy > * { max-width: 620px; }
.hero-logo img { width: clamp(170px, 15vw, 230px); height: auto; }
.hero h1 { max-width: 16ch; font-size: clamp(2rem, 1.25rem + 2.5vw, 3.3rem); }
.lead { font-size: var(--fs-lead); max-width: 46ch; color: var(--text); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn-ghost { background: rgba(255,255,255,.9); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--ink); font-weight: 500; font-size: .95rem; }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts .ico { color: var(--royal); }
@media (max-width: 1200px) and (min-width: 960px) { .hero-banner { width: 55%; } }
@keyframes settle { from { transform: scale(1.04); opacity: 0; } to { transform: none; opacity: 1; } }
.site-header .brand { transition: opacity .25s, visibility .25s; }
.site-header.hide-brand .brand { opacity: 0; visibility: hidden; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Faixa de diferenciais ---------- */
.facts-band { border-block: 1px solid var(--line); background: var(--paper); }
.facts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.facts li { display: flex; flex-direction: column; gap: 2px; padding: 22px 20px; border-left: 1px solid var(--line); }
.facts li:first-child { border-left: 0; padding-left: 0; }
.facts strong { font-family: var(--f-display); font-size: 1.28rem; font-weight: 700; color: var(--navy); letter-spacing: .01em; text-transform: uppercase; }
.facts li:first-child strong { color: var(--alert); }
.facts span { font-size: .9rem; color: var(--muted); }

/* ---------- Seções ---------- */
.section { padding-block: var(--section); }
.section-mist { background: var(--mist); }
.section-navy { background: var(--navy); color: rgba(255,255,255,.82); }
.section-navy h2 { color: #fff; }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 720px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head-row { max-width: none; flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 32px; }
.section-head-row .section-intro { max-width: 46ch; }
.eyebrow { font: 600 .8rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--royal); }
.eyebrow-light { color: #aab4ff; }
.section-intro { font-size: var(--fs-lead); color: var(--text); max-width: 60ch; }

/* ---------- Serviços ---------- */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.service { display: flex; flex-direction: column; gap: 10px; padding: 28px 26px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); transition: border-color .2s, transform .2s, box-shadow .2s; min-width: 0; }
.service:hover { border-color: #c9cde3; transform: translateY(-2px); box-shadow: 0 14px 30px -22px rgba(21,22,106,.45); }
.service p:not(.service-tag) { color: var(--text); flex: 1; }
.service-tag { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.service-feature { background: var(--navy); border-color: var(--navy); color: rgba(255,255,255,.82); }
.service-feature h3 { color: #fff; }
.service-feature .service-tag { color: #ffb3bb; }
.service-feature p:not(.service-tag) { color: rgba(255,255,255,.82); }
.service-feature .service-link { color: #fff; }
.service-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-weight: 600; color: var(--wa); text-decoration: none; min-height: 32px; }
.service-link .ico { transition: transform .2s; }
.service-link:hover .ico { transform: translateX(3px); }
.service-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.also { margin-top: 48px; display: grid; grid-template-columns: 1fr; gap: 12px; }
.also-title { font-family: var(--f-display); font-weight: 600; font-size: 1.15rem; color: var(--ink); }
.also-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.also-list a { display: flex; flex-direction: column; gap: 2px; padding: 14px 14px 14px 0; text-decoration: none; color: inherit; height: 100%; }
.also-list strong { color: var(--ink); font-weight: 600; }
.also-list span { font-size: .88rem; color: var(--muted); }
.also-list a:hover strong { color: var(--royal); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Especialidades ---------- */
.spec-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.spec-photo { position: relative; border-radius: 22px; overflow: hidden; background: #e9ebf3; aspect-ratio: 1080 / 790; }
.spec-photo img { width: 100%; height: 100%; object-fit: cover; }
.spec-tags { position: absolute; inset: auto 14px 14px 14px; display: flex; justify-content: space-between; gap: 10px; pointer-events: none; }
.spec-tag { display: flex; flex-direction: column; background: var(--paper); color: var(--ink); font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; line-height: 1.1; padding: 9px 14px; border-radius: 12px; box-shadow: 0 10px 24px -14px rgba(13,14,75,.6); }
.spec-tag em { font: 500 .8rem/1.3 var(--f-body); font-style: normal; color: var(--royal); }
.spec-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; min-width: 0; }
.spec-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 100%; margin-block: 6px 8px; }
.spec-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 20px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.spec-card h3 { font-size: 1.55rem; color: var(--navy); }
.spec-label { font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.spec-name { color: var(--ink); font-weight: 500; }

/* ---------- Estrutura ---------- */
.tour { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .85fr); gap: 20px; align-items: end; }
.tour-item { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tour-item picture { border-radius: var(--radius); overflow: hidden; background: var(--mist); aspect-ratio: 3 / 4; }
.tour-item img { width: 100%; height: 100%; object-fit: cover; }
.tour-b { margin-bottom: 48px; }
.tour-item figcaption { display: flex; flex-direction: column; font-size: .93rem; color: var(--muted); }
.tour-item figcaption strong { font-family: var(--f-display); color: var(--ink); font-size: 1.15rem; font-weight: 600; }
.tour-list { align-self: center; border-top: 2px solid var(--ink); }
.tour-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-family: var(--f-display); font-size: 1.2rem; font-weight: 600; }
.tour-list a .ico { color: var(--royal); transition: transform .2s; }
.tour-list a:hover .ico { transform: translateX(4px); }

/* ---------- Cirurgias ---------- */
.surgery { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.surgery-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; min-width: 0; }
.checks { display: flex; flex-direction: column; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .ico { margin-top: .3em; color: #8fe0ae; }
.checks-dark .ico { color: var(--wa); }
.checks-dark li { color: var(--ink); }
.surgery-media { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: 12px; }
.surgery-media figure { border-radius: var(--radius); overflow: hidden; background: var(--navy-deep); }
.surgery-media img { width: 100%; height: 100%; object-fit: cover; }
.sm-main { grid-row: 1; grid-column: 1; aspect-ratio: 1184 / 1280; }
.sm-side { grid-row: 1; grid-column: 2; }
.sm-wide { grid-row: 2; grid-column: 1 / -1; aspect-ratio: 16 / 7; }
.sm-wide img { object-position: 50% 55%; }

/* ---------- Internação ---------- */
.split { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.split-media { border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--mist); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; max-width: 520px; min-width: 0; }

/* ---------- Equipe ---------- */
.team { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.team-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; min-width: 0; }
.team-copy h2 { max-width: 18ch; }
.team-media { border-radius: 22px; overflow: hidden; background: #e9ebf3; aspect-ratio: 4 / 5; max-height: 640px; width: 100%; justify-self: end; }
.team-media img { object-position: 50% 35%; }
.team-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Cães e gatos ---------- */
.pets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pets figure { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--mist); }
.pets img { width: 100%; height: 100%; object-fit: cover; }
.pets figure:first-child img { object-position: 50% 55%; }
.pets figcaption { position: absolute; left: 14px; bottom: 14px; background: var(--paper); color: var(--ink); font-weight: 600; font-size: .9rem; padding: 7px 14px; border-radius: 999px; }
.center-cta { display: flex; justify-content: center; margin-top: 36px; }

/* ---------- Táxi Pet ---------- */
.taxi { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.taxi-media { border-radius: 22px; overflow: hidden; max-width: 440px; width: 100%; justify-self: center; box-shadow: 0 30px 60px -40px rgba(13,14,75,.6); }
.taxi-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; min-width: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pills li { display: inline-flex; align-items: center; gap: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; color: var(--ink); font-weight: 500; }
.pills .ico { color: var(--wa); }
.note { font-size: .95rem; color: var(--muted); border-left: 3px solid var(--royal); padding-left: 12px; }

/* ---------- Localização ---------- */
.place { border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 7; background: var(--mist); }
.place img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.place-info { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; align-items: end; margin-top: 36px; }
.place-info > div:first-child { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.towns { display: flex; flex-wrap: wrap; gap: 8px; }
.towns li { font-family: var(--f-display); font-weight: 600; font-size: 1.1rem; color: var(--navy); border: 1px solid var(--line); border-radius: 10px; padding: 6px 14px; }
.place-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq-grid .section-head { align-items: flex-start; position: sticky; top: calc(var(--header-h) + 24px); margin-bottom: 0; }
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-weight: 600; color: var(--ink); font-size: 1.06rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--royal); border-bottom: 2px solid var(--royal); transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq summary:hover { color: var(--royal); }
.faq details p { padding: 0 32px 22px 0; color: var(--text); max-width: 62ch; }

/* ---------- CTA final ---------- */
.final { background: var(--navy); color: rgba(255,255,255,.85); padding-block: clamp(72px, 9vw, 128px); position: relative; overflow: hidden; }
.final::before { content: ""; position: absolute; inset: auto -10% -60% auto; width: 60vw; height: 60vw; border-radius: 50%; background: radial-gradient(circle, rgba(44,63,178,.55), transparent 65%); pointer-events: none; }
.final-inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.final h2 { color: #fff; font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); max-width: 18ch; }
.final p { max-width: 52ch; font-size: var(--fs-lead); }
.final-phone { font-size: 1rem !important; }
.final-phone a { color: #fff; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.75); padding-block: 56px calc(28px + var(--mobile-bar-h)); font-size: .95rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 36px; }
.footer-brand { display: flex; gap: 18px; align-items: flex-start; }
.footer-logo { flex: none; background: #fff; border-radius: 16px; padding: 14px 16px; box-shadow: 0 12px 30px -18px rgba(0,0,0,.6); }
.footer-logo img { width: 104px; height: auto; }
.footer-name { color: #fff; font-weight: 600; }
.footer-label { font: 600 .75rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: #aab4ff; margin-bottom: 12px; }
.footer-contact { display: flex; flex-direction: column; gap: 6px; }
.footer-links { display: flex; flex-direction: column; gap: 6px; }
.footer-links a { text-decoration: none; width: fit-content; }
.footer-links a:hover { text-decoration: underline; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; }

/* ---------- Barra fixa mobile ---------- */
.mobile-bar { display: none; }

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 1080px) {
  .nav { gap: 20px; }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .facts li:nth-child(4) { border-left: 0; padding-left: 0; }
  .facts li:nth-child(n+4) { border-top: 1px solid var(--line); }
  .also-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .also-list li { border-bottom: 1px solid var(--line); }
}

@media (max-width: 959px) {
  :root { --header-h: 62px; --mobile-bar-h: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .brand img { height: 44px; }
  .header-cta span { display: none; }
  .header-cta { width: 44px; height: 44px; min-height: 44px; padding: 0; }
  .header-cta .ico { width: 22px; height: 22px; }
  .menu-btn { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -24px rgba(13,14,75,.5);
  }
  .nav:not(.is-open) { display: none; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav a:last-child { border-bottom: 0; }

  .hero { align-items: flex-start; min-height: 0; }
  .hero-copy { gap: 14px; padding: 18px var(--gutter) 70vw; }
  .hero-logo img { width: 132px; }
  .hero h1 { max-width: 18ch; }
  .hero-ctas { width: 100%; }
  .hero-ctas .btn { flex: 1 1 260px; }
  .hero-copy { padding-bottom: 76vw; }
  .hero-banner { top: auto; left: 0; width: 100%; height: 88vw; }
  .hero-banner img { object-position: 60% 22%; }
  .hero-banner::after {
    background:
      linear-gradient(180deg, var(--paper) 0%, rgba(255,255,255,.85) 14%, rgba(255,255,255,0) 40%),
      linear-gradient(0deg, rgba(255,255,255,.35) 0%, rgba(255,255,255,0) 18%);
  }
  .hero::before { display: none; }

  .spec-grid, .surgery, .split, .team, .taxi, .faq-grid { grid-template-columns: 1fr; }
  .surgery-copy { order: 0; }
  .split-media { aspect-ratio: 4 / 3; }
  .split-media img { object-position: 50% 35%; }
  .split-copy { max-width: none; }
  .team-media { order: -1; aspect-ratio: 1 / 1; justify-self: stretch; }
  .taxi-media { max-width: 380px; }
  .faq-grid .section-head { position: static; }
  .place-info { grid-template-columns: 1fr; }
  .place-actions { justify-content: flex-start; }
  .place { aspect-ratio: 16 / 9; }

  .tour { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tour-b { margin-bottom: 0; }
  .tour-list { grid-column: 1 / -1; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  .mobile-bar {
    display: flex; gap: 10px; align-items: center;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255,255,255,.96); border-top: 1px solid var(--line);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    box-shadow: 0 -12px 30px -24px rgba(13,14,75,.5);
  }
  .mb-call { flex: none; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 64px; min-height: 54px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none; font-size: .78rem; font-weight: 600; }
  .mb-call .ico { width: 20px; height: 20px; color: var(--navy); }
  .mb-wa { flex: 1; min-height: 54px; border-radius: 14px; font-size: 1.05rem; }
}

@media (max-width: 640px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts li { padding: 16px 14px; border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
  .facts li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .facts li:nth-child(-n+2) { border-top: 0; }
  .facts li:nth-child(4) { border-left: 1px solid var(--line); padding-left: 14px; }
  .facts li:last-child { grid-column: 1 / -1; }
  .facts strong { font-size: 1.12rem; }

  .hero-facts { display: none; }
  .services { grid-template-columns: 1fr; gap: 12px; }
  .service { padding: 22px 20px 18px; }
  .also-list { grid-template-columns: 1fr; }
  .spec-cards { grid-template-columns: 1fr; }
  .spec-tag { font-size: .95rem; padding: 7px 11px; }
  .section-head-row { flex-direction: column; align-items: flex-start; gap: 14px; }
  .pets { grid-template-columns: 1fr; }
  .pets figure { aspect-ratio: 4 / 4.4; }
  .sm-wide { aspect-ratio: 4 / 3; }
  .place { aspect-ratio: 4 / 3; }
  .place img { object-position: 45% 50%; }
  .place-actions .btn { flex: 1 1 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { flex-direction: column; }
  .final .btn-lg { width: 100%; }
}

@media (max-width: 400px) {
  .tour { grid-template-columns: 1fr; }
  .tour-item picture { aspect-ratio: 4 / 3.6; }
  .btn-lg { font-size: 1rem; padding-inline: 1.1em; }
  .status { font-size: .85rem; }
}

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

/* Imagens preenchem seus quadros */
.spec-photo picture, .surgery-media picture, .split-media picture,
.team-media picture, .pets picture, .place picture { height: 100%; }

/* ---------- Endereço e avaliações (Google) ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.addr { font-style: normal; display: flex; flex-direction: column; gap: 4px; color: var(--ink); font-weight: 500; }
.addr-hours { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 400; font-size: .95rem; }
.addr-hours .ico { color: var(--royal); }
.reviews { margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.review-score { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 28px 26px; border-radius: var(--radius); background: var(--navy); color: rgba(255,255,255,.85); }
.review-score .eyebrow { color: #aab4ff; }
.score { font-family: var(--f-display); font-weight: 700; font-size: 4rem; line-height: 1; color: #fff; display: flex; align-items: baseline; gap: 10px; font-variant-numeric: tabular-nums; }
.score small { font: 500 1rem var(--f-body); color: rgba(255,255,255,.7); }
.stars { display: flex; gap: 3px; color: #f5b82e; }
.stars .ico { width: 22px; height: 22px; fill: currentColor; stroke: none; }
.score-count { font-size: .95rem; }
.review-score .service-link { color: #fff; margin-top: auto; }
.review { margin: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; padding: 26px 24px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); min-width: 0; }
.review p { color: var(--ink); font-size: 1.04rem; line-height: 1.55; }
.review p::before { content: "“"; display: block; font-family: var(--f-display); font-size: 2.6rem; line-height: .7; color: var(--royal); margin-bottom: 6px; }
.review footer { font-size: .82rem; color: var(--muted); letter-spacing: .02em; }
@media (max-width: 959px) { .reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  /* No celular as avaliações viram uma faixa deslizável (sem rolagem automática) */
  .reviews { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding-bottom: 10px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: thin; }
  .reviews > * { scroll-snap-align: start; }
  .score { font-size: 3.4rem; }
}
