/* ----------------------------------------------------------------
	mTm: Nutopia branded
-----------------------------------------------------------------*/

/* 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: #EBF1F0;

	--cnvs-themecolor-darker: #2c3c43;
	--cnvs-body-bg: #f7f6f2;

	--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);
}

/* Global Typography Overrides */
body {
	font-family: var(--cnvs-body-font);
	color: #233035;
	background-color: var(--cnvs-body-bg);
}

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

/* Nutopia: softer, rounded modal */
#accountModal .modal-content {
	border-radius: 1.5rem;      /* bigger radius */
	overflow: hidden;           /* keep inner content from spilling over corners */
}

/* Optional: make it feel a bit more “card-like” */
#accountModal .modal-content {
	box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
	border: none;
}

.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;
}

/* Utility accents to ensure all brand colors get used */
.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(--nutopia-teal-deep) !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 {
	/* default: olive -> soft teal */
	background: linear-gradient(135deg, var(--nutopia-olive), var(--nutopia-teal-soft));
	color: #fff !important;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.4);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
	backdrop-filter: blur(6px);
	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease,
		background 0.2s ease,
		border-color 0.2s ease,
		color 0.2s ease;
}

.btn-nutopia-primary:hover,
.btn-nutopia-primary:focus {
	/* hover: olive (#7B8D5B) -> clay (#C97A57) */
	background: linear-gradient(135deg, var(--nutopia-olive), var(--nutopia-clay));
	transform: translateY(-1px);
	box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16);
	color: #233035 !important;
	border-color: currentColor;
}

.btn-nutopia-outline {
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.7);
	color: #ffffff !important;
	background: transparent;
	backdrop-filter: blur(4px);
	transition:
		background 0.2s ease,
		color 0.2s ease,
		transform 0.2s ease,
		border-color 0.2s ease;
}

.btn-nutopia-outline:hover,
.btn-nutopia-outline:focus {
	background-color: #ffffff;
	color: var(--nutopia-teal-deep) !important;
	transform: translateY(-1px);
	border-color: currentColor;
}

/* 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;
}

/* -------------------------------------------------
   Underline color (KEEP Canvas underline effect)
   Canvas uses:
   --cnvs-underliner-color (rgb) for the background
   We only change that variable – not the effect.
-------------------------------------------------- */

/* Default: gold on light backgrounds */
.underliner {
	/* Nutopia gold: #D8A23F => 216,162,63 */
	--cnvs-underliner-color: 216, 162, 63;
}

/* Dark sections (hero, telehealth, Meet Janet, etc.): clay */
.section.dark .underliner,
.slider-element.dark .underliner,
#slider.slider-element.dark .underliner {
	/* Nutopia clay: #C97A57 => 201,122,87 */
	--cnvs-underliner-color: 201, 122, 87;
}

/* Explicit helper – force clay anywhere (used by hero + Meet Janet) */
.nutopia-underline-clay {
	--cnvs-underliner-color: 201, 122, 87 !important;
}

/* Optional helper if you ever need to force gold */
.nutopia-underline-gold {
	--cnvs-underliner-color: 216, 162, 63 !important;
}

/* 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(--cnvs-themecolor-darker);
}

/* -------------------------------------------------
   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.8rem;
	--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: .925rem;
	height: .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(--nutopia-teal-deep);
}

/* Overlay (cart / side panel) tinted with Nutopia teal */
.body-overlay {
	background: rgba(var(--cnvs-themecolor-rgb), 0.8);
}

/* Hero slider background – solid gradient, no light band at bottom */
#slider.slider-element:not(.bg-color) {
	background-image: linear-gradient(
		to bottom,
		var(--nutopia-teal-soft) 0%,
		var(--cnvs-themecolor) 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; /* overlap bottom slightly to hide any edge */
	width: 100%;
	height: 60%;  /* cover more of the lower hero */
	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 color 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 if you ever want to scope later; safe to keep) */
.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%);
}

/* If tabs ever sit on a dark section, shift underline to clay */
.section.dark .canvas-alt-tabs.tabs-bb .nav-link.active::after,
.dark .canvas-alt-tabs.tabs-bb .nav-link.active::after {
	background-color: var(--nutopia-clay);
}

/* 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,
		#314851 0,
		#1b262c 55%,
		#12191d 100%
	);
}

/* 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; /* icon | text block */
		column-gap: 0.75rem;
		align-items: flex-start;
	}

	/* Keep the icon untouched visually, just place it in col 1 */
	.section.dark.nutopia-telehealth .iconlist li i {
		grid-column: 1;
		grid-row: 1 / span 2; /* icon spans both text rows */
		margin-right: 0;      /* override any default right margin */
	}

	/* Strong label on its own line to the right of the icon */
	.section.dark.nutopia-telehealth .iconlist li strong {
		grid-column: 2;
		grid-row: 1;
		display: block;
		margin: 0 0 0.15rem;
	}

	/* Description below the strong text, still in col 2 */
	.section.dark.nutopia-telehealth .iconlist li span.op-07 {
		grid-column: 2;
		grid-row: 2;
		display: block;
		margin: 0;
	}
}

/* Cards with 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(--nutopia-teal-deep),
		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: 0.725rem;
	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 */
.shop .product-image {
	position: relative;
	width: 100%;
	padding-top: 70%;          /* controls aspect ratio (~3:2). Tweak if needed */
	overflow: hidden;
	border-radius: 1.25rem;    /* matches your card rounding */
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Center & crop all images inside that frame */
.shop .product-image img {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 100%;
	height: 100%;
	object-fit: cover;         /* fills frame, preserves aspect, crops as needed */
}

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

/* 1) Global base body size */
body {
	font-size: 1.2rem;      /* ~19px base */
	line-height: 1.85;      /* extra comfy line-height */
}

/* 2) Core reading text: paragraphs & standard copy */
p,
.text-contrast-600,
.text-contrast-1000 {
	font-size: 1.15rem;     /* ~18–18.5px for main reading text */
}

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

/* 4) Footer & utility text that was very small */
.widget_links li {
	font-size: 1.02rem;     /* still “nav” sized, but clearly legible */
}

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

/* 5) Forms & buttons: keep labels easy to read */
.form-control,
button,
.btn {
	font-size: 1.05rem;
}

/* 6) Main menu text slightly larger too */
#header {
	--cnvs-primary-menu-font-size: 0.95rem;
}