/* Final launch refinements. This file intentionally contains only the current
   visual decisions so later changes do not require hunting through older CSS. */

/* More predictable keyboard, touch, and reading behaviour across devices. */
html { scroll-padding-top: 96px; }

body.mindsnack-native :where(button, a, input, select, textarea) {
  -webkit-tap-highlight-color: transparent;
}

body.mindsnack-native .ms-inquiry-form[aria-busy='true'] { cursor: progress; }

body.mindsnack-native .ms-inquiry-form[aria-busy='true'] :is(input, select, textarea) {
  opacity: 0.72;
}

/* Closing CTA: give the supporting sentence the same deliberate hierarchy as
   its headline instead of leaving it in the default muted body colour. */
body.mindsnack-elementor .ms-el-cta .elementor-widget-text-editor,
body.mindsnack-elementor .ms-el-cta .elementor-widget-text-editor p {
  max-width: 720px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.9) !important;
  font-family: "DM Sans", sans-serif;
  font-size: clamp(16px, 1.4vw, 18px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.6;
}

/* Springbase feature icons sit on navy, so use the lime brand colour instead
   of the default dark SVG/currentColor treatment. */
body.mindsnack-elementor .ms-el-dark-feature .elementor-icon-box-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(200, 245, 90, 0.28);
  border-radius: 14px;
  background: rgba(200, 245, 90, 0.1);
}

body.mindsnack-elementor .ms-el-dark-feature .elementor-icon,
body.mindsnack-elementor .ms-el-dark-feature .elementor-icon :is(svg, i) {
  color: var(--mse-lime) !important;
  fill: currentColor;
}

body.mindsnack-elementor .ms-el-dark-feature .elementor-icon-box-title {
  margin-bottom: 6px;
  color: var(--mse-white) !important;
}

body.mindsnack-elementor .ms-el-dark-feature .elementor-icon-box-description {
  color: rgba(255, 255, 255, 0.78) !important;
  font-size: 15px;
  line-height: 1.6;
}

/* Give the Springbase feature its own confident visual anchor. The existing
   supplied logo is intentionally framed to show its distinctive mark only. */
body.mindsnack-elementor .ms-el-dark-feature > .elementor-container {
  gap: clamp(48px, 6vw, 88px);
}

body.mindsnack-elementor .ms-el-orbit {
  background:
    radial-gradient(circle at center, var(--mse-orange) 0 27%, transparent 27.5%),
    radial-gradient(circle at center, transparent 0 47%, rgba(255, 255, 255, 0.22) 47.3% 47.9%, transparent 48.3%),
    radial-gradient(circle at center, transparent 0 64%, rgba(255, 255, 255, 0.14) 64.3% 64.9%, transparent 65.3%),
    radial-gradient(circle at center, rgba(90, 118, 166, 0.16) 0 71%, transparent 71.4%);
  max-width: 560px;
  min-height: 530px;
}

body.mindsnack-elementor .ms-el-orbit .ms-el-springbase-logo {
  width: 162px;
  height: 162px;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
}

body.mindsnack-elementor .ms-el-orbit .ms-el-springbase-logo .elementor-widget-container {
  position: relative;
  width: 162px;
  height: 162px;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--mse-orange);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

body.mindsnack-elementor .ms-el-orbit .ms-el-springbase-logo img {
  position: absolute;
  top: -5px;
  left: 0;
  width: auto !important;
  max-width: none !important;
  height: 172px !important;
}

@media (pointer: coarse) {
  body.mindsnack-native #header [data-id='menu'] > ul > li > a,
  body.mindsnack-native #header [data-id='search'],
  body.mindsnack-native .ms-contact-actions a { min-height: 44px; }
}

@media (max-width: 767px) {
  body.mindsnack-elementor .ms-el-orbit {
    max-width: 410px;
    min-height: 390px;
  }

  body.mindsnack-elementor .ms-el-orbit .ms-el-springbase-logo,
  body.mindsnack-elementor .ms-el-orbit .ms-el-springbase-logo .elementor-widget-container {
    width: 138px;
    height: 138px;
  }

  body.mindsnack-elementor .ms-el-orbit .ms-el-springbase-logo img {
    height: 147px !important;
  }
}

@media (prefers-contrast: more) {
  body.mindsnack-native .wp-block-button.is-style-ms-outline .wp-block-button__link,
  body.mindsnack-native .ms-inquiry-form input,
  body.mindsnack-native .ms-inquiry-form select,
  body.mindsnack-native .ms-inquiry-form textarea { border-color: var(--ms-ink); }
}

/* Tablet is a transition layout, not a squeezed desktop. Stack the richer
   Elementor panels before their copy or form fields become too narrow. */
@media (min-width: 768px) and (max-width: 1024px) {
  body.mindsnack-elementor .ms-el-hero > .elementor-container {
    display: block;
  }

  body.mindsnack-elementor .ms-el-hero > .elementor-container > .elementor-column {
    width: 100% !important;
  }

  body.mindsnack-elementor .ms-el-hero .ms-el-visual {
    max-width: 620px;
    margin: 34px auto 0;
  }

  body.mindsnack-elementor .ms-el-contact-shell .ms-contact-block {
    grid-template-columns: 1fr;
  }
}

/* Clearer WordPress blog / Resources archive header. */
body.mindsnack-native.blog .site-main > .ct-container,
body.mindsnack-native.archive .site-main > .ct-container {
  padding-block: 56px 76px;
}

body.mindsnack-native.blog .hero-section,
body.mindsnack-native.archive .hero-section {
  padding: clamp(26px, 3vw, 42px);
  border: 1px solid rgba(23, 32, 51, 0.08);
  border-radius: 24px;
  background: linear-gradient(112deg, #fff9ef 0%, #ffffff 54%, #effbdc 100%);
}

body.mindsnack-native.blog .hero-section .entry-header,
body.mindsnack-native.archive .hero-section .entry-header {
  display: grid;
  gap: 10px;
  max-width: 760px;
}

body.mindsnack-native.blog .hero-section .page-title,
body.mindsnack-native.archive .hero-section .page-title {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1.04;
}

body.mindsnack-native.blog .hero-section .page-description,
body.mindsnack-native.archive .hero-section .page-description {
  margin: 0;
}

body.mindsnack-native.blog .hero-section .page-description p,
body.mindsnack-native.archive .hero-section .page-description p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.6;
}

/* The contact block lives inside an Elementor panel, so its own large padding
   is reset here to keep the left-hand information safely inside its panel. */
body.mindsnack-elementor .ms-el-contact-shell .ms-contact-block {
  align-items: stretch;
  gap: clamp(24px, 4vw, 52px);
  padding: 0;
}

body.mindsnack-elementor .ms-el-contact-shell .ms-contact-details {
  align-self: stretch;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(22px, 3vw, 34px);
}

body.mindsnack-elementor .ms-el-contact-shell .ms-contact-details > p:first-of-type {
  margin-top: 0;
}

body.mindsnack-elementor .ms-el-contact-shell .ms-contact-details dl {
  margin-top: 1.5rem;
}

body.mindsnack-elementor .ms-el-contact-shell .ms-inquiry-form {
  box-sizing: border-box;
  min-width: 0;
}

/* One simple brand treatment across header and footer. */
body.mindsnack-native #header .site-title::after,
body.mindsnack-native .ms-footer-brand .wp-block-site-title::after {
  content: none;
}

body.mindsnack-native #header .site-logo-container img {
  max-width: 42px !important;
  width: 42px !important;
}

footer.ct-footer .ms-footer-brand {
  align-items: center;
  gap: 14px 16px;
  grid-template-columns: 62px minmax(0, 1fr);
}

footer.ct-footer .ms-footer-brand .wp-block-site-logo {
  width: 62px;
  height: 62px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: #ffffff;
}

footer.ct-footer .ms-footer-brand .wp-block-site-logo img {
  width: 48px;
  height: 48px;
  max-width: 48px;
  object-fit: contain;
}

footer.ct-footer .ms-footer-brand .wp-block-site-title {
  font-size: 1.65rem;
  letter-spacing: -0.05em;
}

footer.ct-footer .ms-footer-brand > p {
  max-width: 32rem;
  margin-top: 4px;
}

@media (max-width: 767px) {
  body.mindsnack-native.blog .site-main > .ct-container,
  body.mindsnack-native.archive .site-main > .ct-container {
    padding-block: 32px 48px;
  }

  body.mindsnack-native.blog .hero-section,
  body.mindsnack-native.archive .hero-section {
    padding: 24px 20px;
    border-radius: 20px;
	margin: 50px 2px;
  }

  body.mindsnack-elementor .ms-el-contact-shell .ms-contact-block {
    grid-template-columns: 1fr;
  }

}
