/* ==========================================================================
   Lima de Araújo Advocacia — Defesa em Busca e Apreensão de Veículo
   Brand colors per Brand Book (confirmed). Display + body font: Helvetica
   (client request — minimalist, clean, no bold titles), falling back to
   Arial/system sans on machines without Helvetica installed.
   ========================================================================== */

:root {
  --paper: #FFFFFF;
  --mist: #E5E7E7;
  --surface: #FFFFFF;
  --surface-alt: #F4F5F5;
  --ink: #112042;
  --ink-soft: #4B5A72;
  --steel: #748B98;
  --route: #205F81;
  --compass: #87654D;
  --compass-dark: #6E5340;
  --border: rgba(17, 32, 66, 0.14);
  --border-strong: rgba(17, 32, 66, 0.28);

  --font-display: 'Helvetica Neue', Helvetica, Arial, 'Manrope', sans-serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-width: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(17, 32, 66, 0.08);
  --shadow-md: 0 10px 30px -8px rgba(17, 32, 66, 0.22);
  --shadow-lg: 0 24px 60px -16px rgba(17, 32, 66, 0.30);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

html, body { max-width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 64px);
}

.rule { border: 0; border-top: 1px solid var(--border); margin: 32px 0 0; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
  color: var(--ink);
}

h2 em, h1 em { font-style: italic; color: var(--compass); }

.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--compass);
  margin: 0 0 14px;
}

.lede { max-width: 62ch; color: var(--ink-soft); font-size: 1.08rem; }

.section { padding-block: clamp(64px, 9vw, 120px); }
.section-title { font-size: clamp(2rem, 3.6vw, 2.8rem); margin-top: 10px; }

/* ---------- Reveal animation ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 15px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.btn-cta { background: var(--compass); color: var(--paper); box-shadow: var(--shadow-sm); }
.btn-cta:hover { background: #25D366; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.btn-large { padding: 18px 32px; font-size: 0.88rem; border-radius: var(--radius-md); }
.btn-small { padding: 10px 18px; font-size: 0.72rem; }

.btn.is-clicked {
  background: #25D366 !important;
  box-shadow: 0 0 0 6px rgba(37, 211, 102, 0.22), var(--shadow-md) !important;
  transform: scale(0.97);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: clamp(10px, 3vw, 24px); padding-block: 14px; }
.brand-mark { flex-shrink: 0; min-width: 0; }
.brand-logo { height: clamp(30px, 8vw, 46px); width: auto; max-width: 100%; }
.header-inner .btn-small { flex-shrink: 0; white-space: nowrap; }

.site-nav { display: flex; align-items: center; gap: 28px; flex: 1; justify-content: center; }
.site-nav a {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}
.site-nav a:hover { color: var(--route); }
@media (max-width: 960px) { .site-nav { display: none; } }
@media (max-width: 420px) {
  .btn-small { padding: 8px 12px; font-size: 0.66rem; letter-spacing: 0.03em; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 96px;
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-inner { position: relative; z-index: 2; padding-block: 56px; width: 100%; }
.hero-text { max-width: 620px; }

.hero h1 {
  color: var(--paper);
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
  text-wrap: initial;
}
.hero-lede { color: rgba(242, 243, 241, 0.9); margin-top: 18px; font-size: 0.95rem; text-shadow: 0 1px 8px rgba(0,0,0,0.4); }
.hero-line { color: rgba(242, 243, 241, 0.78); margin: 14px 0 0; font-size: 0.85rem; text-shadow: 0 1px 8px rgba(0,0,0,0.4); }
.hero .btn-cta { margin-top: 24px; }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}
@media (max-width: 960px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.service-photo { aspect-ratio: 4/3; overflow: hidden; }
.service-photo img { width: 100%; height: 100%; object-fit: cover; }
.service-card h3 { font-family: var(--font-body); font-weight: 700; font-size: 1rem; padding: 18px 20px 22px; }
.services > .wrap > .btn-cta { margin-top: 44px; }

/* ---------- Process / Metodologia (video background) ---------- */
.process {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.process-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}
.process-grid { display: grid; grid-template-columns: 0.85fr 1.3fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .process-grid { grid-template-columns: 1fr; } }
.process-heading { position: sticky; top: 120px; }
@media (max-width: 860px) {
  .process-heading { position: static; top: auto; margin-bottom: 8px; }
}
.process-heading .eyebrow { color: #E7C9A8; text-shadow: 0 2px 12px rgba(0,0,0,0.35); }
.process-heading .section-title { color: var(--paper); text-shadow: 0 4px 24px rgba(0,0,0,0.45); }

.process-steps { display: flex; flex-direction: column; gap: 20px; }
.step-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-md);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-md);
  padding: 30px 28px;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 18px;
}
.step-icon svg { width: 26px; height: 26px; stroke: var(--paper); }
.step-card h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; margin-bottom: 8px; color: var(--paper); }
.step-card p { margin: 0; color: rgba(242, 243, 241, 0.82); font-size: 0.95rem; }
.step-card .check-list li { color: rgba(242, 243, 241, 0.92); }
.step-card .check-list li::before { border-color: #E7C9A8; }

.check-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.check-list li { position: relative; padding-left: 22px; font-size: 0.92rem; color: var(--ink); }
.check-list li::before {
  content: "";
  position: absolute; left: 0; top: 6px;
  width: 10px; height: 6px;
  border-left: 1.5px solid var(--route);
  border-bottom: 1.5px solid var(--route);
  transform: rotate(-45deg);
}
.check-list-large li { font-size: 0.98rem; padding-left: 26px; color: var(--ink-soft); }
.check-list-large li::before { width: 12px; height: 7px; top: 7px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.about-photo {
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-photo img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(var(--zoom-scale, 1));
  will-change: transform;
}
.about-photo-caption {
  margin: 14px 4px 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
}
.badge {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--compass); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 6px 14px; margin-bottom: 16px;
}
.about-content p { color: var(--ink-soft); font-size: 1rem; margin: 16px 0; }
.differentials-title { font-family: var(--font-body); font-weight: 800; font-size: 1rem; margin-top: 32px; margin-bottom: 4px; }
.about-content .btn-cta { margin-top: 32px; }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--surface-alt); }
.testimonial-carousel-wrap { display: flex; align-items: center; gap: 16px; margin-top: 40px; }
.testimonial-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px 4px 10px;
  flex: 1 1 auto;
  min-width: 0;
}
.testimonial-carousel::-webkit-scrollbar { display: none; }
.testimonial-card {
  flex: 0 0 min(340px, 85vw);
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 24px 22px;
}
.testimonial-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.testimonial-head > div { flex: 1; min-width: 0; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--paper); font-weight: 700; font-size: 0.95rem;
  flex-shrink: 0;
}
.testimonial-head strong { display: block; font-size: 0.92rem; }
.testimonial-meta { font-size: 0.76rem; color: var(--steel); }
.google-g { width: 20px; height: 20px; flex-shrink: 0; }
.stars { display: flex; align-items: center; gap: 3px; margin-bottom: 12px; }
.stars svg:not(.verified) { width: 15px; height: 15px; fill: #FBBC04; }
.stars .verified { width: 15px; height: 15px; stroke: var(--route); margin-left: 5px; }
.testimonial-card p { margin: 0; font-size: 0.92rem; color: var(--ink-soft); line-height: 1.55; }
.carousel-arrow {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: var(--paper);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s var(--ease);
}
.carousel-arrow:hover { box-shadow: var(--shadow-md); }

@media (max-width: 640px) {
  .carousel-arrow { display: none; }
  .testimonial-carousel-wrap { gap: 0; }
  .testimonial-card { flex-basis: 88vw; }
}
.carousel-arrow svg { width: 18px; height: 18px; stroke: var(--ink); }

/* ---------- CTA final ---------- */
.cta-final {
  position: relative;
  overflow: hidden;
  background: linear-gradient(200deg, var(--route), var(--ink) 70%);
  padding-block: clamp(72px, 10vw, 128px);
}
.cta-final-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 860px) { .cta-final-grid { grid-template-columns: 1fr; } }
.cta-final-text h2 {
  color: var(--paper);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.02;
  max-width: 16ch;
}
.cta-final-panel {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
  padding: clamp(28px, 4vw, 44px);
}
.cta-final-panel p { color: rgba(242, 243, 241, 0.88); margin: 0 0 22px; font-size: 1.02rem; }

/* ---------- Contact ---------- */
.contact { background: var(--ink); padding-block: clamp(48px, 6vw, 80px); }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  background: rgba(242, 243, 241, 0.06);
  border: 1px solid rgba(242, 243, 241, 0.16);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background 0.2s var(--ease), transform 0.3s var(--ease);
}
a.contact-card:hover { background: rgba(242, 243, 241, 0.1); transform: translateY(-3px); }
.contact-card svg { width: 26px; height: 26px; stroke: var(--compass); }
.contact-label { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(242, 243, 241, 0.55); font-weight: 700; }
.contact-value { color: var(--paper); font-size: 1rem; font-weight: 600; }

.contact-map {
  position: relative;
  margin-top: 20px;
  height: clamp(280px, 40vw, 380px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.contact-map iframe { display: block; width: 100%; height: 100%; }
.map-open-btn {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--paper);
  color: var(--route);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.map-open-btn:hover { box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.map-open-btn svg { width: 16px; height: 16px; }

.oab-notice { text-align: center; margin-top: 32px; }
.oab-brand { color: var(--paper); font-weight: 700; font-size: 0.95rem; margin: 0 0 6px; }
.oab-text { color: rgba(242, 243, 241, 0.55); font-size: 0.82rem; margin: 0; }

/* ---------- Floating WhatsApp button ---------- */
.whatsapp-float {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 60;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.34); }
.whatsapp-float svg { width: 30px; height: 30px; }
@media (max-width: 560px) {
  .whatsapp-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  .whatsapp-float svg { width: 26px; height: 26px; }
}

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 14px; margin-top: 32px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: 6px 26px;
  transition: box-shadow 0.25s var(--ease);
}
.faq-item[open] { box-shadow: var(--shadow-md); }
.faq-item summary {
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-block: 20px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--compass);
  flex-shrink: 0;
  transition: transform 0.25s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0 0 22px; color: var(--ink-soft); font-size: 0.95rem; max-width: 68ch; }

/* ---------- Footer ---------- */
.site-footer { padding: 36px clamp(20px, 4vw, 64px); border-top: 1px solid var(--border); }
.footer-inner { display: flex; align-items: center; gap: 14px; }
.footer-mark { height: 22px; width: auto; opacity: 0.7; }
.footer-inner p { margin: 0; font-size: 0.8rem; color: var(--ink-soft); }

/* ---------- Anchor scroll offset (fixed header) ---------- */
#services, #process, #about, #testimonials, #contact, #faq {
  scroll-margin-top: 88px;
}
