/* Clínica Veterinária Salvador Felis — prévia Bytecraft */

@font-face {
  font-family: "Bitter";
  src: url("../fonts/bitter-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bitter";
  src: url("../fonts/bitter-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bitter";
  src: url("../fonts/bitter-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #1F3A7A;
  --navy-ink: #16284F;
  --navy-deep: #122052;
  --blue-light: #4DA8DA;
  --blue-pale: #EAF5FB;
  --white: #FFFFFF;
  --ink-soft: #4A5568;
  --pink-adopt: #C2187A;
  --pink-adopt-pale: #FBE8F2;
  --border: #D7E3F0;
  --radius-card: 14px;
  --radius-pill: 999px;
  --font-display: "Bitter", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --shadow-sticky: 0 -2px 12px rgba(16, 40, 90, 0.12);
  --header-h: 68px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--navy-ink);
  background: var(--white);
  line-height: 1.5;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(1.9rem, 5.5vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; text-wrap: pretty; }

.wrap {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 20px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 12px 20px;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 3px solid var(--blue-light);
  outline-offset: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}
.btn--primary {
  background: var(--navy);
  color: var(--white);
}
.btn--primary:hover { background: var(--navy-deep); }
.btn--outline {
  background: var(--white);
  color: var(--navy);
  border-color: var(--navy);
}
.btn--outline:hover { background: var(--blue-pale); }
.btn--ghost-on-light {
  background: transparent;
  color: var(--navy);
  border-color: var(--border);
}
.btn--lg { padding: 0 28px; font-size: 1.05rem; }

/* Badge / selo (echoes the circular emblem) */
.selo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 2px solid var(--navy);
  color: var(--navy);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.selo::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--navy);
  flex: none;
}
.selo--pink {
  border-color: var(--pink-adopt);
  color: var(--pink-adopt);
}
.selo--pink::before { background: var(--pink-adopt); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
  padding-block: 10px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
  min-width: 0;
}
.brand__logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex: none;
}
.brand__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.86rem;
  line-height: 1.2;
}
.site-nav {
  display: none;
}
.site-header__cta {
  display: none;
}

@media (min-width: 980px) {
  .site-nav {
    display: flex;
    gap: 22px;
    font-weight: 600;
    font-size: 0.95rem;
  }
  .site-nav a {
    text-decoration: none;
    color: var(--navy-ink);
    padding: 8px 2px;
    border-bottom: 2px solid transparent;
  }
  .site-nav a:hover { border-color: var(--blue-light); }
  .site-header__cta {
    display: flex;
    gap: 10px;
    flex: none;
  }
}

/* Hero — navy band, badge, full-bleed photo on desktop */
.hero {
  background: var(--navy);
  color: var(--white);
  padding-bottom: 40px;
}
.hero__inner {
  display: flex;
  flex-direction: column;
}
.hero__text {
  padding: 32px 20px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero__badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin-bottom: 16px;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18);
}
.hero h1 { color: var(--white); }
.hero__lead {
  font-size: 1.1rem;
  color: var(--blue-pale);
  max-width: 42ch;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}
.hero .btn--primary {
  background: var(--white);
  color: var(--navy);
}
.hero .btn--primary:hover { background: var(--blue-pale); }
.btn--outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
}
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.12); }
.hero__emergency {
  font-size: 0.92rem;
  color: #C7D4EC;
  margin: 0;
}
.hero__emergency a {
  color: var(--white);
  font-weight: 700;
  text-decoration: underline;
}
.hero__media {
  position: relative;
}
.hero__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 1440 / 950;
  object-fit: cover;
  display: block;
}
.hero__tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--white);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  text-decoration: none;
}
.hero__tag:hover { background: var(--blue-pale); }
.hero__stamp {
  position: absolute;
  right: 18px;
  bottom: -26px;
  width: 94px;
  height: 94px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--navy);
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.68rem;
  line-height: 1.2;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 6px 16px rgba(10, 22, 56, 0.3);
}

@media (min-width: 980px) {
  .hero { padding-bottom: 0; }
  .hero__inner {
    flex-direction: row;
    align-items: stretch;
    min-height: 600px;
  }
  .hero__text {
    flex: 0 0 auto;
    width: min(500px, 44%);
    padding: 0 40px 0 max(20px, calc((100vw - 1200px) / 2 + 20px));
    justify-content: center;
  }
  .hero__badge { width: 72px; height: 72px; margin-bottom: 20px; }
  .hero__media { flex: 1; min-width: 0; }
  .hero__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
  }
  .hero__stamp { bottom: 24px; right: 24px; }
}

/* Generic section */
.section { padding-block: 44px; }
.section--tint { background: var(--blue-pale); }

/* Serviços */
.servicos-layout {
  margin-top: 20px;
}
.servicos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.servico {
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.servico__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue-pale);
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 10px;
}
.servico p { color: var(--ink-soft); margin-bottom: 0; }

.servicos-prova {
  margin: 32px 0 0;
  max-width: 320px;
}
.servicos-prova img {
  border-radius: var(--radius-card);
  width: 100%;
  height: auto;
}
.servicos-prova figcaption {
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

@media (min-width: 720px) {
  .servicos-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .servicos-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    align-items: start;
  }
  .servicos-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 28px; }
  .servicos-prova { margin-top: 0; max-width: none; }
}

/* Gatos */
.gatos {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.gatos__media {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 14px;
  align-items: start;
}
.gatos__media img {
  border-radius: var(--radius-card);
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gatos__text p { color: var(--ink-soft); }

@media (min-width: 980px) {
  .gatos { flex-direction: row; align-items: center; gap: 48px; }
  .gatos__text { flex: 0 0 38%; }
  .gatos__media { flex: 1; }
}

/* Adoção */
.section--adocao { background: var(--pink-adopt-pale); }
.adocao__lead { color: var(--ink-soft); max-width: 60ch; }
.adocao-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 14px;
  margin-top: 22px;
}
.adocao-grid img {
  border-radius: var(--radius-card);
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}
.adocao-grid img:first-child { aspect-ratio: 1440 / 980; grid-row: span 1; }

@media (max-width: 599px) {
  .adocao-grid {
    grid-template-columns: 1fr 1fr;
  }
  .adocao-grid img:first-child { grid-column: span 2; aspect-ratio: 16 / 10; }
}

/* Horário + Endereço */
.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.horario-table {
  border-collapse: collapse;
  margin-top: 16px;
  width: 100%;
  max-width: 460px;
}
.horario-table th, .horario-table td {
  text-align: left;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
}
.horario-table th { color: var(--navy); font-weight: 700; }
.horario__nota {
  margin-top: 16px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.endereco__ref { color: var(--ink-soft); }
.endereco .btn { margin-top: 8px; }

@media (min-width: 820px) {
  .info-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
}

/* FAQ */
.faq-list { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 820px) {
  .faq-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-flow: row dense;
    align-items: start;
    gap: 14px;
  }
}
.faq-list details {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 14px 18px;
  background: var(--white);
}
.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  font-family: var(--font-display);
  min-height: 24px;
  display: flex;
  align-items: center;
}
.faq-list summary::-webkit-details-marker { color: var(--navy); }
.faq-list p { margin: 12px 0 0; color: var(--ink-soft); }

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: var(--white);
  padding-block: 36px 18px;
  margin-top: 20px;
}
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
}
.site-footer__brand img { border-radius: 50%; }
.site-footer__contacts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.95rem;
}
.site-footer__address {
  font-size: 0.9rem;
  color: #C7D4EC;
}
.site-footer__credit {
  text-align: center;
  font-size: 0.78rem;
  color: #8EA0C6;
  margin: 28px 0 0;
}

@media (min-width: 980px) {
  .site-footer__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

/* Sticky mobile CTA bar */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 150;
  display: flex;
  background: var(--white);
  box-shadow: var(--shadow-sticky);
  border-top: 1px solid var(--border);
  padding: 8px;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
  gap: 8px;
}
.sticky-cta__item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.86rem;
  text-decoration: none;
  background: var(--blue-pale);
  color: var(--navy);
}
.sticky-cta__item--primary {
  background: var(--navy);
  color: var(--white);
}
.sticky-cta__item--emergency {
  background: var(--white);
  color: var(--navy);
  border: 2px solid var(--navy);
}

@media (min-width: 980px) {
  .sticky-cta { display: none; }
  body { padding-bottom: 0; }
}
@media (max-width: 979px) {
  body { padding-bottom: 72px; }
}
