/* ===== Reparaki — Landing Page ===== */

:root {
  --blue: #0878ff;
  --blue-dark: #0660d1;
  --green: #2df788;
  --green-dark: #17d873;
  --dark: #2b2b2b;
  --white: #ffffff;
  --gray-bg: #f5f7fa;
  --gray-text: #5b6472;
  --paper: #fbf9f3;
  --line: #e4e1d6;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(43, 43, 43, 0.08);

  /* Heavitas / Made Tommy nao estao disponiveis como arquivos de fonte —
     substitutas gratuitas com personalidade tecnica/geometrica proxima do
     espirito da marca (oficio, precisao). Trocar aqui se os arquivos
     originais forem cedidos pelo cliente. */
  --font-heading: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

:focus-visible { outline: 2.5px solid var(--blue); outline-offset: 3px; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  line-height: 1.5;
}

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 16px;
}

h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: 20px; }
p { margin: 0 0 16px; color: var(--gray-text); }

section { padding: 72px 0; }

.section-title { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-title p { margin-top: 8px; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 16px;
}
.tag i {
  font-style: normal;
  color: var(--blue);
  border: 1.5px solid currentColor;
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 11px;
}
.tag.tag-on-blue { color: var(--white); font-size: 13.5px; font-weight: 700; }
.tag.tag-on-blue i { color: var(--white); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary {
  background: var(--green);
  color: var(--dark);
  box-shadow: 0 8px 20px rgba(45, 247, 136, 0.35);
}
.btn-primary:hover { background: var(--green-dark); transform: translateY(-2px); }
.btn-secondary {
  background: var(--white);
  color: var(--blue);
  border: 1.5px solid var(--blue);
}
.btn-secondary:hover { background: var(--blue); color: var(--white); }
.btn-block { width: 100%; }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(43,43,43,0.06);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.header img.logo { height: 44px; width: auto; }
.header .btn { padding: 12px 24px; font-size: 14px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  color: var(--dark);
  text-decoration: none;
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--blue); }
@media (max-width: 900px) {
  .nav-links { display: none; }
}

/* Hero */
.hero {
  padding: 64px 0 56px;
  background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 100%);
  overflow: hidden;
  position: relative;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  color: var(--dark);
}
.hero h1 .accent { color: var(--blue); }
.hero .lead { font-size: 18px; margin-bottom: 28px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.hero-trust { display: flex; align-items: center; }
.hero-24h {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--dark);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.01em;
  box-shadow: 0 6px 18px rgba(43, 43, 43, 0.18);
}
.hero-24h .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(45, 247, 136, 0.28);
  display: inline-block;
}

/* Hero visual — foto do trabalho com selo de prazo */
.hero-visual {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  line-height: 0;
}
.hero-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.hero-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--dark);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.center { text-align: center; }

/* Servicos */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.service-card {
  border: 1px solid #eaeef3;
  border-top: 3px solid var(--blue);
  border-radius: var(--radius);
  padding: 0 0 22px;
  overflow: hidden;
  transition: box-shadow .15s ease, transform .15s ease;
  background: var(--white);
}
.service-card:nth-child(even) { border-top-color: var(--green); }
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.service-card .ico-photo {
  width: 100%;
  height: 150px;
  object-fit: cover;
  object-position: center;
  margin-bottom: 18px;
}
.service-card .ico-photo-top { object-position: center bottom; }
.service-card h3 { margin: 0 22px 6px; }
.service-card p { margin: 0 22px; font-size: 14px; }

/* Diferenciais */
.why {
  background: linear-gradient(
    var(--white) 0%,
    var(--gray-bg) 12%,
    var(--gray-bg) 88%,
    var(--white) 100%
  );
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.why-card {
  background: var(--white);
  border: 1px solid #eaeef3;
  border-radius: var(--radius);
  padding: 22px;
  position: relative;
}
.why-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(45,247,136,0.18);
  margin-bottom: 14px;
}
.why-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-text);
  margin-bottom: 10px;
}
.why-card h3 { margin-bottom: 6px; }
.why-card p { font-size: 14px; margin: 0; }

/* Reviews */
.reviews .section-title { margin-bottom: 32px; }
#reviews-widget { width: 100%; }

/* Carrossel de avaliacoes */
.reviews-carousel {
  display: flex;
  align-items: center;
  gap: 12px;
}
.carousel-viewport {
  overflow: hidden;
  flex: 1;
}
.carousel-track {
  display: flex;
  gap: 20px;
  transition: transform .35s ease;
}
.carousel-track .review-card {
  flex: 0 0 calc((100% - 40px) / 3);
  min-width: 0;
}
.carousel-arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid #dfe4ea;
  background: var(--white);
  color: var(--blue);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease, color .15s ease;
}
.carousel-arrow:hover { background: var(--blue); color: var(--white); }
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 20px;
}
.carousel-dot {
  /* alvo de toque real 44x44 (WCAG/HIG); o ponto visivel fica menor via ::after */
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-dot::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #dfe4ea;
  transition: background .15s ease, transform .15s ease;
}
.carousel-dot.active::after { background: var(--blue); transform: scale(1.3); }

.review-card {
  background: var(--white);
  border: 1px solid #eaeef3;
  border-radius: var(--radius);
  padding: 22px;
  min-height: 230px;
  display: flex;
  flex-direction: column;
}
.review-card .stars { color: #f5b400; margin-bottom: 10px; font-size: 16px; }
.review-card p {
  font-size: 14px;
  color: var(--dark);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.review-card .author { font-size: 13px; font-weight: 700; color: var(--gray-text); margin-top: auto; }
.review-card .review-time { font-size: 12px; color: var(--gray-text); }

@media (max-width: 860px) {
  .carousel-track .review-card { flex: 0 0 100%; }
}
.google-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; color: var(--gray-text);
  margin-top: 24px;
}

/* Formulario */
.quote { background: var(--blue); color: var(--white); }
.quote .section-title h2 { color: var(--white); }
.quote .section-title p { color: #d9e9ff; }
.quote-form {
  background: var(--white);
  border-radius: 16px;
  padding: 36px;
  max-width: 640px;
  margin: 0 auto;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
label { font-size: 13px; font-weight: 700; color: var(--dark); }
.required-mark { color: var(--blue-dark); }
input, select, textarea {
  padding: 14px 16px;
  border-radius: 8px;
  border: 1.5px solid #dfe4ea;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--dark);
  background: var(--white);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); }
textarea { resize: vertical; min-height: 90px; }
.form-note { text-align: center; font-size: 13px; color: var(--gray-text); margin-top: 14px; margin-bottom: 0; }
.form-success, .form-error { display: none; text-align: center; padding: 20px; border-radius: 12px; font-weight: 600; }
.form-success { background: rgba(45,247,136,0.15); color: #0d8f4f; }
.form-error { background: rgba(255,80,80,0.12); color: #c62828; }

/* FAQ */
.faq {
  background: linear-gradient(
    var(--white) 0%,
    var(--gray-bg) 12%,
    var(--gray-bg) 88%,
    var(--white) 100%
  );
}
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid #eaeef3;
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 20px 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  color: var(--dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-question .plus { font-size: 22px; color: var(--blue); transition: transform .2s ease; flex-shrink: 0; }
.faq-item.open .faq-question .plus { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
}
.faq-answer p { padding-bottom: 18px; margin: 0; font-size: 15px; }
.faq-cta { text-align: center; margin-top: 36px; }

/* Footer */
footer {
  background: var(--blue);
  color: #dceaff;
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
footer img.logo { height: 38px; margin-bottom: 14px; filter: brightness(0) invert(1); }
footer h4 { color: var(--white); font-family: var(--font-heading); font-size: 15px; margin-bottom: 14px; }
footer a { color: #dceaff; text-decoration: none; display: block; margin-bottom: 8px; font-size: 14px; }
footer a:hover { color: var(--green); }
footer a.footer-social { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; border: 1.5px solid rgba(255,255,255,0.4); color: var(--white); margin-top: 4px; }
footer a.footer-social:hover { border-color: var(--green); color: var(--green); }
.footer-partner {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.25);
  padding-top: 20px;
  margin-bottom: 20px;
}
.footer-partner p {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
}
.footer-bottom {
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* Revelacao suave ao rolar (classe adicionada via JS, ver script.js) */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease;
  transition-delay: calc(var(--i, 0) * 60ms);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  section { padding: 52px 0; }
  .form-row { grid-template-columns: 1fr; }
  .quote-form { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .header img.logo { height: 34px; }
  .header .btn { padding: 10px 14px; font-size: 12.5px; gap: 4px; }
}

/* Hero no mobile: imagem horizontal no topo + texto logo abaixo */
@media (max-width: 860px) {
  .hero { padding: 0 0 32px; }
  .hero .container { gap: 0; }
  .hero-visual {
    order: -1;
    margin: 0 -20px 24px;
    border-radius: 0;
    box-shadow: none;
  }
  .hero-visual img {
    width: 100%;
    height: 210px;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: 50% 42%;
  }
  .hero-badge { top: auto; bottom: 12px; right: auto; left: 16px; }
  .hero h1 { font-size: 30px; margin-bottom: 12px; }
  .hero .lead { font-size: 16px; margin-bottom: 20px; }
  .hero-ctas { margin-bottom: 0; }
  .hero-trust { display: none; }
}
