/* =========================================================
   Casa Car Tintas — Landing page
   ========================================================= */

:root {
  --navy: #0b4a8f;
  --blue: #0a8bd0;
  --blue-light: #4fb6ee;
  --ink: #0c1118;
  --ink-2: #3b4452;
  --muted: #6b7584;
  --bg: #ffffff;
  --soft: #f3f6fa;
  --line: #e3e8ef;
  --radius: 22px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; overflow-x: clip; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
::selection { background: var(--blue); color: #fff; }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 2000;
  display: grid; place-items: center;
  background: var(--bg);
  transition: opacity .6s var(--ease), visibility .6s;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader-drop {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue);
  animation: drop 1s var(--ease) infinite alternate;
}
@keyframes drop {
  from { transform: scale(.6); box-shadow: 0 0 0 0 rgba(10,139,208,.4); }
  to   { transform: scale(1.4); box-shadow: 0 0 0 26px rgba(10,139,208,0); }
}

/* ---------- Buttons ---------- */
.btn { font-weight: 600; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s; }
.btn-lg { padding: .9rem 1.6rem; font-size: 1rem; }
.btn-sm { padding: .5rem 1.1rem; }
.btn-brand { background: var(--navy); color: #fff; border: 0; box-shadow: 0 10px 30px -10px rgba(11,74,143,.6); }
.btn-brand:hover, .btn-brand:focus-visible { background: var(--blue); color: #fff; transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(10,139,208,.7); }
.btn-ghost { background: rgba(255,255,255,.7); backdrop-filter: blur(8px); border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { background: #fff; border-color: var(--ink); color: var(--ink); transform: translateY(-2px); }
.btn-light-brand { background: #fff; color: var(--navy); border: 0; }
.btn-light-brand:hover { background: var(--blue-light); color: #fff; transform: translateY(-2px); }

/* ---------- Navbar ---------- */
.navbar { padding: 1.1rem 0; transition: padding .4s var(--ease), background .4s, box-shadow .4s; }
.navbar.scrolled { padding: .55rem 0; background: rgba(255,255,255,.82); backdrop-filter: saturate(160%) blur(14px); box-shadow: 0 1px 0 var(--line); }
.navbar-brand img { height: 52px; width: auto; transition: height .4s var(--ease); }
.navbar.scrolled .navbar-brand img { height: 42px; }
.nav-link { font-weight: 500; color: var(--ink-2); position: relative; padding: .5rem .9rem !important; }
.nav-link::after { content: ""; position: absolute; left: .9rem; right: .9rem; bottom: .25rem; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.nav-link:hover, .nav-link.active { color: var(--ink); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.navbar-toggler { border: 0; width: 44px; height: 44px; display: grid; place-content: center; gap: 6px; box-shadow: none !important; }
.toggler-line { display: block; width: 24px; height: 2px; background: var(--ink); transition: transform .35s var(--ease); }
.navbar-toggler[aria-expanded="true"] .toggler-line:first-child { transform: translateY(4px) rotate(45deg); }
.navbar-toggler[aria-expanded="true"] .toggler-line:last-child  { transform: translateY(-4px) rotate(-45deg); }
@media (max-width: 991.98px) {
  .navbar-collapse { background: #fff; border-radius: 18px; padding: 1rem; margin-top: .75rem; box-shadow: 0 20px 40px -20px rgba(12,17,24,.25); }
  .navbar-collapse .btn { width: 100%; margin-top: .5rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 85% 40%, rgba(10,139,208,.10), transparent 60%),
    radial-gradient(800px 500px at 0% 100%, rgba(11,74,143,.06), transparent 60%),
    var(--bg);
}
#paintCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero .container { z-index: 2; pointer-events: none; }
.hero .container a, .hero .container button { pointer-events: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-weight: 600; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--navy);
  padding: .45rem .9rem; border-radius: 999px;
  background: rgba(10,139,208,.08);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(10,139,208,.2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(10,139,208,0); } }

.hero-title {
  font-family: var(--font-display);
  font-style: italic; font-weight: 900;
  font-size: clamp(3.4rem, 9vw, 7.6rem);
  line-height: .9; letter-spacing: -.01em; text-transform: uppercase;
  margin: 1.4rem 0 1.6rem;
}
.hero-title .line { display: block; overflow: hidden; padding-right: .1em; }
.hero-title .reveal-line { display: inline-block; }
.hero-title .accent {
  background: linear-gradient(100deg, var(--navy) 0%, var(--blue) 55%, var(--blue-light) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-2); max-width: 32rem; margin-bottom: 2rem; line-height: 1.6; }
.hero-rating { display: flex; align-items: center; gap: .75rem; margin-top: 2rem; color: var(--muted); font-size: .95rem; }
.hero-rating .stars { color: #f5b400; letter-spacing: 2px; }
.hero-rating strong { color: var(--ink); }

.color-chip {
  position: absolute; right: 4vw; bottom: 9vh; z-index: 2;
  display: flex; align-items: center; gap: .7rem;
  padding: .55rem 1rem .55rem .55rem; border-radius: 999px;
  background: rgba(255,255,255,.75); backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  font-weight: 600; font-size: .9rem;
  box-shadow: 0 10px 30px -18px rgba(12,17,24,.4);
}
.color-chip .swatch { width: 28px; height: 28px; border-radius: 50%; background: var(--blue); box-shadow: inset 0 -4px 8px rgba(0,0,0,.25), inset 0 3px 6px rgba(255,255,255,.5); transition: background .8s var(--ease); }

.scroll-hint { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 2; width: 26px; height: 42px; border: 2px solid var(--ink-2); border-radius: 20px; opacity: .55; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--ink-2); animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }

@media (max-width: 991.98px) {
  .hero { align-items: flex-end; padding-top: 52svh; padding-bottom: 70px; }
  .color-chip { top: 96px; bottom: auto; right: 16px; font-size: .8rem; }
  .scroll-hint { display: none; }
}

/* ---------- Marquee ---------- */
.marquee { background: var(--ink); color: #fff; overflow: hidden; padding: 1.1rem 0; transform: rotate(-1.2deg); margin: -10px -2vw 0; position: relative; z-index: 3; }
.marquee-track { display: flex; gap: 2rem; width: max-content; animation: marquee 32s linear infinite; }
.marquee span { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 1.6rem; text-transform: uppercase; white-space: nowrap; }
.marquee i { font-style: normal; color: var(--blue); align-self: center; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(5rem, 11vw, 9rem) 0; position: relative; }
.section-soft { background: var(--soft); }
.section-dark { background: var(--ink); color: #fff; overflow: hidden; }

.section-tag { display: inline-block; font-weight: 600; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--blue); margin-bottom: 1rem; }
.section-tag::before { content: ""; display: inline-block; width: 28px; height: 2px; background: currentColor; vertical-align: middle; margin-right: .7rem; }
.section-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 5vw, 4rem); line-height: .98; text-transform: uppercase; margin-bottom: 1.5rem; }
.section-title em { font-style: italic; color: var(--blue); }
.section-text { color: var(--ink-2); font-size: 1.1rem; line-height: 1.7; margin-bottom: 2rem; }
.light { color: #fff; }
.section-text.light { color: rgba(255,255,255,.72); }
.section-tag.light { color: var(--blue-light); }
.section-title.light em { color: var(--blue-light); }

/* ---------- Sobre ---------- */
.photo-frame { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3.4; box-shadow: 0 40px 80px -40px rgba(11,74,143,.5); }
.photo-frame img { width: 100%; height: 118%; object-fit: cover; object-position: 15% 35%; display: block; will-change: transform; }
.photo-badge { position: absolute; left: 20px; bottom: 20px; display: flex; align-items: center; gap: .8rem; padding: .8rem 1.2rem; border-radius: 16px; background: rgba(255,255,255,.9); backdrop-filter: blur(10px); }
.photo-badge .big { font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: 2.8rem; line-height: 1; color: var(--navy); }
.photo-badge .small { font-size: .85rem; font-weight: 600; line-height: 1.2; color: var(--ink-2); }

.stat { border-left: 2px solid var(--line); padding-left: 1rem; }
.stat .num { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 3.4vw, 2.6rem); color: var(--navy); line-height: 1; }
.stat .lbl { font-size: .85rem; color: var(--muted); }

/* ---------- Feature cards ---------- */
.feature-card {
  position: relative; height: 100%;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem; overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s;
  transform-style: preserve-3d;
}
.feature-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(10,139,208,.12), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
.feature-card:hover { border-color: transparent; box-shadow: 0 30px 60px -30px rgba(11,74,143,.45); }
.feature-card:hover::before { opacity: 1; }
.feature-card .icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  font-size: 1.5rem; color: #fff; margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  box-shadow: 0 12px 24px -12px rgba(10,139,208,.8);
  transition: transform .5s var(--ease);
}
.feature-card:hover .icon { transform: translateZ(30px) rotate(-6deg) scale(1.06); }
.feature-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; text-transform: uppercase; margin-bottom: .6rem; position: relative; }
.feature-card p { color: var(--ink-2); margin: 0; line-height: 1.6; position: relative; }

.brands { margin-top: 4rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 2.5rem; }
.brands-label { font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.brands ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2.5rem; list-style: none; margin: 0; padding: 0; }
.brands li { font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 1.7rem; text-transform: uppercase; color: #a5afbd; transition: color .3s; }
.brands li:hover { color: var(--navy); }
.brands li:last-child { font-size: 1rem; font-style: normal; font-weight: 500; text-transform: none; font-family: var(--font-body); }

/* ---------- Vídeo ---------- */
.splash-bg {
  position: absolute; width: 900px; height: 900px; right: -200px; top: 50%; transform: translateY(-50%);
  background: radial-gradient(circle, rgba(10,139,208,.35), transparent 60%);
  filter: blur(40px);
}
.phone {
  position: relative; margin: 0 auto;
  width: min(340px, 78vw); aspect-ratio: 9 / 16;
  border-radius: 38px; padding: 10px;
  background: linear-gradient(145deg, #2a313c, #0a0d12);
  box-shadow: 0 50px 100px -30px rgba(10,139,208,.55), inset 0 0 0 1px rgba(255,255,255,.08);
}
.phone-video { width: 100%; height: 100%; object-fit: cover; border-radius: 30px; display: block; background: var(--blue); }
.sound-toggle {
  position: absolute; right: 24px; bottom: 24px;
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: rgba(0,0,0,.45); color: #fff; backdrop-filter: blur(6px);
  font-size: 1.2rem; display: grid; place-items: center;
  transition: background .3s, transform .3s var(--ease);
}
.sound-toggle:hover { background: var(--blue); transform: scale(1.08); }

.agenda-teaser {
  margin-top: 2.5rem; display: flex; gap: 1rem; align-items: center;
  padding: 1.1rem 1.3rem; border-radius: 18px;
  border: 1px dashed rgba(255,255,255,.25);
  background: rgba(255,255,255,.04);
}
.agenda-teaser i { font-size: 1.8rem; color: var(--blue-light); }
.agenda-teaser strong { display: block; }
.agenda-teaser span { color: rgba(255,255,255,.6); font-size: .95rem; }
a.agenda-teaser { color: #fff; text-decoration: none; transition: border-color .2s, background .2s; }
a.agenda-teaser:hover { border-color: var(--blue-light); background: rgba(255,255,255,.08); }
.agenda-teaser .bi-arrow-right { font-size: 1.2rem; }

/* ---------- Localização ---------- */
.contact-card { height: 100%; background: var(--soft); border-radius: var(--radius); padding: 2rem; display: flex; flex-direction: column; gap: 1.4rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-item > i { flex: 0 0 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: #fff; color: var(--navy); font-size: 1.2rem; box-shadow: 0 6px 16px -10px rgba(11,74,143,.5); }
.contact-item .k { display: block; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .15rem; }
.contact-item .v { display: block; font-weight: 600; line-height: 1.45; text-decoration: none; }
.contact-item a.v:hover { color: var(--blue); }
.contact-card .btn { margin-top: auto !important; }
.map-wrap { height: 100%; min-height: 420px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map-wrap iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; filter: saturate(.9); }

/* ---------- CTA ---------- */
.cta { padding: 0 0 clamp(5rem, 10vw, 8rem); }
.cta-box {
  position: relative; overflow: hidden; text-align: center; color: #fff;
  border-radius: 32px; padding: clamp(3rem, 7vw, 5.5rem) 1.5rem;
  background: linear-gradient(120deg, var(--navy), var(--blue));
}
.cta-box::after {
  content: ""; position: absolute; inset: -40%;
  background: conic-gradient(from 0deg, transparent, rgba(255,255,255,.18), transparent 30%);
  animation: spin 9s linear infinite;
}
@keyframes spin { to { transform: rotate(1turn); } }
.cta-box > * { position: relative; z-index: 1; }
.cta-box h2 { font-family: var(--font-display); font-weight: 900; font-style: italic; text-transform: uppercase; font-size: clamp(2.4rem, 5.5vw, 4.4rem); line-height: 1; }
.cta-box h2 em { color: var(--ink); }
.cta-box p { font-size: 1.15rem; opacity: .85; margin: 1rem auto 2rem; max-width: 34rem; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 3.5rem 0 2rem; font-size: .95rem; }
.footer-logo { height: 58px; width: auto; filter: brightness(0) invert(1); opacity: .95; }
.footer hr { border-color: rgba(255,255,255,.12); opacity: 1; margin: 2rem 0 1.5rem; }
.footer .copy { font-size: .85rem; color: rgba(255,255,255,.45); }
.social { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); color: #fff; text-decoration: none; margin-left: .4rem; transition: background .3s, border-color .3s, transform .3s var(--ease); }
.social:hover { background: var(--blue); border-color: var(--blue); color: #fff; transform: translateY(-3px); }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 1050;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: #fff; font-size: 1.7rem; text-decoration: none;
  box-shadow: 0 12px 30px -8px rgba(37,211,102,.7);
  transform: scale(0); transition: transform .5s var(--ease);
}
.wa-float.show { transform: scale(1); }
.wa-float:hover { color: #fff; transform: scale(1.08); }

/* ---------- Reveal (estado inicial só quando JS ativo) ---------- */
.js .reveal, .js .reveal-hero { opacity: 0; transform: translateY(36px); }
.js .reveal-line { transform: translateY(110%); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .reveal-hero, .js .reveal-line { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- FAQ ---------- */
.faq .accordion-item { border: 0; border-radius: 18px !important; margin-bottom: .8rem; overflow: hidden; background: #fff; }
.faq .accordion-button { font-weight: 600; font-size: 1.05rem; padding: 1.25rem 1.5rem; background: #fff; color: var(--ink); box-shadow: none; }
.faq .accordion-button:not(.collapsed) { color: var(--navy); }
.faq .accordion-button:focus-visible { box-shadow: 0 0 0 3px rgba(10,139,208,.35); }
.faq .accordion-body { padding: 0 1.5rem 1.4rem; color: var(--ink-2); line-height: 1.65; }

/* ---------- Compartilhar ---------- */
.btn-outline-light-brand { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.6); }
.btn-outline-light-brand:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; transform: translateY(-2px); }
button.social { background: transparent; }
.toast-share {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 1100;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; padding: .75rem 1.2rem; border-radius: 999px; font-size: .95rem;
  box-shadow: 0 12px 30px -10px rgba(0,0,0,.4);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.toast-share.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Mobile: áreas seguras e toque ---------- */
.wa-float { right: calc(20px + env(safe-area-inset-right)); bottom: calc(20px + env(safe-area-inset-bottom)); }
@media (max-width: 575.98px) {
  .hero .btn-lg { flex: 1 1 100%; }
  .cta-box .btn { width: 100%; }
  .nav-link { padding: .8rem .9rem !important; }
}
:focus-visible { outline: 3px solid rgba(10,139,208,.55); outline-offset: 2px; }
