:root {
  --ift-accent: #0e817e;
  --ift-accent-dark: #00605e;
  --ift-deep: #005653;
  --ift-soft: #d4eeeb;
  --ift-soft2: #eaf5f4;
  --ift-gold: #c8a05a;
  --ift-ink: #14302c;
  --ift-muted: #5f6b67;
  --ift-line: #dbe6e3;
  --ift-gold-deep: #a8823c;
  --ift-gold-tint: #f3ead6;
  --ift-cream: #faf6ec;
  --ift-cream-line: #e7dfd0;
}
.ift-wrap {
  --ift-accent: #0e817e;
  --ift-accent-dark: #00605e;
  --ift-deep: #005653;
  --ift-soft: #d4eeeb;
  --ift-soft2: #eaf5f4;
  --ift-gold: #c8a05a;
  --ift-ink: #14302c;
  --ift-muted: #5f6b67;
  --ift-line: #dbe6e3;
  display: block;
  max-width: 1200px;
  margin: 0 auto;
  color: var(--ift-ink);
  font-family: "Inter", inherit, sans-serif;
}

/* Filter bar */
.ift-filterbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 36px;
}
.ift-filter {
  font-family: inherit;
  font-size: 14px;
  padding: 9px 18px;
  border: 1px solid var(--ift-line);
  background: #fff;
  color: var(--ift-ink);
  border-radius: 999px;
  cursor: pointer;
  transition: 0.15s;
}
.ift-filter:hover {
  border-color: var(--ift-accent);
  color: var(--ift-accent);
}
.ift-filter.is-active {
  background: var(--ift-accent);
  border-color: var(--ift-accent);
  color: #fff;
}

/* Category sections */
.ift-section {
  margin: 0 0 56px;
}
.ift-section.ift-hidden {
  display: none;
}
.ift-sec-head {
  margin: 0 0 24px;
  max-width: 760px;
}
.ift-sec-overline {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ift-accent);
  margin: 0 0 6px;
}
.ift-sec-title {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 10px;
  color: var(--ift-ink);
}
.ift-sec-desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ift-muted);
  margin: 0;
}

/* Card grid */
.ift-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 24px;
}
.ift-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  background: #fff;
  border: 1px solid var(--ift-line);
  border-top: 4px solid var(--ift-accent);
  border-radius: 16px;
  padding: 22px 22px 24px;
  transition: 0.18s;
}
.ift-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 80, 75, 0.1);
}
.ift-card.ift-hidden {
  display: none;
}

.ift-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: var(--ift-soft);
  color: var(--ift-accent-dark);
  border-radius: 8px;
  margin-bottom: 4px;
}
.ift-card-cat {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ift-accent);
}
.ift-card-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  color: var(--ift-ink);
}
.ift-card-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ift-muted);
  margin: 0;
}
.ift-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 0;
}
.ift-pill {
  font-size: 12.5px;
  border: 1px solid #bcdedb;
  color: var(--ift-accent);
  border-radius: 999px;
  padding: 4px 13px;
}
.ift-card-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--ift-ink);
  margin: 4px 0 0;
}
.ift-card-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--ift-line);
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.ift-card-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13.5px;
  line-height: 1.45;
  color: #3c4a47;
}
.ift-check {
  color: var(--ift-accent);
  flex: none;
  display: inline-flex;
  margin-top: 1px;
}
.ift-card-cta {
  margin-top: auto;
  padding-top: 16px;
}
.ift-view {
  font-family: inherit;
  background: #fff;
  border: 1.5px solid var(--ift-accent);
  color: var(--ift-accent);
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.15s;
}
.ift-view:hover {
  background: var(--ift-accent);
  color: #fff;
}
.ift-empty {
  color: var(--ift-muted);
  padding: 2rem 0;
}

/* Modal */
.ift-modal {
  position: fixed;
  inset: 0;
  z-index: 1000001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.ift-modal[hidden] {
  display: none;
}
.ift-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 42, 40, 0.55);
}
.ift-modal-box {
  position: relative;
  background: #fff;
  border-radius: 18px;
  max-width: 580px;
  width: 100%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.ift-modal-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--ift-line);
}
.ift-modal-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  color: var(--ift-ink);
}
.ift-modal-close {
  background: none;
  border: 0;
  font-size: 26px;
  line-height: 1;
  color: var(--ift-muted);
  cursor: pointer;
}
.ift-modal-body {
  padding: 22px;
  overflow-y: auto;
}
.ift-detail-report {
  width: 100%;
  border: 1px solid var(--ift-line);
  border-radius: 12px;
  margin: 0 0 18px;
  display: block;
}

/* Detail content (inside modal) */
.ift-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
}
.ift-badge {
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--ift-soft);
  color: var(--ift-accent-dark);
}
.ift-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ift-muted);
  margin: 0 0 8px;
}
.ift-desc p {
  margin: 0 0 0.6em;
}
.ift-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ift-accent);
  margin: 16px 0 8px;
}
.ift-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ift-chip {
  font-size: 13px;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--ift-soft2);
  color: var(--ift-accent-dark);
}
.ift-biomarkers {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ift-muted);
  margin: 0;
}

.ift-footer {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.ift-total-label {
  font-size: 14px;
  color: var(--ift-muted);
  margin-right: 6px;
}
.ift-total {
  font-size: 21px;
  font-weight: 700;
  color: var(--ift-ink);
}
.ift-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.ift-book {
  display: inline-block;
  background: var(--ift-accent);
  color: #fff;
  text-decoration: none;
  padding: 11px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
}
.ift-book:hover {
  background: var(--ift-accent-dark);
  color: #fff;
}
.ift-enquire {
  font-family: inherit;
  background: #fff;
  border: 1.5px solid var(--ift-accent);
  color: var(--ift-accent);
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 15px;
  cursor: pointer;
}

.ift-enquiry-form {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.ift-enquiry-form input[type="text"],
.ift-enquiry-form input[type="email"] {
  flex: 1;
  min-width: 150px;
  padding: 10px 12px;
  border: 1px solid var(--ift-line);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
}
.ift-enquiry-form button {
  font-family: inherit;
  background: var(--ift-accent);
  color: #fff;
  border: 0;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 14px;
  cursor: pointer;
}
.ift-enquiry-msg {
  flex-basis: 100%;
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--ift-accent-dark);
}

/* Mega-menu tree — scoped to the Functional Testing dropdown only.
   Strategy: keep Gutenify's dropdown element exactly where it is (so the
   hover never breaks) but make it an invisible, full-width hover area. The
   visible UI is the .ift-menu card — centered, contained, dropped below the
   header by its own margin. No hover gap, no overlap, no scroll. */
.wp-block-gutenify-mega-menu-mega-menu.gmm-main-navigation
  .gmm-primary-menu
  .gmm-menu-item
  .gmm-primary-menu__dropdown:has(.ift-menu) {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  max-height: none !important; /* kill Gutenify's 70vh cap … */
  overflow: visible !important; /* … so it never scrolls */
  padding: 0 !important;
}
/* Reset Gutenify's default icon/content split so our grid fills the width. */
.gmm-primary-menu__dropdown:has(.ift-menu) > .gmm-primary-menu__menu-col {
  flex-basis: auto !important;
  width: 100% !important;
  display: block !important;
  border-left: 0 !important;
  padding-left: 0 !important;
}

.ift-menu {
  max-width: 1180px;
  /* Gap below the header pill. The dropdown wrapper above stays transparent and
     full-width, so this gap never breaks the hover path. */
  margin: var(--ift-drop-gap, 50px) auto 0;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 30px 60px -30px rgba(0, 60, 58, 0.4);
  overflow: hidden;
  font-family: "Inter", inherit, sans-serif;
  color: var(--ift-ink);
}

/* Slim intro row */
.ift-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 26px;
  background: var(--ift-soft2);
  border-bottom: 1px solid var(--ift-line);
}
.ift-menu-top-l {
  display: flex;
  align-items: center;
  gap: 14px;
}
.ift-menu-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--ift-accent);
  color: #fff;
  display: grid;
  place-items: center;
  flex: none;
}
.ift-menu-heading {
  font-family: "Fraunces", Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ift-ink);
  margin: 0;
}
.ift-menu-sub {
  font-size: 12.5px;
  color: var(--ift-muted);
  margin: 2px 0 0;
}
.ift-menu-allbtn {
  background: var(--ift-accent);
  color: #fff !important;
  font-size: 12.5px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 999px;
  white-space: nowrap;
  text-decoration: none;
  transition: 0.18s;
}
.ift-menu-allbtn:hover {
  background: var(--ift-accent-dark);
}

/* Balanced 4-column grid (3 category columns + CTA) */
/* Flex, not grid: the column count varies (3 categories + CTA, or fewer). */
.ift-menu-grid {
  display: flex;
  align-items: stretch;
}
.ift-menu-col {
  flex: 1 1 0;
  padding: 22px 24px;
  border-right: 1px solid var(--ift-line);
  min-width: 0;
}
.ift-menu-col:last-child {
  border-right: none;
}
.ift-menu-col--cta {
  background: var(--ift-soft2);
}
.ift-menu-cat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ift-accent-dark);
  margin: 0 0 12px;
}
.ift-menu-cat + ul + .ift-menu-cat {
  margin-top: 22px;
}
.ift-menu-cic {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--ift-soft);
  color: var(--ift-accent-dark);
  display: grid;
  place-items: center;
  flex: none;
}
.ift-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.ift-menu-list a {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  line-height: 1.3;
  color: #3d4c52;
  text-decoration: none;
  transition: 0.15s;
}
.ift-menu-list a:hover {
  color: var(--ift-accent);
}
.ift-menu-pop {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ift-gold-deep);
  background: var(--ift-gold-tint);
  padding: 2px 6px;
  border-radius: 999px;
  white-space: nowrap;
}
.ift-menu-ctatext {
  font-size: 12.5px;
  color: var(--ift-muted);
  line-height: 1.6;
  margin: 0 0 14px;
}
.ift-menu-ctabtn {
  display: inline-block;
  background: var(--ift-gold);
  color: #fff !important;
  font-size: 12.5px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 999px;
  text-decoration: none;
  transition: 0.18s;
}
.ift-menu-ctabtn:hover {
  background: var(--ift-gold-deep);
}
/* Only used in the mobile accordion. */
.ift-menu-mobile-all {
  display: none;
}

@media (max-width: 1180px) {
  .ift-menu-grid {
    flex-wrap: wrap;
  }
  .ift-menu-col {
    flex: 1 1 44%;
    border-bottom: 1px solid var(--ift-line);
  }
  .ift-menu-col:nth-child(2n) {
    border-right: none;
  }
}

/* Responsive */
@media (max-width: 860px) {
  .ift-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
  .ift-sec-title {
    font-size: 26px;
  }
}
@media (max-width: 560px) {
  .ift-grid {
    grid-template-columns: 1fr;
  }
  .ift-sec-title {
    font-size: 23px;
  }
  .ift-modal {
    padding: 0;
    align-items: flex-end;
  }
  .ift-modal-box {
    max-width: 100%;
    max-height: 92vh;
    border-radius: 18px 18px 0 0;
  }
}

/* Functional Nutrition additions */
.ift-card-popular {
  position: relative;
  border-top-color: var(--ift-gold, #c8a05a);
}
.ift-card-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--ift-gold, #c8a05a);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 0 0 0 10px;
}
.ift-detail-list {
  margin-top: 0;
}

/* ---- Card with report image (Functional Testing) ---- */
.ift-card--media {
  padding: 0;
  gap: 0;
  overflow: hidden;
}
.ift-card--media .ift-card-media {
  display: block;
  aspect-ratio: 4/3;
  background: var(--ift-soft);
  overflow: hidden;
  position: relative;
}
.ift-card--media .ift-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: 0.25s;
}
.ift-card--media:hover .ift-card-media img {
  transform: scale(1.03);
}
.ift-card-ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--ift-accent-dark);
  opacity: 0.7;
  font-size: 13px;
}
.ift-card--media .ift-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px 20px;
}
.ift-card-title a {
  color: inherit;
  text-decoration: none;
}
.ift-card-title a:hover {
  color: var(--ift-accent);
}
.ift-card-cta {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.ift-book-test {
  font-family: inherit;
  background: var(--ift-accent);
  color: #fff;
  border: 0;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.15s;
}
.ift-book-test:hover {
  background: var(--ift-accent-dark);
}
.ift-more {
  font-size: 14px;
  color: var(--ift-accent);
  text-decoration: none;
  font-weight: 500;
}
.ift-more:hover {
  text-decoration: underline;
}

/* ---- Booking modal ---- */
.ift-book-modal {
  position: fixed;
  inset: 0;
  z-index: 1000001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  max-width: 100%;
  margin-block-start: 0;
}
.ift-book-modal[hidden] {
  display: none;
}
.ift-book-body {
  min-height: 200px;
}
.ift-book-body iframe {
  width: 100%;
  min-height: 60vh;
  border: 0;
  display: block;
}
.ift-pb-embed {
  width: 100%;
}
.ift-pb-fallback {
  margin: 14px 0 0;
  text-align: center;
}
.ift-pb-empty {
  color: var(--ift-muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

/* ---- Single test page ---- */
.ift-single-hero {
  background: #478787;
  color: #fff;
  text-align: center;
  padding: 46px 24px 54px;
}
.ift-single-hero-inner {
  max-width: 900px;
  margin: 0 auto;
}
.ift-single-overline {
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 10px;
}
.ift-single-htitle {
  color: #fff;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 12px;
}
.ift-single-crumbs {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}
.ift-single-crumbs a {
  color: #fff;
  text-decoration: none;
}
.ift-single-crumbs a:hover {
  text-decoration: underline;
}
.ift-single-crumbs span {
  margin: 0 8px;
  opacity: 0.55;
}
.ift-single-canvas {
  background: #fff;
}
.ift-single {
  max-width: 1040px;
  margin: 0 auto;
  padding: 40px 24px 72px;
  font-family: "Inter", inherit, sans-serif;
  color: var(--ift-ink, #14302c);
}
.ift-single-back {
  display: inline-block;
  margin: 0 0 22px;
  font-size: 14px;
  color: var(--ift-accent, #0e817e);
  text-decoration: none;
}
.ift-single-back:hover {
  text-decoration: underline;
}
/* Top block: sample-report card | buy panel */
.ift-single-top {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: start;
  margin-bottom: 52px;
}
.ift-single-shot {
  background: #fff;
  border: 1px solid var(--ift-line);
  border-radius: 16px;
  padding: 10px;
  overflow: hidden;
}
.ift-single-shot img {
  border-radius: 10px;
  width: 100%;
  display: block;
}
.ift-single-shot-ph {
  aspect-ratio: 16/13;
  border-radius: 10px;
  background: linear-gradient(150deg, #eaf1f4, #dfeaf0);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--ift-muted);
  font-size: 13px;
}
.ift-single-shot-cap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--ift-muted);
  padding: 10px 6px 2px;
}
.ift-single-shot-cap b {
  color: var(--ift-accent-dark);
  cursor: zoom-in;
}

/* Buy panel */
.ift-single-buy {
  padding-top: 4px;
}
.ift-single-sampleline {
  font-size: 13.5px;
  color: var(--ift-muted);
  line-height: 1.6;
  margin: 0 0 18px;
}
.ift-single-sampleline b {
  color: var(--ift-ink);
  font-weight: 600;
}
.ift-single-price {
  font-family: "Fraunces", Georgia, serif;
  font-size: 32px;
  font-weight: 600;
  margin: 0 0 14px;
}
.ift-single-book {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ift-single-book .ift-book-test {
  width: 100%;
  padding: 15px;
  font-size: 14.5px;
  font-weight: 600;
}
.ift-single-ext {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ift-accent-dark);
  border: 1px dashed var(--ift-line);
  border-radius: 10px;
  padding: 11px 14px;
  margin-top: 14px;
  text-decoration: none;
  transition: 0.15s;
}
.ift-single-ext:hover {
  border-color: var(--ift-accent);
  color: var(--ift-accent);
}
.ift-single-ext svg {
  flex: none;
}
.ift-single-extnote {
  font-size: 11.5px;
  color: var(--ift-muted);
  margin: 6px 0 0 2px;
}
.ift-single-buy .ift-desc {
  font-size: 15px;
  line-height: 1.7;
  margin-top: 22px;
}
.ift-single-buy .ift-resources {
  margin-top: 12px;
}

/* Add-ons */
.ift-addons {
  margin-top: 56px;
  border-top: 1px solid var(--ift-line);
  padding-top: 44px;
}
.ift-single-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ift-accent);
}
.ift-addons-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: 21px;
  font-weight: 500;
  margin: 8px 0 0;
  color: var(--ift-ink);
}
.ift-addons-note {
  background: var(--ift-gold-tint);
  border: 1px solid #ecdcba;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 13.5px;
  color: #6b552c;
  line-height: 1.6;
  margin: 14px 0 26px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.ift-addons-note svg {
  flex: none;
  margin-top: 2px;
  color: var(--ift-gold-deep);
}
.ift-addon-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ift-line);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}
.ift-addon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--ift-line);
  cursor: auto;
}
.ift-addon:last-child {
  border-bottom: none;
}
.ift-addon-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ift-addon-name {
  font-weight: 600;
  font-size: 14.5px;
}
.ift-addon-samp {
  font-size: 12px;
  color: var(--ift-muted);
}
.ift-addon-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
}
.ift-addon-price {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ift-ink);
  white-space: nowrap;
}
.ift-addon-book {
  background: #fff;
  color: var(--ift-accent-dark);
  border: 1.5px solid var(--ift-line);
  padding: 9px 16px;
  font-size: 13px;
}
.ift-addon-book:hover {
  background: #fff;
  border-color: var(--ift-accent);
  color: var(--ift-accent);
}

/* "Not sure which add-ons?" */
.ift-single-help {
  margin-top: 30px;
  background: var(--ift-soft2);
  border-radius: 16px;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.ift-single-help b {
  display: block;
  font-size: 15px;
  color: var(--ift-ink);
  margin-bottom: 3px;
}
.ift-single-help p {
  font-size: 14px;
  color: #3d4c52;
  max-width: 440px;
  margin: 0;
}
.ift-single-helpbtn {
  background: var(--ift-accent);
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: 0.18s;
}
.ift-single-helpbtn:hover {
  background: var(--ift-accent-dark);
}

.ift-resources {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.ift-resource {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--ift-accent, #0e817e);
  color: var(--ift-accent, #0e817e);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: 0.15s;
}
.ift-resource:hover {
  background: var(--ift-accent, #0e817e);
  color: #fff;
}

@media (max-width: 820px) {
  .ift-single-top {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .ift-addon {
    flex-direction: column;
    align-items: flex-start;
  }
  .ift-addon-right {
    width: 100%;
    justify-content: space-between;
  }
}

/* ---- Report image zoom + lightbox ---- */
.ift-zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.ift-zoom img {
  width: 100%;
  height: auto;
  display: block;
}
.ift-img-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}
.ift-img-modal[hidden] {
  display: none;
}
.ift-img-modal-pic {
  position: relative;
  max-width: 95vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 12px 50px rgba(0, 0, 0, 0.45);
}
.ift-img-close {
  position: absolute;
  top: 16px;
  right: 24px;
  z-index: 1;
  background: none;
  border: 0;
  color: #fff;
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
}

/* Practice Better booking widget in the modal */
.ift-book-modal .ift-modal-box {
  max-width: 840px;
}
.ift-book-body {
  min-height: 60vh;
}
.ift-book-loading {
  color: var(--ift-muted);
  text-align: center;
  padding: 44px 0;
  font-size: 15px;
}

/* Book modal — iframe-only lightbox (no white box, no header) */
.ift-book-modal {
  position: fixed;
  inset: 0;
  z-index: 1000001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.ift-book-modal[hidden] {
  display: none;
}
.ift-book-body {
  position: relative;
  width: min(900px, 95vw);
  height: 90vh;
  min-height: 0;
  background: transparent;
  border-radius: 12px;
  overflow: auto;
  padding: 0;
}
.ift-book-body iframe {
  width: 100%;
  min-height: 100%;
  border: 0;
  display: block;
  background: #fff;
  border-radius: 12px;
}
.ift-book-close {
  position: absolute;
  top: 14px;
  right: 20px;
  z-index: 2;
  background: none;
  border: 0;
  color: #fff;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}
.ift-book-loading {
  color: #fff;
  text-align: center;
  padding: 44px 0;
  font-size: 15px;
}

/* Homepage "The process" stepper */
.ins-process {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 30px 0 8px;
}
.ins-stepper {
  position: relative;
}
.ins-track,
.ins-track-fill {
  position: absolute;
  top: 22px;
  left: 22px;
  height: 2px;
}
.ins-track {
  right: 22px;
  background: var(--ift-line);
  z-index: 0;
}
.ins-track-fill {
  width: 0;
  background: var(--ift-gold);
  z-index: 1;
  transition: width 1.2s ease;
}
.ins-stepper.is-filled .ins-track-fill {
  width: calc(100% - 44px);
}
.ins-steps-row {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
.ins-step {
  text-align: center;
}
.ins-dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--ift-line);
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  color: var(--ift-accent-dark);
  font-weight: 600;
  font-size: 14px;
  transition: 0.25s;
}
.ins-step:hover .ins-dot {
  border-color: var(--ift-gold);
  color: var(--ift-gold);
  transform: translateY(-3px);
}
.ins-step-lab {
  font-size: 13px;
  font-weight: 700;
  color: var(--ift-ink);
  margin-bottom: 4px;
}
.ins-step-sub {
  font-size: 12px;
  color: var(--ift-muted);
  line-height: 1.45;
  max-width: 150px;
  margin: 0 auto;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: 0.25s;
}
.ins-step:hover .ins-step-sub {
  opacity: 1;
  max-height: 90px;
  margin-top: 4px;
}
/* Process badges (pills) */
.ins-proc-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 0 auto;
}
.ins-stepper + .ins-proc-foot {
  margin-top: 44px;
}
.ins-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ift-soft2);
  color: var(--ift-accent-dark);
  font-size: 12.5px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 999px;
}
.ins-pill svg {
  color: var(--ift-accent);
  flex: none;
}

@media (max-width: 900px) {
  .ins-steps-row {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 34px;
  }
  .ins-track,
  .ins-track-fill {
    display: none;
  }
  .ins-step-sub {
    opacity: 1;
    max-height: none;
    margin-top: 6px;
  }
}
@media (max-width: 560px) {
  .ins-steps-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Homepage "What We Offer" — 3-up card grid that wraps */
.ins-featured {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}
.ins-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--ift-cream);
  border: 1px solid var(--ift-cream-line);
  border-radius: 18px;
  overflow: hidden;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.ins-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 50px -30px rgba(30, 47, 59, 0.35);
}
.ins-card--popular {
  border: 1.5px solid var(--ift-accent);
}
.ins-card-top {
  padding: 24px 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.ins-tag {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
}
.ins-tag--nutri {
  color: var(--ift-accent-dark);
  background: var(--ift-soft2);
}
.ins-tag--test {
  color: var(--ift-gold-deep);
  background: var(--ift-gold-tint);
}
.ins-badge {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--ift-accent);
  padding: 4px 11px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Small sample-report banner (only when an image is set) */
.ins-thumb {
  display: block;
  margin: 14px 24px 0;
  border: 1px solid var(--ift-cream-line);
  border-radius: 12px;
  background: linear-gradient(135deg, #eaf1f4, #dfeaf0);
  padding: 14px;
  text-decoration: none;
}
.ins-thumb-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ift-accent-dark);
  margin-bottom: 10px;
}
.ins-thumb img {
  display: block;
  width: 100%;
  height: 104px;
  object-fit: cover;
  object-position: top center;
  border-radius: 8px;
}
.ins-card-body {
  padding: 16px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.ins-card-title {
  font-size: 20.5px;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 9px;
  color: var(--ift-ink);
}
.ins-card-title a {
  color: inherit;
  text-decoration: none;
}
.ins-card-title a:hover {
  color: var(--ift-accent);
}
.ins-card-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ift-muted);
  margin: 0 0 16px;
}
.ins-card-foot {
  margin-top: auto;
}
.ins-price {
  font-family: "Fraunces", Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--ift-ink);
  margin: 0;
}
.ins-price small {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 12px;
  color: var(--ift-muted);
  font-weight: 500;
}
.ins-card-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}
.ins-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--ift-accent-dark);
  text-decoration: none;
}
.ins-more:hover {
  color: var(--ift-gold-deep);
}
@media (max-width: 960px) {
  .ins-featured {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 820px) {
  .ins-featured {
    grid-template-columns: 1fr;
  }
}

/* Testimonials */
.ins-testimonials {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 100%;
  margin: 0 auto;

  @media (max-width: 767px) {
    grid-template-columns: repeat(2, 1fr);
  }

  @media (max-width: 560px) {
    grid-template-columns: repeat(1, 1fr);
  }
}

.ins-testi {
  background: #fff;
  border: 1px solid var(--ift-line);
  border-radius: 14px;
  padding: 24px;
  margin: 0;
}
.ins-testi-quote {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ift-ink);
  margin: 0 0 16px;
}
.ins-testi-quote::before {
  content: "\201C";
  color: var(--ift-accent);
  font-size: 30px;
  line-height: 0;
  vertical-align: -8px;
  margin-right: 2px;
}
.ins-testi-cap {
  display: flex;
  flex-direction: column;
}
.ins-testi-name {
  font-weight: 700;
  color: var(--ift-accent-dark);
}
.ins-testi-result {
  font-size: 13px;
  color: var(--ift-muted);
}

/* Testimonials — original style (stars + avatar + result pill) */
.ins-testi {
  display: flex;
  flex-direction: column;
  padding: 26px 26px 22px;
}
.ins-testi-stars {
  color: var(--ift-gold);
  font-size: 17px;
  letter-spacing: 3px;
  line-height: 1;
  margin: 0 0 14px;
}
.ins-testi-stars .off {
  color: #e4dcc6;
}
.ins-testi-quote {
  font-style: italic;
  font-size: 15.5px;
  line-height: 1.65;
  color: #3c4a47;
  margin: 0 0 18px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--ift-line);
}
.ins-testi-quote::before {
  content: "\201C ";
}
.ins-testi-quote::after {
  content: " \201D";
}
.ins-testi-cap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
}
.ins-testi-photo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}
.ins-testi-photo--empty {
  background: var(--ift-soft);
}
.ins-testi-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}
.ins-testi-name {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 14px;
  color: var(--ift-ink);
}
.ins-testi-result {
  background: var(--ift-soft);
  color: var(--ift-accent-dark);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 13px;
  text-align: center;
}

/* Footer category menu (inherits footer colours) */
.ins-fmenu {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 48px;
}
.ins-fmenu-col {
  min-width: 160px;
}
.ins-fmenu-head {
  display: inline-block;
  font-weight: 700;
  margin: 0 0 10px;
  color: inherit;
  text-decoration: none;
}
.ins-fmenu-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ins-fmenu-col li {
  margin: 0 0 7px;
}
.ins-fmenu a {
  color: inherit;
  text-decoration: none;
  opacity: 0.85;
  font-size: 14px;
}
.ins-fmenu a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Contact "Select a service" */
.ins-select-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.ins-service-select {
  flex: 1;
  min-width: 220px;
  padding: 12px 14px;
  border: 1px solid var(--ift-line);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  color: var(--ift-ink);
}
.ins-schedule {
  font-family: inherit;
  background: var(--ift-accent);
  color: #fff;
  border: 0;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.15s;
}
.ins-schedule:hover:not(:disabled) {
  background: var(--ift-accent-dark);
}
.ins-schedule:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============ Contact page ([insight_contact]) ============ */
/* Full-bleed the contact CONTENT only — must not leak into the header/footer
   template parts, which are also .is-layout-constrained. */
.insight-contact-page .wp-block-post-content,
.insight-contact-page .entry-content,
.insight-contact-page .wp-block-post-content > .is-layout-constrained,
.insight-contact-page .entry-content > .is-layout-constrained {
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.ic {
  --ic-teal: #478787;
  --ic-ink: #1e2f3b;
  color: var(--ic-ink);
}
.ic-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
.ic .ic-h {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.ic-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ift-accent);
  margin-bottom: 12px;
}

/* hero */
.ic-hero {
  background: var(--ic-teal);
  color: #fff;
  text-align: center;
  padding: 60px 24px 66px;
}
.ic-hero .ic-h {
  font-size: clamp(32px, 5vw, 46px);
  color: #fff;
  margin: 0;
}
.ic-crumb {
  margin-top: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}
.ic-crumb a {
  color: rgba(255, 255, 255, 0.9);
}
.ic-crumb a:hover {
  color: #fff;
}

/* strip */
.ic-strip {
  background: #fff;
  border-bottom: 1px solid var(--ift-line);
}
.ic-strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.ic-strip-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 26px 8px;
}
.ic-strip-item + .ic-strip-item {
  border-left: 1px solid var(--ift-line);
}
.ic-ic {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--ift-soft);
  color: var(--ift-accent-dark);
  display: grid;
  place-items: center;
  flex: none;
}
.ic-lab {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ift-muted);
  font-weight: 600;
}
.ic-val {
  font-weight: 600;
  font-size: 15px;
  margin-top: 3px;
  display: inline-block;
  color: var(--ic-ink);
}
a.ic-val:hover {
  color: var(--ift-accent);
}
.ic-sub {
  font-size: 12.5px;
  color: var(--ift-muted);
  margin-top: 2px;
}

/* main canvas + panels */
.ic-canvas {
  background: #f3f6f5;
  padding: 64px 0 40px;
}
.ic-lead {
  max-width: 640px;
  margin-bottom: 40px;
}
.ic-lead .ic-h {
  font-size: clamp(26px, 3.4vw, 34px);
  margin: 0 0 12px;
}
.ic-lead p {
  color: var(--ift-muted);
  font-size: 16px;
}
.ic-panel {
  background: #fff;
  border: 1px solid var(--ift-line);
  border-radius: 16px;
  padding: 34px;
  margin-bottom: 26px;
}
.ic-panel-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 24px;
}
.ic-panel-head .ic-n {
  font-family: "Fraunces", serif;
  font-size: 14px;
  color: var(--ift-gold);
  font-weight: 600;
}
.ic-panel-head .ic-h {
  font-size: 22px;
  margin: 0;
}
.ic-privacy {
  font-size: 12.5px;
  color: var(--ift-muted);
  margin-top: 16px;
}

/* CF7 form styling to match */
.ic-panel .wpcf7 label {
  display: block;
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ift-muted);
}
.ic-panel .wpcf7 input[type="text"],
.ic-panel .wpcf7 input[type="email"],
.ic-panel .wpcf7 input[type="tel"],
.ic-panel .wpcf7 textarea {
  width: 100%;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  color: var(--ic-ink);
  background: #fbfdfc;
  border: 1px solid var(--ift-line);
  border-radius: 11px;
  padding: 13px 14px;
  margin-top: 8px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}
.ic-panel .wpcf7 textarea {
  min-height: 130px;
  resize: vertical;
}
.ic-panel .wpcf7 input:focus,
.ic-panel .wpcf7 textarea:focus {
  outline: none;
  border-color: var(--ift-accent);
  box-shadow: 0 0 0 3px rgba(14, 129, 126, 0.14);
}
.ic-panel .wpcf7 .wpcf7-submit {
  width: auto;
  background: var(--ift-gold);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 13px 28px;
  font-weight: 600;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
}
.ic-panel .wpcf7 .wpcf7-submit:hover {
  background: #ac8c47;
}

/* find us */
.ic-findus {
  background: #f3f6f5;
  padding: 20px 0 80px;
}
.ic-findus-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 24px;
}
.ic-findus-head .ic-h {
  font-size: clamp(22px, 3vw, 28px);
  margin: 0 0 8px;
}
.ic-findus-head p {
  color: var(--ift-muted);
  font-size: 15px;
  max-width: 460px;
}
.ic-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.ic-tag {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ift-accent-dark);
  background: var(--ift-soft);
  padding: 6px 13px;
  border-radius: 999px;
}
.ic-addr-card {
  background: #fff;
  border: 1px solid var(--ift-line);
  border-radius: 16px;
  padding: 22px 24px;
  min-width: 250px;
}
.ic-addr-card .ic-who {
  font-weight: 700;
  margin-bottom: 4px;
}
.ic-addr-card address {
  font-style: normal;
  color: var(--ift-muted);
  font-size: 14.5px;
  line-height: 1.6;
  margin-bottom: 16px;
}
.ic-mapbtn {
  display: block;
  text-align: center;
}
.ic-map {
  border: 1px solid var(--ift-line);
  border-radius: 16px;
  overflow: hidden;
  line-height: 0;
}
.ic-map iframe {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
}

/* contact: service select matches panel */
.ic-panel .ins-select-wrap {
  gap: 14px;
}

@media (max-width: 860px) {
  .ic-strip-grid {
    grid-template-columns: 1fr;
  }
  .ic-strip-item + .ic-strip-item {
    border-left: none;
    border-top: 1px solid var(--ift-line);
  }
  .ic-panel {
    padding: 24px;
  }
  .ic-canvas {
    padding: 44px 0 24px;
  }
}

/* ============ Footer ([insight_footer]) ============ */
.if-foot {
  background: #16242e;
  color: #b9c7ca;
  font-family: "Inter", sans-serif;
}
.if-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 26px;
}
.if-badges {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 30px 0;
}
.if-badges-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.if-badge {
  background: #fff;
  border-radius: 12px;
  padding: 12px 20px;
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #2a3a44;
}
.if-badge-img {
  height: 70px;
  padding: 10px 18px;
}
.if-badge-img img {
  max-height: 46px;
  max-width: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.if-logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  flex: none;
  font-family: "Fraunces", serif;
  font-weight: 700;
}
.if-bt {
  font-family: "Fraunces", serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  display: block;
}
.if-badge small {
  display: block;
  font-size: 10px;
  color: #7a8a90;
  font-weight: 500;
  margin-top: 2px;
}
.if-main {
  padding: 54px 0 40px;
}
.if-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
}
.if-brand-name {
  font-family: "Fraunces", serif;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 14px;
}
.if-brand p {
  font-size: 14px;
  color: #9fb0b3;
  max-width: 300px;
  margin-bottom: 18px;
  line-height: 1.6;
}
.if-socials {
  display: flex;
  gap: 10px;
}
.if-socials a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: grid;
  place-items: center;
  color: #c3d0d3;
  transition: 0.2s;
}
.if-socials a:hover {
  background: var(--ift-accent);
  border-color: var(--ift-accent);
  color: #fff;
}
.if-col h5 {
  font-family: "Inter", sans-serif;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 600;
}
.if-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 14px;
}
.if-col a {
  color: #a9bcbe;
  transition: color 0.2s;
}
.if-col a:hover {
  color: #fff;
}
.if-contact div {
  font-size: 14px;
  color: #a9bcbe;
  margin-bottom: 12px;
  line-height: 1.55;
}
.if-contact .if-lbl {
  color: #7d9093;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 3px;
}
.if-contact a {
  color: #d6e3e5;
}
.if-contact a:hover {
  color: #fff;
}
.if-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 0;
  font-size: 13px;
  color: #86979a;
}
.if-legal-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}
.if-legal a:hover {
  color: #fff;
}
@media (max-width: 960px) {
  .if-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 620px) {
  .if-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Header navigation fixes (Gutenify mega menu)
   The plugin switches to its mobile panel at <=1023px.
   ============================================================ */

/* "Book Consultation" item injected into the mobile panel by ft.js. */
.ins-nav-book {
  display: none;
}
.ins-nav-book-link {
  display: block;
  text-align: center;
  background: var(--ift-accent);
  color: #fff !important;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: 999px;
  text-decoration: none;
}
.ins-nav-book-link:hover {
  background: var(--ift-accent-dark);
  color: #fff !important;
}

@media (max-width: 1023px) {
  /* 1. Hide the header CTA — it moves inside the panel, so the hamburger
        becomes the right-most item in the header row. */
  .header--section .book-consultation--btn-container {
    display: none !important;
  }
  .ins-nav-book {
    display: block !important;
    margin-top: 22px;
  }

  /* 2. Top-level items: full width and left aligned. The mega-menu blocks
        carry a flex layout (justify-content:center) that centres them. */
  .wp-block-gutenify-mega-menu-mega-menu .gmm-primary-menu > .gmm-menu-item {
    display: block !important;
    width: 100% !important;
    text-align: left !important;
  }
  .wp-block-gutenify-mega-menu-mega-menu
    .gmm-primary-menu
    > .gmm-menu-item
    > a.gmm-menu-item-link {
    width: 100% !important;
    justify-content: flex-start !important;
    font-weight: 600;
  }

  /* 3. Accordion: the submenu opens inline under its parent (Gutenify's own
        JS toggles .gmm-mobile-child-toggle-show, so no extra script needed). */
  .wp-block-gutenify-mega-menu-mega-menu
    .gmm-primary-menu
    .gmm-menu-item
    > .gmm-primary-menu__dropdown,
  .wp-block-gutenify-mega-menu-mega-menu
    .gmm-primary-menu
    .gmm-menu-item.gmm-mobile-child-toggle-show
    > .gmm-primary-menu__dropdown {
    position: static !important;
    transform: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    transition: max-height 0.28s ease !important;
  }
  .wp-block-gutenify-mega-menu-mega-menu
    .gmm-primary-menu
    .gmm-menu-item.gmm-mobile-child-toggle-show
    > .gmm-primary-menu__dropdown {
    max-height: 1600px !important;
  }
  /* Chevron indicates open/closed. */
  .wp-block-gutenify-mega-menu-mega-menu
    .gmm-primary-menu
    > .gmm-menu-item.gmm-mega-menu-item-has-children
    > a.gmm-menu-item-link::after {
    transform: rotate(270deg) !important;
    transition: transform 0.25s ease;
  }
  .wp-block-gutenify-mega-menu-mega-menu
    .gmm-primary-menu
    > .gmm-menu-item.gmm-mega-menu-item-has-children.gmm-mobile-child-toggle-show
    > a.gmm-menu-item-link::after {
    transform: rotate(90deg) !important;
  }
  .wp-block-gutenify-mega-menu-mega-menu
    .gmm-primary-menu
    > .gmm-menu-item.gmm-mobile-child-toggle-show
    > a.gmm-menu-item-link {
    color: var(--ift-accent-dark) !important;
  }
  /* Separator between top-level rows, like the mockup. */
  .wp-block-gutenify-mega-menu-mega-menu .gmm-primary-menu > .gmm-menu-item {
    border-bottom: 1px solid var(--ift-line);
  }
  .wp-block-gutenify-mega-menu-mega-menu .gmm-primary-menu > .ins-nav-book {
    border-bottom: 0;
  }

  /* The desktop mega card becomes a plain accordion body. */
  .ift-menu {
    box-shadow: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    background: transparent !important;
  }
  .ift-menu-top,
  .ift-menu-col--cta {
    display: none !important;
  }
  .ift-menu-grid {
    display: block !important;
  }
  .ift-menu-col {
    padding: 2px 0 10px !important;
    border: 0 !important;
  }
  .ift-menu-cat {
    margin: 12px 0 8px !important;
  }
  .ift-menu-list a {
    padding-left: 2px;
    font-size: 13px;
  }
  .ift-menu-mobile-all {
    display: block;
    text-align: center;
    background: var(--ift-gold);
    color: #fff !important;
    font-weight: 600;
    font-size: 14px;
    padding: 11px 18px;
    border-radius: 8px;
    text-decoration: none;
    margin: 14px 0 16px;
  }

  /* The main list slid away when a child opened — it no longer should. */
  .wp-block-gutenify-mega-menu-mega-menu .gmm-primary-menu.gmm-main-toggle-on {
    transform: none !important;
  }
  .wp-block-gutenify-mega-menu-mega-menu:has(
      .gmm-primary-menu.gmm-main-toggle-on
    )
    .gmm-back-to-main {
    display: none !important;
  }
}

/* Practice Better inline booking widget (generated from the booking link).
   These two rules ship inline in PB's own snippet; kept here once instead of
   repeating a <style> block for every widget on the page. */
.better-inline-booking-widget {
  position: relative;
  overflow: hidden;
}
.better-inline-booking-widget iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
