/* ==========================================================
   Clínica Clifisa — estilos
   ========================================================== */
:root {
  --blue: #377DA6;
  --blue-dark: #1F5A80;
  --navy: #0E3557;
  --gold: #CFC196;
  --gold-dark: #B3A271;
  --whatsapp: #25D366;
  --text: #24323f;
  --muted: #5d6b78;
  --bg: #ffffff;
  --bg-soft: #f3f7fa;
  --border: #e3eaf0;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(14, 53, 87, .10);
  --shadow-lg: 0 20px 50px rgba(14, 53, 87, .18);
  --header-h: 76px;
  --font-title: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Open Sans', system-ui, sans-serif;
}

*, *::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(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3 {
  font-family: var(--font-title);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }

.section { padding: clamp(64px, 9vw, 110px) 0; }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section__head p { color: var(--muted); }

.tag {
  display: inline-block;
  font-family: var(--font-title);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(55, 125, 166, .1);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.tag--light { color: var(--gold); background: rgba(207, 193, 150, .15); }

.highlight { color: var(--blue); position: relative; white-space: nowrap; }
.highlight::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: .08em;
  height: .28em;
  background: var(--gold);
  opacity: .55;
  z-index: -1;
  border-radius: 4px;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: .95rem;
  padding: 12px 22px;
  border-radius: 100px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--lg { padding: 15px 28px; font-size: 1rem; }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(55, 125, 166, .35); }
.btn--primary:hover { background: var(--blue-dark); }
.btn--ghost { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn--ghost:hover { background: var(--blue); color: #fff; }
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: #fff; }
.icon { width: 20px; height: 20px; fill: currentColor; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  transition: background .3s, box-shadow .3s;
}
.header.is-scrolled { background: rgba(255, 255, 255, .96); box-shadow: 0 4px 20px rgba(14, 53, 87, .08); backdrop-filter: blur(8px); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: flex; align-items: center; gap: 12px; }
.logo img { height: 58px; width: auto; }

.nav { display: flex; align-items: center; gap: 32px; }
.nav__list { display: flex; gap: 28px; }
.nav__link { font-family: var(--font-title); font-weight: 600; font-size: .92rem; color: var(--navy); position: relative; padding: 6px 0; }
.nav__link::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--blue); transition: width .25s; }
.nav__link:hover::after, .nav__link.is-active::after { width: 100%; }
.nav__link.is-active { color: var(--blue); }

.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px; }
.menu-toggle span { display: block; height: 2px; background: var(--navy); margin: 6px 0; border-radius: 2px; transition: transform .3s, opacity .3s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 60px) 0 90px;
  background: linear-gradient(160deg, #eef5fa 0%, #ffffff 60%);
  overflow: hidden;
  isolation: isolate;
}
.hero__shape { position: absolute; border-radius: 50%; z-index: -1; }
.hero__shape--1 { width: 520px; height: 520px; right: -160px; top: -120px; background: radial-gradient(circle, rgba(55, 125, 166, .18), transparent 70%); }
.hero__shape--2 { width: 380px; height: 380px; left: -140px; bottom: -160px; background: radial-gradient(circle, rgba(207, 193, 150, .30), transparent 70%); }

.hero__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero__lead { font-size: 1.1rem; color: var(--muted); max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 36px; }

.hero__badges { display: flex; flex-wrap: wrap; gap: 28px; }
.hero__badges li { display: flex; flex-direction: column; padding-left: 16px; border-left: 3px solid var(--gold); }
.hero__badges strong { font-family: var(--font-title); font-size: 1.4rem; color: var(--navy); }
.hero__badges span { font-size: .85rem; color: var(--muted); }
.stars { color: #F5B400; font-size: .9rem; letter-spacing: 1px; }

.hero__media { position: relative; }
.hero__img-wrap {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid #fff;
  transform: rotate(1.5deg);
}
.hero__img-wrap img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero__card {
  position: absolute;
  left: -24px;
  bottom: -24px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  padding: 14px 20px 14px 14px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  animation: float 4s ease-in-out infinite;
}
.hero__card img { width: 44px; height: 44px; border-radius: 10px; }
.hero__card strong { display: block; font-family: var(--font-title); color: var(--navy); font-size: .95rem; }
.hero__card span { font-size: .8rem; color: var(--muted); }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Sobre ---------- */
.about__inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.about__media { position: relative; display: flex; justify-content: center; }
.about__photo {
  width: min(320px, 80%);
  border-radius: 200px 200px 28px 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(180deg, var(--blue), var(--navy));
}
.about__photo img { width: 100%; aspect-ratio: 219 / 448; max-height: 520px; object-fit: cover; object-position: top; }
.about__logo {
  position: absolute;
  right: 0;
  bottom: 10%;
  width: 200px;
  padding: 16px 20px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-lg);
}
.about__logo img { width: 100%; }
.about__content p { color: var(--muted); }
.about__content strong { color: var(--navy); }

.checklist { margin-top: 24px; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 36px; font-weight: 500; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 2px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ---------- Especialidades ---------- */
.specialties { background: var(--bg-soft); }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.card {
  background: #fff;
  padding: 32px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }
.card__icon {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  margin-bottom: 20px;
}
.card__icon svg { width: 34px; height: 34px; fill: var(--gold); stroke: #fff; }

/* ---------- Tratamentos ---------- */
.treatments { background: linear-gradient(135deg, var(--navy) 0%, var(--blue-dark) 55%, var(--blue) 100%); color: #fff; }
.treatments h2 { color: #fff; }
.treatments__content p { color: rgba(255, 255, 255, .8); margin-bottom: 28px; }
.treatments__inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.treatments__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.treatments__list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  font-family: var(--font-title);
  font-weight: 600;
  transition: background .3s, transform .3s;
}
.treatments__list li:hover { background: rgba(255, 255, 255, .15); transform: translateX(4px); }
.treatments__list span { font-size: .85rem; font-weight: 800; color: var(--gold); }

/* ---------- CTA ---------- */
.cta { padding-bottom: 0; }
.cta__box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding: 48px 56px;
  border-radius: 28px;
  background: linear-gradient(120deg, #f6f1e2, #eef5fa);
  border: 1px solid var(--border);
}
.cta__box h2 { margin-bottom: .3em; }
.cta__box p { color: var(--muted); margin: 0; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Contato ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: stretch; }
.contact__info { display: grid; gap: 26px; align-content: start; }
.info-item { display: flex; gap: 16px; }
.info-item h3 { margin-bottom: .25em; font-size: 1rem; }
.info-item p { color: var(--muted); margin: 0 0 .3em; }
.info-item__icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: rgba(55, 125, 166, .1);
}
.info-item__icon svg { width: 22px; height: 22px; fill: var(--blue); }
.link { color: var(--blue); font-weight: 600; word-break: break-word; }
.link:hover { text-decoration: underline; }

.social { display: flex; gap: 12px; }
@media (max-width: 880px) { .social { justify-content: center; } }
.social a {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--navy);
  transition: background .25s, transform .25s;
}
.social a:hover { background: var(--blue); transform: translateY(-3px); }
.social svg { width: 20px; height: 20px; fill: #fff; }

.contact__map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 380px; }
.contact__map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* ---------- Rodapé ---------- */
.footer { background: var(--navy); color: rgba(255, 255, 255, .75); padding: 48px 0 28px; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer__brand { display: flex; align-items: center; gap: 20px; }
.footer__brand > div { padding-left: 20px; border-left: 1px solid rgba(255, 255, 255, .18); }
.footer__brand img { height: 60px; width: auto; }
.footer__brand strong { display: block; color: #fff; font-family: var(--font-title); font-size: 1.1rem; }
.footer__brand span { font-size: .88rem; }
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__links a { font-weight: 600; transition: color .2s; }
.footer__links a:hover { color: var(--gold); }

.footer__bottom { padding-top: 24px; text-align: center; font-size: .88rem; }
.footer__bottom p { margin: 0 0 18px; }
.footer__bottom .credits {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 9px 20px;
  border-radius: 100px;
  background: #1E5A3A;
  border: 1px solid rgba(120, 200, 145, .35);
  color: rgba(255, 255, 255, .9);
  font-family: var(--font-body);
  font-size: .76rem;
  transition: background .25s, border-color .25s;
}
.footer__bottom .credits:hover { background: #246B45; border-color: rgba(120, 200, 145, .6); }
.credits a { color: #fff; font-weight: 700; }
.credits a:hover { color: #CDEFD8; }
.heart { color: #e25563; display: inline-block; animation: beat 1.4s ease-in-out infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 30% { transform: scale(1.25); } 60% { transform: scale(1); } }

/* ---------- Flutuantes ---------- */
.whatsapp-float {
  position: fixed;
  right: 20px; bottom: 20px;
  width: 60px; height: 60px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--whatsapp);
  box-shadow: 0 8px 24px rgba(37, 211, 102, .45);
  z-index: 90;
  transition: transform .25s;
}
.whatsapp-float::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  background: var(--whatsapp);
  animation: pulse 2s ease-out infinite;
  z-index: -1;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 30px; height: 30px; fill: #fff; }
@keyframes pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.6); opacity: 0; } }

.back-to-top {
  position: fixed;
  right: 28px; bottom: 92px;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: var(--blue);
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s, transform .3s, visibility .3s;
  z-index: 90;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top svg { width: 20px; height: 20px; fill: #fff; }

/* ---------- Animação de entrada ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

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

/* ---------- Responsivo ---------- */
@media (max-width: 1200px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .nav__list { gap: 20px; }
}

@media (max-width: 880px) {
  .menu-toggle { display: block; z-index: 101; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 24px 16px 32px;
    background: #fff;
    box-shadow: 0 20px 30px rgba(14, 53, 87, .12);
    transform: translateY(-120%);
    visibility: hidden;
    transition: transform .35s ease, visibility .35s;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav__list { flex-direction: column; gap: 4px; }
  .nav__link { display: block; padding: 12px 8px; font-size: 1.05rem; }
  .nav__link::after { display: none; }
  .header { background: rgba(255, 255, 255, .96); }

  .hero { padding-top: calc(var(--header-h) + 40px); }
  .hero__inner, .about__inner, .treatments__inner, .contact__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero__media { max-width: 560px; margin-inline: auto; width: 100%; }
  .hero__card { left: 12px; }
  .about__media { order: 2; }
  .cta__box { padding: 36px 28px; }
}

@media (max-width: 560px) {
  .logo img { height: 46px; }
  .footer { padding-bottom: 40px; }
  .cards, .treatments__list { grid-template-columns: 1fr; }
  .hero__actions .btn, .cta__actions .btn { width: 100%; }
  .hero__badges { gap: 18px; }
  .hero__img-wrap { transform: none; }
  .about__logo { width: 150px; padding: 12px 14px; bottom: 6%; }
  .back-to-top { display: none; }
  .footer__bottom .credits { max-width: 100%; flex-wrap: wrap; justify-content: center; }
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__brand { flex-direction: column; }
  .footer__brand > div { padding: 14px 0 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .18); }
}

/* ---------- Credencial (Sobre) ---------- */
.about__credential {
  margin-top: 28px;
  padding: 18px 22px;
  border-left: 4px solid var(--gold);
  border-radius: 0 14px 14px 0;
  background: var(--bg-soft);
  display: grid;
  gap: 2px;
}
.about__credential strong { font-family: var(--font-title); color: var(--navy); }
.about__credential span { font-size: .9rem; color: var(--muted); }
.about__credential span:nth-of-type(1) { color: var(--blue); font-weight: 600; }

/* ---------- Tecnologias ---------- */
.tech__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tech__item {
  position: relative;
  padding: 36px 30px 30px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.tech__item::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--blue), var(--gold));
}
.tech__num { font-family: var(--font-title); font-weight: 800; font-size: 2.2rem; color: rgba(55, 125, 166, .18); line-height: 1; display: block; margin-bottom: 12px; }
.tech__item p { color: var(--muted); font-size: .95rem; margin: 0; }

@media (max-width: 880px) {
  .tech__grid { grid-template-columns: 1fr; }
}

/* ---------- Links de WhatsApp nos cards ---------- */
.card, .tech__item { display: flex; flex-direction: column; }
.card p, .tech__item p { flex: 1; }
.card__link {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  align-self: stretch;
  padding: 12px 14px;
  border-radius: 100px;
  white-space: nowrap;
  background: #1EA952;
  color: #fff;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: .84rem;
  box-shadow: 0 6px 16px rgba(30, 169, 82, .3);
  transition: background .2s, transform .2s, box-shadow .2s;
}
.card__link .icon { width: 18px; height: 18px; }
.card__link:hover { background: #178A42; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(30, 169, 82, .4); }
.treatments__list li { padding: 0; }
.treatments__list li a { display: flex; align-items: center; gap: 14px; padding: 20px; width: 100%; color: #fff; }

/* Botão flutuante some quando os créditos aparecem */
.whatsapp-float { transition: transform .25s, opacity .3s, visibility .3s; }
.whatsapp-float.is-hidden { opacity: 0; visibility: hidden; transform: scale(.6); }
