/*
 * Romar Yachting — homepage refinements.
 * Loaded after style.css (see header.php). Same look: Play, black text,
 * soft blue radial gradient, rounded photos. Mostly mobile polish.
 *
 * WCAG notes: every text colour here is solid on a light background
 * (#000 / #111 / #32508b on white or #c5daff all >= 4.5:1). Do not put
 * semi-transparent backgrounds behind the white hero title.
 */

:root {
	--romar-ink: #111;
	--romar-blue: #32508b;
	--romar-radius: clamp(20px, 2vw, 40px);
	--romar-gutter: clamp(16px, 4vw, 72px);
}

/* ---------- Focus (keyboard users) ---------- */
#masthead a:focus-visible,
.container-home a:focus-visible,
.site-info a:focus-visible,
.hero-toggle:focus-visible {
	outline: 3px solid var(--romar-blue);
	outline-offset: 3px;
	border-radius: 4px;
}

/* ---------- Hero ---------- */
.container-home .mainhomeone {
	height: 100vh;
	height: 100svh;
	overflow: hidden;
	margin: 0;
	padding: 0;
}

.container-home .container-full.videohome {
	height: 100vh;
	height: 100svh;
	padding-bottom: 0;
}

.container-home .container-full.videohome video {
	display: block;
	width: 100%;
	height: 100%;
	max-height: none;
	object-fit: cover;
}

/* No transform here: the theme's GSAP parallax animates h1.font-2 with yPercent. */
.container-home .mainhomeone h1.font-2 {
	top: 50vh;
	top: 50svh;
	margin: -1.2em 0 0;
	padding: 0 16px;
	font-size: clamp(2.25rem, 4vw + 1rem, 5.5rem);
	line-height: 1.05;
	letter-spacing: -0.01em;
	text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.container-home .mainhomeone h1.font-2 span {
	display: block;
	margin-top: 0.6rem;
	font-size: clamp(1.125rem, 1.4vw + 0.6rem, 2.75rem) !important;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1.25;
	text-wrap: balance;
}

.hero-toggle {
	position: absolute;
	top: calc(100vh - 76px);
	top: calc(100svh - 76px);
	left: 16px; /* bottom-right is taken by the fixed ESPA banner */
	z-index: 5;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: #000;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
	transition: transform 0.2s ease;
}

.hero-toggle:hover {
	transform: scale(1.06);
}

.hero-toggle svg {
	fill: currentColor;
}

.hero-toggle .hero-toggle__play,
.hero-toggle.is-paused .hero-toggle__pause {
	display: none;
}

.hero-toggle.is-paused .hero-toggle__play {
	display: block;
}

/* ---------- Text sections ---------- */
.home-eyebrow {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0 0 0.5rem;
	font-family: 'Play', sans-serif;
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--romar-blue);
}

.home-eyebrow::before {
	content: '';
	flex: 0 0 2.5rem;
	height: 2px;
	background: currentColor;
}

.container-home .homeone .content,
.container-home .homethree .content {
	padding: 1rem var(--romar-gutter);
}

.container-home .homeone .content p,
.container-home .homethree .content p {
	max-width: 62ch;
	margin: 1rem 0 0;
	font-size: clamp(1.125rem, 0.9vw + 0.85rem, 1.69rem);
	line-height: 1.6;
	font-weight: 400;
	color: var(--romar-ink);
}

.container-home .home-photo {
	display: block;
	width: 100%;
	border-radius: var(--romar-radius);
	object-fit: cover;
}

/* style.css adds 15–40vh of empty space under every last .content */
.container-home .content:last-child {
	padding-bottom: 0;
}

.container-home .homeone,
.container-home .homethree {
	margin-bottom: clamp(3rem, 8vw, 7rem);
}

.container-home .hometwo {
	margin-bottom: clamp(3rem, 8vw, 7rem);
}

/* ---------- Yachts ---------- */
.container-home .homefour h2 {
	margin-bottom: clamp(1.5rem, 4vw, 3rem);
}

.yacht-card__inner img {
	transition: transform 0.6s ease;
}

.yacht-card:hover .yacht-card__inner img {
	transform: scale(1.04);
}

.container-home .yacht-card__type {
	margin: 0;
	padding-top: 1.25rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	font-size: 0.875rem;
}

.container-home .yacht-card__title {
	margin: 0.35rem 0 0;
	font-family: 'Play', sans-serif;
	font-size: clamp(1.4rem, 1vw + 1rem, 1.9rem);
	font-weight: 400;
	line-height: 1.2;
	color: #000;
}

/* ---------- Contact ---------- */
/* style.css sets 5vw, which is only ~19px on a phone */
.container-home .homefive .content__title {
	margin-bottom: clamp(2rem, 5vw, 5rem);
	font-size: clamp(3rem, 5vw, 6rem);
}

.container-home .contactdev1 h3 {
	margin: 0 0 1rem;
	font-family: 'Play', sans-serif;
	font-size: clamp(1.75rem, 1.5vw + 1rem, 2.2rem);
	font-weight: 400;
	color: #000;
}

.container-home .contactdev2 address {
	margin: 0;
	font-style: normal;
	line-height: 1.8;
}

.container-home .contactdev2 a {
	display: inline-block;
	padding: 0.2rem 0;
	color: #000;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

.container-home .contactdev2 a:hover {
	color: var(--romar-blue);
}

/* ---------- Mobile ---------- */
@media (max-width: 767.98px) {
	.container-home .mainhomeone h1.font-2 span {
		margin-top: 0.4rem;
	}

	.container-home .homeone .content,
	.container-home .homethree .content {
		padding: 0.5rem 4px 1.5rem;
	}

	.container-home .home-photo {
		aspect-ratio: 4 / 5;
		max-height: 70vh;
	}

	.container-home .hometwo .container {
		clip-path: ellipse(48% 46% at 50% 50%);
	}

	.container-home .hometwo img {
		aspect-ratio: 1 / 1;
		width: 100%;
		object-fit: cover;
	}

	.container-home .row.mobilecdir {
		margin-bottom: 0;
	}

	.container-home .homefour h2 {
		font-size: 3rem;
	}

	.container-home article.yacht-card.col-sm-4.col-lg-4 {
		margin-top: 0;
		margin-bottom: 2.5rem;
	}

	.container-home .yacht-card__inner {
		padding-bottom: 75%;
	}

	.container-home .marquee-wrap {
		margin-top: 24px;
		margin-bottom: 24px;
	}

	.container-home .homefive {
		margin-top: 2rem;
	}

	.container-home .contactdev1 h3 {
		font-size: 1.6rem;
	}

	.container-home .col-md-6.contactdev2 {
		font-size: 1.125rem;
	}

	/* The fixed ESPA banner covers too much of a phone screen at 150px */
	img.espafixpos {
		max-width: 120px;
	}

	/* Bigger tap targets for phone and e-mail */
	.container-home .contactdev2 a {
		padding: 0.6rem 0;
	}
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	.marquee {
		animation: none !important;
	}

	[data-aos] {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}

	.yacht-card__inner img,
	.hero-toggle {
		transition: none;
	}
}
