/* ============================================================
   Gilmar Souza Chalés — Landing Page (Google Ads)
   Paleta: Vermelho Container Souza + tons de madeira/serra
   Fontes: Barlow Condensed (títulos) + Inter (corpo)
   ============================================================ */

:root {
  --brand: #C8102E;          /* vermelho Container Souza */
  --brand-deep: #9e0c24;
  --brand-glow: #e11d38;
  --wood: #4A3728;           /* marrom escuro */
  --wood-soft: #6b5340;
  --cream: #F5F0E8;          /* off-white quente */
  --forest: #2D5016;         /* verde serra */
  --forest-deep: #1f380f;
  --ink: #1f1a15;            /* texto principal */
  --ink-soft: #5c5348;       /* texto secundário */
  --white: #ffffff;
  --border: #e4ddd0;
  --whatsapp: #25D366;

  --radius: 16px;
  --radius-lg: 24px;
  --shadow-card: 0 8px 30px -12px rgba(31, 26, 21, 0.18);
  --shadow-elevated: 0 24px 60px -20px rgba(31, 26, 21, 0.32);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1200px;
}

/* ---------- Reset base (o skeleton de artifact já reseta; aqui é standalone) ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: 'Barlow Condensed', 'Montserrat', sans-serif;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
  text-transform: uppercase;
}
p { margin: 0; }
button { font-family: inherit; }

/* ---------- Utilitários ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--brand);
}
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head h2 { font-size: clamp(30px, 5vw, 46px); font-weight: 800; color: var(--wood); }
.section-head p { margin-top: 14px; color: var(--ink-soft); font-size: 18px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; font-size: 17px; text-decoration: none;
  padding: 16px 30px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
  line-height: 1;
}
.btn-primary {
  background: var(--brand); color: var(--white);
  box-shadow: 0 12px 28px -10px rgba(200, 16, 46, 0.55);
}
.btn-primary:hover { background: var(--brand-deep); transform: translateY(-2px); }
.btn-ghost {
  background: transparent; color: var(--wood); border-color: var(--wood);
}
.btn-ghost:hover { background: var(--wood); color: var(--cream); }
.btn-block { width: 100%; }
.btn-lg { padding: 19px 34px; font-size: 18px; }

/* ============================================================
   1. HERO  (o essencial acima da dobra está inline no <head>;
      aqui ficam refinamentos e o resto)
   ============================================================ */
.hero__stats {
  display: grid; grid-template-columns: 1fr; gap: 16px;
  margin-top: 40px; max-width: 640px;
}
.hero__stat {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius); padding: 16px 20px;
  backdrop-filter: blur(4px);
}
.hero__stat strong { display: block; font-family: 'Barlow Condensed', sans-serif; font-size: 30px; font-weight: 800; color: var(--white); line-height: 1; }
.hero__stat span { font-size: 13.5px; color: rgba(245, 240, 232, 0.82); }

/* ============================================================
   2. GALERIA
   ============================================================ */
.gallery-section { background: var(--cream); }
.gallery {
  display: grid; grid-template-columns: 1fr; gap: 18px;
}
.gallery__item {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card); aspect-ratio: 4 / 3; background: var(--wood);
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__caption {
  position: absolute; inset: auto 0 0 0; padding: 40px 22px 20px;
  background: linear-gradient(to top, rgba(31,26,21,0.85), transparent);
  color: var(--cream);
}
.gallery__caption strong { display: block; font-family: 'Barlow Condensed', sans-serif; font-size: 22px; font-weight: 700; text-transform: uppercase; }
.gallery__caption span { font-size: 14px; color: rgba(245,240,232,0.8); }
.gallery__more { text-align: center; margin-top: 34px; }

/* ============================================================
   3. POR QUE UM CHALÉ GILMAR SOUZA  (cards)
   ============================================================ */
.reasons { display: grid; grid-template-columns: 1fr; gap: 20px; }
.reason-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px 28px; box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.reason-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-elevated); }
.reason-card__icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(45, 80, 22, 0.1); color: var(--forest); margin-bottom: 20px;
}
.reason-card__icon svg { width: 30px; height: 30px; }
.reason-card h3 { font-size: 24px; font-weight: 700; color: var(--wood); margin-bottom: 10px; }
.reason-card p { color: var(--ink-soft); font-size: 16px; }

/* ============================================================
   4. COMO FUNCIONA (timeline)
   ============================================================ */
.how-section { background: var(--wood); color: var(--cream); }
.how-section .section-head h2 { color: var(--cream); }
.how-section .section-head p { color: rgba(245,240,232,0.75); }
.steps { display: grid; grid-template-columns: 1fr; gap: 28px; position: relative; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step__num {
  flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%;
  background: var(--brand); color: var(--white);
  font-family: 'Barlow Condensed', sans-serif; font-size: 26px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.step__body h3 { font-size: 22px; font-weight: 700; color: var(--cream); margin-bottom: 6px; }
.step__body p { color: rgba(245,240,232,0.75); font-size: 15.5px; }

/* ============================================================
   5. SOBRE NÓS
   ============================================================ */
.about-section { background: var(--cream); }
.about { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; }
.about__photo { position: relative; max-width: 420px; margin: 0 auto; }
.about__photo img {
  border-radius: var(--radius-lg); box-shadow: var(--shadow-elevated);
  width: 100%; object-fit: cover; object-position: top; max-height: 520px;
}
.about__tag {
  position: absolute; inset: auto 0 0 0; padding: 48px 24px 20px;
  background: linear-gradient(to top, rgba(31,26,21,0.9), transparent);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg); color: var(--cream);
}
.about__tag strong { font-family: 'Barlow Condensed', sans-serif; font-size: 26px; font-weight: 800; text-transform: uppercase; display: block; }
.about__tag span { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(245,240,232,0.72); }
.about__content h2 { font-size: clamp(30px, 5vw, 48px); font-weight: 800; color: var(--wood); margin-top: 14px; }
.about__content h2 em { font-style: normal; color: var(--brand); }
.about__quote {
  margin: 24px 0; padding: 20px 24px; border-radius: var(--radius);
  background: rgba(200, 16, 46, 0.06); border: 1px solid rgba(200, 16, 46, 0.18);
}
.about__quote blockquote { margin: 0; font-family: 'Barlow Condensed', sans-serif; font-size: 26px; font-weight: 800; text-transform: uppercase; color: var(--brand); line-height: 1.1; }
.about__quote figcaption { margin-top: 8px; font-size: 13.5px; color: var(--ink-soft); }
.about__content p { color: var(--ink-soft); font-size: 17px; margin-bottom: 14px; }
.about__content p strong { color: var(--ink); }
.about__creds { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.about__creds li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--ink); }
.about__creds .ico {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px;
  background: rgba(200, 16, 46, 0.1); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
}
.about__creds .ico svg { width: 20px; height: 20px; }

/* ============================================================
   6. DEPOIMENTOS
   ============================================================ */
.testimonials { display: grid; grid-template-columns: 1fr; gap: 20px; }
.testimonial {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px 26px; box-shadow: var(--shadow-card);
}
.testimonial__stars { color: #f5a623; font-size: 18px; letter-spacing: 2px; margin-bottom: 14px; }
.testimonial__text { font-size: 16.5px; color: var(--ink); font-style: italic; margin-bottom: 18px; }
.testimonial__author { font-weight: 700; color: var(--wood); font-family: 'Barlow Condensed', sans-serif; font-size: 19px; text-transform: uppercase; letter-spacing: 0.02em; }

/* ============================================================
   7. FORMULÁRIO
   ============================================================ */
.form-section { background: linear-gradient(160deg, var(--forest-deep), var(--wood)); color: var(--cream); }
.form-wrap { max-width: 780px; margin: 0 auto; }
.form-wrap .section-head h2 { color: var(--cream); }
.form-wrap .section-head p { color: rgba(245,240,232,0.8); }
.lead-form {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 32px 28px; box-shadow: var(--shadow-elevated);
  display: grid; grid-template-columns: 1fr; gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field label .req { color: var(--brand); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 16px; color: var(--ink);
  padding: 13px 15px; border: 1.5px solid var(--border); border-radius: 12px;
  background: #fbfaf7; transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 100px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(200,16,46,0.12);
}
.field input.invalid, .field select.invalid { border-color: var(--brand); background: #fff5f6; }
.field__error { font-size: 13px; color: var(--brand); font-weight: 500; min-height: 0; display: none; }
.field__error.show { display: block; }
.lead-form .btn { grid-column: 1 / -1; }
.form-note { grid-column: 1 / -1; text-align: center; font-size: 13.5px; color: var(--ink-soft); margin: 0; }

/* Mensagem de sucesso */
.success-message {
  display: none; text-align: center; background: var(--white);
  border-radius: var(--radius-lg); padding: 48px 32px; box-shadow: var(--shadow-elevated);
}
.success-message.show { display: block; animation: fadeInUp 0.5s var(--ease); }
.success-message .check { font-size: 56px; line-height: 1; }
.success-message h3 { font-size: 30px; font-weight: 800; color: var(--forest); margin: 18px 0 12px; }
.success-message p { color: var(--ink-soft); font-size: 17px; max-width: 440px; margin: 0 auto 28px; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================================
   8. FOOTER
   ============================================================ */
.footer { background: var(--ink); color: rgba(245,240,232,0.75); padding: 48px 0 32px; text-align: center; }
.footer__logo { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; font-size: 30px; color: var(--cream); }
.footer__logo em { font-style: normal; color: var(--brand); }
.footer__info { margin-top: 16px; font-size: 14px; line-height: 1.8; }
.footer__cross {
  display: inline-block; margin-top: 22px; padding: 12px 22px;
  border: 1px solid rgba(245,240,232,0.25); border-radius: 999px;
  color: var(--cream); text-decoration: none; font-size: 14.5px; font-weight: 600;
  transition: background 0.25s, border-color 0.25s;
}
.footer__cross:hover { background: rgba(245,240,232,0.08); border-color: rgba(245,240,232,0.5); }
.footer__legal { margin-top: 26px; font-size: 12px; color: rgba(245,240,232,0.45); }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; bottom: 20px; right: 20px; z-index: 9999;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--whatsapp); color: #fff; text-decoration: none;
  padding: 14px 20px; border-radius: 999px; font-weight: 700; font-size: 15.5px;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, 0.6);
  transition: transform 0.25s var(--ease);
}
.wa-float:hover { transform: translateY(-2px) scale(1.03); }
.wa-float svg { width: 24px; height: 24px; }
.wa-float__label { display: none; }
@keyframes wa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.55); }
  70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}
.wa-float { animation: wa-pulse 2.6s infinite; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .wa-float { animation: none; }
}

/* ============================================================
   RESPONSIVIDADE
   ============================================================ */
@media (min-width: 600px) {
  .hero__stats { grid-template-columns: repeat(3, 1fr); }
  .wa-float__label { display: inline; }
}

@media (min-width: 768px) {
  .section { padding: 88px 0; }
  .container { padding: 0 32px; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .reasons { grid-template-columns: repeat(3, 1fr); }
  .testimonials { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .step { flex-direction: column; text-align: center; align-items: center; }
  /* linha conectora da timeline */
  .steps::before {
    content: ""; position: absolute; top: 26px; left: 12%; right: 12%; height: 2px;
    background: rgba(245,240,232,0.25); z-index: 0;
  }
  .step__num { position: relative; z-index: 1; }
  /* form em 2 colunas */
  .lead-form { grid-template-columns: 1fr 1fr; padding: 40px 38px; }
}

@media (min-width: 1024px) {
  .about { grid-template-columns: 5fr 7fr; gap: 56px; }
  .about__photo { margin: 0; }
}

/* ============================================================
   CARROSSEL DE DEPOIMENTOS
   ============================================================ */
.carousel { position: relative; padding: 0 8px; }
.carousel__viewport {
  overflow: hidden;
  padding: 8px 4px 16px;
  /* Suaviza as bordas para indicar rolagem contínua */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 24px), transparent);
          mask-image: linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}
.carousel__track {
  display: flex;
  gap: 20px;
  will-change: transform;
  /* auto-scroll usa JS via translateX; sem transition padrão */
}
.carousel__track.is-animating { transition: transform 0.45s var(--ease); }

.testimonial--carousel {
  flex: 0 0 300px;
  width: 300px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  margin: 0;                 /* neutraliza margem padrão de <figure> */
}
.testimonial--carousel .testimonial__text {
  margin: 0 0 12px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
          line-clamp: 6;
  flex-grow: 1;
}
.testimonial__more {
  background: none; border: 0; padding: 0;
  color: var(--brand); font-weight: 700; font-size: 14px;
  font-family: inherit; text-align: left; cursor: pointer;
  align-self: flex-start;
  margin: 0 0 12px;
  transition: color .2s var(--ease);
}
.testimonial__more:hover { color: var(--brand-deep); text-decoration: underline; }
.testimonial--carousel .testimonial__author { margin-top: auto; }

/* Setas */
.carousel__arrow {
  position: absolute; top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--white); color: var(--wood);
  border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.carousel__arrow svg { width: 20px; height: 20px; }
.carousel__arrow:hover {
  background: var(--brand); color: var(--white); border-color: var(--brand);
  transform: translateY(-50%) scale(1.06);
}
.carousel__arrow:focus-visible {
  outline: 2px solid var(--brand); outline-offset: 2px;
}
.carousel__arrow--prev { left: -6px; }
.carousel__arrow--next { right: -6px; }

@media (min-width: 768px) {
  .carousel { padding: 0 32px; }
  .carousel__arrow--prev { left: 0; }
  .carousel__arrow--next { right: 0; }
  .testimonial--carousel { flex-basis: 320px; width: 320px; }
}

/* ============================================================
   MODAL DE DEPOIMENTO
   ============================================================ */
.modal[hidden] { display: none; }
.modal {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: modal-fade .2s var(--ease);
}
.modal__overlay {
  position: absolute; inset: 0;
  background: rgba(31, 26, 21, 0.72);
  cursor: pointer;
}
.modal__card {
  position: relative; z-index: 1;
  background: var(--white);
  width: 100%; max-width: 560px;
  max-height: 90vh; overflow-y: auto;
  padding: 40px 32px 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-elevated);
  animation: modal-pop .3s var(--ease);
}
.modal__close {
  position: absolute; top: 10px; right: 12px;
  width: 40px; height: 40px;
  background: transparent; border: 0;
  font-size: 32px; line-height: 1; color: var(--ink-soft);
  cursor: pointer; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.modal__close:hover { background: rgba(31,26,21,0.06); color: var(--ink); }
.modal__stars { color: #f5a623; font-size: 20px; letter-spacing: 3px; margin-bottom: 16px; }
.modal__text {
  margin: 0 0 20px;
  font-size: 17px; line-height: 1.65;
  color: var(--ink); font-style: italic;
}
.modal__author {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.02em;
  color: var(--wood);
}
@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-pop  { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (prefers-reduced-motion: reduce) {
  .modal, .modal__card { animation: none; }
  .carousel__arrow { transition: none; }
}
