/* =========================================================
   HOSPITAL VETERINÁRIO PRINCIPAL — REDESIGN 2026
   Ficheiro principal de estilos
   Paleta e medidas principais podem ser alteradas aqui.
   ========================================================= */

:root {
  --brand: #3789c5;
  --brand-dark: #205d8b;
  --brand-soft: #e5f2fb;
  --brand-pale: #f4f9fd;
  --ink: #1c2d3a;
  --muted: #647783;
  --line: #d9e5ed;
  --surface: #ffffff;
  --surface-2: #f4f8fb;
  --cream: #fff9e8;
  --alert: #88650f;
  --alert-dark: #684c0b;
  --alert-soft: #fbf3da;
  --warning: #77580b;
  --shadow-sm: 0 10px 30px rgba(28, 55, 75, .08);
  --shadow-lg: 0 24px 70px rgba(32, 93, 139, .16);
  --radius-sm: 12px;
  --radius: 22px;
  --radius-lg: 32px;
  --container: 1180px;
  --header-height: 82px;
  --transition: 260ms cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
::selection { background: #cde5f7; }

.skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 9999;
  padding: 10px 14px; color: #fff; background: var(--brand-dark); border-radius: 10px;
}
.skip-link:focus { top: 16px; }

.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { padding: 92px 0; }
.section-sm { padding: 62px 0; }
.section-tint { background: var(--brand-pale); }
.section-cream { background: var(--cream); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 12px; color: var(--brand); font-size: .79rem;
  font-weight: 800; letter-spacing: .11em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; border-radius: 99px; }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.12; letter-spacing: -.025em; }
h1 { font-size: clamp(2.7rem, 6vw, 5.6rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3.45rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p { margin: 0 0 1em; }
.lead { max-width: 720px; color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.28rem); }
.text-muted { color: var(--muted); }
.text-alert { color: var(--alert); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 20px; border: 1px solid transparent;
  border-radius: 999px; font-weight: 760; transition: transform var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid rgba(55,137,197,.25); outline-offset: 3px; }
.btn-primary { color: #fff; background: var(--brand); box-shadow: 0 10px 24px rgba(55,137,197,.18); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-light { color: var(--brand-dark); background: #fff; }
.btn-outline { color: var(--brand-dark); background: transparent; border-color: var(--line); }
.btn-outline:hover { background: var(--brand-soft); border-color: #b8d5e8; }
.btn-alert { color: #fff; background: var(--alert); box-shadow: 0 10px 24px rgba(136,101,15,.2); }
.btn-alert:hover { background: var(--alert-dark); }
.btn-icon { width: 18px; height: 18px; flex: 0 0 auto; }

/* ---------- Topbar ---------- */
.topbar { color: #fff; background: var(--brand-dark); font-size: .9rem; }
.topbar-inner { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.topbar-list { display: flex; align-items: center; gap: 22px; }
.topbar a { opacity: .92; transition: opacity var(--transition); }
.topbar a:hover { opacity: 1; }
.topbar-emergency { font-weight: 800; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.92);
  border-bottom: 1px solid rgba(217,229,237,.85); backdrop-filter: blur(16px);
}
.nav-wrap { min-height: var(--header-height); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 250px; }
.brand-text { display: grid; line-height: 1.05; }
.brand-title { font-size: 1rem; font-weight: 850; letter-spacing: -.01em; }
.brand-sub { margin-top: 5px; color: var(--muted); font-size: .73rem; letter-spacing: .04em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 10px 12px; border-radius: 999px; color: #304654; font-size: .93rem; font-weight: 680;
  transition: color var(--transition), background var(--transition);
}
.nav a:hover, .nav a.active { color: var(--brand-dark); background: var(--brand-soft); }
.nav .nav-emergency { color: var(--alert); }
.nav .nav-emergency:hover, .nav .nav-emergency.active { color: var(--alert-dark); background: var(--alert-soft); }
.header-actions { display: flex; align-items: center; gap: 9px; }
.menu-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.menu-toggle span { display: block; width: 20px; height: 2px; margin: 4px auto; background: var(--ink); transition: transform var(--transition), opacity var(--transition); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero slider ---------- */
.hero { position: relative; min-height: calc(88vh - 38px); overflow: hidden; color: #fff; background: #1c3850; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; transform: scale(1.045);
  background-position: center; background-size: cover;
  transition: opacity 1.1s ease, transform 7s ease;
}
.hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,35,53,.88) 0%, rgba(12,35,53,.72) 43%, rgba(12,35,53,.24) 72%, rgba(12,35,53,.12) 100%); }
.hero-slide.active { opacity: 1; transform: scale(1); }
.hero-content { position: relative; z-index: 3; min-height: calc(88vh - 38px); display: flex; align-items: center; padding: 88px 0 110px; }
.hero-copy { max-width: 760px; }
.hero-copy h1 { max-width: 820px; }
.hero-copy p { max-width: 660px; margin: 22px 0 30px; color: rgba(255,255,255,.86); font-size: clamp(1.08rem, 1.7vw, 1.3rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.hero-badge { padding: 9px 13px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; background: rgba(255,255,255,.1); backdrop-filter: blur(8px); font-size: .88rem; font-weight: 700; }
.hero-controls { position: absolute; left: 50%; bottom: 34px; z-index: 4; width: min(calc(100% - 40px), var(--container)); transform: translateX(-50%); display: flex; justify-content: flex-end; gap: 8px; }
.hero-dot { width: 12px; height: 12px; padding: 0; border: 0; border-radius: 99px; background: rgba(255,255,255,.4); transition: width var(--transition), background var(--transition); }
.hero-dot.active { width: 36px; background: #fff; }

/* ---------- Quick info ---------- */
.quick-strip { position: relative; z-index: 8; margin-top: -54px; }
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow-lg); }
.quick-card { display: flex; gap: 14px; padding: 24px 26px; }
.quick-card + .quick-card { border-left: 1px solid var(--line); }
.quick-icon { width: 44px; height: 44px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 13px; color: var(--brand); background: var(--brand-soft); }
.quick-card.alert .quick-icon { color: var(--alert-dark); background: #e3b545; }
.quick-card strong { display: block; margin-bottom: 2px; font-size: .98rem; }
.quick-card span, .quick-card a { color: var(--muted); font-size: .92rem; }

/* ---------- Cards ---------- */
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 38px; }
.section-head > div:first-child { max-width: 760px; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  position: relative; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; box-shadow: 0 0 0 rgba(0,0,0,0); transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover { transform: translateY(-5px); border-color: #c3d9e9; box-shadow: var(--shadow-sm); }
.card-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 20px; border-radius: 14px; color: var(--brand); background: var(--brand-soft); }
.card p { color: var(--muted); }
.card-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--brand-dark); font-weight: 780; }

/* ---------- About split ---------- */
.split { display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: clamp(40px, 7vw, 90px); }
.image-stack { position: relative; min-height: 520px; }
.image-main, .image-float { overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.image-main { position: absolute; inset: 0 72px 70px 0; }
.image-main img, .image-float img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s ease; }
.image-main:hover img, .image-float:hover img { transform: scale(1.035); }
.image-float { position: absolute; right: 0; bottom: 0; width: 42%; height: 42%; border: 8px solid #fff; }
.check-list { display: grid; gap: 14px; margin: 26px 0 30px; }
.check-item { display: flex; align-items: flex-start; gap: 12px; }
.check-dot { width: 22px; height: 22px; margin-top: 2px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: #fff; background: var(--brand); font-size: .75rem; font-weight: 900; }

/* ---------- Emergency banner ---------- */
.emergency-band { color: #fff; background: var(--alert); }
.emergency-inner { display: grid; grid-template-columns: 1.3fr auto; align-items: center; gap: 30px; padding: 42px 0; }
.emergency-inner p { max-width: 760px; margin: 8px 0 0; color: rgba(255,255,255,.83); }
.emergency-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* ---------- Service tabs / filters ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 34px; }
.filter-btn { padding: 10px 15px; border: 1px solid var(--line); border-radius: 999px; color: #415665; background: #fff; font-weight: 720; transition: var(--transition); }
.filter-btn:hover, .filter-btn.active { color: #fff; border-color: var(--brand); background: var(--brand); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card { display: flex; flex-direction: column; min-height: 245px; }
.service-card[hidden] { display: none; }
.service-tag { display: inline-flex; align-self: flex-start; margin-bottom: 16px; padding: 6px 10px; border-radius: 999px; color: var(--brand-dark); background: var(--brand-soft); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.service-card .card-link { margin-top: auto; padding-top: 14px; background: none; border: 0; font: inherit; color: var(--brand-dark); font-weight: 780; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 3000; display: none; place-items: center; padding: 22px; background: rgba(10,25,36,.64); backdrop-filter: blur(8px); }
.modal.open { display: grid; }
.modal-dialog { width: min(100%, 650px); max-height: min(760px, calc(100vh - 44px)); overflow: auto; padding: 32px; border-radius: 26px; background: #fff; box-shadow: var(--shadow-lg); animation: modalIn .28s ease both; }
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.modal-close { width: 42px; height: 42px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 50%; background: #fff; font-size: 1.4rem; }
.modal-body { color: var(--muted); }
.modal-body strong { color: var(--ink); }

/* ---------- Page hero ---------- */
.page-hero { position: relative; overflow: hidden; padding: 100px 0 78px; background: linear-gradient(135deg, #eaf4fb 0%, #fff 55%, #fff9e8 100%); }
.page-hero::after { content: ""; position: absolute; width: 360px; height: 360px; right: -120px; top: -160px; border-radius: 50%; background: rgba(55,137,197,.08); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { max-width: 900px; font-size: clamp(2.5rem, 5vw, 4.7rem); }
.page-hero .lead { margin-top: 18px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; color: var(--muted); font-size: .9rem; }
.breadcrumbs span { opacity: .55; }
.legal-content { max-width: 900px; }
.legal-content h2 { margin: 34px 0 12px; font-size: 1.45rem; }
.legal-content p, .legal-content li { color: var(--muted); line-height: 1.75; }
.legal-content ul { padding-left: 22px; }
.legal-content a { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 3px; }
.legal-content .alert-panel { margin-bottom: 30px; }
.legal-content .alert-panel p { margin: 8px 0 0; color: inherit; }

/* ---------- Emergency page ---------- */
.alert-panel { display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 24px; border: 1px solid #e8d69e; border-radius: var(--radius); background: var(--alert-soft); }
.alert-panel .card-icon { margin: 0; color: var(--alert); background: #fff; }
.symptom-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 28px; }
.symptom { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.symptom strong { display: block; margin-bottom: 6px; }
.step-list { counter-reset: emergency-step; display: grid; gap: 14px; margin: 28px 0 0; padding: 0; list-style: none; }
.step-list li { counter-increment: emergency-step; display: grid; grid-template-columns: 42px 1fr; gap: 14px; align-items: start; }
.step-list li::before { content: counter(emergency-step); width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--alert); font-weight: 850; }

/* ---------- Prevention ---------- */
.feature-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feature { display: grid; grid-template-columns: 58px 1fr; gap: 18px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.feature-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 17px; color: var(--brand); background: var(--brand-soft); font-weight: 850; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; }
.contact-card { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.contact-list { display: grid; gap: 18px; margin-top: 26px; }
.contact-item { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.contact-item .quick-icon { width: 44px; height: 44px; }
.map-wrap { min-height: 520px; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface-2); }
.map-wrap iframe { width: 100%; height: 100%; min-height: 520px; border: 0; }
.map-wrap iframe[hidden] { display: none; }
.map-cookie-placeholder { min-height: 520px; display: grid; align-content: center; justify-items: start; gap: 12px; padding: 28px; color: var(--ink); background: var(--surface-2); }
.map-cookie-placeholder[hidden] { display: none; }
.map-cookie-placeholder p { max-width: 360px; margin: 0; color: var(--muted); }
.map-cookie-placeholder .btn { min-height: 42px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 760; }
.field input, .field textarea, .field select { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #cddde8; border-radius: 12px; color: var(--ink); background: #fff; transition: border var(--transition), box-shadow var(--transition); }
.field textarea { min-height: 135px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(55,137,197,.12); }
.form-note { margin-top: 12px; color: var(--muted); font-size: .82rem; }

/* ---------- CTA ---------- */
.cta-box { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 26px; padding: 42px; border-radius: var(--radius-lg); color: #fff; background: linear-gradient(135deg, var(--brand-dark), var(--brand)); box-shadow: var(--shadow-lg); }
.cta-box p { max-width: 700px; margin: 8px 0 0; color: rgba(255,255,255,.8); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* ---------- Footer ---------- */
.site-footer { padding: 60px 0 24px; color: #dce8f0; background: #142d40; }
.footer-grid { display: grid; grid-template-columns: 1.35fr .8fr .8fr 1fr; gap: 36px; }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 16px; color: #fff; }
.footer-brand img { width: 44px; height: 44px; }
.footer-brand strong { display: block; line-height: 1.15; }
.footer-col h4 { color: #fff; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; }
.footer-col a { display: block; width: fit-content; margin: 8px 0; color: #c6d6e1; transition: color var(--transition); }
.footer-col a:hover { color: #fff; }
.footer-copy { max-width: 410px; color: #a9bfce; font-size: .9rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 22px; margin-top: 38px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); color: #91a9b8; font-size: .82rem; }
.footer-bottom .cookie-settings { padding: 0; border: 0; color: inherit; background: transparent; font: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.footer-bottom .cookie-settings:hover { color: #fff; }
.footer-social { display: flex; justify-content: flex-end; gap: 12px; margin-top: 28px; }
.footer-social-link { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; color: #fff; }
.footer-social-link svg { width: 22px; height: 22px; }
.footer-social-link:hover, .footer-social-link:focus-visible { background: rgba(255,255,255,.12); animation: pulse-grow .7s ease-in-out infinite alternate; }
@keyframes pulse-grow { from { transform: scale(1); } to { transform: scale(1.12); } }
.footer-complaints { margin-top: 16px; text-align: right; font-size: .9rem; }
.footer-complaints a { display: inline-flex; align-items: center; gap: 8px; color: #c6d6e1; text-decoration: underline; text-underline-offset: 3px; }
.footer-complaints svg { width: 18px; height: 18px; flex: 0 0 auto; }
.footer-complaints a:hover, .footer-complaints a:focus-visible { color: #fff; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Mobile bottom bar ---------- */
.mobile-bar { position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 1200; display: none; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.94); box-shadow: 0 14px 44px rgba(0,0,0,.18); backdrop-filter: blur(14px); }
.mobile-bar .btn { min-height: 46px; padding-inline: 12px; font-size: .9rem; }

/* ---------- Cookie consent ---------- */
.cookie-banner { position: fixed; inset: auto 0 0; z-index: 2500; padding: 18px 24px; color: #fff; background: #142d40; box-shadow: 0 -12px 36px rgba(20,45,64,.2); }
.cookie-banner[hidden] { display: none; }
.cookie-banner-inner { width: min(100%, var(--container)); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 28px; }
.cookie-banner-copy strong { display: block; margin-bottom: 4px; font-size: 1rem; }
.cookie-banner-copy p { max-width: 780px; margin: 0; color: #dce8f0; font-size: .88rem; line-height: 1.5; }
.cookie-banner-copy a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.cookie-banner-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-banner-actions button { min-height: 42px; padding: 0 14px; border: 1px solid rgba(255,255,255,.55); border-radius: 6px; color: #fff; background: transparent; font: inherit; font-size: .86rem; font-weight: 750; cursor: pointer; }
.cookie-banner-actions button:hover { background: rgba(255,255,255,.12); }
.cookie-banner-actions .cookie-accept { border-color: #fff; color: #142d40; background: #fff; }
.cookie-banner-actions .cookie-accept:hover { background: #eaf4fb; }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .nav, .header-actions .btn { display: none; }
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: calc(38px + var(--header-height)) 0 auto 0; max-height: calc(100vh - 120px); overflow: auto;
    flex-direction: column; align-items: stretch; gap: 4px; padding: 18px 20px 30px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.98); box-shadow: 0 20px 40px rgba(20,40,56,.09);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 16px; border-radius: 12px; font-size: 1rem; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 780px) {
  :root { --header-height: 72px; }
  body { padding-bottom: 78px; }
  .container { width: min(calc(100% - 28px), var(--container)); }
  .section { padding: 70px 0; }
  .topbar-inner { justify-content: center; }
  .topbar-list { display: none; }
  .topbar-emergency { font-size: .84rem; }
  .brand { min-width: 0; }
  .brand img { width: 40px; height: 40px; }
  .brand-title { font-size: .91rem; }
  .brand-sub { font-size: .65rem; }
  .nav { top: calc(38px + var(--header-height)); }
  .hero { min-height: 680px; }
  .hero-content { min-height: 680px; padding: 84px 0 124px; align-items: flex-end; }
  .hero-slide::after { background: linear-gradient(0deg, rgba(12,35,53,.94) 0%, rgba(12,35,53,.75) 50%, rgba(12,35,53,.24) 100%); }
  .hero-copy h1 { font-size: clamp(2.55rem, 13vw, 4.2rem); }
  .hero-copy p { font-size: 1.03rem; }
  .hero-actions .btn { width: 100%; }
  .hero-badges { gap: 6px; }
  .hero-badge { font-size: .76rem; }
  .hero-controls { bottom: 26px; justify-content: center; }
  .quick-strip { margin-top: 0; padding: 18px 0 0; }
  .quick-grid { grid-template-columns: 1fr; box-shadow: var(--shadow-sm); }
  .quick-card + .quick-card { border-left: 0; border-top: 1px solid var(--line); }
  .section-head { align-items: flex-start; flex-direction: column; gap: 16px; }
  .cards-3, .services-grid, .feature-row, .symptom-grid, .contact-grid, .split { grid-template-columns: 1fr; }
  .image-stack { min-height: 430px; order: -1; }
  .image-main { inset: 0 44px 55px 0; }
  .image-float { width: 45%; height: 38%; border-width: 5px; }
  .emergency-inner, .cta-box { grid-template-columns: 1fr; }
  .emergency-actions, .cta-actions { justify-content: flex-start; }
  .page-hero { padding: 72px 0 58px; }
  .page-hero h1 { font-size: clamp(2.35rem, 11vw, 3.7rem); }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .map-wrap, .map-wrap iframe { min-height: 390px; }
  .map-cookie-placeholder { min-height: 390px; }
  .cta-box { padding: 30px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-social { justify-content: flex-start; }
  .footer-complaints { text-align: left; }
  .footer-bottom { flex-direction: column; }
  .mobile-bar { display: grid; }
  .cookie-banner { bottom: 76px; padding: 14px; }
  .cookie-banner-inner { grid-template-columns: 1fr; gap: 12px; }
  .cookie-banner-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .cookie-banner-actions button { padding-inline: 8px; font-size: .82rem; }
}

@media (max-width: 480px) {
  .container { width: min(calc(100% - 22px), var(--container)); }
  .brand-sub { display: none; }
  .card, .contact-card { padding: 22px; }
  .service-card { min-height: 215px; }
  .modal { padding: 12px; }
  .modal-dialog { padding: 24px 20px; }
}

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

/* =========================================
   CORREÇÃO HERO - MOBILE
   ========================================= */

@media (max-width: 768px) {

  .hero {
    min-height: auto;
    height: auto;
    padding: 0;
    overflow: hidden;
  }

  .hero-content {
    width: 100%;
    max-width: 100%;
    padding: 42px 24px 115px;
    box-sizing: border-box;
  }

  .hero-copy {
    width: 100%;
    max-width: 100%;
  }

  .hero-copy h1 {
  font-size: clamp(2.4rem, 9.5vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
  width: 100%;
  max-width: 100%;
  margin-bottom: 24px;

  /* Nunca partir palavras ao meio */
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

  .hero-copy p {
    width: 100%;
    max-width: 100%;
    font-size: 1.15rem;
    line-height: 1.55;
    margin-bottom: 28px;
  }

  .hero-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    justify-content: center;
    text-align: center;
  }

  .hero-badges {
    display: none;
  }

  .hero-controls {
    bottom: 85px;
  }

  /* Logótipo no mobile */
.site-header .brand .brand-logo {
  width: 135px !important;
  max-width: 135px !important;
  height: auto !important;
  max-height: 52px !important;
}

} /* fecha o @media */


/* ===============================
   LOGÓTIPO HOSPITAL - HEADER
   =============================== */

.site-header .brand .brand-logo {
  display: block;
  width: 240px !important;
  height: auto !important;
  max-width: 240px !important;
  max-height: 95px !important;
  object-fit: contain;
}

.site-header .brand {
  display: flex;
  align-items: center;
  width: auto;
  flex-shrink: 0;
}