/* =========================================================
   Turma do Sorriso — Design tokens
   ========================================================= */
:root {
  --color-primary: #FFC94D;
  --color-primary-dark: #F0B62E;
  --color-secondary: #FFFFFF;
  --color-accent: #4EA5D9;
  --color-accent-dark: #3A8CBE;
  --color-support: #FF6F61;
  --color-support-dark: #E85A4C;

  --color-text: #2E3A45;
  --color-text-light: #5C6B75;
  --color-bg-soft: #FFF8E8;
  --color-bg-blue-soft: #EAF6FC;

  --font-title: 'Baloo 2', 'Segoe UI', sans-serif;
  --font-body: 'Nunito', 'Segoe UI', sans-serif;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --shadow-soft: 0 10px 30px rgba(46, 58, 69, 0.08);
  --shadow-card: 0 6px 20px rgba(46, 58, 69, 0.07);

  --container-width: 1180px;
  --header-height: 72px;
}

/* =========================================================
   Reset & base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-secondary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--color-text);
}
p { margin: 0 0 1em; }
button { font-family: inherit; }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: 20px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--color-accent);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 8px 0;
  z-index: 1000;
}
.skip-link:focus {
  left: 0;
  top: 0;
}

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

.eyebrow {
  display: inline-block;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  background: var(--color-bg-blue-soft);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.eyebrow.center { display: block; width: fit-content; margin-inline: auto; }

.section-title {
  font-size: clamp(1.6rem, 4.5vw, 2.4rem);
}
.section-title.center { text-align: center; max-width: 640px; margin-inline: auto 0.5em; }
.section-subtitle {
  color: var(--color-text-light);
  font-size: 1.05rem;
  max-width: 560px;
}
.section-subtitle.center { text-align: center; margin-inline: auto; margin-bottom: 2.5rem; }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 24px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-cta {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 6px 16px rgba(78, 165, 217, 0.35);
}
.btn-cta:hover { background: var(--color-accent-dark); }

.btn-white {
  background: #fff;
  color: var(--color-accent-dark);
}
.btn-white:hover { background: var(--color-bg-blue-soft); }

.btn-outline {
  background: transparent;
  border-color: var(--color-text);
  color: var(--color-text);
}
.btn-outline:hover { background: var(--color-text); color: #fff; }

.btn-lg { padding: 15px 30px; font-size: 1.05rem; }

.icon-wa { width: 20px; height: 20px; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  height: var(--header-height);
  display: flex;
  align-items: center;
}
/* Blur lives on a pseudo-element (not on .site-header itself) so that
   backdrop-filter doesn't create a containing block for the fixed-position
   .primary-nav descendant — that would reposition it relative to the header
   instead of the viewport. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(46, 58, 69, 0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-mascot { width: 42px; height: 42px; flex-shrink: 0; }
.logo-text {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-text);
  line-height: 1;
}
.logo-text span { color: var(--color-accent); }

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 501;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: var(--color-text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.primary-nav {
  position: fixed;
  inset: var(--header-height) 0 0 0;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.primary-nav.is-open { transform: translateX(0); }
.primary-nav ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.nav-link {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--color-text);
  position: relative;
}
.nav-link.is-active { color: var(--color-accent-dark); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  background: linear-gradient(180deg, var(--color-bg-soft) 0%, #fff 100%);
  padding-block: 48px 40px;
  overflow: hidden;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 36px;
  align-items: center;
  text-align: center;
}
.hero-copy { max-width: 560px; }
.hero h1 {
  font-size: clamp(1.9rem, 6vw, 3rem);
}
.highlight { color: var(--color-accent); position: relative; }
.hero-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-light);
}
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}
.hero-art { width: min(340px, 80vw); }
.mascot-hero { width: 100%; height: auto; }

/* =========================================================
   Trust bar
   ========================================================= */
.trust-bar {
  background: var(--color-accent);
  padding-block: 28px;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  text-align: center;
}
.trust-item { display: flex; flex-direction: column; gap: 4px; }
.trust-number {
  font-family: var(--font-title);
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  font-weight: 700;
  color: #fff;
}
.trust-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.9);
}

/* =========================================================
   Services
   ========================================================= */
.services { padding-block: 64px; }
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 8px;
}
.service-card {
  background: #fff;
  border: 1px solid rgba(46,58,69,0.06);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}
.service-card--featured {
  background: linear-gradient(160deg, #fff 60%, var(--color-bg-blue-soft) 100%);
  border: 2px solid var(--color-accent);
  order: -1;
}
.badge {
  position: absolute;
  top: -14px;
  left: 24px;
  background: var(--color-support);
  color: #fff;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.75rem;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(255, 111, 97, 0.4);
}
.service-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
}
.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.service-card p {
  color: var(--color-text-light);
  font-size: 0.98rem;
  margin-bottom: 0;
}

/* =========================================================
   About
   ========================================================= */
.about {
  padding-block: 64px;
  background: var(--color-bg-blue-soft);
}
.about-inner {
  display: flex;
  flex-direction: column;
  gap: 36px;
  align-items: center;
}
.about-art { width: min(280px, 70vw); text-align: center; }
.dentist-illustration { width: 100%; }
.art-caption {
  display: block;
  font-size: 0.78rem;
  color: var(--color-text-light);
  margin-top: 10px;
  font-style: italic;
}
.about-copy { max-width: 620px; }
.about-copy p { color: var(--color-text-light); }
.about-credentials {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}
.about-credentials li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-family: var(--font-title);
  font-size: 0.95rem;
}
.about-credentials li::before {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-support);
}

/* =========================================================
   Differentials
   ========================================================= */
.differentials { padding-block: 64px; }
.differentials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 16px;
}
.differential-item { text-align: center; }
.differential-icon {
  width: 64px;
  height: 64px;
  margin-inline: auto;
  margin-bottom: 14px;
}
.differential-item h3 { font-size: 1.1rem; margin-bottom: 6px; }
.differential-item p { color: var(--color-text-light); font-size: 0.95rem; }

/* =========================================================
   Testimonials
   ========================================================= */
.testimonials {
  padding-block: 64px;
  background: var(--color-bg-soft);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 16px;
}
.testimonial-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 26px 22px;
  box-shadow: var(--shadow-card);
}
.stars {
  color: var(--color-primary-dark);
  letter-spacing: 3px;
  margin-bottom: 12px;
  font-size: 1rem;
}
.testimonial-card p {
  font-style: italic;
  color: var(--color-text);
  margin-bottom: 14px;
}
.testimonial-author {
  display: block;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-accent-dark);
}

/* =========================================================
   Location
   ========================================================= */
.location { padding-block: 64px; }
.location-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.location-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-block: 20px 28px;
}
.location-details li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1rem;
}
.location-details svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px; }
.location-map {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4 / 3;
}
.location-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* =========================================================
   Final CTA
   ========================================================= */
.final-cta {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  padding-block: 64px;
  text-align: center;
  color: #fff;
}
.final-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.cta-mascot { width: 90px; height: 90px; margin-bottom: 8px; }
.final-cta h2 { color: #fff; font-size: clamp(1.5rem, 5vw, 2.2rem); }
.final-cta p {
  color: rgba(255,255,255,0.92);
  max-width: 460px;
  margin-bottom: 20px;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--color-text);
  color: rgba(255,255,255,0.85);
  padding-block: 48px 24px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.footer-brand .logo-text { color: #fff; }
.footer-brand p { color: rgba(255,255,255,0.7); margin-top: 12px; }
.footer-links h3,
.footer-contact h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 14px;
}
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: rgba(255,255,255,0.75); }
.footer-links a:hover { color: var(--color-primary); }
.footer-contact p { color: rgba(255,255,255,0.75); margin-bottom: 8px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 32px;
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}

/* =========================================================
   Floating WhatsApp button
   ========================================================= */
.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.45);
  z-index: 400;
}
.whatsapp-float svg { width: 30px; height: 30px; }
.whatsapp-float-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  animation: wa-pulse 2.2s ease-out infinite;
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.8); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-float-pulse { animation: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   Tablet (>=600px)
   ========================================================= */
@media (min-width: 600px) {
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .differentials-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-actions { flex-direction: row; }
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

/* =========================================================
   Desktop (>=1024px)
   ========================================================= */
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .primary-nav {
    position: static;
    transform: none;
    flex-direction: row;
    background: transparent;
    inset: auto;
    gap: 36px;
  }
  .primary-nav ul { flex-direction: row; gap: 28px; }

  .hero-inner {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
    padding-block: 40px;
  }
  .hero-copy { text-align: left; }
  .hero-actions { justify-content: flex-start; }
  .hero-art { width: 400px; }

  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .service-card--featured {
    grid-column: span 1;
    order: 0;
  }

  .about-inner { flex-direction: row; align-items: center; text-align: left; }
  .about-art { width: 320px; flex-shrink: 0; }
  .about-copy { text-align: left; }

  .differentials-grid { grid-template-columns: repeat(4, 1fr); }

  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }

  .location-inner {
    flex-direction: row;
    align-items: stretch;
  }
  .location-info { flex: 1; }
  .location-map { flex: 1; }

  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; }
}
