/* ==========================================================================
   Homepage – templates/page-home.php
   Figma 31:241 (desktop 1920) / 193:348 (mobile 375).
   Desktop sizes are Figma pixels × var(--u) (main.css): the 1920 composition scales
   with the viewport. Hover states = Figma prototype variants (Assets page):
   hero 148:743 (dissolve 800ms), intro 54:904 (smart animate 1000ms linear),
   circles 57:993 (dissolve 500ms), experience 148:689 (smart animate 800ms ease-out),
   Mommy Makeover 57:1090 (1000ms linear), bands 129:428 (800ms ease-out),
   contact 148:553 (dissolve 800ms ease-out).
   ========================================================================== */

.be_home-section-title {
	font: var(--be-h2);
	text-align: center;
}

/* Hero (148:811) ----------------------------------------------------------- */
.be_home-hero {
	padding: calc(50 * var(--u));
}

.be_home-hero-box {
	position: relative;
	display: grid;
	grid-template-columns: calc(551 * var(--u)) minmax(0, 1fr);
	gap: calc(50 * var(--u));
	padding: calc(50 * var(--u));
	overflow: hidden;
}

.be_home-hero-bg {
	position: absolute;
	inset: 0;
	background: #000; /* the video and its poster carry Figma's 80% opacity baked over black */
}

.be_home-hero-bg img,
.be_home-hero-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* The video fades in over its still frame once it actually plays (main.js adds .is-playing). */
.be_home-hero-video {
	opacity: 0;
	transition: opacity var(--be-t-section);
}

.be_home-hero-video.is-playing {
	opacity: 1;
}

/* Doctor (148:737): a 550x617 #0d1529 box; the portrait is 96.8% wide, 1.6% from the left,
   7% from the top and runs past the bottom edge (Figma crop of the raw 1145x1374 photo). */
.be_home-hero-photo {
	position: relative;
	aspect-ratio: 550 / 617;
	overflow: hidden;
	background: #0d1529;
}

.be_home-hero-photo img {
	position: absolute;
	top: 7.02%;
	left: 1.6%;
	width: 96.82%;
	max-width: none;
	height: auto;
	transform: scaleX(-1); /* mirrored in Figma */
}

.be_home-hero-content {
	position: relative;
	display: flex;
	flex-direction: column;
	align-self: end;
	padding-bottom: calc(8 * var(--u));
}

.be_home-hero-text {
	max-width: calc(669 * var(--u));
	font: 400 max(17px, calc(24 * var(--u)))/1.25 var(--be-font-body);
}

.be_home-hero-title {
	margin: calc(38 * var(--u)) 0 0 calc(-400 * var(--u));
	font: 300 calc(120 * var(--u))/1.2 var(--be-font-display);
	white-space: nowrap;
}

.be_home-hero-title-small {
	font-size: calc(100 * var(--u));
	transition: color 0.8s ease-out;
}

.be_home-hero:hover .be_home-hero-title-small {
	color: var(--be-gold);
}

.be_home-hero-subtitle {
	margin-top: calc(22 * var(--u));
	font: 300 max(20px, calc(32 * var(--u)))/1.2 var(--be-font-display);
}

/* Tablet. */
@media (max-width: 1280px) {
	.be_home-hero {
		padding: 30px;
	}

	.be_home-hero-box {
		grid-template-columns: 360px minmax(0, 1fr);
		gap: 40px;
		padding: 40px;
	}

	.be_home-hero-title {
		margin: 30px 0 0 -220px;
		font-size: 72px;
		white-space: normal;
	}

	.be_home-hero-title-small {
		font-size: 60px;
	}

	.be_home-hero-text {
		max-width: none;
		font-size: 20px;
	}

	.be_home-hero-subtitle {
		margin-top: 20px;
		font-size: 26px;
	}
}

/* Phones (193:341): portrait on top, then text, H1 on two lines, subtitle. */
@media (max-width: 860px) {
	.be_home-hero {
		padding: 20px;
	}

	.be_home-hero-box {
		grid-template-columns: 1fr;
		gap: 28px;
		padding: 12px;
	}

	.be_home-hero-content {
		align-self: auto;
		padding: 0 0 12px;
	}

	.be_home-hero-text {
		font-size: 18px;
		line-height: 25px;
	}

	.be_home-hero-title {
		margin: 28px 0 0;
		font-size: 48px;
		line-height: 1.1;
	}

	.be_home-hero-title-main,
	.be_home-hero-title-small {
		display: block;
	}

	.be_home-hero-title-small {
		font-size: 40px;
	}

	.be_home-hero-subtitle {
		margin-top: 28px;
		font-size: 24px;
	}
}

/* «Η αλλαγή ξεκινά» (57:940) -------------------------------------------------
   Hover: the left photo widens (530 → 680) and the right one grows taller (330 → 520). */
.be_home-intro {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: calc(10 * var(--u));
	padding: calc(50 * var(--u));
}

.be_home-vline {
	display: block;
	width: 2px;
	height: calc(50 * var(--u));
	background: var(--be-white);
}

.be_home-intro-grid {
	display: grid;
	grid-template-columns: calc(680 * var(--u)) 1fr calc(342 * var(--u));
	align-items: center;
	gap: calc(50 * var(--u));
	width: 100%;
}

.be_home-intro-left {
	display: flex;
	flex-direction: column;
	gap: calc(50 * var(--u));
}

.be_home-intro-title {
	font: var(--be-h2);
}

.be_home-intro-photo {
	position: relative;
	width: calc(530 * var(--u));
	height: calc(376 * var(--u));
	overflow: hidden;
	transition: width 1s linear, height 1s linear;
}

.be_home-intro-photo--right {
	width: 100%;
	height: calc(330 * var(--u));
}

.be_home-intro:hover .be_home-intro-photo {
	width: calc(680 * var(--u));
}

.be_home-intro:hover .be_home-intro-photo--right {
	width: 100%;
	height: calc(520 * var(--u));
}

.be_home-intro-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Photos fade into the navy ground from the middle down (Figma gradient 50% → #0d1529). */
.be_home-fade::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(13, 21, 41, 0) 50%, var(--be-navy) 100%);
}

.be_home-intro-middle {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: calc(50 * var(--u));
}

.be_home-intro-text {
	width: calc(289 * var(--u));
	min-width: 220px;
}

@media (max-width: 1280px) {
	.be_home-intro {
		padding: 40px;
	}

	.be_home-intro-grid {
		grid-template-columns: 1fr 1fr;
	}

	.be_home-intro-left {
		grid-column: 1 / -1;
	}

	.be_home-intro-photo,
	.be_home-intro:hover .be_home-intro-photo {
		width: 100%;
		max-width: 530px;
		height: auto;
		aspect-ratio: 530 / 376;
	}

	.be_home-intro-photo--right,
	.be_home-intro:hover .be_home-intro-photo--right {
		max-width: 342px;
		aspect-ratio: 342 / 330;
	}
}

@media (max-width: 700px) {
	.be_home-intro {
		padding: 30px 20px;
		gap: 30px;
	}

	.be_home-intro-grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.be_home-intro-left {
		gap: 24px;
	}

	.be_home-intro-photo,
	.be_home-intro-photo--right,
	.be_home-intro:hover .be_home-intro-photo,
	.be_home-intro:hover .be_home-intro-photo--right {
		max-width: none;
	}

	.be_home-intro-middle {
		justify-content: flex-start;
		gap: 20px;
	}

	.be_home-intro-text {
		width: auto;
		min-width: 0;
		font-size: 15px;
		line-height: 22px;
	}
}

/* «Ανακαλύψτε τις Θεραπείες» (31:267): four 395px circles.
   Hover (circle 57:995, dissolve 500ms linear): dashed border, brighter photo. */
.be_home-treat {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: calc(50 * var(--u));
	padding: calc(150 * var(--u)) calc(50 * var(--u)) calc(100 * var(--u));
}

.be_home-treat-grid {
	display: flex;
	justify-content: space-between;
	gap: calc(30 * var(--u));
	width: 100%;
}

.be_home-treat-col {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: calc(25 * var(--u));
	width: calc(395 * var(--u));
}

.be_home-treat-name {
	font: var(--be-h3);
	text-transform: uppercase;
	text-align: center;
	white-space: nowrap;
}

.be_home-circle {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 1;
	overflow: hidden;
	border: 1px solid var(--be-white);
	border-radius: 50%;
	transition: border-color 0.5s linear;
}

.be_home-circle::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	border: 1px dashed var(--be-white);
	border-radius: 50%;
	opacity: 0;
	transition: opacity 0.5s linear;
	pointer-events: none;
}

.be_home-circle:hover {
	border-color: transparent;
}

.be_home-circle:hover::before {
	opacity: 1;
}

.be_home-circle-bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.3;
	transition: opacity 0.5s linear;
}

.be_home-circle:hover .be_home-circle-bg {
	opacity: 0.6;
}

.be_home-circle-links {
	position: relative;
	z-index: 1;
	display: grid;
	gap: calc(24 * var(--u));
	width: 70%;
	list-style: none;
}

.be_home-circle-links a {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: calc(10 * var(--u));
	padding-bottom: calc(12 * var(--u));
	border-bottom: 1px solid var(--be-white);
	font: 700 max(15px, calc(20 * var(--u)))/1.6 var(--be-font-body);
	text-align: center;
	transition: color var(--be-t-fast), border-color var(--be-t-fast);
}

.be_home-circle-links a::after {
	content: "";
	flex: none;
	width: 10px;
	height: 10px;
	background: url("../../img/icon-plus.svg") center / contain no-repeat;
	transition: transform var(--be-t-fast);
}

.be_home-circle-links a:hover {
	color: var(--be-gold);
	border-color: var(--be-gold);
}

.be_home-circle-links a:hover::after {
	transform: rotate(90deg);
}

@media (max-width: 1280px) {
	.be_home-treat {
		padding: 80px 40px;
	}

	.be_home-treat-grid {
		flex-wrap: wrap;
		justify-content: center;
		gap: 50px 40px;
	}

	.be_home-treat-col {
		width: 360px;
		gap: 25px;
	}

	.be_home-treat-name {
		white-space: normal;
	}
}

@media (max-width: 700px) {
	.be_home-treat {
		gap: 40px;
		padding: 50px 20px;
	}

	.be_home-treat-grid {
		gap: 40px;
	}

	.be_home-treat-col {
		width: 100%;
		max-width: 335px;
	}

	.be_home-treat-name {
		font-size: 20px;
	}

	.be_home-circle-links {
		gap: 20px;
	}

	.be_home-circle-links a {
		font-size: 18px;
		line-height: 32px;
	}
}

/* «Εμπειρία που συναντά...» (148:712): blue band, glove/pen left, dotted path,
   doctor cut-out right. Hover (148:691, 800ms ease-out): the doctor grows. */
.be_home-exp {
	position: relative;
	display: grid;
	grid-template-columns: calc(498 * var(--u)) minmax(0, 1fr) calc(428 * var(--u));
	gap: calc(50 * var(--u));
	height: calc(582 * var(--u));
	overflow: hidden;
	background: var(--be-blue);
}

.be_home-exp-hand img {
	width: 100%;
}

.be_home-exp-content {
	position: relative;
	display: flex;
	align-items: center;
	gap: calc(50 * var(--u));
	padding-top: calc(100 * var(--u));
}

.be_home-exp-dots {
	position: absolute;
	top: calc(54 * var(--u));
	left: 0;
	width: calc(738 * var(--u));
	max-width: none;
	height: auto;
	overflow: visible;
	pointer-events: none;
}

/* The dashes appear one by one along the path (2.4s) once the band is in view. Hidden only
   while main.js marks the svg pending, so no-JS and reduced-motion visitors see the full line. */
.be_home-exp-dots .be_draw {
	stroke-dasharray: 1030; /* path length 1026 (Chrome ignores pathLength inside <mask>) */
	stroke-dashoffset: 0;
	transition: stroke-dashoffset 2.4s cubic-bezier(0.45, 0, 0.25, 1) 0.2s;
}

.be_home-exp-dots.is-reveal-pending .be_draw {
	stroke-dashoffset: 1030;
}

.be_home-exp-text {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: calc(50 * var(--u));
	width: calc(699 * var(--u));
}

.be_home-exp-title {
	font: var(--be-h2);
}

.be_home-exp-btn {
	position: relative;
	flex: none;
}

.be_home-exp-dr {
	position: relative;
}

.be_home-exp-dr img {
	position: absolute;
	top: calc(77 * var(--u));
	left: calc(-15 * var(--u));
	width: calc(443 * var(--u));
	max-width: none;
	height: auto; /* keep the 502x1024 ratio (Figma 443x904, top-aligned, cut by the band) */
	transform-origin: 50% 0;
	transition: transform 0.8s ease-out;
}

.be_home-exp:hover .be_home-exp-dr img {
	transform: translate(calc(-20 * var(--u)), calc(-40 * var(--u))) scale(1.12);
}

@media (max-width: 1280px) {
	.be_home-exp {
		grid-template-columns: 26% minmax(0, 1fr) 24%;
		height: auto;
		min-height: 480px;
		gap: 30px;
	}

	.be_home-exp-content {
		flex-direction: column;
		align-items: flex-start;
		padding: 120px 0 50px;
	}

	.be_home-exp-dots {
		width: 100%;
		top: 30px;
	}

	.be_home-exp-text {
		width: auto;
		gap: 30px;
	}

	.be_home-exp-dr img {
		position: static;
		width: 100%;
		margin-top: 60px;
	}
}

/* Phones (193:713): hand top-left, dotted path, text, button + doctor at the bottom. */
@media (max-width: 860px) {
	.be_home-exp {
		grid-template-columns: 1fr 160px;
		gap: 0;
		min-height: 0;
		padding: 0 0 0 20px;
	}

	.be_home-exp-hand {
		grid-column: 1;
		width: 110px;
		margin-left: -20px;
	}

	.be_home-exp-content {
		display: contents;
	}

	.be_home-exp-dots {
		top: 0;
		left: auto;
		right: 0;
		width: 240px;
	}

	.be_home-exp-text {
		grid-column: 1 / -1;
		gap: 24px;
		padding: 40px 20px 30px 0;
	}

	.be_home-exp-btn {
		grid-column: 1;
		align-self: start;
	}

	.be_home-exp-dr {
		grid-column: 2;
	}

	.be_home-exp-dr img {
		width: 160px;
		margin-top: -40px;
	}
}

/* Mommy Makeover (57:1105). Hover (57:1092, 1000ms linear): the photo widens. */
.be_home-mommy {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: calc(50 * var(--u));
	padding: calc(150 * var(--u)) calc(50 * var(--u));
}

.be_home-mommy-left {
	display: flex;
	flex-direction: column;
	gap: calc(50 * var(--u));
}

.be_home-mommy-title {
	font: var(--be-h2);
}

.be_home-mommy-photo {
	width: calc(718 * var(--u));
	height: calc(376 * var(--u));
	overflow: hidden;
	background: #000;
	transition: width 1s linear;
}

.be_home-mommy:hover .be_home-mommy-photo {
	width: calc(1140 * var(--u));
}

.be_home-mommy-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.be_home-mommy-side {
	display: flex;
	align-items: center;
	gap: calc(50 * var(--u));
}

.be_home-mommy-text {
	width: calc(303 * var(--u));
	min-width: 220px;
}

@media (max-width: 1280px) {
	.be_home-mommy {
		flex-direction: column;
		align-items: flex-start;
		padding: 80px 40px;
	}

	.be_home-mommy-photo,
	.be_home-mommy:hover .be_home-mommy-photo {
		width: 100%;
		max-width: 718px;
		height: auto;
		aspect-ratio: 718 / 376;
	}
}

@media (max-width: 700px) {
	.be_home-mommy {
		gap: 30px;
		padding: 40px 20px 60px;
	}

	.be_home-mommy-left {
		gap: 24px;
		width: 100%;
	}

	.be_home-mommy-side {
		gap: 20px;
	}

	.be_home-mommy-text {
		width: auto;
		min-width: 0;
	}
}

/* «Αισθητικές Παρεμβάσεις» (124:784): 220px bands, the photo at 10%, no frame.
   Hover (129:430, smart animate 800ms ease-out): full photo, gold title and a white 1px frame
   whose four lines grow from their Figma anchors (top ← right, right ↓ top, bottom → left,
   left ↑ bottom). */
.be_home-aes {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: calc(50 * var(--u));
	padding: calc(75 * var(--u)) var(--be-pad-x);
}

.be_home-aes-list {
	display: grid;
	gap: calc(24 * var(--u));
	width: 100%;
	list-style: none;
}

.be_home-aes-item a {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: calc(220 * var(--u));
	overflow: hidden;
	text-align: center;
}

.be_home-aes-item a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background:
		linear-gradient(var(--be-white), var(--be-white)) right top / 0 1px no-repeat,
		linear-gradient(var(--be-white), var(--be-white)) right top / 1px 0 no-repeat,
		linear-gradient(var(--be-white), var(--be-white)) left bottom / 0 1px no-repeat,
		linear-gradient(var(--be-white), var(--be-white)) left bottom / 1px 0 no-repeat;
	transition: background-size var(--be-t-section);
}

.be_home-aes-item a:hover::after,
.be_home-aes-item a:focus-visible::after {
	background-size: 100% 1px, 1px 100%, 100% 1px, 1px 100%;
}

/* Soft navy halo behind the title on hover, so the gold title stays legible on the bright
   photos (Νήματα, Υαλουρονικό); the photo edges stay at full strength. */
.be_home-aes-item a::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: radial-gradient(ellipse 35% 75% at 50% 50%, rgba(4, 5, 21, 0.6), rgba(4, 5, 21, 0) 100%);
	opacity: 0;
	transition: opacity var(--be-t-section);
}

.be_home-aes-item a:hover::before,
.be_home-aes-item a:focus-visible::before {
	opacity: 1;
}

.be_home-aes-bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.1;
	transition: opacity 0.8s ease-out;
}

.be_home-aes-item a:hover .be_home-aes-bg,
.be_home-aes-item a:focus-visible .be_home-aes-bg {
	opacity: 1;
}

.be_home-aes-title {
	position: relative;
	z-index: 2;
	padding: 0 20px;
	font: 700 max(20px, calc(26 * var(--u)))/1.23 var(--be-font-display);
	text-transform: uppercase;
	transition: color 0.8s ease-out;
}

.be_home-aes-item a:hover .be_home-aes-title,
.be_home-aes-item a:focus-visible .be_home-aes-title {
	color: var(--be-gold);
}

.be_home-aes-dots {
	display: none;
}

@media (max-width: 1280px) {
	.be_home-aes-item a {
		height: 180px;
	}
}

/* Phones (193:747): one band at a time, dashes underneath. */
@media (max-width: 700px) {
	.be_home-aes {
		align-items: stretch;
		gap: 30px;
		padding: 50px 20px;
	}

	.be_home-aes .be_home-section-title {
		text-align: left;
	}

	.be_home-aes-list {
		display: flex;
		gap: 20px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
	}

	.be_home-aes-list::-webkit-scrollbar {
		display: none;
	}

	.be_home-aes-item {
		flex: 0 0 100%;
		scroll-snap-align: start;
	}

	.be_home-aes-item a {
		height: 218px;
	}

	.be_home-aes-bg {
		opacity: 0.2;
	}

	.be_home-aes-title {
		font-size: 20px;
	}

	.be_home-aes-dots {
		display: flex;
	}

	.be_home-aes .be_circle-btn {
		align-self: center;
	}
}
