/* B S Soares — estilos complementares ao Tailwind */

:root {
  --brand-50: #e6f3f4;
  --brand-100: #c8e6e8;
  --brand-500: #0f4f53;
  --brand-600: #011e20;
  --brand-700: #022a2d;
  --brand-800: #011e20;
  --brand-900: #000f10;
  --footer-bg: #000b0c;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Nav sticky + glass */
.site-header__nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header__nav.is-scroll-hidden {
  transform: translateY(-100%);
}

#mobile-nav {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(16px);
}

/* Barra superior de contato */
.top-bar {
  background-color: var(--brand-800);
}

/* Banner hero */
.banner-parallax {
  position: relative;
  height: clamp(20rem, 52vw, 32rem);
  overflow: hidden;
}

@media (max-width: 639px) {
  .banner-parallax {
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
    height: clamp(26rem, 92vw, 30rem);
  }

  .banner-parallax__content {
    padding-top: 2.75rem;
    padding-bottom: 2.75rem;
  }

  .banner-parallax__actions {
    margin-top: 2rem;
  }
}

.banner-parallax__media {
  position: absolute;
  inset: 0;
}

.banner-parallax__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.banner-parallax__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(1, 30, 32, 0.45) 0%,
    rgba(1, 30, 32, 0.65) 50%,
    rgba(0, 15, 16, 0.75) 100%
  );
  pointer-events: none;
}

.banner-parallax__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.banner-parallax__brand {
  font-size: clamp(2.5rem, 9vw, 4.75rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.banner-parallax__title {
  margin-top: 0.5rem;
  font-size: clamp(1.125rem, 3.5vw, 1.875rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: -0.01em;
  line-height: 1.25;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.banner-parallax__subtitle {
  margin-top: 0.75rem;
  font-size: clamp(0.875rem, 2.2vw, 1.125rem);
  color: rgba(255, 255, 255, 0.82);
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.banner-parallax__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* Botões do banner */
.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
  cursor: pointer;
  text-decoration: none;
}

.hero-btn__icon {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
}

.hero-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.hero-btn:active {
  transform: translateY(0);
}

.hero-btn--primary {
  background: var(--brand-600);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow:
    0 4px 20px rgba(1, 30, 32, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.hero-btn--primary:hover {
  background: var(--brand-700);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow:
    0 8px 28px rgba(1, 30, 32, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

@media (min-width: 640px) {
  .hero-btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.9375rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header__nav {
    transition-duration: 0.01ms;
  }
  .hero-btn:hover {
    transform: none;
  }
}

/* Faixa CTA WhatsApp — fundo datacenter bem transparente */
.cta-wa {
  background-color: var(--brand-800);
}

.cta-wa__bg {
  position: absolute;
  inset: 0;
  background: url("../imagens/hero-datacenter-C5EOfco3.jpg") center / cover no-repeat;
  opacity: 0.12;
  pointer-events: none;
}

.site-footer {
  background-color: var(--footer-bg);
}

/* Placeholder retangular para banners */
.banner-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 12rem;
  background: linear-gradient(145deg, #e2e8f0 0%, #cbd5e1 100%);
  border: 2px dashed rgba(100, 116, 139, 0.5);
  color: #64748b;
  text-align: center;
  padding: 1.5rem;
}

.banner-placeholder--hero {
  min-height: 16rem;
}

@media (min-width: 768px) {
  .banner-placeholder--hero {
    min-height: 20rem;
  }
}

.banner-placeholder__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-700);
  margin-bottom: 0.5rem;
}

.banner-placeholder__text {
  font-size: 0.875rem;
  line-height: 1.5;
  max-width: 28rem;
}

.banner-placeholder__file {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-family: ui-monospace, monospace;
  color: #475569;
}

/* FAQ */
#faq details summary {
  position: relative;
  padding-right: 1.5rem;
}

#faq details summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--brand-600);
  line-height: 1.25;
}

#faq details[open] summary::after {
  content: "−";
}

/* Blocos de serviço alternados (imagem | texto) */
.service-block-image {
  min-height: 14rem;
  overflow: hidden;
  background-color: #f1f5f9;
}

.service-block-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 14rem;
  object-fit: cover;
  object-position: center;
}

@media (min-width: 1024px) {
  .service-block-image {
    min-height: 18rem;
  }

  .service-block-image img {
    min-height: 18rem;
  }
}

/* Botão flutuante WhatsApp */
.wa-float {
  box-shadow: 0 10px 40px rgba(1, 30, 32, 0.35);
}

/* Validação do formulário (classes usadas via JS) */
.cf-input-invalid {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}
