/* ==========================================================================
   CLS Higienização & Saúde — folha de estilo única
   Paleta e tipografia originais do site (Elementor) reconstruídas em CSS puro.
   ========================================================================== */

/* ---------- Fontes ---------- */
@font-face {
  font-family: 'Clash Display';
  src: url('../fonts/ClashDisplay-Variable.ttf') format('truetype-variations'),
       url('../fonts/ClashDisplay-Variable.ttf') format('truetype');
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('../fonts/Satoshi-Variable.ttf') format('truetype-variations'),
       url('../fonts/Satoshi-Variable.ttf') format('truetype');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --navy:  #244F60;   /* cor institucional */
  --ink:   #0D2140;   /* azul profundo (depoimentos) */
  --green: #0DD827;   /* CTA / badges */
  --green-dark: #0BB921;
  --paper: #FBFCFC;   /* fundo alternado */
  --star:  #749DBC;
  --line:  #E5E7EB;
  --text:  #3E4A52;
  --white: #FFFFFF;

  --display: 'Clash Display', 'Trebuchet MS', sans-serif;
  --body: 'Satoshi', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap: 1200px;
  --radius: 30px;
  --shadow: 0 0 10px -3px rgba(0, 0, 0, .5);
  --header-h: 84px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--navy); margin: 0; line-height: 1.15; font-weight: 500; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 0 0 12px 0;
  font-family: var(--display);
}
.skip-link:focus { left: 0; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  border-block: 1px solid rgba(255, 255, 255, .35);
  background: rgba(36, 79, 96, .18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background .3s ease, border-color .3s ease;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 46px; height: 46px; border-radius: 50%; }
.brand span {
  font-family: var(--display); font-weight: 600; font-size: 15px;
  letter-spacing: .01em; color: #fff; text-transform: uppercase;
}
.site-nav ul { display: flex; align-items: center; gap: 28px; }
.site-nav a {
  font-family: var(--display); font-weight: 600; font-size: 15px;
  text-transform: uppercase; letter-spacing: .04em;
  color: #fff; text-decoration: none; padding: 6px 2px;
  position: relative;
}
.site-nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--green); transition: width .25s ease;
}
.site-nav a:hover::after, .site-nav a:focus-visible::after { width: 100%; }

/* estado após rolagem */
.site-header.is-scrolled { background: rgba(255, 255, 255, .96); border-color: var(--line); box-shadow: 0 2px 14px rgba(0,0,0,.06); }
.site-header.is-scrolled .brand span,
.site-header.is-scrolled .site-nav a { color: var(--navy); }
.site-header.is-scrolled .nav-toggle span { background: var(--navy); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent;
  cursor: pointer; padding: 10px; flex-direction: column; justify-content: space-between;
}
.nav-toggle span { display: block; height: 2px; width: 100%; background: #fff; border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

/* ---------- Botões ---------- */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-family: var(--display); font-weight: 500; font-size: 17px;
  padding: 16px 34px; border-radius: var(--radius); border: 1px solid transparent;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.btn-green { background: var(--green); color: #fff; box-shadow: 0 10px 24px -12px rgba(13, 216, 39, .9); }
.btn-green:hover { background: var(--green-dark); transform: translateY(-2px); }

.badge {
  display: inline-block; align-self: center;
  font-family: var(--display); font-weight: 400; font-size: 12px; letter-spacing: .12em;
  text-transform: uppercase; color: #fff; background: var(--green);
  padding: 9px 20px; border-radius: var(--radius); margin-bottom: 20px;
}
.badge-outline { background: transparent; border: 1px solid rgba(255, 255, 255, .85); }

/* ---------- Seções ---------- */
.section { padding: 96px 0; }
.section-paper { background: var(--paper); }

.center-col { display: flex; flex-direction: column; align-items: center; text-align: center; }
.h-display { font-size: clamp(28px, 4vw, 44px); max-width: 850px; margin-bottom: 20px; }
.lead { font-weight: 300; font-size: clamp(18px, 2vw, 23px); max-width: 800px; margin-bottom: 20px; color: var(--text); }
.lead-strong { font-weight: 600; color: var(--navy); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; padding: calc(var(--header-h) + 40px) 20px 60px;
  display: flex; align-items: center; justify-content: center;
  background: url('../img/hero-higienizacao-sofa.webp') 50% 50% / cover no-repeat #244F60;
  box-shadow: inset 0 0 10px 0 rgba(255, 255, 255, .5);
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.45) 45%, rgba(13,33,64,.6) 100%);
}
.hero-card {
  position: relative; z-index: 1;
  width: min(900px, 100%); min-height: 500px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 20px; padding: 48px 40px; text-align: center;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.hero-card h1 {
  color: #fff; font-weight: 500; max-width: 850px;
  font-size: clamp(28px, 4.4vw, 46px); text-wrap: balance;
}
.hero-card p {
  color: rgba(255, 255, 255, .92); font-weight: 300; max-width: 800px;
  font-size: clamp(18px, 2vw, 23px);
}

/* ---------- Alerta de saúde ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  margin-top: 60px; width: 100%; text-align: left;
}
.split-text h3 { font-size: clamp(24px, 3vw, 35px); margin-bottom: 24px; }
.dot-list { display: flex; flex-direction: column; gap: 16px; }
.dot-list li { position: relative; padding-left: 26px; font-size: clamp(17px, 1.7vw, 21px); font-weight: 400; }
.dot-list li::before {
  content: ''; position: absolute; left: 0; top: .62em;
  width: 11px; height: 11px; border-radius: 50%; background: var(--navy);
}
.split-media img { border-radius: var(--radius); width: 100%; object-fit: cover; box-shadow: var(--shadow); }

/* ---------- Cards de serviço ---------- */
.cards {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 24px;
  margin-top: 44px; width: 100%;
}
.card {
  width: 300px; display: flex; flex-direction: column;
  border-radius: var(--radius); overflow: hidden; background: #fff;
  box-shadow: 0 0 10px -5px rgba(0, 0, 0, .5);
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 32px -18px rgba(36, 79, 96, .55); }
.card img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.card-body { padding: 20px; text-align: left; }
.card-body h3 { font-size: 18px; font-weight: 500; margin-bottom: 10px; }
.card-body p { font-weight: 300; font-size: 17px; }

/* ---------- Diferenciais ---------- */
.features {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  margin-top: 44px; width: 100%;
}
.feature {
  background: #fff; border-radius: var(--radius); padding: 28px 24px;
  box-shadow: var(--shadow); text-align: left;
  display: flex; flex-direction: column; gap: 14px;
}
.feature-icon { width: 34px; height: 34px; fill: var(--navy); }
.feature h3 { font-size: 20px; font-weight: 600; }
.feature p { font-weight: 300; font-size: 16px; }

/* ---------- Depoimentos ---------- */
.section-testi { padding-inline: 0; overflow: hidden; }
.testi-head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end;
  margin-bottom: 12px;
}
.testi-head .h-display { font-size: clamp(26px, 3vw, 35px); max-width: 520px; margin-bottom: 0; }
.testi-head .badge { align-self: start; }
.testi-head > div { display: flex; flex-direction: column; align-items: flex-start; }
.testi-head > p { font-size: clamp(18px, 2vw, 23px); max-width: 480px; }

.marquee-container {
  display: flex; flex-direction: column; gap: 24px; padding: 32px 0; width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee { display: flex; width: max-content; }
.marquee-track { display: flex; gap: 24px; padding-right: 24px; width: max-content; will-change: transform; }
.marquee-left .marquee-track { animation: cls-scroll-left 45s linear infinite; }
.marquee-right .marquee-track { animation: cls-scroll-right 40s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
@keyframes cls-scroll-left  { from { transform: translateX(0); }    to { transform: translateX(-50%); } }
@keyframes cls-scroll-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }

.testi {
  width: 420px; flex-shrink: 0; margin: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 32px;
  display: flex; flex-direction: column; gap: 20px;
  box-shadow: 0 4px 6px rgba(0,0,0,.02), 0 15px 35px rgba(0,0,0,.03);
  transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}
.testi:hover { border-color: #D1D5DB; box-shadow: 0 10px 20px rgba(0,0,0,.06); transform: translateY(-4px); }
.stars { color: var(--star); font-size: 1.5rem; letter-spacing: 2px; line-height: 1; }
.testi blockquote { margin: 0; font-size: 1.05rem; line-height: 1.6; color: rgba(13, 33, 64, .85); flex-grow: 1; }
.testi figcaption { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 600; font-size: 1.05rem;
}
.testi-name { font-family: var(--display); font-weight: 600; color: var(--ink); font-size: 1.1rem; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 42% 1fr; gap: 56px; align-items: start; }
.faq-intro .h-display { font-size: clamp(26px, 3vw, 35px); }
.faq-intro p { font-weight: 300; font-size: clamp(17px, 1.9vw, 21px); }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: 18px; background: #fff; overflow: hidden; }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 20px 56px 20px 22px; position: relative;
  font-family: var(--display); font-weight: 600; font-size: 17px; color: var(--navy);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ''; position: absolute; right: 22px; top: 50%; width: 11px; height: 11px;
  border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy);
  transform: translateY(-70%) rotate(45deg); transition: transform .25s ease;
}
.faq-item[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq-item[open] { border-color: var(--navy); }
.faq-answer { padding: 0 22px 22px; font-weight: 300; font-size: 17px; }

/* ---------- Chamada final ---------- */
.section-cta {
  position: relative; color: #fff;
  background: url('../img/atendimento-domicilio.webp') center center / cover no-repeat var(--navy);
}
@media (min-width: 1025px) { .section-cta { background-attachment: fixed; } }
.section-cta::before { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, .55); }
.section-cta .wrap { position: relative; z-index: 1; }
.section-cta h2, .section-cta h3 { color: #fff; }
.section-cta .lead { color: rgba(255, 255, 255, .92); }
.cta-sub { font-size: clamp(21px, 2.4vw, 25px); margin-bottom: 16px; }
.rule { width: min(100%, 900px); border: 0; border-top: 1px solid rgba(255, 255, 255, .45); margin: 34px 0; }
.rule-dark { border-top-color: rgba(36, 79, 96, .25); margin: 40px 0 24px; width: 100%; }

/* ---------- Rodapé ---------- */
.site-footer { padding: 90px 0 40px; background: #fff; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.footer-brand img { width: 100px; height: auto; border-radius: 20px; margin-bottom: 20px; }
.footer-brand h2 { font-size: clamp(22px, 2.4vw, 25px); max-width: 450px; margin-bottom: 12px; }
.footer-brand p { font-weight: 300; font-size: 18px; max-width: 430px; }
.footer-info { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 20px; }
.info-block h3 { font-size: 18px; font-weight: 600; margin-bottom: 2px; }
.info-block p { font-weight: 300; font-size: 18px; }
.info-block a { text-decoration: none; }
.info-block a:hover { color: var(--navy); text-decoration: underline; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-family: var(--display); font-size: 15px; color: var(--navy);
}
.footer-links { display: flex; gap: 22px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

/* ---------- Botão flutuante do WhatsApp ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 120;
  width: 62px; height: 62px; display: block;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .28));
  animation: wa-shake 6s ease-in-out 3s infinite;
  transition: transform .2s ease;
}
.wa-float img { width: 100%; height: 100%; }
.wa-float:hover { transform: scale(1.07); }
@keyframes wa-shake {
  0%, 92%, 100% { transform: rotate(0); }
  93% { transform: rotate(-10deg); }
  95% { transform: rotate(10deg); }
  97% { transform: rotate(-6deg); }
}

/* ---------- Animação de entrada ---------- */
.reveal { opacity: 0; filter: blur(12px); transform: translateY(40px);
  transition: opacity 1s cubic-bezier(.16,1,.3,1), filter 1s cubic-bezier(.16,1,.3,1), transform 1s cubic-bezier(.16,1,.3,1); }
.reveal.is-visible { opacity: 1; filter: blur(0); transform: none; }
.no-js .reveal { opacity: 1; filter: none; transform: none; }

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 1024px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .faq-grid { grid-template-columns: 1fr; gap: 36px; }
  .testi-head { grid-template-columns: 1fr; align-items: start; }
  .section { padding: 76px 0; }
}

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split-media { order: -1; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 767px) {
  :root { --header-h: 68px; }

  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; inset: 100% 0 auto 0;
    background: #fff; border-bottom: 1px solid var(--line);
    display: none; padding: 12px 20px 20px; box-shadow: 0 16px 24px -18px rgba(0,0,0,.5);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 4px; }
  .site-nav a { color: var(--navy); display: block; padding: 12px 0; width: 100%; }
  .brand span { display: none; }

  .hero { min-height: 88svh; }
  .hero-card { min-height: 0; padding: 36px 22px; gap: 16px; }
  .section { padding: 64px 0; }
  .features { grid-template-columns: 1fr; }
  .cards { gap: 20px; }
  .card { width: 100%; max-width: 340px; }
  .testi { width: 300px; padding: 24px; }
  .footer-info { grid-template-columns: 1fr; gap: 22px; }
  .footer-bottom { flex-direction: column; text-align: left; }
  .wa-float { width: 56px; height: 56px; right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none !important; }
  .reveal { opacity: 1; filter: none; transform: none; transition: none; }
  .wa-float { animation: none; }
}

/* ==========================================================================
   Páginas internas (política de privacidade / termos de uso)
   ========================================================================== */
.legal { padding: calc(var(--header-h) + 72px) 0 90px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 10px; }
.legal .legal-date { font-size: 15px; color: #6B7A83; margin-bottom: 36px; }
.legal h2 { font-size: clamp(21px, 2.4vw, 26px); margin: 36px 0 12px; }
.legal p, .legal li { font-weight: 300; font-size: 17px; margin-bottom: 12px; }
.legal ul { list-style: disc; padding-left: 22px; }
.legal a { color: var(--navy); }
.legal-back { display: inline-block; margin-top: 40px; font-family: var(--display); color: var(--navy); text-decoration: none; }
.legal-back:hover { text-decoration: underline; }
.site-header.legal-header { position: sticky; background: rgba(255,255,255,.96); border-color: var(--line); }
.site-header.legal-header .brand span, .site-header.legal-header .site-nav a { color: var(--navy); }
.site-header.legal-header .nav-toggle span { background: var(--navy); }
