/* ═══════════════════════════════════════════════════════════
   CARTÃO NOSSA FAMÍLIA — Landing Page
   Inter · Teal #2bafa6 · Header #68ccd1 · Dark #21252b
═══════════════════════════════════════════════════════════ */

/* ── Inter (latin-ext + latin) ─────────────────────────── */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../../_shared/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7SUc.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../../_shared/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.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;
}

:root {
  /* Cartão Nossa Família — brand palette */
  --primary:      #2bafa6;   /* teal — CTAs, accents */
  --primary-dark: #1d8a82;
  --primary-light:#e8f8f7;
  --secondary:    #21252b;   /* dark charcoal */
  --header-bg:    #68ccd1;   /* light teal header */
  --dark:         #21252b;
  --dark-2:       #1e3442;   /* featured plan bg */
  --text:         #21252b;
  --text-soft:    #6B7280;
  --text-lighter: #9CA3AF;
  --bg:           #FFFFFF;
  --bg-alt:       #F9FAFB;
  --bg-dark:      #1e3442;
  --border:       #E5E7EB;
  --header-h:     72px;
  --radius:       14px;
  --radius-sm:    8px;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md:    0 4px 20px rgba(0,0,0,.08);
  --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: 96px; background: var(--bg); }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); }

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

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

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

.section-label {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.section-label-teal {
  display: inline-block;
  background: rgba(43,175,166,.2);
  color: #7ee8e2;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 14px;
}
.section-title-dark {
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 14px;
}
.section-subtitle      { font-size: .98rem; color: var(--text-soft); max-width: 580px; margin-inline: auto; line-height: 1.75; }
.section-subtitle-dark { font-size: .98rem; color: rgba(255,255,255,.65); max-width: 580px; margin-inline: auto; line-height: 1.75; }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: .9rem;
  font-weight: 700;
  transition: var(--t);
  cursor: pointer;
}
.btn i { width: 16px; height: 16px; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 32px rgba(43,175,166,.3);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }

.btn-header {
  background: #fff;
  color: var(--header-bg);
  font-size: .82rem;
  padding: 10px 20px;
}
.btn-header:hover { background: rgba(255,255,255,.88); transform: translateY(-1px); }

.btn-plan {
  width: 100%;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  padding: 14px 20px;
}
.btn-plan:hover { background: var(--primary-dark); transform: translateY(-2px); }

.btn-plan-featured {
  width: 100%;
  justify-content: center;
  background: #fff;
  color: var(--bg-dark);
  padding: 14px 20px;
  font-weight: 800;
}
.btn-plan-featured:hover { background: rgba(255,255,255,.9); transform: translateY(-2px); }

/* ── Header ─────────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--header-bg);
  transition: background .3s, box-shadow .3s;
}
.page-home .header { position: fixed; inset: 0 0 auto; }
.header.scrolled { background: var(--header-bg); box-shadow: 0 2px 16px rgba(0,0,0,.18); }

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}
.nav-logo { flex-shrink: 0; }
.nav-logo img { height: 44px; width: auto; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-link {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 600;
  color: rgba(255,255,255,.92);
  transition: var(--t);
}
.nav-link:hover { background: rgba(255,255,255,.15); color: #fff; }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
}
.menu-toggle span {
  display: block;
  width: 22px;
  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 ───────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 600px;
  background: var(--dark);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 52, 66, 0.25);
}

/* ── Sobre ──────────────────────────────────────────────── */
.sobre-inner { max-width: 700px; }
.sobre-text h2.section-title { text-align: left; }
.sobre-text .section-label { display: inline-block; }
.sobre-text p { color: var(--text-soft); margin-bottom: 12px; line-height: 1.75; }
.sobre-actions { margin-top: 28px; }

/* ── Especialidades ─────────────────────────────────────── */
.especialidades-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.espec-card { border-radius: var(--radius-sm); overflow: hidden; }
.espec-img {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--dark);
}
.espec-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.espec-card:hover .espec-img img { transform: scale(1.06); }
.espec-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30,36,40,.85) 30%, rgba(30,36,40,.2) 100%);
}
.espec-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 12px;
  font-size: .78rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

/* ── Vantagens ──────────────────────────────────────────── */
.compare-table {
  background: rgba(255,255,255,.07);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  margin-bottom: 32px;
}
.compare-header, .compare-row {
  display: grid;
  grid-template-columns: 1fr 160px 160px;
}
.compare-header {
  background: rgba(255,255,255,.1);
}
.compare-cell {
  padding: 14px 20px;
  font-size: .88rem;
}
.compare-header .compare-cell {
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
}
.compare-row { border-top: 1px solid rgba(255,255,255,.08); }
.compare-row:hover { background: rgba(255,255,255,.04); }
.compare-service { color: rgba(255,255,255,.9); }
.compare-normal  { text-align: center; color: rgba(255,255,255,.5); }
.compare-subscriber { text-align: center; }
.price-old { text-decoration: line-through; opacity: .7; }
.price-new { font-weight: 800; color: #7ee8e2; font-size: 1rem; }
.compare-note {
  text-align: center;
  font-size: .82rem;
  color: rgba(255,255,255,.5);
  max-width: 680px;
  margin-inline: auto;
  line-height: 1.7;
}

/* ── Planos ─────────────────────────────────────────────── */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: start;
}
.plan-card {
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform .28s ease, box-shadow .28s ease;
}
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.plan-featured {
  background: var(--dark-2);
  border-color: var(--primary);
  color: #fff;
}
.plan-header {
  padding: 28px 24px 20px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.plan-featured .plan-header { border-color: rgba(255,255,255,.12); }

.plan-name {
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 6px;
}
.plan-featured .plan-name { color: #7ee8e2; }

.plan-desc {
  font-size: .8rem;
  color: var(--text-soft);
  line-height: 1.4;
  margin-bottom: 16px;
}
.plan-featured .plan-desc { color: rgba(255,255,255,.6); }

.plan-price {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  line-height: 1;
  margin-bottom: 4px;
}
.price-currency {
  font-size: .95rem;
  font-weight: 700;
  margin-top: 6px;
  color: var(--text);
}
.plan-featured .price-currency { color: #fff; }
.price-value {
  font-size: 3rem;
  font-weight: 900;
  color: var(--text);
}
.plan-featured .price-value { color: #fff; }
.price-cents {
  font-size: 1rem;
  font-weight: 700;
  margin-top: 10px;
  color: var(--text);
}
.plan-featured .price-cents { color: #fff; }
.plan-period {
  font-size: .78rem;
  color: var(--text-soft);
}
.plan-featured .plan-period { color: rgba(255,255,255,.55); }

.plan-features {
  padding: 20px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .83rem;
  line-height: 1.45;
  color: var(--text-soft);
}
.plan-featured .plan-features li { color: rgba(255,255,255,.75); }
.plan-features li i {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--primary);
}
.plan-featured .plan-features li i { color: #7ee8e2; }

.plan-cta {
  padding: 0 24px 24px;
}

/* ── Clínica ─────────────────────────────────────────────── */
.clinica-title { color: var(--primary); }
.clinica-body { margin-top: 12px; }

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.galeria-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1;
}
.galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.galeria-item:hover img { transform: scale(1.06); }

/* ── Footer ─────────────────────────────────────────────── */
.footer {
  background: var(--dark-2);
  color: rgba(255,255,255,.85);
  padding-block: 64px 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-logo { height: 44px; width: auto; margin-bottom: 20px; }
.footer-address {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .82rem;
  color: rgba(255,255,255,.6);
  line-height: 1.6;
  margin-bottom: 12px;
}
.footer-address i { flex-shrink: 0; margin-top: 2px; width: 14px; height: 14px; }
.footer-disclaimer { font-size: .72rem; color: rgba(255,255,255,.4); }

.footer-contact-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 6px;
}
.footer-contact-email {
  display: block;
  font-size: .85rem;
  color: rgba(255,255,255,.8);
  margin-bottom: 20px;
  transition: var(--t);
}
.footer-contact-email:hover { color: var(--primary); }
.footer-phone {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  transition: var(--t);
}
.footer-phone:hover { color: var(--primary); }
.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  color: rgba(255,255,255,.8);
  transition: var(--t);
}
.footer-social:hover { background: var(--primary); color: #fff; }
.footer-social i { width: 18px; height: 18px; }

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
}
.footer-nav-link {
  font-size: .88rem;
  color: rgba(255,255,255,.65);
  transition: var(--t);
}
.footer-nav-link:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  text-align: center;
  font-size: .78rem;
  color: rgba(255,255,255,.35);
}

/* ── WhatsApp Float ─────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
}
.whatsapp-float a {
  display: block;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
  transition: transform .28s ease;
}
.whatsapp-float a:hover { transform: scale(1.1); }
.whatsapp-float img { width: 100%; height: 100%; object-fit: cover; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .plans-grid { grid-template-columns: repeat(2, 1fr); }
  .especialidades-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .galeria-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .section { padding-block: 64px; }
  .container { padding-inline: 20px; }

  /* Header */
  .nav-menu {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--header-bg);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 20px 24px;
    gap: 4px;
    display: none;
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
  }
  .nav-menu.open { display: flex; }
  .nav-link { color: var(--text); padding: 10px 14px; }
  .nav-link:hover { background: var(--primary-light); color: var(--primary-dark); }
  .btn-header { display: none; }
  .menu-toggle { display: flex; }

  /* Hero */
  .hero { min-height: 280px; }

  /* Plans */
  .plans-grid { grid-template-columns: 1fr; }
  .especialidades-grid { grid-template-columns: repeat(2, 1fr); }

  /* Compare */
  .compare-header, .compare-row { grid-template-columns: 1fr 90px 90px; }
  .compare-cell { padding: 10px 12px; font-size: .78rem; }
  .compare-header .compare-cell { font-size: .7rem; }

  /* Gallery */
  .galeria-grid { grid-template-columns: repeat(2, 1fr); }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}
