/* Nuvo Clinic — layout fixes (loaded last, after tokens/shared/nav) */

/* ---------- 1. Kill the white gap above the Elementor footer ---------- */
#ajax-content-wrap > .container-wrap,
.container-wrap {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
  background-color: transparent !important;
}
#ajax-content-wrap { padding-bottom: 0 !important; margin-bottom: 0 !important; }
body .elementor-location-footer { margin-top: 0 !important; }
.elementor-location-footer > .elementor-section:first-child,
.elementor-location-footer > .e-con:first-child { margin-top: 0 !important; }
/* last page section should sit flush on the footer */
.elementor-location-single > .elementor-section:last-child,
.elementor-location-single > .e-con:last-child { margin-bottom: 0 !important; }
/* Salient's own footer must never render alongside the Elementor one */
#footer-outer:not(.elementor-location-footer) { display: none !important; }

/* ---------- 2. Fixed header: solid, content flush beneath it ---------- */
/* NOTE: the header root is `e-con-boxed`, so its child containers live inside
   `.e-con-inner`. Selectors written as `> .e-con > .e-con` match NOTHING. */
.elementor-location-header > .e-con {
  background-color: #FEFCF8 !important;
  backdrop-filter: none !important;
}

/* Salient reserves more top offset than the header is tall, so a strip of page
   background showed through as a seam. Replace it with exactly the header height. */
body .container-wrap > .container.main-content,
body .container-wrap > .container.main-content > .row {
  padding-top: 0 !important;
  margin-top: 0 !important;
}
body .container-wrap {
  padding-top: 76px !important;
  margin-top: 0 !important;
}

/* ---------- 3. Header alignment (desktop) ---------- */
.elementor-location-header .e-con-inner {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
}
.elementor-location-header .e-con-inner > .e-con { margin: 0 !important; }
.elementor-location-header .e-con-inner > .e-con:nth-child(1) {
  justify-content: flex-start !important;
  align-items: center !important;
}
.elementor-location-header .e-con-inner > .e-con:nth-child(2) {
  flex: 0 0 auto !important;
  justify-content: center !important;
  align-items: center !important;
}
.elementor-location-header .e-con-inner > .e-con:nth-child(3) {
  flex-direction: row !important;
  justify-content: flex-end !important;
  align-items: center !important;
  gap: 18px !important;
}
.elementor-location-header .elementor-nav-menu {
  align-items: center !important;
  flex-wrap: nowrap !important;
}
.elementor-location-header .elementor-nav-menu--main .elementor-nav-menu > li > a {
  white-space: nowrap;
}
.elementor-location-header .elementor-widget-image { line-height: 0; flex: 0 0 auto; }
.elementor-location-header .elementor-widget-image img {
  max-height: 48px;
  width: auto !important;
  height: auto !important;
  max-width: none !important;
  object-fit: contain;
}

/* ---------- 4. Header: tablet & mobile ---------- */
@media (max-width: 1024px) {
  .elementor-location-header .e-con-inner {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .elementor-location-header .e-con-inner > .e-con { width: auto !important; }
  /* the two flanks share the leftover space so the logo stays optically centred */
  .elementor-location-header .e-con-inner > .e-con:nth-child(1),
  .elementor-location-header .e-con-inner > .e-con:nth-child(3) { flex: 1 1 0 !important; }
  .elementor-location-header .e-con-inner > .e-con:nth-child(2) { flex: 0 0 auto !important; }
  .elementor-location-header .elementor-menu-toggle {
    display: flex !important;
    padding: 6px;
    background: transparent !important;
  }
  /* CTA is merged into the burger menu below desktop */
  .elementor-location-header .elementor-widget-button { display: none !important; }
  /* full-width dropdown pinned directly under the fixed header */
  .elementor-location-header .elementor-nav-menu--dropdown {
    position: fixed !important;
    top: 76px !important;
    left: 0 !important;
    right: auto !important;
    width: 100vw !important;
    max-width: 100vw !important;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
    background: #FEFCF8 !important;
    border-top: 1px solid #E8DAC2;
    box-shadow: 0 12px 24px rgba(26,10,5,0.10);
  }
  .elementor-location-header .elementor-nav-menu--dropdown .elementor-item {
    padding: 16px 22px !important;
    font-size: 15px !important;
  }
}

@media (max-width: 767px) {
  .elementor-location-header > .e-con { min-height: 64px !important; }
  body .container-wrap { padding-top: 64px !important; }
  .elementor-location-header .elementor-nav-menu--dropdown {
    top: 64px !important;
    max-height: calc(100vh - 64px);
  }
  .elementor-location-header .elementor-widget-image img { max-height: 34px; }
}

/* ---------- 4b. CTA rendered as a pill inside the burger menu ---------- */
.elementor-location-header .elementor-nav-menu--dropdown .nx-menu-cta { padding: 14px 22px 20px; }
.elementor-location-header .elementor-nav-menu--dropdown .nx-menu-cta a.elementor-item {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 24px !important;
  border-radius: 9999px;
  background: #6B3F22;
  color: #FEFCF8 !important;
  font-family: var(--font-body);
  font-size: 15px !important;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.elementor-location-header .elementor-nav-menu--dropdown .nx-menu-cta a.elementor-item:hover { opacity: 0.9; }

/* ---------- 5. Generic: stop horizontal overflow anywhere ---------- */
html, body { overflow-x: hidden; }

/* ---------- 6. Footer columns: flush alignment + balance ---------- */
.elementor-location-footer .elementor-icon-list-icon { display: none !important; }
.elementor-location-footer .elementor-icon-list-item > a,
.elementor-location-footer .elementor-icon-list-item { padding-left: 0 !important; }
.elementor-location-footer .elementor-icon-list-text { padding-left: 0 !important; margin-left: 0 !important; }
.elementor-location-footer .elementor-icon-list-items { margin: 0; padding: 0; }
/* headings and their lists share one left edge */
.elementor-location-footer .elementor-widget-heading,
.elementor-location-footer .elementor-widget-icon-list { padding-left: 0 !important; }
@media (max-width: 767px) {
  .elementor-location-footer .e-con-inner > .e-con { width: 100% !important; }
  .elementor-location-footer .e-con-inner { row-gap: 34px !important; }
}


/* ================= TREATMENTS: 3 CARDS PER ROW =================
   Appended at END OF FILE deliberately. A previous edit spliced the
   region between the header 767px block and section 5 and silently
   deleted these rules. Do not relocate. ============================ */
body.page-id-10 .elementor-section > .elementor-container {
  flex-wrap: wrap !important;
  align-items: stretch !important;
}
body.page-id-10 .elementor-section > .elementor-container > .elementor-column.elementor-col-33 {
  flex: 0 0 33.333% !important;
  max-width: 33.333% !important;
  width: 33.333% !important;
}
@media (max-width: 1024px) and (min-width: 768px) {
  body.page-id-10 .elementor-section > .elementor-container > .elementor-column.elementor-col-33 {
    flex: 0 0 50% !important; max-width: 50% !important; width: 50% !important;
  }
}
@media (max-width: 767px) {
  body.page-id-10 .elementor-section > .elementor-container > .elementor-column.elementor-col-33 {
    flex: 0 0 100% !important; max-width: 100% !important; width: 100% !important;
  }
}
body.page-id-10 .elementor-column.elementor-col-33 { display: flex !important; }
body.page-id-10 .elementor-column.elementor-col-33 > .elementor-widget-wrap { width: 100%; }
body.page-id-10 .nuvo-card { height: 100%; display: flex; flex-direction: column; }
body.page-id-10 .nuvo-card-body { flex: 1 1 auto; display: flex; flex-direction: column; }
body.page-id-10 .nuvo-card-desc { flex: 1 1 auto; }


/* ================= FOOTER: 5 COLUMNS =================
   Row gap set to 0 in the template; spacing comes from padding so the
   widths can total 100% without wrapping. Appended at END OF FILE. ==== */
.elementor-location-footer .e-con-inner > .e-con { padding-right: 32px !important; }
.elementor-location-footer .e-con-inner > .e-con:last-child { padding-right: 0 !important; }
@media (max-width: 1024px) {
  .elementor-location-footer .e-con-inner { flex-wrap: wrap !important; row-gap: 44px !important; }
  .elementor-location-footer .e-con-inner > .e-con { width: 50% !important; padding-right: 24px !important; }
}
@media (max-width: 767px) {
  .elementor-location-footer .e-con-inner > .e-con { width: 100% !important; padding-right: 0 !important; }
}


/* ================= SERVICE STRIP MARQUEE (home) =================
   Two identical groups; translating the track by -50% loops seamlessly.
   Appended at END OF FILE. Do not relocate. ======================== */
.nuvo-marquee {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}
.nuvo-marquee-track {
  display: flex;
  width: max-content;
  animation: nuvo-marquee-scroll 44s linear infinite;
}
.nuvo-marquee:hover .nuvo-marquee-track { animation-play-state: paused; }
.nuvo-marquee-group {
  display: flex;
  gap: 16px;
  padding-right: 16px;
}
@keyframes nuvo-marquee-scroll {
  from { transform: translate3d(0,0,0); }
  to   { transform: translate3d(-50%,0,0); }
}
.nuvo-strip-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-shrink: 0;
  min-width: 156px;
  padding: 18px 24px;
  border-radius: 14px;
  border: 1px solid #E8D5C0;
  background: #FAF5EF;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.nuvo-strip-item:hover {
  transform: translateY(-2px);
  border-color: #D4B08A;
  box-shadow: 0 6px 18px rgba(26,10,5,0.08);
}
/* the icon had NO colour and was inheriting the default blue link colour */
.nuvo-strip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #F3E9D8;
  color: #B88A5C !important;
  font-size: 13px;
  line-height: 1;
}
.nuvo-strip-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: #2B1810;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
@media (max-width: 767px) {
  .nuvo-strip-item { min-width: 134px; padding: 14px 18px; }
  .nuvo-strip-label { font-size: 12px; }
  .nuvo-marquee-track { animation-duration: 32s; }
}
@media (prefers-reduced-motion: reduce) {
  .nuvo-marquee { overflow-x: auto; }
  .nuvo-marquee-track { animation: none; }
}
