/*
  Ella brand typography — single source of truth.

  Use only these CSS variables elsewhere (templates / page CSS):
    var(--font-base)           body, UI, buttons
    var(--font-title)          headings
    var(--font-sub-title)      subheads
    var(--font-serif-display)  decorative display text

  Geom is the only brand typeface on the public website, in every language.
*/

:root,
html[data-theme-color="skin-9"] {
	--font-base: "Geom", ui-sans-serif, system-ui, sans-serif;
	--font-title: "Geom", ui-sans-serif, system-ui, sans-serif;
	--font-sub-title: "Geom", ui-sans-serif, system-ui, sans-serif;
	--font-serif-display: "Geom", ui-sans-serif, system-ui, sans-serif;
	--font-kanit: "Geom", ui-sans-serif, system-ui, sans-serif;
}

html :is(button, input, select, textarea) {
	font-family: var(--font-base);
}

/* The home hero keeps a portrait canvas on phones instead of collapsing
   into a shallow landscape banner. */
@media (max-width: 767px) {
	.ella-home-hero {
		height: clamp(650px, calc(100svh - 2rem), 780px);
		min-height: 650px;
		background-position: center center;
	}

	.ella-service-details-grid {
		margin-inline: 0;
	}
}

.ella-legal-content {
	overflow-wrap: anywhere;
}

/* Services page: KissArt-style horizontal tabs + card grid */
.ella-services-tabs {
	display: flex;
	flex-wrap: nowrap;
	gap: 0.65rem;
	overflow-x: auto;
	padding: 0.15rem 0 1.25rem;
	margin-bottom: 1.5rem;
	border-bottom: 1px solid rgba(25, 25, 25, 0.08);
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}

.ella-services-tabs__btn {
	flex: 0 0 auto;
	padding: 0.65rem 1.15rem;
	border: 1px solid rgba(25, 25, 25, 0.12);
	border-radius: 999px;
	background: transparent;
	color: rgba(25, 25, 25, 0.55);
	font-family: var(--font-base);
	font-size: 0.92rem;
	font-weight: 500;
	letter-spacing: 0.02em;
	line-height: 1.2;
	white-space: nowrap;
	cursor: pointer;
	transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.ella-services-tabs__btn:hover {
	color: #191919;
	border-color: rgba(25, 25, 25, 0.28);
}

.ella-services-tabs__btn.is-active {
	color: #191919;
	background: var(--primary, #CEAF62);
	border-color: var(--primary, #CEAF62);
}

.ella-services-grid {
	display: grid;
	grid-template-columns: repeat(1, minmax(0, 1fr));
	gap: 1.25rem;
}

@media (min-width: 640px) {
	.ella-services-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1.5rem;
	}
}

@media (min-width: 1100px) {
	.ella-services-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1.75rem;
	}
}

.ella-service-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: 1.25rem;
	background: #f6f6f6;
	color: #191919;
	text-decoration: none;
	opacity: 1;
	transform: translateY(0) scale(1);
	transition:
		opacity 0.28s ease,
		transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
		box-shadow 0.25s ease;
	will-change: opacity, transform;
}

.ella-service-card:hover {
	color: #191919;
	transform: translateY(-3px);
	box-shadow: 0 14px 30px rgba(25, 25, 25, 0.08);
}

.ella-service-card.is-hidden,
.ella-service-card[hidden] {
	display: none;
}

.ella-service-card.is-leaving {
	opacity: 0;
	transform: translateY(10px) scale(0.985);
	pointer-events: none;
}

.ella-service-card.is-entering {
	opacity: 0;
	transform: translateY(16px) scale(0.985);
	transition: none;
}

.ella-service-card__media {
	display: block;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: #eaeaea;
}

.ella-service-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.45s ease;
}

.ella-service-card:hover .ella-service-card__media img {
	transform: scale(1.04);
}

.ella-service-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	padding: 1.1rem 1.15rem 1.25rem;
}

.ella-service-card__name {
	font-family: var(--font-title);
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.3;
}

.ella-service-card__price {
	font-size: 0.92rem;
	font-weight: 500;
	color: rgba(25, 25, 25, 0.55);
}

.ella-services-vat-note {
	margin: 1.75rem 0 0;
	font-size: 0.9rem;
	font-weight: 300;
	color: rgba(25, 25, 25, 0.5);
}

@media (prefers-reduced-motion: reduce) {
	.ella-service-card,
	.ella-service-card__media img {
		transition: none;
	}
}

/* Mirrored About sections share the same media geometry. */
.ella-about-split__media {
	aspect-ratio: 1035 / 701;
}

.ella-about-split__media--portrait {
	aspect-ratio: 521 / 718;
	max-width: 28rem;
	margin-inline: auto;
}

@media (min-width: 992px) {
	.ella-about-split__media--portrait {
		max-width: none;
		margin-inline: 0;
	}
}

.ella-about-split__media img,
.ella-about-split__media video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}

.ella-about-split__media video {
	pointer-events: none;
}

@media (min-width: 992px) {
	.ella-about-split--reverse .ella-about-split__stats {
		transform: scaleX(-1);
	}

	.ella-about-split--reverse .ella-about-split__stats > div > div > span,
	.ella-about-split--reverse .ella-about-split__stats p {
		transform: scaleX(-1);
	}
}

@media (max-width: 991.98px) {
	.ella-about-split--reverse .ella-about-split__copy {
		order: 1;
	}

	.ella-about-split--reverse .ella-about-split__media-column {
		order: 2;
	}
}

/* Admin plain-text → site paragraphs / emphasis */
.ella-prose p {
	margin: 0 0 1rem;
}

.ella-prose p:last-child {
	margin-bottom: 0;
}

.ella-prose strong {
	font-weight: 600;
	color: #191919;
}

.ella-prose em {
	font-style: italic;
}

/* Branded preloader */
.dz-loader {
	position: fixed;
	inset: 0;
	z-index: 9999999;
	display: flex;
	width: 100%;
	height: 100vh;
	overflow: hidden;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}

.dz-loader > svg {
	position: absolute;
	top: 0;
	width: 100vw;
	height: 110vh;
	fill: #fff;
}

.dz-loader-info {
	position: relative;
	z-index: 2;
}

.ella-loader-inner {
	text-align: center;
}

.ella-loader-mark {
	position: relative;
	display: grid;
	place-items: center;
	width: clamp(5.25rem, 8vw, 6.75rem);
	aspect-ratio: 1;
	margin: 0 auto 1.25rem;
	isolation: isolate;
	animation: ella-loader-reveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ella-loader-mark::before,
.ella-loader-mark::after {
	position: absolute;
	content: "";
	border-radius: 50%;
	pointer-events: none;
}

.ella-loader-mark::before {
	inset: 0;
	z-index: -1;
	border: 1px solid rgb(190 153 70 / 45%);
	animation: ella-loader-halo 1.5s cubic-bezier(0.22, 1, 0.36, 1) 0.25s infinite;
}

.ella-loader-mark::after {
	inset: 15%;
	z-index: -2;
	background: radial-gradient(circle, rgb(211 178 104 / 25%) 0%, rgb(211 178 104 / 0%) 72%);
	filter: blur(8px);
}

.ella-loader-logo {
	display: block;
	width: 72%;
	height: auto;
	filter: drop-shadow(0 10px 14px rgb(91 65 19 / 14%));
	animation: ella-loader-breathe 1.4s ease-in-out 0.8s infinite alternate;
}

.ella-loader-copy {
	font-family: var(--font-base);
	font-size: 0.78rem;
	font-weight: 300;
	letter-spacing: 0.38em;
	text-transform: uppercase;
	color: #28251f;
}

@keyframes ella-loader-reveal {
	0% {
		opacity: 0;
		transform: translateY(12px) scale(0.72) rotate(-5deg);
	}
	65% {
		opacity: 1;
		transform: translateY(0) scale(1.04) rotate(1deg);
	}
	100% {
		opacity: 1;
		transform: translateY(0) scale(1) rotate(0);
	}
}

@keyframes ella-loader-halo {
	0% {
		opacity: 0;
		transform: scale(0.72);
	}
	35% {
		opacity: 0.75;
	}
	100% {
		opacity: 0;
		transform: scale(1.32);
	}
}

@keyframes ella-loader-breathe {
	from {
		transform: translateY(0) scale(1);
	}
	to {
		transform: translateY(-2px) scale(1.035);
	}
}

@media (prefers-reduced-motion: reduce) {
	.ella-loader-mark,
	.ella-loader-mark::before,
	.ella-loader-logo,
	.dz-loader .animate-loading {
		animation: none;
	}
}

/* Shared decorative background for public-page hero sections. */
.ella-page-hero-pattern {
	background-image: url("../img/background/pattern3.webp");
	background-size: cover;
	background-repeat: no-repeat;
}

/* Keep benefit ticks optically centered inside their circular markers. */
.ella-service-benefits {
	height: 100%;
	padding: clamp(1.25rem, 2.5vw, 2rem);
	border: 1px solid rgba(25, 25, 25, 0.06);
	border-radius: 1rem;
	background: #f6f6f6;
}

.ella-service-detail-video {
	display: block;
	background: #191919;
}

@media (min-width: 1280px) {
	.ella-service-details-grid {
		align-items: stretch;
	}

	.ella-service-details-column {
		display: flex;
	}

	.ella-service-details-media,
	.ella-service-benefits {
		flex: 1 1 auto;
		width: 100%;
		min-height: 31.25rem;
	}

	.ella-service-details-media {
		height: auto !important;
	}
}

.ella-service-benefits__list {
	display: grid;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ella-service-benefits__item {
	position: relative;
	min-height: 4.5rem;
	padding: 1rem 0 1rem 3.5rem;
	border-bottom: 1px solid rgba(25, 25, 25, 0.08);
}

.ella-service-benefits__item:last-child {
	border-bottom: 0;
}

.ella-service-benefits__icon {
	position: absolute;
	top: 1rem;
	left: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	background: var(--primary, #ceaf62);
	color: #191919;
	box-shadow: 0 6px 16px rgba(25, 25, 25, 0.08);
}

.ella-benefit-check {
	line-height: 1 !important;
}

.ella-benefit-check::before {
	position: absolute;
	top: 50%;
	left: 50%;
	line-height: 1;
	transform: translate(-50%, -50%);
}

/*
  Accordion arrows: theme CSS forces fa-chevron-down to display:block,
  so both gold circles show at once. Keep one icon visible at a time.
*/
.myAccordion .arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.myAccordion .arrow > .fa-chevron-right,
.myAccordion .arrow > .fa-chevron-down,
.myAccordion .arrow > .fa-chevron-up {
	display: none !important;
}

.myAccordion .arrow > .fa-chevron-right {
	display: inline-flex !important;
}

.myAccordion .arrow.active > .fa-chevron-right {
	display: none !important;
}

.myAccordion .arrow.active > .fa-chevron-down,
.myAccordion .arrow.active > .fa-chevron-up {
	display: inline-flex !important;
}

/* Footer brand mark — keep compact on all breakpoints */
.ella-footer-logo {
	display: block;
	width: 4.5rem;
	height: auto;
}

@media (min-width: 992px) {
	.ella-footer-logo {
		width: 5.5rem;
	}
}

/* Footer: brand gold text throughout */
.ella-site-footer,
.ella-site-footer h2,
.ella-site-footer h3,
.ella-site-footer p,
.ella-site-footer li,
.ella-site-footer a {
	color: var(--primary, #CEAF62);
}

.ella-site-footer a:hover {
	color: #e4cc8a;
}

.ella-site-footer .link-hover::after {
	background-color: var(--primary, #CEAF62);
}

.ella-footer-contact-btn {
	background: transparent !important;
	border: 1px solid var(--primary, #CEAF62) !important;
	color: var(--primary, #CEAF62) !important;
}

.ella-footer-contact-btn:hover {
	background: var(--primary, #CEAF62) !important;
	border-color: var(--primary, #CEAF62) !important;
	color: #191919 !important;
}
