:root{
  --bg:#f7efe6;
  --surface:#fffaf4;
  --surface2:#ffffff;
  --text:#2f2623;
  --muted:#6a5b55;
  --brand:#8b1e2d;        /* vinho (logo) */
  --brand2:#caa97d;       /* bege dourado */
  --accent:#2f6f8f;       /* azul suave */
  --accent2:#2f7a5b;      /* verde suave */
  --line:#ead7c8;
  --shadow:0 18px 55px rgba(30,20,18,.12);
  --radius:18px;
  --max:1120px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:
    radial-gradient(900px 550px at 10% -10%, rgba(202,169,125,.55), transparent 55%),
    radial-gradient(900px 520px at 90% 0%, rgba(139,30,45,.16), transparent 55%),
    radial-gradient(900px 520px at 80% 90%, rgba(47,111,143,.10), transparent 55%),
    linear-gradient(180deg, #fff, var(--bg));
  line-height:1.65;
}

a{color:inherit}
img{max-width:100%;display:block}
.container{max-width:var(--max);margin:0 auto;padding:0 20px}

.header{
  position:sticky;top:0;z-index:20;
  background:rgba(247,239,230,.92);
  border-bottom:1px solid var(--line);
  backdrop-filter: blur(10px);
}
.header__row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 0}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none}
.brand img{
  width:44px;height:44px;border-radius:12px;object-fit:contain;
  background:var(--surface2);
  border:1px solid var(--line);
  padding:6px;
}
.brand strong{display:block;font-size:16px;color:var(--brand);letter-spacing:.2px}
.brand small{display:block;font-size:12px;color:var(--muted);margin-top:2px}

.nav{position:relative}
.nav__toggle{
  display:none;
  background:var(--surface2);
  border:1px solid var(--line);
  padding:10px 12px;border-radius:14px;
  color:var(--text);
}
.nav__list{list-style:none;margin:0;padding:0;display:flex;gap:10px;align-items:center}
.nav__link{
  text-decoration:none;
  color:var(--muted);
  padding:10px 12px;border-radius:14px;
}
.nav__link:hover{background:rgba(255,255,255,.75);color:var(--text)}
.nav__cta{
  text-decoration:none;
  padding:10px 14px;border-radius:14px;
  font-weight:900;color:#fff;
  background:linear-gradient(135deg,var(--brand), #b13b4a 55%, var(--brand2));
  box-shadow:0 14px 28px rgba(139,30,45,.20);
}

.section{padding:9px 0}
.section--soft{
  background:
    radial-gradient(700px 320px at 20% 10%, rgba(47,122,91,.12), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.65), rgba(255,250,244,.30));
  border-top:1px solid rgba(234,215,200,.45);
  border-bottom:1px solid rgba(234,215,200,.45);
}
.section--paper{
  background:
    radial-gradient(700px 320px at 80% 20%, rgba(139,30,45,.10), transparent 55%),
    linear-gradient(180deg, rgba(255,250,244,.92), rgba(255,255,255,.55));
}

.kicker{
  display:inline-flex;align-items:center;gap:8px;
  background:rgba(255,255,255,.70);
  border:1px solid var(--line);
  padding:7px 12px;border-radius:999px;
  color:var(--muted);
  font-size:12px;
}

.hero{padding:54px 0 40px}
.hero__grid{display:grid;grid-template-columns:1.1fr .9fr;gap:18px;align-items:stretch}
h1{font-size:44px;line-height:1.12;margin:14px 0 12px}
h2{font-size:30px;margin:0 0 12px}
h3{font-size:20px;margin:0 0 8px}
.lead{color:var(--muted);font-size:16px;max-width:75ch}

.actions{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0 0}
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:12px 16px;border-radius:14px;
  font-weight:900;text-decoration:none;
  border:1px solid var(--line);
  background:rgba(255,255,255,.75);
}
.btn--primary{
  border:none;color:#fff;
  background:linear-gradient(135deg,var(--brand), #b13b4a 55%, var(--brand2));
}
.btn--ghost{
  color:var(--brand);
  border-color:rgba(139,30,45,.25);
  background:rgba(255,255,255,.55);
}
.btn--ghost:hover{background:rgba(255,255,255,.85)}
.btn--link{border-color:transparent;background:transparent;color:var(--brand);padding:10px 0}

.heroCard{
  background:var(--surface2);
  border:1px solid var(--line);
  border-radius:22px;
  overflow:hidden;
  box-shadow:var(--shadow);
  display:flex;flex-direction:column;
}
.heroCard .photo{
  height:320px;
  object-fit:cover;
  width:100%;
}
.heroCard .pad{padding:16px}
.heroCard .mini{
  display:grid;gap:8px;
  color:var(--muted);
  font-size:14px;
}
.heroCard .mini strong{color:var(--text)}

.badges{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}
.badge{
  background:rgba(202,169,125,.18);
  border:1px solid rgba(234,215,200,.85);
  color:var(--muted);
  padding:7px 10px;border-radius:999px;
  font-size:12px;
}
.badge--mint{background:rgba(47,122,91,.10)}
.badge--blue{background:rgba(47,111,143,.10)}

.grid4{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:16px}
.card{
  background:var(--surface2);
  border:1px solid var(--line);
  border-radius:20px;
  padding:18px;
  box-shadow:0 12px 32px rgba(30,20,18,.06);
}
.card p{margin:0;color:var(--muted)}
.icon{
  width:42px;height:42px;border-radius:14px;
  display:grid;place-items:center;
  background:rgba(139,30,45,.10);
  border:1px solid rgba(234,215,200,.95);
  margin-bottom:10px;
  font-weight:900;color:var(--brand);
}

.team{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:14px}
.person{background:var(--surface2);border:1px solid var(--line);border-radius:18px;padding:14px}
.person strong{display:block}
.person span{display:block;margin-top:4px;color:var(--muted);font-size:13px}

.two{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:16px}

.table{
  width:100%;
  border-collapse:separate;border-spacing:0;
  border:1px solid var(--line);
  border-radius:18px;
  overflow:hidden;
  background:var(--surface2);
}
.table th,.table td{padding:10px 12px;text-align:left;border-bottom:1px solid var(--line)}
.table th{
  background:linear-gradient(90deg, rgba(202,169,125,.28), rgba(139,30,45,.10));
  color:var(--text)
}
.table td{color:var(--muted)}
.table tr:last-child th,.table tr:last-child td{border-bottom:none}

.map{border:1px solid var(--line);border-radius:18px;overflow:hidden;background:var(--surface2);min-height:280px}
.map iframe{width:100%;height:280px;border:0;display:block}

.callout{
  margin-top:14px;
  background:linear-gradient(135deg, rgba(202,169,125,.22), rgba(47,122,91,.10), rgba(255,255,255,.75));
  border:1px solid var(--line);
  border-radius:22px;
  padding:18px;
  display:flex;align-items:center;justify-content:space-between;gap:12px;
}
.callout p{margin:0;color:var(--muted)}
.callout strong{color:var(--text)}

.breadcrumbs{padding:18px 0 0}
.breadcrumbs a{color:var(--muted);text-decoration:none}
.breadcrumbs a:hover{text-decoration:underline}
.breadcrumbs span{color:var(--muted)}

.specialists{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:14px}
.spec{
  background:var(--surface2);
  border:1px solid var(--line);
  border-radius:18px;
  padding:14px;
}
.spec .tag{
  display:inline-block;
  margin-top:8px;
  background:rgba(202,169,125,.20);
  border:1px solid var(--line);
  color:var(--muted);
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
}

.footer{
  padding:28px 0;
  border-top:1px solid var(--line);
  background:rgba(255,255,255,.70);
}
.footer__row{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;color:var(--muted);font-size:13px}

.fab{
  position:fixed;right:16px;bottom:16px;z-index:30;
  padding:12px 14px;border-radius:999px;text-decoration:none;
  background:linear-gradient(135deg,var(--brand), #b13b4a 55%, var(--brand2));
  color:#fff;font-weight:900;
  box-shadow:0 18px 38px rgba(139,30,45,.24);
}

@media (max-width: 980px){
  .hero__grid{grid-template-columns:1fr}
  h1{font-size:38px}
  .grid4{grid-template-columns:repeat(2,1fr)}
  .team{grid-template-columns:repeat(2,1fr)}
  .specialists{grid-template-columns:1fr}
}
@media (max-width: 680px){
  .nav__toggle{display:inline-flex}
  .nav__list{
    display:none;position:absolute;right:0;top:54px;
    width:min(320px, calc(100vw - 36px));
    flex-direction:column;align-items:stretch;
    background:rgba(247,239,230,.98);
    border:1px solid var(--line);
    border-radius:18px;
    padding:10px;
    box-shadow:var(--shadow);
  }
  .nav__list.is-open{display:flex}
  .two{grid-template-columns:1fr}
}


/* === AJUSTES V4 === */

/* Logo maior (logo horizontal) */
.brand img{
  width:160px;
  height:44px;
  padding:0;
  border:none;
  background:transparent;
  border-radius:0;
  object-fit:contain;
}
@media(max-width:680px){
  .brand img{width:132px;height:38px}
}

/* Seções com "colunas" mesclando branco + vinho */
.section--split{
  padding:0;
  background: linear-gradient(90deg,
    rgba(255,255,255,.92) 0%,
    rgba(255,255,255,.92) 50%,
    rgba(139,30,45,.92) 50%,
    rgba(139,30,45,.92) 100%);
  border-top:1px solid rgba(234,215,200,.55);
  border-bottom:1px solid rgba(234,215,200,.55);
}
.section--split .container{
  padding:56px 20px;
}
.split{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:26px;
  align-items:start;
}
.split__left{padding-right:10px;}
.split__right{padding-left:10px;color:#fff;}
.split__right .lead,
.split__right p,
.split__right li{color:rgba(255,255,255,.90)}
.split__right .badge{border-color:rgba(255,255,255,.22);color:rgba(255,255,255,.92)}
.split__right .badge--mint{background:rgba(47,122,91,.22)}
.split__right .badge--blue{background:rgba(47,111,143,.22)}
.split__right .btn{
  background:rgba(255,255,255,.12);
  border-color:rgba(255,255,255,.24);
  color:#fff;
}
.split__right .btn--primary{
  background:linear-gradient(135deg,#ffffff,#fff7ef 60%, var(--brand2));
  color:var(--brand);
  border:none;
}
@media(max-width:980px){
  .section--split{
    background: linear-gradient(180deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.92) 52%, rgba(139,30,45,.92) 52%, rgba(139,30,45,.92) 100%);
  }
  .split{grid-template-columns:1fr}
  .split__right{padding-left:0}
  .split__left{padding-right:0}
}

/* Faixa de especialistas no topo das páginas de atendimento */
.specbar{
  margin:18px 0 0;
  border:1px solid var(--line);
  background:linear-gradient(135deg, rgba(202,169,125,.24), rgba(255,255,255,.78));
  border-radius:22px;
  padding:14px;
}
.specbar__title{margin:0 0 10px;font-size:16px;color:var(--brand);font-weight:900}
.specbar__grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;}
.specbar__item{
  background:rgba(255,255,255,.80);
  border:1px solid rgba(234,215,200,.9);
  border-radius:16px;
  padding:12px;
}
.specbar__item strong{display:block}
.specbar__item span{display:block;margin-top:4px;color:var(--muted);font-size:12px}
@media(max-width:980px){
  .specbar__grid{grid-template-columns:1fr}
}

/* Página Equipe */
.profile-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:14px}
.profile{
  background:var(--surface2);
  border:1px solid var(--line);
  border-radius:18px;
  padding:16px;
  box-shadow:0 10px 26px rgba(30,20,18,.06);
}
.profile .role{color:var(--muted);margin-top:4px}
.profile .reg{
  margin-top:10px;
  display:inline-block;
  background:rgba(202,169,125,.20);
  border:1px solid var(--line);
  padding:6px 10px;
  border-radius:999px;
  color:var(--muted);
  font-size:12px;
}
.profile .note{margin-top:10px;color:var(--muted);font-size:13px}
@media(max-width:980px){
  .profile-grid{grid-template-columns:1fr}
}


/* === AJUSTES V5 (logo + responsivo + vídeo) === */
html, body { overflow-x:hidden; }

/* Logo maior e responsiva */
.header .brand { gap:14px; }
.header .brand img{
  height:80px !important;
  max-height:64px !important;
}
/*
@media(max-width:900px){
  .header .brand img{ width:190px !important; max-height:54px !important; }
}
@media(max-width:520px){
  .header .brand img{ width:150px !important; max-height:44px !important; }
}*/

/* Evitar "vazar" a seção split no desktop/mobile */
.section--split{
  width:100%;
  overflow:hidden;
}
.section--split .container{
  max-width:1080px;
  margin:0 auto;
}

/* Garantir que o split não passe da borda em telas menores */
.split, .split__left, .split__right{ min-width:0; }
.split__right ul{ padding-left:18px; }

/* Bloco de vídeo responsivo (placeholder no index) */
.video-box{
  margin-top:14px;
  border:1px dashed rgba(139,30,45,.35);
  background:rgba(255,255,255,.70);
  border-radius:18px;
  padding:12px;
}
.video-box__title{
  margin:0 0 10px;
  font-weight:900;
  color:var(--brand);
}
.video-embed{
  position:relative;
  width:100%;
  /* vídeo é vertical (Reels/Shorts): manter proporção alta para não ficar "minúsculo" */
  aspect-ratio:9/16;
  border-radius:14px;
  overflow:hidden;
  background:#000;
}
.video-embed video, .video-embed iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
}



/* === FIX: Logo padrão em todas as páginas (sem encolher) === */
.brand img{
  flex: 0 0 auto;
  height: 56px !important;
  width: auto !important;
  max-width: 340px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  object-fit: contain;
}
@media(max-width:900px){
  .brand img{height:50px !important; max-width:280px !important;}
}
@media(max-width:520px){
  .brand img{height:42px !important; max-width:220px !important;}
}

/* === Equipe: foto do profissional === */
.profile .avatar{
  width:100%;
  height:240px;
  object-fit:contain;
  background: rgba(255,255,255,.75);
  border:1px solid var(--line);
  border-radius:16px;
  padding:10px;
  margin-bottom:12px;
}
@media(max-width:680px){
  .profile .avatar{height:220px}
}



/* =========================
   FIXES V8 (logo + vídeo + responsivo geral)
   ========================= */

/* Logo padrão (igual em todas as páginas) */
.header .brand img{
  width:auto !important;
  height:142px !important;
  max-height:162px !important;
  max-width:340px !important;
  padding:0 !important;
  border:none !important;
  background:transparent !important;
  border-radius:0 !important;
  object-fit:contain !important;
}
@media (max-width: 900px){
  .header .brand img{ height:48px !important; max-height:48px !important; max-width:280px !important; }
}
@media (max-width: 520px){
  .header .brand img{ height:40px !important; max-height:40px !important; max-width:220px !important; }
}

/* Evitar qualquer overflow/corte no iPhone */
.container{min-width:0}
.hero__grid, .split, .two, .grid4, .team, .specialists, .profile-grid{min-width:0}
img, video, iframe{max-width:100%; height:auto}

/* Badges sempre quebram corretamente e não "empurram" o layout */
.badges{gap:10px}
.badge{max-width:100%; white-space:nowrap}

/* Vídeo (em destaque) no tamanho do mock (largura total da coluna) */
.video-box{
  margin-top:14px;
  border:1px solid rgba(234,215,200,.95);
  background:rgba(255,255,255,.72);
  border-radius:22px;
  padding:14px;
  box-shadow:0 12px 32px rgba(30,20,18,.06);
}
.video-box__title{
  margin:0 0 10px;
  font-weight:900;
  color:var(--brand);
}
.video-embed{
  width:100%;
  aspect-ratio:9/16;   /* vídeo vertical */
  border-radius:18px;
  overflow:hidden;
  background:#000;
}
.video-embed video, .video-embed iframe{
  width:100% !important;
  height:100% !important;
  object-fit:cover;
  display:block;
}

/* Ajuste do espaçamento nas páginas de atendimento (evita "barra" com muito espaço) */
body.page-atendimento .section.section--paper:first-of-type{
  padding-bottom:28px;
}


/* Fotos na página Equipe */
.profile .avatar{
  width:100%;
  height:260px;
  object-fit:contain;
  border-radius:16px;
  background:rgba(247,239,230,.55);
  border:1px solid var(--line);
  margin-bottom:12px;
}


/* === AJUSTES FINAIS === */

/* Logo sempre grande e visível */
.brand img{
  height:64px !important;
  width:auto !important;
  opacity:1 !important;
}

/* Vídeo em destaque no formato correto */
.video-wrapper, .video-embed{
  width:100%;
  aspect-ratio:16/9;
}
.video-wrapper video, .video-embed video{
  width:100%;
  height:100%;
  object-fit:cover;
}

/* Callout "Quer agendar" nunca ultrapassa a tela */
.callout, .quer-agendar{
  max-width:1080px;
  margin:20px auto;
  box-sizing:border-box;
}

/* Instagram icon */
.social-instagram{
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.social-instagram img{
  width:40px;
  height:40px;
}
/* === FIX MOBILE: cards não podem cortar === */

/* garante que itens do grid possam encolher sem vazar */
.grid4 > *, .team > *, .two > *, .specialists > *, .profile-grid > *{
  min-width: 0;
  max-width: 100%;
}

/* no celular (telas bem estreitas), 1 coluna resolve o corte */
@media (max-width: 520px){
  .grid4{
    grid-template-columns: 1fr !important;
  }

  /* opcional: um tiquinho menos de padding para caber mais confortável */
  .container{ padding: 0 16px; }
  .card{ padding: 16px; }
}

/* === FIX DEFINITIVO: texto distribuído corretamente === */

.section--split .split{
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* garante que texto não "vaze" */
.split__left,
.split__right{
  min-width: 0;
}

/* se algum texto estiver direto na section */
.section--split .container > *{
  max-width: 100%;
}

/* mobile continua 1 coluna (como já está) */
@media (max-width: 980px){
  .section--split .split{
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   EQUIPE — AVATAR SEM CORTAR (preenche o bloco com contain)
   Cole este bloco NO FINAL do style.css
   ========================================================= */

/* Card da equipe: imagem em “caixa” com proporção fixa */
.profile-grid .profile .avatar-box{
  width: 100%;
  aspect-ratio: 3 / 4; /* cartaz vertical; se quiser mais “alto”: 4/5 */
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 12px;

  /* fundo bonito pra disfarçar sobras (quando a proporção da arte variar) */
  background:
    radial-gradient(120% 90% at 50% 10%, rgba(202,169,125,.28), rgba(247,239,230,.85)) !important;
}

/* A imagem ocupa a caixa inteira, mas SEM cortar */
.profile-grid .profile .avatar-box .avatar{
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important; /* mantém texto/arte inteira */
  display: block;
}

/* Opcional: melhora a leitura do card quando a imagem é muito clara */
.profile-grid .profile{
  overflow: hidden;
}


