/* Premium UI cleanup for Soda Medic
   Goal: keep the upgraded look while removing overlays, blockers,
   duplicate hero layers, page transitions, and broad overrides that
   were interfering with clicks, layout, and later styles.
*/

:root {
  --primary-blue: #2f80ff;
  --primary-blue-dark: #1664dc;
  --accent-orange: #ef4d13;
  --dark-blue: #081224;
  --text-main: #102033;
  --text-light: #4d5457;
  --white: #ffffff;
  --light-gray: #f8f9fa;
  --border-color: rgba(16, 32, 51, 0.1);
  --shadow-soft: 0 8px 24px rgba(10, 25, 48, 0.08);
  --shadow-card: 0 14px 36px rgba(10, 25, 48, 0.1);
  --shadow-btn: 0 14px 28px rgba(47, 128, 255, 0.22);
  --ease-premium: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 22px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  color: var(--text-main);
  letter-spacing: -0.01em;
  opacity: 1 !important;
  transform: none !important;
}


body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(180deg, rgba(8, 26, 58, 0.24) 0%, rgba(8, 26, 58, 0.2) 100%);
}



header,
nav,
main,
section,
footer,
.hero,
.page-hero,
.container {
  position: relative;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 96px 0;
}

h1,
h2,
h3,
h4 {
  letter-spacing: -0.03em;
}

p,
li,
.hero p,
.page-hero p,
.service-card p,
.feature-card p,
.problem-item p,
.expect-card p {
  color: var(--text-light);
  font-size: clamp(1rem, 1.05vw, 1.08rem);
  line-height: 1.72;
  font-weight: 450;
}

.section-tag {
  display: none !important;
}

.section-title,
.page-hero h1,
.services-hero h1,
.hero h1 {
  font-size: clamp(2.5rem, 4vw, 4.8rem) !important;
  line-height: 0.98;
  font-weight: 800;
  margin-bottom: 16px;
}

.section-title {
  color: var(--text-main);
}

/* Header/Nav */
header {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 12px 0 !important;
  background: linear-gradient(180deg, rgba(3, 10, 22, 0.92) 0%, rgba(3, 10, 22, 0.84) 55%, rgba(3, 10, 22, 0.72) 100%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

header::before,
header::after,
nav::before,
nav::after {
  content: none !important;
  display: none !important;
}

nav {
  max-width: 1280px !important;
  margin: 0 auto !important;
  padding: 0 28px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 20px !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.logo {
  font-size: 1.5rem !important;
  font-weight: 800 !important;
  color: var(--white) !important;
  text-decoration: none !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.nav-links {
  display: flex !important;
  gap: 20px !important;
  align-items: center !important;
  flex: 1 !important;
  justify-content: center !important;
  min-width: 0 !important;
}

.nav-links a,
.nav-links .dropdown-toggle {
  text-decoration: none !important;
  color: rgba(255, 255, 255, 0.92) !important;
  font-weight: 600 !important;
  font-size: 0.92rem !important;
  white-space: nowrap !important;
  padding: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  transition: color var(--ease-premium), transform var(--ease-premium) !important;
}

.nav-links a:hover,
.nav-links .dropdown-toggle:hover {
  color: var(--white) !important;
  transform: translateY(-1px);
}


.desktop-only-dropdown[hidden],
.mobile-only-nav-link[hidden] {
  display: none !important;
}
.mobile-only-nav-link {
  display: none !important;
}

.desktop-only-dropdown {
  display: inline-flex !important;
}

.nav-links .dropdown {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
}

.nav-links .dropdown-toggle {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.dropdown-menu {
  position: absolute !important;
  top: calc(100% + 10px) !important;
  left: 0 !important;
  display: none;
  min-width: 220px !important;
  padding: 10px 0 !important;
  margin-top: 0 !important;
  background: var(--white) !important;
  border: 1px solid rgba(16, 32, 51, 0.08) !important;
  border-radius: 14px !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12) !important;
  z-index: 1001 !important;
}

.dropdown.open .dropdown-menu {
  display: block !important;
}

.dropdown-menu a {
  display: block !important;
  padding: 10px 18px !important;
  color: var(--text-main) !important;
  border-radius: 0 !important;
}

.dropdown-menu a:hover {
  background: rgba(47, 128, 255, 0.08) !important;
  color: var(--primary-blue) !important;
}

.nav-cta {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-shrink: 0 !important;
}

/* Buttons */
.btn {
  border-radius: 14px !important;
  padding: 15px 24px !important;
  font-weight: 700;
  transition: transform var(--ease-premium), box-shadow var(--ease-premium), background var(--ease-premium), border-color var(--ease-premium), color var(--ease-premium) !important;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%) !important;
  color: #fff !important;
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(47, 128, 255, 0.28);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.9) !important;
  color: var(--text-main) !important;
  border: 1px solid rgba(16, 32, 51, 0.14) !important;
}

.btn-outline:hover {
  background: #fff !important;
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

/* Main hero: keep one readable layer only */
.hero {
  position: relative;
  min-height: 860px;
  padding: 170px 0 120px !important;
  display: flex;
  align-items: center;
  text-align: left !important;
  overflow: hidden;
  background-color: #091425 !important;
  background-image:
    linear-gradient(90deg, rgba(7, 17, 31, 0.88) 0%, rgba(7, 17, 31, 0.72) 34%, rgba(7, 17, 31, 0.46) 56%, rgba(7, 17, 31, 0.18) 74%, rgba(7, 17, 31, 0.08) 100%),
    url('hero-slush-machine.webp') !important;
  background-repeat: no-repeat, no-repeat !important;
  background-position: center center, right center !important;
  background-size: cover, auto 100% !important;
  background-attachment: scroll !important;
}

.hero::before,
.hero::after {
  content: none !important;
  display: none !important;
}

.hero .container {
  position: relative;
  z-index: 1;
  width: 100% !important;
  display: flex !important;
  justify-content: flex-start !important;
  align-items: center !important;
  padding-left: 56px !important;
  padding-right: 20px !important;
  text-align: left !important;
}

.hero .hero-content {
  max-width: 520px !important;
  margin: 0 !important;
  padding: 20px 0 !important;
  text-align: left !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.hero h1 {
  max-width: 9ch !important;
  margin: 0 0 24px 0 !important;
  color: #fff !important;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.22) !important;
}

.hero p {
  max-width: 460px !important;
  margin: 0 0 34px 0 !important;
  color: rgba(255, 255, 255, 0.84) !important;
}

.hero .hero-divider {
  width: 84px !important;
  height: 2px !important;
  margin: 0 0 24px 0 !important;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.28)) !important;
}

.hero .hero-btns,
.hero .hero-actions,
.hero .btn-group,
.hero .hero-buttons,
.hero .hero-cta {
  justify-content: flex-start !important;
  align-items: center !important;
  text-align: left !important;
}

.hero .btn-primary {
  background: linear-gradient(135deg, #ff6b2c 0%, var(--accent-orange) 100%) !important;
  box-shadow: 0 18px 32px rgba(239, 77, 19, 0.28) !important;
}

.hero .btn-outline,
.page-hero .btn-outline,
.hero-actions .btn-outline,
.hero-btns .btn-outline,
.hero-buttons .btn-outline,
.btn-group .btn-outline {
  color: var(--text-main) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1px solid rgba(16, 32, 51, 0.16) !important;
  box-shadow: 0 14px 28px rgba(9, 20, 37, 0.22), 0 6px 14px rgba(9, 20, 37, 0.12), 0 0 0 1px rgba(9, 20, 37, 0.06) !important;
}

.hero .btn-outline:hover,
.page-hero .btn-outline:hover,
.hero-actions .btn-outline:hover,
.hero-btns .btn-outline:hover,
.hero-buttons .btn-outline:hover,
.btn-group .btn-outline:hover {
  color: #fff !important;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%) !important;
  border-color: rgba(47, 128, 255, 0.38) !important;
  box-shadow: 0 18px 34px rgba(47, 128, 255, 0.24), 0 8px 18px rgba(9, 20, 37, 0.16) !important;
}

/* Internal page hero: remove glass cards and overlay blockers */
.page-hero {
  position: relative;
  min-height: 520px !important;
  display: flex !important;
  align-items: center !important;
  padding: 150px 0 80px !important;
  text-align: center !important;
  overflow: hidden;
  background-attachment: scroll !important;
}

.page-hero::before,
.page-hero::after {
  content: none !important;
  display: none !important;
}

.page-hero .container {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: inherit;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.page-hero .hero-content {
  width: min(1100px, 100%) !important;
  max-width: 1100px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  text-align: center !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.page-hero .breadcrumbs {
  display: none !important;
}

.page-hero h1,
.page-hero p,
.page-hero a {
  color: #fff !important;
}

.page-hero h1 {
  max-width: 15ch !important;
  margin: 0 auto 18px !important;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.22) !important;
}

.page-hero p {
  max-width: 62ch !important;
  margin: 0 auto !important;
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Cards */
.services-grid,
.feature-grid,
.problem-list,
.expect-grid {
  gap: 24px !important;
}

.service-card,
.feature-card,
.problem-item,
.expect-card,
.pricing-card,
.contact-card,
.info-card,
.stat-card {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(16, 32, 51, 0.08) !important;
  border-radius: 20px !important;
  box-shadow: var(--shadow-card) !important;
  transition: transform var(--ease-premium), box-shadow var(--ease-premium), border-color var(--ease-premium), background var(--ease-premium) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.service-card:hover,
.feature-card:hover,
.problem-item:hover,
.expect-card:hover,
.pricing-card:hover,
.contact-card:hover,
.info-card:hover,
.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 54px rgba(9, 20, 37, 0.12) !important;
  border-color: rgba(47, 128, 255, 0.18) !important;
}

.feature-icon {
  border-radius: 16px !important;
  background: linear-gradient(135deg, rgba(47, 128, 255, 0.1), rgba(47, 128, 255, 0.2)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.problems-section,
.expect-section,
.services-section,
.features-section,
.about-section,
.pricing-section,
.brands-section,
.industries-section,
.maintenance-section,
.contact-section {
  background-image: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

.expect-section {
  padding: 88px 0;
}

.expect-section .section-heading {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 44px;
}

.expect-section .section-heading h2 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.12;
  font-weight: 800;
  color: #004aad;
}

.expect-section .section-heading p {
  margin: 0;
  color: #6c757d;
  font-size: 1rem;
  line-height: 1.7;
}

.expect-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.expect-card {
  padding: 28px 24px;
}

.expect-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: rgba(0, 74, 173, 0.08);
}

.expect-icon i {
  font-size: 1.35rem;
  color: #004aad;
}

.expect-card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  line-height: 1.3;
  font-weight: 700;
  color: #004aad;
}

/* Equipment section background removed */
#equipment-types {
  background: linear-gradient(180deg, #f7faff 0%, #eef4fb 100%) !important;
  background-image: none !important;
  background-attachment: scroll !important;
}

#equipment-types::before,
#equipment-types::after {
  content: none !important;
  display: none !important;
}

#equipment-types .section-title {
  color: var(--text-main) !important;
}

#equipment-types > .container > div:first-child p {
  color: var(--text-light) !important;
  font-weight: 500 !important;
}

#equipment-types .feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 26px !important;
  max-width: 1160px !important;
  margin: 0 auto !important;
  align-items: stretch !important;
}

#equipment-types .feature-card {
  width: 100% !important;
  padding: 34px 26px 30px !important;
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 255, 0.86)) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 16px 42px rgba(2, 12, 28, 0.22) !important;
}

#equipment-types .feature-card:hover {
  transform: none !important;
  box-shadow: 0 16px 42px rgba(2, 12, 28, 0.22) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
}

#equipment-types .feature-card .feature-icon,
#equipment-types .feature-card:hover .feature-icon {
  transform: none !important;
}

#equipment-types .feature-link {
  pointer-events: auto;
  display: inline-flex !important;
  margin-top: auto !important;
}

/* Remove blocker/transition systems that can hide content or intercept state */
.page-transition,
.page-transition.is-active,
.reveal-on-scroll,
.reveal-stagger > *,
.hero-reveal {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
  animation: none !important;
  will-change: auto !important;
}

body.is-loaded,
.hero-content.is-visible,
.page-hero .hero-content.is-visible,
.reveal-on-scroll.is-visible,
.reveal-stagger.is-visible > * {
  opacity: 1 !important;
  transform: none !important;
}

/* Footer */
footer,
footer * {
  box-sizing: border-box !important;
}

footer {
  background: linear-gradient(180deg, #0c1930 0%, #09111f 100%) !important;
  color: #ffffff !important;
  padding: 80px 0 30px !important;
  text-align: left !important;
}

footer .container {
  max-width: 1280px !important;
  margin: 0 auto !important;
  padding: 0 28px !important;
}

/* Responsive */
@media (max-width: 1100px) {
  .hero {
    min-height: 760px;
    background-image:
      linear-gradient(180deg, rgba(7, 17, 31, 0.84) 0%, rgba(7, 17, 31, 0.62) 45%, rgba(7, 17, 31, 0.34) 100%),
      url('hero-slush-machine.webp') !important;
    background-position: center center, center right !important;
    background-size: cover, cover !important;
  }
}

@media (max-width: 991px) {
  .expect-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #equipment-types .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 768px) {
  header {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }

  nav {
    padding: 0 18px !important;
  }

  .container {
    padding: 0 18px;
  }

  section,
  .expect-section {
    padding: 72px 0;
  }

  .hero,
  .page-hero,
  #equipment-types {
    background-attachment: scroll !important;
  }

  .hero {
    min-height: 700px;
    padding: 150px 0 88px !important;
    background-image:
      linear-gradient(180deg, rgba(7, 17, 31, 0.84) 0%, rgba(7, 17, 31, 0.64) 42%, rgba(7, 17, 31, 0.34) 100%),
      url('hero-slush-machine.webp') !important;
    background-position: center center, center center !important;
    background-size: cover, cover !important;
  }

  .hero .container {
    padding-left: 20px !important;
    padding-right: 20px !important;
    justify-content: center !important;
  }

  .hero .hero-content,
  .hero h1,
  .hero p,
  .hero .hero-btns,
  .hero .hero-actions,
  .hero .btn-group,
  .hero .hero-buttons,
  .hero .hero-cta {
    text-align: center !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .hero .hero-divider {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .hero h1 {
    max-width: 100% !important;
    font-size: clamp(2.6rem, 12vw, 3.8rem) !important;
  }

  .hero p {
    max-width: 32ch !important;
  }

  .hero .btn,
  .hero-btns .btn {
    width: 100%;
    text-align: center;
  }

  .hero-btns {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .page-hero {
    min-height: 380px;
    padding: 130px 0 60px !important;
  }

  .page-hero .hero-content {
    width: 100% !important;
    max-width: 100% !important;
  }

  .page-hero h1 {
    max-width: 100% !important;
    font-size: clamp(2.6rem, 12vw, 3.8rem) !important;
  }

  .page-hero p {
    max-width: 100% !important;
    font-size: 1.03rem !important;
    line-height: 1.78 !important;
  }

  .dropdown-menu {
    min-width: 220px;
  }

  .expect-grid,
  #equipment-types .feature-grid {
    grid-template-columns: 1fr !important;
    gap: 18px;
  }

  .expect-card {
    padding: 24px 20px;
  }
}

/* =========================================================
   SITE BACKGROUND OVERRIDE
   Change --site-bg to any color you want for the entire site
   ========================================================= */
:root {
  --site-bg: #f6f8fb;
}

html,
body {
  background: var(--site-bg) !important;
}

body,
.site-wrapper,
.site-main,
main,
.page-wrapper,
.content-wrapper,
.content,
#app,
#root {
  background-color: var(--site-bg) !important;
}


/* Homepage What We Work On section override */
#services {
  background: #f4f8fb !important;
}

#services .service-card {
  background: #ffffff !important;
  border: 1px solid rgba(16, 32, 51, 0.1) !important;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06) !important;
}

#services .service-card:hover {
  background: #fdfefe !important;
  border-color: rgba(47, 128, 255, 0.22) !important;
  box-shadow: 0 24px 54px rgba(9, 20, 37, 0.1) !important;
}

/* Global card and box shadow boost */
:root {
  --shadow-soft: 0 18px 42px rgba(9, 20, 37, 0.18);
  --shadow-card: 0 24px 58px rgba(9, 20, 37, 0.24);
}

.service-card,
.feature-card,
.problem-item,
.expect-card,
.pricing-card,
.price-card,
.contact-card,
.info-card,
.stat-card,
.service-map-card,
.service-cta-box,
[class*="card"],
[class*="box"] {
  box-shadow: 0 20px 48px rgba(9, 20, 37, 0.2), 0 6px 16px rgba(9, 20, 37, 0.12), 0 0 0 1px rgba(9, 20, 37, 0.08) !important;
}

.service-card:hover,
.feature-card:hover,
.problem-item:hover,
.expect-card:hover,
.pricing-card:hover,
.price-card:hover,
.contact-card:hover,
.info-card:hover,
.stat-card:hover,
.service-map-card:hover,
.service-cta-box:hover,
[class*="card"]:hover,
[class*="box"]:hover {
  box-shadow: 0 28px 64px rgba(9, 20, 37, 0.26), 0 8px 20px rgba(9, 20, 37, 0.14), 0 0 0 1px rgba(9, 20, 37, 0.1) !important;
}

#services .service-card {
  box-shadow: 0 22px 52px rgba(9, 20, 37, 0.22), 0 6px 16px rgba(9, 20, 37, 0.12), 0 0 0 1px rgba(9, 20, 37, 0.08) !important;
}

#services .service-card:hover {
  box-shadow: 0 30px 68px rgba(9, 20, 37, 0.28), 0 8px 20px rgba(9, 20, 37, 0.14), 0 0 0 1px rgba(9, 20, 37, 0.1) !important;
}

/* Stronger site overlay + thicker shadows for cards, buttons, and form fields */

:root {
  --shadow-soft: 0 22px 52px rgba(9, 20, 37, 0.24), 0 8px 22px rgba(9, 20, 37, 0.16), 0 0 0 1px rgba(9, 20, 37, 0.1);
  --shadow-card: 0 30px 74px rgba(9, 20, 37, 0.3), 0 10px 26px rgba(9, 20, 37, 0.18), 0 0 0 1px rgba(9, 20, 37, 0.12);
  --shadow-btn: 0 22px 52px rgba(9, 20, 37, 0.26), 0 8px 22px rgba(9, 20, 37, 0.16), 0 0 0 1px rgba(9, 20, 37, 0.1);
}

.service-card,
.feature-card,
.problem-item,
.expect-card,
.pricing-card,
.price-card,
.contact-card,
.info-card,
.stat-card,
.service-map-card,
.service-cta-box,
[class*="card"],
[class*="box"] {
  box-shadow: 0 16px 34px rgba(9, 20, 37, 0.28), 0 6px 14px rgba(9, 20, 37, 0.18), 0 0 0 1px rgba(9, 20, 37, 0.12) !important;
}

.service-card:hover,
.feature-card:hover,
.problem-item:hover,
.expect-card:hover,
.pricing-card:hover,
.price-card:hover,
.contact-card:hover,
.info-card:hover,
.stat-card:hover,
.service-map-card:hover,
.service-cta-box:hover,
[class*="card"]:hover,
[class*="box"]:hover {
  box-shadow: 0 20px 42px rgba(9, 20, 37, 0.32), 0 8px 18px rgba(9, 20, 37, 0.2), 0 0 0 1px rgba(9, 20, 37, 0.14) !important;
}

#services .service-card {
  box-shadow: 0 18px 38px rgba(9, 20, 37, 0.3), 0 6px 14px rgba(9, 20, 37, 0.18), 0 0 0 1px rgba(9, 20, 37, 0.12) !important;
}

#services .service-card:hover {
  box-shadow: 0 22px 46px rgba(9, 20, 37, 0.34), 0 8px 18px rgba(9, 20, 37, 0.2), 0 0 0 1px rgba(9, 20, 37, 0.14) !important;
}

.btn,
button,
input[type="submit"],
input[type="button"],
input[type="reset"],
a.btn,
.nav-cta .btn,
.cta-button,
.hero-cta,
form button {
  box-shadow: 0 20px 46px rgba(9, 20, 37, 0.24), 0 8px 20px rgba(9, 20, 37, 0.14), 0 0 0 1px rgba(9, 20, 37, 0.08) !important;
}

.btn:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
a.btn:hover,
.nav-cta .btn:hover,
.cta-button:hover,
.hero-cta:hover,
form button:hover {
  box-shadow: 0 26px 58px rgba(9, 20, 37, 0.3), 0 10px 24px rgba(9, 20, 37, 0.18), 0 0 0 1px rgba(9, 20, 37, 0.1) !important;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]):not([type="reset"]),
textarea,
select,
.form-control,
.contact-form input,
.contact-form textarea,
.contact-form select,
form input,
form textarea,
form select {
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1px solid rgba(16, 32, 51, 0.14) !important;
  box-shadow: 0 22px 52px rgba(9, 20, 37, 0.22), 0 10px 24px rgba(9, 20, 37, 0.14), 0 0 0 1px rgba(9, 20, 37, 0.06) !important;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]):not([type="reset"]):focus,
textarea:focus,
select:focus,
.form-control:focus,
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus,
form input:focus,
form textarea:focus,
form select:focus {
  border-color: rgba(47, 128, 255, 0.4) !important;
  box-shadow: 0 20px 44px rgba(9, 20, 37, 0.18), 0 8px 18px rgba(9, 20, 37, 0.12), 0 0 0 4px rgba(47, 128, 255, 0.12) !important;
  outline: none !important;
}

/* Make equipment service cards fully solid */
#equipment-types .feature-card {
  background: #ffffff !important;
  border: 1px solid rgba(16, 32, 51, 0.12) !important;
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.18), 0 12px 28px rgba(15, 23, 42, 0.11) !important;
  opacity: 1 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

#equipment-types .feature-card:hover {
  box-shadow: 0 30px 64px rgba(15, 23, 42, 0.2), 0 14px 32px rgba(15, 23, 42, 0.12) !important;
}

#equipment-types .feature-card::before,
#equipment-types .feature-card::after {
  display: none !important;
  opacity: 0 !important;
}

/* Fix spacing inside and between service call boxes on all service pages */
.service-benefits-section .service-benefits-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
  gap: 24px !important;
  margin-top: 28px !important;
  align-items: stretch !important;
}

.service-benefits-section .service-benefits-grid .feature-card {
  padding: 30px 28px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  height: 100% !important;
}

.service-benefits-section .service-benefits-grid .feature-card .feature-icon {
  margin-bottom: 4px !important;
}

.service-benefits-section .service-benefits-grid .feature-card h3,
.service-benefits-section .service-benefits-grid .feature-card p {
  margin: 0 !important;
}

@media (max-width: 768px) {
  .service-benefits-section .service-benefits-grid {
    gap: 18px !important;
  }

  .service-benefits-section .service-benefits-grid .feature-card {
    padding: 24px 22px !important;
  }
}


/* =========================
   Reveal on Scroll
========================= */
.reveal {
  opacity: 0 !important;
  transform: translateY(30px) !important;
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) !important;
  will-change: opacity, transform !important;
}

.reveal.active {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.active {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}


/* =========================================================
   GLOBAL FOOTER FIX
   Ensures all page footers use the same multi-column layout
   ========================================================= */
footer {
  background: linear-gradient(90deg, #02142d 0%, #04204a 55%, #0a2f68 100%) !important;
  color: #ffffff !important;
  padding: 72px 0 28px !important;
}

footer .container {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 28px;
  padding-right: 28px;
}

footer .footer-grid {
  display: grid !important;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.35fr !important;
  gap: 48px !important;
  margin-bottom: 34px !important;
  align-items: start;
}

footer .footer-col {
  min-width: 0;
}

footer .footer-col h4 {
  margin: 0 0 22px !important;
  color: #ffffff !important;
  font-size: 1.1rem !important;
  font-weight: 800 !important;
}

footer .footer-col ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

footer .footer-col ul li {
  margin: 0 0 14px !important;
}

footer .footer-col a,
footer .footer-col p,
footer .footer-bottom,
footer .footer-bottom a {
  color: rgba(230, 240, 255, 0.78) !important;
}

footer .footer-col ul li a,
footer .footer-col > a,
footer .footer-col p a {
  text-decoration: none !important;
  transition: color 0.25s ease, opacity 0.25s ease;
}

footer .footer-col ul li a:hover,
footer .footer-col > a:hover,
footer .footer-bottom a:hover {
  color: #ffffff !important;
}

footer .footer-col p {
  margin: 0 0 12px !important;
  line-height: 1.75 !important;
}

footer .footer-col .logo {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px !important;
  color: #ffffff !important;
  text-decoration: none !important;
  font-weight: 800;
  font-size: 1.1rem;
}

footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding-top: 26px !important;
  text-align: center !important;
  font-size: 0.95rem !important;
}

footer .footer-bottom p {
  margin: 0 !important;
}

@media (max-width: 980px) {
  footer .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 30px !important;
  }
}

@media (max-width: 680px) {
  footer {
    padding: 54px 0 24px !important;
  }

  footer .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  footer .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
}


/* Hero CTA centering across internal/service page hero sections */
.page-hero .hero-actions,
.page-hero .hero-btns,
.page-hero .btn-group,
.page-hero .hero-buttons,
.page-hero .hero-cta,
.page-hero .button-row {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.page-hero .hero-actions {
  width: 100% !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}

.page-hero .hero-actions .btn,
.page-hero .hero-btns .btn,
.page-hero .btn-group .btn,
.page-hero .hero-buttons .btn {
  display: inline-flex !important;
  justify-content: center !important;
  align-items: center !important;
}

@media (max-width: 768px) {
  .page-hero .hero-actions,
  .page-hero .hero-btns,
  .page-hero .btn-group,
  .page-hero .hero-buttons {
    flex-direction: column !important;
    align-items: center !important;
  }

  .page-hero .hero-actions .btn,
  .page-hero .hero-btns .btn,
  .page-hero .btn-group .btn,
  .page-hero .hero-buttons .btn {
    width: 100% !important;
    max-width: 320px !important;
  }
}

/* Restore strong visible request-service form fields */
#contact-form .info-card form,
#service-request-form {
  background: #f8fafc !important;
}

#contact-form label,
#service-request-form label {
  display: block;
  margin-bottom: 10px;
  font-weight: 700;
  color: #0f172a !important;
}

#contact-form input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]):not([type="reset"]),
#contact-form textarea,
#contact-form select,
#service-request-form input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]):not([type="reset"]),
#service-request-form textarea,
#service-request-form select {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid rgba(15, 23, 42, 0.14) !important;
  border-radius: 14px !important;
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.22), 0 10px 24px rgba(15, 23, 42, 0.14), 0 0 0 1px rgba(15, 23, 42, 0.06) !important;
  padding: 16px 18px !important;
}

#contact-form textarea,
#service-request-form textarea {
  min-height: 150px !important;
  resize: vertical;
}

#contact-form input::placeholder,
#contact-form textarea::placeholder,
#service-request-form input::placeholder,
#service-request-form textarea::placeholder {
  color: #64748b !important;
  opacity: 1 !important;
}

#contact-form input:focus,
#contact-form textarea:focus,
#contact-form select:focus,
#service-request-form input:focus,
#service-request-form textarea:focus,
#service-request-form select:focus {
  background: #ffffff !important;
  border-color: rgba(31, 107, 255, 0.48) !important;
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.24), 0 12px 28px rgba(15, 23, 42, 0.16), 0 0 0 4px rgba(31, 107, 255, 0.16) !important;
  outline: none !important;
}


/* Tighter global box/card corners */
.info-card,
.service-card,
.expect-card,
.feature-card,
.contact-card,
.service-map-card,
.stat-card,
.pricing-card,
.price-card,
.card,
.thank-you-card,
.thank-you-next,
.cta-card,
.glass-card,
.floating-callout,
.dropdown-menu,
form,
#contact-form,
#service-request-form {
  border-radius: 16px !important;
}

.info-card *,
.service-card *,
.expect-card *,
.feature-card *,
.contact-card *,
.service-map-card *,
.stat-card *,
.pricing-card *,
.price-card * {
  --card-radius-inherit: 16px;
}

.btn,
.btn-primary,
.btn-outline,
.nav-cta .btn,
header .btn,
button,
input[type="submit"],
input[type="button"] {
  border-radius: 12px !important;
}

#contact-form input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]):not([type="reset"]),
#contact-form textarea,
#contact-form select,
#service-request-form input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]):not([type="reset"]),
#service-request-form textarea,
#service-request-form select,
input,
textarea,
select {
  border-radius: 12px !important;
}

/* Unified subtle outline + wider softer consistent shadow for all boxes/cards */
:root {
  --global-box-outline: rgba(191, 219, 254, 0.92);
  --global-box-shadow: 0 0 0 1px rgba(191, 219, 254, 0.55), 0 0 34px rgba(59, 130, 246, 0.18), 0 0 68px rgba(37, 99, 235, 0.14), 0 0 102px rgba(29, 78, 216, 0.10);
}

.info-card,
.service-card,
.expect-card,
.feature-card,
.contact-card,
.service-map-card,
.stat-card,
.pricing-card,
.price-card,
.card,
.thank-you-card,
.thank-you-next,
.cta-card,
.glass-card,
.floating-callout,
#contact-form .info-card,
#service-request-form,
#service-request-form .info-card,
#contact-form form,
#service-request-form form {
  border: 1px solid var(--global-box-outline) !important;
  box-shadow: var(--global-box-shadow) !important;
}

.info-card:hover,
.service-card:hover,
.expect-card:hover,
.feature-card:hover,
.contact-card:hover,
.service-map-card:hover,
.stat-card:hover,
.pricing-card:hover,
.price-card:hover,
.card:hover,
.thank-you-card:hover,
.thank-you-next:hover,
.cta-card:hover,
.glass-card:hover,
.floating-callout:hover {
  border: 1px solid var(--global-box-outline) !important;
  box-shadow: var(--global-box-shadow) !important;
}


/* Thank-you page centering + header CTA cleanup */
header .nav-cta .btn,
header .nav-cta .btn:link,
header .nav-cta .btn:visited,
header .nav-cta .btn:hover,
header .nav-cta .btn:focus {
  text-decoration: none !important;
}

.thank-you-layout {
  justify-content: center !important;
}

.thank-you-panel {
  margin: 0 auto !important;
}


/* =========================
   MOBILE REBUILD
========================= */
html, body {
  max-width: 100%;
  overflow-x: clip;
}

img, svg, video, canvas, iframe {
  max-width: 100%;
  height: auto;
}

a, button {
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav-toggle,
.mobile-nav-overlay {
  display: none;
}

@media (max-width: 900px) {
  :root {
    --mobile-header-height: 82px;
    --mobile-gutter: 18px;
    --mobile-card-radius: 20px;
  }

  body {
    padding-top: var(--mobile-header-height) !important;
  }

  body.mobile-nav-open {
    overflow: hidden !important;
  }

  header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 5000 !important;
    padding: 10px 0 !important;
  }

  header nav {
    position: relative !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto auto !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 0 var(--mobile-gutter) !important;
    min-height: 62px !important;
  }

  .logo {
    min-width: 0 !important;
    flex: none !important;
    font-size: 1.15rem !important;
    line-height: 1 !important;
    gap: 8px !important;
  }

  .logo i {
    flex: 0 0 auto;
  }

  .nav-cta {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-left: 0 !important;
    z-index: 5002 !important;
  }

  .nav-cta .btn-outline {
    display: none !important;
  }

  .nav-cta .btn-primary {
    min-height: 44px !important;
    padding: 11px 14px !important;
    font-size: 0.88rem !important;
    white-space: nowrap !important;
    border-radius: 12px !important;
  }

  .mobile-nav-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 46px !important;
    height: 46px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 14px !important;
    background: rgba(7, 26, 61, 0.96) !important;
    color: #fff !important;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24) !important;
    cursor: pointer !important;
    z-index: 5002 !important;
  }

  .mobile-nav-toggle-box {
    position: relative;
    display: block;
    width: 20px;
    height: 14px;
    pointer-events: none;
  }

  .mobile-nav-toggle-box span {
    position: absolute;
    left: 0;
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.22s ease, opacity 0.22s ease, top 0.22s ease;
  }

  .mobile-nav-toggle-box span:nth-child(1) { top: 0; }
  .mobile-nav-toggle-box span:nth-child(2) { top: 6px; }
  .mobile-nav-toggle-box span:nth-child(3) { top: 12px; }

  .mobile-nav-toggle.is-open .mobile-nav-toggle-box span:nth-child(1) {
    top: 6px;
    transform: rotate(45deg);
  }

  .mobile-nav-toggle.is-open .mobile-nav-toggle-box span:nth-child(2) {
    opacity: 0;
  }

  .mobile-nav-toggle.is-open .mobile-nav-toggle-box span:nth-child(3) {
    top: 6px;
    transform: rotate(-45deg);
  }

  .mobile-nav-overlay {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 4998 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    background: rgba(2, 8, 18, 0.45) !important;
    transition: opacity 0.22s ease, visibility 0.22s ease !important;
  }

  body.mobile-nav-open .mobile-nav-overlay {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .nav-links {
    position: fixed !important;
    top: calc(var(--mobile-header-height) - 4px) !important;
    left: var(--mobile-gutter) !important;
    right: var(--mobile-gutter) !important;
    z-index: 5001 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    padding: 14px !important;
    max-height: calc(100vh - var(--mobile-header-height) - 16px) !important;
    overflow-y: auto !important;
    background: rgba(5, 13, 27, 0.97) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 20px !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(-8px) !important;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease !important;
  }

  body.mobile-nav-open .nav-links {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
  }

  .mobile-only-nav-link {
    display: flex !important;
  }

  .desktop-only-dropdown {
    display: none !important;
  }

  .nav-links > a,
  .nav-links .dropdown,
  .nav-links .dropdown-toggle {
    width: 100% !important;
  }

  .nav-links > a,
  .nav-links .dropdown-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 52px !important;
    padding: 14px 12px !important;
    color: #fff !important;
    font-size: 1rem !important;
    line-height: 1.25 !important;
    border-radius: 14px !important;
    background: transparent !important;
    white-space: normal !important;
  }

  .nav-links > a:hover,
  .nav-links .dropdown-toggle:hover,
  .nav-links > a:focus-visible,
  .nav-links .dropdown-toggle:focus-visible {
    transform: none !important;
    background: rgba(255, 255, 255, 0.06) !important;
  }

  .nav-links .dropdown {
    display: block !important;
  }

  .dropdown-menu {
    position: static !important;
    display: none !important;
    min-width: 0 !important;
    margin: 0 0 6px !important;
    padding: 8px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    box-shadow: none !important;
  }

  .dropdown.open .dropdown-menu {
    display: block !important;
  }

  .dropdown-menu a {
    display: block !important;
    padding: 12px !important;
    color: rgba(255, 255, 255, 0.92) !important;
    border-radius: 12px !important;
  }

  .dropdown-menu a:hover,
  .dropdown-menu a:focus-visible {
    background: rgba(47, 128, 255, 0.16) !important;
    color: #fff !important;
  }

  .container,
  footer .container {
    padding-left: var(--mobile-gutter) !important;
    padding-right: var(--mobile-gutter) !important;
  }

  section {
    padding: 64px 0 !important;
  }

  h1,
  .hero h1,
  .page-hero h1,
  .services-hero h1,
  .section-title {
    font-size: clamp(2.1rem, 10vw, 3.2rem) !important;
    line-height: 1.04 !important;
    overflow-wrap: anywhere;
  }

  h2 {
    font-size: clamp(1.75rem, 7vw, 2.45rem) !important;
    line-height: 1.08 !important;
  }

  p,
  li,
  input,
  textarea,
  select,
  .hero p,
  .page-hero p {
    font-size: 1rem !important;
    line-height: 1.7 !important;
  }

  .hero,
  .page-hero,
  .services-hero {
    min-height: auto !important;
    padding: 82px 0 64px !important;
  }

  .hero .container,
  .page-hero .container,
  .services-hero .container {
    display: block !important;
  }

  .hero-content,
  .page-hero-content,
  .services-hero-content {
    max-width: 100% !important;
    text-align: left !important;
  }

  .hero-btns,
  .cta-buttons,
  .phone-diagnosis-actions {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }

  .hero-btns .btn,
  .cta-buttons .btn,
  .phone-diagnosis-actions .btn {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .services-grid,
  .feature-grid,
  .rates-grid,
  .expect-grid,
  .problem-grid,
  .contact-grid,
  .service-grid,
  .brands-grid,
  .footer-grid,
  .areas-grid,
  .industry-grid,
  .equipment-grid,
  .issues-grid,
  .benefits-grid,
  .maintenance-grid,
  .diagnostic-grid,
  .steps-grid,
  .stats-grid,
  .cards-grid,
  .two-column-grid,
  .about-grid,
  .split-layout,
  .content-grid,
  .contact-layout,
  .thank-you-layout {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .service-card,
  .feature-card,
  .problem-item,
  .expect-card,
  .rate-card,
  .brand-card,
  .industry-card,
  .contact-card,
  .about-card,
  .thank-you-panel,
  .phone-diagnosis-card,
  .clear-rates-container,
  .issue-card,
  .maintenance-card,
  .benefit-card {
    border-radius: var(--mobile-card-radius) !important;
  }

  .service-card-image,
  .brand-image,
  .hero-image,
  .split-image,
  .about-image {
    min-height: 220px !important;
  }

  .pricing-table {
    overflow-x: auto !important;
    display: block !important;
  }

  table {
    min-width: 640px;
  }

  .contact-form,
  form {
    width: 100% !important;
  }

  input,
  textarea,
  select,
  .form-group input,
  .form-group textarea,
  .form-group select {
    width: 100% !important;
    min-height: 48px !important;
  }
}

@media (max-width: 640px) {
  :root {
    --mobile-header-height: 78px;
    --mobile-gutter: 14px;
  }

  body {
    padding-top: var(--mobile-header-height) !important;
  }

  header nav {
    gap: 10px !important;
  }

  .logo {
    font-size: 1.02rem !important;
  }

  .nav-cta .btn-primary {
    padding: 10px 12px !important;
    font-size: 0.82rem !important;
  }

  .nav-links {
    top: calc(var(--mobile-header-height) - 2px) !important;
    left: var(--mobile-gutter) !important;
    right: var(--mobile-gutter) !important;
    max-height: calc(100vh - var(--mobile-header-height) - 12px) !important;
  }

  section {
    padding: 56px 0 !important;
  }

  .service-card-image,
  .brand-image,
  .hero-image,
  .split-image,
  .about-image {
    min-height: 190px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-nav-toggle-box span,
  .nav-links,
  .mobile-nav-overlay {
    transition: none !important;
  }
}


/* Hard stop: mobile menu must not show desktop dropdown groups */
@media (max-width: 900px) {
  header nav .nav-links > .desktop-only-dropdown {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    max-height: 0 !important;
    overflow: hidden !important;
  }

  header nav .nav-links > .mobile-only-nav-link {
    display: flex !important;
  }
}


/* Mobile overflow fix: keep header and page content inside viewport */
*, *::before, *::after {
  box-sizing: border-box;
}

@media (max-width: 900px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
  }

  header,
  header nav,
  main,
  section,
  footer,
  .thank-you-shell,
  .thank-you-main,
  .thank-you-layout,
  .thank-you-panel {
    max-width: 100%;
  }

  header nav {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: clip !important;
  }

  .logo {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: clamp(0.98rem, 4.2vw, 1.12rem) !important;
  }

  .nav-cta {
    min-width: 0 !important;
  }

  .nav-cta .btn-primary {
    max-width: min(45vw, 220px) !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .thank-you-main {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .thank-you-layout,
  .thank-you-panel,
  .thank-you-actions,
  .thank-you-actions .btn,
  .footer-grid,
  .footer-col {
    width: 100% !important;
    max-width: 100% !important;
  }

  footer p,
  footer a,
  .thank-you-copy,
  .thank-you-title {
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }

  footer p,
  footer a {
    white-space: normal !important;
  }
}

@media (max-width: 640px) {
  header nav {
    grid-template-columns: minmax(0, 1fr) 46px auto !important;
    gap: 8px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .logo {
    font-size: clamp(0.86rem, 4.7vw, 1.02rem) !important;
    gap: 7px !important;
  }

  .nav-cta .btn-primary {
    padding: 10px 12px !important;
    font-size: 0.78rem !important;
    border-radius: 12px !important;
  }

  .thank-you-panel {
    padding: 28px 16px !important;
    border-radius: 24px !important;
  }
}

/* Fix homepage service boxes */
#services .services-grid {
  align-items: stretch !important;
}

#services .service-card {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  overflow: hidden !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.10) !important;
}

#services .service-card:hover {
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.14) !important;
}

#services .service-card-image {
  flex: 0 0 200px !important;
  height: 200px !important;
  min-height: 200px !important;
}

#services .service-card-body {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  flex: 1 1 auto !important;
  padding: 28px 28px 30px !important;
}

#services .service-card h3 {
  margin: 0 0 12px !important;
}

#services .service-card p {
  margin: 0 !important;
}

@media (max-width: 768px) {
  #services .service-card-image {
    flex-basis: 180px !important;
    height: 180px !important;
    min-height: 180px !important;
  }

  #services .service-card-body {
    padding: 24px 22px 24px !important;
  }
}
