/* ============ TOKENS ============ */
:root {
  --blue-900: #0b2e4f;
  --blue-700: #0f4c81;
  --blue-600: #1567b0;
  --blue-500: #2e86de;
  --blue-100: #e7f1fb;
  --blue-50:  #f3f8fd;
  --ink:      #16232f;
  --ink-soft: #4a5a68;
  --white:    #ffffff;
  --border:   #dfe8f0;

  --font-head: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --radius: 14px;
  --shadow: 0 12px 30px -14px rgba(11, 46, 79, .25);
  --header-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); color: var(--blue-900); margin: 0 0 .5em; line-height: 1.2; }
p { margin: 0 0 1em; color: var(--ink-soft); }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--blue-700);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ============ BOTÕES ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--blue-600);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(21, 103, 176, .55);
}
.btn--primary:hover { background: var(--blue-700); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--blue-700);
  border: 1.5px solid var(--blue-600);
}
.btn--ghost:hover { background: var(--blue-100); }
.btn--lg { padding: 15px 30px; font-size: 1rem; }

/* ============ HEADER ============ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 500;
}
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}
.logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--blue-900);
  margin-right: auto;
  transition: opacity .15s ease;
}
.logo:hover { opacity: .8; }
.logo span { color: var(--blue-500); }

.nav {
  display: flex;
  gap: 22px;
}
.nav a {
  font-weight: 500;
  font-size: .95rem;
  color: var(--ink);
  position: relative;
  padding: 6px 2px;
}
.nav a:hover { color: var(--blue-700); }

.header__cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--blue-900);
  border-radius: 2px;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.02);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(11,46,79,.92) 0%, rgba(11,46,79,.78) 40%, rgba(11,46,79,.45) 75%, rgba(11,46,79,.2) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding-top: 60px;
  padding-bottom: 60px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .8rem;
  font-weight: 600;
  color: var(--blue-100);
  margin-bottom: 14px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  margin-bottom: .45em;
}
.hero__lead {
  color: #e6eef6;
  font-size: 1.08rem;
  max-width: 560px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}
.hero__actions .btn--ghost {
  color: #fff;
  border-color: rgba(255,255,255,.6);
}
.hero__actions .btn--ghost:hover { background: rgba(255,255,255,.12); }

/* ============ SEÇÕES GERAIS ============ */
.section { padding: 100px 0; }
.section--alt { background: var(--blue-50); }
.section-tag {
  color: var(--blue-600);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .78rem;
  margin-bottom: 10px;
}
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-lead { font-size: 1.05rem; }

/* ============ SOBRE ============ */
.about {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.about__media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}
.checklist { margin-top: 20px; display: grid; gap: 12px; }
.checklist li {
  position: relative;
  padding-left: 30px;
  color: var(--ink);
  font-weight: 500;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--blue-600);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center/70% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center/70% no-repeat;
}

/* ============ CARDS DE SERVIÇOS ============ */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--blue-100);
  color: var(--blue-600);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.1rem; margin-bottom: .4em; }
.card p { font-size: .92rem; margin-bottom: 0; }

/* ============ GALERIA ============ */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 18px;
}
.gallery__item {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  grid-column: span 2;
}
.gallery__item--wide { grid-column: span 4; grid-row: span 1; height: 340px; }
.gallery__item:not(.gallery__item--wide) { grid-column: span 2; }
.gallery img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item--wide img { height: 340px; }
.gallery figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  background: linear-gradient(0deg, rgba(11,46,79,.85), transparent);
  color: #fff;
  font-size: .9rem;
  font-weight: 500;
}

@media (min-width: 700px) {
  .gallery__item:nth-child(2),
  .gallery__item:nth-child(3) { grid-column: span 2; }
  .gallery__item:nth-child(4),
  .gallery__item:nth-child(5) { grid-column: span 2; }
}

/* ============ DENTISTA ============ */
.dentist {
  display: flex;
  align-items: center;
  gap: 40px;
}
.dentist__avatar {
  flex-shrink: 0;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: var(--blue-600);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.dentist__avatar svg { width: 56px; height: 56px; }
.dentist__avatar img { width: 100%; height: 100%; object-fit: cover; }
.dentist__cro {
  display: inline-block;
  background: var(--blue-100);
  color: var(--blue-700);
  font-weight: 600;
  font-size: .85rem;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* ============ MAPA ============ */
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 420px;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

/* ============ CONTATO ============ */
.section--dark {
  background: linear-gradient(160deg, var(--blue-900), var(--blue-700));
}
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.contact__box h2 { color: #fff; }
.contact__box p { color: #d7e6f5; }
.contact__info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.contact__info h3 {
  color: #fff;
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .3em;
}
.contact__info p { color: #cfe0f2; margin-bottom: 0; }
.contact__info a:hover { color: #fff; text-decoration: underline; }

/* ============ RODAPÉ ============ */
.footer {
  background: var(--blue-900);
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 22px 0;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: .82rem;
  color: #9fb7cd;
}
.footer p { margin: 0; color: #9fb7cd; }

/* ============ WHATSAPP FLUTUANTE ============ */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px; height: 58px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px -8px rgba(0,0,0,.4);
  z-index: 400;
  transition: transform .15s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 30px; height: 30px; }

/* ============ RESPONSIVO ============ */
@media (max-width: 980px) {
  .about { grid-template-columns: 1fr; }
  .about__media { order: -1; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 1040px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-130%);
    transition: transform .25s ease;
  }
  .nav.is-open { transform: translateY(0); }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .header__cta { display: none; }
  .nav-toggle { display: flex; }

  .section { padding: 70px 0; }
  .cards { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .gallery__item--wide { grid-column: span 2; height: 220px; }
  .gallery__item--wide img { height: 220px; }
  .dentist { flex-direction: column; text-align: center; }
  .contact__info { grid-template-columns: 1fr 1fr; }
  .footer__inner { flex-direction: column; text-align: center; }
}
