/* ============================================================
   FONT FIXES — serve fonts locally instead of from WordPress
   ============================================================ */

/* Elementor eicons */
@font-face {
  font-family: eicons;
  src: url('/fonts/eicons.woff2') format('woff2'),
       url('/fonts/eicons.woff') format('woff'),
       url('/fonts/eicons.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

/* Font Awesome — brands */
@font-face {
  font-family: 'Font Awesome 5 Brands';
  font-style: normal;
  font-weight: 400;
  src: url('/fonts/fa-brands-400.woff2') format('woff2'),
       url('/fonts/fa-brands-400.woff') format('woff');
}
.fab { font-family: 'Font Awesome 5 Brands'; font-weight: 400; }

/* Font Awesome — solid */
@font-face {
  font-family: 'Font Awesome 5 Free';
  font-style: normal;
  font-weight: 900;
  src: url('/fonts/fa-solid-900.woff2') format('woff2'),
       url('/fonts/fa-solid-900.woff') format('woff');
}
.fas { font-family: 'Font Awesome 5 Free'; font-weight: 900; }

/* Font Awesome — regular */
@font-face {
  font-family: 'Font Awesome 5 Free';
  font-style: normal;
  font-weight: 400;
  src: url('/fonts/fa-regular-400.woff2') format('woff2'),
       url('/fonts/fa-regular-400.woff') format('woff');
}
.far { font-family: 'Font Awesome 5 Free'; font-weight: 400; }

/* Shared FA base */
.fab, .fas, .far {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  line-height: 1;
}

/* Custom brand fonts — served locally */
@font-face {
  font-family: 'CustomFont1';
  src: url('/fonts/961a181da27e7cbc072ec2fb5bbfe2a9.woff') format('woff');
}
@font-face {
  font-family: 'CustomFont2';
  src: url('/fonts/860c3ec7bbc5da3e97233ccecafe512e.woff') format('woff');
}

/* ============================================================
   MOBILE NAV OVERLAY
   ============================================================ */
#ch-mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  box-sizing: border-box;
  padding: max(env(safe-area-inset-top), 1.25rem) 1.5rem max(env(safe-area-inset-bottom), 1.25rem);
  background: #0d0d0d;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}
#ch-mobile-nav-overlay.active {
  display: flex;
}
.ch-mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.35rem, 4.5vw, 2rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
#ch-mobile-nav-overlay .ch-mobile-nav-links a {
  color: #fff;
  text-decoration: none;
  font-family: 'CustomFont1', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: clamp(2.2rem, 9vw, 3.85rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: opacity 0.2s;
  -webkit-font-smoothing: antialiased;
}
#ch-mobile-nav-overlay .ch-mobile-nav-links a:hover,
#ch-mobile-nav-overlay .ch-mobile-nav-links a:focus-visible {
  opacity: 0.75;
}
#ch-mobile-nav-cta {
  margin-top: clamp(2rem, 7vw, 3.25rem);
  padding: 0.95rem 1.75rem;
  border: none;
  border-radius: 4px;
  background: #f16b7a;
  color: #fff;
  font-family: 'CustomFont2', Roboto, system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
  -webkit-font-smoothing: antialiased;
}
#ch-mobile-nav-cta:hover,
#ch-mobile-nav-cta:focus-visible {
  background: #e05567;
}
#ch-mobile-nav-cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
#ch-mobile-nav-close {
  position: absolute;
  top: max(env(safe-area-inset-top), 1.25rem);
  right: max(env(safe-area-inset-right), 1.5rem);
  width: 28px;
  height: 20px;
  padding: 0;
  border: none;
  cursor: pointer;
  background: linear-gradient(#fff, #fff) 0 0 / 100% 2px no-repeat,
    linear-gradient(#fff, #fff) 0 50% / 100% 2px no-repeat,
    linear-gradient(#fff, #fff) 0 100% / 100% 2px no-repeat;
  box-sizing: border-box;
}
#ch-mobile-nav-close:hover,
#ch-mobile-nav-close:focus-visible {
  opacity: 0.75;
}
#ch-mobile-nav-close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 6px;
}

/* ============================================================
   HEADER — mobile: compact logo left, hamburger right
   (template elementor-515; all pages load this stylesheet)
   ============================================================ */
@media (max-width: 767px) {
  #masthead .elementor-515 .elementor-element-4ccf0b3c.elementor-sticky {
    width: 100% !important;
    max-width: 100% !important;
    left: 0 !important;
    right: 0 !important;
    box-sizing: border-box !important;
  }

  #masthead .elementor-515 .elementor-element-4ccf0b3c > .elementor-container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.75rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Logo column — left, limited width */
  #masthead .elementor-515 .elementor-element-535c5aa9 {
    width: auto !important;
    max-width: 72% !important;
    flex: 1 1 auto !important;
    order: 1 !important;
  }

  #masthead .elementor-515 .elementor-element-535c5aa9 > .elementor-widget-wrap {
    justify-content: flex-start !important;
    align-items: center !important;
  }

  /* Menu / hamburger column — right */
  #masthead .elementor-515 .elementor-element-6f1bf4fc {
    width: auto !important;
    max-width: none !important;
    flex: 0 0 auto !important;
    order: 2 !important;
    margin-left: auto !important;
  }

  #masthead .elementor-515 .elementor-element-6f1bf4fc > .elementor-widget-wrap {
    justify-content: flex-end !important;
    align-items: center !important;
    width: 100% !important;
  }

  #masthead .elementor-515 .elementor-element-6f1bf4fc > .elementor-element-populated {
    margin: 0 !important;
  }

  /* Smaller logo */
  #masthead .elementor-515 .elementor-element-625fdfd5 {
    width: auto !important;
    max-width: 100% !important;
    --container-widget-width: auto !important;
    text-align: left !important;
  }

  #masthead .elementor-515 .elementor-element-625fdfd5 img {
    width: auto !important;
    height: auto !important;
    max-width: min(148px, 42vw) !important;
  }

  /* Hamburger: drop Elementor negative translate / overlap hacks */
  #masthead .elementor-515 .elementor-element-5219ad79 {
    width: auto !important;
    max-width: none !important;
    --container-widget-width: auto !important;
  }

  #masthead .elementor-515 .elementor-element-5219ad79 > .elementor-widget-container {
    margin: 0 !important;
    transform: none !important;
    --e-transform-translateY: 0px !important;
  }

  #masthead .elementor-515 .elementor-element-5219ad79 .elementor-icon-wrapper {
    text-align: right !important;
  }

  #masthead .elementor-515 .elementor-element-5219ad79 .elementor-icon {
    font-size: 28px !important;
  }

  #masthead .elementor-515 .elementor-element-5219ad79 .elementor-icon svg {
    height: 28px !important;
    width: 1em !important;
  }
}

/* ============================================================
   DISCOVERY CALL MODAL
   ============================================================ */
#ch-discovery-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,0.6);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
#ch-discovery-modal.active {
  display: flex;
}
#ch-discovery-modal-inner {
  background: #fff;
  border-radius: 8px;
  padding: 40px;
  max-width: 500px;
  width: 100%;
  position: relative;
}
#ch-discovery-modal-inner h2 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  color: #1a1a2e;
}
#ch-discovery-modal-inner p {
  margin: 0 0 24px;
  color: #555;
}
#ch-discovery-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: #888;
  line-height: 1;
}
#ch-discovery-form .form-group {
  margin-bottom: 16px;
}
#ch-discovery-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: #333;
}
#ch-discovery-form input,
#ch-discovery-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  box-sizing: border-box;
}
#ch-discovery-form textarea {
  height: 100px;
  resize: vertical;
}
#ch-discovery-form button[type="submit"] {
  background: #f16b7a;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: background 0.2s;
}
#ch-discovery-form button[type="submit"]:hover {
  background: #e05567;
}
#ch-form-success {
  display: none;
  text-align: center;
  padding: 20px 0;
  color: #1a1a2e;
}
#ch-form-success h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}


/* ============================================================
   ELEMENTOR STRETCH SECTIONS
   Scraped HTML baked desktop width (e.g. width:1920px) into
   section-stretched nodes. Force them to the viewport instead.
   ============================================================ */
.elementor-section.elementor-section-stretched {
  width: 100% !important;
  max-width: 100vw !important;
  left: 0 !important;
  right: 0 !important;
  box-sizing: border-box !important;
}

body {
  overflow-x: hidden;
}
