/* ===== Tokens ===== */
:root {
  --white: #ffffff;
  --gray-50: #f5f5f4;
  --gray-100: #ececea;
  --gray-200: #dcdad7;
  --gray-400: #9c9994;
  --gray-600: #5c5a56;
  --gray-800: #322f2c;
  --black: #1b1917;
  --charcoal: #221f1d;

  --orange: #e8491d;
  --orange-dark: #c93912;
  --red: #a4231a;

  --text: #262421;
  --text-light: #f4f2f0;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 18, 16, 0.12);
  --transition: 0.25s ease;

  --font-heading: 'Barlow Condensed', Arial, sans-serif;
  --font-body: 'Inter', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

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

h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.1;
  margin: 0 0 .5em;
  color: var(--black);
}

p { margin: 0 0 1em; }

a { color: var(--orange-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--orange);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus { left: 10px; top: 10px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn--accent {
  background: var(--orange);
  color: #ffffff;
  border-color: var(--orange);
}
.btn--accent:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  color: #ffffff;
}

.btn--outline-light {
  background: rgba(255,255,255,0.08);
  color: #ffffff;
  border-color: rgba(255,255,255,0.7);
}
.btn--outline-light:hover {
  background: #ffffff;
  color: var(--black);
  border-color: #ffffff;
}

.btn--whatsapp {
  background: rgba(255,255,255,0.1);
  color: #ffffff;
  border-color: rgba(255,255,255,0.65);
  padding: 10px 20px;
  font-size: 0.9rem;
}
.btn--whatsapp:hover {
  background: #25D366;
  border-color: #25D366;
  color: #ffffff;
}

.btn--block { width: 100%; margin-top: 8px; }

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  background: rgba(27, 25, 23, 0.92);
  backdrop-filter: blur(6px);
  transition: box-shadow var(--transition);
}
.header.is-scrolled { box-shadow: 0 6px 24px rgba(0,0,0,0.25); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 76px;
}

.brand { display: flex; align-items: center; }
.brand__badge {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border-radius: 10px;
  padding: 6px 10px;
}
.brand__badge img { height: 46px; width: auto; }
.brand__badge--footer img { height: 52px; }

.nav__list {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}
.nav__link {
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition), color var(--transition);
}
.nav__link:hover, .nav__link.is-active {
  color: var(--orange);
  border-color: var(--orange);
  text-decoration: none;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 8px;
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  height: 2px;
  width: 20px;
  margin: 0 auto;
  background: #fff;
  transition: transform var(--transition), opacity var(--transition);
}
.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); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 76px;
  color: #fff;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,18,16,0.75) 0%, rgba(20,18,16,0.6) 45%, rgba(20,18,16,0.92) 100%);
}
.hero__content { position: relative; z-index: 1; padding: 60px 24px; max-width: 780px; }

/* Hero entrance animation */
.hero-anim {
  opacity: 0;
  transform: translateY(26px);
  animation: heroFadeUp 0.9s cubic-bezier(.2,.7,.3,1) forwards;
}
.hero-anim--1 { animation-delay: .15s; }
.hero-anim--2 { animation-delay: .35s; }
.hero-anim--3 { animation-delay: .55s; }
.hero-anim--4 { animation-delay: .75s; }

@keyframes heroFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-anim { animation: none; opacity: 1; transform: none; }
}

.hero__title {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: .3em;
}
.hero__subtitle {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: #f0efed;
  max-width: 620px;
  margin-bottom: 1.6em;
  text-transform: none;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 2.6em; }

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  list-style: none;
  padding: 24px 0 0;
  margin: 0;
  border-top: 1px solid rgba(255,255,255,0.2);
}
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong { font-family: var(--font-heading); font-size: 1.8rem; color: var(--orange); }
.hero__stats span { font-size: 0.85rem; color: #d8d6d3; }

/* ===== Sections ===== */
.section { padding: 96px 0; }
.section--gray { background: var(--gray-50); }
.section--dark { background: var(--charcoal); color: var(--text-light); }
.section--dark h2, .section--dark h3 { color: #ffffff; }

.eyebrow {
  color: var(--orange-dark);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 0.6em;
}
.eyebrow--center { text-align: center; }
.eyebrow--light { color: var(--orange); }

.section__title { font-size: clamp(2rem, 4vw, 2.7rem); }
.section__title--center { text-align: center; }
.section__title--light { color: #ffffff; }

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(.2,.7,.3,1), transform 0.7s cubic-bezier(.2,.7,.3,1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal--left { transform: translateX(-36px); }
.reveal--left.is-visible { transform: none; }
.reveal--right { transform: translateX(36px); }
.reveal--right.is-visible { transform: none; }
.reveal--pop { transform: translateY(20px) scale(0.94); }
.reveal--pop.is-visible { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal--left, .reveal--right, .reveal--pop {
    opacity: 1; transform: none; transition: none;
  }
}

.section__lead {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3em;
  color: var(--gray-600);
  font-size: 1.05rem;
}
.section--dark .section__lead { color: var(--gray-200); }

/* ===== Sobre ===== */
.sobre__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.sobre__media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/5;
}

.mvv { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.mvv__card {
  background: var(--gray-50);
  border-left: 4px solid var(--orange);
  border-radius: 10px;
  padding: 22px;
}
.mvv__card h3 { font-size: 1.3rem; margin-bottom: .3em; }
.mvv__card p { margin: 0; color: var(--gray-600); font-size: 0.95rem; }

/* ===== Serviços ===== */
.services__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}
.service-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  box-shadow: 0 4px 18px rgba(20,18,16,0.1);
  flex: 1 1 calc(33.333% - 16px);
  max-width: calc(33.333% - 16px);
  min-width: 260px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 34px rgba(20,18,16,0.28);
}
.service-card__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  transition: transform 0.6s ease;
}
.service-card:hover .service-card__bg { transform: scale(1.16); }
.service-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(27,25,23,0.25) 0%, rgba(27,25,23,0.55) 55%, rgba(20,18,16,0.94) 100%);
  transition: background var(--transition);
}
.service-card:hover .service-card__overlay {
  background: linear-gradient(180deg, rgba(232,73,29,0.18) 0%, rgba(27,25,23,0.6) 55%, rgba(20,18,16,0.95) 100%);
}
.service-card__content {
  position: relative;
  z-index: 1;
  padding: 30px 26px;
  color: #fff;
}
.service-card__icon {
  width: 46px; height: 46px;
  color: var(--orange);
  margin-bottom: 14px;
  transition: transform var(--transition);
}
.service-card:hover .service-card__icon { transform: scale(1.12) rotate(-4deg); }
.service-card__icon svg { width: 100%; height: 100%; }
.service-card h3 { font-size: 1.35rem; margin-bottom: .35em; color: #fff; }
.service-card p { color: #e2e0dd; font-size: 0.95rem; margin: 0; }

/* Stagger reveal delays for grids */
.services__grid .reveal:nth-child(1) { transition-delay: .05s; }
.services__grid .reveal:nth-child(2) { transition-delay: .12s; }
.services__grid .reveal:nth-child(3) { transition-delay: .19s; }
.services__grid .reveal:nth-child(4) { transition-delay: .05s; }
.services__grid .reveal:nth-child(5) { transition-delay: .12s; }
.services__grid .reveal:nth-child(6) { transition-delay: .19s; }
.services__grid .reveal:nth-child(7) { transition-delay: .05s; }
.services__grid .reveal:nth-child(8) { transition-delay: .12s; }

.values__grid .reveal:nth-child(odd) { transition-delay: .06s; }
.values__grid .reveal:nth-child(even) { transition-delay: .14s; }

.gallery .reveal:nth-child(4n+1) { transition-delay: 0s; }
.gallery .reveal:nth-child(4n+2) { transition-delay: .08s; }
.gallery .reveal:nth-child(4n+3) { transition-delay: .16s; }
.gallery .reveal:nth-child(4n+4) { transition-delay: .24s; }

.mvv .reveal:nth-child(2) { transition-delay: .12s; }

/* ===== Diferenciais ===== */
.values__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 40px;
}
.value-item { display: flex; gap: 16px; align-items: flex-start; }
.value-item__icon {
  flex: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(232,73,29,0.15);
  color: var(--orange);
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.value-item h3 { font-size: 1.15rem; margin-bottom: .25em; color: #fff; }
.value-item p { color: var(--gray-200); font-size: 0.92rem; margin: 0; }

/* ===== Galeria ===== */
.gallery__filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 0 36px;
}
.gallery__filter {
  padding: 9px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--gray-200);
  background: #fff;
  color: var(--gray-600);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.gallery__filter:hover { border-color: var(--orange); color: var(--orange-dark); }
.gallery__filter.is-active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  grid-auto-flow: dense;
  gap: 14px;
}
.gallery__item {
  position: relative;
  display: block;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
}
.gallery__item.is-hidden { display: none; }
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}
.gallery__item:hover img { transform: scale(1.08); }
.gallery__item::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(20,18,16,0) 0%, rgba(20,18,16,0.65) 100%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}
.gallery__item:hover::after { opacity: 1; }
.gallery__tag {
  position: absolute;
  left: 12px;
  bottom: 10px;
  z-index: 1;
  color: #fff;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--transition), transform var(--transition);
}
.gallery__item:hover .gallery__tag { opacity: 1; transform: none; }

.gallery__item:nth-child(9n+1) { grid-column: span 2; grid-row: span 2; }
.gallery__item:nth-child(9n+5) { grid-column: span 2; }
.gallery__item:nth-child(9n+7) { grid-row: span 2; }

.gallery__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.6rem;
  background: rgba(20,18,16,0.35);
}

/* ===== Contato ===== */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: stretch;
}
.contact__list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact__list li { display: flex; gap: 14px; align-items: flex-start; }
.contact__list strong { display: block; font-size: 0.85rem; color: var(--gray-600); font-weight: 600; }
.contact__list a, .contact__list span { color: var(--text); font-size: 1rem; }
.contact__icon {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(232,73,29,0.12);
  color: var(--orange-dark);
  display: flex; align-items: center; justify-content: center;
}
.contact__map {
  min-height: 340px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.contact__map iframe { width: 100%; height: 100%; min-height: 340px; }

/* ===== Footer ===== */
.footer { background: var(--black); color: #cfcdc9; padding: 64px 0 0; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer__col--brand p { color: #b7b5b1; font-size: 0.92rem; max-width: 280px; margin-top: 16px; }
.footer h3 { color: #fff; font-size: 1.15rem; margin-bottom: .8em; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer a { color: #cfcdc9; font-size: 0.92rem; }
.footer a:hover { color: var(--orange); }
.footer__bottom { padding: 22px 24px; text-align: center; font-size: 0.82rem; color: #8c8a86; }

/* ===== Floating WhatsApp ===== */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.28);
  z-index: 400;
  transition: transform var(--transition), box-shadow var(--transition);
}
.whatsapp-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.32);
  text-decoration: none;
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10,9,8,0.92);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  animation: lightboxFade 0.25s ease;
}
.lightbox[hidden] { display: none; }
.lightbox__inner {
  max-width: 90vw;
  max-height: 85vh;
  animation: lightboxPop 0.3s cubic-bezier(.2,.7,.3,1);
}

@keyframes lightboxFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lightboxPop { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }
.lightbox__inner img, .lightbox__inner video {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
}
.lightbox__close {
  position: absolute;
  top: 20px; right: 26px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  z-index: 2;
}
.lightbox__nav:hover {
  background: var(--orange);
  border-color: var(--orange);
}
.lightbox__nav--prev { left: 18px; }
.lightbox__nav--next { right: 18px; }

.lightbox__counter {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  color: #d8d6d3;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

@media (max-width: 640px) {
  .lightbox__nav { width: 42px; height: 42px; }
  .lightbox__nav--prev { left: 6px; }
  .lightbox__nav--next { right: 6px; }
  .lightbox { padding: 20px; }
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .sobre__grid { grid-template-columns: 1fr; }
  .sobre__media img { aspect-ratio: 16/9; }
  .service-card { flex-basis: calc(50% - 12px); max-width: calc(50% - 12px); }
  .values__grid { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 150px; }
}

@media (max-width: 760px) {
  .nav { position: fixed; top: 76px; left: 0; right: 0; background: rgba(27,25,23,0.98); max-height: 0; overflow: hidden; transition: max-height var(--transition); }
  .nav.is-open { max-height: 480px; }
  .nav__list { flex-direction: column; gap: 0; padding: 8px 24px 20px; }
  .nav__link { display: block; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav__toggle { display: flex; }
  .btn--nav { display: none; }
  .service-card { flex-basis: 100%; max-width: 100%; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; gap: 10px; }
  .gallery__item:nth-child(9n+1), .gallery__item:nth-child(9n+7) { grid-row: span 1; }
  .hero__stats { gap: 20px; }
  .footer__grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}
