/* ══════════════════════════════════════════════
   FAUSTINI CENTRO ODONTOLÓGICO — HOME
   CSS não-crítico (below fold)
   Carregado em paralelo via <link rel="preload">
══════════════════════════════════════════════ */

/* ── Utilitários ── */
.sec-head { text-align: center; margin-bottom: 0; }
.sec-head h2 { font-size: clamp(1.6rem, 2.5vw, 2.4rem); color: var(--blue-dark); margin-bottom: 0.75rem; }
.sec-head p { font-size: clamp(1rem, 1.3vw, 1.15rem); color: var(--text-mid); max-width: 580px; margin: 0 auto 3.5rem; line-height: 1.7; }
.sec-head--left { text-align: left; }
.sec-head--left p { margin-left: 0; }
.eyebrow { display: block; font-family: 'Josefin Sans', sans-serif; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); margin-bottom: 0.5rem; }

.sec-cta-wrap { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; margin-top: 3.5rem; }
.sec-cta-note { font-size: 1rem; color: var(--text-mid); font-weight: 600; }

/* ── Botão CTA genérico ── */
.btn-cta {
  display: inline-flex; align-items: center; gap: 0.75rem;
  background: #a4f56f;
  color: #0f2d0a; padding: 1.1rem 2.25rem; border-radius: 50px;
  font-family: 'Josefin Sans', sans-serif; font-weight: 700; font-size: 1rem;
  box-shadow: 0 4px 20px rgba(100,220,50,0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(100,220,50,0.5); }
.btn-cta-icon { width: 32px; height: 32px; background: rgba(0,0,0,0.1); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.btn-cta-icon svg { width: 18px; height: 18px; fill: #0f2d0a; }

@media (max-width: 600px) {
  .btn-cta { white-space: normal; text-align: center; max-width: 290px; line-height: 1.4; padding: 1rem 1.75rem; }
}

/* Hero badges: coluna no mobile */
@media (max-width: 767px) {
  .hero-badges { flex-direction: column; align-items: center; gap: 0.4rem; }
  .hero-badge { width: auto; min-width: 220px; justify-content: flex-start; }
}

/* ── Diferenciais ── */
.sec-diff { background: #fff; padding: 7rem 0 5rem; }
.sec-diff .sec-head { margin-bottom: 0; }

.diff-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }
@media (max-width: 900px) { .diff-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 500px) { .diff-grid { grid-template-columns: 1fr; } }

.diff-card {
  background: var(--blue-bg); border: 1px solid #dbeafe; border-radius: 20px;
  padding: 2.25rem 1.75rem; text-align: center;
  transition: transform 0.22s ease, box-shadow 0.22s ease; cursor: default;
}
.diff-card:hover { transform: translateY(-5px); box-shadow: 0 12px 32px rgba(43,95,160,0.12); }
.diff-icon {
  width: 64px; height: 64px; background: white; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem; box-shadow: 0 4px 14px rgba(43,95,160,0.12);
}
.diff-icon svg { width: 30px; height: 30px; color: var(--blue); }
.diff-card h3 { font-size: 1.15rem; color: var(--blue-dark); margin-bottom: 0.75rem; }
.diff-card p { font-size: 1rem; color: var(--text-mid); line-height: 1.7; }

/* ── Serviços ── */
.sec-servicos { background: var(--bg-alt); padding: 5rem 0; }
.serv-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.25rem; }
@media (max-width: 1024px) { .serv-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 700px)  { .serv-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 440px)  { .serv-grid { grid-template-columns: 1fr; } }

.serv-card {
  background: white; border-radius: 16px; padding: 1.5rem;
  border: 1px solid #e8f0f9; display: flex; flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  box-shadow: 0 2px 10px rgba(43,95,160,0.06);
  color: var(--text-dark);
}
.serv-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(43,95,160,0.12); }
.serv-img { width: 72px; height: 72px; border-radius: 12px; overflow: hidden; background: var(--blue-bg); margin-bottom: 1rem; flex-shrink: 0; }
.serv-img img { width: 100%; height: 100%; object-fit: cover; }
.serv-card h3 { font-size: 1rem; color: var(--blue-dark); margin-bottom: 0.5rem; line-height: 1.3; }
.serv-card p { font-size: 0.9375rem; color: var(--text-mid); line-height: 1.65; flex: 1; }
.serv-link { display: inline-block; margin-top: 1rem; font-size: 0.875rem; font-weight: 700; color: var(--blue); }
.serv-card--destaque { border-color: var(--blue); border-width: 2px; }

/* ── Passo a Passo ── */
.sec-steps { background: white; padding: 5rem 0; }
.steps-grid {
  display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: start; gap: 0; margin-top: 0;
}
.step-arrow { display: flex; align-items: center; padding: 0 0.75rem; padding-top: 3.5rem; color: var(--blue-light); font-size: 1.5rem; font-weight: 300; }
.step-card {
  background: var(--bg-alt); border: 1px solid #e8f0f9; border-radius: 16px;
  padding: 2rem 1.5rem; position: relative;
  transition: box-shadow 0.22s ease; cursor: default;
}
.step-card:hover { box-shadow: 0 8px 24px rgba(43,95,160,0.1); }
.step-num {
  position: absolute; top: -16px; left: -16px;
  width: 36px; height: 36px; background: var(--blue); color: white;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: 'Josefin Sans', sans-serif; font-weight: 700; font-size: 0.85rem;
  box-shadow: 0 4px 12px rgba(43,95,160,0.3);
}
.step-icon { width: 56px; height: 56px; background: white; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; box-shadow: 0 2px 8px rgba(0,0,0,0.07); }
.step-icon svg { width: 26px; height: 26px; color: var(--blue); }
.step-card h3 { font-size: 1.05rem; color: var(--blue-dark); margin-bottom: 0.5rem; }
.step-card p { font-size: 0.9375rem; color: var(--text-mid); line-height: 1.65; }

@media (max-width: 900px) {
  .steps-grid { grid-template-columns: 1fr; gap: 1rem; }
  .step-arrow { display: none; }
}

/* ── Sobre Nós ── */
.sec-sobre { background: white; padding: 5rem 0; }
.sobre-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; margin-bottom: 4rem; }
@media (max-width: 768px) {
  .sobre-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .clinic-carousel-outer { aspect-ratio: 4/3; }
}

/* Clinic carousel */
.clinic-carousel-wrap { border-radius: 24px; overflow: visible; }
.clinic-carousel-outer { border-radius: 20px; overflow: hidden; aspect-ratio: 1/1; }
.clinic-carousel-track { display: flex; transition: transform 0.45s cubic-bezier(0.4,0,0.2,1); }
.clinic-slide { min-width: 100%; flex-shrink: 0; }
.clinic-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.clinic-carousel-nav { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1rem; }
.clinic-btn-prev, .clinic-btn-next {
  width: 36px; height: 36px; background: var(--blue-bg); border: 1px solid #dbeafe;
  border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background 0.2s;
}
.clinic-btn-prev:hover, .clinic-btn-next:hover { background: var(--blue); }
.clinic-btn-prev:hover svg, .clinic-btn-next:hover svg { stroke: white; }
.clinic-btn-prev svg, .clinic-btn-next svg { width: 16px; height: 16px; stroke: var(--blue); }

/* Sobre texto */
.sobre-text { display: flex; flex-direction: column; justify-content: center; }
.sobre-paragrafos p { font-size: 1.0625rem; color: var(--text-mid); line-height: 1.75; margin-bottom: 1.25rem; }
.sobre-quote { font-family: 'Playfair Display', serif; font-style: italic; font-size: 1.15rem !important; color: var(--blue) !important; border-left: 3px solid var(--blue); padding-left: 1rem; }
.sobre-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; margin-top: 0.5rem; }
.sobre-list li { display: flex; align-items: center; gap: 0.75rem; font-weight: 600; color: var(--text-dark); font-size: 1rem; }
.sobre-list li::before { content: "✓"; color: var(--blue); font-weight: 700; font-size: 1.1rem; flex-shrink: 0; }

/* Equipe */
.equipe-section { margin-top: 2rem; }
.equipe-section > .sec-head { margin-bottom: 2.5rem; }
.equipe-main-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
@media (max-width: 700px) { .equipe-main-grid { grid-template-columns: 1fr; } }

.doctor-card {
  background: var(--blue-bg); border: 1px solid #dbeafe; border-radius: 20px;
  overflow: hidden; display: flex; gap: 0;
  box-shadow: 0 4px 16px rgba(43,95,160,0.07);
}
.doctor-photo { width: 130px; height: 100%; object-fit: cover; object-position: center top; flex-shrink: 0; }
.doctor-info { padding: 1.75rem 1.5rem; flex: 1; }
.doctor-info h3 { font-size: clamp(1.1rem, 1.5vw, 1.35rem); color: var(--blue-dark); margin-bottom: 0.2rem; }
.doctor-cro { font-size: 0.875rem; color: var(--blue); font-weight: 700; margin-bottom: 0.9rem; display: block; }
.doctor-bio { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.doctor-bio li { font-size: 0.9rem; color: var(--text-mid); line-height: 1.5; padding-left: 1rem; position: relative; }
.doctor-bio li::before { content: "·"; position: absolute; left: 0; color: var(--blue); font-weight: 700; }

@media (max-width: 500px) {
  .doctor-card { flex-direction: column; }
  .doctor-photo { width: 100%; height: auto; aspect-ratio: 3/4; object-fit: cover; object-position: center top; }
}

.equipe-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.25rem; margin-top: 0; }
@media (max-width: 900px) { .equipe-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px) { .equipe-grid { grid-template-columns: 1fr; } }

.team-card {
  background: var(--blue-bg); border: 1px solid #dbeafe; border-radius: 16px;
  padding: 1.5rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 0.35rem;
}
.team-card img, .team-avatar {
  width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin-bottom: 0.5rem;
}
.team-avatar {
  background: white; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(43,95,160,0.1);
}
.team-avatar svg { width: 32px; height: 32px; color: var(--blue); }
.team-card h4 { font-size: 0.9rem; color: var(--blue-dark); }
.team-cro { font-size: 0.75rem; color: var(--blue); font-weight: 700; }
.team-card p { font-size: 0.85rem; color: var(--text-mid); line-height: 1.55; }
.team-card--anest { background: #477DBF; border-color: #3a6aaa; }
.team-card--anest h4, .team-card--anest p { color: #fff; }
.team-card--anest .team-cro { color: rgba(255,255,255,0.85); }
.team-card--anest .team-avatar { background: rgba(255,255,255,0.18); }
.team-card--anest .team-avatar svg { color: #fff; }

/* ── Depoimentos ── */
.sec-testim { background: var(--bg-alt); padding: 5rem 0; }

.carousel-wrap { margin-top: 2rem; padding: 0 2rem; }
.carousel-outer { overflow: hidden; border-radius: 16px; }
.carousel-track { display: flex; gap: 1.5rem; transition: transform 0.45s cubic-bezier(0.4,0,0.2,1); }

.testim-card {
  background: white; border-radius: 16px; padding: 1.75rem;
  border: 1px solid #e8f0f9;
  /* 2:3 ratio — mais quadrado que antes */
  min-width: calc(50% - 0.75rem);
  aspect-ratio: 3 / 2;
  flex-shrink: 0;
  display: flex; flex-direction: column; gap: 0.75rem;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
@media (max-width: 768px) {
  .carousel-wrap { padding: 0 1.25rem; overflow: hidden; }
  .carousel-outer { overflow: visible; }
  /* Mobile: 1 card em 85% + 15% do próximo */
  .testim-card { min-width: 85%; aspect-ratio: auto; }
}

.testim-header { display: flex; align-items: center; gap: 0.875rem; }
.testim-avatar, .testim-avatar-placeholder {
  width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.testim-avatar-placeholder {
  background: var(--blue); color: white; display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-size: 1.25rem; font-weight: 700;
}
.testim-header strong { display: block; font-family: 'Playfair Display', serif; font-size: 1rem; color: var(--blue-dark); }
.testim-header span { font-size: 0.8rem; color: var(--text-light); }
.testim-stars { color: #f59e0b; font-size: 0.95rem; letter-spacing: 0.05em; }
.testim-card p { font-style: italic; color: var(--text-mid); font-size: 1rem; line-height: 1.75; }

.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.5rem; }
.carousel-btn {
  width: 40px; height: 40px; border: 1px solid #dbeafe; border-radius: 50%; background: white;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.carousel-btn:hover { background: var(--blue); border-color: var(--blue); }
.carousel-btn:hover svg { stroke: white; }
.carousel-btn svg { width: 18px; height: 18px; stroke: var(--blue); }
.carousel-dots { display: flex; gap: 0.5rem; }
.dot {
  width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; border: none; cursor: pointer;
  transition: background 0.2s, width 0.2s; padding: 0;
}
.dot.active { background: var(--blue); width: 20px; border-radius: 4px; }

#clinic-dots { display: flex; gap: 0.5rem; }
#clinic-dots .dot { width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; border: none; cursor: pointer; transition: background 0.2s, width 0.2s; padding: 0; }
#clinic-dots .dot.active { background: var(--blue); width: 16px; border-radius: 4px; }

/* ── FAQ ── */
.sec-faq { background: white; padding: 5rem 0; }
.faq-list { margin-top: 4rem; }
.faq-item { border-bottom: 1px solid #e2e8f0; }
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem 0; cursor: pointer; font-weight: 700;
  font-size: 1rem; color: var(--blue-dark); gap: 1rem; width: 100%;
  background: none; border: none; text-align: left; font-family: 'Josefin Sans', sans-serif;
}
.faq-q:hover { color: var(--blue); }
.faq-icon { width: 22px; height: 22px; flex-shrink: 0; color: var(--blue); transition: transform 0.3s; }
.faq-item.open .faq-icon { transform: rotate(180deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  font-size: 1rem; color: var(--text-mid); line-height: 1.75;
}
.faq-item.open .faq-a { max-height: 400px; padding-bottom: 1.25rem; }

/* ── CTA Final ── */
.sec-cta-final {
  background: linear-gradient(135deg, var(--blue-dark) 0%, #1a4a7a 100%);
  color: white; padding: 5rem 0; text-align: center;
}
.sec-cta-final h2 { font-size: clamp(1.6rem, 3vw, 2.75rem); margin-bottom: 1rem; color: white; }
.sec-cta-final p { font-size: 1.1rem; color: rgba(255,255,255,0.88); margin-bottom: 2.5rem; line-height: 1.75; }
.btn-cta-final {
  display: inline-flex; align-items: center; gap: 0.75rem;
  background: var(--green-cta); color: #0f2d0a;
  padding: 1.1rem 2.5rem; border-radius: 50px;
  font-family: 'Josefin Sans', sans-serif; font-weight: 700; font-size: 1.05rem;
  box-shadow: 0 6px 24px rgba(100,220,50,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-cta-final:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(100,220,50,0.55); }
.btn-cta-final .btn-cta-icon { width: 34px; height: 34px; background: rgba(0,0,0,0.1); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.btn-cta-final .btn-cta-icon svg { width: 18px; height: 18px; fill: #0f2d0a; }

/* ── Footer ── */
footer { background: #060f1e; color: rgba(255,255,255,0.72); padding: 4rem 0 2rem; }
.footer-title {
  font-family: 'Playfair Display', serif; text-align: center;
  font-size: clamp(1.5rem, 2.5vw, 2rem); color: white; margin-bottom: 0.75rem;
}
.footer-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2.5rem; margin: 2.5rem 0 2rem; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }

.footer-col h3 {
  font-family: 'Playfair Display', serif; font-size: 1rem; color: white; margin-bottom: 0.75rem;
}
.footer-col address { font-style: normal; font-size: 0.875rem; line-height: 1.75; color: rgba(255,255,255,0.65); margin-bottom: 0.75rem; }
.footer-map { border-radius: 10px; overflow: hidden; margin: 0.75rem 0; line-height: 0; min-height: 150px; background: #e8f0f9; }
.footer-map-link { font-size: 0.875rem; color: var(--blue-light); font-weight: 600; }
.footer-map-link:hover { color: white; }

.footer-contacts { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.5rem; }
.footer-contact-item { display: flex; align-items: center; gap: 0.6rem; font-size: 0.875rem; color: rgba(255,255,255,0.65); transition: color 0.2s; }
.footer-contact-item:hover { color: white; }
.footer-contact-item svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--blue-light); }

.footer-social { display: flex; gap: 1rem; }
.footer-social a { width: 38px; height: 38px; background: rgba(255,255,255,0.08); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.footer-social a:hover { background: var(--blue); }
.footer-social svg { width: 18px; height: 18px; color: rgba(255,255,255,0.75); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem;
  text-align: center; font-size: 0.8125rem; color: rgba(255,255,255,0.45);
  display: flex; flex-direction: column; gap: 0.75rem; align-items: center;
}
.footer-bottom span { display: flex; gap: 1.5rem; }
.footer-bottom a { color: rgba(255,255,255,0.45); text-decoration: underline; }
.footer-bottom a:hover { color: rgba(255,255,255,0.75); }

/* ── WhatsApp Float ── */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  background: var(--green-wa); border-radius: 50%;
  width: 60px; height: 60px; min-width: 60px;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  animation: waPulse 2.2s ease-in-out infinite;
  transition: transform 0.2s; text-decoration: none; overflow: visible;
}
.wa-float:hover { transform: scale(1.05); }
.wa-float svg { width: 28px; height: 28px; fill: white; flex-shrink: 0; }
.wa-float-label { display: none; }

.wa-float::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: rgba(37,211,102,0.45); opacity: 0;
  animation: waPulseRing 2.2s ease-out infinite; z-index: -1; pointer-events: none;
}
@keyframes waPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes waPulseRing { 0% { transform: scale(1); opacity: 0.5; } 100% { transform: scale(1.7); opacity: 0; } }

@media (max-width: 767px) {
  .wa-float { bottom: 20px; right: 16px; width: 60px; height: 60px; min-width: 60px; border-radius: 50%; padding: 0; }
  .wa-float-label { display: none; }
  .wa-float svg { width: 30px; height: 30px; }
}

/* ── Seção hero: espaçamento ── */
#diferenciais { scroll-margin-top: var(--header-h); }
#tratamentos   { scroll-margin-top: var(--header-h); }
#passoapasso   { scroll-margin-top: var(--header-h); }
#sobrenos      { scroll-margin-top: var(--header-h); }
#depoimentos   { scroll-margin-top: var(--header-h); }

/* Padding-top para a primeira seção compensar o CTA hero que "vaza" */
#diferenciais { padding-top: 7rem; }
