/**
 * WOOLTEX Premium Design Enhancements
 * Visual polish only — no colour palette or layout changes.
 */

/* ═══════════════════════════════════════
   1. GLOBAL TYPOGRAPHY HIERARCHY
   ═══════════════════════════════════════ */

h1,
.hero-headline,
body.wtx-subpage .page-hero h1,
body.wtx-subpage .history-hero h1,
body.wtx-subpage .team-hero h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

body.wtx-subpage .page-hero.page-hero--compact h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
}

h2,
section > div > h2,
.section-head h2,
.ds-heading h2,
section h2[style] {
  font-size: clamp(2rem, 4vw, 3rem) !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.01em !important;
}

h3,
.why-title,
.step-title,
.cat-name,
body.wtx-subpage .feature-card h3,
body.wtx-subpage .value-ds-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.wtx-section-label,
body.wtx-subpage .ds-label,
body.wtx-subpage .page-hero-badge {
  font-size: 0.7rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase;
}

/* Section label shimmer */
.wtx-section-label,
body.wtx-subpage .ds-label {
  background-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: wtxShimmer 3s ease-in-out 1;
}

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

/* ═══════════════════════════════════════
   2. NAVBAR — PREMIUM POLISH
   ═══════════════════════════════════════ */

.nav-logo span,
.navbar-title,
.navbar-brand .navbar-title {
  font-weight: 900 !important;
  letter-spacing: 0.04em !important;
  background: linear-gradient(135deg, #1A237E, #E53935);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-link {
  position: relative;
  border-bottom: 2px solid transparent !important;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: #E53935;
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after,
.nav-link:focus-visible::after {
  width: 100%;
}

.nav-link.active {
  border-bottom-color: transparent !important;
}

/* CTA shine sweep */
.wtx-btn-shine,
.navbar-cta,
.mobile-cta-btn,
.btn-primary,
.hero-buttons .btn-primary,
.hero-buttons button.btn-primary {
  position: relative;
  overflow: hidden;
}

.wtx-btn-shine::after,
.navbar-cta::after,
.mobile-cta-btn::after,
.btn-primary::after,
.hero-buttons .btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.35),
    transparent
  );
  transform: skewX(-20deg);
  transition: left 0.5s ease;
  pointer-events: none;
}

.wtx-btn-shine:hover::after,
.navbar-cta:hover::after,
.mobile-cta-btn:hover::after,
.btn-primary:hover::after,
.hero-buttons .btn-primary:hover::after {
  left: 150%;
}

/* ═══════════════════════════════════════
   3. HERO SECTION — HIGH IMPACT
   ═══════════════════════════════════════ */

.hero {
  isolation: isolate;
}

.hero-bg {
  will-change: transform;
  animation: wtxHeroBgKen 22s ease-in-out infinite alternate;
}

@keyframes wtxHeroBgKen {
  from { transform: scale(1.02); }
  to { transform: scale(1.06); }
}

/* Word-by-word hero headline */
.hero-headline {
  animation: none !important;
}

.hero-headline .hero-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px);
  animation: wtxHeroWordIn 0.6s ease forwards;
  will-change: opacity, transform;
}

@keyframes wtxHeroWordIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-headline .w,
.hero-headline .r,
.hero-headline .b {
  display: block;
  font-size: clamp(2.8rem, 6vw, 5rem) !important;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero-eyebrow {
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.hero-buttons .btn-outline {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* CTA pulse ring */
.btn-primary,
.hero-buttons .btn-primary {
  animation: wtxPulseRing 2.5s infinite;
}

.btn-primary:hover,
.hero-buttons .btn-primary:hover {
  animation: none;
}

@keyframes wtxPulseRing {
  0% { box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.4); }
  70% { box-shadow: 0 0 0 12px rgba(229, 57, 53, 0); }
  100% { box-shadow: 0 0 0 0 rgba(229, 57, 53, 0); }
}

/* ═══════════════════════════════════════
   4. TRUST BADGES STRIP
   ═══════════════════════════════════════ */

/* Hero bottom trust zone — breathing room */
.network-anchor {
  padding: 28px clamp(24px, 5vw, 80px) !important;
}

.network-anchor p {
  line-height: 1.75 !important;
  max-width: 640px !important;
}

.trust-bar {
  padding: 32px clamp(24px, 5vw, 80px) 40px !important;
  gap: 16px !important;
}

.trust-bar .trust-item {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  padding: 10px 22px;
  transition: background 0.2s ease, transform 0.2s ease;
  will-change: transform;
}

.trust-bar .trust-item:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

.trust-bar .trust-item span {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.trust-bar .trust-item:nth-child(1) { animation: wtxTrustIn 0.5s ease 0.1s both; }
.trust-bar .trust-item:nth-child(2) { animation: wtxTrustIn 0.5s ease 0.25s both; }
.trust-bar .trust-item:nth-child(3) { animation: wtxTrustIn 0.5s ease 0.4s both; }

@keyframes wtxTrustIn {
  from { opacity: 0; transform: translateX(-16px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 768px) {
  .network-anchor {
    padding: 22px 20px !important;
  }

  .trust-bar {
    padding: 24px 0 32px !important;
  }
}

/* ═══════════════════════════════════════
   5. WHY CHOOSE US — PREMIUM CARDS
   ═══════════════════════════════════════ */

.why-card {
  background: #ffffff;
  border: 1px solid rgba(26, 35, 126, 0.08) !important;
  border-radius: 20px;
  padding: 36px 28px !important;
  box-shadow: 0 4px 24px rgba(26, 35, 126, 0.07) !important;
  transition: all 0.35s ease;
  cursor: pointer;
  will-change: transform;
  overflow: visible !important;
  z-index: 1;
}

.why-card:hover {
  z-index: 2;
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(26, 35, 126, 0.15) !important;
  border-color: rgba(229, 57, 53, 0.25) !important;
}

.why-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(90deg, #1A237E, #E53935);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

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

/* Room for floating number badges above cards */
section:has(.why-card) div[style*="repeat(4, 1fr)"] {
  padding-top: 28px !important;
  overflow: visible !important;
}

.why-number {
  width: 52px !important;
  height: 52px !important;
  top: -20px !important;
  right: 20px !important;
  font-size: 1.1rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  background: linear-gradient(135deg, #1A237E, #1565C0) !important;
  box-shadow: 0 8px 24px rgba(26, 35, 126, 0.3);
  z-index: 3;
}

.why-card:hover .why-number {
  background: linear-gradient(135deg, #E53935, #C62828) !important;
}

.why-title {
  color: #0D1B4B;
  font-weight: 700 !important;
  font-size: 1.15rem !important;
}

.why-text {
  color: #37474F;
  line-height: 1.7 !important;
}

/* ═══════════════════════════════════════
   6. TRUST BUILDING — CREDENTIAL CARDS
   ═══════════════════════════════════════ */

.trust-cred-card {
  background: #ffffff !important;
  border-radius: 24px !important;
  padding: 40px 32px 36px !important;
  border: 1px solid rgba(26, 35, 126, 0.08) !important;
  box-shadow: 0 4px 24px rgba(26, 35, 126, 0.07) !important;
  transition: all 0.35s ease;
  cursor: default;
  will-change: transform;
}

.trust-cred-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(26, 35, 126, 0.14) !important;
  border-color: rgba(229, 57, 53, 0.2) !important;
}

.trust-cred-icon {
  width: 72px !important;
  height: 72px !important;
  border-radius: 50% !important;
}

.trust-cred-title {
  font-weight: 800 !important;
  font-size: 1.2rem !important;
}

.trust-cred-badge {
  background: linear-gradient(135deg, #1A237E, #1565C0) !important;
  box-shadow: 0 4px 16px rgba(26, 35, 126, 0.25);
}

.trust-cred-card:hover .trust-cred-badge {
  background: linear-gradient(135deg, #E53935, #C62828) !important;
}

@keyframes wtxFlowDot {
  0% { left: 0; opacity: 0; transform: translateX(0); }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: 100%; opacity: 0; transform: translateX(-100%); }
}

.step-badge {
  background: linear-gradient(135deg, #E53935, #C62828) !important;
  box-shadow: 0 4px 16px rgba(229, 57, 53, 0.35);
  transform: rotate(-1.5deg);
  transition: transform 0.2s ease;
  display: inline-flex !important;
}

.step-badge:hover {
  transform: rotate(0deg) scale(1.05);
}

/* ═══════════════════════════════════════
   7. TESTIMONIALS — PREMIUM CARDS
   ═══════════════════════════════════════ */

section:has(.testi-card)::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 95% 100%,
    rgba(229, 57, 53, 0.08) 0%,
    transparent 60%
  );
  pointer-events: none;
  z-index: 0;
}

.testi-card {
  background: #ffffff !important;
  border-radius: 20px !important;
  padding: 36px 32px !important;
  border: 1px solid rgba(26, 35, 126, 0.08) !important;
  box-shadow: 0 8px 40px rgba(26, 35, 126, 0.08) !important;
  transition: all 0.3s ease;
  cursor: pointer;
  will-change: transform;
}

.testi-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(26, 35, 126, 0.15) !important;
  border-color: rgba(229, 57, 53, 0.2) !important;
}

.testi-featured {
  border: 1px solid rgba(26, 35, 126, 0.08) !important;
  border-top: 3px solid #E53935 !important;
  transform: translateY(-8px);
  box-shadow: 0 12px 48px rgba(26, 35, 126, 0.14) !important;
}

.testi-quote {
  font-size: 5rem !important;
  font-weight: 900 !important;
  color: #E53935 !important;
  opacity: 0.15 !important;
  position: absolute !important;
  top: 16px !important;
  left: 24px !important;
  font-family: Georgia, serif !important;
  z-index: 0;
  line-height: 1 !important;
  margin-bottom: 0 !important;
}

.testi-stars {
  color: #E53935 !important;
  font-size: 1rem !important;
  letter-spacing: 2px !important;
  text-shadow: 0 0 8px rgba(229, 57, 53, 0.4);
  position: relative;
  z-index: 1;
}

.testi-text {
  font-style: italic !important;
  color: #37474F !important;
  line-height: 1.8 !important;
  font-size: 0.95rem !important;
  position: relative;
  z-index: 1;
}

.testi-card > p:last-of-type {
  color: #1A237E !important;
  font-weight: 600 !important;
  position: relative;
  z-index: 1;
}

.testi-card > p:last-of-type::before {
  content: "✓ ";
  color: #E53935;
  font-weight: 700;
}

/* ═══════════════════════════════════════
   8. INNER PAGE HEROES
   ═══════════════════════════════════════ */

body.wtx-subpage .page-hero,
body.wtx-subpage .team-hero,
body.wtx-subpage .history-hero {
  position: relative;
  overflow: hidden;
}

.wtx-hero-accent-line {
  position: absolute;
  right: 8%;
  top: 20%;
  width: 2px;
  height: 60%;
  background: linear-gradient(180deg, transparent, #E53935, transparent);
  opacity: 0.3;
  pointer-events: none;
  z-index: 1;
}

.wtx-hero-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.wtx-hero-dot {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  animation: wtxFloatDot 6s ease-in-out infinite;
  will-change: transform, opacity;
}

@keyframes wtxFloatDot {
  0%, 100% { transform: translateY(0); opacity: 0.15; }
  50% { transform: translateY(-15px); opacity: 0.35; }
}

/* ═══════════════════════════════════════
   9. FOOTER — PREMIUM POLISH
   ═══════════════════════════════════════ */

.wtx-footer {
  position: relative;
}

.wtx-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, #E53935, #1A237E, transparent);
  z-index: 2;
  pointer-events: none;
}

.wtx-footer-logo-row {
  box-shadow: 0 0 40px rgba(229, 57, 53, 0.08);
  border-radius: 12px;
  padding: 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.wtx-footer-social a {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  transition: all 0.2s ease !important;
  will-change: transform;
}

.wtx-footer-social a:hover,
.wtx-footer-social a:focus-visible {
  background: rgba(229, 57, 53, 0.2) !important;
  border-color: #E53935 !important;
  transform: translateY(-3px);
}

.wtx-footer-social .wtx-social-icon path {
  fill: #9E9E9E;
  transition: fill 0.2s ease;
}

.wtx-footer-social a:hover .wtx-social-icon path,
.wtx-footer-social a:focus-visible .wtx-social-icon path {
  fill: #ffffff;
}

.wtx-footer-links a {
  border-left: 2px solid transparent;
  transition: padding-left 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.wtx-footer-links a:hover,
.wtx-footer-links a:focus-visible {
  padding-left: 8px;
  border-left-color: #E53935;
}

.wtx-footer-bottom {
  background: rgba(0, 0, 0, 0.25) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}

/* ═══════════════════════════════════════
   10. MICRO-INTERACTIONS (GLOBAL)
   ═══════════════════════════════════════ */

button,
.wtx-btn-shine,
a.btn-primary,
a[class*="cta"],
.cat-link-btn,
.cat-enquire-inline,
.mobile-cta-btn {
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

button:active,
.wtx-btn-shine:active,
.btn-primary:active,
.mobile-cta-btn:active {
  transform: scale(0.97) !important;
}

.why-card,
.trust-cred-card,
.testi-card,
.cat-main-card,
.feature-card,
.value-ds-card,
.product-card,
.p-card,
.leadership-card-redesign,
.partner-card-redesign,
.contact-premium-card,
.timeline-item,
.milestone-item {
  cursor: pointer;
  will-change: transform;
}

/* Body content link underline */
main a:not(.nav-link):not(.nav-logo):not(.btn-primary):not(.btn-outline):not(.mobile-link):not(.mobile-cta-btn):not(.mobile-wa-btn):not(.cat-link-btn):not(.cat-toggle):not(.cat-enquire-inline):not(.dropdown-item):not(.wtx-footer-links a):not(.whatsapp-float):not(.page-hero-back),
.wtx-subpage-main a:not(.nav-link):not(.nav-logo):not(.mobile-link):not(.dropdown-item):not(.wtx-footer-links a):not(.whatsapp-float):not(.page-hero-back) {
  text-decoration: none;
  background-image: linear-gradient(#E53935, #E53935);
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.3s ease;
}

main a:not(.nav-link):not(.nav-logo):not(.btn-primary):not(.btn-outline):not(.mobile-link):not(.mobile-cta-btn):not(.mobile-wa-btn):not(.cat-link-btn):not(.cat-toggle):not(.cat-enquire-inline):not(.dropdown-item):not(.wtx-footer-links a):not(.whatsapp-float):not(.page-hero-back):hover,
main a:not(.nav-link):not(.nav-logo):not(.btn-primary):not(.btn-outline):not(.mobile-link):not(.mobile-cta-btn):not(.mobile-wa-btn):not(.cat-link-btn):not(.cat-toggle):not(.cat-enquire-inline):not(.dropdown-item):not(.wtx-footer-links a):not(.whatsapp-float):not(.page-hero-back):focus-visible,
.wtx-subpage-main a:not(.nav-link):not(.nav-logo):not(.mobile-link):not(.dropdown-item):not(.wtx-footer-links a):not(.whatsapp-float):not(.page-hero-back):hover,
.wtx-subpage-main a:not(.nav-link):not(.nav-logo):not(.mobile-link):not(.dropdown-item):not(.wtx-footer-links a):not(.whatsapp-float):not(.page-hero-back):focus-visible {
  background-size: 100% 2px;
}

/* WhatsApp floating button */
.whatsapp-float {
  animation:
    whatsappBounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) both,
    wtxWaBounce 3s ease-in-out 2s infinite !important;
  will-change: transform;
}

@keyframes wtxWaBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.05); }
}

.whatsapp-float:hover {
  animation: none !important;
}

.whatsapp-pulse {
  animation: wtxPulseRingWa 2.5s infinite !important;
}

@keyframes wtxPulseRingWa {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45); transform: scale(1); }
  70% { box-shadow: 0 0 0 12px rgba(37, 211, 102, 0); transform: scale(1); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); transform: scale(1); }
}

.whatsapp-tooltip {
  background: #25D366 !important;
  color: #ffffff !important;
  font-size: 12px !important;
  padding: 4px 10px !important;
  border-radius: 6px !important;
}

.whatsapp-tooltip::after {
  border-left-color: #25D366 !important;
}

/* Catalogue & subpage cards */
.cat-main-card {
  transition: all 0.35s ease;
  will-change: transform;
}

.cat-main-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(26, 35, 126, 0.12);
}

body.wtx-subpage .feature-card,
body.wtx-subpage .value-ds-card,
.contact-premium-card,
.leadership-card-redesign,
.partner-card-redesign,
.timeline-item,
.milestone-item,
.growth-stat,
.ds-stat-border {
  transition: all 0.35s ease;
  will-change: transform;
}

body.wtx-subpage .feature-card:hover,
body.wtx-subpage .value-ds-card:hover,
.contact-premium-card:hover,
.leadership-card-redesign:hover,
.partner-card-redesign:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(26, 35, 126, 0.12);
}

/* ═══════════════════════════════════════
   11. MOBILE & REDUCED MOTION
   ═══════════════════════════════════════ */

@media (max-width: 768px) {
  .reveal,
  .animate-on-scroll {
    transform: translateY(20px);
  }
}

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

  .reveal,
  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }

  .hero-headline .hero-word {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
