/*
 * Homepage (block editor version) styles.
 * Recreates the Beaver Builder / UABB homepage design on core blocks.
 * Breakpoints match Beaver Builder: medium <= 992px, mobile <= 768px.
 */

/* ---------- Page shell ---------- */
.tv-blocks-page .fl-post-content > * { margin-top: 0; margin-bottom: 0; }
.tv-blocks-page .fl-post { margin-bottom: 0; }
.tv-home { overflow-x: clip; }
.tv-home p:empty { display: none; }
.tv-home .tv-wrap { max-width: 1100px; margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; box-sizing: border-box; }
.tv-home .tv-wrap-1300 { max-width: 1300px; }
.tv-home .wp-block-cover { padding: 0; min-height: 0; }
.tv-home .wp-block-cover__inner-container { width: 100%; }
.tv-home .wp-block-cover .wp-block-cover__image-background { height: 100% !important; width: 100% !important; }
.tv-home .wp-block-image { margin: 0; }
.tv-home .wp-block-image img { height: auto; max-width: 100%; }
.tv-home .wp-block-columns { margin-bottom: 0; }
.tv-home h1, .tv-home h2, .tv-home h3, .tv-home h4 { margin-top: 0; }

/* ---------- Visibility (BB responsive display) ---------- */
@media (max-width: 768px) { .tv-home .tv-hide-mobile { display: none !important; } }
@media (min-width: 769px) { .tv-home .tv-mobile-only { display: none !important; } }
@media (max-width: 992px) { .tv-home .tv-hide-tablet-down { display: none !important; } }
@media (min-width: 993px) { .tv-home .tv-hide-desktop { display: none !important; } }

/* ---------- UABB "Big Triangle" row separators ---------- */
.tv-home .tv-sep-bottom-left,
.tv-home .tv-sep-bottom-right,
.tv-home .tv-sep-top-left,
.tv-home .tv-sep-top-right { position: relative; }
.tv-home .tv-sep-bottom-left::after,
.tv-home .tv-sep-bottom-right::after,
.tv-home .tv-sep-top-left::before,
.tv-home .tv-sep-top-right::before {
	content: "";
	position: absolute;
	left: 0;
	width: 100%;
	height: var(--tv-sep-height, 60px);
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 2000 90' preserveAspectRatio='none'%3E%3Cpolygon fill='%23ffffff' points='535.084,64.886 0,0 0,90 2000,90 2000,0'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
	pointer-events: none;
	z-index: 2;
}
.tv-home .tv-sep-bottom-left::after,
.tv-home .tv-sep-bottom-right::after { bottom: -1px; }
.tv-home .tv-sep-top-left::before,
.tv-home .tv-sep-top-right::before { top: -1px; }
.tv-home .tv-sep-bottom-right::after { transform: scaleX(-1); }
.tv-home .tv-sep-top-left::before { transform: scaleY(-1); }
.tv-home .tv-sep-top-right::before { transform: scale(-1); }
.tv-home .tv-sep-100 { --tv-sep-height: 100px; }
.tv-home .tv-sep-behind::after { z-index: 0; }

/* ---------- Buttons ---------- */
.tv-home .wp-block-button__link {
	border-radius: 0;
	transition: background-color .2s ease, color .2s ease;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	line-height: 1.2;
}
.tv-home .tv-btn-arrow .wp-block-button__link::after { content: "\00BB"; margin-left: .4em; font-size: 1.3em; line-height: 1; }
.tv-home .tv-btn-purple .wp-block-button__link { background: #802bac; color: #fff; }
.tv-home .tv-btn-purple .wp-block-button__link:hover { background: #4f2668; color: #fff; }
.tv-home .tv-btn-black .wp-block-button__link { background: #000; color: #fff; }
.tv-home .tv-btn-black .wp-block-button__link:hover { background: #4f2668; color: #fff; }
.tv-home .tv-btn-hero .wp-block-button__link { width: 220px; height: 55px; font-size: 16px; padding: 0 10px; }
.tv-home .tv-btn-large .wp-block-button__link { width: 400px; max-width: 100%; height: 55px; font-size: 30px; padding: 0 10px; }
.tv-home .tv-btn-contact .wp-block-button__link { background: #000; color: #fff; }
.tv-home .tv-btn-contact .wp-block-button__link:hover { background: #fff; color: #000; }
.tv-home .tv-btn-reviews .wp-block-button__link { background: #802bac; color: #fff; }
.tv-home .tv-btn-reviews .wp-block-button__link:hover { background: #fff; color: #000; }
.tv-home .tv-btn-emsculpt .wp-block-button__link { background: #802bac; color: #fff; }
.tv-home .tv-btn-emsculpt .wp-block-button__link:hover { background: #000; color: #fff; }
.tv-home .tv-btn-small .wp-block-button__link { background: #4f2668; color: #fff; font-size: 14px; padding: 8px 16px; }
.tv-home .tv-btn-small .wp-block-button__link:hover { background: #802bac; }

/* ---------- Shared bits ---------- */
.tv-home .tv-line-text { font-family: "jubilat", sans-serif; font-style: normal; display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 20px; text-transform: uppercase; margin: 0; }
.tv-home .tv-line-text::before,
.tv-home .tv-line-text::after { content: ""; flex: 1; border-top: 3px solid currentColor; border-color: var(--tv-line-color, currentColor); }
.tv-home .tv-phone { margin: 10px 0 20px; font-weight: 700; }
.tv-home .tv-phone a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.tv-home .tv-phone a::before {
	content: "";
	width: 1em;
	height: 1em;
	flex: none;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16 1H8a3 3 0 0 0-3 3v16a3 3 0 0 0 3 3h8a3 3 0 0 0 3-3V4a3 3 0 0 0-3-3zm-4 20a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm5-4H7V4h10v13z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16 1H8a3 3 0 0 0-3 3v16a3 3 0 0 0 3 3h8a3 3 0 0 0 3-3V4a3 3 0 0 0-3-3zm-4 20a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm5-4H7V4h10v13z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.tv-home .tv-star-list { list-style: none; padding-left: 0; margin: 0; }
.tv-home .tv-star-list li { position: relative; padding-left: 1.5em; line-height: 1.6; font-family: "jubilat", sans-serif; font-style: normal; color: #802bac; }
.tv-home .tv-star-list li::before { content: "\2605"; position: absolute; left: 0; color: #802bac; }
.tv-home .heading-shadow { text-shadow: 0 3px 6px #333; }
.tv-home .heading-shadow-light { text-shadow: 0 3px 4px #888; }

/* ---------- 1. Hero (desktop / tablet) ---------- */
.tv-home .tv-hero { padding: 80px 0; }
.tv-home .tv-hero .wp-block-cover__image-background { object-position: 50% 20%; }
.tv-home .tv-hero .wp-block-cover__inner-container > .tv-wrap { max-width: 1100px; padding: 0; }
.tv-home .tv-hero-copy { padding: 30px; }
.tv-home .tv-hero-kicker { font-family: "Bona Nova", serif; font-weight: 400; font-size: 45px; line-height: .9; color: #fff; text-align: left; text-shadow: 2px 2px 0 rgba(128,43,172,.38); margin-bottom: 20px; }
.tv-home .tv-hero .tv-line-text { color: #fff; --tv-line-color: #bb7adb; text-shadow: 1px 1px 2px rgba(0,0,0,.5); }
.tv-home .tv-hero-title { font-family: "Lato", sans-serif; font-weight: 300; font-size: 40px; color: #fff; text-align: left; margin: 15px 0 0; text-shadow: 1px 1px 2px rgba(0,0,0,.5); }
.tv-home .tv-hero-desc { color: #bb7adb; font-size: 26px; text-shadow: 2px 2px 2px #000; margin: 0; }
.tv-home .tv-hero .tv-phone { color: #fff; font-size: 40px; }
.tv-home .tv-hero-photo img { display: block; margin: 0 auto; }
@media (max-width: 992px) {
	.tv-home .tv-hero-columns { flex-wrap: wrap !important; }
	.tv-home .tv-hero-columns > .wp-block-column { flex-basis: 100% !important; }
}

/* ---------- 2. Hero (mobile) ---------- */
.tv-home .tv-hero-mobile__panel { background: rgba(255,255,255,.78); padding: 0; text-align: center; }
.tv-home .tv-hero-mobile__panel > * { margin-top: 0; margin-bottom: 10px; padding-left: 15px; padding-right: 15px; }
.tv-home .tv-hero-mobile__panel > .wp-block-image { padding: 0; margin-bottom: 20px; }
.tv-home .tv-reviews-count { font-size: 24px; font-weight: 700; color: #802bac; margin-bottom: 0; }
.tv-home .tv-hero-mobile .tv-hero-kicker { font-size: 34px; line-height: 1.3; color: #000; text-align: center; }
.tv-home .tv-hero-mobile .tv-phone { color: #802bac; font-size: 26px; justify-content: center; display: flex; }
.tv-home .tv-hero-mobile .tv-line-text { color: #000; font-size: 16px; text-shadow: 1px 1px 2px #fff; }
.tv-home .tv-hero-mobile .tv-hero-title { font-weight: 400; font-size: 26px; color: #802bac; text-align: center; text-shadow: 1px 1px 2px #fff; }
.tv-home .tv-hero-mobile .tv-hero-desc { color: inherit; font-size: 20px; text-shadow: none; margin-bottom: 20px; }
.tv-home .tv-hero-mobile .wp-block-buttons { flex-direction: column; align-items: center; margin: 20px; }

/* ---------- 3. Program cards ---------- */
.tv-home .tv-products { padding: 20px 0 60px; }
.tv-home .tv-products .wp-block-columns { gap: 20px; }
.tv-home .tv-card { min-height: 430px; margin-bottom: 20px; transition: background-color .3s ease; box-sizing: border-box; }
.tv-home .tv-card--grey { background: #ededed; }
.tv-home .tv-card--grey:hover { background: #d8d8d8; }
.tv-home .tv-card--purple { background: rgba(128,43,172,.12); }
.tv-home .tv-card--purple:hover { background: rgba(128,43,172,.31); }
.tv-home .tv-card.tv-pad-40 { padding: 40px; }
.tv-home .tv-card.tv-pad-15 { padding: 15px; }
.tv-home .tv-card .wp-block-media-text__media img { width: auto; max-width: 100%; max-height: 360px; margin: 0 auto; display: block; object-fit: contain; }
.tv-home .tv-card .wp-block-media-text__content { padding: 0 0 0 20px; }
.tv-home .tv-card h3 { font-size: 30px; line-height: 1.2; margin: 10px 0; }
.tv-home .tv-card p { margin: 0 0 15px; }
@media (max-width: 992px) {
	.tv-home .tv-card.wp-block-media-text { grid-template-columns: 100% !important; text-align: center; }
	.tv-home .tv-card .wp-block-media-text__media { grid-column: 1; grid-row: 1; }
	.tv-home .tv-card .wp-block-media-text__content { grid-column: 1; grid-row: 2; padding: 0; }
	.tv-home .tv-card .wp-block-media-text__media img { max-height: 250px; }
	.tv-home .tv-card .wp-block-buttons { justify-content: center; }
	.tv-home .tv-card.tv-pad-15 { padding-bottom: 40px; }
}

/* ---------- 4. "Can help" + accordion ---------- */
.tv-home .tv-canhelp { background: radial-gradient(circle at center, #4f2668 0%, #000 100%); padding-top: 20px; }
.tv-home .tv-canhelp .wp-block-columns { align-items: center !important; }
.tv-home .tv-canhelp-girl img { display: block; margin: 0 auto; max-height: 600px; width: auto; }
.tv-home .tv-canhelp h3 { color: #fff; font-size: 40px; text-align: center; }
.tv-home .tv-accordion { margin: 0 0 10px; color: #fff; }
.tv-home .tv-accordion summary { background: rgba(128,43,172,.38); color: #fff; font-family: "jubilat", sans-serif; font-style: normal; font-size: 26px; padding: 12px 20px 12px 50px; cursor: pointer; transition: color .2s ease; list-style: none; position: relative; }
.tv-home .tv-accordion summary::-webkit-details-marker { display: none; }
.tv-home .tv-accordion summary::after { content: "+"; position: absolute; left: 20px; top: 50%; transform: translateY(-50%); }
.tv-home .tv-accordion[open] summary::after { content: "\2212"; }
.tv-home .tv-accordion summary:hover { color: #802bac; }
.tv-home .tv-accordion > p { background: rgba(128,43,172,.31); color: #fff; font-size: 18px; padding: 15px 20px; margin: 0; }
@media (max-width: 768px) {
	.tv-home .tv-canhelp { padding-top: 60px; }
	.tv-home .tv-canhelp h3 { font-size: 28px; }
	.tv-home .tv-accordion summary { font-size: 20px; }
}

/* ---------- 5. Hours / Voted #1 split ---------- */
.tv-home .tv-split { gap: 0 !important; }
.tv-home .tv-split > .wp-block-column { display: flex; }
.tv-home .tv-split > .wp-block-column > .wp-block-cover { flex: 1; }
.tv-home .tv-hours { padding: 60px; text-align: center; }
.tv-home .tv-hours .wp-block-cover__background { background-color: #802bac !important; }
.tv-home .tv-ribbon { background: #000; color: #fff; font-size: 20px; max-width: 650px; margin: 0 auto 20px; padding: 10px 20px; position: relative; }
.tv-home .tv-ribbon::before,
.tv-home .tv-ribbon::after { content: ""; position: absolute; top: 8px; border: 22px solid #000; }
.tv-home .tv-ribbon::before { left: -30px; border-left-color: transparent; }
.tv-home .tv-ribbon::after { right: -30px; border-right-color: transparent; }
.tv-home .tv-hours-prefix { font-family: "jubilat", sans-serif; font-style: normal; color: #000; font-size: 30px; text-shadow: 1px 1px 2px #fff; margin: 20px 0 0; }
.tv-home .tv-hours-title { color: #fff; font-size: 40px; text-shadow: 1px 1px 2px #440f22; margin: 0; }
.tv-home .tv-hours-sep { border: 0; border-top: 5px solid #000; width: 20%; margin: 10px auto; opacity: 1; background: none; }
.tv-home .tv-hours-text { color: #fff; font-size: 24px; text-shadow: 1px 1px 2px #440f22; margin: 0 0 20px; }
.tv-home .tv-voted { padding: 127px 60px 128px; text-align: center; }
.tv-home .tv-voted h2 { color: #fff; font-size: 60px; margin: 0; }
.tv-home .tv-voted .wp-block-image img { display: block; margin: 0 auto; }
.tv-home .tv-voted .wp-block-buttons { margin-top: 40px; }
@media (max-width: 768px) {
	.tv-home .tv-split { flex-wrap: wrap !important; }
	.tv-home .tv-split > .wp-block-column { flex-basis: 100% !important; }
	.tv-home .tv-hours, .tv-home .tv-voted { padding: 40px 20px; }
	.tv-home .tv-voted h2 { font-size: 30px; }
	.tv-home .tv-btn-large .wp-block-button__link { font-size: 22px; }
}

/* ---------- 6. Emsculpt NEO ---------- */
.tv-home .tv-emsculpt { background-color: #4f2668; padding: 190px 0 150px; color: #fff; overflow: visible; }
.tv-home .tv-emsculpt .wp-block-cover__image-background { object-fit: contain; object-position: right center; }
.tv-home .tv-emsculpt h3 { color: #fff; font-size: 60px; text-align: center; }
.tv-home .tv-emsculpt-text { font-size: 24px; text-align: center; margin: 0; }
.tv-home .tv-emsculpt .wp-block-buttons { margin-top: 40px; }
.tv-home .tv-jumping-girl { position: relative; }
.tv-home .tv-jumping-girl img { position: absolute; width: 429px; max-width: none; left: 0; top: -200px; z-index: 3; }
@media (max-width: 768px) {
	.tv-home .tv-emsculpt { padding: 0 0 70px; }
	.tv-home .tv-emsculpt .wp-block-cover__inner-container { padding-top: 40px; }
	.tv-home .tv-emsculpt h3 { font-size: 34px; }
	.tv-home .tv-emsculpt-text { font-size: 18px; }
}

/* ---------- 7. Emsculpt benefits ---------- */
.tv-home .tv-benefits { padding: 20px 0; }
.tv-home .tv-benefits .wp-block-columns { align-items: center; }
.tv-home .tv-benefits h3 { color: #802bac; font-size: 45px; text-align: left; }
.tv-home .tv-benefits .tv-star-list { font-size: 26px; }
.tv-home .tv-benefits .wp-block-image img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
@media (max-width: 768px) {
	.tv-home .tv-benefits h3 { font-size: 28px; }
	.tv-home .tv-benefits .tv-star-list { font-size: 20px; }
}

/* ---------- 8. Change your life ---------- */
.tv-home .tv-change { background: linear-gradient(90deg, #802bac 0%, rgba(128,43,172,.31) 100%); padding: 80px 20px 0; }
.tv-home .tv-change h3 { color: #fff; font-size: 55px; text-align: center; margin-bottom: 0; }
.tv-home .tv-change-intro { color: #fff; font-size: 28px; text-align: center; margin: 0 200px 20px; }
.tv-home .tv-change-intro a { color: #fff; text-decoration: underline; font-style: italic; }
.tv-home .tv-change .wp-block-columns { align-items: stretch; }
.tv-home .tv-change .wp-block-column.tv-hide-tablet-down { align-self: flex-end; }
.tv-home .tv-feature-card { display: flex; flex-direction: column; height: calc(100% - 20px); background: #fcfcfc; box-shadow: 0 4px 35px rgba(147,147,147,.16); min-height: 460px; padding: 20px 20px 30px; text-align: center; transition: background-color .3s ease; margin-bottom: 20px; }
.tv-home .tv-feature-card:hover { background: #ededed; }
.tv-home .tv-feature-card .wp-block-image img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.tv-home .tv-feature-card h3 { color: #802bac; font-size: 30px; line-height: .9; margin: 10px 0; text-shadow: none; }
.tv-home .tv-feature-card p { margin: 0 0 10px; }
.tv-home .tv-feature-card .wp-block-buttons { justify-content: center; margin-top: auto; }
.tv-home .tv-feature-card .wp-block-button__link { background: #802bac; color: #fff; font-size: 20px; padding: 10px 60px; }
.tv-home .tv-feature-card .wp-block-button__link:hover { background: #4f2668; }
@media (max-width: 992px) {
	.tv-home .tv-change-intro { margin-left: 20px; margin-right: 20px; }
	.tv-home .tv-change .wp-block-columns { flex-wrap: wrap !important; justify-content: center; }
	.tv-home .tv-change .wp-block-column { flex-basis: 45% !important; flex-grow: 0 !important; }
}
@media (max-width: 768px) {
	.tv-home .tv-change { padding: 60px 0 20px; }
	.tv-home .tv-change h3 { font-size: 34px; }
	.tv-home .tv-change .wp-block-column { flex-basis: 100% !important; }
}

/* ---------- 9. See why (tablet / mobile only) ---------- */
.tv-home .tv-why { background: #ededed; padding: 20px; }
.tv-home .tv-why h3 { font-size: 28px; text-align: center; }
.tv-home .tv-why .tv-star-list { font-size: 19px; }
.tv-home .tv-why .tv-star-list li { color: #000; }

/* ---------- Mobile typography (BB responsive values) ---------- */
@media (max-width: 768px) {
	.tv-home .tv-line-text { font-size: 16px; }
	.tv-home .tv-hero-desc { font-size: 20px; }
}
