/* W-TECH — Custom Styles */

:root {
  --wt-primary: #0A1628;
  --wt-secondary: #3A5F9F;
  --wt-highlight: #4A7BC4;
  --wt-bg: #FFFFFF;
  --wt-bg-soft: #F5F7FA;
  --wt-cta: #FF6B00;
  --wt-cta-hover: #E55F00;
  --wt-text: #2D2D2D;
  --wt-text-muted: #5A5A5A;
  --wt-whatsapp: #25D366;
  --wt-whatsapp-hover: #1FB958;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--wt-text);
  background: var(--wt-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Logo on dark backgrounds */
.logo-on-dark { filter: brightness(1.1); }

/* Focus states for accessibility */
:focus-visible {
  outline: 3px solid var(--wt-cta);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Header on scroll */
.wt-header {
  background: transparent;
  transition: background-color 420ms cubic-bezier(0.4, 0, 0.2, 1),
              backdrop-filter 420ms cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 420ms cubic-bezier(0.4, 0, 0.2, 1),
              border-color 420ms cubic-bezier(0.4, 0, 0.2, 1),
              height 320ms cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(0);
}
.wt-header.scrolled {
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
.wt-header.scrolled .wt-logo { filter: brightness(1.1); }
.wt-header.scrolled .wt-nav-link {
  color: rgba(255, 255, 255, 0.92);
}
.wt-header.scrolled .wt-nav-link.active,
.wt-header.scrolled .wt-nav-link:hover { color: #ffffff; }
.wt-header.scrolled .wt-nav-link.active::after {
  background: var(--wt-cta);
}
.wt-header.scrolled .wt-hamburger span { background: #ffffff; }

/* Subpages header: dark by default */
.wt-header.dark-bg {
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
.wt-header.dark-bg .wt-logo { filter: brightness(1.1); }
.wt-header.dark-bg .wt-nav-link { color: rgba(255, 255, 255, 0.92); }
.wt-header.dark-bg .wt-nav-link:hover,
.wt-header.dark-bg .wt-nav-link.active { color: #ffffff; }
.wt-header.dark-bg .wt-nav-link.active::after { background: var(--wt-cta); }
.wt-header.dark-bg .wt-hamburger span { background: #ffffff; }

/* Hero-mode header (transparent over hero, light text) */
.wt-header.over-hero .wt-nav-link { color: rgba(255, 255, 255, 0.92); }
.wt-header.over-hero .wt-nav-link:hover,
.wt-header.over-hero .wt-nav-link.active { color: #ffffff; }
.wt-header.over-hero .wt-nav-link.active::after { background: var(--wt-cta); }
.wt-header.over-hero .wt-logo { filter: brightness(1.1); }
.wt-header.over-hero .wt-hamburger span { background: #ffffff; }

/* Nav link with animated underline */
.wt-nav-link {
  position: relative;
  color: var(--wt-text);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 10px 2px;
  letter-spacing: 0.01em;
  transition: color 260ms ease;
}
.wt-nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 2px;
  background: var(--wt-secondary);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 320ms cubic-bezier(0.4, 0, 0.2, 1),
              background-color 260ms ease;
}
.wt-nav-link:hover { color: var(--wt-secondary); }
.wt-nav-link:hover::after { transform: scaleX(1); }
.wt-nav-link.active { color: var(--wt-primary); }
.wt-nav-link.active::after {
  transform: scaleX(1);
  background: var(--wt-cta);
}
/* Dark header variants: keep underline visible on dark bg */
.wt-header.scrolled .wt-nav-link::after,
.wt-header.dark-bg .wt-nav-link::after,
.wt-header.over-hero .wt-nav-link::after { background: var(--wt-highlight); }
.wt-header.scrolled .wt-nav-link.active::after,
.wt-header.dark-bg .wt-nav-link.active::after,
.wt-header.over-hero .wt-nav-link.active::after { background: var(--wt-cta); }

/* Hamburger animation */
.wt-hamburger { width: 28px; height: 22px; position: relative; cursor: pointer; }
.wt-hamburger span {
  display: block;
  position: absolute;
  height: 2.5px;
  width: 100%;
  background: var(--wt-primary);
  border-radius: 2px;
  transition: all 300ms ease;
}
.wt-hamburger span:nth-child(1) { top: 0; }
.wt-hamburger span:nth-child(2) { top: 10px; }
.wt-hamburger span:nth-child(3) { top: 20px; }
.wt-hamburger.open span:nth-child(1) { top: 10px; transform: rotate(45deg); background: #fff; }
.wt-hamburger.open span:nth-child(2) { opacity: 0; }
.wt-hamburger.open span:nth-child(3) { top: 10px; transform: rotate(-45deg); background: #fff; }

/* Header CTA pill ("Solicitar Orçamento") */
.wt-header-cta {
  background: var(--wt-cta);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  padding: 10px 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(255, 107, 0, 0.32);
  transition: background-color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}
.wt-header-cta:hover {
  background: var(--wt-cta-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(255, 107, 0, 0.45);
}
.wt-header-cta:active { transform: translateY(0); }
.wt-header-cta svg { width: 18px; height: 18px; }

/* CTA button */
.wt-cta {
  background: var(--wt-cta);
  color: #ffffff;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.25);
  cursor: pointer;
}
.wt-cta:hover { background: var(--wt-cta-hover); box-shadow: 0 6px 18px rgba(255, 107, 0, 0.35); }
.wt-cta:active { transform: translateY(1px); }

.wt-cta-outline {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.7);
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background-color 200ms ease, border-color 200ms ease;
  cursor: pointer;
}
.wt-cta-outline:hover { background: rgba(255, 255, 255, 0.12); border-color: #ffffff; }

/* Section base */
section { padding: 80px 0; }
@media (max-width: 768px) { section { padding: 56px 0; } }

/* Hero pattern background */
.wt-hero-pattern {
  background-color: var(--wt-primary);
  background-image:
    radial-gradient(circle at 20% 20%, rgba(58, 95, 159, 0.25) 0%, transparent 35%),
    radial-gradient(circle at 80% 30%, rgba(74, 123, 196, 0.18) 0%, transparent 40%),
    linear-gradient(135deg, transparent 0%, transparent 50%, rgba(58, 95, 159, 0.08) 50%, rgba(58, 95, 159, 0.08) 100%);
  background-size: cover, cover, 60px 60px;
}

/* Service card */
.wt-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 28px;
  border: 1px solid #E8EDF3;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.wt-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(10, 22, 40, 0.10);
  border-color: var(--wt-secondary);
}
.wt-card-icon {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: rgba(58, 95, 159, 0.10);
  color: var(--wt-secondary);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.wt-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--wt-primary);
  margin-bottom: 8px;
}
.wt-card p { color: var(--wt-text-muted); font-size: 0.95rem; line-height: 1.6; }
.wt-card .wt-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--wt-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 16px;
  transition: color 200ms ease, gap 200ms ease;
}
.wt-card .wt-link:hover { color: var(--wt-highlight); gap: 10px; }

/* Section title */
.wt-section-title {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--wt-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.wt-section-subtitle {
  color: var(--wt-text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 720px;
}
.wt-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--wt-secondary);
  margin-bottom: 10px;
}

/* Stats */
.wt-stat-number {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  letter-spacing: -0.02em;
}
.wt-stat-label {
  color: rgba(255, 255, 255, 0.85);
  margin-top: 8px;
  font-size: 0.98rem;
}

/* Step (How it works) */
.wt-step {
  position: relative;
  padding: 24px;
  text-align: center;
}
.wt-step-num {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(58, 95, 159, 0.10);
  color: var(--wt-secondary);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.wt-step h4 { color: var(--wt-primary); font-weight: 700; margin-bottom: 6px; }
.wt-step p { color: var(--wt-text-muted); font-size: 0.95rem; }

/* Floating WhatsApp */
.wt-float {
  position: fixed;
  right: 18px;
  z-index: 60;
  display: inline-flex; align-items: center; justify-content: center;
  width: 58px; height: 58px;
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  color: #ffffff;
  transition: transform 200ms ease;
}
.wt-float:hover { transform: scale(1.06); }
.wt-float.whatsapp { bottom: 22px; background: var(--wt-whatsapp); }
.wt-float.whatsapp:hover { background: var(--wt-whatsapp-hover); }
.wt-float.phone { bottom: 90px; background: var(--wt-secondary); }
.wt-float.phone:hover { background: var(--wt-highlight); }

@media (min-width: 768px) {
  .wt-float.phone { display: none; }
}

/* Pulse animation */
@keyframes wt-pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.wt-float.whatsapp { animation: wt-pulse-ring 2.2s infinite; }

/* Float tooltip */
.wt-float-tooltip {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--wt-primary);
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}
.wt-float:hover .wt-float-tooltip { opacity: 1; }

/* FAQ Accordion */
.wt-faq {
  border: 1px solid #E5E9F0;
  border-radius: 10px;
  background: #fff;
  margin-bottom: 12px;
  overflow: hidden;
}
.wt-faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-weight: 600;
  color: var(--wt-primary);
}
.wt-faq summary::-webkit-details-marker { display: none; }
.wt-faq[open] summary { background: #F5F7FA; }
.wt-faq .wt-faq-content {
  padding: 4px 22px 20px;
  color: var(--wt-text-muted);
  line-height: 1.65;
}
.wt-faq summary svg { transition: transform 250ms ease; flex-shrink: 0; }
.wt-faq[open] summary svg { transform: rotate(45deg); }

/* Page Hero (subpages) */
.wt-page-hero {
  background: var(--wt-primary);
  background-image:
    radial-gradient(circle at 80% 0%, rgba(58, 95, 159, 0.28) 0%, transparent 40%),
    radial-gradient(circle at 10% 100%, rgba(74, 123, 196, 0.16) 0%, transparent 40%);
  padding: 140px 0 80px;
  color: #ffffff;
}
.wt-page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.wt-breadcrumb {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  margin-bottom: 12px;
}
.wt-breadcrumb a { color: rgba(255, 255, 255, 0.75); }
.wt-breadcrumb a:hover { color: #fff; }

/* Fade-in animation (IntersectionObserver) */
.wt-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.wt-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Counter pulse */
@keyframes wt-count-pop {
  0% { transform: scale(0.96); }
  100% { transform: scale(1); }
}
.wt-stat-number.counted { animation: wt-count-pop 350ms ease; }

/* Mobile menu drawer */
.wt-mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(10, 22, 40, 0.98);
  backdrop-filter: blur(8px);
  z-index: 55;
  display: flex;
  flex-direction: column;
  padding: 96px 24px 32px;
  transform: translateX(100%);
  transition: transform 320ms ease;
  overflow-y: auto;
}
.wt-mobile-menu.open { transform: translateX(0); }
.wt-mobile-menu a {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 600;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: color 200ms ease;
}
.wt-mobile-menu a:hover,
.wt-mobile-menu a.active { color: var(--wt-cta); }
body.menu-open { overflow: hidden; }

/* Form */
.wt-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #D8DEE8;
  border-radius: 8px;
  background: #fff;
  font-size: 0.98rem;
  color: var(--wt-text);
  transition: border-color 180ms ease, box-shadow 180ms ease;
  font-family: inherit;
}
.wt-input:focus {
  outline: none;
  border-color: var(--wt-secondary);
  box-shadow: 0 0 0 3px rgba(58, 95, 159, 0.15);
}
.wt-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--wt-primary);
  margin-bottom: 6px;
}

/* Testimonial card */
.wt-testimonial {
  background: #fff;
  border-radius: 14px;
  padding: 28px;
  border: 1px solid #E8EDF3;
  box-shadow: 0 4px 16px rgba(10, 22, 40, 0.06);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.wt-testimonial p.quote {
  color: var(--wt-text);
  font-size: 1rem;
  line-height: 1.65;
  flex-grow: 1;
}
.wt-testimonial .stars { color: var(--wt-cta); margin-bottom: 12px; }
.wt-testimonial .author {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #EEF1F5;
}
.wt-testimonial .author strong { color: var(--wt-primary); display: block; }
.wt-testimonial .author span { color: var(--wt-text-muted); font-size: 0.88rem; }

/* Blog card */
.wt-blog-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #E8EDF3;
  transition: transform 220ms ease, box-shadow 220ms ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.wt-blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(10, 22, 40, 0.10);
}
.wt-blog-card .img-ph {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #0A1628 0%, #3A5F9F 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
}
.wt-blog-card .body { padding: 22px; flex-grow: 1; display: flex; flex-direction: column; }
.wt-blog-card .tag {
  display: inline-block;
  background: rgba(58, 95, 159, 0.10);
  color: var(--wt-secondary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
  width: fit-content;
}
.wt-blog-card h3 {
  color: var(--wt-primary);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.35;
  margin-bottom: 10px;
}
.wt-blog-card p { color: var(--wt-text-muted); font-size: 0.93rem; line-height: 1.6; flex-grow: 1; }
.wt-blog-card .read-more {
  color: var(--wt-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap 200ms ease, color 200ms ease;
}
.wt-blog-card .read-more:hover { color: var(--wt-highlight); gap: 10px; }

/* Footer */
.wt-footer {
  background: var(--wt-primary);
  color: rgba(255, 255, 255, 0.78);
}
.wt-footer h4 {
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  margin-bottom: 18px;
}
.wt-footer a { color: rgba(255, 255, 255, 0.78); transition: color 180ms ease; }
.wt-footer a:hover { color: #fff; }
.wt-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  margin-top: 56px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .wt-reveal { opacity: 1; transform: none; }
}

/* Utility */
.container-wt { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 1024px) { .container-wt { padding: 0 32px; } }

/* Coverage chips */
.wt-chip {
  background: #fff;
  border: 1.5px solid #D8DEE8;
  color: var(--wt-primary);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: border-color 200ms ease, color 200ms ease, transform 200ms ease;
}
.wt-chip:hover {
  border-color: var(--wt-secondary);
  color: var(--wt-secondary);
  transform: translateY(-2px);
}

/* Logo placeholder for certifications */
.wt-cert {
  background: #fff;
  border: 1.5px solid #E8EDF3;
  border-radius: 12px;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 110px;
  transition: border-color 220ms ease, transform 220ms ease;
}
.wt-cert:hover { border-color: var(--wt-secondary); transform: translateY(-2px); }
.wt-cert-name {
  font-weight: 800;
  color: var(--wt-primary);
  letter-spacing: -0.02em;
  font-size: 1.4rem;
}

/* Why-list item */
.wt-why-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
}
.wt-why-item .ico {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255, 107, 0, 0.10);
  color: var(--wt-cta);
  display: inline-flex; align-items: center; justify-content: center;
}
.wt-why-item p { color: var(--wt-text); font-weight: 500; }

/* Audience card */
.wt-audience {
  background: #fff;
  border: 1px solid #E8EDF3;
  border-radius: 14px;
  padding: 36px 28px;
  text-align: center;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.wt-audience:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(10, 22, 40, 0.10);
  border-color: var(--wt-secondary);
}
.wt-audience .ico {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--wt-secondary), var(--wt-highlight));
  color: #fff;
  margin: 0 auto 18px;
  display: inline-flex; align-items: center; justify-content: center;
}
.wt-audience h3 { color: var(--wt-primary); font-weight: 700; font-size: 1.2rem; margin-bottom: 8px; }
.wt-audience p { color: var(--wt-text-muted); line-height: 1.6; }

/* List with check marks */
.wt-check-list { list-style: none; padding: 0; }
.wt-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  color: var(--wt-text);
}
.wt-check-list li svg { flex-shrink: 0; color: var(--wt-secondary); margin-top: 3px; }

/* Dark-on-section variant */
.wt-card.dark-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: #fff;
}
.wt-card.dark-card h3 { color: #fff; }
.wt-card.dark-card p { color: rgba(255, 255, 255, 0.75); }
.wt-card.dark-card .wt-card-icon {
  background: rgba(255, 107, 0, 0.15);
  color: var(--wt-cta);
}
.wt-card.dark-card:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 107, 0, 0.45);
}
