/* ===========================================================
   V-car Reparo de Estofos — style.css
   Mobile-first, sem frameworks.
   =========================================================== */

:root {
  --red: #c1272d;
  --red-dark: #8f1c21;
  --red-light: #e6474d;
  --black: #1a1a1a;
  --dark: #262626;
  --grey-900: #1f1f1f;
  --grey-700: #4a4a4a;
  --grey-500: #767676;
  --grey-300: #d9d9d9;
  --grey-200: #e9e9e9;
  --grey-100: #f5f5f4;
  --white: #ffffff;
  --success: #2e7d32;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
  --container-w: 1160px;
  --header-h: 68px;
  --font-heading: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--grey-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--black);
}

p {
  margin: 0 0 1em;
}

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 20px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Honeypot anti-spam field: hidden from real users, present for bots */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  height: 0;
  width: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--red-dark);
}

.btn-dark {
  background: var(--black);
  color: var(--white);
}

.btn-dark:hover {
  background: #000;
}

.btn-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-outline-dark {
  background: transparent;
  border-color: var(--black);
  color: var(--black);
}

.btn-outline-dark:hover {
  background: var(--black);
  color: var(--white);
}

.btn-whatsapp {
  background: #25d366;
  color: #fff;
}

.btn-whatsapp:hover {
  background: #1eb958;
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.9rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid var(--grey-200);
  display: flex;
  align-items: center;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand img {
  height: 42px;
  width: auto;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--grey-300);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--black);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.main-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--grey-200);
  box-shadow: var(--shadow);
  padding: 8px 20px 20px;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
}

.main-nav.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.nav-list {
  display: flex;
  flex-direction: column;
}

.nav-list li + li {
  border-top: 1px solid var(--grey-100);
}

.nav-list a {
  display: block;
  padding: 14px 4px;
  font-weight: 600;
  color: var(--grey-900);
}

.nav-list a.is-active {
  color: var(--red);
}

.nav-cta {
  margin-top: 14px;
}

.header-actions {
  display: none;
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }

  .main-nav {
    position: static;
    box-shadow: none;
    border: 0;
    padding: 0;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    max-height: none;
    overflow: visible;
    flex: 1;
  }

  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: 28px;
    justify-content: center;
  }

  .nav-list li + li {
    border-top: 0;
  }

  .nav-list a {
    padding: 8px 2px;
    position: relative;
  }

  .nav-list a.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 2px;
    background: var(--red);
  }

  .nav-cta {
    display: none;
  }

  .header-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--white);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.72) 0%, rgba(20, 20, 20, 0.82) 55%, rgba(20, 20, 20, 0.94) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 56px 0 44px;
}

.hero .eyebrow {
  display: inline-block;
  background: var(--red);
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(1.9rem, 6vw, 3.1rem);
  max-width: 18ch;
}

.hero p.lead {
  font-size: 1.08rem;
  max-width: 52ch;
  color: var(--grey-200);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* ---------- Trust bar ---------- */
.trust-bar {
  background: var(--black);
  color: var(--white);
  padding: 18px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  text-align: center;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px;
}

.trust-item strong {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--red-light);
}

.trust-item span {
  font-size: 0.8rem;
  color: var(--grey-300);
}

@media (min-width: 700px) {
  .trust-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- Sections ---------- */
.section {
  padding: 56px 0;
}

.section-alt {
  background: var(--grey-100);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 36px;
}

.section-head .kicker {
  display: inline-block;
  color: var(--red);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.section-head h2 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
}

.section-head p {
  color: var(--grey-700);
}

/* ---------- Service cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .card-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .card-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.service-card .icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(193, 39, 45, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 2px;
}

.service-card p {
  color: var(--grey-700);
  font-size: 0.95rem;
  margin-bottom: 0;
  flex: 1;
}

.service-card .card-link {
  margin-top: 10px;
  font-weight: 700;
  color: var(--red);
  font-size: 0.92rem;
}

/* ---------- Service detail blocks (servicos.html) ---------- */
.service-block {
  padding: 48px 0;
  border-top: 1px solid var(--grey-200);
}

.service-block:first-of-type {
  border-top: 0;
}

.service-block-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}

@media (min-width: 860px) {
  .service-block-grid {
    grid-template-columns: 1fr 1fr;
  }

  .service-block-grid.reverse .service-block-media {
    order: 2;
  }
}

.service-block-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.service-block-body .tag {
  display: inline-block;
  background: var(--grey-100);
  color: var(--grey-700);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  margin: 3px 6px 3px 0;
}

.service-block-body ul {
  margin: 14px 0;
}

.service-block-body ul li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 8px;
  color: var(--grey-700);
}

.service-block-body ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}

/* ---------- Testimonials ---------- */
.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: 999px;
  padding: 10px 18px;
  box-shadow: var(--shadow-sm);
  font-weight: 700;
}

.rating-badge .stars {
  color: #f5a623;
  letter-spacing: 1px;
}

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.testimonial-card .stars {
  color: #f5a623;
  letter-spacing: 2px;
}

.testimonial-card p {
  color: var(--grey-900);
  font-style: italic;
  margin-bottom: 0;
  flex: 1;
}

.testimonial-card .author {
  font-weight: 700;
  font-style: normal;
  font-size: 0.92rem;
  color: var(--grey-700);
}

/* ---------- FAQ (native details/summary) ---------- */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  padding: 18px 46px 18px 20px;
  font-weight: 700;
  list-style: none;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--red);
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item .faq-answer {
  padding: 0 20px 20px;
  color: var(--grey-700);
}

/* ---------- Portfolio gallery ---------- */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 30px;
}

.filter-btn {
  border: 1.5px solid var(--grey-300);
  background: var(--white);
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-btn:hover {
  border-color: var(--red);
}

.filter-btn.is-active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 700px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media (min-width: 1000px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  background: var(--grey-100);
  aspect-ratio: 3 / 4;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item .cat-label {
  position: absolute;
  left: 8px;
  bottom: 8px;
  background: rgba(26, 26, 26, 0.75);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

.gallery-item.is-hidden {
  display: none;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.92);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: var(--radius-sm);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 0;
  font-size: 1.4rem;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 0;
  font-size: 1.3rem;
  cursor: pointer;
}

.lightbox-prev {
  left: 12px;
}

.lightbox-next {
  right: 12px;
}

/* ---------- Forms ---------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 28px 22px;
}

@media (min-width: 640px) {
  .form-card {
    padding: 36px;
  }
}

.form-row {
  margin-bottom: 18px;
}

.form-row label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.form-row .hint {
  font-weight: 400;
  color: var(--grey-500);
  font-size: 0.8rem;
}

.form-control {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--grey-300);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  background: var(--white);
  color: var(--grey-900);
}

.form-control:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(193, 39, 45, 0.14);
}

textarea.form-control {
  resize: vertical;
  min-height: 110px;
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.radio-pill {
  position: relative;
}

.radio-pill input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}

.radio-pill span {
  display: inline-block;
  padding: 10px 20px;
  border: 1.5px solid var(--grey-300);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
}

.radio-pill input:checked + span {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.radio-pill input:focus-visible + span {
  outline: 2px solid var(--red-dark);
  outline-offset: 2px;
}

.conditional-field {
  display: none;
}

.conditional-field.is-visible {
  display: block;
}

.outros-callout {
  background: #fff4e5;
  border: 1px solid #f0c987;
  border-radius: var(--radius);
  padding: 18px;
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}

.outros-callout p {
  margin: 0;
  font-size: 0.92rem;
  color: #7a5a10;
  flex: 1;
  min-width: 200px;
}

.form-feedback {
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-weight: 600;
  margin-bottom: 18px;
  display: none;
}

.form-feedback.is-visible {
  display: block;
}

.form-feedback.success {
  background: #e6f4ea;
  color: var(--success);
  border: 1px solid #b7ddc0;
}

.form-feedback.error {
  background: #fdecea;
  color: #b3261e;
  border: 1px solid #f3b7b2;
}

/* ---------- Contact info blocks ---------- */
.info-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.info-list .info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.info-list .info-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(193, 39, 45, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.info-list h3 {
  font-size: 1rem;
  margin-bottom: 2px;
}

.info-list p {
  color: var(--grey-700);
  margin-bottom: 0;
  font-size: 0.95rem;
}

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--grey-200);
}

.map-wrap iframe {
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--red-dark), var(--red));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 26px;
  text-align: center;
}

.cta-banner h2 {
  color: var(--white);
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 50ch;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner .hero-actions {
  justify-content: center;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--black);
  color: var(--grey-300);
  padding: 48px 0 22px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 30px;
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-brand img {
  height: 40px;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--grey-500);
}

.site-footer h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--grey-300);
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--red-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 18px;
  font-size: 0.82rem;
  color: var(--grey-500);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

/* ---------- Floating action buttons ---------- */
.floating-actions {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 400;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  border: 0;
}

.fab-whatsapp {
  background: #25d366;
}

.fab-call {
  background: var(--red);
}

@media (min-width: 900px) {
  .floating-actions {
    right: 26px;
    bottom: 26px;
  }
}

/* ---------- Breadcrumb / page header ---------- */
.page-header {
  background: var(--black);
  color: var(--white);
  padding: 40px 0;
  text-align: center;
}

.page-header h1 {
  color: var(--white);
  margin-bottom: 8px;
}

.page-header p {
  color: var(--grey-300);
  margin-bottom: 0;
}

/* ---------- Misc utility ---------- */
.text-center {
  text-align: center;
}

.mt-lg {
  margin-top: 32px;
}

.stack-gap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
