/* =========================================================
   Dra. Ana Luísa Bettega — Cirurgia Plástica
   Stylesheet único e leve (sem frameworks, sem requisições externas)
   Paleta baseada na logo: bordô/vinho + neutros claros
   ========================================================= */

:root {
  --wine:        #6f2b3a;
  --wine-dark:   #4f1e29;
  --wine-soft:   #8a4453;
  --rose:        #c99aa1;
  --rose-light:  #f3e7e8;
  --cream:       #faf6f3;
  --cream-2:     #f2ebe5;
  --ink:         #2a2327;
  --muted:       #6d636a;
  --line:        #e6ddd7;
  --white:       #ffffff;

  --gold:        #b98a4b;

  --serif: Georgia, "Times New Roman", "Cormorant Garamond", serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --container: 1160px;
  --radius: 14px;
  --shadow: 0 18px 40px -24px rgba(79, 30, 41, .45);
  --shadow-soft: 0 8px 24px -16px rgba(79, 30, 41, .35);
  --transition: .28s cubic-bezier(.4, 0, .2, 1);
}

/* ---------- Reset enxuto ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; color: var(--wine-dark); }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Utilitários ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }
.section { padding: clamp(56px, 8vw, 110px) 0; }
.section--alt { background: var(--white); }
.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .74rem;
  font-weight: 600;
  color: var(--wine-soft);
  margin-bottom: .9rem;
  display: inline-block;
}
.section-head { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 60px); text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.lead { font-size: 1.15rem; color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .85em 1.7em;
  border-radius: 999px;
  font-weight: 600; font-size: .95rem;
  border: 1.5px solid transparent;
  transition: var(--transition);
  will-change: transform;
}
.btn--primary { background: var(--wine); color: var(--white); box-shadow: var(--shadow-soft); }
.btn--primary:hover { background: var(--wine-dark); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--wine); border-color: var(--rose); }
.btn--ghost:hover { background: var(--wine); color: var(--white); border-color: var(--wine); }
.btn--light { background: var(--white); color: var(--wine); }
.btn--light:hover { background: var(--cream-2); transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 246, 243, .82);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px -18px rgba(0,0,0,.4); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.nav__logo img { height: 54px; width: auto; display: block; }
.nav__menu { display: flex; align-items: center; gap: 30px; }
.nav__menu a { font-size: .95rem; font-weight: 500; color: var(--ink); position: relative; padding: 4px 0; }
.nav__menu a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--wine); transition: width var(--transition);
}
.nav__menu a:hover::after { width: 100%; }
.nav__actions { display: flex; align-items: center; gap: 14px; }
.nav__toggle { display: none; background: none; border: 0; padding: 8px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--wine-dark); margin: 5px 0; transition: var(--transition); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(48px, 7vw, 92px) 0 clamp(56px, 8vw, 100px);
  background:
    radial-gradient(circle at 82% 12%, var(--rose-light), transparent 46%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
  overflow: hidden;
}
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.hero__content h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); margin-bottom: .35em; }
.hero__content h1 em { font-style: italic; color: var(--wine); }
.hero__content .lead { max-width: 30ch; margin-bottom: 2rem; }
.hero__crm { font-size: .85rem; letter-spacing: .04em; color: var(--muted); margin-top: 1.6rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__media { position: relative; }
.hero__photo {
  aspect-ratio: 4 / 5;
  border-radius: 220px 220px var(--radius) var(--radius);
  background: linear-gradient(160deg, var(--wine-soft), var(--wine-dark));
  box-shadow: var(--shadow);
  display: grid; place-items: center;
  color: rgba(255,255,255,.55);
  text-align: center; font-family: var(--serif); font-size: .95rem; letter-spacing: .05em;
  overflow: hidden;
  position: relative;
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__badge {
  position: absolute; left: -18px; bottom: 26px;
  background: var(--white); border-radius: var(--radius);
  padding: 16px 22px; box-shadow: var(--shadow-soft);
  display: flex; align-items: center; gap: 12px;
}
.hero__badge strong { display: block; font-family: var(--serif); font-size: 1.5rem; color: var(--wine); line-height: 1; }
.hero__badge span { font-size: .78rem; color: var(--muted); }
.hero__badge .icon { width: 40px; height: 40px; border-radius: 50%; background: var(--rose-light); display: grid; place-items: center; color: var(--wine); }

/* ---------- Faixa de destaques ---------- */
.trust { background: var(--wine); color: var(--cream); }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; padding: 30px 0; }
.trust__item strong { font-family: var(--serif); font-size: 1.6rem; display: block; }
.trust__item span { font-size: .82rem; opacity: .8; letter-spacing: .03em; }
.trust__item + .trust__item { border-left: 1px solid rgba(255,255,255,.16); }

/* ---------- Sobre ---------- */
.about__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.about__photo {
  aspect-ratio: 3 / 4; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--cream-2), var(--rose-light));
  box-shadow: var(--shadow); display: grid; place-items: center;
  color: var(--wine-soft); font-family: var(--serif); overflow: hidden;
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__content h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
.about__list { display: grid; gap: 14px; margin: 1.6rem 0; }
.about__list li { display: flex; gap: 12px; align-items: flex-start; }
.about__list svg { flex: 0 0 auto; width: 22px; height: 22px; color: var(--wine); margin-top: 3px; }

/* ---------- Procedimentos ---------- */
.proc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.proc-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: var(--transition); position: relative; overflow: hidden;
}
.proc-card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--wine), var(--rose)); transform: scaleX(0);
  transform-origin: left; transition: transform var(--transition);
}
.proc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.proc-card:hover::before { transform: scaleX(1); }
.proc-card__icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--rose-light);
  display: grid; place-items: center; color: var(--wine); margin-bottom: 18px;
}
.proc-card__icon svg { width: 26px; height: 26px; }
.proc-card h3 { font-size: 1.22rem; margin-bottom: .35em; }
.proc-card p { font-size: .95rem; color: var(--muted); margin: 0; }

/* ---------- Diferenciais ---------- */
.features { background: linear-gradient(180deg, var(--white), var(--cream)); }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.feat {
  text-align: center; padding: 34px 24px; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line);
}
.feat__icon { width: 62px; height: 62px; margin: 0 auto 18px; border-radius: 50%; background: var(--wine); color: var(--white); display: grid; place-items: center; }
.feat__icon svg { width: 30px; height: 30px; }
.feat h3 { font-size: 1.2rem; }
.feat p { font-size: .95rem; color: var(--muted); margin: 0; }

/* ---------- Congressos ---------- */
.congress-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.congress-grid figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); aspect-ratio: 3 / 4; }
.congress-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.congress-grid figure:hover img { transform: scale(1.05); }
.congress-grid figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 20px 18px; color: #fff;
  font-size: .9rem; font-weight: 500; line-height: 1.3;
  background: linear-gradient(transparent, rgba(79,30,41,.85));
}

/* ---------- Blog preview ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: var(--transition); display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card__thumb {
  aspect-ratio: 16 / 10; background: linear-gradient(150deg, var(--rose-light), var(--cream-2));
  display: grid; place-items: center; color: var(--wine-soft); font-family: var(--serif); overflow: hidden;
}
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 24px 24px 28px; flex: 1; display: flex; flex-direction: column; }
.post-card__tag { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--wine-soft); font-weight: 600; margin-bottom: 10px; }
.post-card h3 { font-size: 1.18rem; margin-bottom: .5em; }
.post-card p { font-size: .92rem; color: var(--muted); flex: 1; }
.post-card__more { color: var(--wine); font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; }
.post-card__more svg { width: 16px; height: 16px; transition: transform var(--transition); }
.post-card:hover .post-card__more svg { transform: translateX(4px); }

/* ---------- Depoimentos ---------- */
.depoimentos { background: linear-gradient(180deg, var(--cream), var(--white)); }
.dep-masonry { columns: 300px; column-gap: 18px; }
.dep-item {
  break-inside: avoid; margin: 0 0 18px; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-soft); border: 1px solid var(--line); background: #fff;
  cursor: zoom-in; position: relative;
}
.dep-item img { width: 100%; display: block; transition: transform var(--transition); }
.dep-item::after {
  content: "🔍"; position: absolute; right: 10px; bottom: 10px;
  width: 34px; height: 34px; border-radius: 50%; background: rgba(111,43,58,.9);
  display: grid; place-items: center; font-size: .85rem; opacity: 0; transition: opacity var(--transition);
}
.dep-item:hover { box-shadow: var(--shadow); }
.dep-item:hover img { transform: scale(1.03); }
.dep-item:hover::after { opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(42,35,39,.92);
  display: none; place-items: center; padding: 24px; cursor: zoom-out;
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.lightbox.is-open { display: grid; }
.lightbox img { max-width: min(680px, 92vw); max-height: 88vh; border-radius: 10px; box-shadow: 0 24px 70px rgba(0,0,0,.55); }
.lightbox__close {
  position: absolute; top: 16px; right: 20px; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.16); color: #fff; border: 0; font-size: 1.7rem; line-height: 1;
  display: grid; place-items: center; cursor: pointer; transition: background var(--transition);
}
.lightbox__close:hover { background: rgba(255,255,255,.3); }

/* ---------- Instagram ---------- */
.insta { background: linear-gradient(180deg, var(--cream), var(--white)); }
.insta__head { text-align: center; margin-bottom: 26px; }
.insta__handle {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 8px;
  font-family: var(--serif); font-size: 1.35rem; color: var(--wine); font-weight: 600;
}
.insta__handle svg { width: 26px; height: 26px; }
.insta-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.insta-grid a { position: relative; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; display: block; }
.insta-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.insta-grid a::after {
  content: ""; position: absolute; inset: 0; background: rgba(79,30,41,.55);
  opacity: 0; transition: opacity var(--transition);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.5' cy='6.5' r='1.2' fill='white'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
.insta-grid a:hover::after { opacity: 1; }
.insta-grid a:hover img { transform: scale(1.08); }
.insta__cta { text-align: center; margin-top: 0; }

@media (max-width: 900px) { .insta-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .insta-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(135deg, var(--wine), var(--wine-dark));
  color: var(--cream); text-align: center; border-radius: var(--radius);
  padding: clamp(44px, 6vw, 76px) 26px; box-shadow: var(--shadow);
}
.cta h2 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.7rem); }
.cta p { max-width: 52ch; margin: 0 auto 2rem; opacity: .9; }

/* ---------- Contato ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 60px); }
.contact__info li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact__info li:last-child { border-bottom: 0; }
.contact__info .ico { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px; background: var(--rose-light); color: var(--wine); display: grid; place-items: center; }
.contact__info .ico svg { width: 22px; height: 22px; }
.contact__info strong { display: block; font-family: var(--serif); color: var(--wine-dark); }
.contact__info span, .contact__info a { color: var(--muted); font-size: .96rem; }
.contact__info a:hover { color: var(--wine); }
.map-wrap { border-radius: var(--radius); overflow: hidden; min-height: 340px; height: 100%; border: 1px solid var(--line); }
.map-facade {
  width: 100%; height: 100%; min-height: 340px; border: 0;
  background: linear-gradient(150deg, var(--cream-2), var(--rose-light));
  display: grid; place-items: center; gap: 12px; color: var(--wine); cursor: pointer;
  text-align: center; font-family: var(--serif);
}
.map-facade svg { width: 40px; height: 40px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--wine-dark); color: rgba(250,246,243,.8); padding: 60px 0 26px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer__grid img { height: 52px; width: auto; margin-bottom: 16px; filter: brightness(0) invert(1); opacity: .92; }
.footer h4 { color: var(--white); font-size: 1rem; letter-spacing: .04em; margin-bottom: 16px; }
.footer a { color: rgba(250,246,243,.78); font-size: .93rem; display: inline-block; padding: 4px 0; }
.footer a:hover { color: var(--white); }
.footer__social { display: flex; gap: 12px; margin-top: 14px; }
.footer__social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; }
.footer__social a:hover { background: var(--wine); }
.footer__social svg { width: 18px; height: 18px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.14); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .82rem; opacity: .75; }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; background: #25d366;
  display: grid; place-items: center; box-shadow: 0 10px 30px -8px rgba(37,211,102,.6);
  transition: var(--transition);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; color: #fff; }

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

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .hero__grid, .about__grid, .contact__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; max-width: 380px; margin-inline: auto; }
  .about__photo { max-width: 420px; margin-inline: auto; }
  .proc-grid, .feat-grid, .blog-grid, .footer__grid, .congress-grid { grid-template-columns: repeat(2, 1fr); }
  .trust__grid { grid-template-columns: repeat(2, 1fr); gap: 26px 12px; }
  .trust__item:nth-child(3) { border-left: 0; }
  .trust__item + .trust__item { border-left: 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav__menu { position: fixed; inset: 76px 0 auto; flex-direction: column; gap: 0;
    background: var(--cream); padding: 8px 22px 22px; border-bottom: 1px solid var(--line);
    transform: translateY(-120%); transition: transform var(--transition); box-shadow: var(--shadow-soft); }
  .nav__menu.is-open { transform: translateY(0); }
  .nav__menu a { width: 100%; padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav__toggle { display: block; }
  .nav__actions .btn--ghost { display: none; }
  .proc-grid, .feat-grid, .blog-grid, .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
}

/* ---------- Títulos em linha única (desktop) ---------- */
@media (min-width: 721px) {
  .section-head h2,
  .cta h2,
  .news h2,
  .blog-hero h1,
  .article-hero h1,
  .featured__body h2 {
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
