/* =========================================================
   Vinci Odontologia — estilos
   Cores e fontes ficam nas variáveis abaixo.
   ========================================================= */
:root {
  --tan: #BAA38E;          /* cor principal da marca */
  --tan-soft: rgba(186, 163, 142, .21); /* fundo dos cards claros */
  --wine: #520028;
  --rose: #A46F83;         /* borda inferior do cabeçalho */
  --green: #284D42;        /* texto do "Sobre Nós" */
  --gray-dark: #545454;    /* fundo do contato */
  --text: #2D2929;
  --text-title: #4F4F4F;
  --white: #fff;

  --font-title: "Montserrat", Arial, sans-serif;
  --font-body: "Raleway", Arial, sans-serif;

  --container: 960px;
  --header-h: 103px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 32px);
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- Divisores ---------- */
.divider { display: block; width: 80px; height: 2px; margin: 18px auto 0; }
.divider--tan { background: var(--tan); }
.divider--white { background: var(--white); }
.divider--wine { background: var(--wine); }

/* ---------- Seções ---------- */
.section { padding: 48px 0 80px; }
.section__title {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 48px;
  line-height: 1.3;
  text-align: center;
  color: var(--tan);
}

/* ---------- Cabeçalho ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 2px solid var(--rose);
}
.header__inner {
  height: calc(var(--header-h) - 2px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header__logo img { width: 198px; height: auto; }
.header__nav { display: flex; gap: 72px; }
.header__nav a {
  font-size: 16px;
  color: #000;
  text-decoration: none;
  transition: color .2s;
}
.header__nav a:hover { color: var(--tan); }
.header__toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  min-height: 551px;
  display: flex;
  align-items: center;
  background: #e9e4e6 url("../img/hero.jpg") center / cover no-repeat;
}
.hero__title {
  max-width: 640px;
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 56px;
  line-height: 1.3;
  color: var(--white);
}
.hero__divider { margin: 36px 0 0; }
.btn {
  display: inline-block;
  margin-top: 56px;
  min-width: 422px;
  padding: 12px 24px;
  background: var(--tan);
  color: var(--white);
  font-size: 20px;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .2s;
}
.btn:hover { background: #a58c75; }

/* ---------- Sobre ---------- */
.about__grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 459px 1fr;
  gap: 56px;
  align-items: start;
  padding-left: 11px;
}
.about__img { width: 100%; height: auto; aspect-ratio: 459 / 452; object-fit: cover; }
.about__text { max-width: 386px; color: var(--green); font-size: 20px; line-height: 1.3; }
.about__text p + p { margin-top: 26px; }

/* ---------- Especialidades ---------- */
.services { background: var(--tan); padding-top: 56px; }
.services .section__title { color: var(--white); }
.services__grid {
  margin: 48px auto 0;
  max-width: 944px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.service {
  background: var(--white);
  min-height: 208px;
  padding: 36px 48px 28px;
  text-align: center;
}
.service .icon { margin: 0 auto; }
.service h3 {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-title);
}
.service p {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.3;
}

/* ---------- Ícones (SVG via máscara, recebem a cor do background) ---------- */
.icon {
  display: block;
  flex: none;
  background: var(--tan);
  -webkit-mask: var(--src) center / contain no-repeat;
          mask: var(--src) center / contain no-repeat;
}
.icon--check    { --src: url("../icons/check.svg");    width: 29px; height: 29px; }
.icon--email    { --src: url("../icons/email.svg");    width: 33px; height: 33px; }
.icon--phone    { --src: url("../icons/phone.svg");    width: 36px; height: 36px; }
.icon--whatsapp { --src: url("../icons/whatsapp.svg"); width: 40px; height: 40px; }
.icon--pin      { --src: url("../icons/pin.svg");      width: 40px; height: 48px; }

/* ---------- Profissionais ---------- */
.team__grid {
  margin: 48px auto 0;
  max-width: 972px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 34px 30px;
}
.pro { grid-column: span 2; }
/* layout 2 – 3 – 2 centralizado */
.pro:nth-child(1), .pro:nth-child(6) { grid-column: 2 / 4; }
.pro:nth-child(2), .pro:nth-child(7) { grid-column: 4 / 6; }

.pro {
  min-height: 460px;
  padding: 40px 26px 36px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.pro--light { background: var(--tan-soft); color: var(--text-title); }
.pro--dark  { background: var(--tan); color: var(--text); }

.pro__photo {
  position: relative;
  width: 164px;
  height: 164px;
}
/* anel externo */
.pro__photo::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid #ddd;
}
.pro--dark .pro__photo::before { border-color: var(--white); }
.pro__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--tan);
}
.pro--dark .pro__photo img { border-color: var(--white); }

.pro__role {
  margin-top: 44px;
  max-width: 252px;
  font-family: var(--font-title);
  font-size: 16px;
  line-height: 1.6;
}
.pro__cro {
  margin-top: 24px;
  font-family: var(--font-title);
  font-size: 16px;
}
.pro__line {
  display: block;
  width: 50px;
  height: 1px;
  margin: auto 0 0;
  padding-top: 0;
  background: var(--tan);
}
.pro--dark .pro__line { background: var(--white); }
.pro__name {
  margin-top: 18px;
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 700;
  color: var(--tan);
}
.pro--dark .pro__name { color: var(--white); }

/* ---------- Contato ---------- */
.contact { background: var(--gray-dark); color: var(--white); padding: 48px 0 72px; }
.contact__title {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 48px;
  padding-left: 34px;
}
.contact__grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 32px;
  align-items: start;
  padding-left: 34px;
}
.contact__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 44px; }
.contact__list li { display: flex; align-items: center; gap: 28px; font-family: var(--font-title); font-size: 19px; }
.contact__list li .icon { width: 40px; background-position: center; }
.contact__list a { text-decoration: none; }
.contact__list a:hover { text-decoration: underline; }
.contact__map iframe { width: 100%; height: 268px; border: 0; display: block; }

/* ---------- WhatsApp flutuante ---------- */
.whats-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 200;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #25D366;
  display: grid;
  place-items: center;
  box-shadow: 0 0 16px rgba(37, 211, 102, .6);
  transition: transform .2s;
}
.whats-float:hover { transform: scale(1.08); }

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 1000px) {
  .team__grid { grid-template-columns: repeat(2, 1fr); max-width: 640px; }
  .pro, .pro:nth-child(n) { grid-column: auto; }
  .pro:last-child { grid-column: 1 / -1; justify-self: center; width: calc(50% - 15px); }
  .contact__grid { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
  :root { --header-h: 72px; }
  .header__logo img { width: 150px; }
  .header__toggle {
    display: flex; flex-direction: column; gap: 5px;
    background: none; border: 0; padding: 8px; cursor: pointer;
  }
  .header__toggle span { width: 26px; height: 2px; background: var(--tan); }
  .header__nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--white);
    border-bottom: 2px solid var(--rose);
    display: none;
  }
  .header__nav.is-open { display: flex; }
  .header__nav a { padding: 16px; text-align: center; border-top: 1px solid #eee; }

  .hero {
    min-height: 420px;
    background-image: linear-gradient(rgba(60, 45, 40, .35), rgba(60, 45, 40, .35)), url("../img/hero.jpg");
    background-position: 70% center;
  }
  .hero__title { font-size: 36px; max-width: 320px; }
  .btn { min-width: 0; width: 100%; max-width: 360px; font-size: 17px; margin-top: 40px; }

  .section__title, .contact__title { font-size: 36px; }
  .about__grid { grid-template-columns: 1fr; gap: 28px; padding-left: 0; }
  .about__text { max-width: none; font-size: 18px; }

  .services__grid { grid-template-columns: 1fr; }
  .service { min-height: 0; padding: 28px 24px; }

  .contact__title, .contact__grid { padding-left: 0; }
  .contact__list li { font-size: 16px; gap: 18px; }
}

@media (max-width: 560px) {
  .team__grid { grid-template-columns: 1fr; max-width: 320px; }
  .pro:last-child { width: auto; }
  .pro { min-height: 0; }
  .pro__line { margin-top: 28px; }
}
