/* ═══════════════════════════════════════════════════════════
   CARTÃO HERMES ROCHA — Landing Page
   Inter + Work Sans · Teal #5bb799 · Header #68ccd1
═══════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../../_shared/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2') format('woff2');
}
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../../_shared/fonts/QGYsz_wNahGAdqQ43Rh_fKDp.woff2') format('woff2');
}

:root {
  /* Cartão Hermes Rocha — brand palette */
  --primary:       #5bb799;
  --primary-dark:  #3d9e80;
  --primary-light: #e8f7f3;
  --secondary:     #9fdccd;
  --header-bg:     #68ccd1;
  --header-dark:   #45b0b8;
  --accent:        #21252b;

  --dark:          #21252b;
  --dark-2:        #414244;
  --text:          #21252b;
  --text-soft:     #575a5e;
  --bg:            #ffffff;
  --bg-alt:        #f5fbf9;
  --bg-mint:       #e8f7f3;
  --border:        #d4ede8;

  --header-h:      70px;
  --radius:        12px;
  --radius-sm:     8px;
  --shadow-sm:     0 1px 4px rgba(0,0,0,.08);
  --shadow-md:     0 4px 20px rgba(0,0,0,.10);
  --shadow-lg:     0 20px 60px rgba(0,0,0,.12);
  --t:             all .28s ease;
  --max-w:         1200px;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { font-size: 16px; scroll-behavior: smooth; }
body  { font-family: 'Inter', sans-serif; color: var(--text); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img   { display: block; max-width: 100%; height: auto; }
a     { text-decoration: none; color: inherit; }
ul    { list-style: none; }
button{ cursor: pointer; font-family: inherit; border: none; background: none; }

/* ── Container / Layout ────────────────────────────────── */
.container { width: 100%; max-width: var(--max-w); margin-inline: auto; padding-inline: 28px; }

.section     { padding-block: 88px; background: var(--bg); }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--dark); }
.section-mint { background: var(--bg-mint); }

section[id]  { scroll-margin-top: calc(var(--header-h) + 8px); }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Section header */
.section-header { text-align: center; margin-bottom: 52px; }

.section-label {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.section-title {
  font-family: 'Work Sans', sans-serif;
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 12px;
}
.section-subtitle { font-size: .98rem; color: var(--text-soft); max-width: 580px; margin-inline: auto; line-height: 1.75; }

/* ── Scroll animation ──────────────────────────────────── */
.animate-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .55s ease, transform .55s ease;
}
.animate-in.visible { opacity: 1; transform: none; }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: .9rem;
  font-weight: 700;
  transition: var(--t);
  white-space: nowrap;
}
.btn i { width: 17px; height: 17px; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(91,183,153,.35);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(91,183,153,.45); }

.btn-outline {
  background: transparent;
  color: var(--dark);
  border: 2px solid var(--border);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-header {
  background: #fff;
  color: var(--header-bg);
  padding: 10px 20px;
  font-size: .82rem;
  font-weight: 700;
  border-radius: 50px;
  box-shadow: 0 2px 12px rgba(0,0,0,.12);
  transition: var(--t);
}
.btn-header i { width: 15px; height: 15px; }
.btn-header:hover { background: rgba(255,255,255,.9); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,.15); }

.btn-sm { padding: 11px 22px; font-size: .84rem; }

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  padding: 16px 36px;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 6px 24px rgba(37,211,102,.4);
  transition: var(--t);
}
.btn-whatsapp:hover { background: #1ebe5c; transform: translateY(-2px); box-shadow: 0 10px 32px rgba(37,211,102,.5); }

/* ── HEADER ─────────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: var(--header-bg);
  transition: box-shadow .3s;
}
.header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.2); }

/* Home: fixed so hero scrolls underneath */
.page-home .header { position: fixed; inset: 0 0 auto; }

.nav { display: flex; align-items: center; height: var(--header-h); gap: 0; }
.nav-logo { flex-shrink: 0; margin-right: auto; }
.nav-logo img { height: 42px; width: auto; object-fit: contain; }

.nav-menu { display: flex; align-items: center; gap: 4px; margin-right: 20px; }
.nav-link { font-size: .84rem; font-weight: 600; color: rgba(255,255,255,.9); padding: 6px 12px; border-radius: 7px; transition: var(--t); }
.nav-link:hover, .nav-link-active { color: #fff; background: rgba(255,255,255,.15); }

/* Hamburger */
.menu-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 34px; height: 34px; margin-left: 12px; }
.menu-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: var(--t); }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO / ABOUT (#sobre) ──────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: var(--header-h);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(21,37,43,.88) 0%, rgba(21,37,43,.70) 55%, rgba(21,37,43,.30) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-block: 80px;
  max-width: 680px;
}

.hero-title {
  font-family: 'Work Sans', sans-serif;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-text {
  font-size: 1.05rem;
  color: rgba(255,255,255,.88);
  line-height: 1.75;
  margin-bottom: 14px;
}
.hero-text:last-of-type { margin-bottom: 36px; }

/* ── SPECIALTIES (#sesvcod) ─────────────────────────────── */
.especialidades-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.especialidades-col { padding: 8px 20px; }

.especialidade-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.especialidade-item:last-child { border-bottom: none; }

.especialidade-title {
  font-family: 'Work Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark-2);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.especialidade-title i { width: 18px; height: 18px; color: var(--primary); flex-shrink: 0; }

.especialidade-desc {
  font-size: .92rem;
  color: var(--text-soft);
  line-height: 1.65;
}

/* ── TESTIMONIALS ────────────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.testimonial-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.testimonial-stars { color: var(--primary); font-size: 1.1rem; letter-spacing: 2px; }

.testimonial-quote {
  font-size: .93rem;
  color: var(--text-soft);
  line-height: 1.7;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-author img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-light);
}
.testimonial-name {
  font-size: .88rem;
  font-weight: 700;
  color: var(--dark);
}

/* ── PLANS (#planos) ─────────────────────────────────────── */
.planos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 20px;
}

.plano-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--t);
  display: block;
}
.plano-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.plano-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.plano-card:hover img { transform: scale(1.04); }

.plano-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(21,37,43,.85) 40%, rgba(21,37,43,.1) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
}

.plano-card-title {
  font-family: 'Work Sans', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.2;
}

.plano-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  padding: 10px 22px;
  border-radius: 50px;
  font-size: .88rem;
  font-weight: 700;
  width: fit-content;
  transition: var(--t);
}
.plano-card:hover .plano-card-btn { background: var(--primary-dark); }
.plano-card-btn i { width: 15px; height: 15px; }

.planos-disclaimer {
  text-align: center;
  margin-top: 20px;
  font-size: .82rem;
  color: var(--text-soft);
}

/* ── CLINICA PARCEIRA ────────────────────────────────────── */
.clinica-img {
  border-radius: var(--radius);
  width: 100%;
  height: 400px;
  object-fit: cover;
  box-shadow: var(--shadow-md);
}

.clinica-text h2 {
  font-family: 'Work Sans', sans-serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 20px;
  line-height: 1.25;
}
.clinica-text p {
  font-size: .97rem;
  color: var(--text-soft);
  line-height: 1.75;
  margin-bottom: 28px;
}

/* ── FOOTER ─────────────────────────────────────────────── */
.footer {
  background: var(--dark);
  padding-block: 48px;
  border-top: 3px solid var(--header-bg);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-logo img { height: 40px; width: auto; object-fit: contain; filter: brightness(0) invert(1); }

.footer-copy {
  font-size: .82rem;
  color: rgba(255,255,255,.45);
  text-align: center;
}
.footer-disclaimer {
  font-size: .78rem;
  color: rgba(255,255,255,.3);
  text-align: right;
}

/* ── WHATSAPP FLOAT ─────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
}
.whatsapp-float a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  box-shadow: 0 4px 16px rgba(37,211,102,.5);
  transition: var(--t);
}
.whatsapp-float a:hover { transform: scale(1.1); box-shadow: 0 8px 28px rgba(37,211,102,.6); }
.whatsapp-float img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .section { padding-block: 60px; }
  .grid-2 { grid-template-columns: 1fr; gap: 36px; }
  .grid-2 .clinica-img { order: -1; height: 260px; }

  .especialidades-grid { grid-template-columns: 1fr; }
  .especialidades-col { padding: 4px 0; }

  .testimonials-grid { grid-template-columns: 1fr; gap: 20px; }

  .planos-grid { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 640px) {
  .nav-menu, .btn-header { display: none; }
  .menu-toggle { display: flex; }

  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--header-bg);
    padding: 16px;
    gap: 4px;
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
    z-index: 100;
  }
  .nav-link { color: rgba(255,255,255,.9); padding: 10px 14px; width: 100%; border-radius: 8px; }
  .nav-link:hover { color: #fff; background: rgba(255,255,255,.15); }

  .hero-content { padding-block: 52px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-disclaimer { text-align: center; }
}
