/* Grupo do meu melhor amigo — site institucional
   Identidade: manual de marca (Sintonia Digital). Cores e tipografia do manual. */

/* Montserrat (fonte do manual de marca), alojada no próprio site. Licença SIL OFL em Montserrat-LICENCA-OFL.txt */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("montserrat-latin-wght-normal.woff2") format("woff2");
}

:root {
  --navy: #002845;
  --teal: #00949c;
  --teal-deep: #00767d;   /* teal escurecido só para texto pequeno sobre fundo claro (contraste) */
  --ink: #1a1a1a;
  --white: #ffffff;
  --mist: #eef4f6;
  --line: #d3dfe4;
  --radius-lg: 28px;
  --radius-md: 14px;
  --wrap: 1120px;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; margin: 0; letter-spacing: -0.015em; }
p { margin: 0 0 1em; max-width: 62ch; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
.on-navy :focus-visible { outline-color: var(--white); }

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }

.skip {
  position: absolute; left: -999px; top: 0.5rem;
  background: var(--white); color: var(--navy); padding: 0.6rem 1rem; border-radius: var(--radius-md); z-index: 20;
}
.skip:focus { left: 0.75rem; }

/* ---------- Cabeçalho ---------- */
.site-header { background: var(--navy); color: var(--white); position: relative; z-index: 5; }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem 2rem; flex-wrap: wrap; padding-block: 1.1rem;
}
.brand img { height: 38px; width: auto; }
.nav { display: flex; gap: 0.25rem 1.6rem; flex-wrap: wrap; }
.nav a {
  text-decoration: none; font-weight: 600; font-size: 0.95rem;
  padding: 0.45rem 0; border-bottom: 2px solid transparent;
}
.nav a:hover { border-bottom-color: var(--teal); }
.nav a[aria-current="page"] { border-bottom-color: var(--teal); }

/* ---------- Botões ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700; font-size: 0.98rem;
  padding: 0.85rem 1.5rem; border-radius: var(--radius-md);
  border: 2px solid transparent; transition: background-color .15s, color .15s, border-color .15s;
  cursor: pointer;
}
.btn-teal { background: var(--teal); color: var(--white); }
.btn-teal:hover { background: #00a7b0; }
.btn-line { border-color: currentColor; }
.btn-line:hover { background: rgba(255,255,255,.1); }
.on-light .btn-line:hover { background: var(--mist); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: #003a63; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: var(--white); position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; right: -6%; bottom: -22%;
  width: min(62vw, 620px); aspect-ratio: 1;
  background: url("simbolo-branco.png") center / contain no-repeat;
  opacity: 0.07; pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; padding-block: clamp(3.2rem, 8vw, 6rem) clamp(3.2rem, 7.5vw, 5.5rem); }
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.7rem); font-weight: 800; max-width: 20ch; letter-spacing: -0.025em;
}
.hero-page h1 { font-size: clamp(2.1rem, 5.2vw, 3.7rem); max-width: 21ch; }
.hero .lead { font-size: clamp(1.1rem, 2.2vw, 1.35rem); margin-top: 1.6rem; max-width: 46ch; color: #dbe7ee; }
.hero .btn-row { margin-top: 2.4rem; }
@media (prefers-reduced-motion: no-preference) {
  .hero-inner > * { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
  .hero-inner > *:nth-child(2) { animation-delay: .12s; }
  .hero-inner > *:nth-child(3) { animation-delay: .24s; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
}

/* ---------- Secções ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); font-weight: 800; max-width: 20ch; color: var(--navy); }
.tint { background: var(--mist); }

.about { display: grid; gap: 3rem 5rem; grid-template-columns: 1fr; align-items: start; }
.about .text { margin-top: 1.6rem; }
@media (min-width: 900px) { .about { grid-template-columns: 1.15fr 0.85fr; } }

.pillars { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--navy); }
.pillars li { padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.pillars h3 { font-size: 1.25rem; font-weight: 700; color: var(--navy); margin-bottom: 0.35rem; }
.pillars p { margin: 0; color: #3a4a54; }

/* ---------- Clínicas ---------- */
.clinics-intro { margin-top: 1.1rem; font-size: 1.15rem; color: #3a4a54; }
.clinics { display: grid; gap: 1.6rem; margin-top: 3rem; }
.clinic {
  border-radius: var(--radius-lg); padding: clamp(1.8rem, 4vw, 3rem);
  display: grid; gap: 2rem 3rem; grid-template-columns: 1fr;
}
@media (min-width: 900px) { .clinic { grid-template-columns: 1fr 1fr; align-items: center; } }
.clinic h3 { font-size: clamp(1.5rem, 3vw, 2.15rem); font-weight: 800; }
.clinic .since { margin: 0.7rem 0 0; font-weight: 600; }
.clinic.primary { background: var(--navy); color: var(--white); }
.clinic.primary .since { color: #7fd6db; }
.clinic.secondary { background: var(--white); border: 2px solid var(--navy); color: var(--ink); }
.clinic.secondary .since { color: var(--teal-deep); }

.facts { margin: 0; display: grid; gap: 1rem; }
.facts div { display: grid; grid-template-columns: 6.2rem 1fr; gap: 0.5rem 1rem; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; }
.primary .facts dt { color: #7fd6db; }
.secondary .facts dt { color: var(--teal-deep); }
.facts a { text-underline-offset: 3px; }

.todo { background: #fff2a8; color: #5a4a00; padding: 0 0.35em; border-radius: 4px; font-weight: 600; }

/* ---------- Trabalhe connosco ---------- */
.join { display: grid; gap: 1.5rem 4rem; }
@media (min-width: 900px) { .join { grid-template-columns: 1fr 1fr; align-items: center; } }
.join p { margin: 0 0 1em; }
[hidden] { display: none !important; }

/* ---------- Página da clínica ---------- */
.back { display: inline-block; margin-bottom: 1.6rem; font-weight: 600; text-decoration: none; color: #7fd6db; }
.back:hover { text-decoration: underline; }
.rooms { list-style: none; margin: 2.4rem 0 0; padding: 0; display: grid; gap: 1.2rem 3rem; }
@media (min-width: 760px) { .rooms { grid-template-columns: 1fr 1fr; } }
.rooms li { position: relative; padding: 1.1rem 0 1.1rem 3.1rem; border-top: 1px solid var(--line); }
.rooms li::before {
  content: ""; position: absolute; left: 0; top: 1.35rem; width: 1.9rem; height: 1.9rem;
  background:
    linear-gradient(var(--teal), var(--teal)) center / 100% 34% no-repeat,
    linear-gradient(var(--teal), var(--teal)) center / 34% 100% no-repeat;
  border-radius: 5px;
}
.rooms h3 { font-size: 1.15rem; font-weight: 700; color: var(--navy); }
.rooms p { margin: 0.25rem 0 0; color: #3a4a54; }
.find { display: grid; gap: 2rem 4rem; }
@media (min-width: 900px) { .find { grid-template-columns: 1fr 1fr; align-items: start; } }
.find .facts { margin-top: 1.6rem; }
.find .facts dt { color: var(--teal-deep); }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--ink); color: #d6dde1; padding-block: 3.2rem 2.4rem; }
.foot { display: grid; gap: 2.4rem 3rem; }
@media (min-width: 900px) { .foot { grid-template-columns: 1.1fr 1fr 1fr 1fr; } }
.site-footer img { height: 36px; width: auto; margin-bottom: 1rem; }
.site-footer h3 { font-size: 1rem; color: var(--white); margin-bottom: 0.5rem; letter-spacing: 0; }
.site-footer p { margin: 0 0 0.3rem; font-size: 0.98rem; }
.site-footer a { text-underline-offset: 3px; }
.legal { margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px solid #3a3f42; font-size: 0.9rem; display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; justify-content: space-between; }
.legal p { margin: 0; }

@media print {
  .site-header, .hero::after, .btn-row { display: none; }
}

.nb { white-space: nowrap; }
@media (max-width: 520px) {
  .facts div { grid-template-columns: 1fr; gap: 0.15rem; }
}

.clinics-row { display: grid; gap: 1.6rem; grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .clinics-row { grid-template-columns: 1fr 1fr; }
  .clinics-row .clinic { grid-template-columns: 1fr; align-items: start; }
}

/* ---------- Faixa de campanha ---------- */
.campaign { background: var(--teal); color: var(--ink); }
.campaign .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 0.2rem 1.2rem; padding-block: 0.7rem; text-align: center; font-size: 0.95rem;
}
.campaign p { margin: 0; max-width: none; font-weight: 600; }
.campaign a { font-weight: 700; text-underline-offset: 3px; }
.campaign a:hover { text-decoration-thickness: 2px; }

/* ---------- Menu com abas (submenus) ---------- */
.nav { display: block; }
.menu-toggle {
  display: none; background: transparent; color: var(--white); border: 2px solid currentColor;
  border-radius: var(--radius-md); padding: 0.5rem 1rem; font: inherit; font-weight: 700; cursor: pointer;
}
.menu, .submenu { list-style: none; margin: 0; padding: 0; }
.menu { display: flex; align-items: center; gap: 0.25rem 1.8rem; }
.has-sub { position: relative; }
.has-sub > a::after {
  content: ""; display: inline-block; width: 0.42em; height: 0.42em; margin-left: 0.5em;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-0.18em) rotate(45deg);
}
.submenu {
  position: absolute; left: -1rem; top: 100%; min-width: 235px; padding: 0.5rem;
  background: var(--white); color: var(--navy); border-radius: var(--radius-md);
  box-shadow: 0 14px 34px rgba(0, 20, 40, 0.28);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .15s, transform .15s, visibility .15s; z-index: 10;
}
.has-sub:hover .submenu, .has-sub:focus-within .submenu { opacity: 1; visibility: visible; transform: none; }
.submenu a { display: block; padding: 0.6rem 0.9rem; border-radius: 10px; border-bottom: 0; font-weight: 600; }
.submenu a:hover { background: var(--mist); border-bottom: 0; }

@media (max-width: 859px) {
  .menu-toggle { display: inline-block; }
  .nav { display: none; width: 100%; }
  .nav.open { display: block; }
  .menu { flex-direction: column; align-items: flex-start; gap: 0; padding-bottom: 0.6rem; }
  .menu > li { width: 100%; border-top: 1px solid rgba(255, 255, 255, 0.18); padding: 0.55rem 0; }
  .has-sub > a::after { display: none; }
  .submenu {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    background: transparent; color: inherit; padding: 0.2rem 0 0 1rem; min-width: 0;
  }
  .submenu a:hover { background: rgba(255, 255, 255, 0.1); }
}

/* ---------- Menu moderno (painel com cartões) ---------- */
.submenu a::after { display: block; font-size: 0.78rem; font-weight: 500; opacity: 0.75; margin-top: 0.1rem; }
@media (min-width: 860px) {
  .submenu { left: 50%; transform: translate(-50%, 10px); min-width: 300px; padding: 0.7rem; border-radius: 20px; box-shadow: 0 22px 50px rgba(0, 20, 40, 0.32); }
  .submenu::before { content: ""; position: absolute; top: -7px; left: 50%; width: 14px; height: 14px; background: var(--white); transform: translateX(-50%) rotate(45deg); border-radius: 3px; }
  .has-sub::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px; }
  .has-sub:hover .submenu, .has-sub:focus-within .submenu { transform: translate(-50%, 4px); }
  .has-sub:has(a[href$="pinhal-novo.html"]) .submenu { display: grid; grid-template-columns: 1fr 1fr; gap: 0.3rem; min-width: 540px; }
  .has-sub:has(a[href$="pinhal-novo.html"]) .submenu { left: auto; right: -2.5rem; transform: translateY(10px); }
  .has-sub:has(a[href$="pinhal-novo.html"]):hover .submenu, .has-sub:has(a[href$="pinhal-novo.html"]):focus-within .submenu { transform: translateY(4px); }
  .has-sub:has(a[href$="pinhal-novo.html"]) .submenu::before { left: auto; right: 5.5rem; }
  .submenu a { display: grid; grid-template-columns: 42px 1fr; column-gap: 0.8rem; align-items: center; padding: 0.7rem 0.8rem; border-radius: 14px; font-weight: 700; transition: background-color .15s, transform .15s; }
  .submenu a::before { content: ""; grid-row: 1 / span 2; width: 42px; height: 42px; border-radius: 12px; background: var(--mist) center / 22px no-repeat; transition: background-color .15s; }
  .submenu a::after { grid-column: 2; color: #5a6a74; opacity: 1; }
  .submenu a:hover { background: var(--mist); transform: translateX(3px); }
  .submenu a:hover::before { background-color: var(--teal); }
  .submenu a[href$="consultorios.html"] { grid-column: 1 / -1; order: 9; display: flex; justify-content: center; background: var(--navy); color: var(--white); margin-top: 0.3rem; }
  .submenu a[href$="consultorios.html"]::before { display: none; }
  .submenu a[href$="consultorios.html"]::after { content: " →"; display: inline; margin-left: 0.4rem; color: inherit; font-size: inherit; font-weight: 700; }
  .submenu a[href$="consultorios.html"]:hover { background: var(--teal); transform: none; }
  .submenu li:has(a[href$="consultorios.html"]) { grid-column: 1 / -1; order: 9; }
  .submenu a[href$="pinhal-novo.html"]::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%2300949c'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M12%2021s-7-6.2-7-11a7%207%200%200%201%2014%200c0%204.8-7%2011-7%2011z'/%3E%3Ccircle%20cx='12'%20cy='10'%20r='2.5'/%3E%3C/svg%3E"); }
  .submenu a[href$="pinhal-novo.html"]:hover::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23ffffff'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M12%2021s-7-6.2-7-11a7%207%200%200%201%2014%200c0%204.8-7%2011-7%2011z'/%3E%3Ccircle%20cx='12'%20cy='10'%20r='2.5'/%3E%3C/svg%3E"); }
  .submenu a[href*="lindaavelha"]::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%2300949c'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M12%2021s-7-6.2-7-11a7%207%200%200%201%2014%200c0%204.8-7%2011-7%2011z'/%3E%3Ccircle%20cx='12'%20cy='10'%20r='2.5'/%3E%3C/svg%3E"); }
  .submenu a[href*="lindaavelha"]:hover::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23ffffff'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M12%2021s-7-6.2-7-11a7%207%200%200%201%2014%200c0%204.8-7%2011-7%2011z'/%3E%3Ccircle%20cx='12'%20cy='10'%20r='2.5'/%3E%3C/svg%3E"); }
  .submenu a[href$="loures.html"]::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%2300949c'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M12%2021s-7-6.2-7-11a7%207%200%200%201%2014%200c0%204.8-7%2011-7%2011z'/%3E%3Ccircle%20cx='12'%20cy='10'%20r='2.5'/%3E%3C/svg%3E"); }
  .submenu a[href$="loures.html"]:hover::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23ffffff'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M12%2021s-7-6.2-7-11a7%207%200%200%201%2014%200c0%204.8-7%2011-7%2011z'/%3E%3Ccircle%20cx='12'%20cy='10'%20r='2.5'/%3E%3C/svg%3E"); }
  .submenu a[href$="exoticvets.html"]::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%2300949c'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Ccircle%20cx='6'%20cy='10'%20r='1.8'/%3E%3Ccircle%20cx='10'%20cy='6'%20r='1.8'/%3E%3Ccircle%20cx='14'%20cy='6'%20r='1.8'/%3E%3Ccircle%20cx='18'%20cy='10'%20r='1.8'/%3E%3Cpath%20d='M12%2012c-3%200-5.5%203.5-5.5%205.5%200%201.5%201.2%202.5%202.8%202.5%201.1%200%201.7-.6%202.7-.6s1.6.6%202.7.6c1.6%200%202.8-1%202.8-2.5%200-2-2.5-5.5-5.5-5.5z'/%3E%3C/svg%3E"); }
  .submenu a[href$="exoticvets.html"]:hover::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23ffffff'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Ccircle%20cx='6'%20cy='10'%20r='1.8'/%3E%3Ccircle%20cx='10'%20cy='6'%20r='1.8'/%3E%3Ccircle%20cx='14'%20cy='6'%20r='1.8'/%3E%3Ccircle%20cx='18'%20cy='10'%20r='1.8'/%3E%3Cpath%20d='M12%2012c-3%200-5.5%203.5-5.5%205.5%200%201.5%201.2%202.5%202.8%202.5%201.1%200%201.7-.6%202.7-.6s1.6.6%202.7.6c1.6%200%202.8-1%202.8-2.5%200-2-2.5-5.5-5.5-5.5z'/%3E%3C/svg%3E"); }
  .submenu a[href$="#quem-somos"]::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%2300949c'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M20.8%204.6a5.5%205.5%200%200%200-7.8%200L12%205.7l-1-1.1a5.5%205.5%200%200%200-7.8%207.8L12%2021l8.8-8.6a5.5%205.5%200%200%200%200-7.8z'/%3E%3C/svg%3E"); }
  .submenu a[href$="#quem-somos"]:hover::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23ffffff'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M20.8%204.6a5.5%205.5%200%200%200-7.8%200L12%205.7l-1-1.1a5.5%205.5%200%200%200-7.8%207.8L12%2021l8.8-8.6a5.5%205.5%200%200%200%200-7.8z'/%3E%3C/svg%3E"); }
  .submenu a[href$="#missao"]::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%2300949c'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M12%203l2.8%205.6%206.2.9-4.5%204.4%201%206.1L12%2017.1%206.5%2020l1-6.1L3%209.5l6.2-.9z'/%3E%3C/svg%3E"); }
  .submenu a[href$="#missao"]:hover::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23ffffff'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M12%203l2.8%205.6%206.2.9-4.5%204.4%201%206.1L12%2017.1%206.5%2020l1-6.1L3%209.5l6.2-.9z'/%3E%3C/svg%3E"); }
  .submenu a[href$="#trabalhe-connosco"]::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%2300949c'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Crect%20x='3'%20y='7'%20width='18'%20height='13'%20rx='2'/%3E%3Cpath%20d='M9%207V5a2%202%200%200%201%202-2h2a2%202%200%200%201%202%202v2M3%2013h18'/%3E%3C/svg%3E"); }
  .submenu a[href$="#trabalhe-connosco"]:hover::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23ffffff'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Crect%20x='3'%20y='7'%20width='18'%20height='13'%20rx='2'/%3E%3Cpath%20d='M9%207V5a2%202%200%200%201%202-2h2a2%202%200%200%201%202%202v2M3%2013h18'/%3E%3C/svg%3E"); }
}
.submenu a[href$="pinhal-novo.html"]::after { content: "Setúbal · consultório-mãe"; }
.submenu a[href*="lindaavelha"]::after { content: "Lisboa · Centro Veterinário"; }
.submenu a[href$="loures.html"]::after { content: "Lisboa · consultório"; }
.submenu a[href$="exoticvets.html"]::after { content: "Exóticos · também ao domicílio"; }
.submenu a[href$="#quem-somos"]::after { content: "A nossa história"; }
.submenu a[href$="#missao"]::after { content: "O que nos move"; }
.submenu a[href$="#trabalhe-connosco"]::after { content: "Junte-se à equipa"; }

/* ---------- Unidades: mosaicos por localidade, filtros e cartões ---------- */
.tiles { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); margin-top: 2.6rem; }
.tile {
  display: flex; flex-direction: column; background: var(--navy); color: var(--white);
  border-radius: var(--radius-lg); padding: 2rem 2rem 2.2rem; text-decoration: none;
  transition: transform .15s, background-color .15s;
}
.tile:hover { transform: translateY(-4px); background: #003a63; }
.tile-n { font-size: 4.2rem; font-weight: 800; line-height: 1; color: var(--teal); letter-spacing: -0.03em; }
.tile-l { font-weight: 600; color: #7fd6db; margin-top: 0.3rem; }
.tile-r { font-size: 1.6rem; font-weight: 800; margin-top: 1.2rem; }
.tile-u { margin-top: 0.4rem; color: #dbe7ee; }

.filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2rem; }
.filter {
  font: inherit; font-weight: 700; cursor: pointer; padding: 0.6rem 1.2rem; border-radius: 999px;
  border: 2px solid var(--navy); background: var(--white); color: var(--navy);
}
.filter:hover { background: var(--mist); }
.filter[aria-pressed="true"] { background: var(--navy); color: var(--white); }

.units { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.unit {
  background: var(--white); border: 2px solid var(--navy); border-radius: var(--radius-lg);
  padding: 2rem; display: flex; flex-direction: column;
}
.unit[hidden] { display: none; }
.unit-region { margin: 0 0 0.5rem; font-weight: 700; color: var(--teal-deep); }
.unit h3 { font-size: 1.5rem; font-weight: 800; color: var(--navy); }
.unit .since { margin: 0.5rem 0 0; font-weight: 600; color: var(--teal-deep); }
.unit .facts { margin-top: 1.4rem; }
.unit .facts dt { color: var(--teal-deep); }
.unit .btn-row { margin-top: auto; padding-top: 1.8rem; }

/* ---------- Sobre / página inicial ---------- */
.intro { display: grid; gap: 1.5rem 4rem; }
@media (min-width: 900px) { .intro { grid-template-columns: 1fr 1fr; align-items: start; } }
.intro p { margin-bottom: 0.4em; }
.stats { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--navy); }
.stats li { padding: 1.2rem 0; border-bottom: 1px solid var(--line); display: flex; align-items: baseline; gap: 1.1rem; }
.stat-n { font-size: 2.6rem; font-weight: 800; color: var(--navy); line-height: 1; min-width: 4.2rem; }
.stat-l { color: #3a4a54; }
.hero-page .hero-inner { padding-block: clamp(3rem, 7vw, 5rem); }
.foot { grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)) !important; gap: 2rem 2rem; }
.unit .facts div { grid-template-columns: 1fr; gap: 0.1rem; }
@media (max-width: 520px) {
  .brand img { height: 32px; }
  .site-header .wrap { gap: 0.6rem 1rem; }
}

/* ---------- Entrada: ligar ao consultório ---------- */
.quick-label { margin: 2.2rem 0 0.8rem; font-weight: 700; color: #7fd6db; }
.quick-row { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.quick {
  display: flex; flex-direction: column; gap: 0.1rem; min-width: 11.5rem;
  padding: 0.85rem 1.3rem; border-radius: var(--radius-md); text-decoration: none;
  background: rgba(255, 255, 255, 0.09); border: 2px solid rgba(255, 255, 255, 0.28);
  transition: background-color .15s, border-color .15s;
}
.quick:hover { background: rgba(255, 255, 255, 0.17); border-color: var(--white); }
.quick-n { font-weight: 700; font-size: 0.95rem; }
.quick-t { font-weight: 800; font-size: 1.25rem; color: #7fd6db; letter-spacing: 0.01em; }
.quick-more { margin: 1.2rem 0 0; max-width: none; }
.quick-more a { font-weight: 600; text-underline-offset: 3px; }
@media (max-width: 520px) { .quick { flex: 1 1 100%; flex-direction: row; justify-content: space-between; align-items: center; } }

/* ---------- Página do consultório: título mais pequeno, marcação e equipa ---------- */
.hero-page h1 { font-size: clamp(1.9rem, 3.8vw, 3rem); max-width: 24ch; }
.hero-page .btn-row { margin-top: 1.6rem; }
.booking { display: grid; gap: 2.4rem 4rem; }
@media (min-width: 900px) { .booking { grid-template-columns: 0.9fr 1.1fr; align-items: start; } }
.note { font-size: 0.95rem; color: #3a4a54; }
.form { display: grid; gap: 1.1rem; background: var(--white); padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: var(--radius-lg); border: 2px solid var(--navy); }
.form[hidden], .pedido[hidden] { display: none; }
.field { display: grid; gap: 0.35rem; }
.field-row { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { font-weight: 700; font-size: 0.95rem; color: var(--navy); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: var(--white);
  border: 2px solid var(--line); border-radius: 10px; padding: 0.7rem 0.85rem; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px rgba(0, 148, 156, 0.25); }
.form-error { margin: 0; padding: 0.7rem 0.9rem; border-radius: 10px; background: #fde8e8; color: #7a1414; font-weight: 600; max-width: none; }
.form .btn { justify-self: start; }
.pedido { background: var(--white); padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: var(--radius-lg); border: 2px solid var(--teal); }
.pedido h3 { font-size: 1.4rem; font-weight: 800; color: var(--navy); }
.pedido pre { margin: 1rem 0 0; padding: 1rem; background: var(--mist); border-radius: 12px; white-space: pre-wrap; font: inherit; font-size: 0.98rem; line-height: 1.55; }
.pedido .note { margin-top: 1rem; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--teal-deep); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.team { display: flex; flex-wrap: wrap; gap: 1.6rem; margin-top: 2.2rem; }
.person { max-width: 22rem; }
.avatar { width: 5.5rem; height: 5.5rem; border-radius: 50%; background: var(--navy); color: #7fd6db; display: grid; place-items: center; font-weight: 800; font-size: 1.6rem; margin-bottom: 1rem; }
.person h3 { font-size: 1.25rem; font-weight: 800; color: var(--navy); }
.person p { margin: 0.3rem 0 0; color: #3a4a54; }

/* ---------- ExoticVets ---------- */
.special {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 1.8rem; margin-top: 2rem;
  padding: 1.4rem 1.8rem; background: var(--white); border: 2px solid var(--teal); border-radius: var(--radius-lg);
}
.special img { width: 72px; height: auto; }
.special p { margin: 0; flex: 1 1 18rem; max-width: none; }
.ev-card {
  display: flex; flex-wrap: wrap; gap: 1.6rem 2.2rem; margin-top: 2rem; align-items: flex-start;
  padding: clamp(1.6rem, 3vw, 2.4rem); border: 2px solid var(--teal); border-radius: var(--radius-lg); background: var(--white);
}
.ev-mark { width: 96px; height: auto; flex: none; }
.ev-card > div { flex: 1 1 20rem; }
.ev-card h3 { font-size: 1.6rem; font-weight: 800; color: var(--navy); }
.ev-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.8rem 0 1rem; padding: 0; }
.ev-tags span { background: var(--teal-deep); color: var(--white); font-weight: 700; font-size: 0.85rem; padding: 0.25rem 0.8rem; border-radius: 999px; }
.ev-hero-logo { width: 84px; height: auto; margin: 0 0 1.2rem; }
.chips { list-style: none; margin: 1.8rem 0 1.4rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.7rem; }
.chips li { padding: 0.6rem 1.3rem; border-radius: 999px; background: var(--navy); color: var(--white); font-weight: 700; }
.two { display: grid; gap: 1.4rem; margin-top: 2rem; grid-template-columns: 1fr; }
@media (min-width: 800px) { .two { grid-template-columns: 1fr 1fr; } }
.mini { background: var(--white); border-radius: var(--radius-lg); padding: 1.8rem; border: 2px solid var(--navy); }
.mini h3 { font-size: 1.3rem; font-weight: 800; color: var(--navy); margin-bottom: 0.5rem; }
.mini p { margin: 0 0 0.6em; }
.mini a { font-weight: 600; text-underline-offset: 3px; }

/* ---------- ExoticVets: cores do Instagram (turquesa, carvão e creme) ---------- */
.theme-ev { --navy: #1a1a1a; --mist: #f8efdf; --line: #e6d8bd; }
.theme-ev .site-header { background: #1a1a1a; }
.theme-ev .hero::after {
  background: url("exoticvets-logo-branco.png") center / contain no-repeat;
  right: -3%; bottom: -34%; width: min(52vw, 520px); opacity: 0.06;
}
.theme-ev .hero::before {
  content: ""; position: absolute; left: -6%; bottom: -30%; width: 46vw; max-width: 520px; aspect-ratio: 1.25;
  background: rgba(0, 148, 156, 0.2); border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%; transform: rotate(-14deg); pointer-events: none;
}
.theme-ev .hero-inner::before {
  content: ""; position: absolute; right: 12%; top: 6%; width: 190px; height: 140px;
  background: rgba(255, 255, 255, 0.05); border-radius: 48% 52% 41% 59% / 56% 40% 60% 44%; transform: rotate(24deg); pointer-events: none; z-index: -1;
}
.brush {
  color: var(--white); padding: 0 0.32em; margin: 0 -0.12em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 60' preserveAspectRatio='none'%3E%3Cpath fill='%2300949c' d='M4 12C40 3 120 9 200 6c50-2 88 4 96 10 4 14-4 30 0 36-56 6-136 2-206 4-40 1-70-2-84-6C-2 38 8 26 4 12Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.theme-ev .section h2 { color: var(--navy); }
.theme-ev .chips li { background: var(--teal-deep); }
.section.teal { background: var(--teal); color: #fff; }
.section.teal h2 { color: #fff; }
.theme-ev .mini { background: var(--mist); border-color: transparent; color: var(--ink); }
.theme-ev .mini h3 { color: var(--ink); }
.theme-ev .mini a { color: var(--ink); }
.theme-ev .btn-navy { background: var(--ink); }
.theme-ev .btn-navy:hover { background: #333; }
.theme-ev .btn-teal:hover { background: #00a7b0; }

/* ---------- Páginas legais, caixa de aceitação e faixa de cookies ---------- */
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.35rem; font-weight: 800; margin: 2.2rem 0 0.5rem; max-width: none; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { max-width: none; }
.prose a { text-underline-offset: 3px; color: var(--teal-deep); font-weight: 600; }
.check { display: flex; gap: 0.7rem; align-items: flex-start; }
.check input { width: 1.3rem; height: 1.3rem; margin-top: 0.15rem; flex: none; accent-color: var(--teal-deep); }
.check label { font-size: 0.95rem; }
.check a { color: var(--teal-deep); font-weight: 600; text-underline-offset: 3px; }
.site-footer .link-btn { color: #d6dde1; font-size: inherit; }
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--white); color: var(--ink);
  border-top: 4px solid var(--teal); box-shadow: 0 -10px 30px rgba(0, 20, 40, 0.25);
}
.cookie-in { width: min(var(--wrap), 100% - 2.5rem); margin: 0 auto; padding: 1.2rem 0 1.4rem; }
.cookie-in h2 { font-size: 1.15rem; font-weight: 800; color: var(--navy); }
.cookie-in p { margin: 0.4rem 0 0.9rem; font-size: 0.95rem; max-width: 60ch; }
.cookie-in a { color: var(--teal-deep); font-weight: 600; }
.ck-btns { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; }
.ck-op { display: flex; gap: 0.6rem; align-items: center; margin-bottom: 1rem; font-weight: 600; }
.table-wrap { overflow-x: auto; margin: 1rem 0 1.4rem; }
.entities { border-collapse: collapse; width: 100%; min-width: 660px; font-size: 0.95rem; }
.entities th, .entities td { text-align: left; vertical-align: top; padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--line); }
.entities th { background: var(--mist); color: var(--navy); font-weight: 800; }
button.btn { font-family: inherit; font-size: 0.98rem; font-weight: 700; }

/* ---------- Página inicial: fotos ---------- */
.hero-home::after { display: none; }
.hero-foto { margin: 0; }
.hero-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 900px) {
  .hero-foto { position: absolute; inset: 0 0 0 auto; width: 46%; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28%); mask-image: linear-gradient(90deg, transparent 0, #000 28%); }
  .hero-home .hero-inner > * { max-width: 54%; }
}
@media (max-width: 899px) {
  .hero-foto { height: 240px; -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); mask-image: linear-gradient(180deg, #000 60%, transparent); }
  .hero-home .hero-inner { padding-top: 1.2rem; }
}
.tile { overflow: hidden; }
.tile-foto { display: block; width: calc(100% + 4rem); max-width: none; margin: -2rem -2rem 1.4rem; aspect-ratio: 16 / 9; object-fit: cover; }
.amigos-grid { display: grid; gap: 0.9rem; grid-template-columns: repeat(2, 1fr); margin-top: 2.2rem; }
@media (min-width: 640px) { .amigos-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .amigos-grid { grid-template-columns: repeat(6, 1fr); } }
.amigos-grid figure { margin: 0; border-radius: var(--radius-md); overflow: hidden; position: relative; aspect-ratio: 1; }
.amigos-grid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.amigos-grid figure:hover img { transform: scale(1.06); }
.amigos-grid figcaption { position: absolute; left: 0.6rem; bottom: 0.6rem; background: rgba(0,40,69,.85); color: #fff; font-size: 0.82rem; font-weight: 700; padding: 0.25rem 0.7rem; border-radius: 999px; }
.reviews { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 2.2rem; }
.review { margin: 0; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--teal); border-radius: var(--radius-md); padding: 1.5rem 1.4rem 1.3rem; display: flex; flex-direction: column; }
.review::before { content: "\201C"; font-size: 3.2rem; line-height: 0.6; color: var(--teal); font-weight: 800; height: 1.4rem; }
.review p { margin: 0 0 1rem; color: #2a3a44; flex: 1; }
.review footer { font-size: 0.85rem; font-weight: 700; color: var(--navy); }
.review footer span { display: block; font-weight: 500; color: #5a6a74; }


/* ---------- Missão e valores ---------- */
.mission { position: relative; overflow: hidden; margin-top: 2rem; background: var(--navy); color: var(--white); border-radius: var(--radius-lg); padding: clamp(1.8rem, 4vw, 3rem); }
.mission::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 260px; aspect-ratio: 1; background: url("simbolo-branco.png") center / contain no-repeat; opacity: 0.08; }
.mission-k { position: relative; margin: 0 0 0.6rem; font-weight: 700; color: #7fd6db; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem; }
.mission-t { position: relative; margin: 0; font-size: clamp(1.35rem, 3vw, 2rem); font-weight: 800; line-height: 1.3; max-width: 32ch; }
.values { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.values li { background: var(--white); border-radius: var(--radius-md); padding: 1.5rem 1.4rem; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.values li:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0, 40, 69, 0.12); }
.value-ico { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--mist); color: var(--teal); margin-bottom: 0.9rem; transition: background-color .2s, color .2s; }
.values li:hover .value-ico { background: var(--teal); color: var(--white); }
.value-ico svg { width: 24px; height: 24px; }
.values h3 { margin: 0 0 0.4rem; font-size: 1.12rem; font-weight: 800; color: var(--navy); }
.values p { margin: 0; color: #3a4a54; font-size: 0.97rem; }

/* ---------- Redes sociais (topo das unidades) ---------- */
.social { display: flex; align-items: center; gap: 0.7rem; margin-top: 1.6rem; }
.social span { font-weight: 700; color: #7fd6db; font-size: 0.95rem; margin-right: 0.2rem; }
.social a { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 2px solid rgba(255,255,255,.55); color: var(--white); transition: background-color .15s, border-color .15s, transform .15s; }
.social a:hover { background: var(--teal); border-color: var(--teal); transform: translateY(-2px); }
.social svg { width: 22px; height: 22px; }
