/* ============================================
   MODERN UPGRADES - Movéis São Francisco
   ============================================ */

/* ---------- VARIÁVEIS ---------- */
:root {
  --primary: #F05F40;
  --primary-glow: #ff7a5a;
  --gold: #FFD700;
  --dark: #0d0d0d;
  --glass: rgba(255, 255, 255, 0.08);
}

/* ---------- HERO COM VÍDEO ---------- */
header.masthead {
  position: relative;
  overflow: hidden;
  background-image: none !important;
  background-color: #0d0d0d;
}

.hero-video-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.55;
}

.hero-video-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(
    135deg,
    rgba(13, 13, 13, 0.75) 0%,
    rgba(240, 95, 64, 0.35) 60%,
    rgba(13, 13, 13, 0.85) 100%
  );
  z-index: 1;
}

header.masthead .container {
  position: relative;
  z-index: 2;
}

/* Brilho no título do hero */
header.masthead h1 {
  text-shadow:
    0 0 30px rgba(240, 95, 64, 0.9),
    0 0 60px rgba(240, 95, 64, 0.5),
    0 2px 8px rgba(0,0,0,0.8);
  animation: titlePulse 3s ease-in-out infinite alternate;
}

@keyframes titlePulse {
  from { text-shadow: 0 0 20px rgba(240,95,64,0.7), 0 0 40px rgba(240,95,64,0.3); }
  to   { text-shadow: 0 0 40px rgba(240,95,64,1),   0 0 80px rgba(240,95,64,0.6), 0 0 120px rgba(255,122,90,0.3); }
}

/* Barra decorativa animada no hero */
header.masthead hr {
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(240,95,64,0.9), 0 0 24px rgba(240,95,64,0.5);
  animation: hrGlow 2s ease-in-out infinite alternate;
  max-width: 120px;
  border-width: 3px;
}

@keyframes hrGlow {
  from { box-shadow: 0 0 8px rgba(240,95,64,0.6); max-width: 80px; }
  to   { box-shadow: 0 0 20px rgba(240,95,64,1), 0 0 40px rgba(240,95,64,0.5); max-width: 140px; }
}

/* Botão hero com brilho pulsante */
header.masthead .btn-primary {
  background: linear-gradient(135deg, #F05F40, #ff8c6a);
  box-shadow: 0 0 20px rgba(240,95,64,0.7), 0 4px 20px rgba(0,0,0,0.4);
  animation: btnPulse 2.5s ease-in-out infinite;
  transition: all 0.3s ease;
}

@keyframes btnPulse {
  0%, 100% { box-shadow: 0 0 15px rgba(240,95,64,0.6), 0 4px 20px rgba(0,0,0,0.4); transform: scale(1); }
  50%       { box-shadow: 0 0 35px rgba(240,95,64,1), 0 0 60px rgba(240,95,64,0.4), 0 4px 20px rgba(0,0,0,0.4); transform: scale(1.04); }
}

header.masthead .btn-primary:hover {
  background: linear-gradient(135deg, #ff7a5a, #F05F40);
  box-shadow: 0 0 50px rgba(240,95,64,1), 0 0 100px rgba(240,95,64,0.5);
  transform: scale(1.08) !important;
}

/* ---------- NAVBAR GLASSMORPHISM ---------- */
#mainNav {
  background: rgba(255,255,255,0.95) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(240,95,64,0.15);
  border-bottom: 1px solid rgba(240,95,64,0.2) !important;
}

@media (min-width: 992px) {
  #mainNav {
    background: rgba(13,13,13,0.3) !important;
    backdrop-filter: blur(8px);
  }
  #mainNav.navbar-shrink {
    background: rgba(255,255,255,0.97) !important;
    box-shadow: 0 2px 30px rgba(240,95,64,0.2);
  }
}

/* ---------- SEÇÃO VÍDEO ---------- */
#video-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #0d0d0d 0%, #1a0a06 50%, #0d0d0d 100%);
  position: relative;
  overflow: hidden;
}

#video-section::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(ellipse at center, rgba(240,95,64,0.1) 0%, transparent 60%);
  animation: rotateBg 15s linear infinite;
}

@keyframes rotateBg {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

#video-section .section-heading {
  color: #fff;
  text-shadow: 0 0 20px rgba(240,95,64,0.6);
  position: relative;
  z-index: 1;
}

#video-section hr {
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(240,95,64,0.8);
  position: relative;
  z-index: 1;
}

/* .video-wrapper removido — substituído por .vertical-video-card */

/* ---------- VÍDEOS VERTICAIS ---------- */
.vertical-video-card {
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 0 0 3px rgba(240,95,64,0.35),
    0 0 30px rgba(240,95,64,0.4),
    0 20px 50px rgba(0,0,0,0.6);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  background: #000;
  position: relative;
  z-index: 1;
}

.vertical-video-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    0 0 0 3px rgba(240,95,64,0.7),
    0 0 50px rgba(240,95,64,0.6),
    0 30px 70px rgba(0,0,0,0.7);
}

.vertical-video {
  width: 100%;
  display: block;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 20px;
}

/* Fallback para browsers sem aspect-ratio */
@supports not (aspect-ratio: 9/16) {
  .vertical-video {
    height: 560px;
  }
}

@media (max-width: 767px) {
  .vertical-video {
    aspect-ratio: 9 / 16;
    max-height: 70vh;
  }
}

/* ---------- SEÇÃO ABOUT COM BRILHO ---------- */
section.bg-primary {
  background: linear-gradient(135deg, #F05F40 0%, #e8472a 50%, #c93d22 100%) !important;
  position: relative;
  overflow: hidden;
}

section.bg-primary::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(255,255,255,0.12) 0%, transparent 60%);
  pointer-events: none;
}

section.bg-primary h2 {
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

section.bg-primary .btn-light {
  box-shadow: 0 0 25px rgba(255,255,255,0.5), 0 4px 20px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}

section.bg-primary .btn-light:hover {
  box-shadow: 0 0 50px rgba(255,255,255,0.8), 0 0 100px rgba(255,255,255,0.3);
  transform: translateY(-3px);
}

/* ---------- SERVIÇOS COM CARDS MODERNOS ---------- */
#services {
  background: linear-gradient(180deg, #fff 0%, #fff8f6 100%);
}

.service-box {
  background: #fff;
  border-radius: 20px;
  padding: 2.5rem 1.5rem;
  box-shadow:
    0 4px 20px rgba(240,95,64,0.08),
    0 1px 3px rgba(0,0,0,0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.service-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #F05F40, transparent);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

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

.service-box:hover {
  transform: translateY(-12px);
  box-shadow:
    0 20px 60px rgba(240,95,64,0.25),
    0 0 40px rgba(240,95,64,0.1);
}

.service-box i.text-primary {
  filter: drop-shadow(0 0 8px rgba(240,95,64,0.6));
  transition: all 0.3s ease;
}

.service-box:hover i.text-primary {
  filter: drop-shadow(0 0 20px rgba(240,95,64,1)) drop-shadow(0 0 40px rgba(240,95,64,0.5));
  transform: scale(1.15);
}

/* ---------- SEÇÃO DARK COM BRILHO ---------- */
section.bg-dark {
  background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 50%, #0d0d0d 100%) !important;
  position: relative;
  overflow: hidden;
}

section.bg-dark::before {
  content: '';
  position: absolute;
  bottom: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(240,95,64,0.12) 0%, transparent 70%);
  pointer-events: none;
}

section.bg-dark::after {
  content: '';
  position: absolute;
  top: -100px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(240,95,64,0.08) 0%, transparent 70%);
  pointer-events: none;
}

section.bg-dark h2 {
  text-shadow: 0 0 20px rgba(240,95,64,0.3);
  position: relative;
  z-index: 1;
}

section.bg-dark .btn-light {
  box-shadow: 0 0 25px rgba(255,255,255,0.4);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

section.bg-dark .btn-light:hover {
  box-shadow: 0 0 50px rgba(255,255,255,0.7);
  transform: translateY(-3px);
}

/* ---------- GALERIA ---------- */
.portfolio-box .portfolio-box-caption {
  background: linear-gradient(135deg, rgba(240,95,64,0.92), rgba(200,60,30,0.92));
}

.portfolio-box:hover .portfolio-box-caption {
  box-shadow: inset 0 0 40px rgba(255,150,120,0.3);
}

.portfolio-box img {
  transition: transform 0.5s ease;
}

.portfolio-box:hover img {
  transform: scale(1.07);
}

/* ---------- CONTATO ---------- */
#contact {
  background: linear-gradient(180deg, #fff 0%, #fff8f6 100%);
  position: relative;
}

#contact .fa {
  color: var(--primary);
  filter: drop-shadow(0 0 8px rgba(240,95,64,0.5));
  transition: all 0.3s ease;
}

#contact .fa:hover {
  filter: drop-shadow(0 0 20px rgba(240,95,64,1));
  transform: scale(1.2);
}

/* ---------- BOTÃO FLUTUANTE WHATSAPP ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  text-decoration: none;
}

.whatsapp-float .whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  border-radius: 50%;
  box-shadow:
    0 0 0 0 rgba(37, 211, 102, 0.6),
    0 8px 32px rgba(37, 211, 102, 0.5),
    0 4px 16px rgba(0,0,0,0.3);
  animation: whatsappPulse 2s ease-in-out infinite;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}

@keyframes whatsappPulse {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,0.7), 0 8px 32px rgba(37,211,102,0.4); }
  50%  { box-shadow: 0 0 0 16px rgba(37,211,102,0), 0 8px 32px rgba(37,211,102,0.6); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0), 0 8px 32px rgba(37,211,102,0.4); }
}

.whatsapp-float:hover .whatsapp-btn {
  transform: scale(1.15) rotate(-5deg);
  box-shadow:
    0 0 0 0 rgba(37,211,102,0),
    0 12px 40px rgba(37,211,102,0.7),
    0 0 50px rgba(37,211,102,0.4);
}

.whatsapp-float .whatsapp-btn svg {
  width: 36px;
  height: 36px;
  fill: #fff;
}

/* Tooltip do WhatsApp */
.whatsapp-float .whatsapp-tooltip {
  position: absolute;
  right: 76px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(13,13,13,0.92);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.whatsapp-float .whatsapp-tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: rgba(13,13,13,0.92);
}

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

/* ---------- SCROLL TO TOP ---------- */
.scroll-top-btn {
  position: fixed;
  bottom: 110px;
  right: 34px;
  z-index: 9998;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #F05F40, #c93d22);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(240,95,64,0.5), 0 4px 16px rgba(0,0,0,0.3);
  border: none;
}

.scroll-top-btn.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  box-shadow: 0 0 40px rgba(240,95,64,0.8), 0 4px 20px rgba(0,0,0,0.4);
  transform: translateY(-3px);
}

.scroll-top-btn svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

/* ---------- ANIMAÇÃO ENTRADA SECTIONS ---------- */
section {
  position: relative;
}

/* ---------- BRILHO NOS BOTÕES GERAL ---------- */
.btn-primary {
  background: linear-gradient(135deg, #F05F40, #e8472a) !important;
  box-shadow: 0 4px 20px rgba(240,95,64,0.4);
  transition: all 0.3s ease !important;
}

.btn-primary:hover {
  box-shadow: 0 0 30px rgba(240,95,64,0.8), 0 8px 30px rgba(240,95,64,0.4) !important;
  transform: translateY(-2px);
}

/* ---------- PARTÍCULAS DECORATIVAS HERO ---------- */
.hero-particles {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero-particles span {
  position: absolute;
  display: block;
  border-radius: 50%;
  background: rgba(240,95,64,0.4);
  animation: floatParticle linear infinite;
  box-shadow: 0 0 10px rgba(240,95,64,0.6);
}

@keyframes floatParticle {
  0%   { transform: translateY(100vh) scale(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.3; }
  100% { transform: translateY(-100px) scale(1); opacity: 0; }
}

/* ---------- FOOTER GLOW ---------- */
body::after {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, transparent, #F05F40, #FFD700, #F05F40, transparent);
}

/* ---------- SCROLLBAR PERSONALIZADA ---------- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0d0d0d; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #F05F40, #c93d22);
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(240,95,64,0.5);
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ff7a5a, #F05F40);
}

/* ---------- RESPONSIVO ---------- */
@media (max-width: 767px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
  }
  .whatsapp-float .whatsapp-btn {
    width: 56px;
    height: 56px;
  }
  .whatsapp-float .whatsapp-tooltip {
    display: none;
  }
  .scroll-top-btn {
    bottom: 90px;
    right: 22px;
  }
}
