/* base.css — GHL layout framework re-implementation
   Must be loaded BEFORE style.css on every page.
   Re-implements the layout behaviour GHL's runtime bundle would have injected. */


/* ─── Reset ─────────────────────────────────────── */

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  overflow-x: hidden;
  font-family: "Nunito Sans", sans-serif;
  background-color: #fdfefa;
  color: #000321;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Manrope", sans-serif;
  margin: 0 0 0.5em;
  line-height: 1.2;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

p {
  margin: 0 0 1em;
  line-height: 1.7;
}

a {
  color: inherit;
}


/* ─── Section ────────────────────────────────────── */

/* IMPORTANT: Do NOT add isolation:isolate here — it creates stacking contexts
   that trap child z-index values, breaking nav dropdowns */
.c-section {
  position: relative;
  width: 100%;
  display: block;
}

.fullSection {
  width: 100%;
}


/* ─── Background helpers ─────────────────────────── */

.bgCover {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* .bg is absolutely positioned inside the section */
.c-section > .bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-size: cover;
  background-position: center center;
}

/* .inner sits on top of .bg via DOM order — no stacking context needed */
.c-section > .inner {
  position: relative;
}

/* Fixed background (parallax-style) */
.bg-fixed {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background-color: #fdfefa;
}


/* ─── Inner container ────────────────────────────── */

.inner {
  width: 100%;
  max-width: 1170px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}


/* ─── Row ────────────────────────────────────────── */

.c-row {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

.row-align-center {
  align-items: center;
}

.c-row > .inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  width: 100%;
}


/* ─── Column ─────────────────────────────────────── */

.c-column {
  flex: 1 1 auto;
  min-width: 0;
}

.c-column > .inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100% !important;
}

.vertical > .inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}


/* ─── Mobile column stacking (GHL's 480px breakpoint) ── */

@media (max-width: 480px) {
  .c-row > .inner {
    flex-wrap: wrap;
  }

  .c-column {
    flex: 1 1 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}


/* ─── Border / radius helpers ────────────────────── */

.noBorder  { border: none !important; }
.borderFull { border-style: solid; }
.radius0  { border-radius: 0; }
.radius2  { border-radius: 2px; }
.radius4  { border-radius: 4px; }
.radius10 { border-radius: 10px; }
.radius15 { border-radius: 15px; }


/* ─── Visibility helpers ─────────────────────────── */

@media (max-width: 767px)  { .desktop-only   { display: none !important; } }
@media (min-width: 768px)  { .desktop-hidden { display: none !important; } }
.sf-hidden { display: none !important; }
.hide { display: none !important; }


/* ─── Text / image components ────────────────────── */

.text-output { width: 100%; }
.text-output > div { width: 100%; }
.image-container { width: 100%; }
.hl-image-picture { display: block; width: 100%; }
.hl-image-picture img { width: 100%; height: auto; }
.mw-100 { max-width: 100%; }


/* ─── Button component ───────────────────────────── */

.c-button { display: inline-block; }

.c-button a,
.c-button button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  border: none;
  font-family: inherit;
}

.btn-loader-position { display: none; }


/* ─── Empty / placeholder elements ──────────────── */

.empty-slot,
.empty-component-wrapper,
.empty-component-min-height { display: none; }


/* ─── GHL nav utility classes ────────────────────── */

.flex           { display: flex; }
.relative       { position: relative; }
.items-center   { align-items: center; }
.justify-start  { justify-content: flex-start; }
.flex-row       { flex-direction: row; }
.w-full         { width: 100%; }
.text-nowrap    { white-space: nowrap !important; }
.pointer        { cursor: pointer; }
.mr-2           { margin-right: 0.5rem; }
.py-2           { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-4           { padding-top: 1rem; padding-bottom: 1rem; }
.px-15          { padding-left: 0.375rem; padding-right: 0.375rem; }
.rounded-sm     { border-radius: 0.125rem; }

.mega-menu-link,
.mega-menu-link:active,
.mega-menu-link:hover {
  color: inherit;
  text-decoration: inherit;
}


/* ─── Logo showcase (partner logos ticker) ───────── */

.logo-showcase-container {
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.logo-showcase-track {
  animation: scroll linear infinite;
  width: max-content;
  will-change: transform;
}

.logo-showcase-content {
  align-items: center;
  width: max-content;
}

.logo-item {
  align-items: center;
  flex-shrink: 0;
  justify-content: center;
}

@keyframes scroll {
  0%   { transform: translate(0); }
  100% { transform: translate(calc(-100% / var(--total-sets, 3))); }
}


/* ─── Cookie consent banner ──────────────────────── */

.hl-cookie-consent-banner {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 24px;
  width: 100%;
  z-index: 100;
  background: #fff;
  border-top: 1px solid #e6e6e6;
  position: fixed;
  bottom: 0;
  left: 0;
}

.hl-cookie-consent-banner .banner-text-container {
  line-height: 1.5;
}

.hl-cookie-consent-banner .banner-actions-container {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.hl-cookie-consent-banner .button {
  align-items: center;
  border-radius: 4px;
  box-sizing: border-box;
  cursor: pointer;
  display: flex;
  padding: 8px 14px;
  font-family: "Nunito Sans", sans-serif;
  font-size: 0.9rem;
  border: none;
}

.hl-cookie-consent-banner .button.primary {
  background-color: #006e75;
  color: #fff;
}

.hl-cookie-consent-banner .button.secondary {
  background-color: #f7f6f3;
  color: #000321;
  border: 1px solid #e6e6e6 !important;
}

@media (max-width: 600px) {
  .hl-cookie-consent-banner {
    flex-direction: column;
    padding: 4%;
  }

  .hl-cookie-consent-banner .banner-actions-container {
    justify-content: center;
    width: 100%;
  }
}
