/* ==========================================================================
   Echo — Front Page Styles
   Layout handled by Bootstrap 5 (grid, flex utilities, container, row/col).
   This file contains only Echo-specific visual & motion styles.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
#echo-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: #fff;
	height: 120px;
}

/* Nav link typography — layout (flex, gap) comes from Bootstrap utilities */
.echo-nav-left a,
.echo-nav-right a {
	font-family: 'Instrument Sans', sans-serif;
	font-weight: 600;
	font-size: clamp(11px, 0.95vw, 15px);
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: #0f2124;
	text-decoration: none;
	white-space: nowrap;
	transition: opacity 0.25s ease;
}

.echo-nav-left a:hover,
.echo-nav-right a:hover {
	opacity: 0.5;
}

.echo-nav-left a:focus-visible,
.echo-nav-right a:focus-visible {
	opacity: 1;
	outline: none;
	border-radius: 2px;
	box-shadow:
		0 0 0 2px var(--echo-ring-border, #0F2124),
		0 0 0 8px var(--echo-ring-glow, rgba(51, 111, 122, 0.40));
	transition: box-shadow 0.22s ease, opacity 0.25s ease;
}

/* Fixed-width slot that aligns with the nav-sized logo */
.echo-nav-logo-slot {
	width: 247px;
	height: 99px;
	pointer-events: none;
}

/* --------------------------------------------------------------------------
   Morphing Logo  —  position:fixed, driven by js/frontpage.js
   -------------------------------------------------------------------------- */
#echo-logo-morph {
	position: fixed;
	top: 0;
	left: 0;
	/* Intrinsic Figma dimensions: 566.99 × 227.25 px */
	width: 567px;
	aspect-ratio: 566.99 / 227.25;
	transform-origin: 0 0;
	will-change: transform;
	pointer-events: none;
	/* Above the sticky navbar (z-index: 1000) and any Bootstrap dropdowns */
	z-index: 1010;
	/* Hidden until JS computes the initial position — prevents flash at (0,0) */
	opacity: 0;
}

.echo-logo-inner {
	position: relative;
	width: 100%;
	height: 100%;
}

/* Ec-ho script mark — coordinates derived from Figma inset percentages */
.echo-logo-vector {
	position: absolute;
	top:    0;
	left:   18.72%;
	right:  18.86%;
	bottom: 43.27%;
}

/* "Private Spa Apartments" wordmark */
.echo-logo-type {
	position: absolute;
	top:    64.12%;
	left:   0;
	right:  0;
	bottom: 12.97%;
}

/* "THE VOICE OF THE MOUNTAIN" payoff — JS fades this out on scroll */
.echo-logo-payoff {
	position: absolute;
	top:    91.59%;
	left:   13.4%;
	right:  13.64%;
	bottom: 0;
	transition: opacity 0.15s linear;
}

.echo-logo-vector img,
.echo-logo-type img,
.echo-logo-payoff img {
	display: block;
	width: 100%;
	height: 100%;
}

/* --------------------------------------------------------------------------
   Hero Section  —  empty scroll-trigger region
   -------------------------------------------------------------------------- */
/* Empty scroll-trigger region: js/frontpage.js reads its height to place the
   logo and to set the scroll distance the morph runs over. No fixed height —
   min-height alone governs it at every breakpoint. */
#echo-hero {
	background: #fff;
	min-height: 220px;
}

/* --------------------------------------------------------------------------
   Intro Section  —  columns handled by Bootstrap row/col
   -------------------------------------------------------------------------- */
#echo-intro {
	background: #fff;
	padding-top: 72px;
	padding-bottom: 96px;
}

/* "Nuova apertura Luglio 2026 ——" */
.echo-opening-date {
	font-family: 'Instrument Sans', sans-serif;
	font-weight: 600;
	font-size: clamp(11px, 0.9vw, 14px);
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: #0f2124;
	margin: 0;
	padding-top: 4px; /* optical alignment with first line of description */
	display: flex;
	align-items: center;
	gap: 14px;
	white-space: nowrap;
}

.echo-opening-date::after {
	content: '';
	display: inline-block;
	width: 44px;
	height: 1px;
	background: currentColor;
	flex-shrink: 0;
}

/* Description body */
.echo-description {
	font-family: 'Instrument Sans', sans-serif;
	font-size: clamp(14px, 1.05vw, 17px);
	line-height: 1.75;
	color: #0f2124;
}

.echo-description strong {
	font-weight: 700;
}

.echo-description a,
.echo-link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	margin-top: 28px;
	font-family: 'Instrument Sans', sans-serif;
	font-size: clamp(12px, 0.85vw, 14px);
	color: #0f2124;
	text-decoration: none;
	transition: opacity 0.25s ease;
}

.echo-link-arrow::after {
	content: '→';
	display: inline-block;
	text-decoration: none;
	transition: transform 0.25s ease;
}

.echo-link-arrow:hover::after {
	transform: translateX(4px);
}

.echo-description a:hover,
.echo-link-arrow:hover {
	opacity: 0.7;
}

.echo-description a:focus-visible,
.echo-link-arrow:focus-visible {
	opacity: 1;
	outline: none;
	border-radius: 2px;
	box-shadow:
		0 0 0 2px var(--echo-ring-border, #0F2124),
		0 0 0 8px var(--echo-ring-glow, rgba(51, 111, 122, 0.40));
	transition: box-shadow 0.22s ease, opacity 0.25s ease;
}

/* Word-scrub spans — keep inline flow, GPU-composite opacity only */
.echo-word {
	display: inline;
	will-change: opacity;
}

/* --------------------------------------------------------------------------
   Large media section  —  full-bleed brand video
   Poster is a CSS background (not the `poster` attribute) so the desktop /
   mobile artwork follows the same breakpoint as the video sources.
   -------------------------------------------------------------------------- */
#large-image {
	position: relative;
	overflow: hidden;
	line-height: 0; /* kills the inline-descender gap under the media */
	background-color: #0f2124;
}

#large-image .echo-video,
#large-image > img {
	display: block;
	width: 100%;
	height: auto;
	/* Reserves the box → no layout shift on load. JS re-syncs this to the
	   real videoWidth/videoHeight once metadata lands, so re-exporting a
	   source at a different ratio needs no CSS change. */
	aspect-ratio: var(--echo-video-ratio, 16 / 9);
	-o-object-fit: cover;
	object-fit: cover;
	background-color: #0f2124;
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
	background-image: var(--echo-video-poster-desktop, none);
}

#large-image .echo-video::-webkit-media-controls,
#large-image .echo-video::-webkit-media-controls-start-playback-button {
	display: none !important;
	-webkit-appearance: none;
}

/* Mobile source is a 9:16 vertical crop — full-bleed, ~1.78× the width */
@media (max-width: 767.98px) {
	#large-image .echo-video {
		--echo-video-ratio: 9 / 16;
		background-image: var(--echo-video-poster-mobile, var(--echo-video-poster-desktop, none));
	}
}

/* --------------------------------------------------------------------------
   Animated Text CTA  —  Figma node 180:5832
   -------------------------------------------------------------------------- */
#echo-animated-cta {
	background: #fff;
	padding-top: 7rem;
	padding-bottom: 7rem;
}

/* Large Fraunces body — word-scrub target; GSAP starts it at opacity 0.08 */
.echo-cta-body {
	font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
	font-weight: 400;
	font-size: clamp(1.75rem, 5vw, 4.6875rem); /* 28px → 75px */
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: #303133;
	margin-bottom: 0.75em;
}

/* Bold headline — always fully visible */
.echo-cta-headline {
	font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
	font-weight: 700;
	font-size: clamp(1.75rem, 5vw, 4.6875rem);
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: #0f2124;
	margin-bottom: 2.5rem;
}

/* Pill buttons */
.echo-btn-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: 'Instrument Sans', system-ui, sans-serif;
	font-weight: 500;
	font-size: clamp(1rem, 1.5vw, 1.375rem); /* up to 22px */
	letter-spacing: 0.03em;
	white-space: nowrap;
	border-radius: 39px;
	padding: 0.65em 1.5em;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.echo-btn-pill--filled {
	background-color: #336f7a;
	color: #fff;
	border: 1px solid #336f7a;
}

.echo-btn-pill--outline {
	background: transparent;
	color: #336f7a;
	border: 1px solid #336f7a;
}

.echo-btn-pill:hover {
	opacity: 0.75;
	color: inherit;
}

.echo-btn-pill:focus-visible {
	opacity: 1;
	color: inherit;
	outline: none;
	box-shadow:
		0 0 0 2px var(--echo-ring-border, #0F2124),
		0 0 0 8px var(--echo-ring-glow, rgba(51, 111, 122, 0.40));
}

.echo-btn-pill--filled:hover {
	color: #fff;
}

.echo-btn-pill--filled:focus-visible {
	color: #fff;
}

/* --------------------------------------------------------------------------
   Responsive adjustments
   (Bootstrap handles column stacking; these tune Echo-specific elements)
   -------------------------------------------------------------------------- */

/* md and below: shrink the nav logo slot */
@media (max-width: 991.98px) {
	.echo-nav-logo-slot {
		width: 180px;
		height: 72px;
	}

	#echo-intro {
		padding-top: 48px;
		padding-bottom: 64px;
	}
}

/* sm and below: compact nav, smaller logo */
@media (max-width: 575.98px) {
	#echo-header {
		height: 80px;
	}

	.echo-nav-logo-slot {
		width: 140px;
		height: 56px;
	}

	#echo-logo-morph {
		width: 300px;
	}
}
/*# sourceMappingURL=frontpage.css.map */