/* ===================================================================
   Dra. Camila Marconi — Cirurgiã-Dentista
   Paleta clara: branco gelo + verde-água
=================================================================== */

:root {
  --bg:          #f6fbfa;
  --bg-2:        #eaf5f3;
  --bg-3:        #ffffff;
  --surface:     #ffffff;
  --accent:      #2a9d8f;
  --accent-2:    #23877b;
  --accent-ink:  #1d7268;
  --accent-soft: rgba(42, 157, 143, .10);
  --heading:     #16302f;
  --text:        #1f3a3d;
  --muted:       #557073;
  --line:        rgba(42, 157, 143, .22);
  --shadow:      rgba(31, 58, 61, .12);
  --border-soft: rgba(31, 58, 61, .08);

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Jost', 'Segoe UI', system-ui, sans-serif;

  --container: 1180px;
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-weight: 300;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

/* ---------- Tipografia utilitária ---------- */
.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .32em;
  font-size: .72rem;
  font-weight: 500;
  color: var(--accent-ink);
  margin-bottom: 1rem;
}

.section__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.1;
  color: var(--heading);
  letter-spacing: .5px;
}

.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }

.section__head { text-align: center; max-width: 640px; margin: 0 auto 3.5rem; }
.section__lead { color: var(--muted); margin-top: 1rem; font-size: 1.05rem; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .95rem 2rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: .82rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  border-radius: 50px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .35s ease;
}
.btn--gold {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #fff;
  box-shadow: 0 8px 24px rgba(42, 157, 143, .28);
}
.btn--gold:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(42, 157, 143, .38); }
.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--accent-ink); color: var(--accent-ink); }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .4s ease, box-shadow .4s ease, padding .4s ease;
  padding: .5rem 0;
}
.site-header.scrolled {
  background: rgba(246, 251, 250, .92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 74px;
}
.brand { display: flex; align-items: center; gap: .8rem; }
.brand__logo {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--line);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; color: var(--heading); }
.brand__text small { font-size: .66rem; letter-spacing: .25em; text-transform: uppercase; color: var(--accent-ink); }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav__link {
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  transition: color .3s;
}
.nav__link::after {
  content: '';
  position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1px; background: var(--accent);
  transition: width .3s;
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after { width: 100%; }
.nav__cta { margin-left: .5rem; padding: .7rem 1.5rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 26px; height: 2px; background: var(--accent);
  transition: all .3s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(42,157,143,.16), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url('https://images.unsplash.com/photo-1629909613654-28e377c37b09?q=80&w=1600&auto=format&fit=crop') center/cover no-repeat;
  opacity: .07;
  filter: grayscale(.3);
}
.hero__overlay {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, var(--bg) 100%);
}
.hero__inner { position: relative; z-index: 2; max-width: 860px; margin-inline: auto; padding-block: 8rem; }
.hero__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.08;
  color: var(--heading);
  letter-spacing: .5px;
}
.hero__title span {
  color: var(--accent-ink);
  font-style: italic;
}
.hero__subtitle {
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 620px;
  margin: 1.6rem auto 2.6rem;
}
.hero__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero__scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 44px; border: 2px solid var(--line); border-radius: 20px;
  display: flex; justify-content: center; z-index: 2;
}
.hero__scroll span {
  width: 4px; height: 8px; background: var(--accent); border-radius: 2px; margin-top: 8px;
  animation: scroll 1.6s infinite;
}
@keyframes scroll { 0%{opacity:0; transform:translateY(0)} 40%{opacity:1} 80%{opacity:0; transform:translateY(14px)} }

/* ---------- Faixa de destaques ---------- */
.strip {
  background: linear-gradient(90deg, var(--bg-3), var(--surface));
  border-block: 1px solid var(--line);
}
.strip__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 2.2rem 24px;
  text-align: center;
}
.strip__item { color: var(--muted); font-size: .9rem; letter-spacing: .05em; }
.strip__item span {
  display: block;
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent-ink);
  line-height: 1;
  margin-bottom: .3rem;
}

/* ---------- Sobre ---------- */
.sobre__grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 760px;
  margin-inline: auto;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.sobre__media { position: relative; }
.sobre__media img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 4/5;
  object-fit: cover;
  box-shadow: 0 30px 60px var(--shadow);
}
.sobre__media::after {
  content: '';
  position: absolute; inset: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  pointer-events: none;
}
.sobre__badge {
  position: absolute; right: -22px; bottom: -22px;
  width: 96px; height: 96px; border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  box-shadow: 0 10px 30px var(--shadow);
}
.sobre__badge img { width: 72px; height: 72px; border-radius: 50%; }
.sobre__content p { color: var(--muted); margin-bottom: 1.1rem; }
.sobre__content strong { color: var(--text); }
.sobre__list { list-style: none; margin: 1.6rem 0 2rem; display: grid; gap: .8rem; }
.sobre__list li {
  position: relative; padding-left: 1.8rem; color: var(--text);
}
.sobre__list li::before {
  content: '✦'; position: absolute; left: 0; color: var(--accent-ink);
}

/* ---------- Serviços ---------- */
.servicos { background: var(--bg-2); }
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.card {
  background: linear-gradient(160deg, var(--surface), var(--bg-3));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 2.4rem 2rem;
  transition: transform .4s ease, border-color .4s ease, box-shadow .4s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--line);
  box-shadow: 0 24px 48px var(--shadow);
}
.card__icon {
  width: 60px; height: 60px; border-radius: 14px;
  display: grid; place-items: center;
  color: var(--accent-ink);
  background: var(--accent-soft);
  border: 1px solid var(--line);
  margin-bottom: 1.4rem;
}
.card__icon svg { width: 30px; height: 30px; }
.contato__ico svg { width: 22px; height: 22px; color: var(--accent-ink); }
.card h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--heading); margin-bottom: .6rem; }
.card p { color: var(--muted); font-size: .96rem; }

/* ---------- Galeria ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.gallery__item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1/1;
}
.gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease, filter .6s ease;
  filter: grayscale(.1);
}
.gallery__item::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(22,48,47,.5));
  opacity: 0; transition: opacity .4s;
}
.gallery__item:hover img { transform: scale(1.08); filter: grayscale(0) brightness(1); }
.gallery__item:hover::after { opacity: 1; }
.galeria__cta { text-align: center; margin-top: 2.6rem; }

/* ---------- Depoimentos ---------- */
.depoimentos { background: var(--bg-2); }
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.testimonial {
  background: linear-gradient(160deg, var(--surface), var(--bg-3));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 2.2rem;
}
.testimonial .stars { color: var(--accent-ink); letter-spacing: 3px; margin-bottom: 1rem; }
.testimonial p { font-family: var(--serif); font-size: 1.2rem; font-style: italic; color: var(--text); margin-bottom: 1.2rem; line-height: 1.5; }
.testimonial cite { color: var(--accent-ink); font-style: normal; font-weight: 500; letter-spacing: .05em; }

/* ---------- Contato ---------- */
.contato__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: start;
}
.contato__info > p { color: var(--muted); margin-bottom: 2rem; }
.contato__list { list-style: none; display: grid; gap: 1.4rem; }
.contato__list li { display: flex; gap: 1rem; align-items: flex-start; }
.contato__ico {
  flex: none;
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; font-size: 1.2rem;
  background: var(--accent-soft); border: 1px solid var(--line);
}
.contato__list strong { color: var(--heading); font-weight: 500; }
.contato__list a:hover { color: var(--accent-ink); }

.contato__form {
  background: linear-gradient(160deg, var(--surface), var(--bg-3));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.4rem;
}
.contato__form h3 { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: var(--heading); margin-bottom: 1.5rem; }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .5rem; }
.field input, .field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: .85rem 1rem;
  color: var(--text);
  font-family: var(--sans);
  font-size: .95rem;
  transition: border-color .3s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent-ink); }
.field textarea { resize: vertical; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-2); border-top: 1px solid var(--line); padding-top: 3rem; }
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 2.4rem;
}
.footer__brand { display: flex; align-items: center; gap: .9rem; }
.footer__brand img { width: 54px; height: 54px; border-radius: 50%; }
.footer__brand strong { font-family: var(--serif); font-size: 1.15rem; color: var(--heading); display: block; }
.footer__brand small { font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--accent-ink); }
.footer__nav { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.footer__nav a { color: var(--muted); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; transition: color .3s; }
.footer__nav a:hover { color: var(--accent-ink); }
.footer__social a { color: var(--accent-ink); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }
.footer__bottom { border-top: 1px solid var(--border-soft); padding: 1.4rem 0; text-align: center; }
.footer__bottom p { color: var(--muted); font-size: .82rem; }

/* ---------- WhatsApp flutuante ---------- */
.whatsapp-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: var(--heading);
  display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(37,211,102,.45);
  transition: transform .3s;
}
.whatsapp-float:hover { transform: scale(1.1); }

/* ---------- Reveal on scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ===================================================================
   Responsivo
=================================================================== */
@media (max-width: 940px) {
  .cards, .testimonials, .gallery { grid-template-columns: repeat(2, 1fr); }
  .strip__inner { grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
  .sobre__grid, .contato__grid { grid-template-columns: 1fr; }
  .sobre__media { max-width: 420px; margin-inline: auto; }

  .nav {
    position: fixed; inset: 0 0 0 auto;
    width: min(80vw, 320px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.8rem;
    background: var(--bg-2);
    border-left: 1px solid var(--line);
    padding: 3rem 2.4rem;
    transform: translateX(100%);
    transition: transform .4s ease;
  }
  .nav.open { transform: translateX(0); }
  .nav__cta { margin-left: 0; }
  .nav-toggle { display: flex; z-index: 101; }
  .nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 560px) {
  .cards, .testimonials, .gallery { grid-template-columns: 1fr; }
  .brand__text small { display: none; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
}
