/* ═══════════════════════════════════════════════════
   DAMIRICA HERO — Side-by-side Layout
   Text left · Globe right · Stacks on mobile
   ═══════════════════════════════════════════════════ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,500&family=DM+Sans:ital,wght@0,400;0,500;0,600;1,400&display=swap');

/* ── SECTION BASE ── */
.damirica-hero {
	position: relative;
	width: 100%;
	background-color: #f5f0e6;
	overflow-x: hidden;
	overflow-y: visible;
}

/* subtle grain texture overlay */
.damirica-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
	background-repeat: repeat;
	background-size: 256px 256px;
	pointer-events: none;
	z-index: 1;
}

/* ── LAYOUT WRAPPER (flex row on desktop) ── */
.damirica-hero__layout {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 48px;
	max-width: 1280px;
	margin: 0 auto;
	padding: 120px 48px 48px;
}

/* ── TEXT COLUMN ── */
.damirica-hero__inner {
	flex: 1 1 45%;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	text-align: left;
	text-decoration: none !important;
}

[dir='rtl'] .damirica-hero__inner,
body.rtl .damirica-hero__inner,
body.translated-rtl .damirica-hero__inner {
	align-items: flex-end;
	text-align: right;
}

.damirica-hero__inner * {
	text-decoration: none !important;
}

/* ── EYEBROW ── */
.damirica-hero__eyebrow {
	display: inline-block;
	font-family: 'DM Sans', 'Segoe UI', sans-serif;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #8b7355;
	margin-bottom: 24px;
	position: relative;
	padding: 0 20px;
	opacity: 0;
	transform: translateY(12px);
	animation: damiricaHeroFadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

/* ── HEADLINE ── */
.damirica-hero__headline {
	font-family: 'Cormorant Garamond', 'Georgia', serif;
	font-weight: 400;
	font-size: clamp(36px, 4vw, 58px);
	line-height: 1.12;
	letter-spacing: -0.015em;
	color: #3a3530;
	margin: 0 0 28px 0;
	padding: 0;
	opacity: 0;
	transform: translateY(18px);
	animation: damiricaHeroFadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.25s forwards;
}

/* ── DESCRIPTION ── */
.damirica-hero__description {
	font-family: 'DM Sans', 'Segoe UI', sans-serif;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.75;
	letter-spacing: 0.005em;
	color: #6b6158;
	max-width: 520px;
	margin: 0 0 0 0;
	padding: 0;
	opacity: 0;
	transform: translateY(14px);
	animation: damiricaHeroFadeUp 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.45s forwards;
}

/* ── EYEBROW SIDE LINES (conditional) ── */
.damirica-hero__eyebrow::before,
.damirica-hero__eyebrow::after {
	display: none;
}

.damirica-hero__eyebrow--lines::before,
.damirica-hero__eyebrow--lines::after {
	content: '';
	display: block;
	position: absolute;
	top: 50%;
	width: 24px;
	height: 1px;
	background: #8b7355;
	opacity: 0.4;
}

.damirica-hero__eyebrow--lines::before {
	right: 100%;
}

[dir='rtl'] .damirica-hero__eyebrow--lines::before,
body.rtl .damirica-hero__eyebrow--lines::before,
body.translated-rtl .damirica-hero__eyebrow--lines::before {
	right: auto;
	left: 100%;
}

.damirica-hero__eyebrow--lines::after {
	left: 100%;
}

[dir='rtl'] .damirica-hero__eyebrow--lines::after,
body.rtl .damirica-hero__eyebrow--lines::after,
body.translated-rtl .damirica-hero__eyebrow--lines::after {
	left: auto;
	right: 100%;
}

/* ── GRAIN TOGGLE ── */
.damirica-hero--no-grain::before {
	display: none;
}

/* ── GLOBE COLUMN ── */
.damirica-hero__globe-container {
	flex: 1 1 55%;
	position: relative;
	z-index: 2;
	width: 100%;
	min-height: 500px;
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	touch-action: pan-y;
}

/* ensure pasted HTML fits */
.damirica-hero__globe-container > * {
	max-width: 100%;
}

.damirica-hero__globe-container canvas,
.damirica-hero__globe-container iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	object-fit: contain;
	touch-action: pan-y;
}

/* top fade blending — only when modifier present */
.damirica-hero__globe-container--fade::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 60px;
	background: linear-gradient(to bottom, #f5f0e6, transparent);
	pointer-events: none;
	z-index: 3;
}

/* ═══════════════════════════════════════════════════
   ENTRANCE ANIMATION
   ═══════════════════════════════════════════════════ */

@keyframes damiricaHeroFadeUp {
	from {
		opacity: 0;
		transform: translateY(18px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ═══════════════════════════════════════════════════
   ELEMENTOR PARENT OVERRIDES — full-bleed on mobile
   ═══════════════════════════════════════════════════ */

@media (max-width: 1024px) {
	/* Modern Elementor containers */
	.e-con:has(.damirica-hero),
	.e-con .e-con:has(.damirica-hero) {
		--padding-inline: 0px !important;
		--padding-block-start: 0px !important;
		--padding-block-end: 0px !important;
		padding: 0 !important;
		max-width: 100% !important;
		overflow: visible !important;
	}

	/* Legacy Elementor sections & columns */
	.elementor-section:has(.damirica-hero) > .elementor-container {
		max-width: 100% !important;
		padding: 0 !important;
	}

	.elementor-column:has(.damirica-hero) > .elementor-widget-wrap {
		padding: 0 !important;
	}

	/* Widget wrapper itself */
	.elementor-widget-damirica_hero,
	.elementor-widget-damirica_hero > .elementor-widget-container {
		width: 100% !important;
		max-width: 100% !important;
		padding: 0 !important;
		margin: 0 !important;
		overflow: visible !important;
	}
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */

/* Large tablet / small desktop */
@media (max-width: 1024px) {
	.damirica-hero__layout {
		gap: 32px;
		padding: 100px 32px 40px;
	}

	.damirica-hero__headline {
		font-size: clamp(30px, 4.5vw, 46px);
	}

	.damirica-hero__description {
		font-size: 14.5px;
		max-width: 440px;
	}

	.damirica-hero__globe-container {
		min-height: 420px;
	}
}

/* Tablet — stack vertically */
@media (max-width: 768px) {
	.damirica-hero {
		width: 100vw;
		position: relative;
		left: 50%;
		margin-left: -50vw;
		overflow: clip;
		box-sizing: border-box;
	}

	[dir='rtl'] .damirica-hero,
body.rtl .damirica-hero,
body.translated-rtl .damirica-hero {
		left: auto;
		right: 50%;
		margin-left: 0;
		margin-right: -50vw;
	}

	.damirica-hero__layout {
		flex-direction: column;
		align-items: center;
		gap: 24px;
		padding: 64px 0 0;
		width: 100%;
		max-width: 100%;
		overflow: visible;
	}

	.damirica-hero__inner {
		flex: none;
		width: 100%;
		align-items: center;
		text-align: center;
		padding: 0 20px;
		box-sizing: border-box;
	}

	.damirica-hero__eyebrow {
		font-size: 10px;
		letter-spacing: 0.14em;
		margin-bottom: 16px;
	}

	.damirica-hero__headline {
		font-size: clamp(28px, 7vw, 40px);
		margin-bottom: 20px;
		line-height: 1.18;
	}

	.damirica-hero__description {
		font-size: 14px;
		line-height: 1.7;
		max-width: 100%;
		margin-bottom: 0;
	}

	.damirica-hero__globe-container {
		flex: none;
		width: 100%;
		position: relative;
		left: auto;
		margin-left: 0;
		min-height: auto;
		aspect-ratio: 1 / 1;
		overflow: hidden;
		box-sizing: border-box;
	}

	.damirica-hero__globe-container--fade::before {
		height: 40px;
	}
}

/* Small mobile */
@media (max-width: 480px) {
	.damirica-hero__layout {
		gap: 20px;
		padding: 60px 0 0;
	}

	.damirica-hero__eyebrow {
		font-size: 9px;
		margin-bottom: 12px;
	}

	.damirica-hero__headline {
		font-size: clamp(24px, 8vw, 34px);
		margin-bottom: 16px;
	}

	.damirica-hero__description {
		font-size: 13.5px;
	}

	.damirica-hero__globe-container {
		width: 100%;
		left: auto;
		margin-left: 0;
		min-height: auto;
		aspect-ratio: 1 / 1;
	}

	.damirica-hero__globe-container--fade::before {
		height: 24px;
	}
}
