/* styles.css */

/* ============================================================
   1) FONTES (OPCIONAL)
   - Se quiser 100% offline, remova o @import
============================================================ */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&family=Great+Vibes&display=swap");

/* ============================================================
   2) VARIÁVEIS (CORES / SOMBRAS / TAMANHOS)
   - Aqui é onde você muda a identidade do site sem “quebrar” tudo
============================================================ */
:root{
  /* Azul INOVAR (base) */
  --primary-900: #1A4B6D; /* azul bem escuro */
  --primary-800: #235A7F; /* azul intermediário */
  --primary-700: #2E6C95; /* azul principal */
  --primary-500: #6F93A8; /* azul suave */

  /* Para usar rgba() sem colocar cor fixa no CSS */
  --primary-rgb: 26, 75, 109;

  /* Dourado da marca (acento) */
  --gold-600: #C9BFA7;
  --gold-500: #CAA46A;

  /* Base do site */
  --bg: #ffffff;
  --cream: #f6f2ef;
  --mint: #e8f1e7; /* fundo claro da seção de tratamentos */
  --text: #202428;
  --muted: #5b6670;
  --white: #ffffff;

  /* “apelidos” que o CSS usa (assim não precisa renomear tudo) */
  --brown-900: var(--primary-900);
  --brown-800: var(--primary-800);
  --brown-700: var(--primary-700);
  --brown-500: var(--primary-500);

  /* 3 tons para a faixa das 3 colunas */
  --band-1: var(--primary-900);
  --band-2: var(--primary-800);
  --band-3: var(--primary-700);

  /* Sombras e arredondamentos */
  --shadow-sm: 0 6px 18px rgba(0,0,0,.10);
  --shadow-md: 0 10px 28px rgba(0,0,0,.16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;

  /* Largura padrão do site */
  --container: 1120px;

  /* Fontes */
  --font-sans: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-script: "Great Vibes", cursive;

  /* Altura do header fixo */
  --header-h: 72px;
}

/* ============================================================
   3) RESET / PADRÕES GERAIS (para tudo ficar consistente)
============================================================ */
*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}
img{ max-width: 100%; height: auto; display: block; }
a{ color: inherit; text-decoration: none; }
button{ font: inherit; }

.container{
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

/* ============================================================
   4) HEADER (TOPO): cor azul + menu
============================================================ */
.header{
  background: var(--brown-900);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.header__inner{
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 18px;
}

/* Logo / marca */
.brand{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand__mark{
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.55);
  display: grid;
  place-items: center;
  text-transform: lowercase;
  font-weight: 600;
  letter-spacing: .5px;
}

.brand__text{ display: grid; line-height: 1.05; }
.brand__name{ font-weight: 600; font-size: 14px; letter-spacing: .2px; }
.brand__tag{
  font-family: var(--font-script);
  font-size: 18px;
  color: rgba(255,255,255,.85);
  transform: translateY(-2px);
}

/* Menu (desktop) */
.nav{ margin-left: auto; }
.nav__list{
  list-style: none;
  display: flex;
  gap: 18px;
  padding: 0;
  margin: 0;
  align-items: center;
}
.nav__link{
  font-size: 13px;
  color: rgba(255,255,255,.88);
  padding: 8px 6px;
  border-radius: 10px;
  transition: background .2s ease, color .2s ease;
}
.nav__link:hover{
  background: rgba(255,255,255,.10);
  color: #fff;
}
.header__cta{
  margin-left: 10px;
  white-space: nowrap;
}

/* ============================================================
   5) BOTÕES (estilo geral + variações)
============================================================ */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  user-select: none;
}
.btn:active{ transform: translateY(1px); }

/* Botão “transparente” no header */
.btn--ghost{
  border-color: rgba(255,255,255,.45);
  color: #fff;
  background: transparent;
}
.btn--ghost:hover{
  border-color: rgba(255,255,255,.75);
  box-shadow: 0 10px 22px rgba(0,0,0,.22);
  transform: translateY(-1px);
}
.btn--ghost-solid{ background: rgba(255,255,255,.10); }

/* Botão “claro” (menu mobile) */
.btn--primary{
  background: #fff;
  color: var(--brown-900);
  border-color: #fff;
}

/* Botão “outline” do hero */
.btn--outline{
  background: transparent;
  border-color: rgba(var(--primary-rgb), .25);
  color: var(--brown-900);
  padding: 12px 18px;
  box-shadow: 0 8px 18px rgba(0,0,0,.08);
}
.btn--outline:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   6) MENU MOBILE (HAMBÚRGUER + DRAWER)
============================================================ */
.nav-toggle{
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
}
.nav-toggle__bar{
  display: block;
  width: 18px;
  height: 2px;
  background: rgba(255,255,255,.92);
  margin: 4px auto;
  border-radius: 2px;
}

/* Gaveta do menu */
.mobile-drawer{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 80;
}
.mobile-drawer.is-open{ display: block; }
.mobile-drawer__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
  border: 0;
}
.mobile-drawer__panel{
  position: absolute;
  right: 12px;
  top: 12px;
  width: min(360px, calc(100% - 24px));
  background: #fff;
  color: var(--text);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transform-origin: top right;
  animation: pop .16s ease-out;
}
@keyframes pop{
  from{ transform: scale(.96); opacity: .6; }
  to{ transform: scale(1); opacity: 1; }
}
.mobile-drawer__top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.mobile-drawer__title{ font-weight: 600; }
.mobile-drawer__close{
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  width: 36px; height: 36px;
  border-radius: 10px;
}
.mobile-drawer__close:hover{ background: rgba(0,0,0,.06); }

.mobile-drawer__list{
  list-style: none;
  margin: 0;
  padding: 10px 10px 6px;
  display: grid;
  gap: 6px;
}
.mobile-drawer__list a{
  display: block;
  padding: 12px 12px;
  border-radius: 12px;
  color: var(--brown-900);
  background: rgba(var(--primary-rgb), .06);
}
.mobile-drawer__list a:hover{ background: rgba(var(--primary-rgb), .10); }
.mobile-drawer__cta{
  margin: 10px;
  border-radius: 16px;
  padding: 12px 14px;
}

/* ============================================================
   7) HERO (primeira sessão)
============================================================ */
.hero{
  background: var(--cream);
  position: relative;
}
.hero__inner{
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 30px;
  align-items: center;
  padding: 34px 0 24px;
}
.hero__copy{ padding: 14px 0; }
.hero__title{
  margin: 0 0 10px;
  font-size: 34px;
  letter-spacing: .2px;
  color: var(--brown-900);
}
.hero__script{
  display: block;
  font-family: var(--font-script);
  font-size: 44px;
  color: var(--gold-600); /* dourado “assinatura” */
  line-height: 1;
  margin-top: 2px;
}
.hero__subtitle{
  margin: 0 0 18px;
  color: var(--muted);
  max-width: 42ch;
  font-size: 14px;
}
.hero__media{ display: flex; justify-content: flex-end; }
.hero__img{
  width: min(420px, 100%);
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 16px 30px rgba(0,0,0,.12);
}

/* ============================================================
   8) FAIXA 3 COLUNAS (3 tons de azul)
============================================================ */
.features{
  background: var(--band-2);
  color: #fff;
}
.features__inner{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 0;
}
.feature{
  text-align: center;
  padding: 22px 16px;
}
.feature:nth-child(1){ background: var(--band-1); }
.feature:nth-child(2){ background: var(--band-2); }
.feature:nth-child(3){ background: var(--band-3); }
.feature + .feature{ border-left: 1px solid rgba(255,255,255,.12); }

.feature__icon{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  margin: 0 auto 10px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
}
.feature__icon img{ width: 22px; height: 22px; opacity: .92; }
.feature__title{
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
}
.feature__text{
  margin: 0;
  font-size: 12px;
  color: rgba(255,255,255,.78);
  max-width: 36ch;
  margin-inline: auto;
}

/* ============================================================
   9) TÍTULOS DE SESSÃO (Sobre/Tratamentos etc.)
============================================================ */
.section-head{ padding: 18px 0 6px; }
.section-title{
  margin: 0;
  font-size: 18px;
  color: var(--brown-900);
}
.section-title--center{ text-align: center; }
.section-lead{
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.section-lead--center{ text-align: center; }

/* ============================================================
   10) SOBRE NÓS
============================================================ */
.about{ padding: 28px 0 18px; }
.about__inner{
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 28px;
  align-items: start;
}
.about__media img{
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.about__content p{
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* ============================================================
   11) TRATAMENTOS (grade)
============================================================ */
.treatments{
  background: var(--mint);
  padding: 22px 0 30px;
}
.treatments__grid{
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px 22px;
}
.tcard{
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  align-items: start;
}
.tcard__icon{
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(var(--primary-rgb), .08);
  border: 1px solid rgba(var(--primary-rgb), .14);
  display: grid;
  place-items: center;
}
.tcard__icon img{ width: 22px; height: 22px; opacity: .9; }
.tcard__title{
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--brown-900);
}
.tcard__text{
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--muted);
}

/* ============================================================
   12) DEPOIMENTOS
============================================================ */
.testimonials{ padding: 26px 0 18px; }
.testimonials__grid{
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.review{
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: var(--radius-md);
  padding: 14px 14px 12px;
  box-shadow: 0 10px 22px rgba(0,0,0,.06);
}
.review__top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.review__badge{
  font-size: 12px;
  font-weight: 600;
  color: var(--brown-900);
}
.review__stars{ color: var(--gold-500); letter-spacing: 1px; font-size: 12px; }
.review__text{
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
}
.review__author{
  margin: 0;
  font-size: 12px;
  color: rgba(var(--primary-rgb), .75);
}

/* ============================================================
   13) PROFISSIONAIS
============================================================ */
.team{ padding: 18px 0 26px; }
.team__grid{
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.person{
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(0,0,0,.08);
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
}
.person__img{
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.person__meta{
  padding: 10px 10px 12px;
  background: rgba(var(--primary-rgb), .10);
  text-align: center;
}
.person__name{
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--brown-900);
}
.person__role{
  margin: 4px 0 0;
  font-size: 11px;
  color: rgba(var(--primary-rgb), .72);
}

/* ============================================================
   14) ESTRUTURA (fotos da clínica)
============================================================ */
.structure{ padding: 10px 0 26px; }
.structure__grid{
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.structure__item{
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 10px 18px rgba(0,0,0,.06);
}
.structure__item img{
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ============================================================
   15) CTA (faixa azul com botão)
============================================================ */
.cta{
  background: var(--brown-700);
  color: #fff;
  padding: 22px 0;
}
.cta__inner{ text-align: center; }
.cta__title{
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}
.cta__text{
  margin: 8px 0 14px;
  color: rgba(255,255,255,.78);
  font-size: 13px;
}

/* ============================================================
   16) PLANOS (logos)
============================================================ */
.plans{ padding: 22px 0 18px; }
.plans__grid{
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
  align-items: center;
}
.plan-logo{
  border: 1px solid rgba(0,0,0,.07);
  border-radius: 12px;
  padding: 10px;
  background: #fff;
  display: grid;
  place-items: center;
}
.plan-logo img{
  max-height: 22px;
  width: auto;
  opacity: .92;
}

/* ============================================================
   17) MAPA + RODAPÉ
============================================================ */
.contact__map{
  width: 100%;
  height: 320px;
  border-top: 1px solid rgba(0,0,0,.06);
}
.contact__map iframe{
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.contact__footer{
  background: var(--brown-900);
  color: #fff;
}
.footer__inner{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 22px 0;
}
.footer__title{
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
}
.footer__text{
  margin: 0;
  font-size: 12px;
  color: rgba(255,255,255,.78);
  line-height: 1.6;
}
.footer__link{
  color: rgba(255,255,255,.90);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer__bottom{ border-top: 1px solid rgba(255,255,255,.10); }
.footer__bottom-inner{
  padding: 12px 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255,255,255,.72);
  font-size: 12px;
}
.footer__tiny-link{
  color: rgba(255,255,255,.86);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================================================
   18) BOTÃO FLUTUANTE WHATSAPP
============================================================ */
.wa-float{
  position: fixed;
  right: 16px;
  bottom: 18px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 26px rgba(0,0,0,.24);
  z-index: 90;
  transition: transform .15s ease;
}
.wa-float:hover{ transform: translateY(-2px); }
.wa-float__icon{ font-size: 18px; font-weight: 700; }

/* ============================================================
   19) RESPONSIVO (tablet/celular)
============================================================ */
@media (max-width: 980px){
  /* Some menu desktop e aparece hambúrguer */
  .nav{ display: none; }
  .header__cta{ display: none; }
  .nav-toggle{ display: inline-block; }

  /* Hero vira uma coluna */
  .hero__inner{ grid-template-columns: 1fr; padding: 26px 0 20px; }
  .hero__media{ justify-content: center; }
  .hero__title{ text-align: center; }
  .hero__subtitle{ margin-inline: auto; text-align: center; }
  .hero__copy{ text-align: center; }

  /* faixa 3 tons vira “empilhada” */
  .features__inner{ grid-template-columns: 1fr; gap: 0; }
  .feature + .feature{ border-left: 0; border-top: 1px solid rgba(255,255,255,.12); }

  .about__inner{ grid-template-columns: 1fr; }
  .treatments__grid{ grid-template-columns: repeat(2, 1fr); }

  .testimonials__grid{ grid-template-columns: 1fr; }
  .team__grid{ grid-template-columns: repeat(2, 1fr); }
  .structure__grid{ grid-template-columns: repeat(2, 1fr); }
  .plans__grid{ grid-template-columns: repeat(4, 1fr); }

  .footer__inner{ grid-template-columns: 1fr; }
  .footer__bottom-inner{ flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px){
  .container{ width: min(var(--container), calc(100% - 28px)); }
  .hero__title{ font-size: 30px; }
  .hero__script{ font-size: 40px; }

  .treatments__grid{ grid-template-columns: 1fr; }
  .team__grid{ grid-template-columns: 1fr; }
  .plans__grid{ grid-template-columns: repeat(2, 1fr); }

  .wa-float{ right: 12px; bottom: 12px; }
}
