/* ====== PALETA CAMAROTE (a partir da logomarca) ====== */
:root{
  /* Pretos / cinzas do fundo */
  --ink-1000:#0a0a0a;        /* fundo principal (preto) */
  --ink-900:#0e0f10;
  --ink-800:#141617;

  /* Creme/Dourado do laço e estrelas */
  --cream:#efe5cf;           /* creme claro (texto e detalhes) */
  --gold:#d6b36a;            /* dourado principal */
  --gold-2:#e6cb8b;          /* dourado claro para brilho */

  /* Tricolor inspirado na faixa da logo */
  --tri-green:#009246;
  --tri-white:#f2f3f2;       /* branco “off” para combinar com o creme */
  --tri-red:#ce2b37;

  /* Texto */
  --text-100:#f6f7f8;
  --text-200:#e6e9ec;
  --muted-400:#a7b0b8;

  /* Radius/Sombra */
  --radius:22px;
  --shadow:0 16px 40px rgba(0,0,0,.35);
  --soft-border:1px solid rgba(255,255,255,.08);

  /* Navbar */
  --nav-h:72px;

  /* === ADIÇÕES (para robustez do mobile) === */
  --brand-950: var(--ink-1000);
  --brand-900: var(--ink-900);
  --brand-850: #121416;
  --brand-800: var(--ink-800);
  --brand-700: #1a1d1f;
  --accent: var(--gold);
  --safe-bottom: 0px; /* será atualizado por JS em iOS */
}

/* Base */
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{font-family:'Montserrat',system-ui,-apple-system,Segoe UI,Roboto,'Helvetica Neue',Arial,'Noto Sans','Liberation Sans',sans-serif}
.bg-base{
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(217,164,65,.08), transparent 60%),
    radial-gradient(900px 600px at 95% 10%, rgba(217,164,65,.06), transparent 60%),
    linear-gradient(180deg, var(--brand-950), var(--brand-850));
  color: var(--text-100);
}
.section{ padding: clamp(2rem, 4vw, 3.5rem) 0; }
.rounded-4{ border-radius: var(--radius) !important; }
.border-soft{ border: var(--soft-border); }
.shadow-soft{ box-shadow: var(--shadow); }
img{ max-width:100%; height:auto }

/* Navbar premium */
.nav-premium{
  --bs-navbar-color: var(--text-200); --bs-navbar-hover-color:#fff; --bs-navbar-brand-color:#fff; --bs-navbar-brand-hover-color:#fff;
  height: var(--nav-h); transition: background .25s ease, box-shadow .25s ease, border-color .25s ease;
  background: transparent; border-bottom: 1px solid transparent;
}
.nav-premium.scrolled{ background: rgba(17,19,21,.9); backdrop-filter: blur(8px); border-bottom-color: rgba(255,255,255,.06); box-shadow: var(--shadow); }
.brand-dot{ width:.55rem; height:.55rem; border-radius:999px; background: var(--accent); display:inline-block; }
.uline{ position:relative; font-weight:600; opacity:.95; padding:.5rem .2rem; }
.uline::after{ content:""; position:absolute; left:0; bottom:0; height:2px; width:0; background: var(--accent); transition: width .25s ease; }
.uline:hover::after,.uline:focus::after,.uline.active::after{ width:100%; }
.btn-ghost{ border:1px solid rgba(255,255,255,.35); color:#fff; background:transparent; border-radius:14px; }
.btn-ghost:hover{ background:rgba(255,255,255,.08); }

/* Offcanvas */
.oc-premium{ background: linear-gradient(180deg, var(--brand-800), var(--brand-900)); color: var(--text-100); border-left:1px solid rgba(255,255,255,.06); }
.oc-premium .nav-link{ padding:.75rem 0; border-bottom:1px dashed rgba(255,255,255,.08) }
.oc-premium .nav-link:last-child{ border-bottom:none }

/* Glass + hero + cards */
.glass{ background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03)); backdrop-filter: blur(8px); border: var(--soft-border); }
.hx-gradient{ background: linear-gradient(90deg, #fff, var(--accent)); -webkit-background-clip:text; background-clip:text; color:transparent }
.hero-card{
  position:relative; overflow:hidden;
  background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.65)), var(--bg-hero, transparent);
  border: var(--soft-border); box-shadow: var(--shadow);
}
.hero-card::before{ content:""; position:absolute; inset:0; pointer-events:none;
  background: radial-gradient(400px 200px at 0% 0%, rgba(217,164,65,.22), transparent 40%); mix-blend-mode: screen; }

/* Galeria */
.gallery-card{ background: linear-gradient(180deg, var(--brand-700), var(--brand-800)); border: var(--soft-border); overflow:hidden; transition: transform .25s ease, box-shadow .25s ease; }
.gallery-card img{ aspect-ratio:1/1; object-fit:cover; display:block; transition: transform .35s ease, opacity .35s ease; }
.gallery-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow); }
.gallery-card:hover img{ transform: scale(1.05); opacity:.95; }

/* Vídeo */
.frame-vid{ border: var(--soft-border); box-shadow: var(--shadow); background: linear-gradient(180deg, var(--brand-800), var(--brand-900)); }

/* Features */
.feature-tile{ background: linear-gradient(180deg, var(--brand-700), var(--brand-800)); border: var(--soft-border); border-radius: 14px; padding: .9rem .95rem; }
.ft-bullet{ width:10px; height:10px; border-radius:999px; background:var(--accent); display:inline-block; margin-right:.5rem; vertical-align:middle }

/* Botões & detalhes */
.btn{ border-radius:14px }
.btn-glow{ position:relative; overflow:hidden; border-color: rgba(255,255,255,.25); }
.btn-glow::after{
  content:""; position:absolute; inset:-2px;
  background: radial-gradient(200px 100px at -10% -30%, rgba(255,255,255,.15), transparent 40%), radial-gradient(300px 140px at 120% 130%, rgba(217,164,65,.18), transparent 40%);
  opacity:0; transition: opacity .25s ease;
}
.btn-glow:hover::after{ opacity:.8 }
.hr-soft{ border:0; height:1px; background:linear-gradient(90deg, transparent, rgba(255,255,255,.14), transparent); margin: 1rem 0 0; }

/* Footer */
.footer-premium{ background: linear-gradient(180deg, var(--brand-800), var(--brand-900)); border-top:1px solid rgba(255,255,255,.06); color: var(--text-200); }
.footer-premium .sep{ width:80px; height:2px; background:var(--accent); border-radius:999px; margin:.5rem auto 0; }

/* Float buttons */
.float-btn{
  position: fixed; right:14px; width:52px; height:52px; border-radius:999px; display:grid; place-items:center; text-decoration:none;
  color:#fff; background: var(--brand-700); border:1px solid rgba(255,255,255,.08); box-shadow: var(--shadow); z-index:1040; transition: transform .2s, opacity .2s;
}
.float-btn:hover{ transform: translateY(-2px); opacity:.95 }
.float-whatsapp{ bottom:86px } .float-instagram{ bottom:24px }
.sr-only{ position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0 }

/* ===== Animações com IntersectionObserver ===== */
@media (prefers-reduced-motion:no-preference){
  [data-animate]{ opacity:0; transform: translateY(12px); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
  [data-animate].is-in{ opacity:1; transform:none; }
  [data-animate][data-animate="fade-right"]{ transform: translateX(-16px); }
  [data-animate][data-animate="fade-left"]{ transform: translateX(16px); }
  [data-animate][data-animate="zoom-in"]{ transform: scale(.96); }
  [data-animate].is-in[data-animate="zoom-in"]{ transform: scale(1); }
}
/* Mobile refinamentos */
@media (max-width: 991.98px){
  .nav-premium{ backdrop-filter:none }
}

/* Fundo base ajustado ao preto da logo */
.bg-base{
  background:
    radial-gradient(900px 520px at 10% -10%, rgba(214,179,106,.08), transparent 60%),
    radial-gradient(700px 560px at 95% 8%, rgba(214,179,106,.06), transparent 60%),
    linear-gradient(180deg, var(--ink-1000), var(--ink-800));
  color: var(--text-100);
}

/* ====== COMPONENTES CAMAROTE ====== */

/* Barra tricolor (fina, usada em navbar/rodapé/hero) */
.tri-bar{
  display:flex; height:4px; overflow:hidden; border-radius:999px; width:100%;
}
.tri-bar > i{flex:1 1 0}
.tri-bar i:nth-child(1){background:var(--tri-green)}
.tri-bar i:nth-child(2){background:var(--tri-white)}
.tri-bar i:nth-child(3){background:var(--tri-red)}
/* animação sutil ao aparecer */
@media (prefers-reduced-motion:no-preference){
  .tri-bar{ transform:scaleX(.92); opacity:.0; transition:transform .6s cubic-bezier(.2,.7,.2,1), opacity .6s }
  .tri-bar.is-in{ transform:none; opacity:1 }
}

/* Separador com 3 estrelas */
.stars-sep{
  display:flex; align-items:center; justify-content:center; gap:.75rem; margin:.75rem auto 0;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.25));
}
.stars-sep svg{ width:18px; height:18px; fill:var(--gold); opacity:.95 }
.stars-sep svg.big{ width:22px; height:22px }
@media (prefers-reduced-motion:no-preference){
  .stars-sep svg{ transform:translateY(6px); opacity:0; transition:transform .6s, opacity .6s }
  .stars-sep.is-in svg:nth-child(1){transition-delay:.00s; transform:none; opacity:1}
  .stars-sep.is-in svg:nth-child(2){transition-delay:.12s; transform:none; opacity:1}
  .stars-sep.is-in svg:nth-child(3){transition-delay:.24s; transform:none; opacity:1}
}

/* Botão dourado/creme (matching logo) */
.btn-gold{
  color:#1a1a1a; background:linear-gradient(180deg, var(--gold-2), var(--gold));
  border:1px solid rgba(0,0,0,.15);
}
.btn-gold:hover{ filter:brightness(1.06) }
.btn-cream{
  color:#1a1a1a; background:var(--cream); border:1px solid rgba(0,0,0,.15);
}
.btn-cream:hover{ filter:brightness(1.06) }

/* Navbar refinada com dourado */
.nav-premium{
  --bs-navbar-color: var(--cream);
  --bs-navbar-hover-color:#fff;
  --bs-navbar-brand-color:#fff;
  --bs-navbar-brand-hover-color:#fff;
  background:transparent;
  border-bottom:1px solid transparent;
  transition: background .25s, box-shadow .25s, border-color .25s;
}
.nav-premium.scrolled{ background: rgba(10,10,10,.92); border-bottom-color: rgba(255,255,255,.06); box-shadow: var(--shadow) }
.brand-dot{ width:.55rem; height:.55rem; border-radius:999px; background: var(--gold); display:inline-block; }
.uline::after{ background: var(--gold) }

/* Hero com brilho dourado sutil */
.hero-card::before{
  background: radial-gradient(420px 220px at 0% 0%, rgba(214,179,106,.28), transparent 40%);
}

/* Rodapé com separador e estrelas */
.footer-premium .sep{ width:90px; height:2px; background:var(--gold); border-radius:999px; margin:.5rem auto 0; }


/* ===== Ajustes finos para telas pequenas (Home) ===== */
@media (max-width: 575.98px){

  /* espaçamento da página */
  .section{ padding: 28px 0; }

  /* HERO: tipografia e respiro */
  .hero-card{ padding: 18px; border-radius: 16px; }
  .hero-card .display-6{
    font-size: 1.55rem;      /* título um pouco menor */
    line-height: 1.15;
    letter-spacing: .2px;
  }
  .hero-card .lead{ font-size: 1rem; opacity: .9; }

  /* CTA do hero: empilha e ocupa toda a largura */
  .hero-card .d-flex.gap-2 > a.btn{
    width: 100%;
    padding-top: .9rem; padding-bottom: .9rem;
  }

  /* tri-bar logo abaixo do hero, com menos margem */
  #triHero{ margin-top: .5rem !important; }

  /* Card de “Por que escolher…”: menos padding e lista compacta */
  .glass.p-4.h-100{ padding: 16px !important; }
  .glass ul li{ margin-bottom: .5rem !important; }

  /* Título da galeria e botão instagram alinhados */
  #galeria .btn.btn-sm{ padding: .45rem .75rem; }
  #galeria .d-flex.align-items-end{ gap: .75rem; }

  /* Galeria: fotos com proporção estável e altura confortável */
  .gallery-card img{
    width: 100%;
    aspect-ratio: 4/3;      /* mantém forma bonita no feed */
    object-fit: cover;
    display: block;
  }

  /* Vídeo: afasta um pouco do topo e usa bordas mais suaves */
  #video .ratio{ border-radius: 16px !important; }
  #video .glass{ padding: 16px !important; }
  #video h3{ font-size: 1.15rem; margin-bottom: .35rem; }
  #video p{ font-size: .98rem; }

  /* Botões do bloco do vídeo: empilha */
  #video .d-flex.gap-2 > a{ width: 100%; }

  /* Pequenos ajustes de sombras/bordas para ficar mais leve no mobile */
  .shadow-soft{ box-shadow: 0 8px 24px rgba(0,0,0,.28) !important; }
  .rounded-4{ border-radius: 16px !important; }
}

/* Telas médias (tablets): um leve ajuste para não “estourar” */
@media (min-width: 576px) and (max-width: 991.98px){
  .hero-card{ padding: 24px; }
  .hero-card .display-6{ font-size: 1.9rem; }
  .gallery-card img{ aspect-ratio: 16/10; object-fit: cover; }
}

/* ===== Ajustes finos — TEMPLATE SOBRE (apenas mobile) ===== */
@media (max-width: 575.98px){

  /* respiro geral */
  .section{ padding: 28px 0; }

  /* bloco "Nossa história" */
  .glass.p-4.p-md-5.shadow-soft{ padding: 18px !important; border-radius: 16px; }
  .hx-gradient, .glass h1.fw-bold{ font-size: 1.45rem; line-height: 1.15; letter-spacing: .2px; }
  .glass .lead{ font-size: 1rem; opacity: .9; }

  /* cards de features (2x2) mais compactos e clicáveis */
  .feature-tile{
    padding: 12px 14px; border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,.22);
  }
  .feature-tile h6{ font-size: .98rem; }
  .feature-tile small{ font-size: .86rem; }

  /* CTAs do bloco — largura total para toque confortável */
  .glass .d-flex.gap-2 > a.btn{
    width: 100%;
    padding-top: .9rem; padding-bottom: .9rem;
  }

  /* FOTO da barbearia ao lado do texto:
     força proporção elegante e alinha à altura do card */
  .row.g-4.align-items-center > .col-lg-6:last-child
  > .rounded-4.overflow-hidden.border-soft.shadow-soft{
    border-radius: 16px;
  }
  .row.g-4.align-items-center > .col-lg-6:last-child
  > .rounded-4.overflow-hidden.border-soft.shadow-soft img{
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;      /* mantém altura controlada */
    object-fit: cover;       /* sem distorcer */
    object-position: center 40%;
    display: block;
  }

  /* bloco "Missão" */
  .section .fw-semibold.mb-2{ font-size: 1.15rem; }
  .section .text-md-end a.btn{ width: 100%; }

  /* ===== Seção PRODUTOS (cards) ===== */
  section#produtos .glass{ padding: 18px !important; border-radius: 16px; }
  section#produtos .tri-bar{ margin-bottom: .5rem; }
  section#produtos h2.fw-bold{ font-size: 1.35rem; }
  section#produtos .h5.fw-semibold{ font-size: 1.05rem; }

  /* empilha os dois cards e dá mais respiro interno */
  section#produtos .row.g-4 > [class*="col-"]{ width: 100%; }
  section#produtos article.glass{ padding: 16px !important; }

  /* texto dos cards mais legível */
  section#produtos article p{ font-size: .97rem; }
  section#produtos article ul{ margin-bottom: 1rem !important; }
  section#produtos article ul li{ margin-bottom: .45rem; }

  /* botões dos cards ocupam toda a largura */
  section#produtos article .d-flex.gap-2 > a{
    width: 100%;
    padding-top: .85rem; padding-bottom: .85rem;
  }

  /* sombras suaves para não pesar no mobile */
  .shadow-soft{ box-shadow: 0 10px 28px rgba(0,0,0,.26) !important; }
  .rounded-4{ border-radius: 16px !important; }
}

/* tablets: transição suave entre mobile e desktop */
@media (min-width:576px) and (max-width:991.98px){
  .glass.p-4.p-md-5.shadow-soft{ padding: 22px !important; }
  .feature-tile{ padding: 14px 16px; }
  .row.g-4.align-items-center > .col-lg-6:last-child
  > .rounded-4.overflow-hidden.border-soft.shadow-soft img{
    aspect-ratio: 16/10; object-position: center 45%;
  }
  section#produtos article.glass{ padding: 18px !important; }
}

/* ===== NAV sempre acima; collapse estável no mobile ===== */
.nav-premium{ z-index: 1060; }
.navbar-collapse.show { background: rgba(10,10,10,.96); border-top: 1px solid rgba(255,255,255,.08); }

/* ===== HOME · alinhamento fino (só mobile) ===== */
@media (max-width: 575.98px){
  .section{ padding: 26px 0; }

  /* HERO */
  .hero-card{ padding: 18px; border-radius: 16px; }
  .hero-card .display-6{ font-size:1.55rem; line-height:1.15; }
  .hero-card .lead{ font-size:1rem; opacity:.9; }
  .hero-card .d-flex.gap-2 > a.btn{ width:100%; padding:.9rem 1rem; }

  /* “Por que escolher…” – card compacto e alinhado */
  .glass.p-4.h-100{ padding:16px !important; border-radius:16px; }
  .glass ul{ margin:0; }
  .glass ul li{ margin-bottom:.55rem; }

  /* GALERIA – todas as miniaturas com o MESMO tamanho */
  .gallery-card{ height: 0; padding-bottom: 75%; position: relative; border-radius:14px; overflow:hidden; }
  .gallery-card img{
    position:absolute; inset:0; width:100%; height:100%;
    object-fit:cover; display:block;
  }

  /* VÍDEO – botões full width e mesma largura do card */
  #video .ratio{ border-radius:16px !important; }
  #video .glass{ padding:16px !important; }
  #video h3{ font-size:1.12rem; margin-bottom:.4rem; }
  #video p{ font-size:.98rem; }
  #video .d-flex.gap-2 > a{ width:100%; }
}

/* ===== SOBRE · alinhamento fino (só mobile) ===== */
@media (max-width: 575.98px){
  /* bloco “Nossa história” */
  .glass.p-4.p-md-5.shadow-soft{ padding:18px !important; border-radius:16px; }
  .glass .lead{ font-size:1rem; opacity:.9; }

  /* grade 2x2 dos feature-tiles com ALTURA IGUAL e alinhamento */
  .row.g-3.mb-4 > .col-6{ display:flex; }
  .row.g-3.mb-4 > .col-6 > .feature-tile{
    width:100%; height:100%;
    display:flex; flex-direction:column; justify-content:center;
    padding:12px 14px; border-radius:12px;
  }
  .feature-tile h6{ font-size:.98rem; }
  .feature-tile small{ font-size:.86rem; }

  /* CTAs desse bloco: largura total */
  .glass .d-flex.gap-2 > a.btn{ width:100%; padding:.9rem 1rem; }

  /* imagem do topo do SOBRE com a MESMA “altura visual” do card ao lado */
  .row.g-4.align-items-center > .col-lg-6:last-child
  > .rounded-4.overflow-hidden.border-soft.shadow-soft{
    border-radius:16px;
  }
  .row.g-4.align-items-center > .col-lg-6:last-child
  > .rounded-4.overflow-hidden.border-soft.shadow-soft img{
    width:100%; height:auto;
    aspect-ratio:16/9; object-fit:cover; object-position:center 42%;
    display:block;
  }

  /* seção de cards de produtos (se presente no Sobre) – empilhar e igualar alturas */
  #produtos .row.g-4 > [class*="col-"]{ display:flex; }
  #produtos article.glass{
    padding:16px !important; border-radius:16px; width:100%;
    display:flex; flex-direction:column; justify-content:space-between;
  }
  #produtos article p{ font-size:.97rem; }
  #produtos article .d-flex.gap-2 > a{ width:100%; }
}

/* ===== Tablets (transição suave) ===== */
@media (min-width:576px) and (max-width:991.98px){
  header .row.align-items-stretch > [class*="col-"] > .hero-card,
  header .row.align-items-stretch > [class*="col-"] > .glass,
  #video .row.g-4 > [class*="col-"] > .ratio,
  #video .row.g-4 > [class*="col-"] > .glass{
    max-width: 680px;
    margin-inline: auto;
  }
  .gallery-card{ padding-bottom: 65%; }
}

@media (max-width: 575.98px){
  .navbar-collapse.show{
    background: rgba(10,10,10,.96);
    backdrop-filter: blur(6px);
    border-top: 1px solid rgba(255,255,255,.08);
    padding: .25rem 0 .5rem;
  }
  .navbar-nav .nav-link{
    padding: .9rem 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
  .navbar-nav .nav-item:last-child .nav-link{ border-bottom: 0; }
}

/* ===== Alinhamento dos cards: "Por que escolher" e "Experiência completa" ===== */
@media (max-width: 575.98px){

  /* Ambos terão mesma largura, margens e raio de canto */
  #video .glass,
  header .col-lg-5 .glass{
    width: 100%;
    max-width: 540px;
    margin-inline: auto;         /* centraliza perfeitamente */
    border-radius: 14px !important;
    box-sizing: border-box;
  }

  /* Dá o mesmo respiro vertical entre os blocos */
  header .col-lg-5 .glass{
    margin-top: 16px;
    margin-bottom: 24px;
  }
  #video .glass{
    margin-top: 0;
    margin-bottom: 24px;
  }

  /* Ajuste visual interno — padding e alinhamento de texto */
  header .col-lg-5 .glass,
  #video .glass{
    padding: 18px 16px !important;
    text-align: left;
  }

  /* Corrige botões duplos (iguais e alinhados) */
  #video .glass .d-flex.gap-2 a.btn{
    flex: 1 1 48%;
    text-align: center;
    white-space: nowrap;
  }

  /* Força ambos os cards a terem mesma sombra e cor de fundo */
  .glass{
    background: rgba(30, 30, 30, 0.85);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  }
}

/* ===== Alinhamento absoluto dos DOIS cards na Home (MOBILE) ===== */
@media (max-width: 575.98px){
  :root{
    --m-gutter: 16px;                 /* mesmo recuo usado no restante do site */
    --m-radius: 16px;
    --m-pad: 16px;
  }

  /* Garante que o container desses blocos tenha o mesmo padding dos demais */
  header .container,
  #video .container{
    padding-left: var(--m-gutter);
    padding-right: var(--m-gutter);
  }

  /* Os DOIS cards passam a ocupar exatamente a mesma faixa de largura */
  header .col-lg-5 > .glass,
  #video  .col-lg-5 > .glass{
    display: block;
    width: 100%;
    max-width: none;                  /* remove limites diferentes */
    margin-left: 0;                   /* sem “desvio” para a direita */
    margin-right: 0;
    border-radius: var(--m-radius) !important;
    padding: var(--m-pad) !important; /* mesmo respiro interno */
    box-sizing: border-box;
    background: rgba(30,30,30,.86);   /* cor idêntica aos demais */
    border: 1px solid rgba(255,255,255,.06);
    box-shadow: 0 8px 24px rgba(0,0,0,.28);
  }

  /* Espaço entre eles quando empilham (idêntico aos outros blocos) */
  header .row.align-items-stretch > [class*="col-"] + [class*="col-"]{
    margin-top: 14px;
  }

  /* Tipografia/lista consistente dentro do card “Por que escolher…” */
  header .col-lg-5 .glass h2{ margin-bottom: .6rem; }
  header .col-lg-5 .glass ul{ margin: 0; padding-left: 1.1rem; }
  header .col-lg-5 .glass ul li{ margin-bottom: .55rem; }

  /* Botões do card “Experiência completa” alinhados */
  #video .glass .d-flex.gap-2 > a{
    flex: 1 1 48%;
    text-align: center;
    white-space: nowrap;
  }

  /* Vídeo mantém a mesma largura dos cards acima */
  #video .row.g-4 > [class*="col-"] > .ratio{
    width: 100%;
    margin: 0;                        /* sem “saltos” laterais */
    border-radius: var(--m-radius) !important;
  }
}

/* === Centralização forçada dos dois cards da Home no MOBILE === */
@media (max-width: 575.98px){

  /* garante gutters simétricos como o restante do site */
  header .container,
  #video .container{
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* estes dois cartões passam a ter a MESMA largura e ficam centralizados */
  header .row.align-items-stretch > .col-lg-5 > .glass,
  #video  .row.g-4              > .col-lg-5 > .glass{
    width: 100% !important;
    max-width: 560px !important;   /* mesma largura visual dos outros */
    margin-left: auto !important;  /* centraliza */
    margin-right: auto !important; /* centraliza */
    border-radius: 16px !important;
    padding: 16px !important;
    box-sizing: border-box;
  }

  /* distância entre blocos, igual ao restante */
  header .row.align-items-stretch > [class*="col-"] + [class*="col-"]{
    margin-top: 14px !important;
  }

  /* vídeo: mantemos largura do player igual ao card ao lado */
  #video .row.g-4 > .col-lg-7 > .ratio{
    width: 100% !important;
    max-width: 560px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    border-radius: 16px !important;
  }
}

/* === Compat: utilitário para acessibilidade no BS5 === */
.visually-hidden{
  position:absolute!important;
  width:1px!important; height:1px!important;
  padding:0!important; margin:-1px!important;
  overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important;
  border:0!important;
}

/* === Safe area (iOS) para botões flutuantes === */
.float-whatsapp{ bottom: calc(86px + var(--safe-bottom)); }
.float-instagram{ bottom: calc(24px + var(--safe-bottom)); }

/* === Fix específico: centralizar os 2 cards do Home no mobile === */
@media (max-width: 575.98px){
  /* Card "Por que escolher a Camarote?" */
  header .col-lg-5 > .glass.mx-auto,
  /* Card "Experiência completa" */
  #video  .col-lg-5 > .glass.mx-auto{
    width: 100%;
    max-width: 560px;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* (Opcional) Se o player de vídeo parecer “descasado”, centraliza também */
  #video .col-lg-7 > .ratio{
    width: 100%;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ==== FIX: não deslocar lateralmente antes da animação (mobile) ==== */
@media (max-width: 575.98px){
  [data-animate][data-animate="fade-left"],
  [data-animate][data-animate="fade-right"]{
    /* Em vez de empurrar para o lado, só dá um leve lift vertical */
    transform: translateY(12px);
  }
}

/* === FIX: botões do card "Experiência completa" no mobile === */
@media (max-width: 575.98px){
  #video .glass .d-flex.gap-2 a.btn{
    flex: 1 1 100% !important; /* ocupa a linha toda */
    width: 100% !important;
    white-space: normal !important; /* deixa quebrar o texto */
  }
  /* opcional: um gap menor fica mais elegante em telas bem estreitas */
  #video .glass .d-flex.gap-2{ gap: .5rem; }
}

/* === NAVBAR (mobile) — collapse em tela cheia e organizado === */
@media (max-width: 991.98px){
  /* container da navbar ocupa a altura do header para alinhamento */
  #topnav .container{ align-items: stretch; }

  /* quando o menu abre, vira um painel fixo ocupando a tela toda abaixo da navbar */
  #topnav .navbar-collapse.show{
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    height: calc(100vh - var(--nav-h));
    overflow-y: auto;
    padding: .5rem 1rem calc(1rem + var(--safe-bottom));
    background: rgba(10,10,10,.96);
    backdrop-filter: blur(6px);
    border-top: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 12px 28px rgba(0,0,0,.35);
    z-index: 1070; /* acima do resto */
  }

  /* itens: blocados, área de toque grande e separador sutil */
  #topnav .navbar-nav .nav-link{
    display: block;
    padding: .9rem 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
  #topnav .navbar-nav .nav-item:last-child .nav-link{ border-bottom: 0; }

  /* sublinhado dourado consistente */
  #topnav .navbar-nav .nav-link.uline::after{
    height: 2px; background: var(--gold);
  }
}

/* quando o menu está aberto, esconda flutuantes para não sobrepor o painel */
body.navbar-open .float-btn{
  opacity: 0; pointer-events: none; transform: translateY(6px);
}

/* === NAVBAR MOBILE (≤ 991px) — versão refinada e premium === */
@media (max-width: 991.98px) {
  /* corpo do menu em painel */
  #topnav .navbar-collapse.show {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    height: calc(100vh - var(--nav-h));
    overflow-y: auto;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
    padding: 1.2rem 1.4rem calc(2rem + var(--safe-bottom));
    z-index: 1070;
  }

  /* cada item com espaçamento amplo */
  #topnav .navbar-nav .nav-link {
    display: block;
    padding: 1rem 0;
    margin: 0;
    font-size: 1.05rem;
    letter-spacing: 0.4px;
    text-transform: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    color: var(--cream);
  }

  /* o último sem borda */
  #topnav .navbar-nav .nav-item:last-child .nav-link {
    border-bottom: none;
  }

  /* efeito hover dourado suave */
  #topnav .navbar-nav .nav-link:hover {
    color: #fff;
    text-shadow: 0 0 6px rgba(214, 179, 106, 0.6);
  }

  /* sublinhado ativo dourado */
  #topnav .navbar-nav .nav-link.active::after {
    background: var(--gold);
    height: 2px;
  }

  /* botão “Agendar” no menu mobile */
  #topnav .navbar-nav .btn-gold {
    display: block;
    width: 100%;
    font-weight: 600;
    text-align: center;
    padding: 0.9rem 1rem;
    margin-top: 0.6rem;
    border-radius: 14px;
  }

  /* melhora contraste do nome */
  #topnav .navbar-brand {
    font-size: 1.1rem;
    letter-spacing: 0.5px;
  }

  /* animação de abertura */
  .navbar-collapse.collapsing {
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease;
  }
}

/* Quando o menu abre, esconde botões flutuantes */
body.navbar-open .float-btn {
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Quick CTA — ícones e tipografia consistentes */
.quick-cta .btn{
  font-weight: 600;
  letter-spacing: .2px;
}
.quick-cta .btn svg{
  width: 20px; height: 20px; flex-shrink: 0;
}
@media (max-width: 575.98px){
  /* no mobile, ocupam 100% e ficam super fáceis de tocar */
  .quick-cta .btn{ padding-top: .9rem; padding-bottom: .9rem; }
}

/* === FIX: espaço antes dos 3 botões no mobile === */
@media (max-width: 575.98px){
  /* devolve um respiro de topo só para esta seção */
  #atalhos.section.pt-0{
    padding-top: 14px !important;
  }
  /* e afasta o cartão do bloco anterior um pouquinho */
  #atalhos .quick-cta{
    margin-top: 8px;         /* pode subir para 12–16px se quiser mais respiro */
  }
}

/* tablets/desktop: um respiro leve também cai bem */
@media (min-width: 576px){
  #atalhos.section.pt-0{
    padding-top: 20px;        /* mantém elegante sem mudar o layout */
  }
}

/* ===== SOBRE: alinhar bolinha + título nos 4 cards (mobile/tablet) ===== */
@media (max-width: 991.98px){
  /* garante layout interno em linha para o cabeçalho do tile */
  .feature-tile .ft-head{
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 0 0 .25rem 0;
  }
  .feature-tile .ft-bullet{
    flex: 0 0 10px;            /* tamanho fixo da bolinha */
    width: 10px; height: 10px; border-radius: 999px;
  }
  .feature-tile h6{
    margin: 0;                 /* sem quebra acima/abaixo */
    font-size: 1rem;
    line-height: 1.2;
  }
  .feature-tile small{
    display: block;
    margin-top: .15rem;
    font-size: .9rem;
    line-height: 1.25;
  }

  /* sobrescreve a regra antiga que forçava coluna no próprio tile */
  .row.g-3.mb-4 > .col-6 > .feature-tile{
    display: block !important;     /* volta ao fluxo normal do conteúdo */
    height: 100%;                  /* ainda permite igualar alturas pelo col */
  }
}

/* (opcional) leve reforço visual para os tiles */
@media (max-width: 575.98px){
  .feature-tile{ padding: 12px 14px; border-radius: 12px; }
}

/* ===== SOBRE — feature tiles (bolinha + título na mesma linha) ===== */

/* 1) Coloca a bolinha e o título lado a lado, em qualquer breakpoint */
.feature-tile .ft-bullet{
  display: inline-block;
  width: 10px; height: 10px; border-radius: 999px;
  margin-right: .5rem; vertical-align: middle;
}
.feature-tile h6{
  display: inline-block; vertical-align: middle;
  margin: 0; font-weight: 700;
}

/* 2) O HTML tem um <br> após o <h6>; escondemos pra não quebrar linha */
.feature-tile br{ display: none; }

/* 3) Tipografia e quebras mais elegantes (evita letras “esmagadas”) */
.feature-tile h6, .feature-tile small{
  overflow-wrap: anywhere;          /* quebra palavras longas */
  word-break: normal;
  line-height: 1.25;
}
.feature-tile small{ margin-top: .25rem; display: block; }

/* 4) Ajustes finos por breakpoint */
@media (max-width: 575.98px){
  .feature-tile{ padding: 12px 14px; border-radius: 12px; }
  .feature-tile h6{ font-size: 1rem; }       /* título um pouco menor */
  .feature-tile small{ font-size: .9rem; }   /* subtítulo legível */
}
@media (min-width: 576px){
  .feature-tile h6{ font-size: 1.05rem; }
  .feature-tile small{ font-size: .92rem; }
}

/* ===== SOBRE — feature tiles: leitura perfeita no mobile e desktop ===== */

/* 1) Mobile: 1 por linha (evita títulos espremidos) */
@media (max-width: 575.98px){
  .row.g-3.mb-4 > .col-6{
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
}

/* 2) Cabeçalho do tile: bolinha + título lado a lado (sempre) */
.feature-tile .ft-bullet{
  display: inline-block;
  width: 10px; height: 10px; border-radius: 999px;
  margin-right: .5rem;
  vertical-align: middle;
}
.feature-tile h6{
  display: inline;               /* mantém ao lado da bolinha */
  margin: 0;
  font-weight: 700;
  line-height: 1.2;
}

/* 3) Remove a quebra forçada do HTML (<br>) logo após o h6 */
.feature-tile br{ display: none; }

/* 4) Quebras de linha naturais (sem cortar palavra no meio) */
.feature-tile h6, .feature-tile small{
  overflow-wrap: normal;         /* override do "anywhere" anterior */
  word-break: normal;
  hyphens: auto;                 /* permite hifenização natural */
}
.feature-tile small{
  display: block;
  margin-top: .25rem;
  line-height: 1.3;
}

/* 5) Ajustes finos por breakpoint (tamanhos confortáveis) */
@media (max-width: 575.98px){
  .feature-tile{ padding: 12px 14px; border-radius: 12px; }
  .feature-tile h6{ font-size: 0.98rem; }
  .feature-tile small{ font-size: 0.9rem; }
}
@media (min-width: 576px){
  .feature-tile h6{ font-size: 1.05rem; }
  .feature-tile small{ font-size: 0.92rem; }
}

/* 6) Garante que nenhum estilo antigo force layout em coluna dentro do tile */
.row.g-3.mb-4 > .col-6 > .feature-tile{
  display: block !important;
  height: auto !important;
}

@supports (content-visibility: auto){
  #galeria{ content-visibility: auto; contain-intrinsic-size: 800px; }
  #video{ content-visibility: auto; contain-intrinsic-size: 600px; }
}

/* ===== Logos posicionadas com suavidade e responsivas ===== */
.logo-nav{
  height: 28px; width: auto;
  border-radius: 8px;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,.35));
}

.hero-logo{
  display: inline-block;
  height: 32px; width: auto;
  margin-top: .25rem;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.35));
  opacity: .95;
}

.logo-footer{
  height: 42px; width: auto;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.35));
  opacity: .98;
}

/* Ajustes de visibilidade no mobile bem estreito (≤575px) */
@media (max-width: 575.98px){
  /* já escondemos a do topo e do hero via d-none d-sm-inline-block */
  .logo-footer{ height: 36px; }
}

/* ===== NAVBAR: alinhamento no mobile/desktop ===== */

/* Tamanhos da mini-logo da navbar */
.logo-nav{ height: 24px; width: auto; }
@media (min-width: 576px){
  .logo-nav{ height: 28px; }
}

/* ===== HERO: logo centralizada abaixo dos botões ===== */
.hero-logo{
  display: block;
  margin: 8px auto 0;                 /* centraliza e aproxima dos botões */
  height: 24px; width: auto;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.35));
  opacity: .95;
}
@media (min-width: 576px){
  .hero-logo{ height: 32px; }
}

/* um respiro para a barra tricolor do hero, já que a logo vem antes */
#triHero{ margin-top: .5rem !important; }

/* ===== NAVBAR — manter layout padrão do Bootstrap e só ajustar a logo ===== */

/* ================= NAVBAR: volta ao padrão Bootstrap e mantém a logo ================= */

/* garante o flex do Bootstrap dentro da navbar */
#topnav .container{
  display: flex !important;
  align-items: center;
  gap: .5rem;
}

/* marca/brand sem quebrar linha */
#topnav .navbar-brand{
  display: flex;
  align-items: center;
  gap: .45rem;
  white-space: nowrap;
}

/* tamanho da logo da navbar (não interfere no layout) */
.logo-nav{ height: 24px; width: auto; vertical-align: middle; }
@media (min-width: 576px){ .logo-nav{ height: 28px; } }

/* mobile: botão hamburguer vai para a direita */
@media (max-width: 991.98px){
  #topnav .navbar-toggler{
    margin-left: auto !important;     /* empurra o toggler para a direita */
    padding: .25rem .5rem;
    height: 40px; width: 44px;        /* área de toque confortável */
    display: inline-flex; align-items: center; justify-content: center;
  }
}

/* desktop: links alinhados à direita */
@media (min-width: 992px){
  #navMenu{
    display: flex !important;
    justify-content: flex-end !important;
  }
}

/* ===== NAVBAR · FIX APENAS NO MOBILE ===== */
@media (max-width: 991.98px){
  /* linha da navbar: alinha brand + toggler verticalmente */
  #topnav .container{
    display: flex;
    align-items: center;
    min-height: var(--nav-h);
  }

  /* evita quebra do texto da marca que empurra o botão */
  #topnav .navbar-brand{
    display: flex;
    align-items: center;
    gap: .45rem;
    white-space: nowrap;
  }

  /* botão hambúrguer: à direita e centralizado na altura da barra */
  #topnav .navbar-toggler{
    margin-left: auto;         /* fica colado à direita */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    width: 44px;
    padding: 0;                /* não deixa variar a altura */
    line-height: 1;
    position: static;          /* neutraliza qualquer offset herdado */
    transform: none;
  }

  /* tamanho da logo na brand para não empurrar o botão */
  .logo-nav{ height:24px; width:auto; }
}

/* ===== NAVBAR · correção final APENAS no mobile ===== */
@media (max-width: 991.98px){
  /* dá uma âncora para posicionar o botão */
  #topnav .container{
    position: relative;            /* sem alterar layout */
    min-height: var(--nav-h);      /* garante a altura da barra */
    display: flex;
    align-items: center;
  }

  /* toggler: trava à direita e perfeitamente centralizado na altura */
  #topnav .navbar-toggler{
    position: absolute;
    top: 50%;
    right: 12px;                   /* encosta na borda direita da navbar */
    transform: translateY(-50%);   /* centraliza verticalmente */
    margin: 0;                     /* remove offsets herdados */
    height: 40px;
    width: 44px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* só pra garantir que o brand não empurre nada */
  #topnav .navbar-brand{
    display: flex;
    align-items: center;
    gap: .45rem;
    white-space: nowrap;
    padding-top: 0;
    padding-bottom: 0;
  }
}

/* ===== Espaço entre a seção anterior e o card de Prótese — MOBILE ===== */
@media (max-width: 575.98px){
  /* cria um “degrau” antes do card */
  section.promo-protese{
    margin-top: 24px !important;              /* ajuste fino do espaço */
    scroll-margin-top: 76px;                  /* melhora âncora/scroll até a seção */
  }

  /* dá um respiro no topo do próprio card p/ não colar no FAB da borda */
  .promo-protese .card-promo{
    padding-top: 1.05rem;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
  }
}
