/* Local interaction states and elevated professional design system. */
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #0284c7; outline-offset: 3px; }

/* ==========================================================================
   Global Polish & Typography
   ========================================================================== */
*, *::before, *::after {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(32, 214, 181, 0.28);
  color: #072723;
}

html {
  scroll-behavior: smooth;
}

body {
  color: #1e293b;
}

/* Headings typographic hierarchy */
h1, h2, h3, h4, h5, h6,
.service-heading, .cs-carousel-header h2 {
  letter-spacing: -0.02em;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.navbar.w-nav {
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.85) !important;
  box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.04) !important;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.w-nav-menu .nav-link,
.navbar-container .nav-link {
  font-weight: 500 !important;
  color: #334155 !important;
  border-radius: 8px !important;
  padding: 8px 14px !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.w-nav-menu .nav-link:hover,
.navbar-container .nav-link:hover {
  color: #0f172a !important;
  background-color: rgba(241, 245, 249, 0.85) !important;
}

/* Refined Dropdown Menu Panels */
.w-dropdown > .dropdown-list,
.w-dropdown > .w-dropdown-list,
.w-dropdown:hover > .dropdown-list,
.w-dropdown:hover > .w-dropdown-list,
.nav-link.mega .mega-menu,
.nav-link.mega:hover .mega-menu {
  background: #ffffff !important;
  border-radius: 14px !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  box-shadow: 0 20px 30px -10px rgba(15, 23, 42, 0.08), 0 10px 15px -3px rgba(15, 23, 42, 0.04) !important;
  padding: 8px !important;
}

.dropdown-link {
  border-radius: 8px !important;
  padding: 10px 16px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #334155 !important;
  transition: all 0.18s ease !important;
}

.dropdown-link:hover {
  background-color: #f8fafc !important;
  color: #0284c7 !important;
  padding-left: 20px !important;
}

.vm-submenu-link {
  border-radius: 8px !important;
  padding: 8px 12px !important;
  transition: all 0.2s ease !important;
}

.vm-submenu-link:hover {
  background-color: #f1f5f9 !important;
  color: #0284c7 !important;
  transform: translateX(3px);
}

.w-dropdown.cv-open > .w-dropdown-list { display: block !important; }
.w-dropdown.cv-open .dropdown-toggle svg.icon { transform: translateY(-50%) rotate(180deg); }

/* Primary Navbar "Contact Us" Button */
.button.nav-button,
a.button.nav-button,
.nav-button.w-button {
  background: linear-gradient(135deg, #20d6b5 0%, #0d9488 100%) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  letter-spacing: 0.2px !important;
  border-radius: 9999px !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25), 0 1px 2px rgba(15, 23, 42, 0.05) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.button.nav-button:hover,
a.button.nav-button:hover,
.nav-button.w-button:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(13, 148, 136, 0.35), 0 2px 4px rgba(15, 23, 42, 0.08) !important;
  filter: brightness(1.03) !important;
}

.button.nav-button:active,
a.button.nav-button:active {
  transform: translateY(1px) !important;
  box-shadow: 0 2px 6px rgba(13, 148, 136, 0.2) !important;
}

/* ==========================================================================
   Hero & Primary Buttons
   ========================================================================== */
a.button:not(.nav-button),
.button:not(.nav-button),
.hero-button,
a[href="/contact-us"].button {
  background: linear-gradient(135deg, #20d6b5 0%, #0d9488 100%) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  border-radius: 9999px !important;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.25) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

a.button:not(.nav-button):hover,
.button:not(.nav-button):hover,
.hero-button:hover,
a[href="/contact-us"].button:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 22px rgba(13, 148, 136, 0.38) !important;
  filter: brightness(1.03) !important;
}

/* Hero Section Photography Frame */
.service-banner-flex .service-hero-content + div img,
.hero-banner-image-container img,
.hero-banner img {
  border-radius: 16px !important;
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(15, 23, 42, 0.05) !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease !important;
}

/* Subtitle & Body text polish */
.service-banner-text,
.hero-banner p {
  color: #475569 !important;
  line-height: 1.65 !important;
}

/* ==========================================================================
   Client / Partner Brand Logos
   ========================================================================== */
.section-our-customer h2,
.section-our-customer .gradient-heading,
.text-align-center h2 {
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
}

.loop-marquee-brand-logo-image {
  filter: grayscale(100%) opacity(0.68) !important;
  transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.loop-marquee-brand-logo-image:hover {
  filter: grayscale(0%) opacity(1) !important;
  transform: scale(1.08) !important;
}

/* ==========================================================================
   Success Stories & Case Study Cards
   ========================================================================== */
.cs-carousel { scroll-behavior: smooth; }
.cs-carousel-track { will-change: transform; }

.cs-card {
  background: #ffffff !important;
  border-radius: 14px !important;
  border: 1px solid #e2e8f0 !important;
  overflow: hidden !important;
  box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.04), 0 2px 4px -2px rgba(15, 23, 42, 0.02) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.cs-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 20px 30px -10px rgba(15, 23, 42, 0.1), 0 8px 12px -6px rgba(15, 23, 42, 0.04) !important;
  border-color: #cbd5e1 !important;
}

.cs-card-img {
  overflow: hidden !important;
}

.cs-card-img img {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.cs-card:hover .cs-card-img img {
  transform: scale(1.05) !important;
}

.cs-card-tag {
  background: rgba(15, 23, 42, 0.82) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border-radius: 9999px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.4px !important;
  padding: 5px 12px !important;
  color: #ffffff !important;
}

.cs-card-body h3 {
  color: #0f172a !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  margin-bottom: 8px !important;
  transition: color 0.2s ease !important;
}

.cs-card:hover .cs-card-body h3 {
  color: #0284c7 !important;
}

.cs-card-body p {
  color: #475569 !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
}

.cs-card-link {
  color: #0284c7 !important;
  font-weight: 600 !important;
  font-size: 13.5px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: gap 0.2s ease !important;
}

.cs-card:hover .cs-card-link {
  gap: 10px !important;
}

/* ==========================================================================
   Insights Cards & Filters
   ========================================================================== */
.ins-card {
  border-radius: 14px !important;
  border: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
  overflow: hidden !important;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.03) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.ins-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 14px 24px -8px rgba(15, 23, 42, 0.08) !important;
  border-color: #cbd5e1 !important;
}

.ins-card img {
  border-radius: 12px 12px 0 0 !important;
  transition: transform 0.4s ease !important;
}

.ins-card:hover img {
  transform: scale(1.04) !important;
}

.ins-card h3,
.ins-card .ins-title {
  color: #0f172a !important;
  font-weight: 600 !important;
  transition: color 0.2s ease !important;
}

.ins-card:hover h3,
.ins-card:hover .ins-title {
  color: #0284c7 !important;
}

/* Filter Buttons */
.filter-button,
.ins-filter button,
.ins-filters button,
button.ins-filter-btn {
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 9999px !important;
  background: #ffffff !important;
  color: #475569 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  padding: 8px 18px !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.filter-button:hover,
.ins-filter button:hover {
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
  background: #f8fafc !important;
}

.filter-button.active,
.ins-filter button.w--current,
.ins-filters button.active,
.ins-filters button.is-active,
.ins-page .ins-pill.is-active {
  background: #0f172a !important;
  color: #ffffff !important;
  border-color: #0f172a !important;
}

.ins-page .ins-pill {
  font-family: inherit !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  color: #334155 !important;
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 999px !important;
  padding: 8px 18px !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.ins-page .ins-pill:hover {
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
  background: #f8fafc !important;
}

.ins-page .ins-chevron {
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  border: 1.5px solid #e2e8f0 !important;
  background: #ffffff !important;
  color: #0f172a !important;
  font-size: 18px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.ins-page .ins-chevron:hover {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  transform: scale(1.06) !important;
}

/* Headings & Badges */
.gradient-heading,
.gradient-heading.mini,
.section-blog-listing h1,
.section-blog-listing .gradient-heading {
  color: #0f172a !important;
  background: none !important;
  -webkit-text-fill-color: #0f172a !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
}

.servvice-tag,
h6.servvice-tag,
.free-calculator-badge,
a[href="#"] .free-calculator,
.badge,
span[style*="background-color:#20d6b5"],
span[style*="background-color: #20d6b5"] {
  background: #e0f2fe !important;
  color: #0369a1 !important;
  border: 1px solid #bae6fd !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  padding: 6px 14px !important;
  border-radius: 9999px !important;
}

.cs-carousel-header h2 .highlight,
h2 .highlight,
.highlight,
.faq-std-highlight {
  color: #0284c7 !important;
}

/* Search input */
input[type="search"],
[role="searchbox"] {
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 9999px !important;
  padding: 10px 20px !important;
  font-size: 14px !important;
  background: #ffffff !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
  transition: all 0.2s ease !important;
}

input[type="search"]:focus,
[role="searchbox"]:focus {
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15) !important;
  outline: none !important;
}

.capvalis-empty { text-align: center; padding: 64px 20px; color: #64748b; }

/* ==========================================================================
   Service Tabs & FAQs
   ========================================================================== */
[role="tab"] {
  border-radius: 8px !important;
  transition: all 0.2s ease !important;
}

[role="tab"]:hover {
  background-color: rgba(2, 132, 199, 0.06) !important;
}

[role="tab"][aria-selected="true"] {
  background-color: #0f172a !important;
  color: #ffffff !important;
}

details.faq-std-item {
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 18px 22px !important;
  background: #ffffff !important;
  margin-bottom: 12px !important;
  transition: all 0.2s ease !important;
}

details.faq-std-item[open] {
  border-color: #cbd5e1 !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05) !important;
}

details.faq-std-item summary {
  cursor: pointer !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  font-size: 16px !important;
}

/* ==========================================================================
   Cost Calculator Styling
   ========================================================================== */
.capvalis-calculation {
  color: #334155;
  font: 14px/1.6 system-ui, -apple-system, sans-serif;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.06);
  padding: 24px;
}

.capvalis-calculation dl { margin: 20px 0; }
.capvalis-calculation dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}
.capvalis-calculation dd { margin: 0; font-weight: 650; text-align: right; color: #0f172a; }

.capvalis-calculation .cost-total {
  padding: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, #0b2545 0%, #06182d 100%) !important;
  border-radius: 12px;
  box-shadow: 0 10px 24px -6px rgba(11, 37, 69, 0.3) !important;
}

.capvalis-calculation .cost-total strong {
  display: block;
  margin-top: 8px;
  font-size: 34px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.capvalis-calculation .cost-note { font-size: 12.5px; color: #64748b; margin-top: 12px; }

/* Calculator inputs */
.capvalis-calc-input,
.calc-field input,
input[type="number"],
select.w-select {
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
  font-size: 14px !important;
  transition: all 0.2s ease !important;
}

input[type="number"]:focus,
select.w-select:focus {
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15) !important;
  outline: none !important;
}

/* ==========================================================================
   Contact Us Page Form Card
   ========================================================================== */
.service-form.contact-form,
.section-contact-banner .contact-form {
  background: #ffffff !important;
  border-radius: 16px !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.08) !important;
  padding: 24px !important;
}

/* ==========================================================================
   Footer Polish
   ========================================================================== */
.footer {
  background-color: #071526 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.footer-text {
  color: #94a3b8 !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
}

.footer-link {
  color: #cbd5e1 !important;
  font-size: 14px !important;
  transition: all 0.2s ease !important;
}

.footer-link:hover {
  color: #20d6b5 !important;
  padding-left: 3px !important;
}

.social-link {
  transition: transform 0.2s ease, background-color 0.2s ease !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.06) !important;
  padding: 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.social-link:hover {
  transform: translateY(-3px) !important;
  background: rgba(32, 214, 181, 0.18) !important;
}

.social-link img {
  width: 18px !important;
  height: 18px !important;
}

/* ==========================================================================
   Wheel and Existing Interactive States
   ========================================================================== */
.wheels-presentation-container:not(.show-optimizations) .replacement-label,
.wheels-presentation-container:not(.show-optimizations) .optimization-bubble,
.wheels-presentation-container:not(.show-optimizations) .optimization-label,
.wheels-presentation-container:not(.show-optimizations) .optimization-callout { display: none !important; }
.wheels-presentation-container:not(.show-optimizations) .step-label-original { text-decoration: none !important; color: #333 !important; opacity: 1 !important; font-weight: 500 !important; }
.wheels-presentation-container:not(.show-optimizations) .wheel-node { opacity: 1 !important; border-color: #d0d0d0 !important; background: white !important; box-shadow: none !important; }

/* ==========================================================================
   Responsive & Accessibility
   ========================================================================== */
@media (max-width: 991px) {
  .w-nav-menu .w-dropdown:not(.cv-open) > .w-dropdown-list:not(.mobile-dropdown-open) { display: none !important; }
  .w-nav-menu.mobile-menu-open { overscroll-behavior: contain; }
  .service-form.contact-form { padding: 16px !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  .loop-marquee_item-top, .loop-marquee_item-bottom, .cs-carousel-track { animation-play-state: paused !important; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
