/* ----------------------------------------------------------------
  mTm: Nutopia branded (supplements.css)
  - Cleaned: consolidated duplicates, removed empty rules,
    added missing utilities (.rounded-8, .object-cover)
----------------------------------------------------------------- */

/* Brand Fonts */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;500;600;700&family=Libre+Baskerville:wght@400;700&display=swap');

:root {
  /* Nutopia Brand Palette */
  --nutopia-teal-deep: #47626b;
  --nutopia-olive-muted: #808169;
  --nutopia-teal-soft: #8ba0a0;
  --nutopia-clay: #C97A57;
  --nutopia-olive: #7B8D5B;
  --nutopia-gold: #D8A23F;

  /* Canvas Theme Colors mapped to Nutopia */
  --cnvs-themecolor: var(--nutopia-teal-deep);
  --cnvs-themecolor-rgb: 71, 98, 107;
  --cnvs-themecolor-light: #f7fafb;
  --cnvs-themecolor-darker: #8ba0a0;
  --cnvs-body-bg: #f7fafb;

  --cnvs-body-font: "Lato", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --cnvs-primary-font: "Libre Baskerville", "Georgia", "Times New Roman", serif;

  --cnvs-side-header-width: 300px;
  --cnvs-side-panel-size: 360px;

  /* Iconlist base color for Canvas helpers */
  --cnvs-iconlist-color: var(--nutopia-clay);
}

/* -------------------------------------------------
   Utilities used in newstage.html
-------------------------------------------------- */
.rounded-8{
	border-radius: 1.25rem !important;
}
img.rounded-8{
	border-radius: 1.25rem !important;
	-webkit-transform: translateZ(0); /* helps Safari render rounded edges cleanly */
	transform: translateZ(0);
}
.object-cover{
	object-fit: cover;
	display: block;
}

/* -------------------------------------------------
  Global Typography & Base
-------------------------------------------------- */

body {
  font-family: var(--cnvs-body-font);
  color: #233035;
  background-color: var(--cnvs-body-bg);

  /* Accessible base type */
  font-size: 1.2rem;   /* ~19px base */
  line-height: 1.85;   /* extra-comfy line-height */
}

.stretched #gotoTop {
  bottom: 80px !important;
}

.font-body {
  font-family: var(--cnvs-body-font) !important;
}

.font-primary {
  font-family: var(--cnvs-primary-font) !important;
}

h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5 {
  font-family: var(--cnvs-primary-font);
  letter-spacing: 0.02em;
}

/* Top bar: match body font */
#top-bar,
#top-bar h1,
#top-bar h2,
#top-bar h3,
#top-bar h4,
#top-bar h5,
#top-bar h6 {
  font-family: var(--cnvs-body-font) !important;
}

/* -------------------------------------------------
  Underliner (force Nutopia gold everywhere)
-------------------------------------------------- */

/* Canvas underline uses --cnvs-underliner-color (rgb) */
.underliner,
.section.dark .underliner,
.slider-element.dark .underliner,
#slider.slider-element.dark .underliner,
.nutopia-underline-clay,
.nutopia-underline-gold {
  /* Nutopia gold: #D8A23F => 216,162,63 */
  --cnvs-underliner-color: 216, 162, 63 !important;
}

/* Hard-force older ::after underline implementations to gold */
.underliner::after,
.dark .underliner::after,
.section.dark .underliner::after,
.slider-element.dark .underliner::after,
.dark .nocolor.underliner::after,
.section.dark .nocolor.underliner::after,
.slider-element.dark .nocolor.underliner::after,
.nutopia-underline-clay.underliner::after,
.nutopia-underline-gold.underliner::after {
  background-image: none !important;
  background-color: var(--nutopia-gold) !important;
}

/* -------------------------------------------------
  Large One Word in Slider
-------------------------------------------------- */

/* Hero headline text: gold + stroke + soft glow */
.opm-large-word {
  color: var(--nutopia-gold);
  font-weight: 900 !important;

  /* Thick outline (best support in Chromium/Safari) */
  -webkit-text-stroke: 2px var(--nutopia-olive-muted);
  text-stroke: 2px var(--nutopia-olive-muted); /* non-standard, harmless where unsupported */

  /* Glow + subtle depth */
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.55),
    0 0 22px rgba(255, 255, 255, 0.35),
    0 2px 0 rgba(0, 0, 0, 0.35);

  font-size: 64px;
}

.device-md .opm-large-word { font-size: 52px; }
.device-sm .opm-large-word { font-size: 40px; }
.device-xs .opm-large-word { font-size: 38px; }

/* Optional: reduce stroke on small screens (prevents “fill-in”) */
@media (max-width: 768px) {
  .opm-large-word {
    -webkit-text-stroke: 1px var(--nutopia-olive-muted);
    text-stroke: 1px var(--nutopia-olive-muted);
  }
}

/* Fallback outline for browsers without text-stroke (e.g., Firefox) */
@supports not (-webkit-text-stroke: 1px #000) {
  .opm-large-word {
    text-shadow:
      /* outline via multiple shadows */
      2px 0 0 #000, -2px 0 0 #000, 0 2px 0 #000, 0 -2px 0 #000,
      2px 2px 0 #000, -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000,
      /* glow */
      0 0 10px rgba(255, 255, 255, 0.85),
      0 0 22px rgba(255, 255, 255, 0.55);
  }
}

/* -------------------------------------------------
  Nutopia: softer, rounded modal
-------------------------------------------------- */

#accountModal .modal-content {
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
  border: none;
}

/* -------------------------------------------------
  Utility accents / brand helpers
-------------------------------------------------- */

.text-nutopia-teal { color: var(--nutopia-teal-deep) !important; }
.text-nutopia-soft { color: var(--nutopia-teal-soft) !important; }
.text-nutopia-olive { color: var(--nutopia-olive) !important; }
.text-nutopia-muted-olive { color: var(--nutopia-olive-muted) !important; }
.text-nutopia-clay { color: var(--nutopia-clay) !important; }
.text-nutopia-gold { color: var(--nutopia-gold) !important; }

.bg-nutopia-teal { background-color: var(--cnvs-themecolor-light) !important; }
.bg-nutopia-soft { background-color: var(--nutopia-teal-soft) !important; }
.bg-nutopia-olive { background-color: var(--nutopia-olive) !important; }
.bg-nutopia-muted-olive { background-color: var(--nutopia-olive-muted) !important; }
.bg-nutopia-clay { background-color: var(--nutopia-clay) !important; }
.bg-nutopia-gold { background-color: var(--nutopia-gold) !important; }

/* -------------------------------------------------
  Branded CTA Buttons
-------------------------------------------------- */

.btn-nutopia-primary {
  background-color: var(--nutopia-clay);
  background-image: none;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  color: #fff !important;

  border-radius: 999px;
  border: none !important;

  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  text-decoration: none;

  transition:
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.btn-nutopia-primary:hover,
.btn-nutopia-primary:focus {
  background-image: linear-gradient(135deg, var(--nutopia-olive), var(--nutopia-teal-soft));
  background-color: transparent;
  color: #fff !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
  border: none !important;
}

.btn-nutopia-primary:active {
  transform: translateY(0);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.btn-nutopia-primary:focus-visible {
  outline: 2px solid rgba(216, 162, 63, 0.55);
  outline-offset: 2px;
}

/* Outline variant */
.btn-nutopia-outline {
  border-radius: 999px;
  border: none !important;

  color: #0f2f3a !important;
  background: rgba(255, 255, 255, 0.35);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.10);

  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.btn-nutopia-outline:hover,
.btn-nutopia-outline:focus {
  background-image: linear-gradient(135deg, var(--nutopia-olive), var(--nutopia-teal-soft));
  background-color: transparent;
  color: #fff !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
  transform: translateY(-1px);
  border: none !important;
}

.btn-nutopia-outline:focus-visible {
  outline: 2px solid rgba(216, 162, 63, 0.55);
  outline-offset: 2px;
}

/* -------------------------------------------------
  Hero-specific styles
-------------------------------------------------- */

.nutopia-hero-title { max-width: 32rem; }

.nutopia-hero-subtitle {
  max-width: 32rem;
  color: rgba(255, 255, 255, 0.9);
}

.nutopia-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  font-weight: 600;
  color: var(--nutopia-gold);
  background: rgba(0, 0, 0, 0.18);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.nutopia-hero-image {
  max-width: 100%;
  border-radius: 1.75rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
  object-fit: cover;
}

/* -------------------------------------------------
  Shape + section backgrounds
-------------------------------------------------- */

.shape-divider-fill { fill: var(--bs-white); }

#content { background-color: var(--bs-white); }

.dark {
  --cnvs-header-bg: var(--cnvs-themecolor-darker);
  --cnvs-header-sticky-bg: transparent;
  --cnvs-footer-bg: var(--nutopia-teal-soft);
}

/* -------------------------------------------------
  HEADER (Furniture-style, Nutopia colors)
-------------------------------------------------- */

#header {
  --cnvs-primary-menu-font: var(--cnvs-body-font);
  --cnvs-primary-menu-font-weight: 600;
  --cnvs-primary-menu-font-size: 0.95rem; /* slightly larger for accessibility */
  --cnvs-primary-menu-tt: uppercase;
  --cnvs-primary-menu-ls: 1px;
  --cnvs-primary-menu-color: var(--nutopia-teal-deep);
  --cnvs-primary-menu-hover-color: var(--nutopia-clay);
  --cnvs-header-misc-icons-size: 1.5rem;
}

/* Remove old gradient pill header, keep clean furniture header */
#header-wrap .container {
  background: transparent;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  --bs-gutter-x: 24px;
}

/* Top Search Icon Switch (for inline SVG icons) */
.top-search-open #top-search a i:nth-child(1),
body:not(.top-search-open) #top-search a i:nth-child(2) {
  opacity: 0;
}

.top-search-open .top-search-parent .header-misc > #top-cart {
  opacity: 1;
}

/* Top Cart Number Sizes */
.top-cart-number {
  width: 0.925rem;
  height: 0.925rem;
  line-height: 1rem;
}

/* Light background utility used in mega menu */
.bg-color-light {
  background-color: var(--cnvs-themecolor-light) !important;
}

/* Side Panel */
#side-panel {
  --cnvs-side-panel-bg: var(--cnvs-themecolor-light);
}

/* Overlay (cart / side panel) tinted with Nutopia teal */
.body-overlay {
  background: rgba(139, 160, 160, 0.65);
}

/* Hero slider background – solid gradient */
#slider.slider-element:not(.bg-color) {
  background-image: linear-gradient(to bottom, #ffffff 0%, var(--cnvs-themecolor-light) 100%);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
}

/* Hero bottom diagonal – cover more area & sit flush at bottom */
.hero-diagonal {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 60%;
  clip-path: polygon(0 72%, 100% 0, 100% 100%, 0% 100%);
  background: linear-gradient(135deg, var(--nutopia-olive), var(--nutopia-clay));
  pointer-events: none;
}

/* Ensure content stays above the diagonal background */
#slider .slider-inner {
  position: relative;
  z-index: 2;
}

/* -------------------------------------------------
  Icon list – force clay globally
-------------------------------------------------- */

.iconlist > li i:first-child,
.iconlist li i {
  --cnvs-iconlist-size: 1.5rem;
  --cnvs-iconlist-offset: 4px;
  font-size: var(--cnvs-iconlist-size);
  color: var(--nutopia-clay) !important;
}

/* Optional helper */
.nutopia-iconlist-clay { --cnvs-iconlist-color: var(--nutopia-clay); }

/* Header misc */
.header-misc-element,
.header-misc-icon {
  margin: 0 12px;
}

/* Swiper brands */
.swiper-sup {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition-timing-function: linear !important;
}

/* Tabs icons */
:not(.active) .tab-icon-active img:last-child,
.active .tab-icon-active img:first-child {
  display: none;
}
.active .tab-icon-active img:last-child { display: block; }

/* Testimonials */
.testimonial .flex-control-nav {
  position: relative;
  justify-content: flex-start;
  top: 0;
  left: 0;
  right: auto;
  margin-top: 20px;
}

/* Tabs */
.nav-link span { font-weight: 600; }

.nav-link.active span {
  font-weight: 700;
  color: var(--nutopia-teal-deep);
}

.canvas-alt-tabs.tabs-bb .nav-link.active {
  position: relative;
  border-bottom: 0;
  padding-bottom: 1rem;
}

.canvas-alt-tabs.tabs-bb .nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 10%;
  height: 0.25rem;
  border-radius: 2rem;
  background-color: var(--nutopia-gold);
  transform: translateX(-50%);
}

/* Soft section background / cards */
.section.bg-contrast-200 {
  background: linear-gradient(180deg, #f7f6f2 0%, #f3f1ea 50%, #ffffff 100%);
}

.section.dark.nutopia-telehealth {
  background: radial-gradient(circle at top, #ffffff 0, var(--cnvs-themecolor-light) 60%, #dfe9ee 100%);
}

/* Specific mobile spacing tweak for hero */
@media (max-width: 991.98px) {
  #slider.slider-element.dark {
    margin-top: -100px !important;
  }
}

/* md and smaller: stack title + description, keep icon on the left */
@media (max-width: 1199.98px) {
  .section.dark.nutopia-telehealth .iconlist li {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 0.75rem;
    align-items: flex-start;
  }

  .section.dark.nutopia-telehealth .iconlist li i {
    grid-column: 1;
    grid-row: 1 / span 2;
    margin-right: 0;
  }

  .section.dark.nutopia-telehealth .iconlist li strong {
    grid-column: 2;
    grid-row: 1;
    display: block;
    margin: 0 0 0.15rem;
  }

  .section.dark.nutopia-telehealth .iconlist li span.op-07 {
    grid-column: 2;
    grid-row: 2;
    display: block;
    margin: 0;
  }
}

/* Cards (Olive & Clay accents) */
.card,
.bg-white.rounded {
  border-radius: 1.25rem !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(71, 98, 107, 0.08);
}

.section.footer-stick .container {
  border-radius: 1.5rem;
}

/* Newsletter CTA */
.section.footer-stick .container.px-0.rounded.overflow-hidden {
  background: linear-gradient(135deg, var(--cnvs-themecolor-light), var(--nutopia-clay)) !important;
}

/* Minor helpers */
.op-05 { opacity: 0.5; }
.op-07 { opacity: 0.7; }
.text-underline-offset-4 { text-underline-offset: 0.25em; }

/* -------------------------------------------------
  Footer links & subscribe
-------------------------------------------------- */

.widget_links li {
  font-size: 1.02rem; /* bumped up for legibility */
  padding: 8px 0;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.widget.subscribe-widget input {
  padding-top: 8px;
  padding-bottom: 8px;
  background-color: #F5F5F5;
}

.widget.subscribe-widget input::-moz-placeholder {
  font-size: 13px;
  color: #AAA;
}
.widget.subscribe-widget input:-ms-input-placeholder {
  font-size: 13px;
  color: #AAA;
}
.widget.subscribe-widget input::-webkit-input-placeholder {
  font-size: 13px;
  color: #AAA;
}

/* ============================================
  Nutopia: counseling grid – unify image sizes
============================================ */

/* Make every product image area the same ratio + match card rounding */
.shop .product-image {
  position: relative;
  width: 100%;
  padding-top: 70%;
  overflow: hidden !important;
  border-radius: 1.25rem !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ensure link + overlays also respect the rounded corners */
.shop .product-image > a {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit !important;
}

/* Fill the frame and crop consistently */
.shop .product-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit !important;
}

.shop .product-image .bg-overlay,
.shop .product-image .bg-overlay-bg {
  border-radius: inherit !important;
}

/* ============================================
  Nutopia: Accessible type sizes (senior-friendly)
============================================ */

p,
.text-contrast-600,
.text-contrast-1000 {
  font-size: 1.15rem;
}

/* Icon list descriptions (telehealth bullets, etc.) */
.section.dark.nutopia-telehealth .iconlist li span.op-07,
.iconlist li span {
  font-size: 1.15rem;
}

.footer-big-contacts {
  font-size: 1.15rem;
}

/* Forms & buttons */
.form-control,
button,
.btn {
  font-size: 1.05rem;
}

/* -------------------------------------------------
  Nutopia: Light-background overrides (requested)
-------------------------------------------------- */

/* Footer is marked .dark in markup, but uses light backgrounds */
#footer.dark,
#footer.dark .footer-widgets-wrap,
#footer.dark #copyrights {
  background-color: var(--nutopia-teal-soft);
  color: #233035;
}

#footer.dark a,
#footer.dark .widget_links a,
#footer.dark .footer-big-contacts a {
  color: #233035;
}

#footer.dark a:hover,
#footer.dark .widget_links a:hover {
  color: var(--nutopia-clay);
}

/* Hero slider is marked .dark in markup; keep text readable on the light gradient */
#slider.slider-element.dark,
#slider.slider-element.dark h1,
#slider.slider-element.dark h2,
#slider.slider-element.dark h3,
#slider.slider-element.dark h4,
#slider.slider-element.dark h5,
#slider.slider-element.dark h6,
#slider.slider-element.dark p,
#slider.slider-element.dark .iconlist li span {
  color: #233035 !important;
}

#slider.slider-element.dark .nutopia-hero-subtitle {
  color: rgba(35, 48, 53, 0.85) !important;
}

/* Side panel background is now light; ensure legibility */
#side-panel,
#side-panel a,
#side-panel .widget,
#side-panel .widget p,
#side-panel .widget h1,
#side-panel .widget h2,
#side-panel .widget h3,
#side-panel .widget h4,
#side-panel .widget h5,
#side-panel .widget h6 {
  color: #233035 !important;
}

/* ==========================================================================
  Light Background Overrides for Sections Previously Using `.dark`
  - Meet Janet (section.dark with inline themecolor-darker bg)
  - Final CTA right column uses `.dark`
========================================================================== */

/* Meet Janet section: keep text dark even if `.dark` is present */
.section.dark[style*="--cnvs-themecolor-darker"] h1,
.section.dark[style*="--cnvs-themecolor-darker"] h2,
.section.dark[style*="--cnvs-themecolor-darker"] h3,
.section.dark[style*="--cnvs-themecolor-darker"] h4,
.section.dark[style*="--cnvs-themecolor-darker"] h5,
.section.dark[style*="--cnvs-themecolor-darker"] h6,
.section.dark[style*="--cnvs-themecolor-darker"] .heading-block > h1,
.section.dark[style*="--cnvs-themecolor-darker"] .heading-block > h2,
.section.dark[style*="--cnvs-themecolor-darker"] .heading-block > h3,
.section.dark[style*="--cnvs-themecolor-darker"] .heading-block > h4,
.section.dark[style*="--cnvs-themecolor-darker"] .heading-block > h5,
.section.dark[style*="--cnvs-themecolor-darker"] .heading-block > h6 {
  color: #233035 !important;
}

.section.dark[style*="--cnvs-themecolor-darker"] p,
.section.dark[style*="--cnvs-themecolor-darker"] .testi-content p,
.section.dark[style*="--cnvs-themecolor-darker"] .op-07,
.section.dark[style*="--cnvs-themecolor-darker"] .op-08,
.section.dark[style*="--cnvs-themecolor-darker"] small,
.section.dark[style*="--cnvs-themecolor-darker"] .text-smaller {
  color: rgba(35, 48, 53, 0.88) !important;
}

/* Final CTA right column uses `.dark` even though the overall feel is now lighter */
.section.footer-stick .col-lg-6.dark h1,
.section.footer-stick .col-lg-6.dark h2,
.section.footer-stick .col-lg-6.dark h3,
.section.footer-stick .col-lg-6.dark h4,
.section.footer-stick .col-lg-6.dark h5,
.section.footer-stick .col-lg-6.dark h6 {
  color: #233035 !important;
}

.section.footer-stick .col-lg-6.dark p,
.section.footer-stick .col-lg-6.dark .op-07,
.section.footer-stick .col-lg-6.dark .op-08,
.section.footer-stick .col-lg-6.dark small,
.section.footer-stick .col-lg-6.dark .text-smaller {
  color: rgba(35, 48, 53, 0.88) !important;
}

/* -------------------------------------------------
  Nutopia: Telehealth headline responsive sizing
-------------------------------------------------- */
@media (max-width: 575.98px) {
  .section.nutopia-telehealth h3.display-5,
  .nutopia-telehealth h3.display-5 {
    font-size: 1.55rem !important; /* ~24.8px */
    line-height: 1.25 !important;
  }

  .section.nutopia-telehealth .text-uppercase.ls-2.text-smaller {
    font-size: 0.72rem !important;
    letter-spacing: 0.14em !important;
  }
}
