/* Fonte Figtree hospedada no próprio site (sem Google Fonts) */
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("../fonts/figtree-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("../fonts/figtree-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Figtree"; font-style: italic; font-weight: 500; font-display: swap; src: url("../fonts/figtree-italic-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Figtree"; font-style: italic; font-weight: 500; font-display: swap; src: url("../fonts/figtree-italic-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ==========================================================
   Regen Clinic – Dr. Micaías Conde
   ========================================================== */
:root {
  --bg: #f3f6f7;
  --white: #ffffff;
  --navy: #0e1828;
  --navy-2: #18202d;
  --blue-900: #0a2a6b;
  --blue-700: #1d4fa8;
  --blue-600: #0b4fc4;
  --blue-500: #0060f0;
  --blue-btn-1: #033b8d;
  --sky: #cdeaff;
  --sky-border: #9fcbf0;
  --text: #2a2d33;
  --muted: #6e7076;
  --star: #f2aa10;
  --radius-lg: 40px;
  --radius: 22px;
  --container: 1280px;
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.12; }
p { margin: 0; }

.container { width: min(var(--container), 100% - 32px); margin-inline: auto; }
.center { text-align: center; }
.section { padding-block: clamp(64px, 9vw, 120px) 0; }
section[id], header[id] { scroll-margin-top: 24px; }

.section h2 {
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 600;
  color: var(--blue-700);
}
.lead {
  margin-top: 18px;
  font-size: clamp(17px, 1.35vw, 23px);
  color: var(--text);
  line-height: 1.5;
}
.center .lead { max-width: 1080px; margin-inline: auto; }
/* Sem órfãs/viúvas: títulos equilibrados, parágrafos com quebra "bonita" */
h1, h2, h3, .about__sub, .center .lead, .highlight, .footer__copy, .footer__company { text-wrap: balance; }
p, .contact__line { text-wrap: pretty; }
.lead--narrow { max-width: 560px !important; }
.highlight {
  margin-top: 28px;
  font-size: clamp(18px, 1.4vw, 23px);
  font-weight: 400;
  color: var(--blue-900);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-width: min(412px, 100%);
  padding: 20px 30px 20px 32px;
  border-radius: 999px;
  font-size: clamp(17px, 1.2vw, 21px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}
.btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; flex: none; transition: transform .25s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg { transform: translate(3px, -3px); }
.btn--primary {
  color: #fff;
  background: linear-gradient(90deg, var(--blue-btn-1), var(--blue-500));
  box-shadow: 0 14px 34px -10px rgba(0, 96, 240, .55);
}
.btn--primary:hover { filter: brightness(1.08); box-shadow: 0 18px 40px -10px rgba(0, 96, 240, .7); }
.btn--light { color: var(--blue-700); background: #e6f1fc; }
.btn--light:hover { background: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  margin: 15px clamp(8px, 2.6vw, 50px) 0;
  min-height: min(833px, 92vh);
  border-radius: var(--radius-lg);
  background: radial-gradient(ellipse at 75% 45%, #11336f 0%, var(--navy) 55%, var(--navy-2) 100%);
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}
.hero__photo {
  position: absolute;
  right: 0; bottom: 0;
  height: 87%;
  width: auto;
  max-width: none;
  object-fit: cover;
  object-position: left bottom;
  z-index: -1;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%);
          mask-image: linear-gradient(90deg, transparent 0, #000 12%);
}
.nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1280px, 100% - 32px);
  margin: 45px auto 0;
  padding: 14px 40px;
  background: var(--sky);
  border-radius: 20px;
}
.nav__logo img { width: 160px; height: auto; }
.nav__menu { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav__menu a {
  font-size: 16px; font-weight: 400; color: var(--blue-900);
  padding: 6px 0; transition: color .2s;
}
.nav__menu a:hover, .nav__menu a.active { color: var(--blue-500); }
.nav__menu a.active { font-weight: 600; }
.nav__toggle { display: none; }

.hero__inner { width: min(var(--container), 100% - 32px); margin-inline: auto; }
.hero__content { max-width: 520px; padding: clamp(80px, 11vw, 140px) 0 120px; }
.hero h1 { font-size: clamp(36px, 3.4vw, 52px); font-weight: 600; }
.hero p {
  margin: 30px 0 30px;
  font-size: clamp(17px, 1.3vw, 23px);
  color: rgba(255, 255, 255, .88);
}

/* ---------- Procedimentos ---------- */
#procedimentos h2 { font-size: clamp(30px, 3.2vw, 44px); }
.proc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 32px 0 30px;
}
.card {
  background: var(--sky);
  border: 1px dashed var(--sky-border);
  border-radius: var(--radius);
}
.proc { padding: 30px 36px 44px; transition: transform .3s ease, box-shadow .3s ease; }
.proc:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -18px rgba(11, 79, 196, .45); }
.proc__icon {
  display: block; width: 30px; height: 30px; margin-bottom: 26px;
  background: var(--blue-500);
  -webkit-mask: url("../img/icone-estrela.svg") center / contain no-repeat;
          mask: url("../img/icone-estrela.svg") center / contain no-repeat;
}
.proc h3 { font-size: clamp(20px, 1.6vw, 24px); font-weight: 600; color: var(--blue-700); margin-bottom: 14px; max-width: 320px; }
.proc p { font-size: clamp(16px, 1.15vw, 19px); color: var(--text); line-height: 1.55; max-width: 330px; }

/* ---------- Sliders ---------- */
.slider { width: min(var(--container), 100% - 32px); margin: 32px auto 0; }
.slider__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
  scrollbar-width: none;
  cursor: grab;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__track.dragging { cursor: grabbing; scroll-snap-type: none; }
.slider__track.dragging * { pointer-events: none; user-select: none; }
.slider__track > * { scroll-snap-align: start; flex: none; }
.slider__dots { display: flex; justify-content: center; gap: 6px; margin-top: 18px; }
.slider__dots button {
  width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%;
  background: #a9c8ea; cursor: pointer; transition: background .2s, transform .2s;
}
.slider__dots button.on { background: var(--blue-700); transform: scale(1.15); }
.slider__dots[hidden] { display: none; }
.slider__track:focus-visible, .slider__dots button:focus-visible {
  outline: 2px solid var(--blue-500); outline-offset: 4px; border-radius: var(--radius);
}
.slider__dots button:focus-visible { border-radius: 50%; }

.tec {
  width: calc((100% - 60px) / 4); /* 4 por vez dentro dos 1280px */
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sky);
  display: flex; flex-direction: column;
}
.tec img { width: 100%; height: 265px; object-fit: cover; }
.tec__body {
  position: relative;
  flex: 1;
  margin-top: -14px;
  padding: 28px 30px 32px;
  background: var(--sky);
  border-radius: var(--radius) var(--radius) var(--radius) var(--radius);
}
.tec__body::before {
  content: ""; position: absolute; top: 20px; left: 30px; right: 52px;
  height: 2px; background: #8ec3f2;
}
.tec h3 { font-size: 21px; font-weight: 600; color: var(--blue-700); margin-bottom: 12px; }
.tec p { font-size: 15.5px; color: var(--text); line-height: 1.45; }

/* ---------- Sobre ---------- */
.about {
  display: grid;
  grid-template-columns: 650px 1fr;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(110deg, #0a2a6b 0%, var(--navy) 50%, var(--navy-2) 100%);
  color: #fff;
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.about__text { padding: clamp(36px, 6vw, 80px) clamp(24px, 4vw, 56px) clamp(36px, 6vw, 80px) 0; }
.about h2 { color: #fff; font-size: clamp(32px, 3vw, 44px); }
.about__sub {
  margin-top: 16px; padding-bottom: 20px; max-width: 456px;
  font-size: clamp(19px, 1.5vw, 24px); font-weight: 500; font-style: italic; line-height: 1.3;
  border-bottom: 1px solid rgba(255, 255, 255, .25);
}
.about__text p:not(.about__sub) { margin-top: 26px; font-size: clamp(17px, 1.35vw, 23px); color: rgba(255,255,255,.9); line-height: 1.32; max-width: 580px; }

/* ---------- Depoimentos ---------- */
.stars { color: var(--star); letter-spacing: 1px; }
.stars--muted { color: #a9b7cc; font-size: 18px; margin-bottom: 4px; }
.review {
  width: calc((100% - 40px) / 3); /* 3 por vez dentro dos 1280px */
  min-height: 242px;
  display: flex; flex-direction: column;
  padding: 24px 34px 30px;
}
.review__badge {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  padding: 2px 10px 2px 6px; margin-bottom: 14px;
  background: #fff; border-radius: 999px;
  font-size: 12px; font-weight: 400; color: #444;
}
.review__badge .stars { font-size: 15px; }
.review p { font-size: 15px; line-height: 1.38; color: var(--text); flex: 1; }
.review strong { margin-top: 20px; font-size: 16px; font-weight: 600; color: var(--blue-700); }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 32px; }
.post {
  display: flex; flex-direction: column;
  padding: 18px 20px 26px;
  background: #ececec;
  border-radius: 32px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.post:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -20px rgba(0,0,0,.25); }
.post img { width: 100%; aspect-ratio: 268 / 179; object-fit: cover; border-radius: 14px; }
.post h3 { margin-top: 24px; font-size: 20px; font-weight: 500; color: #1d1f24; line-height: 1.35; }
.post p { margin-top: 14px; font-size: 14px; color: #3b3e44; line-height: 1.45; flex: 1; }
.post a { margin-top: 26px; font-size: 16px; font-weight: 500; color: var(--blue-700); }
.post a:hover { text-decoration: underline; }

/* ---------- CTA ---------- */
.cta {
  margin-top: clamp(64px, 9vw, 120px);
  padding: clamp(40px, 5vw, 50px) 24px clamp(44px, 5vw, 46px);
  border-radius: var(--radius-lg);
  text-align: center;
  color: #fff;
  background:
    radial-gradient(ellipse at 15% 60%, rgba(40, 110, 220, .55), transparent 55%),
    linear-gradient(100deg, #0a2346 0%, #11336f 40%, var(--navy-2) 100%);
}
.cta h2 { max-width: 940px; margin: 0 auto 26px; font-size: clamp(26px, 2.6vw, 38px); font-weight: 500; }

/* ---------- Contato ---------- */
.contact { display: grid; grid-template-columns: 630px 1fr; gap: 20px; }
.contact__map { border-radius: var(--radius-lg); overflow: hidden; min-height: 460px; background: #e5e9ec; }
.contact__map iframe { width: 100%; height: 100%; min-height: 460px; border: 0; display: block; }
.contact__card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 84px) clamp(24px, 5vw, 64px);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
}
.contact__card h2 { color: var(--blue-900); font-size: clamp(30px, 3vw, 42px); padding-bottom: 28px; border-bottom: 1px solid #b9d5ef; }
.contact__line {
  display: block; padding: 12px 0 14px;
  font-size: clamp(18px, 1.45vw, 24px); font-weight: 400; color: var(--blue-900);
  border-bottom: 1px solid #b9d5ef; transition: color .2s;
}
.contact__line:last-of-type { border-bottom: 0; margin-bottom: 26px; }
.contact__line:hover { color: var(--blue-500); }
.contact__card .btn { min-width: min(412px, 100%); }

/* ---------- Footer ---------- */
.footer {
  margin-top: clamp(64px, 9vw, 120px);
  padding: 0 16px 24px;
  background: #fff;
  text-align: center;
}
.footer__seal { width: 124px; margin: 0 auto -62px; position: relative; transform: translateY(-50%); }
.footer__copy {
  margin-top: 46px; font-size: 16px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--blue-900);
}
.footer__company {
  margin-top: 8px; font-size: 14px; font-weight: 500; letter-spacing: .04em; color: #5f7da6;
}
.footer__legal {
  max-width: 1130px; margin: 30px auto 0; padding-bottom: 28px;
  font-size: 14px; color: #a6b4c4; line-height: 1.6;
  border-bottom: 1px solid #c9dcef;
}
.footer__sign { margin-top: 20px; font-size: 12px; color: #9fb7da; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- WhatsApp float ---------- */
.whats-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 50;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: #fff;
  box-shadow: 0 10px 28px -8px rgba(0,0,0,.4);
  transition: transform .25s;
}
.whats-float:hover { transform: scale(1.08); }
.whats-float svg { width: 32px; height: 32px; fill: currentColor; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================
   Responsivo
   ========================================================== */
@media (max-width: 1200px) {
  .tec { width: calc((100% - 40px) / 3); }
  .review { width: calc((100% - 20px) / 2); }
  .about { grid-template-columns: 46% 1fr; }
  .contact { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .hero__photo { opacity: .85; }
}

@media (max-width: 960px) {
  .nav { padding: 12px 20px; }
  .nav__toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 42px; height: 42px; padding: 10px; border: 0; background: transparent; cursor: pointer;
  }
  .nav__toggle span { display: block; height: 2px; background: var(--blue-900); border-radius: 2px; transition: transform .3s, opacity .3s; }
  .nav.open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav__menu {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 10px 20px;
    background: var(--sky); border-radius: 20px;
    box-shadow: 0 20px 40px -16px rgba(0,0,0,.4);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav.open .nav__menu { opacity: 1; visibility: visible; transform: none; }
  .nav__menu a { display: block; padding: 12px 0; font-size: 18px; border-bottom: 1px solid rgba(29,79,168,.12); }
  .nav__menu li:last-child a { border-bottom: 0; }

  .hero { min-height: 0; display: flex; flex-direction: column; }
  .hero__content { max-width: 620px; padding: 56px 0 0; }
  .hero__photo {
    position: relative; order: 3; z-index: 0; opacity: 1;
    width: 120%; max-width: none; height: auto; margin: -10px -10% 0 auto;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 18%);
            mask-image: linear-gradient(180deg, transparent 0, #000 18%);
  }

  .proc-grid { grid-template-columns: repeat(2, 1fr); }
  .tec { width: calc((100% - 20px) / 2); }
  .about { grid-template-columns: 1fr; }
  .about__photo img { max-height: 520px; }
  .about__text { padding: 36px 28px 44px; }
  .contact { grid-template-columns: 1fr; }
  .contact__map, .contact__map iframe { min-height: 340px; }
}

@media (max-width: 640px) {
  .hero { border-radius: 28px; }
  .nav { margin-top: 16px; width: calc(100% - 24px); }
  .nav__logo img { width: 130px; }
  .btn { width: 100%; min-width: 0; padding: 18px 24px; font-size: 16px; }
  .proc-grid, .blog-grid { grid-template-columns: 1fr; }
  .proc { padding: 26px 26px 32px; }
  .tec { width: 82%; }
  .tec img { height: 230px; }
  .review { width: 88%; padding: 22px 24px 26px; }
  .cta, .about, .contact__map, .contact__card { border-radius: 28px; }
  .hero__photo { width: 135%; margin-right: -20%; }
  .section h2 br { display: none; }
}
