/* Shared responsive layer for all Crescent pages. */
html {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

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

input,
select,
textarea,
button {
  max-width: 100%;
  font: inherit;
}

.site-header-inner {
  position: relative;
}

.mobile-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  padding: 0;
  border: 1px solid #d5d9e0;
  border-radius: 10px;
  background: #fff;
  color: #0a0e17;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}

.site-header.menu-open .mobile-menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.menu-open .mobile-menu-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.menu-open .mobile-menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-header--dark .mobile-menu-toggle {
  border-color: rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

.site-header--dark {
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
}

.site-header--dark .site-nav {
  border-top-color: rgba(255, 255, 255, .16);
}

.site-header--dark .site-nav a {
  border-bottom-color: rgba(255, 255, 255, .12) !important;
}

@media (max-width: 1100px) {
  .site-header-inner {
    gap: 16px !important;
  }

  .site-nav {
    gap: 14px !important;
    font-size: 13.5px !important;
  }

  .site-header-cta {
    padding: 10px 13px !important;
  }
}

@media (max-width: 960px) {
  .site-header-inner {
    flex-wrap: wrap !important;
    padding: 10px 18px !important;
    gap: 10px !important;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .site-nav {
    display: none !important;
    order: 10;
    width: 100%;
    max-height: calc(100vh - 92px);
    margin: 0 !important;
    padding: 8px 0 4px;
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0 !important;
    border-top: 1px solid #e4e7ec;
  }

  .site-header.menu-open .site-nav {
    display: flex !important;
  }

  .site-nav a {
    display: block;
    width: 100%;
    padding: 12px 8px;
    border-bottom: 1px solid #eef0f4 !important;
    text-decoration: none !important;
  }

  .site-nav a:last-child {
    border-bottom: 0 !important;
  }

  .site-header-cta {
    display: none !important;
  }

  h1 {
    font-size: clamp(36px, 6vw, 48px) !important;
    line-height: 1.08 !important;
    letter-spacing: -1.7px !important;
  }

  h2 {
    font-size: clamp(29px, 4.8vw, 38px) !important;
    line-height: 1.14 !important;
    letter-spacing: -1.1px !important;
  }

  [style*="grid-template-columns:repeat(auto-fit,minmax(400px"],
  [style*="grid-template-columns:repeat(auto-fit,minmax(380px"],
  [style*="grid-template-columns:repeat(auto-fit,minmax(360px"],
  [style*="grid-template-columns:repeat(auto-fit,minmax(340px"],
  [style*="grid-template-columns:repeat(auto-fit,minmax(330px"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  [style*="grid-template-columns:repeat(4,1fr)"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  #dc-root [style*="max-width:1240px"][style*="padding"],
  #dc-root [style*="max-width:1200px"][style*="padding"],
  #dc-root [style*="max-width:1180px"][style*="padding"],
  #dc-root [style*="max-width:1100px"][style*="padding"],
  #dc-root [style*="max-width:1000px"][style*="padding"] {
    padding-inline: 18px !important;
  }

  section[style*="padding:80px 24px"],
  section[style*="padding:88px 24px"],
  section[style*="padding:96px 24px"],
  section[style*="padding:76px 24px"],
  section[style*="padding:72px 24px"],
  section[style*="padding:64px 24px"] {
    padding: 58px 18px !important;
  }
}

@media (max-width: 700px) {
  body {
    min-width: 0;
  }

  h1 {
    font-size: clamp(32px, 10vw, 40px) !important;
    letter-spacing: -1.35px !important;
  }

  h2 {
    font-size: clamp(27px, 8vw, 34px) !important;
    letter-spacing: -.9px !important;
  }

  h3 {
    line-height: 1.25 !important;
  }

  [style*="font-size:19px"],
  [style*="font-size:18.5px"] {
    font-size: 16.5px !important;
  }

  #dc-root > .sc-host > div > div:first-child > div,
  #dc-root [style*="padding:9px 24px"][style*="justify-content:space-between"] {
    padding: 8px 16px !important;
    justify-content: center !important;
    text-align: center;
    font-size: 11.5px !important;
  }

  .site-header-inner {
    padding: 9px 16px !important;
  }

  .site-header-inner > a:first-child span[style*="background"] {
    padding: 7px 10px !important;
  }

  [style*="grid-template-columns:repeat(auto-fit,minmax(320px"],
  [style*="grid-template-columns:repeat(auto-fit,minmax(300px"],
  [style*="grid-template-columns:repeat(auto-fit,minmax(280px"],
  [style*="grid-template-columns:repeat(auto-fit,minmax(260px"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  [style*="grid-template-columns:repeat(4,1fr)"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1px !important;
  }

  [style*="grid-template-columns:1.5fr 1fr 1fr"],
  [style*="grid-template-columns:1.4fr 1fr 1fr"],
  [style*="grid-template-columns:1.6fr 1fr"],
  [style*="grid-template-columns:1fr 1.4fr"] {
    min-width: 620px;
  }

  [style*="overflow:hidden"]:has(> [style*="grid-template-columns:1.5fr 1fr 1fr"]),
  [style*="overflow:hidden"]:has(> [style*="grid-template-columns:1.4fr 1fr 1fr"]),
  [style*="overflow:hidden"]:has(> [style*="grid-template-columns:1.6fr 1fr"]),
  [style*="overflow:hidden"]:has(> [style*="grid-template-columns:1fr 1.4fr"]) {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  section[style*="padding:80px 24px"],
  section[style*="padding:88px 24px"],
  section[style*="padding:96px 24px"],
  section[style*="padding:76px 24px"],
  section[style*="padding:72px 24px"],
  section[style*="padding:64px 24px"],
  section[style*="padding:60px 24px"] {
    padding: 46px 16px !important;
  }

  #dc-root [style*="max-width:1240px"][style*="padding"],
  #dc-root [style*="max-width:1200px"][style*="padding"],
  #dc-root [style*="max-width:1180px"][style*="padding"],
  #dc-root [style*="max-width:1100px"][style*="padding"],
  #dc-root [style*="max-width:1000px"][style*="padding"] {
    padding-inline: 16px !important;
  }

  [style*="padding:64px 24px 56px"],
  [style*="padding:72px 24px 64px"],
  [style*="padding:26px 24px 56px"],
  [style*="padding:26px 24px 48px"] {
    padding: 38px 16px 44px !important;
  }

  article[style*="padding:28px"],
  article[style*="padding:24px"],
  [style*="border-radius:20px"][style*="padding:26px"],
  [style*="border-radius:18px"][style*="padding:26px"] {
    padding: 20px !important;
  }

  [style*="display:flex"][style*="flex-wrap:wrap"][style*="gap:12px"] > a,
  [style*="display:flex"][style*="flex-wrap:wrap"][style*="gap:14px"] > a {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  a[href^="https://wa.me/"][style*="white-space:nowrap"] {
    width: 100%;
    justify-content: center;
    white-space: normal !important;
    text-align: center;
  }

  a[href^="https://wa.me/"][style*="position:fixed"] {
    right: 14px !important;
    bottom: 14px !important;
    width: 52px;
    height: 52px;
    justify-content: center;
    gap: 0 !important;
    padding: 14px !important;
    overflow: hidden;
    font-size: 0 !important;
  }

  a[href^="https://wa.me/"][style*="position:fixed"] svg {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
  }

  [style*="width:250px"],
  [style*="width:246px"],
  [style*="width:238px"] {
    max-width: 100% !important;
  }

  footer [style*="grid-template-columns:repeat(auto-fit,minmax(200px"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (max-width: 420px) {
  .site-header-inner > a:first-child img {
    max-width: 110px;
  }

  .site-header--dark .site-header-inner > a:first-child img {
    max-width: 132px;
    height: auto !important;
  }

  [style*="grid-template-columns:repeat(4,1fr)"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  [style*="grid-template-columns:repeat(auto-fit,minmax(130px"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  [style*="padding:16px 26px"],
  [style*="padding:15px 26px"] {
    padding: 14px 18px !important;
  }
}

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