:root {
	--ocean: #0b3d5c;
	--ocean-deep: #072a40;
	--sea: #1c7c9b;
	--sea-light: #e6f2f6;
	--sand: #f7f3ec;
	--ink: #1f2933;
	--muted: #5c6b78;
	--line: #e4e9ee;
	--white: #fff;
	--radius: 18px;
	--shadow: 0 1px 2px rgba(11, 61, 92, .06), 0 12px 32px rgba(11, 61, 92, .10);
	--font-display: "Fraunces", Georgia, serif;
	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 80px;
}

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 18px;
	line-height: 1.65;
	color: var(--ink);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
}

img {
	display: block;
	max-width: 100%;
}

a {
	color: var(--sea);
}

h1,
h2,
h3 {
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.15;
	margin: 0;
	color: var(--ocean-deep);
}

h2 {
	font-size: clamp(1.9rem, 1.4rem + 2vw, 2.75rem);
}

h3 {
	font-size: 1.35rem;
}

p {
	margin: 0;
}

.container {
	width: min(1120px, 100% - 2rem);
	margin-inline: auto;
}

/* Nav */
.nav {
	position: sticky;
	top: 0;
	z-index: 10;
	background: rgba(255, 255, 255, .86);
	backdrop-filter: saturate(160%) blur(12px);
	-webkit-backdrop-filter: saturate(160%) blur(12px);
	border-bottom: 1px solid var(--line);
}

.nav .container {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	height: 64px;
}

.brand {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1.25rem;
	color: var(--ocean-deep);
	text-decoration: none;
	white-space: nowrap;
}

.nav-links {
	display: flex;
	gap: 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav-links a {
	color: var(--muted);
	text-decoration: none;
	font-weight: 500;
	font-size: .95rem;
}

.nav-links a:hover {
	color: var(--ocean);
}

.nav-mobile-toggle,
.nav-links-mobile,
.site-whatsapp-fixed {
	display: none;
}

.whatsapp-hint {
	margin-top: .5rem;
	color: var(--muted);
	font-size: .95rem;
	line-height: 1.5;
}

:focus-visible {
	outline: 3px solid #075c63;
	outline-offset: 3px;
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	min-height: 44px;
	padding: .75rem 1.25rem;
	border-radius: 999px;
	font-weight: 600;
	font-size: .95rem;
	text-decoration: none;
	border: 1.5px solid transparent;
	cursor: pointer;
	font-family: inherit;
	transition: transform .15s ease, background .15s ease, color .15s ease;
}

.btn:hover {
	transform: translateY(-1px);
}

.btn-primary {
	background: var(--ocean);
	color: var(--white);
}

.btn-primary:hover {
	background: var(--ocean-deep);
}

.btn-light {
	background: var(--white);
	color: var(--ocean-deep);
}

.btn-outline {
	background: transparent;
	color: var(--ocean);
	border-color: var(--ocean);
}

.btn-outline:hover {
	background: var(--ocean);
	color: var(--white);
}

.btn-whatsapp {
	background: #25d366;
	color: #fff;
}

.btn-whatsapp:hover {
	background: #1ebe5a;
}

/* Hero */
.hero {
	--horizon: 54%;
	--sand: 24%;
	--wash: 26px;
	position: relative;
	min-height: min(88vh, 780px);
	display: grid;
	place-items: start center;
	text-align: center;
	color: var(--white);
	background: linear-gradient(180deg, #2c7ad6 0%, #4b92de 35%, #86b9e8 50%, #c4ddf3 54%);
	overflow: hidden;
	isolation: isolate;
}

.scene {
	position: absolute;
	inset: 0;
	z-index: -1;
}

.clouds {
	position: absolute;
	top: 6%;
	left: -4%;
	width: min(48vw, 620px);
	opacity: .9;
	animation: drift 60s ease-in-out infinite alternate;
}

/* Seagulls: small flocks crossing the sky, wings flapping */
.gulls {
	position: absolute;
	top: 16%;
	left: 0;
	width: 130px;
	height: 50px;
	animation: fly 48s linear infinite;
}

.gulls-2 {
	top: 30%;
	scale: .7;
	animation-duration: 66s;
	animation-delay: -30s;
}

.gull {
	position: absolute;
	width: 40px;
	animation: flap .8s ease-in-out infinite alternate;
}

.gull:nth-child(2) {
	left: 48px;
	top: -12px;
	width: 32px;
	animation-delay: -.3s;
}

.gull:nth-child(3) {
	left: 88px;
	top: 18px;
	width: 34px;
	animation-delay: -.55s;
}

.sea {
	position: absolute;
	inset: var(--horizon) 0 0;
	background: linear-gradient(180deg, #6fd3d6 0%, #2fb8c4 30%);
}

.mountains {
	position: absolute;
	left: 0;
	bottom: calc(100% - var(--horizon) - 1px);
	width: min(36vw, 460px);
}

.headland {
	position: absolute;
	right: -1%;
	bottom: calc(100% - var(--horizon) - 3%);
	width: min(50vw, 720px);
}

.boat {
	position: absolute;
	top: calc(var(--horizon) - 47px);
	left: 0;
	width: 60px;
	animation: sail 120s -40s linear infinite;
}

.boat svg {
	display: block;
}

.breaker {
	position: absolute;
	left: -5%;
	top: calc(var(--horizon) + 9%);
	width: 75%;
	height: 40px;
	animation: roll 7s ease-in-out infinite;
}

.fish {
	position: absolute;
	width: 36px;
	opacity: 0;
	animation: jump 9s ease-in-out infinite;
}

.fish-1 {
	left: 14%;
	top: calc(var(--horizon) + 10%);
}

.fish-2 {
	left: 33%;
	top: calc(var(--horizon) + 6%);
	width: 26px;
	animation-delay: -3s;
}

.fish-3 {
	left: 68%;
	top: calc(var(--horizon) + 9%);
	animation-delay: -6.5s;
}

/* Shark leaps now and then; whale surfaces, blows and dives (hidden when motion is reduced) */
.shark {
	position: absolute;
	left: 6%;
	top: calc(var(--horizon) + 13%);
	width: 76px;
	opacity: 0;
	animation: leap 19s ease-in-out 4s infinite;
}

.whale {
	position: absolute;
	left: 20%;
	bottom: calc(100% - var(--horizon) - 4%);
	width: 92px;
}

.whale-body {
	transform: translateY(34px);
	animation: surface 29s ease-in-out 8s infinite;
}

.whale-spout,
.whale-wake {
	opacity: 0;
	transform-box: fill-box;
	transform-origin: bottom;
	animation: blow 29s ease-out 8s infinite;
}

.whale-wake {
	animation-name: wake;
}

.sand {
	position: absolute;
	inset: auto -2% -25%;
	height: calc(var(--sand) + 25%);
	background: linear-gradient(180deg, #e2c896 0%, #f1dfb8 25%, #f7ead0 100%);
	transform: skewY(-2.5deg);
	transform-origin: left top;
}

.wave {
	position: absolute;
	left: 0;
	top: -50px;
	width: 100%;
	height: 72px;
	animation: wash 6s ease-in-out infinite;
}

.wave path {
	fill: #2fb8c4;
	stroke: rgba(255, 255, 255, .85);
	stroke-width: 5;
}

.wave-back {
	opacity: .5;
	animation-delay: -3s;
}

.wave-back path {
	fill: #8fe0e0;
}

.hero .container {
	padding: 5rem 0 4rem;
	animation: rise .9s ease both;
}

.hero h1 {
	color: var(--white);
	text-shadow: 0 2px 18px rgba(7, 42, 64, .35);
	font-size: clamp(2.8rem, 2rem + 5vw, 5.5rem);
	font-weight: 500;
	letter-spacing: -.01em;
	margin-bottom: 1rem;
}

.hero p {
	font-size: clamp(1.05rem, 1rem + .5vw, 1.3rem);
	text-shadow: 0 1px 10px rgba(7, 42, 64, .45);
	max-width: 36ch;
	margin-inline: auto;
}

.hero .actions {
	margin-top: 2rem;
	display: flex;
	gap: .75rem;
	justify-content: center;
	flex-wrap: wrap;
}

@keyframes sail {
	from {
		transform: translateX(-120px);
	}

	to {
		transform: translateX(100vw);
	}

	.site-whatsapp-fixed {
		position: fixed;
		right: 12px;
		bottom: calc(12px + env(safe-area-inset-bottom));
		z-index: 15;
		display: inline-flex;
		min-height: 48px;
		align-items: center;
		justify-content: center;
		border: 2px solid #fff;
		border-radius: 999px;
		background: #126b39;
		box-shadow: 0 4px 18px #102c2540;
		color: #fff;
		padding: .65rem 1rem;
		font-weight: 700;
		text-decoration: none;
	}

	.whatsapp-hint { font-size: 1rem; }
}

@keyframes drift {
	to {
		transform: translateX(8vw);
	}
}

@keyframes roll {
	0% {
		opacity: 0;
		transform: translateY(-12px);
	}

	40% {
		opacity: 1;
	}

	100% {
		opacity: 0;
		transform: translateY(28px);
	}
}

@keyframes fly {
	from {
		transform: translate(-120px, 0);
	}

	50% {
		transform: translate(50vw, -18px);
	}

	to {
		transform: translate(100vw, 8px);
	}
}

@keyframes flap {
	to {
		transform: scaleY(.35) translateY(5px);
	}
}

@keyframes leap {
	0% {
		opacity: 0;
		transform: translate(0, 14px) rotate(-38deg);
	}

	1% {
		opacity: 1;
	}

	5% {
		transform: translate(70px, -60px) rotate(0);
	}

	9% {
		opacity: 1;
	}

	10%,
	100% {
		opacity: 0;
		transform: translate(140px, 14px) rotate(38deg);
	}
}

@keyframes surface {
	0%,
	100% {
		transform: translateY(34px);
	}

	5%,
	22% {
		transform: translateY(-9px);
	}

	27% {
		transform: translateY(34px);
	}
}

@keyframes blow {
	0%,
	8% {
		opacity: 0;
		transform: scaleY(0);
	}

	10% {
		opacity: 1;
		transform: scaleY(1);
	}

	14% {
		opacity: .8;
		transform: scaleY(1.1);
	}

	17%,
	100% {
		opacity: 0;
		transform: scaleY(.7);
	}
}

@keyframes wake {
	0%,
	100% {
		opacity: 0;
	}

	5%,
	22% {
		opacity: .7;
	}

	27% {
		opacity: 0;
	}
}

@keyframes jump {
	0% {
		opacity: 0;
		transform: translate(0, 0) rotate(-55deg);
	}

	2% {
		opacity: 1;
	}

	9% {
		transform: translate(28px, -46px) rotate(0);
	}

	16% {
		opacity: 1;
	}

	18%,
	100% {
		opacity: 0;
		transform: translate(56px, 0) rotate(55deg);
	}
}

@keyframes wash {
	50% {
		transform: translateY(var(--wash));
	}
}

@keyframes rise {
	from {
		opacity: 0;
		transform: translateY(16px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

/* Sections */
.section {
	padding: 5rem 0;
}

.section-alt {
	background: var(--sand);
}

.eyebrow {
	display: inline-block;
	font-size: .8rem;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--sea);
	margin-bottom: .75rem;
}

.lead {
	font-size: 1.1rem;
	color: var(--muted);
	max-width: 62ch;
}

.intro .container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
}

.intro .lead {
	margin-top: 1rem;
	font-size: 1rem;
}

.section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.5rem;
	margin-bottom: 2.5rem;
}

.section-head .lead {
	margin-top: .75rem;
}

.perks {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.perks li {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	padding: .45rem .9rem;
	border-radius: 999px;
	background: var(--sea-light);
	color: var(--ocean);
	font-size: .875rem;
	font-weight: 500;
	white-space: nowrap;
}

.perks svg {
	width: 16px;
	height: 16px;
	flex: none;
}

/* Cards */
.grid {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

@media (min-width: 900px) {
	#moradas-2 .grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.card {
	display: flex;
	flex-direction: column;
	color: inherit;
	text-decoration: none;
	background: var(--white);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
	transition: transform .2s ease, box-shadow .2s ease;
}

.card:hover {
	transform: translateY(-4px);
	box-shadow: 0 2px 4px rgba(11, 61, 92, .06), 0 20px 44px rgba(11, 61, 92, .16);
}

.card img {
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.card-body {
	display: flex;
	flex-direction: column;
	gap: .75rem;
	padding: 1.25rem 1.25rem 1.5rem;
	flex: 1;
}

.card-body p {
	color: var(--muted);
	font-size: .95rem;
	flex: 1;
}

.card .btn {
	align-self: flex-start;
	padding: .55rem 1.1rem;
	font-size: .9rem;
}

/* Apartment page */
.apartment {
	padding-top: 1.5rem;
}

.gallery {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
	grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
	gap: .6rem;
	height: min(62vh, 560px);
	border-radius: var(--radius);
	overflow: hidden;
}

.gallery a {
	display: block;
	min-height: 0;
	min-width: 0;
	overflow: hidden;
	background: var(--line);
}

.gallery a:first-child {
	grid-row: 1 / 3;
}

.gallery a:nth-child(n + 6) {
	display: none;
}

.gallery[data-count="4"] a:nth-child(4) {
	grid-column: 2 / 4;
}

.gallery img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .3s ease;
}

.gallery a:hover img {
	transform: scale(1.04);
}

.gallery-all {
	position: absolute;
	right: 1rem;
	bottom: 1rem;
	padding: .55rem 1rem;
	font-size: .875rem;
	box-shadow: var(--shadow);
}

.gallery-all svg {
	width: 18px;
	height: 18px;
}

.apartment-body {
	display: grid;
	gap: 3rem;
	grid-template-columns: 1fr 340px;
	align-items: start;
	padding: 2.5rem 0 5rem;
}

.apartment-body h1 {
	font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
	margin: .25rem 0 1rem;
}

.apartment-body h2 {
	font-size: 1.35rem;
	margin: 2.5rem 0 .75rem;
}

.apartment-body .perks {
	margin: 0 0 1.5rem;
}

.breadcrumb {
	font-size: .9rem;
	color: var(--muted);
}

.breadcrumb a {
	color: var(--muted);
	text-decoration: none;
}

.breadcrumb a:hover {
	color: var(--ocean);
}

.amenities {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: .5rem 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.amenities li {
	display: flex;
	align-items: center;
	gap: .6rem;
}

.amenities li::before {
	content: "";
	flex: none;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--sea-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c7c9b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.apartment-body aside {
	position: sticky;
	top: 88px;
}

/* Location */
.location {
	display: grid;
	gap: 2rem;
	grid-template-columns: 1fr 1fr 320px;
	align-items: start;
}

.place iframe {
	width: 100%;
	height: 260px;
	border: 0;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	margin-bottom: 1rem;
}

.place p {
	color: var(--muted);
	margin: .25rem 0 .5rem;
}

.place a {
	font-weight: 500;
	text-decoration: none;
}

.place a:hover {
	text-decoration: underline;
}

.contact {
	display: flex;
	flex-direction: column;
	gap: 1.75rem;
	padding: 2rem;
	border-radius: var(--radius);
	background: var(--sea-light);
}

.contact h3 {
	margin-bottom: .35rem;
}

.contact a {
	text-decoration: none;
	font-weight: 500;
}

.contact a:hover {
	text-decoration: underline;
}

.contact .btn {
	align-self: flex-start;
}

/* Footer */
.footer {
	background: var(--ocean-deep);
	color: rgba(255, 255, 255, .7);
	padding: 2.5rem 0;
	font-size: .9rem;
}

.footer .container {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 1rem;
}

.footer a {
	color: var(--white);
	text-decoration: none;
}

/* Lightbox */
.lightbox {
	border: 0;
	padding: 0;
	background: transparent;
	max-width: 100vw;
	max-height: 100vh;
	max-height: 100dvh;
	width: 100vw;
	height: 100vh;
	height: 100dvh;
	color: var(--white);
}

.lightbox::backdrop {
	background: rgba(4, 20, 31, .94);
}

.lightbox-frame {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 3.5rem 4rem;
}

.lightbox img {
	display: block;
	min-width: 0;
	min-height: 0;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	border-radius: 8px;
}

.lightbox button {
	position: absolute;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .12);
	color: var(--white);
	cursor: pointer;
	transition: background .15s;
}

.lightbox button:hover {
	background: rgba(255, 255, 255, .28);
}

.lightbox svg {
	width: 22px;
	height: 22px;
}

.lightbox .close {
	top: 1rem;
	right: 1rem;
}

.lightbox .prev,
.lightbox .next {
	top: 50%;
	transform: translateY(-50%);
}

.lightbox .prev {
	left: 1rem;
}

.lightbox .next {
	right: 1rem;
}

.lightbox .counter {
	position: absolute;
	top: 1.5rem;
	left: 50%;
	transform: translateX(-50%);
	font-size: .85rem;
	letter-spacing: .05em;
	opacity: .8;
}

@media (max-width: 760px) {
	.nav-links {
		display: none;
	}

	.nav-mobile-toggle {
		display: inline-flex;
		min-height: 44px;
		align-items: center;
		justify-content: center;
		border: 1px solid var(--ocean);
		border-radius: 999px;
		background: var(--white);
		color: var(--ocean);
		padding: .5rem 1rem;
		font: inherit;
		font-weight: 600;
	}

	.nav-links-mobile:not([hidden]) {
		position: absolute;
		top: calc(100% + .4rem);
		right: 1rem;
		z-index: 20;
		display: grid;
		gap: .25rem;
		min-width: min(18rem, calc(100vw - 2rem));
		margin: 0;
		border: 1px solid var(--line);
		border-radius: 14px;
		background: var(--white);
		padding: .5rem;
		box-shadow: var(--shadow);
	}

	.nav-links-mobile a {
		display: flex;
		min-height: 44px;
		align-items: center;
		border-radius: 8px;
		padding: .5rem .75rem;
		color: var(--ocean-deep);
		text-decoration: none;
	}

	.nav-links-mobile a:hover,
	.nav-links-mobile a:focus-visible {
		background: var(--sea-light);
	}

	.hero {
		--horizon: 62%;
		--sand: 20%;
		--wash: 16px;
	}

	.wave {
		top: -36px;
		height: 50px;
	}

	.mountains {
		width: 55vw;
	}

	.headland {
		width: 55vw;
	}

	.shark {
		width: 52px;
	}

	.whale {
		width: 64px;
	}

	.boat {
		width: 44px;
		top: calc(var(--horizon) - 34px);
	}

	.section {
		padding: 3.5rem 0;
	}

	.location,
	.intro .container,
	.apartment-body {
		grid-template-columns: 1fr;
	}

	.apartment-body aside {
		position: static;
	}

	.gallery {
		display: flex;
		height: 58vw;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		border-radius: 0;
		width: 100%;
		scrollbar-width: none;
	}

	.gallery::-webkit-scrollbar {
		display: none;
	}

	.gallery a,
	.gallery a:nth-child(n + 6) {
		display: block;
		flex: 0 0 88%;
		scroll-snap-align: center;
		border-radius: 12px;
	}

	.gallery-all {
		position: absolute;
		right: 12px;
		bottom: 12px;
		z-index: 3;
		display: inline-flex;
		min-height: 44px;
	}

	.gallery-all svg {
		width: 20px;
		height: 20px;
	}

	.lightbox-frame {
		padding: 4rem .5rem;
	}

	.lightbox .prev,
	.lightbox .next {
		top: auto;
		bottom: 1rem;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {

	html {
		scroll-behavior: auto;
	}

	.hero .container,
	.hero .scene *,
	.card,
	.btn {
		animation: none;
		transition: none;
	}
}
