.theme-main .dark-mode {
  --color-dark-1: #121212;
  --color-dark-2: #181818;
}

/* Critical CSS for above-the-fold content */
.theme-main {
  --color-dark-1: #2c2c2c;
  --color-gray-1: #666666;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Hero Section Critical */
.hs-title-1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 30px;
  color: var(--color-dark-1);
}

.section-descr {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #666;
  margin-bottom: 0;
}

/* Responsive Critical Styles */
@media (max-width: 768px) {
  .hs-title-1 {
    font-size: 2.5rem;
  }
}

/* Announcement Bar */
.announcement-bar {
  background-color: #596771;
  color: #ffffff;
  font-size: 14px;
  font-weight: 400;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.announcement-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.announcement-content {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}

.announcement-text {
  margin: 0;
  line-height: 1.4;
  letter-spacing: .01em;
  color: #fff;
  font-size: .9em;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.announcement-link {
  color: #ffffff;
  text-decoration: underline;
  transition: opacity 0.2s ease;
}

.announcement-link:hover {
  opacity: 0.8;
  color: #ffffff;
}


/* Adjust body and nav when announcement bar is present */
body.has-announcement-bar {
  padding-top: 33px;
}

.has-announcement-bar .main-nav {
  top: 33px;
}

/* Sticky header with announcement bar */
.js-fixed.has-announcement-bar .main-nav {
  top: 33px;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .announcement-bar {
    font-size: 13px;
  }

  .announcement-container {
    padding: 7px 15px;
  }

  .announcement-content {
    gap: 8px;
  }

  .announcement-text {
    font-size: 13px;
    text-align: center;
  }

  .announcement-link {
    font-size: 13px;
  }

  body.has-announcement-bar {
    padding-top: 43px;
  }

  .has-announcement-bar .main-nav {
    top: 43px;
  }

  /* Sticky header mobile */
  .js-fixed.has-announcement-bar .main-nav {
    top: 43px;
  }
}

.theme-main .btn-mod i.align-center:before {
  transform: translateY(0.12em);
}

.theme-main .btn-mod.btn-w {
  background: rgba(255, 255, 255, 0.98);
}

.theme-main .btn-mod.btn-border-w {
  border-color: rgba(255, 255, 255, 0.98);
}

.theme-main .btn-mod.btn-small {
  padding: 7px 15px 6px;
}

.theme-main .section-caption-border {
  font-size: 15px;
  letter-spacing: 0.039em;
}

.theme-main .section-title-strong {
  font-size: 76px;
}

.theme-main .features-list-icon {
  top: 0.185em;
  margin-right: 9px;
}

.theme-main .features-list-text {
  font-size: 20px;
  letter-spacing: -0.008em;
}

.theme-main .marquee-style-2 {
  font-size: 26px;
  letter-spacing: 0.06em;
}

.theme-main .testimonials-4-author {
  color: var(--color-dark-1);
}

.theme-main .testimonials-4-author .small {
  color: var(--color-gray-1);
}

.theme-main .testimonials-3-author .small {
  color: var(--color-gray-1);
}

.theme-main .light-content .testimonials-3-author .small {
  color: var(--color-dark-mode-gray-1);
}

.theme-main .big-icon-gradient {
  box-shadow: 0px 0px 100px 0px rgba(255, 255, 255, 0.5);
}

.theme-main .features-2-item:before {
  border: 1px solid var(--color-dark-1);
  background: none;
  opacity: 0.15;
  transition: opacity 0.27s var(--ease-default);
  z-index: -1;
}

.theme-main .features-2-item:hover:before {
  opacity: 1;
}

.theme-main .features-2-label {
  font-weight: 500;
  color: var(--color-dark-1);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: unset;
}

.theme-main .features-2-icon:before {
  background: var(--color-gray-light-1);
  opacity: 1;
  z-index: -1;
}

.theme-main .features-2-icon svg {
  fill: var(--color-dark-1);
}

.theme-main .light-content .features-2-item:before {
  background: var(--color-dark-mode-gray-2);
  border: 1px solid var(--color-dark-mode-gray-2);
  transition: border-color 0.27s var(--ease-default);
  opacity: 1;
  z-index: -1;
}

.theme-main .light-content .features-2-item:hover:before {
  background: var(--color-dark-mode-gray-2);
  opacity: 1;
}

.theme-main .light-content .features-2-label {
  color: #fff;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: unset;
}

.theme-main .light-content .features-2-icon {
  color: #fff;
}

.theme-main .light-content .features-2-icon svg {
  fill: #fff;
}

.theme-main .light-content .features-2-icon:before {
  background: var(--color-dark-mode-gray-2);
  opacity: 1;
  z-index: -1;
}

.theme-main .light-content .features-2-descr {
  color: var(--color-dark-mode-gray-1);
}

.theme-main .services-3-title {
  font-size: 22px;
}

.theme-main .services-3-text {
  font-size: 17px;
}

.theme-main .bg-border-gradient:before {
  background: none;
  border: 1px solid var(--color-dark-1);
  opacity: 0.15;
}

.theme-main .light-content .bg-border-gradient:before {
  background: none;
  border: 1px solid #fff;
  opacity: 0.25;
}

.theme-main .bg-gradient-dark-alpha-1:before {
  opacity: 0.9;
}

.theme-main .bg-gradient-dark-alpha-2:before {
  opacity: 0.9;
}

.theme-main .tpl-minimal-tabs {
  font-size: 16px;
  letter-spacing: inherit;
  text-transform: none;
}

.theme-main .ci-title {
  font-size: 20px;
}

.theme-main .call-action-4-image-1,
.theme-main .call-action-4-image-2 {
  border-radius: 0;
}

.theme-main .light-content .form input.newsletter-field {
  color: rgba(255, 255, 255, 0.7);
  background: transparent !important;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.theme-main .light-content .form input.newsletter-field:hover {
  border-color: rgba(255, 255, 255, 0.26);
}

.theme-main .light-content .form input.newsletter-field::placeholder {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition-default), font-size 0s;
}

.theme-main .light-content .form input.newsletter-field:hover::placeholder {
  color: rgba(255, 255, 255, 0.8);
}

.theme-main .light-content .form input.newsletter-field:focus {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

/* Hero Video Background */
.bg-video-wrapper .bg-video {
  object-fit: cover;
  transform: scale(1.1);
  will-change: transform;
}

.bg-video-wrapper .bg-video-overlay {
  transform: scale(1.1);
  will-change: transform;
}

/* Service Detail Page Video */
.page-section video {
  object-fit: cover;
  transform: scale(1.1);
  will-change: transform;
}

/* Performance optimizations */
.wow {
  will-change: transform, opacity;
}

.lazy-image-container {
  contain: layout style paint;
}

/* Remove unused animations on mobile */
@media (max-width: 768px) {
  .wow {
    animation: none !important;
    visibility: visible !important;
  }
}

/* Hero Text Slider */
.hero-text-slider {
  min-height: 180px;
}

.hero-text-slider .swiper-slide {
  opacity: 0 !important;
  transition: opacity 0.6s ease-in-out;
}

.hero-text-slider .swiper-slide-active {
  opacity: 1 !important;
}

/* Lazzoni style typography for hero */
.hero-text-slider .hs-title-11 {
  font-family: 'Poppins', sans-serif !important;
  font-weight: 300 !important;
  font-size: 18px !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  margin-bottom: 25px !important;
}

.hero-text-slider .hs-title-12 {
  font-family: 'Poppins', sans-serif !important;
  font-weight: 200 !important;
  font-size: 78px !important;
  line-height: 1.2 !important;
  letter-spacing: -0.02em !important;
}

@media (max-width: 1366px) {
  .hero-text-slider .hs-title-12 {
    font-size: 58px !important;
  }
}

@media (max-width: 768px) {
  .hero-text-slider {
    min-height: 150px;
  }

  .hero-text-slider .hs-title-11 {
    font-size: 16px !important;
    margin-bottom: 20px !important;
  }

  .hero-text-slider .hs-title-12 {
    font-size: 38px !important;
  }
}

@media only screen and (max-width: 1366px) {
  .theme-main .section-title-strong {
    font-size: calc(1.363rem + 3.97vw);
  }

  .theme-main .marquee-style-2 {
    font-size: calc(0.972rem + 0.76vw);
  }
}