/* ===================================================
   ÁTILACARS — Vistoria e Consultoria
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,500;0,600;0,700;1,700;0,800&family=Archivo+Black&display=swap');

:root{
  --blue: #3d4f8f;
  --blue-dark: #2c3a6c;
  --blue-light: #eef0f6;
  --navy: #14161f;
  --navy-2: #1b1e2a;
  --ink: #2b2d38;
  --gray: #63656f;
  --gray-light: #f6f6f4;
  --white: #ffffff;
  --green: #25d366;
  --radius: 12px;
  --shadow: 0 10px 26px -14px rgba(20,22,31,.16);
  --container: 1180px;
}

*,*::before,*::after{ box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html{ scroll-behavior: smooth; scrollbar-gutter: stable; }
body{
  margin:0;
  font-family:'Poppins', sans-serif;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  overflow-wrap: break-word;
}
img{ max-width:100%; display:block; }
a{ text-decoration:none; color:inherit; }
ul{ list-style:none; margin:0; padding:0; }
h1,h2,h3,h4{ margin:0; line-height:1.15; }
p{ margin:0; }

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

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:12.5px;
  font-weight:700;
  letter-spacing:.14em;
  text-transform:uppercase;
  color: var(--blue-dark);
  padding-bottom:4px;
  border-bottom: 2px solid var(--blue-dark);
  margin-bottom:22px;
}

.headline{
  font-family:'Archivo Black', 'Poppins', sans-serif;
  font-style: italic;
  text-transform:uppercase;
  letter-spacing: -0.5px;
  color: var(--ink);
}
.headline b, .headline strong, .headline .accent{
  color: var(--blue);
  font-style: italic;
}

.section-tag{
  font-size:14px;
  font-weight:700;
  letter-spacing:.16em;
  text-transform:uppercase;
  color: var(--blue);
  margin-bottom:10px;
  display:block;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  font-family:'Poppins',sans-serif;
  font-weight:700;
  font-size:14px;
  letter-spacing:.06em;
  text-transform:uppercase;
  padding:16px 30px;
  border-radius: 8px;
  border: none;
  cursor:pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  white-space:nowrap;
}
.btn-primary{
  background: var(--blue);
  color:#fff;
}
.btn-dark{
  background: var(--navy);
  color:#fff;
}
.btn-outline{
  background:transparent;
  color: var(--ink);
  border: 1.5px solid #dcdedb;
}
.btn-whatsapp{
  background: var(--green);
  color:#fff;
}
.btn-block{ width:100%; }

/* ===================== HEADER ===================== */
/* Solid background on purpose — backdrop-filter blur was dropped:
   iOS Safari needs the -webkit- prefix or it silently falls back to
   a half-transparent bar with no blur (page content shows through,
   looks messy while scrolling), and backdrop-filter on a sticky
   element is a known source of WebKit rendering glitches. Solid is
   bulletproof across every browser. */
.site-header{
  position: sticky;
  top:0;
  z-index:100;
  background: #ffffff;
  border-bottom: 1px solid #eceeea;
  transition: box-shadow .25s ease;
}
.site-header.scrolled{
  border-bottom-color: transparent;
  box-shadow: 0 8px 24px -18px rgba(20,22,31,.35);
}
.site-header .container{
  position:relative;
  z-index:96;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding-block:12px;
  transition: padding .25s ease;
}
.site-header.scrolled .container{ padding-block:8px; }

.brand{ display:flex; align-items:center; gap:10px; flex-shrink:0; }
.site-header .brand img{ height:50px; width:auto; transition: height .25s ease; }
.site-header.scrolled .brand img{ height:44px; }

.nav-links{
  display:flex;
  align-items:center;
  gap:clamp(16px, 2.2vw, 30px);
  flex-wrap:nowrap;
  min-width:0;
}
.nav-links a{
  font-size:14px;
  font-weight:600;
  color: var(--ink);
  position:relative;
  padding-block:4px;
  white-space:nowrap;
  border-radius:4px;
}
.nav-links a::after{
  content:'';
  position:absolute;
  left:0; bottom:-2px;
  width:0%; height:2px;
  background: var(--blue);
  transition: width .25s ease;
}
.nav-links a:focus-visible,
.header-phone:focus-visible,
.nav-toggle:focus-visible,
.btn:focus-visible{
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.header-actions{ display:flex; align-items:center; gap:16px; flex-shrink:0; }
.header-divider{
  width:1px; height:22px;
  background: #e2e4e0;
  flex-shrink:0;
}
.header-phone{
  display:flex;
  align-items:center;
  gap:7px;
  font-weight:700;
  font-size:13.5px;
  color: var(--ink);
  white-space:nowrap;
  transition: color .2s ease;
}
.header-phone svg{ color: var(--blue); flex-shrink:0; }

.header-actions .btn-primary{
  padding: 11px 22px;
  font-size:12.5px;
}
.btn-label-short{ display:none; }

.nav-toggle{
  display:none;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  width:42px; height:42px;
  background:var(--gray-light);
  border:1px solid #e7e9e7;
  border-radius:9px;
  cursor:pointer;
  padding:8px;
  flex-shrink:0;
  transition:background .2s ease, border-color .2s ease;
}
.site-header.open .nav-toggle{ background:var(--blue-light); border-color:#d9deef; }
.nav-toggle span{
  width:24px; height:2.5px; border-radius:2px;
  background: var(--ink);
  transition: all .25s ease;
}
.site-header.open .nav-toggle span:nth-child(1){ transform: translateY(7.5px) rotate(45deg); }
.site-header.open .nav-toggle span:nth-child(2){ opacity:0; }
.site-header.open .nav-toggle span:nth-child(3){ transform: translateY(-7.5px) rotate(-45deg); }

.nav-phone{
  display:none;
  align-items:center;
  gap:8px;
  font-weight:700;
  font-size:15px;
  color: var(--blue-dark);
}
.nav-phone svg{ color: var(--blue); flex-shrink:0; }

/* ===================== HERO ===================== */
.hero{
  padding-block: 70px 40px;
  background: var(--gray-light);
}
.hero .container{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 50px;
  align-items:center;
}
.hero h1{
  font-size: clamp(38px, 5.2vw, 62px);
}
.hero-lead{
  margin-top:22px;
  font-size:18px;
  line-height:1.7;
  color: var(--gray);
  max-width: 480px;
}
.hero-lead b{ color: var(--ink); }
.hero-ctas{
  display:flex;
  gap:16px;
  margin-top:34px;
  flex-wrap:wrap;
}
.hero-stats{
  display:flex;
  gap:34px;
  margin-top:46px;
  flex-wrap:wrap;
}
.hero-stats div strong{
  display:block;
  font-size:26px;
  color: var(--blue-dark);
  font-family:'Archivo Black', sans-serif;
}
.hero-stats div span{
  font-size:13px;
  color: var(--gray);
}
.hero-media{ position:relative; }
.hero-media img{ background:#fff; border-radius: var(--radius); }
.hero-caption{
  display:flex;
  align-items:center;
  gap:12px;
  margin-top:18px;
  padding-top:18px;
  border-top: 1px solid #e4e5e0;
}
.hero-caption svg{ color: var(--blue-dark); flex-shrink:0; }
.hero-caption strong{ display:block; font-size:14px; color: var(--ink); }
.hero-caption span{ font-size:12.5px; color: var(--gray); }

/* ===================== SECTION GENERIC ===================== */
section{ padding-block: 88px; }
section[id], footer[id]{ scroll-margin-top: 88px; }
.section-head{
  max-width: 640px;
  margin-bottom: 52px;
}
.section-head.center{ margin-inline:auto; text-align:center; }
.section-head h2{ font-size: clamp(28px, 3.6vw, 42px); }
.section-head p{
  margin-top:16px;
  color: var(--gray);
  font-size:16px;
  line-height:1.7;
}

.bg-light{ background: var(--gray-light); }

/* ===================== PLANOS ===================== */
.plans-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  align-items:stretch;
}
.plan-card{
  background:#fff;
  border-radius: var(--radius);
  border: 1px solid #e7e8e3;
  display:flex;
  flex-direction:column;
  padding: 40px 36px 32px;
  transition: border-color .2s ease, transform .2s ease;
}
.plan-kicker{
  font-size:12px;
  font-weight:700;
  letter-spacing:.14em;
  color: var(--gray);
  text-transform:uppercase;
}
.plan-card h3{
  font-size:24px;
  margin-top:10px;
  color: var(--ink);
}
.plan-tagline{
  margin-top:8px;
  font-size:14.5px;
  color: var(--blue-dark);
  font-weight:600;
}
.plan-desc{
  margin-top:18px;
  font-size:15px;
  line-height:1.75;
  color: var(--gray);
}
.plan-features{
  margin-top:24px;
  padding-top:22px;
  border-top: 1px solid #eeefea;
  display:flex;
  flex-direction:column;
  gap:13px;
}
.plan-features li{
  display:flex;
  align-items:flex-start;
  gap:11px;
  font-size:14.5px;
  color: var(--ink);
  line-height:1.55;
}
.plan-features li svg{ flex-shrink:0; margin-top:3px; color: var(--blue-dark); }
.plan-note{
  margin-top:22px;
  padding: 14px 16px;
  background: var(--gray-light);
  border-left: 2px solid var(--blue-dark);
  font-size:13px;
  line-height:1.6;
  color: var(--gray);
  border-radius: 0 8px 8px 0;
}
.plan-card .plan-footer{
  margin-top:28px;
  display:flex;
}
.plan-card .plan-footer .btn{ width:100%; }

/* ===================== SOBRE / EXPLICACAO ===================== */
.split{
  display:grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 60px;
  align-items:center;
}
.split.reverse .split-media{ order:2; }
.split-media{ position:relative; }
.split-media img{
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.split-text p{
  color: var(--gray);
  font-size:16.5px;
  line-height:1.8;
  margin-top:18px;
}
.split-text p + p{ margin-top:14px; }
.split-text .btn{ margin-top:30px; }

.check-list{ margin-top:26px; display:flex; flex-direction:column; gap:16px; }
.check-list li{
  display:flex;
  align-items:flex-start;
  gap:14px;
  font-size:15.5px;
  color: var(--ink);
  line-height:1.6;
}
.check-list li svg{
  flex-shrink:0;
  color: var(--blue-dark);
  width:20px; height:20px;
  margin-top:2px;
}

/* ===================== GALERIA ===================== */
.gallery-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  gap: 16px;
}
.gallery-grid a{
  display:block;
  border-radius: 12px;
  overflow:hidden;
  position:relative;
}
.gallery-grid img{
  width:100%; height:100%; object-fit:cover;
  transition: transform .4s ease;
}
.gallery-grid a::after{
  content:'';
  position:absolute; inset:0;
  background: linear-gradient(180deg, transparent 55%, rgba(18,20,31,.55));
  opacity:0;
  transition: opacity .3s ease;
}
.gallery-grid a.tall{ grid-row: span 2; }

/* ===================== CTA BANNER ===================== */
.cta-banner{
  background: var(--navy);
  border-radius: 18px;
  padding: 56px 60px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:30px;
  flex-wrap:wrap;
  border-top: 3px solid var(--blue);
}
.cta-banner h2{
  color:#fff;
  font-size: clamp(26px,3.2vw,36px);
  max-width:520px;
}
.cta-banner .accent{ color: var(--blue); font-style:italic; }
.cta-banner p{ color:#a9adc4; margin-top:12px; font-size:15px; position:relative; }
.cta-actions{ display:flex; gap:14px; position:relative; flex-wrap:wrap; }

/* ===================== FOOTER ===================== */
.site-footer{
  background: var(--navy-2);
  color:#c4c6da;
  padding-block: 60px 26px;
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand img{ height:44px; margin-bottom:16px; filter: brightness(0) invert(1); }
.footer-brand p{ font-size:14px; line-height:1.7; color:#9fa2ba; max-width: 320px; }
.footer-col h4{
  color:#fff;
  font-size:14px;
  text-transform:uppercase;
  letter-spacing:.1em;
  margin-bottom:18px;
}
.footer-col ul{ display:flex; flex-direction:column; gap:12px; }
.footer-col a{ font-size:14px; color:#9fa2ba; transition: color .2s ease; }
.footer-col li{ display:flex; align-items:center; gap:10px; }
.footer-col svg{ color: var(--blue); flex-shrink:0; }

.social-row{ display:flex; gap:12px; margin-top:18px; }
.social-row a{
  width:38px; height:38px;
  display:flex; align-items:center; justify-content:center;
  background: rgba(255,255,255,.06);
  border-radius:50%;
  color:#fff;
  transition: background .2s ease, transform .2s ease;
}

.footer-bottom{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding-top:24px;
  font-size:13px;
  color:#797c92;
  flex-wrap:wrap;
  gap:10px;
}

/* WhatsApp float button */
.wa-float{
  position:fixed;
  bottom:26px; right:26px;
  width:56px; height:56px;
  background: var(--green);
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 8px 18px -6px rgba(20,22,31,.35);
  z-index:200;
}
.wa-float svg{ color:#fff; width:27px; height:27px; }
.site-header.open ~ .wa-float{ opacity:0; pointer-events:none; }

/* Reveal on scroll (progressive enhancement — visible by default, JS only adds a subtle lift) */
.reveal{ opacity:1; transform:none; }
.reveal.reveal-ready{ opacity:0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.reveal-ready.in{ opacity:1; transform:none; }

/* All :hover effects live here, gated behind (hover: hover). Touch
   screens have no mouseout event, so a plain :hover rule can stay
   "stuck" active after a tap until the user taps elsewhere — the
   button/card/link looks visually stuck in its hover color. Scoping
   hover to devices that actually have a real pointer avoids that. */
@media (hover: hover) and (pointer: fine){
  .btn-primary:hover{ background: var(--blue-dark); transform: translateY(-1px); }
  .btn-dark:hover{ background:#000; transform: translateY(-1px); }
  .btn-outline:hover{ border-color: var(--blue); color: var(--blue); transform: translateY(-1px); }
  .btn-whatsapp:hover{ background:#1eb955; transform: translateY(-1px); }
  .nav-links a:hover::after{ width:100%; }
  .header-phone:hover{ color: var(--blue-dark); }
  .plan-card:hover{ border-color: var(--blue); transform: translateY(-3px); }
  .gallery-grid a:hover img{ transform: scale(1.08); }
  .gallery-grid a:hover::after{ opacity:1; }
  .footer-col a:hover{ color:#fff; }
  .social-row a:hover{ background: var(--blue); transform: translateY(-3px); }
}

/* ===================== RESPONSIVE ===================== */

/* Keep the desktop links clear of the logo and contact actions. */
@media (max-width: 1120px){
  .header-phone, .header-divider{ display:none; }
  .nav-toggle{ display:flex; }

  .nav-links{
    display:flex;
    position:absolute;
    z-index:95;
    top:calc(100% - 1px);
    right:24px;
    width:min(360px, calc(100vw - 48px));
    background:#fff;
    flex-direction:column;
    align-items:flex-start;
    padding:12px;
    gap:2px;
    border:1px solid #eceefa;
    border-radius:0 0 14px 14px;
    box-shadow:0 18px 38px -20px rgba(20,22,31,.3);
    max-height:calc(100vh - 80px);
    max-height:calc(100dvh - 80px);
    overflow-y:auto;
    overscroll-behavior:contain;
    opacity:0;
    transform: translateY(-8px);
    pointer-events:none;
    visibility:hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .site-header.open .nav-links{
    opacity:1;
    transform:none;
    pointer-events:auto;
    visibility:visible;
  }
  .nav-links a{ width:100%; min-height:44px; display:flex; align-items:center; padding:10px 12px; border-radius:8px; }
  .nav-links a::after{ display:none; }
  .nav-links .nav-phone{ display:flex; border-top:1px solid #eceefa; margin-top:8px; padding-top:16px; }

  .nav-backdrop{
    display:block;
    position:fixed;
    inset:0;
    background: rgba(15,16,24,.35);
    opacity:0;
    pointer-events:none;
    transition: opacity .2s ease;
    z-index:90;
  }
  .site-header.open + .nav-backdrop{
    opacity:1;
    pointer-events:auto;
  }
}
@media (min-width: 1121px){
  .nav-backdrop{ display:none; }
}
@media (max-width: 1120px) and (hover: hover) and (pointer: fine){
  .nav-links a:hover,
  .nav-toggle:hover{ background:var(--blue-light); }
}

@media (max-width: 980px){
  .hero .container{ grid-template-columns:1fr; }
  .hero-media{ order:-1; max-width:420px; margin-inline:auto; }
  .split{ grid-template-columns:1fr; }
  .split.reverse .split-media{ order:0; }
  .plans-grid{ grid-template-columns:1fr; max-width:480px; margin-inline:auto; }
  .footer-grid{ grid-template-columns:1fr; gap:32px; }
  .gallery-grid{ grid-template-columns: repeat(2,1fr); grid-auto-rows:170px; }
  .cta-banner{ flex-direction:column; text-align:center; padding:44px 28px; }
  .cta-banner h2{ max-width:100%; }
  .cta-actions{ justify-content:center; }
}

@media (max-width: 760px){
  section{ padding-block:56px; }
  .section-head{ margin-bottom:36px; }
  .gallery-grid{ grid-template-columns: repeat(2,1fr); grid-auto-rows:150px; }
  .gallery-grid a.tall{ grid-row: span 1; }
  .split{ gap:34px; }
  .plan-card{ padding: 32px 26px 28px; }
  .footer-bottom{ justify-content:center; text-align:center; }
}

@media (max-width: 640px){
  .container{ padding-inline: 20px; }
  .site-header .brand img{ height:44px; }
  .site-header.scrolled .brand img{ height:40px; }
  .nav-links{ right:20px; width:calc(100vw - 40px); }
  .header-actions{ gap:10px; }
  .header-actions .btn-primary{ padding:10px 16px; font-size:12px; }
  .hero{ padding-block:44px 32px; }
  .hero-ctas{ gap:12px; }
  .hero-stats{ gap:22px 28px; margin-top:34px; }
  .cta-banner{ padding:36px 22px; border-radius:14px; }
  .cta-actions{ width:100%; flex-direction:column; }
  .plan-features li{ font-size:14px; }
}

@media (max-width: 520px){
  .hero-ctas .btn, .cta-actions .btn{ width:100%; }
  .hero-stats{ gap:20px 26px; }
  .plan-card{ padding: 26px 20px 24px; }
  .plan-card h3{ font-size:21px; }
  .choice-card{ padding:14px 16px; }
}

@media (max-width: 430px){
  .btn-label-full{ display:none; }
  .btn-label-short{ display:inline; }
}

@media (max-width: 380px){
  .container{ padding-inline: 16px; }
  .site-header .brand img{ height:40px; }
  .site-header.scrolled .brand img{ height:36px; }
  .nav-links{ right:16px; width:calc(100vw - 32px); }
  .header-actions .btn-primary{ padding:9px 13px; font-size:11.5px; letter-spacing:.03em; }
  .header-actions{ gap:8px; }
  .hero-stats{ gap:18px 22px; }
  .gallery-grid{ grid-template-columns: repeat(2,1fr); grid-auto-rows:130px; gap:10px; }
}
