/* ==========================================================================
   LONDOF Housing — brand: teal key logo + black type
   ========================================================================== */

:root {
	--teal: #2a9d8f;        /* logo teal — decorative / accents */
	--teal-deep: #1d7a6f;   /* AA contrast with white text */
	--teal-dark: #124e47;
	--tint: #eef7f5;
	--ink: #14181a;
	--ink-soft: #55605f;
	--white: #fff;
	--line: rgba(20, 24, 26, .1);
	--radius: 20px;
	--shadow: 0 24px 60px -28px rgba(18, 78, 71, .35);
	--font-display: "Fraunces", Georgia, serif;
	--font-body: "Inter", system-ui, -apple-system, sans-serif;
	--ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }

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

img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

.container { width: min(1160px, 92vw); margin-inline: auto; }

.eyebrow {
	text-transform: uppercase;
	letter-spacing: .22em;
	font-size: .75rem;
	font-weight: 700;
	color: var(--teal-deep);
	margin-bottom: .9rem;
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: .9rem 1.8rem;
	border-radius: 999px;
	font-weight: 600;
	font-size: .95rem;
	text-decoration: none;
	border: 1.5px solid transparent;
	cursor: pointer;
	transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--teal-deep); color: var(--white); box-shadow: 0 12px 26px -14px var(--teal-deep); }
.btn--primary:hover { background: var(--teal-dark); }
.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--white); }
.btn--sm { padding: .6rem 1.2rem; font-size: .88rem; }

/* Header */
.site-header {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 100;
	background: var(--white);
	border-bottom: 1px solid var(--line);
}
.nav {
	width: min(1160px, 92vw);
	margin-inline: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 5rem;
}
.nav__brand img { height: 3.3rem; width: auto; mix-blend-mode: multiply; }
.nav__menu { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav__link {
	font-size: .92rem;
	font-weight: 500;
	text-decoration: none;
	color: var(--ink-soft);
	padding-block: .3rem;
	border-bottom: 2px solid transparent;
	transition: color .25s, border-color .25s;
}
.nav__link:hover, .nav__link.is-active { color: var(--teal-deep); border-color: var(--teal); }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: .6rem; cursor: pointer; }
.nav__toggle span { width: 24px; height: 2px; background: var(--ink); transition: transform .3s var(--ease), opacity .3s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
	min-height: 100vh;
	min-height: 100svh;
	display: grid;
	align-items: center;
	padding: 7.5rem 0 3rem;
	background:
		radial-gradient(900px 500px at 90% 10%, rgba(42, 157, 143, .16), transparent 65%),
		var(--white);
}
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(2rem, 6vw, 5rem); }
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); text-wrap: balance; margin-bottom: 1.2rem; }
.hero h1 em { font-style: italic; color: var(--teal-deep); }
.hero__lead { font-size: clamp(1rem, 1.5vw, 1.2rem); color: var(--ink-soft); max-width: 34rem; margin-bottom: 2.2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero__media img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: 200px 200px var(--radius) var(--radius);
	box-shadow: var(--shadow);
	background: var(--tint);
}

/* Sections */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section--tint { background: var(--tint); }
.section__head { max-width: 44rem; margin: 0 auto clamp(2.2rem, 5vw, 3.8rem); text-align: center; }
.section__head h2, .contact h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); text-wrap: balance; }
.section__sub { color: var(--ink-soft); font-size: 1.05rem; }

/* Villa */
.villa {
	display: block;
	background: var(--white);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
}
.villa + .villa { margin-top: 2rem; }
.villa__body { padding: clamp(1.6rem, 4vw, 3rem); max-width: 56rem; margin-inline: auto; display: flex; flex-direction: column; }
.villa__body h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: .3rem; }
.villa__loc { color: var(--teal-deep); font-weight: 600; font-size: .92rem; }
.villa__body p:not(.villa__loc) { color: var(--ink-soft); }
.villa__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: auto; padding-top: 1rem; }

.specs {
	list-style: none;
	margin: .4rem 0 1.4rem;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: .7rem;
}
.specs li { background: var(--tint); border-radius: 14px; padding: .8rem 1rem; font-size: .88rem; color: var(--ink-soft); }
.specs strong { font-family: var(--font-display); font-size: 1.4rem; color: var(--teal-deep); margin-right: .2rem; }

/* Carousel */
.carousel { position: relative; width: 100%; aspect-ratio: 16 / 10; max-height: min(640px, 75vh); overflow: hidden; background: var(--tint); }
.carousel img.fit-cover { object-fit: cover; }
.carousel__count { position: absolute; right: 1rem; bottom: 1rem; z-index: 2; background: rgba(20, 24, 26, .65); color: var(--white); font-size: .8rem; font-weight: 600; padding: .25rem .75rem; border-radius: 999px; }
.carousel__bg {
	position: absolute; inset: -30px;
	background-size: cover; background-position: center;
	filter: blur(28px) brightness(.9) saturate(1.1);
}
.carousel img {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	object-fit: contain;
	opacity: 0;
	transition: opacity .5s var(--ease);
	cursor: zoom-in;
}
.carousel img.is-current { opacity: 1; }
html:not(.js) .carousel img:first-of-type { opacity: 1; }
.carousel img[hidden] { display: block; }
.carousel__btn {
	position: absolute; top: 50%; translate: 0 -50%; z-index: 2;
	width: 40px; height: 40px;
	border: 0; border-radius: 50%;
	background: rgba(255, 255, 255, .9);
	color: var(--ink);
	font-size: 1.5rem; line-height: 1;
	cursor: pointer;
	display: grid; place-items: center;
	transition: background .25s, transform .25s;
}
.carousel__btn:hover { background: var(--white); transform: scale(1.08); }
.carousel__btn--prev { left: .9rem; }
.carousel__btn--next { right: .9rem; }
.carousel__dots { display: none; }
.carousel__dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .6); transition: background .3s, transform .3s; }
.carousel__dots i.is-current { background: var(--white); transform: scale(1.3); }

/* Features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 1.6rem; }
.feature { text-align: center; padding: 1rem 1.2rem; }
.feature__icon {
	width: 60px; height: 60px; margin: 0 auto 1.2rem;
	border-radius: 50%;
	background: var(--tint);
	display: grid; place-items: center;
}
.feature__icon svg { width: 28px; height: 28px; fill: var(--teal-deep); }
.feature h3 { font-size: 1.25rem; }
.feature p { color: var(--ink-soft); font-size: .96rem; margin: 0; }

/* Testimonials */
.testimonials {
	display: flex;
	gap: 1.4rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding: .4rem .2rem 1.2rem;
}
.testimonials::-webkit-scrollbar { display: none; }
.reviews__nav { display: flex; justify-content: center; gap: .8rem; margin-top: .6rem; }
.reviews__btn {
	width: 46px; height: 46px; border-radius: 50%;
	border: 1.5px solid var(--teal-deep); background: transparent; color: var(--teal-deep);
	font-size: 1.5rem; line-height: 1; cursor: pointer;
	display: grid; place-items: center;
	transition: background .25s, color .25s;
}
.reviews__btn:hover { background: var(--teal-deep); color: var(--white); }
.testimonial { flex: 0 0 calc((100% - 2.8rem) / 3); scroll-snap-align: start; margin: 0; background: var(--white); border-radius: var(--radius); padding: 2rem 1.8rem; box-shadow: 0 8px 30px -20px rgba(18, 78, 71, .4); }
.testimonial p { font-family: var(--font-display); font-size: 1.1rem; line-height: 1.55; }
.testimonial { display: flex; flex-direction: column; }
.testimonial p { margin-bottom: 1.4rem; }
.testimonial footer { margin-top: auto; text-align: right; color: var(--teal-deep); font-weight: 600; font-size: .92rem; }

/* Contact */
.section--brand { background: var(--teal-deep); color: var(--white); }
.section--brand .eyebrow { color: rgba(255, 255, 255, .75); }
.section--brand .section__sub { color: rgba(255, 255, 255, .85); }
.contact { text-align: center; max-width: 40rem; }
.contact__phone {
	display: inline-flex; align-items: center; gap: .8rem;
	font-family: var(--font-display);
	font-size: clamp(1.8rem, 5vw, 2.8rem);
	font-weight: 600;
	text-decoration: none;
	margin: .6rem 0 1.6rem;
}
.contact__phone svg { width: 32px; height: 32px; fill: currentColor; }
.contact__addr { color: rgba(255, 255, 255, .85); }
.contact__addr a { text-underline-offset: 4px; }
.contact__social { display: flex; justify-content: center; gap: .9rem; margin-top: 1.6rem; }
.contact__social a {
	width: 48px; height: 48px; border-radius: 50%;
	background: rgba(255, 255, 255, .14);
	display: grid; place-items: center;
	transition: background .25s, transform .25s var(--ease);
}
.contact__social a:hover { background: rgba(255, 255, 255, .28); transform: translateY(-3px); }
.contact__social svg { width: 20px; height: 20px; fill: var(--white); }

/* Footer */
.footer { background: var(--ink); color: rgba(255, 255, 255, .7); padding: 1.8rem 0; text-align: center; font-size: .88rem; }
.footer p { margin: 0; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(10, 18, 17, .94); display: grid; place-items: center; padding: 3rem; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1100px, 90vw); max-height: 84vh; border-radius: 12px; }
.lightbox__close, .lightbox__nav {
	position: absolute; border: 0;
	background: rgba(255, 255, 255, .14); color: var(--white);
	width: 46px; height: 46px; border-radius: 50%;
	font-size: 1.6rem; line-height: 1; cursor: pointer;
	display: grid; place-items: center;
	transition: background .25s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, .3); }
.lightbox__close { top: 1.4rem; right: 1.4rem; }
.lightbox__nav--prev { left: 1.4rem; top: 50%; translate: 0 -50%; }
.lightbox__nav--next { right: 1.4rem; top: 50%; translate: 0 -50%; }

/* Reveal (only hidden when JS is running) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.js .reveal { opacity: 1; transform: none; transition: none; }
}

/* Responsive */
@media (max-width: 900px) {
	.hero { padding-top: 7.5rem; }
	.hero__inner { grid-template-columns: 1fr; text-align: center; }
	.hero__lead { margin-inline: auto; }
	.hero__actions { justify-content: center; }
	.hero__media { max-width: 26rem; margin-inline: auto; }
	.carousel { aspect-ratio: 4 / 3; }
	.specs { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
	.nav__toggle { display: flex; z-index: 20; }
	.nav__menu {
		position: fixed; inset: 0; z-index: 10;
		flex-direction: column; justify-content: center; gap: 1.6rem;
		background: rgba(255, 255, 255, .98);
		opacity: 0; visibility: hidden;
		transition: opacity .3s var(--ease), visibility .3s;
	}
	.nav__menu.is-open { opacity: 1; visibility: visible; }
	.nav__link { font-size: 1.25rem; }
}

/* Amenities */
.amenities { list-style: none; margin: 0 0 1.4rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.amenities li { font-size: .8rem; font-weight: 600; color: var(--teal-deep); border: 1px solid rgba(29, 122, 111, .3); border-radius: 999px; padding: .3rem .8rem; }

@media (max-width: 900px) { .testimonial { flex-basis: calc((100% - 1.4rem) / 2); } }
@media (max-width: 600px) { .testimonial { flex-basis: 100%; } }

.reviews__nav[hidden] { display: none; }
.reviews__more { text-align: center; margin: 1.2rem 0 0; font-size: .95rem; }
.reviews__more a { color: var(--teal-deep); font-weight: 600; text-underline-offset: 4px; }

.hero__media img { height: auto; aspect-ratio: 5 / 4; object-position: 20% 50%; }

/* Toast */
.toast {
	position: fixed; left: 50%; bottom: 1.6rem; z-index: 300;
	transform: translate(-50%, 20px);
	background: var(--ink); color: var(--white);
	padding: .8rem 1.4rem; border-radius: 999px;
	font-size: .92rem; font-weight: 600;
	opacity: 0; pointer-events: none;
	transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
