/* ============================================================
   Casa do Tio | Moda Infantil e Juvenil, Caruaru - PE
   Site institucional por T1 Digital
   ============================================================ */

:root{
  --verde:#8DC63F;
  --verde-btn:#5E9E22;
  --verde-btn-hover:#4C8319;
  --verde-suave:#EDF6DF;
  --laranja:#F7941E;
  --laranja-suave:#FDEBD6;
  --roxo:#92278F;
  --roxo-escuro:#6E1C6B;
  --roxo-suave:#F4E3F3;
  --ink:#3E3630;
  --ink-soft:#6F675F;
  --creme:#FAF6EF;
  --branco:#FFFFFF;
  --footer:#341732;
  --estrela:#F6B21B;
  --wa:#25D366;
  --radius:24px;
  --radius-sm:14px;
  --shadow:0 10px 30px rgba(62,54,48,.10);
  --shadow-soft:0 6px 18px rgba(62,54,48,.08);
  --container:1160px;
  --font-display:'Baloo 2',system-ui,sans-serif;
  --font-body:'Nunito',system-ui,sans-serif;
}

*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:96px}
body{
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--branco);
  line-height:1.6;
  font-size:16px;
  overflow-x:hidden;
}
img{display:block;max-width:100%;height:auto}
a{color:inherit;text-decoration:none}
ul{list-style:none}
.container{max-width:var(--container);margin:0 auto;padding:0 22px}

:focus-visible{outline:3px solid var(--laranja);outline-offset:3px;border-radius:6px}

/* ---------- Botoes ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.6rem;
  font-family:var(--font-display);font-weight:700;font-size:1.02rem;
  padding:.85rem 1.9rem;border-radius:999px;border:2px solid transparent;
  transition:transform .18s ease,box-shadow .18s ease,background .18s ease,color .18s ease;
  cursor:pointer;line-height:1.2;text-align:center;
}
.btn svg{width:20px;height:20px;flex:none}
.btn:hover{transform:translateY(-2px)}
.btn-verde{background:var(--verde-btn);color:#fff;box-shadow:0 8px 20px rgba(94,158,34,.35)}
.btn-verde:hover{background:var(--verde-btn-hover)}
.btn-roxo{background:var(--roxo);color:#fff;box-shadow:0 8px 20px rgba(146,39,143,.30)}
.btn-roxo:hover{background:var(--roxo-escuro)}
.btn-outline{border-color:var(--roxo);color:var(--roxo);background:transparent}
.btn-outline:hover{background:var(--roxo);color:#fff}
.btn-branco{background:#fff;color:var(--roxo);box-shadow:0 8px 20px rgba(0,0,0,.18)}
.btn-branco:hover{background:var(--creme)}
.btn-ghost-branco{border-color:rgba(255,255,255,.75);color:#fff}
.btn-ghost-branco:hover{background:rgba(255,255,255,.14)}
.link-seta{
  font-family:var(--font-display);font-weight:700;color:var(--roxo);
  display:inline-flex;align-items:center;gap:.35rem;
}
.link-seta:hover{color:var(--roxo-escuro);text-decoration:underline}

/* ---------- Marquees (base compartilhada) ---------- */
.marquee{overflow:hidden;position:relative}
.marquee-track{display:flex;width:max-content;will-change:transform}
.marquee-group{display:flex;align-items:center;flex:none}
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track{animation-play-state:paused}

@keyframes rolar{to{transform:translateX(-50%)}}

/* 1) Ticker do topo */
.tickerbar{background:var(--roxo-escuro);color:#F5E4F4;font-size:.86rem}
.tickerbar .marquee-track{animation:rolar 38s linear infinite;padding:.5rem 0}
.tickerbar .marquee-group{gap:2.2rem;padding-right:2.2rem}
.tickerbar span{white-space:nowrap;display:inline-flex;align-items:center;gap:.45rem}
.tickerbar strong{color:#fff;font-weight:800}
.tickerbar .sep{color:var(--laranja);font-size:1rem}

/* 2) Letreiro grande de palavras */
.bigmarquee{background:var(--branco);padding:2.2rem 0 1.4rem;border-bottom:1px solid #F3EDE2}
.bigmarquee .marquee-track{animation:rolar 26s linear infinite}
.bigmarquee .marquee-group{gap:2.6rem;padding-right:2.6rem}
.bigmarquee span{
  font-family:var(--font-display);font-weight:800;text-transform:uppercase;
  font-size:clamp(2.1rem,4.6vw,3.4rem);letter-spacing:.02em;
  color:#D9CBA9;white-space:nowrap;line-height:1;
}
.bigmarquee .sep{color:#F3C68C;font-size:clamp(1.4rem,3vw,2.2rem)}

/* 3) Carrossel de fotos por categoria */
.cards-carrossel{padding:1.4rem 0 .6rem}
.cards-carrossel .marquee-track{animation:rolar 58s linear infinite}
.cards-carrossel .marquee-group{gap:1.4rem;padding-right:1.4rem;align-items:stretch}
.cat-card{
  width:290px;flex:none;background:#fff;border-radius:var(--radius);
  box-shadow:var(--shadow-soft);overflow:hidden;position:relative;
  display:flex;flex-direction:column;
  transition:transform .2s ease,box-shadow .2s ease;
}
.cat-card:hover{transform:translateY(-6px);box-shadow:var(--shadow)}
.cat-card figure{position:relative;aspect-ratio:4/3;overflow:hidden}
.cat-card figure img{width:100%;height:100%;object-fit:cover}
.badge{
  position:absolute;top:12px;left:12px;z-index:2;
  font-family:var(--font-display);font-weight:700;font-size:.68rem;
  letter-spacing:.14em;text-transform:uppercase;color:#fff;
  padding:.32rem .75rem;border-radius:999px;
}
.badge-roxo{background:var(--roxo)}
.badge-laranja{background:var(--laranja)}
.badge-verde{background:var(--verde-btn)}
.cat-card .cat-body{padding:1.05rem 1.15rem 1.25rem}
.cat-card h3{font-family:var(--font-display);font-size:1.22rem;font-weight:700;margin-bottom:.25rem}
.cat-card p{font-size:.92rem;color:var(--ink-soft);line-height:1.5}

/* ---------- Cabecalho ---------- */
.header{
  position:sticky;top:0;z-index:60;background:rgba(255,255,255,.94);
  backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
  transition:box-shadow .25s ease;
}
.header.rolou{box-shadow:0 4px 22px rgba(62,54,48,.12)}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.7rem 22px;max-width:var(--container);margin:0 auto}
.logo img{height:52px;width:auto}
.nav{display:flex;align-items:center;gap:1.6rem}
.nav a{
  font-family:var(--font-display);font-weight:600;font-size:.98rem;color:var(--ink);
  position:relative;padding:.2rem 0;
}
.nav a::after{
  content:'';position:absolute;left:0;bottom:-3px;height:3px;width:0;
  border-radius:3px;background:linear-gradient(90deg,var(--verde),var(--laranja),var(--roxo));
  transition:width .22s ease;
}
.nav a:hover::after{width:100%}
.header .btn{padding:.62rem 1.4rem;font-size:.94rem}
.menu-toggle{
  display:none;background:none;border:none;cursor:pointer;padding:.4rem;
}
.menu-toggle svg{width:28px;height:28px;color:var(--roxo)}
.nav-mobile{
  display:none;background:#fff;border-top:1px solid #F1EAE0;
  box-shadow:0 14px 24px rgba(62,54,48,.12);
}
.nav-mobile.aberto{display:block}
.nav-mobile a{
  display:block;padding:.95rem 26px;font-family:var(--font-display);
  font-weight:600;border-bottom:1px solid #F6F1E9;
}
.nav-mobile a:last-child{border-bottom:none}

/* ---------- Hero ---------- */
.hero-banner a{display:block}
.hero-banner img{width:100%;height:auto}
.hero{position:relative;padding:3.4rem 0 2.6rem;text-align:center;overflow:hidden}
.hero::before,.hero::after{
  content:'';position:absolute;border-radius:50%;filter:blur(60px);opacity:.5;pointer-events:none;
}
.hero::before{width:340px;height:340px;background:var(--verde-suave);top:-120px;left:-120px}
.hero::after{width:300px;height:300px;background:var(--roxo-suave);bottom:-140px;right:-100px}
.hero .container{position:relative;z-index:1;max-width:820px}
.eyebrow{
  font-family:var(--font-display);font-weight:700;font-size:.82rem;
  letter-spacing:.16em;text-transform:uppercase;color:var(--roxo);
  display:inline-block;margin-bottom:.8rem;
}
.hero h1{
  font-family:var(--font-display);font-weight:800;line-height:1.12;
  font-size:clamp(2.1rem,5vw,3.4rem);margin-bottom:1rem;
}
.hero h1 .cor-verde{color:var(--verde-btn)}
.hero h1 .cor-laranja{color:var(--laranja)}
.hero h1 .cor-roxo{color:var(--roxo)}
.hero p{font-size:1.08rem;color:var(--ink-soft);max-width:640px;margin:0 auto 1.7rem}

/* ---------- Secoes (base) ---------- */
.sec{padding:4.6rem 0;position:relative}
.sec-creme{background:var(--creme)}
.sec-head{text-align:center;max-width:720px;margin:0 auto 2.6rem}
.sec-head h2{
  font-family:var(--font-display);font-weight:800;line-height:1.15;
  font-size:clamp(1.75rem,3.6vw,2.5rem);margin-bottom:.55rem;
}
.sec-head .sub{color:var(--ink-soft);font-size:1.04rem}
.sec-head::after{
  content:'';display:block;width:96px;height:10px;margin:1.15rem auto 0;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='10' viewBox='0 0 96 10'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='96' y2='0' gradientUnits='userSpaceOnUse'%3E%3Cstop offset='0' stop-color='%238DC63F'/%3E%3Cstop offset='.5' stop-color='%23F7941E'/%3E%3Cstop offset='1' stop-color='%2392278F'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M3 6c7.5-5 15-5 22.5 0s15 5 22.5 0 15-5 22.5 0 15 5 22.5 0' fill='none' stroke='url(%23g)' stroke-width='3.4' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
}
.sec-cta-central{text-align:center;margin-top:2.3rem}

/* ---------- A Loja ---------- */
.loja-grid{display:grid;grid-template-columns:1.05fr 1fr;gap:3.2rem;align-items:center}
.loja-foto{position:relative}
.loja-foto img{border-radius:var(--radius);box-shadow:var(--shadow);width:100%}
.loja-foto::before{
  content:'';position:absolute;inset:auto -18px -18px auto;width:150px;height:150px;
  border-radius:38% 62% 55% 45%/45% 40% 60% 55%;
  background:linear-gradient(135deg,var(--laranja-suave),var(--roxo-suave));
  z-index:-1;
}
.loja-texto .eyebrow{margin-bottom:.5rem}
.loja-texto h2{
  font-family:var(--font-display);font-weight:800;line-height:1.15;
  font-size:clamp(1.75rem,3.4vw,2.4rem);margin-bottom:1rem;
}
.loja-texto>p{color:var(--ink-soft);margin-bottom:1.4rem}
.checklist{margin-bottom:1.6rem;display:grid;gap:.7rem}
.checklist li{display:flex;align-items:flex-start;gap:.7rem;font-weight:600}
.checklist .check{
  flex:none;width:26px;height:26px;border-radius:50%;background:var(--verde);
  display:inline-flex;align-items:center;justify-content:center;margin-top:.1rem;
}
.checklist .check svg{width:14px;height:14px;color:#fff}

/* ---------- Diferenciais ---------- */
.dif-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.4rem}
.dif-card{
  background:#fff;border-radius:var(--radius);padding:1.7rem 1.6rem;
  box-shadow:var(--shadow-soft);transition:transform .2s ease,box-shadow .2s ease;
}
.dif-card:hover{transform:translateY(-5px);box-shadow:var(--shadow)}
.dif-icone{
  width:52px;height:52px;border-radius:16px;display:flex;align-items:center;justify-content:center;
  margin-bottom:1rem;
}
.dif-icone svg{width:26px;height:26px}
.dif-verde{background:var(--verde-suave);color:var(--verde-btn)}
.dif-laranja{background:var(--laranja-suave);color:var(--laranja)}
.dif-roxo{background:var(--roxo-suave);color:var(--roxo)}
.dif-card h3{font-family:var(--font-display);font-size:1.18rem;font-weight:700;margin-bottom:.35rem}
.dif-card p{font-size:.95rem;color:var(--ink-soft)}

/* ---------- Avaliacoes ---------- */
.avals-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.4rem}
.aval-card{
  background:#fff;border-radius:var(--radius);padding:1.8rem 1.6rem;text-align:center;
  box-shadow:var(--shadow-soft);
}
.aval-avatar{
  width:58px;height:58px;border-radius:50%;margin:0 auto .85rem;color:#fff;
  font-family:var(--font-display);font-weight:800;font-size:1.4rem;
  display:flex;align-items:center;justify-content:center;
}
.aval-card h3{font-family:var(--font-display);font-size:1.08rem;font-weight:700}
.estrelas{color:var(--estrela);font-size:1.15rem;letter-spacing:.15em;margin:.35rem 0 .45rem}
.aval-card .fonte{font-size:.85rem;color:var(--ink-soft)}

/* ---------- Instagram ---------- */
.insta-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1.1rem;margin-bottom:2rem}
.insta-grid a{
  display:block;border-radius:var(--radius-sm);overflow:hidden;position:relative;
  box-shadow:var(--shadow-soft);
}
.insta-grid img{width:100%;height:100%;object-fit:cover;aspect-ratio:1/1;transition:transform .3s ease}
.insta-grid a:hover img{transform:scale(1.05)}
.insta-grid a::after{
  content:'';position:absolute;inset:0;opacity:0;transition:opacity .3s ease;
  background:linear-gradient(180deg,rgba(146,39,143,0) 40%,rgba(146,39,143,.45));
}
.insta-grid a:hover::after{opacity:1}
.insta-cta{text-align:center}

/* ---------- Contato ---------- */
.contato-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:1.2rem;margin-bottom:2.4rem}
.contato-card{
  background:#fff;border-radius:var(--radius);padding:1.5rem 1.4rem;
  box-shadow:var(--shadow-soft);display:flex;flex-direction:column;gap:.3rem;
}
.contato-card .dif-icone{width:46px;height:46px;border-radius:14px;margin-bottom:.6rem}
.contato-card .dif-icone svg{width:23px;height:23px}
.contato-card h3{font-family:var(--font-display);font-size:1.05rem;font-weight:700}
.contato-card p{font-size:.93rem;color:var(--ink-soft);flex:1}
.contato-card .link-seta{font-size:.94rem;margin-top:.4rem}
.mapa{border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);line-height:0}
.mapa iframe{width:100%;height:420px;border:0}

/* ---------- CTA final ---------- */
.cta-final{
  background:linear-gradient(130deg,var(--roxo) 0%,var(--roxo-escuro) 100%);
  color:#fff;text-align:center;padding:4.6rem 0;position:relative;overflow:hidden;
}
.cta-final::before,.cta-final::after{
  content:'';position:absolute;border-radius:50%;filter:blur(10px);opacity:.14;pointer-events:none;background:#fff;
}
.cta-final::before{width:260px;height:260px;top:-110px;left:-70px}
.cta-final::after{width:320px;height:320px;bottom:-150px;right:-90px}
.cta-final .container{position:relative;z-index:1;max-width:760px}
.logo-chip-cta{margin-bottom:1.5rem;padding:1rem 1.4rem}
.cta-final .logo-chip img{height:96px;width:auto}
.cta-final h2{
  font-family:var(--font-display);font-weight:800;line-height:1.15;
  font-size:clamp(1.8rem,3.8vw,2.6rem);margin-bottom:.7rem;
}
.cta-final p{color:#F0DDEF;font-size:1.06rem;margin-bottom:1.8rem}
.cta-botoes{display:flex;gap:1rem;justify-content:center;flex-wrap:wrap}

/* ---------- Rodape ---------- */
.footer{background:var(--footer);color:#D8C7D6;padding:3.4rem 0 2rem;font-size:.94rem}
.footer-grid{
  display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:2.4rem;
  padding-bottom:2.2rem;border-bottom:1px solid rgba(255,255,255,.12);margin-bottom:1.6rem;
}
.logo-chip{display:inline-block;background:#fff;border-radius:18px;padding:.75rem 1.05rem;box-shadow:0 8px 22px rgba(0,0,0,.20)}
.footer .logo-chip{margin-bottom:1.1rem}
.footer .logo-chip img{height:46px;width:auto}
.footer h4{font-family:var(--font-display);color:#fff;font-size:1rem;margin-bottom:.8rem;font-weight:700}
.footer a:hover{color:#fff;text-decoration:underline}
.footer-nav{display:grid;gap:.5rem}
.footer-contato p{margin-bottom:.4rem}
.footer-baixo{display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap;font-size:.86rem;color:#B79FB5}
.footer-baixo a{color:#E8D6E7;font-weight:700}

/* ---------- WhatsApp flutuante ---------- */
.wa-float{
  position:fixed;right:20px;bottom:20px;z-index:80;width:60px;height:60px;border-radius:50%;
  background:var(--wa);display:flex;align-items:center;justify-content:center;
  box-shadow:0 10px 26px rgba(37,211,102,.45);transition:transform .2s ease;
}
.wa-float:hover{transform:scale(1.08)}
.wa-float svg{width:32px;height:32px;color:#fff}

/* ---------- Animacao de entrada ---------- */
.reveal{opacity:0;transform:translateY(22px);transition:opacity .6s ease,transform .6s ease}
.reveal.visivel{opacity:1;transform:none}

/* ---------- Responsivo ---------- */
@media (max-width:960px){
  .dif-grid{grid-template-columns:repeat(2,1fr)}
  .contato-cards{grid-template-columns:repeat(2,1fr)}
  .loja-grid{grid-template-columns:1fr;gap:2.2rem}
  .avals-grid{grid-template-columns:1fr;max-width:460px;margin:0 auto}
}
@media (max-width:860px){
  .nav,.header .btn-header-desk{display:none}
  .menu-toggle{display:block}
}
@media (max-width:640px){
  html{scroll-padding-top:104px}
  .logo img{height:62px}
  .sec{padding:3.4rem 0}
  .dif-grid{grid-template-columns:1fr}
  .insta-grid{grid-template-columns:repeat(2,1fr)}
  .contato-cards{grid-template-columns:1fr}
  .cat-card{width:250px}
  .mapa iframe{height:340px}
  .cta-final .logo-chip img{height:74px}
  .footer-grid{grid-template-columns:1fr;gap:1.8rem}
  .wa-float{width:54px;height:54px;right:16px;bottom:16px}
  .wa-float svg{width:28px;height:28px}
}

/* ---------- Acessibilidade: movimento reduzido ---------- */
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .marquee{overflow-x:auto}
  .marquee-track{animation:none !important}
  .reveal{opacity:1;transform:none;transition:none}
  .btn,.cat-card,.dif-card,.insta-grid img{transition:none}
}
