/* Critical Performance Styles */
:root {
    --primary-font: 'Poppins', sans-serif;
}

body {
    font-family: var(--primary-font);
    font-display: swap;
    visibility: hidden; 
    margin: 0;
}

.preloader { 
    visibility: visible; 
}

/* Animation Base Styles */
[data-w-id] {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
    transition: opacity 0.6s ease, transform 0.6s ease;
    will-change: opacity, transform;
}

[data-w-id].animated {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* Service Item Animation */
.service-list-item {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
    transition: opacity 0.8s ease, transform 0.8s ease;
    transition-delay: calc(var(--item-index, 0) * 0.1s);
    will-change: opacity, transform;
}

.service-list-item.animated {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* Add styling for the NEW badge */
.new-badge {
  display: inline-block;
  background-color: #22c55e;
  color: white;
  font-size: 0.7em;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
  font-weight: 600;
  letter-spacing: 0.5px;
  vertical-align: middle;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
  100% {
    opacity: 1;
  }
} 

/* Beautiful serif emphasis for main headline */
.xxl-heading em {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 500;
  color: inherit;
  letter-spacing: -0.02em;
  position: relative;
}

.xxl-heading em::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    rgba(255,255,255,0.4) 0%, 
    rgba(255,255,255,0.8) 50%, 
    rgba(255,255,255,0.4) 100%);
  border-radius: 1px;
  opacity: 0.6;
}

/* Extend serif styling to all emphasized text */
em, .serif-emphasis {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
  position: relative;
}

/* Subtle underline for emphasized text in content */
.body-display em::after,
.service-overview em::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(0,0,0,0.2) 20%, 
    rgba(0,0,0,0.2) 80%, 
    transparent 100%);
  border-radius: 0.5px;
  opacity: 0.5;
}

/* Light sections keep white underlines */
.light em::after,
.section:not(.grey) em::after {
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255,255,255,0.3) 20%, 
    rgba(255,255,255,0.3) 80%, 
    transparent 100%);
}

/* Modern 2025 Hero Design */
.modern-hero-wrapper {
  position: relative;
  overflow: hidden;
}

.floating-accent {
  position: absolute;
  top: -20px;
  left: -100px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, 
    rgba(255,255,255,0.1) 0%, 
    rgba(255,255,255,0.05) 40%, 
    transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
  animation: floatGently 8s ease-in-out infinite;
}

.floating-accent-2 {
  position: absolute;
  bottom: -50px;
  right: -80px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, 
    rgba(255,255,255,0.08) 0%, 
    rgba(255,255,255,0.03) 50%, 
    transparent 70%);
  border-radius: 50%;
  filter: blur(30px);
  animation: floatGently 10s ease-in-out infinite reverse;
}

@keyframes floatGently {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -15px) scale(1.1); }
}

/* Enhanced Typography */
.modern-headline {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  font-weight: 600;
  position: relative;
  z-index: 2;
}

.modern-supporting-text {
  font-size: 1.125rem;
  line-height: 1.7;
  font-weight: 400;
  opacity: 0.92;
  max-width: 44rem;
  letter-spacing: 0.005em;
  position: relative;
  z-index: 2;
  margin-bottom: 2.5rem;
}

.highlight-number {
  font-weight: 600;
  color: rgba(255,255,255,0.98);
  position: relative;
  white-space: nowrap;
}

.highlight-number::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -4px;
  right: -4px;
  height: 6px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255,255,255,0.15) 20%, 
    rgba(255,255,255,0.15) 80%, 
    transparent 100%);
  border-radius: 3px;
  transform: translateY(-50%);
  z-index: -1;
}

/* Sophisticated spacing */
.hero-intro {
  padding: 3rem 0;
  position: relative;
}

/* Fix text contrast in grey sections */
.section.grey,
.section.grey .body-display,
.section.grey .heading-3,
.section.grey h1,
.section.grey h2,
.section.grey h3,
.section.grey .subtitle,
.section.grey .number-info h2,
.section.grey .number-info div {
  color: #1a1a1a !important;
}

/* Ensure proper contrast for highlighted numbers in grey sections */
.section.grey .highlight-number {
  color: #1a1a1a !important;
  font-weight: 600;
}

/* Keep emphasized text readable */
.section.grey em {
  color: #1a1a1a !important;
} 