/* ============================================
   FD Pinturas — Custom Styles
   Complemento ao Tailwind CSS CDN
   ============================================ */

/* --- Smooth Scroll & Header Offset --- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* --- Hero Background Slideshow (CSS-only) --- */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(8, 12, 20, 0.92) 0%, rgba(26, 63, 160, 0.6) 100%);
}

/* --- Floating WhatsApp Button --- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 32px rgba(37, 211, 102, 0.55);
}

@keyframes pulse-whatsapp {
  0%, 100% { box-shadow: 0 4px 24px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 36px rgba(37, 211, 102, 0.65); }
}

/* --- Service Cards Floating Icon --- */
.service-icon-float {
  position: absolute;
  top: -28px;
  left: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

/* --- Service Card Image Hover --- */
.service-card-img {
  transition: transform 0.5s ease, filter 0.5s ease;
  filter: saturate(0.8);
}

.service-card:hover .service-card-img {
  transform: scale(1.05);
  filter: saturate(1);
}

/* --- FAQ Accordion --- */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-answer.open {
  max-height: 500px;
}

.faq-chevron {
  transition: transform 0.3s ease;
}

.faq-item[data-open="true"] .faq-chevron {
  transform: rotate(180deg);
}

/* --- Credibility Bar Cards --- */
.cred-card {
  backdrop-filter: blur(8px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cred-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* --- Testimonial Card --- */
.testimonial-card {
  transition: transform 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
}

/* --- Step Counter --- */
.step-number {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
}

/* --- Benefit Icon Box --- */
.benefit-icon {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.benefit-card:hover .benefit-icon {
  transform: scale(1.1);
}

/* --- Scroll Reveal Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Header Scroll State --- */
.header-scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(12px);
}

/* --- Button Hover Effects --- */
.btn-primary {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255,255,255,0.15));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-primary:hover::after {
  opacity: 1;
}

/* --- Map Container --- */
.map-container iframe {
  width: 100%;
  height: 350px;
  border: 0;
  border-radius: 15px;
}

/* --- Mobile Menu Overlay --- */
.mobile-menu-overlay {
  transition: opacity 0.3s ease;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #F9FAFB;
}

::-webkit-scrollbar-thumb {
  background: #1A3FA0;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #4A90D9;
}

/* --- Selection --- */
::selection {
  background: #1A3FA0;
  color: #FFFFFF;
}

/* --- Focus Styles (acessibilidade) --- */
a:focus-visible, button:focus-visible {
  outline: 2px solid #4A90D9;
  outline-offset: 2px;
  border-radius: 4px;
}
