/* ===================================================
   Dr. Lucas Arantes — estilos do site
   Modelo de design: cards arredondados, botões pílula
   com ícone circular, títulos bicolor, badges centralizadas
   (referência de layout fornecida pelo cliente)
   Paleta: Navy #0B1522 · Cinza-cartão #F1F0EB · Off-white #FAFAFA
   Tipografia: Montserrat (título + corpo) · Belleza (logo)
=================================================== */

@font-face {
  font-family: 'Belleza';
  src: url('../fonts/Belleza-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #0B1522;
  --navy-soft: #16283a;
  --card-light: #F1F0EB;
  --off-white: #FAFAFA;
  --white: #FFFFFF;
  --ink: #0B1522;
  --ink-soft: rgba(11, 21, 34, 0.68);
  --ink-muted: rgba(11, 21, 34, 0.38);
  --line: rgba(11, 21, 34, 0.1);
  --gold: #C9A24B;

  --font-display: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-logo: 'Belleza', Georgia, serif;

  --container: 1240px;
  --gap: clamp(1.5rem, 4vw, 4rem);
  --radius-lg: 28px;
  --radius-md: 18px;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
  font-weight: 400;
  line-height: 1.6;
}

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.1;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1.1em; }
address { font-style: normal; }

/* ---------- Pill badge ---------- */
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 0.55em 1.3em;
  border-radius: 999px;
  background: rgba(11, 21, 34, 0.06);
  margin-bottom: 1.4em;
}
.pill-badge i {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--ink-muted);
  font-style: normal;
}

/* ---------- Two-tone heading ---------- */
.two-tone-heading {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
}
.two-tone-heading .muted { display: block; color: var(--ink-muted); }
.two-tone-heading .strong { display: block; color: var(--ink); font-weight: 400; }

.section-sub {
  font-size: 1.02rem;
  color: var(--ink-soft);
  max-width: 32rem;
}

/* ---------- Buttons (pill w/ icon circle) ---------- */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.9em;
  padding: 0.4em 1.7em 0.4em 0.4em;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  white-space: nowrap;
}
.btn-pill:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -10px rgba(11,21,34,0.35); }

.btn-pill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4em;
  height: 2.4em;
  border-radius: 50%;
  flex: none;
  font-size: 1rem;
}

.btn-pill-dark { background: var(--navy); color: var(--white); }
.btn-pill-dark .btn-pill-icon { background: var(--white); color: var(--navy); }

.btn-pill-light { background: var(--white); color: var(--navy); }
.btn-pill-light .btn-pill-icon { background: var(--navy); color: var(--white); }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--gold);
  z-index: 200;
  transition: width 0.1s linear;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 1.25rem 0;
  background: rgba(250, 250, 250, 0.9);
  backdrop-filter: blur(10px);
  transition: box-shadow .35s var(--ease), padding .35s var(--ease);
}
.site-header.is-scrolled {
  padding: 0.8rem 0;
  box-shadow: 0 8px 30px rgba(11,21,34,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  color: var(--ink);
}
.brand-logo { height: 38px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  font-size: 0.9rem;
}
.main-nav a:not(.btn-pill) { position: relative; padding: 0.2rem 0; opacity: 0.75; transition: opacity .2s; }
.main-nav a:not(.btn-pill):hover { opacity: 1; }
.nav-cta { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}

/* ---------- Hero ---------- */
.hero-wrap { padding: 8.5rem 0 1rem; background: var(--off-white); }

.hero-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: 620px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(120% 140% at 15% 10%, #fbfbfa 0%, var(--card-light) 45%, #e6e4dd 100%);
}

.hero-card-copy {
  padding: clamp(2rem, 5vw, 4.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.hero-greeting {
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 1.2em;
}

.hero-title {
  font-size: clamp(2.4rem, 4.6vw, 3.8rem);
  font-weight: 300;
  color: var(--ink);
  margin-bottom: 0.4em;
}

.hero-subtitle {
  font-size: 1.02rem;
  max-width: 26rem;
  color: var(--ink-soft);
  margin-bottom: 1.6em;
}

.hero-card-media {
  position: relative;
  height: 100%;
  min-height: 320px;
}
.hero-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 14%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 14%);
}

/* ---------- Floating tag over hero photo ---------- */
.hero-media-tag {
  position: absolute;
  left: 1.5rem;
  bottom: 1.5rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.65em;
  width: fit-content;
  background: rgba(11, 21, 34, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--white);
  padding: 0.85em 1.3em;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(18px);
  animation: tagIn 0.9s var(--ease) 0.7s forwards;
}
.hero-media-tag-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex: none;
}
@keyframes tagIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Hero photo — mobile only, shown after the title ---------- */
.hero-media-mobile { display: none; }

.hero-credential {
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: var(--ink-muted);
  text-align: center;
  margin: 1.6rem 0 0;
}

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 6vw, 4.5rem) 0; }

/* ---------- About card ---------- */
.about-card {
  background: var(--navy);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: stretch;
  overflow: hidden;
  min-height: 560px;
}

.about-card-copy {
  padding: clamp(2rem, 5vw, 4rem);
  color: var(--off-white);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-title {
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 300;
  color: var(--white);
}

.about-card-copy > p {
  color: rgba(250,250,250,0.72);
  max-width: 34rem;
  margin-bottom: 1.6em;
}

.icon-list { display: flex; flex-direction: column; gap: 0.9rem; }
.icon-list-item {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.1rem 1.3rem;
  border: 1px solid rgba(250,250,250,0.14);
  border-radius: var(--radius-md);
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.icon-list-item:hover { border-color: rgba(201,162,75,0.5); background: rgba(250,250,250,0.03); }
.icon-box {
  flex: none;
  width: 2.6rem; height: 2.6rem;
  border-radius: 50%;
  border: 1px solid rgba(250,250,250,0.25);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
}
.icon-list-item h3 { font-size: 1rem; font-weight: 500; margin: 0 0 0.2em; color: var(--white); }
.icon-list-item p { font-size: 0.86rem; margin: 0; color: rgba(250,250,250,0.6); }

.about-card-media { position: relative; height: 100%; min-height: 280px; }
.about-card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 14%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 14%);
}

/* ---------- Protocols / Áreas de atuação ---------- */
.protocols-card {
  background: var(--card-light);
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 5vw, 3.5rem);
}

.section-head-centered {
  max-width: 42rem;
  margin: 0 auto 3rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.section-head-centered .pill-badge { background: rgba(11,21,34,0.08); }
.section-head-centered .section-sub { margin: 0.6em auto 0; }

.protocol-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.protocol-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.protocol-card:hover { transform: translateY(-4px); box-shadow: 0 20px 45px -20px rgba(11,21,34,0.25); }
.protocol-card h3 { font-size: 1.2rem; font-weight: 500; margin-bottom: 0.4em; }
.protocol-card > p { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 1.4em; }

.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.8rem; }
.checklist li { display: flex; align-items: center; gap: 0.8rem; font-size: 0.92rem; color: var(--ink); }
.check-dot {
  flex: none;
  width: 1.5rem; height: 1.5rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 0.65rem;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- CTA final ---------- */
.cta-final { padding-top: 2rem; padding-bottom: 5rem; }
.cta-final-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: center;
}
.cta-final-copy p { color: var(--ink-soft); max-width: 28rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(250,250,250,0.75);
  padding: 5rem 0 0;
  position: relative;
  overflow: hidden;
  margin-top: 1rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2.5rem;
  position: relative;
  z-index: 1;
}
.footer-brand h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 300;
  color: var(--white);
  margin-bottom: 0.5em;
}
.footer-brand p { font-size: 0.88rem; color: rgba(250,250,250,0.55); max-width: 22rem; }

.footer-col h4 {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--white);
  margin: 0 0 1.1rem;
  font-weight: 500;
}
.footer-col-spacer { margin-top: 1.6rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.65rem; }
.footer-col a:not(.btn-pill), .footer-col address { font-size: 0.9rem; color: rgba(250,250,250,0.8); line-height: 1.6; }
.footer-col a:not(.btn-pill):hover { color: var(--gold); }
.footer-col .btn-pill { margin-top: 0.8rem; }

.footer-mark {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
  opacity: 0.5;
}
.footer-mark img { height: clamp(80px, 14vw, 160px); width: auto; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.6rem 0;
  margin-top: 1.5rem;
  border-top: 1px solid rgba(250,250,250,0.1);
  font-size: 0.76rem;
  color: rgba(250,250,250,0.4);
  position: relative;
  z-index: 1;
}
.footer-bottom p { margin: 0; }
.footer-bottom strong { color: #ffd77a; }

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  z-index: 90;
  transition: transform .25s var(--ease);
}
.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(37, 211, 102, 0.55);
  animation: ping 2.6s ease-out infinite;
}
@keyframes ping {
  0% { transform: scale(0.85); opacity: 0.9; }
  80% { transform: scale(1.35); opacity: 0; }
  100% { opacity: 0; }
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float::before { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ===================================================
   Responsive
=================================================== */
@media (max-width: 980px) {
  .main-nav { display: none; }
  .btn-nav { display: none; }
  .nav-toggle { display: flex; }

  .site-header.nav-open .header-inner { flex-wrap: wrap; }
  .site-header.nav-open .main-nav {
    order: 3;
    flex-basis: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(250,250,250,0.98);
    margin: 1.2rem calc(-1 * clamp(1.25rem, 4vw, 2.5rem)) 0;
    padding: 1.2rem clamp(1.25rem, 4vw, 2.5rem) 1.6rem;
    gap: 1.1rem;
    font-size: 1rem;
  }
  .site-header.nav-open .nav-cta { display: inline-flex; margin-top: 0.4rem; }
  .site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero-card { grid-template-columns: 1fr; min-height: unset; }
  .hero-card-media { display: none; }

  .hero-media-mobile {
    display: block;
    position: relative;
    margin: 1.5rem 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4 / 5;
    max-height: 440px;
  }
  .hero-media-mobile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
  }
  .hero-card-copy { text-align: left; }

  .about-card { grid-template-columns: 1fr; min-height: unset; }
  .about-card-media { order: -1; min-height: 300px; }
  .about-card-media img { mask-image: none; -webkit-mask-image: none; }

  .protocol-grid { grid-template-columns: 1fr; }

  .cta-final-grid { grid-template-columns: 1fr; text-align: left; }

  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .hero-card-copy .btn-pill { width: 100%; justify-content: center; }
}
