/* ============================================
   BICUDO TERRAPLANAGEM — Custom Styles
   Complementa o Tailwind CDN
   ============================================ */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #1A1A1A;
  color: #FFFFFF;
  overflow-x: hidden;
}

/* ── Variáveis ── */
:root {
  --yellow: #F2B705;
  --yellow-dark: #D9A004;
  --black: #1A1A1A;
  --black-light: #242424;
  --gray: #404040;
  --gray-light: #6B6B6B;
  --white: #FFFFFF;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Tipografia ── */
h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.15;
}

/* ── Scroll animado ── */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger delay para cards */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

/* ── Header ── */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  transition: var(--transition);
  padding: 20px 0;
}

#header.scrolled {
  background: rgba(26, 26, 26, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px 0;
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

/* ── Logo ── */
.logo-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: -0.5px;
}

.logo-accent {
  color: var(--yellow);
}

/* ── Botões ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--yellow);
  color: var(--black);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 4px;
  border: 2px solid var(--yellow);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--yellow-dark);
  border-color: var(--yellow-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(242, 183, 5, 0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 4px;
  border: 2px solid rgba(255,255,255,0.4);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.btn-secondary:hover {
  border-color: var(--yellow);
  color: var(--yellow);
  transform: translateY(-2px);
}

/* ── Hero ── */
#hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* Vídeo de fundo do hero */
.hero-bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.38) saturate(0.75);
  transform: scale(1.04);
  transition: transform 8s ease;
}

#hero.loaded .hero-bg video {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 26, 26, 0.85) 0%,
    rgba(26, 26, 26, 0.5) 50%,
    rgba(242, 183, 5, 0.08) 100%
  );
}

.hero-line {
  width: 60px;
  height: 4px;
  background: var(--yellow);
  border-radius: 2px;
  margin-bottom: 20px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(242, 183, 5, 0.12);
  border: 1px solid rgba(242, 183, 5, 0.3);
  color: var(--yellow);
  font-size: 0.8rem;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  padding: 6px 16px;
  border-radius: 100px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

/* ── Stats counter ── */
.stat-card {
  text-align: center;
  padding: 24px 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.stat-card:hover {
  background: rgba(242, 183, 5, 0.08);
  border-color: rgba(242, 183, 5, 0.2);
  transform: translateY(-3px);
}

.stat-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--yellow);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  margin-top: 6px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* ── Section titles ── */
.section-eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
}

.section-title span {
  color: var(--yellow);
}

.section-divider {
  width: 50px;
  height: 3px;
  background: var(--yellow);
  border-radius: 2px;
  margin: 20px 0;
}

/* ── Serviços ── */
.service-card {
  background: #242424;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  cursor: default;
}

.service-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--yellow);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.service-card:hover {
  background: #2A2A2A;
  border-color: rgba(242, 183, 5, 0.2);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 58px;
  height: 58px;
  background: rgba(242, 183, 5, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: rgba(242, 183, 5, 0.2);
  transform: scale(1.08);
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
}

/* ── Galeria ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: 12px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 4/3;
  background: #242424;
}

.gallery-item:first-child {
  grid-column: span 2;
  aspect-ratio: 16/9;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  filter: brightness(0.8) saturate(0.9);
}

.gallery-item:hover img {
  transform: scale(1.06);
  filter: brightness(0.9) saturate(1);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.5) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
  opacity: 1;
}

/* ── Diferenciais ── */
.diff-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px;
  background: #242424;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  transition: var(--transition);
}

.diff-card:hover {
  border-color: rgba(242, 183, 5, 0.15);
  transform: translateY(-3px);
}

.diff-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  background: rgba(242, 183, 5, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── CTA Section ── */
.cta-section {
  background: linear-gradient(135deg, #F2B705 0%, #D9A004 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 300px;
  height: 300px;
  background: rgba(0,0,0,0.06);
  border-radius: 50%;
}

.btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--black);
  color: var(--yellow);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 32px;
  border-radius: 4px;
  border: 2px solid var(--black);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  letter-spacing: 0.3px;
}

.btn-dark:hover {
  background: #0f0f0f;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

/* ── Formulário ── */
.form-section {
  background: #1E1E1E;
}

.form-field {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 14px 18px;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}

.form-field::placeholder {
  color: rgba(255,255,255,0.3);
}

.form-field:focus {
  border-color: var(--yellow);
  background: rgba(242, 183, 5, 0.04);
  box-shadow: 0 0 0 3px rgba(242, 183, 5, 0.1);
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-family: 'Montserrat', sans-serif;
}

select.form-field {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23F2B705' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
}

select.form-field option {
  background: #1A1A1A;
  color: var(--white);
}

/* ── WhatsApp Flutuante ── */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 998;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.12) translateY(-3px);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.55);
}

.whatsapp-float::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: #25D366;
  border-radius: 50%;
  animation: pulse-whatsapp 2.5s infinite;
  z-index: -1;
}

@keyframes pulse-whatsapp {
  0% { transform: scale(1); opacity: 0.7; }
  70% { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ── Tooltip WhatsApp ── */
.whatsapp-tooltip {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%);
  background: #1A1A1A;
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 8px 14px;
  border-radius: 6px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  font-family: 'Montserrat', sans-serif;
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: #1A1A1A;
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
}

/* ── Rodapé ── */
footer {
  background: #111111;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-link {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--yellow);
}

/* ── Nav links ── */
.nav-link {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: color 0.2s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.nav-link:hover {
  color: var(--yellow);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

/* ── Mobile menu ── */
#mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 26, 26, 0.98);
  backdrop-filter: blur(20px);
  z-index: 997;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

#mobile-menu.open {
  display: flex;
}

#mobile-menu .nav-link {
  font-size: 1.5rem;
  color: var(--white);
}

/* ── Depoimentos ── */
.testimonial-card {
  background: #242424;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 32px;
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 16px;
  left: 24px;
  font-size: 5rem;
  color: rgba(242, 183, 5, 0.15);
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  line-height: 1;
}

/* ── Responsivo ── */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item:first-child {
    grid-column: span 2;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 3.5rem);
  }

  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 54px;
    height: 54px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item:first-child {
    grid-column: span 1;
  }
}

/* ── Utility ── */
.text-yellow { color: var(--yellow); }
.bg-yellow { background-color: var(--yellow); }
.border-yellow { border-color: var(--yellow); }

/* ── Success message ── */
.form-success {
  display: none;
  text-align: center;
  padding: 40px;
}

.form-success.show {
  display: block;
}

/* ── Loader de imagem ── */
.img-placeholder {
  background: linear-gradient(90deg, #242424 25%, #2e2e2e 50%, #242424 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
