/* ================================================================
   DUOVET — styles.css v4.2 (responsivo — sem overflow horizontal)
   ================================================================ */

/* ── Tipografia secundária ── */
h2 { font-size: clamp(1.9rem, 4vw,   3rem);    font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.55rem); font-weight: 600; }
h4 { font-size: clamp(1rem,   2vw,   1.15rem);  font-weight: 600; }

/* ── Section header ── */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-header h2 { margin-bottom: 12px; }
.section-header p  { max-width: 540px; margin-inline: auto; }

/* ── Botões secundários ── */
.btn-purple {
  background: var(--brand-purple);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(138,43,226,.38);
}
.btn-purple:hover {
  background: var(--brand-purple-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(138,43,226,.48);
}
.btn-emergency {
  background: rgba(255,255,255,.18);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.40);
  backdrop-filter: blur(8px);
  font-size: .9rem;
  padding: 11px 24px;
}
.btn-emergency:hover {
  background: rgba(255,255,255,.30);
  transform: translateY(-2px);
}

/* ================================================================
   BARRA DE ESTATÍSTICAS
   ================================================================ */
.stats-bar {
  background: var(--white);
  border-bottom: 1px solid rgba(0,0,0,.05);
  box-shadow: var(--shadow-xs);
}
.stats-inner {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
  padding: 44px 0;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.stat-number-wrap {
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  font-weight: 700;
  color: var(--brand-purple);
  line-height: 1;
}
.stat-suffix {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 700;
  color: var(--brand-yellow);
}
.stat-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--neutral-500);
}

/* ================================================================
   HIGHLIGHTS
   ================================================================ */
.highlights {
  padding: 100px 0;
  background: var(--neutral-100);
}
/* FIX: minmax reduzido para não estourar em telas < 560px */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 24px;
}
.highlight-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border: 1px solid rgba(0,0,0,.04);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: transform var(--t-mid), box-shadow var(--t-mid);
}
.highlight-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-purple), var(--brand-yellow));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-mid);
}
.highlight-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.highlight-card:hover::before { transform: scaleX(1); }
.highlight-icon-wrap {
  width: 54px; height: 54px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(138,43,226,.10), rgba(255,193,7,.08));
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  color: var(--brand-purple);
  margin-bottom: 20px;
  transition: transform var(--t-mid);
}
.highlight-card:hover .highlight-icon-wrap { transform: scale(1.08) rotate(-3deg); }
.highlight-card h3 { font-size: 1.1rem; margin-bottom: 10px; color: var(--neutral-900); }
.highlight-card > p { font-size: .9rem; }

/* ================================================================
   SERVIÇOS
   ================================================================ */
.services {
  padding: 100px 0;
  background: var(--white);
}
/* FIX: minmax com min() para nunca ultrapassar a largura disponível */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 22px;
}
.service-card {
  background: var(--neutral-100);
  border-radius: var(--radius-lg);
  padding: 36px 26px;
  text-align: center;
  border: 1px solid transparent;
  transition: transform var(--t-mid), box-shadow var(--t-mid), border-color var(--t-mid), background var(--t-mid);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: rgba(138,43,226,.14);
  background: var(--white);
}
.service-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(138,43,226,.10), rgba(255,193,7,.07));
  display: grid;
  place-items: center;
  font-size: 1.75rem;
  color: var(--brand-purple);
  margin: 0 auto 20px;
  transition: transform var(--ease-back);
}
.service-card:hover .service-icon { transform: scale(1.1) rotate(-4deg); }
.service-card h3 { font-size: 1.05rem; margin-bottom: 10px; color: var(--neutral-900); }
.service-card p  { font-size: .88rem; margin-bottom: 20px; }
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand-purple);
  font-size: .875rem;
  font-weight: 700;
  transition: gap var(--t-fast), color var(--t-fast);
}
.service-link:hover { gap: 12px; color: var(--brand-purple-dark); }

/* ================================================================
   DOUTORAS
   ================================================================ */
.doctors {
  padding: 100px 0;
  background: linear-gradient(160deg, var(--neutral-100) 60%, rgba(138,43,226,.04) 100%);
}
.doctors-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
}
/* FIX: max-width limitado para não estourar em telas pequenas */
.doctor-card {
  width: 100%;
  max-width: min(340px, 100%);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0,0,0,.05);
  overflow: hidden;
  transition: transform var(--t-mid), box-shadow var(--t-mid);
}
.doctor-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.doctor-profile {
  padding: 36px 28px 24px;
  text-align: center;
  cursor: pointer;
  user-select: none;
}
.doctor-image { transition: transform var(--t-mid); }
.doctor-image img { transition: transform var(--t-slow); }
.doctor-card:hover .doctor-image img { transform: scale(1.05); }
.doctor-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.doctor-specialty {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand-purple);
  background: rgba(138,43,226,.08);
  border: 1px solid rgba(138,43,226,.18);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}
.view-profile-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--neutral-700);
  border: 1.5px solid var(--neutral-300);
  padding: 9px 22px;
  border-radius: var(--radius-full);
  font-size: .82rem;
  font-weight: 600;
  transition: all var(--t-fast);
  pointer-events: none;
}
.doctor-profile[aria-expanded="true"] .view-profile-btn {
  background: var(--brand-purple);
  color: var(--white);
  border-color: var(--brand-purple);
}
.doctor-info {
  max-height: 0;
  overflow: hidden;
  transition: max-height .55s var(--ease-out);
}
.doctor-info.active { max-height: 900px; }
.doctor-expanded {
  padding: 24px 28px 30px;
  border-top: 1px solid rgba(0,0,0,.05);
  background: linear-gradient(180deg, rgba(138,43,226,.03) 0%, transparent 100%);
}
.doctor-details h4 {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--brand-purple);
  margin: 18px 0 10px;
}
.doctor-details ul { margin-left: 18px; }
.doctor-details li {
  font-size: .87rem;
  color: var(--neutral-700);
  margin-bottom: 6px;
  list-style: disc;
  line-height: 1.5;
}
.specialties { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.specialties span {
  background: rgba(138,43,226,.08);
  color: var(--brand-purple);
  border: 1px solid rgba(138,43,226,.18);
  padding: 5px 13px;
  border-radius: var(--radius-full);
  font-size: .75rem;
  font-weight: 600;
}

/* ================================================================
   CLÍNICA & GALERIA
   ================================================================ */
.clinic {
  padding: 100px 0;
  background: var(--white);
}
.clinic-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.clinic-intro {
  color: var(--neutral-700);
  margin-bottom: 36px;
  font-size: 1rem;
  line-height: 1.8;
}
.clinic-features { display: grid; gap: 16px; margin-bottom: 36px; }
.clinic-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  background: var(--neutral-100);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--brand-purple);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.clinic-feature:hover { transform: translateX(4px); box-shadow: var(--shadow-sm); }
.clinic-feature-icon {
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--brand-purple), var(--brand-yellow));
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(138,43,226,.3);
}
.clinic-feature-text strong {
  display: block;
  font-size: .9rem;
  font-weight: 700;
  color: var(--neutral-900);
  margin-bottom: 4px;
}
.clinic-feature-text p { font-size: .84rem; margin: 0; }
.clinic-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .6s var(--ease-out);
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 22px 14px 12px;
  background: linear-gradient(transparent, rgba(13,14,19,.75));
  color: var(--white);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.gallery-item.img-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--neutral-100), var(--neutral-300));
  color: var(--neutral-500);
}
.gallery-item.img-error i    { font-size: 2.5rem; color: var(--neutral-300); }
.gallery-item.img-error span { font-size: .8rem;  font-weight: 600; }

/* ── Mapa ── */
.map-placeholder {
  width: 100%;
  height: 100%;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--neutral-100);
  border-radius: var(--radius-lg);
  cursor: pointer;
}
.map-load-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 2px solid rgba(138,43,226,.2);
  border-radius: var(--radius-lg);
  padding: 32px 48px;
  color: var(--brand-purple);
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--t-fast);
  box-shadow: var(--shadow-card);
}
.map-load-btn i { font-size: 2.5rem; }
.map-load-btn:hover {
  background: var(--brand-purple);
  color: var(--white);
  border-color: var(--brand-purple);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* ================================================================
   DEPOIMENTOS
   ================================================================ */
.testimonials {
  padding: 100px 0;
  background: var(--neutral-100);
}
/* FIX: minmax com min() para nunca ultrapassar a largura disponível */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 24px;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0,0,0,.04);
  position: relative;
  overflow: hidden;
  transition: transform var(--t-mid), box-shadow var(--t-mid);
}
.testimonial-card::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 6rem;
  line-height: .7;
  color: var(--brand-purple);
  opacity: .08;
  position: absolute;
  top: 16px; left: 20px;
  pointer-events: none;
}
.testimonial-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.stars {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  color: var(--brand-yellow);
  font-size: .9rem;
}
.testimonial-text {
  font-size: .95rem;
  line-height: 1.75;
  color: var(--neutral-700);
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--neutral-100);
  padding-top: 18px;
}
.pet-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}
.cat-avatar { background: linear-gradient(135deg,#EDE0F5,#D4A5EA); color: var(--brand-purple); }
.dog-avatar { background: linear-gradient(135deg,#DBEAFE,#93C5FD); color: #1565C0; }
.author-info h4 { font-size: .92rem; font-weight: 700; color: var(--neutral-900); margin-bottom: 3px; }
.author-info p  { font-size: .78rem; margin: 0; color: var(--neutral-500); }

/* ================================================================
   CONTATO
   ================================================================ */
.contact {
  padding: 100px 0;
  background: var(--white);
}
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 56px;
}
.contact-left { display: flex; flex-direction: column; gap: 24px; }
.contact-details { display: grid; gap: 14px; }
.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  background: var(--neutral-100);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--brand-purple);
  transition: transform var(--t-fast);
}
.contact-item:hover { transform: translateX(4px); }
.contact-item-icon {
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  background: var(--brand-purple);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.contact-item h4 {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--brand-purple);
  margin-bottom: 6px;
}
.contact-item a {
  display: block;
  font-size: .92rem;
  color: var(--neutral-700);
  transition: color var(--t-fast);
}
.contact-item a:hover { color: var(--brand-purple); }
.contact-item p { font-size: .88rem; margin: 0; }
.hours-grid {
  background: var(--neutral-100);
  border-radius: var(--radius-md);
  padding: 20px;
}
.hours-grid h4 {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--brand-purple);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hours-row {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid rgba(0,0,0,.05);
  font-size: .87rem;
}
.hours-row:last-child { border-bottom: none; }
.hours-row .day { font-weight: 600; color: var(--neutral-800); }
.hours-row .time { color: var(--neutral-500); }
.hours-row .emergency { color: var(--brand-purple); font-weight: 700; }
.contact-social-block {}
.contact-social-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--neutral-700);
  margin-bottom: 12px;
}
.social-links { display: flex; gap: 12px; }
.social-links a {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  background: var(--neutral-100);
  color: var(--neutral-700);
  border: 1.5px solid var(--neutral-300);
  transition: all var(--t-fast);
}
.social-links a:hover {
  background: var(--brand-purple);
  color: var(--white);
  border-color: var(--brand-purple);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(138,43,226,.32);
}
.contact-emergency-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px;
  background: linear-gradient(135deg, var(--brand-purple), var(--brand-purple-dark));
  border-radius: var(--radius-lg);
  color: var(--white);
}
.emergency-card-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.18);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.contact-emergency-card h3 { color: var(--white); font-size: 1.1rem; margin-bottom: 6px; }
.contact-emergency-card p  { color: rgba(255,255,255,.82); font-size: .88rem; margin-bottom: 16px; }

/* ================================================================
   FOOTER
   ================================================================ */
footer {
  background: #111118;
  color: var(--white);
  padding: 0 0 36px;
  position: relative;
}
.footer-divider {
  width: 100%;
  line-height: 0;
  display: block;
  background: var(--white);
}
.footer-divider svg { display: block; width: 100%; height: 70px; }
.footer-inner { padding-top: 80px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 64px;
}
.footer-col h4 {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--neutral-300);
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 12px;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 28px; height: 2px;
  background: var(--brand-yellow);
  border-radius: 2px;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -.04em;
  margin-bottom: 14px;
  display: block;
}
.footer-logo .duo { color: var(--brand-yellow); }
.footer-logo .vet { color: var(--brand-purple); }
.footer-col > p {
  font-size: .87rem;
  color: var(--neutral-500);
  line-height: 1.75;
  margin-bottom: 22px;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.06);
  color: var(--neutral-300);
  font-size: .95rem;
  border: 1px solid rgba(255,255,255,.08);
  transition: all var(--t-fast);
}
.footer-social a:hover {
  background: var(--brand-purple);
  color: var(--white);
  border-color: var(--brand-purple);
  transform: translateY(-2px);
}
.footer-links { display: grid; gap: 10px; }
.footer-links a {
  font-size: .87rem;
  color: var(--neutral-500);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color var(--t-fast), padding-left var(--t-fast);
}
.footer-links a i { font-size: .6rem; color: var(--brand-yellow); }
.footer-links a:hover { color: var(--white); padding-left: 4px; }
.newsletter-form {
  display: flex;
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  margin-top: 16px;
}
.newsletter-input {
  flex: 1;
  padding: 13px 18px;
  background: transparent;
  border: none;
  color: var(--white);
  font-size: .85rem;
  outline: none;
  min-width: 0;
}
.newsletter-input::placeholder { color: var(--neutral-500); }
.newsletter-btn {
  width: 50px; height: 50px;
  background: var(--brand-purple);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1rem;
  flex-shrink: 0;
  transition: background var(--t-fast);
}
.newsletter-btn:hover { background: var(--brand-purple-dark); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.07);
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: .82rem; color: var(--neutral-500); margin: 0; }
.developer-credit a {
  color: var(--brand-yellow);
  font-weight: 600;
  transition: color var(--t-fast);
}
.developer-credit a:hover { color: var(--brand-yellow-dark); }

/* ================================================================
   BOTÕES FLUTUANTES
   ================================================================ */
.contact-float {
  position: fixed;
  bottom: 28px; right: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 800;
}
.float-btn {
  width: 58px; height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  box-shadow: 0 6px 20px rgba(0,0,0,.22);
  transition: transform var(--ease-back), box-shadow var(--t-fast);
  position: relative;
}
.float-btn:hover { transform: scale(1.12); }
.float-btn.whatsapp { background: var(--brand-whatsapp); color: var(--white); }
.float-btn.phone    { background: var(--brand-purple);   color: var(--white); }
.float-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: #1A1A2E;
  color: var(--white);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--t-fast);
}
.float-tooltip::after {
  content: '';
  position: absolute;
  left: 100%; top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: #1A1A2E;
}
.float-btn:hover .float-tooltip { opacity: 1; }

/* ================================================================
   ANIMAÇÕES
   ================================================================ */
@keyframes navLinkFade {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0);    }
}
.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s var(--ease-out), transform .65s var(--ease-out);
}
.animate-on-scroll.in-view { opacity: 1; transform: translateY(0); }

/* ================================================================
   RESPONSIVIDADE — TABLET (≤ 1024px)
   ================================================================ */
@media (max-width: 1024px) {
  .footer-grid    { grid-template-columns: 1fr 1fr; gap: 36px; }
  .clinic-layout  { grid-template-columns: 1fr; gap: 40px; }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .map-wrapper    { min-height: 380px; height: 380px; }
  .map-placeholder { min-height: 380px; }
}

/* ================================================================
   RESPONSIVIDADE — MOBILE (≤ 768px)
   ================================================================ */
@media (max-width: 768px) {

  /* ── Seções: padding vertical menor ── */
  .highlights,
  .services,
  .doctors,
  .clinic,
  .testimonials,
  .contact { padding: 72px 0; }

  /* ── Nav mobile ── */
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: min(285px, 85vw);   /* FIX: nunca ultrapassa 85% da tela */
    height: 100dvh;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 80px 36px 36px;
    gap: 6px;
    box-shadow: -12px 0 40px rgba(0,0,0,.12);
    transition: right var(--t-mid);
    z-index: 1000;
    overflow-y: auto;
  }
  .nav-links.active { right: 0; }
  .nav-links li a {
    color: var(--neutral-800) !important;
    font-size: 1.05rem;
    padding: 12px 0;
    display: block;
    width: 100%;
    border-bottom: 1px solid var(--neutral-100);
  }
  .nav-links li a::after { background: var(--brand-purple); }
  .nav-cta { width: 100%; justify-content: center; margin-top: 20px; }
  .hamburger { display: flex; }

  /* ── Hero: botões em coluna, largura total ── */
  .hero-actions {
    flex-direction: column;
    align-items: stretch;        /* FIX: botões ocupam toda a largura disponível */
    gap: 12px;
    width: 100%;
    max-width: 340px;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;          /* FIX: padding horizontal menor no mobile */
    white-space: normal;         /* FIX: permite quebra de linha se necessário */
  }

  /* ── Stats ── */
  .stats-inner  { justify-content: space-around; padding: 32px 0; }
  .stat-item    { flex: 1; min-width: 70px; }

  /* ── Galeria: coluna única, proporção uniforme ── */
  .clinic-gallery { grid-template-columns: 1fr; }
  .gallery-item,
  .gallery-item.large {
    grid-column: auto;
    aspect-ratio: 4 / 3;
  }

  /* ── Footer: coluna única ── */
  .footer-grid  { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-inner { padding-top: 48px; }

  /* ── Contato ── */
  .contact-emergency-card { flex-direction: column; }

  /* ── Section header ── */
  .section-header { margin-bottom: 40px; }

  /* ── Doctor card ── */
  .doctor-profile { padding: 28px 20px 20px; }
  .doctor-expanded { padding: 20px 20px 24px; }
}

/* ================================================================
   RESPONSIVIDADE — MOBILE PEQUENO (≤ 480px)
   ================================================================ */
@media (max-width: 480px) {
  .hero h1    { font-size: 2rem; }
  .hero-content { padding: 110px 0 60px; }

  /* FIX: hero badge não estoura */
  .hero-badge {
    font-size: .72rem;
    padding: 7px 14px;
    white-space: normal;
    text-align: center;
    justify-content: center;
  }

  /* FIX: weather alert não estoura */
  .weather-alert {
    font-size: .78rem;
    padding: 9px 14px;
    white-space: normal;
    text-align: left;
    align-items: flex-start;
  }

  /* FIX: botões flutuantes menores */
  .float-btn  { width: 52px; height: 52px; font-size: 1.25rem; }
  .contact-float { bottom: 20px; right: 16px; gap: 10px; }

  /* FIX: padding de seções ainda menor */
  .highlights,
  .services,
  .doctors,
  .clinic,
  .testimonials,
  .contact { padding: 56px 0; }

  /* FIX: section header */
  .section-header { margin-bottom: 32px; }

  /* FIX: cards com padding menor */
  .highlight-card { padding: 28px 20px; }
  .service-card   { padding: 28px 20px; }
  .testimonial-card { padding: 24px 20px; }

  /* FIX: feature text truncation */
  .clinic-feature-text strong { font-size: .85rem; }
  .clinic-feature-text p { font-size: .8rem; }

  /* FIX: hours row em telas pequenas */
  .hours-row { font-size: .82rem; gap: 8px; }
  .hours-row .day { font-size: .8rem; }

  /* FIX: mapa com altura menor */
  .map-wrapper    { min-height: 300px; height: 300px; }
  .map-placeholder { min-height: 300px; }

  /* FIX: footer */
  .footer-inner { padding-top: 40px; }
  .footer-logo  { font-size: 1.7rem; }

  /* FIX: newsletter form não quebra */
  .newsletter-input { padding: 11px 14px; font-size: .82rem; }
}

/* ================================================================
   RESPONSIVIDADE — MOBILE MUITO PEQUENO (≤ 360px)
   ================================================================ */
@media (max-width: 360px) {
  .hero h1 { font-size: 1.75rem; }
  .hero-badge { font-size: .68rem; }

  /* FIX: garante que o container não gera overflow */
  .container { width: 94%; }

  .stat-number { font-size: 1.6rem; }
  .stat-suffix { font-size: 1rem; }
  .stat-label  { font-size: .68rem; }

  .doctor-profile { padding: 24px 16px 18px; }
  .doctor-expanded { padding: 16px 16px 20px; }
  .specialties span { font-size: .7rem; padding: 4px 10px; }
}

/* ================================================================
   ACESSIBILIDADE
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

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