/* ================================================================= */
/*  OBRATEC — Folha de estilo principal                              */
/*  Todas as cores estão em variáveis no :root (fácil de editar).    */
/* ================================================================= */

/* ---------- PALETA DE CORES (EDITE AQUI) ------------------------- */
:root {
  --cor-vinho: #7A1F26;        /* bordô da logo — destaque, CTA, detalhes */
  --cor-vinho-escuro: #5E141A; /* variação escura do vinho (hover) */
  --cor-grafite: #2C2F35;      /* grafite escuro — textos e fundos escuros */
  --cor-branco: #FFFFFF;       /* fundo principal */
  --cor-cinza-claro: #F4F4F4;  /* fundos de seções alternadas */
  --cor-cinza-texto: #555B63;  /* textos secundários */
  --cor-wpp: #25D366;          /* verde do WhatsApp */
  --cor-wpp-escuro: #1EBE5A;   /* verde WhatsApp hover */

  /* Espaçamentos e formas */
  --raio: 12px;
  --raio-sm: 8px;
  --sombra: 0 10px 30px rgba(0, 0, 0, .08);
  --sombra-forte: 0 16px 40px rgba(0, 0, 0, .16);
  --container: 1180px;
  --header-h: 74px;

  /* Fontes */
  --fonte-titulo: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --fonte-texto: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- RESET BÁSICO ---------------------------------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--fonte-texto);
  color: var(--cor-grafite);
  background: var(--cor-branco);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

/* Foco visível (acessibilidade) */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--cor-vinho);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ================================================================= */
/*  BOTÕES                                                           */
/* ================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: 50px;
  font-family: var(--fonte-texto);
  font-weight: 700;
  font-size: .98rem;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease;
  line-height: 1;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn__ico { font-size: 1.1em; line-height: 1; }

.btn--wpp {
  background: var(--cor-wpp);
  color: #fff;
  box-shadow: 0 8px 20px rgba(37, 211, 102, .35);
}
.btn--wpp:hover { background: var(--cor-wpp-escuro); }

.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .7);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .12); }

.btn--outline {
  background: transparent;
  color: var(--cor-vinho);
  border-color: var(--cor-vinho);
}
.btn--outline:hover { background: var(--cor-vinho); color: #fff; }

.btn--lg { padding: 16px 30px; font-size: 1.08rem; }

/* ================================================================= */
/*  HEADER                                                           */
/* ================================================================= */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #eee;
  z-index: 1000;
  transition: box-shadow .25s ease;
}
.header.is-scrolled { box-shadow: 0 6px 20px rgba(0, 0, 0, .08); }

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.header__logo img { height: 44px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav__link {
  font-weight: 600;
  color: var(--cor-grafite);
  font-size: .98rem;
  position: relative;
  padding: 4px 0;
  transition: color .18s ease;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--cor-vinho);
  transition: width .22s ease;
}
.nav__link:hover { color: var(--cor-vinho); }
.nav__link:hover::after { width: 100%; }
.nav__cta { margin-left: 4px; }

/* Botão hambúrguer */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  width: 26px; height: 3px;
  background: var(--cor-grafite);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ================================================================= */
/*  HERO                                                             */
/* ================================================================= */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) 0 60px;
  color: #fff;
  overflow: hidden;
}
/* FUNDO do hero — troque a imagem em assets/img/hero.jpg.
   Para usar VÍDEO de fundo, veja instruções no assets/img/README.txt */
.hero__bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(44,47,53,.2), rgba(44,47,53,.2)),
    url("../assets/img/hero.jpg") center/cover no-repeat;
  transform: scale(1.05);
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(44,47,53,.92) 0%, rgba(44,47,53,.72) 45%, rgba(122,31,38,.55) 100%);
}
.hero__content { position: relative; z-index: 2; max-width: 760px; }

.hero__eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  font-size: .82rem;
  color: #fff;
  background: var(--cor-vinho);
  padding: 7px 14px;
  border-radius: 50px;
  margin-bottom: 22px;
}
.hero__title {
  font-family: var(--fonte-titulo);
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 4.7rem);
  line-height: 1.02;
  text-transform: uppercase;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.hero__title span { color: #fff; -webkit-text-stroke: 0; position: relative; }
.hero__title span::after {
  content: "";
  display: block;
  width: 90px; height: 5px;
  background: var(--cor-vinho);
  margin-top: 14px;
  border-radius: 3px;
}
.hero__subtitle {
  font-size: clamp(1.02rem, 2.4vw, 1.25rem);
  max-width: 620px;
  margin-bottom: 30px;
  color: rgba(255,255,255,.94);
}
.hero__subtitle strong { color: #fff; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
.hero__note { font-size: .92rem; color: rgba(255,255,255,.85); }

/* ================================================================= */
/*  FAIXA DE CONFIANÇA                                               */
/* ================================================================= */
.trust {
  background: var(--cor-grafite);
  color: #fff;
  padding: 26px 0;
}
.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.trust__item {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  text-align: left;
  font-weight: 600;
  font-size: .96rem;
  line-height: 1.25;
}
.trust__ico { font-size: 1.7rem; line-height: 1; }
.trust__item + .trust__item { border-left: 1px solid rgba(255,255,255,.14); }

/* ================================================================= */
/*  SEÇÕES GERAIS                                                    */
/* ================================================================= */
.section { padding: 84px 0; }
.section--alt { background: var(--cor-cinza-claro); }

.section__head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section__tag {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  font-size: .8rem;
  color: var(--cor-vinho);
  margin-bottom: 12px;
}
.section__title {
  font-family: var(--fonte-titulo);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  line-height: 1.05;
  color: var(--cor-grafite);
  margin-bottom: 14px;
}
.section__lead { color: var(--cor-cinza-texto); font-size: 1.06rem; }

.section__foot { text-align: center; margin-top: 44px; }
.section__foot p { color: var(--cor-cinza-texto); margin-bottom: 16px; font-size: 1.05rem; }

/* ================================================================= */
/*  CARDS DE SERVIÇOS                                                */
/* ================================================================= */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 22px;
}
.card {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: var(--raio);
  padding: 28px 24px;
  box-shadow: var(--sombra);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sombra-forte);
  border-color: var(--cor-vinho);
}
.card__ico {
  width: 58px; height: 58px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
  background: rgba(122,31,38,.08);
  color: var(--cor-vinho);
  border-radius: 14px;
  margin-bottom: 18px;
}
.card__title {
  font-family: var(--fonte-titulo);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.4rem;
  margin-bottom: 8px;
  color: var(--cor-grafite);
}
.card__text { color: var(--cor-cinza-texto); font-size: .96rem; margin-bottom: 16px; flex-grow: 1; }
.card__cta {
  font-weight: 700;
  color: var(--cor-vinho);
  font-size: .95rem;
  align-self: flex-start;
  transition: gap .18s ease, color .18s ease;
}
.card__cta:hover { color: var(--cor-vinho-escuro); text-decoration: underline; }

/* ================================================================= */
/*  GALERIA                                                          */
/* ================================================================= */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery__item {
  position: relative;
  border: none;
  padding: 0;
  cursor: pointer;
  border-radius: var(--raio);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #ddd;
}
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.gallery__item::after {
  content: "\1F50D";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  background: rgba(122,31,38,.55);
  color: #fff;
  opacity: 0;
  transition: opacity .25s ease;
}
.gallery__item:hover img { transform: scale(1.08); }
.gallery__item:hover::after { opacity: 1; }

/* ================================================================= */
/*  VÍDEOS                                                           */
/* ================================================================= */
.videos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.video {
  border-radius: var(--raio);
  overflow: hidden;
  box-shadow: var(--sombra);
  background: #000;
  aspect-ratio: 16 / 9;
}
.video video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ================================================================= */
/*  SOBRE                                                            */
/* ================================================================= */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.about__media img {
  border-radius: var(--raio);
  box-shadow: var(--sombra-forte);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.about__text .section__title { margin-top: 6px; }
.about__text p { color: var(--cor-cinza-texto); margin-bottom: 16px; }
.about__list { margin: 6px 0 22px; }
.about__list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  color: var(--cor-grafite);
  font-weight: 500;
}
.about__list li::before {
  content: "\2714";
  position: absolute; left: 0; top: 0;
  color: var(--cor-vinho);
  font-weight: 700;
}
.about__slogan {
  font-family: var(--fonte-titulo);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cor-vinho) !important;
  font-style: italic;
  margin: 6px 0 24px !important;
}

/* ================================================================= */
/*  DEPOIMENTOS                                                      */
/* ================================================================= */
.testi {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.testi__card {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: var(--raio);
  padding: 28px 26px;
  box-shadow: var(--sombra);
  border-top: 4px solid var(--cor-vinho);
}
.testi__stars { color: #F5B301; font-size: 1.15rem; margin-bottom: 12px; letter-spacing: 2px; }
.testi__card blockquote { font-size: 1.05rem; color: var(--cor-grafite); margin-bottom: 14px; font-style: italic; }
.testi__card figcaption { color: var(--cor-cinza-texto); font-weight: 600; font-size: .95rem; }

/* ================================================================= */
/*  CTA FINAL                                                        */
/* ================================================================= */
.cta {
  background:
    linear-gradient(135deg, rgba(122,31,38,.95), rgba(94,20,26,.95)),
    var(--cor-vinho);
  color: #fff;
  padding: 76px 0;
  text-align: center;
}
.cta__inner { max-width: 720px; margin: 0 auto; }
.cta__title {
  font-family: var(--fonte-titulo);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.05;
  margin-bottom: 16px;
}
.cta__text { font-size: 1.12rem; color: rgba(255,255,255,.94); margin-bottom: 28px; }
.cta__phone { margin-top: 18px; font-size: 1.02rem; color: rgba(255,255,255,.9); }
.cta__phone a { font-weight: 700; text-decoration: underline; }

/* ================================================================= */
/*  RODAPÉ                                                           */
/* ================================================================= */
.footer { background: var(--cor-grafite); color: rgba(255,255,255,.82); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 34px;
  padding: 56px 20px 40px;
}
.footer__logo {
  background: #fff;              /* fundo branco: garante contraste da logo */
  display: inline-block;
  padding: 12px 16px;
  border-radius: var(--raio-sm);
  margin-bottom: 14px;
}
.footer__logo img { height: 46px; width: auto; }
.footer__slogan {
  font-family: var(--fonte-titulo);
  font-size: 1.2rem;
  color: #fff;
  font-style: italic;
}
.footer__title {
  font-family: var(--fonte-titulo);
  text-transform: uppercase;
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 16px;
}
.footer__list li { margin-bottom: 10px; }
.footer__list a, .footer__text { color: rgba(255,255,255,.82); transition: color .18s ease; }
.footer__list a:hover { color: var(--cor-wpp); }
.footer__text { line-height: 1.7; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 20px 0;
  text-align: center;
  font-size: .88rem;
  color: rgba(255,255,255,.6);
}

/* ================================================================= */
/*  BOTÃO FLUTUANTE WHATSAPP                                         */
/* ================================================================= */
.wpp-float {
  position: fixed;
  right: 20px; bottom: 20px;
  width: 60px; height: 60px;
  background: var(--cor-wpp);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.5);
  z-index: 999;
  transition: transform .2s ease, box-shadow .2s ease;
  animation: wppPulse 2.4s infinite;
}
.wpp-float:hover { transform: scale(1.08); }
@keyframes wppPulse {
  0%   { box-shadow: 0 8px 24px rgba(37,211,102,.5), 0 0 0 0 rgba(37,211,102,.5); }
  70%  { box-shadow: 0 8px 24px rgba(37,211,102,.5), 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 8px 24px rgba(37,211,102,.5), 0 0 0 0 rgba(37,211,102,0); }
}

/* ================================================================= */
/*  LIGHTBOX                                                         */
/* ================================================================= */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.92);
  display: none;
  align-items: center; justify-content: center;
  z-index: 2000;
  padding: 40px;
}
.lightbox.is-open { display: flex; }
.lightbox__img {
  max-width: 90vw; max-height: 85vh;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.lightbox__close {
  position: absolute; top: 20px; right: 26px;
  background: transparent; border: none;
  color: #fff; font-size: 2.6rem; line-height: 1;
  cursor: pointer;
}
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.12); border: none;
  color: #fff; font-size: 2.4rem;
  width: 56px; height: 56px; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .2s ease;
}
.lightbox__nav:hover { background: var(--cor-vinho); }
.lightbox__prev { left: 20px; }
.lightbox__next { right: 20px; }

/* ================================================================= */
/*  ANIMAÇÃO DE ENTRADA AO ROLAR (reveal)                            */
/* ================================================================= */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Respeita usuários que preferem menos movimento */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .wpp-float { animation: none; }
}

/* ================================================================= */
/*  RESPONSIVO                                                       */
/* ================================================================= */
@media (max-width: 980px) {
  .about { grid-template-columns: 1fr; }
  .about__media { order: -1; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .trust__grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .trust__item:nth-child(odd) { border-left: none; }
  .trust__item:nth-child(3) { border-top: 1px solid rgba(255,255,255,.14); padding-top: 18px; }
  .trust__item:nth-child(4) { border-top: 1px solid rgba(255,255,255,.14); padding-top: 18px; }
}

@media (max-width: 820px) {
  /* Menu vira painel mobile */
  .nav {
    position: fixed;
    top: var(--header-h); right: 0;
    height: calc(100vh - var(--header-h));
    width: min(80vw, 320px);
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 4px;
    padding: 24px;
    box-shadow: -8px 0 30px rgba(0,0,0,.12);
    transform: translateX(105%);
    transition: transform .3s ease;
  }
  .nav.is-open { transform: translateX(0); }
  .nav__link { width: 100%; padding: 14px 0; border-bottom: 1px solid #f0f0f0; font-size: 1.1rem; }
  .nav__cta { width: 100%; justify-content: center; margin-top: 16px; }
  .nav__toggle { display: flex; }
}

@media (max-width: 720px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 60px 0; }
  .hero { min-height: 88vh; }
  .footer__grid { grid-template-columns: 1fr; gap: 26px; text-align: center; }
  .footer__logo { margin-left: auto; margin-right: auto; }
  .footer__col { display: flex; flex-direction: column; align-items: center; }
}

@media (max-width: 460px) {
  .trust__grid { grid-template-columns: 1fr; }
  .trust__item { border-left: none !important; border-top: 1px solid rgba(255,255,255,.14); padding-top: 16px; }
  .trust__item:first-child { border-top: none; padding-top: 0; }
  .gallery { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .wpp-float { width: 56px; height: 56px; right: 16px; bottom: 16px; }
}
