/* Talal Hotel — modern theme */

:root {
	--ink: #1a1714;
	--ink-soft: #5b544c;
	--ink-faint: #8a8278;
	--paper: #fbf8f3;
	--paper-tint: #f3ede3;
	--card: #ffffff;
	--line: #e6ded2;
	--accent: #f2b705;
	--accent-strong: #d99e00;
	--accent-ink: #1a1714;
	--night: #14110f;
	--radius: 18px;
	--radius-sm: 10px;
	--shadow: 0 1px 2px rgba(26, 23, 20, .05), 0 8px 24px rgba(26, 23, 20, .06);
	--shadow-lg: 0 2px 4px rgba(26, 23, 20, .06), 0 20px 48px rgba(26, 23, 20, .12);
	--serif: 'Fraunces', Georgia, serif;
	--sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--nav-h: 68px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 400 16px/1.65 var(--sans);
	-webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.12; font-weight: 600; }
h1, h2 { font-family: var(--serif); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.1rem; letter-spacing: -0.01em; }
p { margin: 0; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }

.eyebrow {
	font-size: .78rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--accent-strong);
	margin-bottom: 14px;
}
.eyebrow--light { color: var(--accent); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 22px;
	border-radius: 999px;
	font: 600 .95rem/1 var(--sans);
	text-decoration: none;
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease, color .2s ease;
	white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn:hover { transform: translateY(-1px); }
.btn--accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 18px rgba(242, 183, 5, .35); }
.btn--accent:hover { background: #ffc61a; }
.btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .45); backdrop-filter: blur(6px); background: rgba(255, 255, 255, .06); }
.btn--ghost:hover { background: rgba(255, 255, 255, .16); }
.btn--sm { padding: 10px 18px; font-size: .9rem; }
.btn--lg { padding: 18px 30px; font-size: 1.1rem; }

/* Offer bar */
.offer {
	position: relative;
	background: var(--night);
	color: #e9e3d9;
	font-size: .9rem;
	text-align: center;
	padding: 10px 48px;
}
.offer strong { color: var(--accent); font-weight: 600; }
.offer__close {
	position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
	width: 32px; height: 32px; border: 0; border-radius: 50%;
	background: transparent; color: #e9e3d9; font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.offer__close:hover { background: rgba(255, 255, 255, .1); }
.offer.is-hidden { display: none; }

/* Nav */
.nav {
	position: sticky; top: 0; z-index: 50;
	height: var(--nav-h);
	background: rgba(251, 248, 243, .82);
	backdrop-filter: saturate(160%) blur(14px);
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	border-bottom: 1px solid transparent;
	transition: border-color .3s ease, box-shadow .3s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(26, 23, 20, .05); }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; width: min(1160px, 100% - 40px); margin-inline: auto; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark {
	display: grid; place-items: center;
	width: 36px; height: 36px; border-radius: 10px;
	background: var(--ink); color: var(--accent);
	font: 600 1.15rem/1 var(--serif);
}
.brand__name { font: 600 1.2rem/1 var(--serif); letter-spacing: -0.01em; }

.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__links a:not(.btn) {
	padding: 8px 14px; border-radius: 999px;
	font-size: .95rem; font-weight: 500; color: var(--ink-soft); text-decoration: none;
	transition: color .2s ease, background-color .2s ease;
}
.nav__links a:not(.btn):hover, .nav__links a.is-active { color: var(--ink); background: var(--paper-tint); }
.nav__links .btn { margin-left: 8px; }

.nav__toggle { display: none; }

@media (max-width: 760px) {
	.nav__toggle {
		display: grid; place-content: center; gap: 6px;
		width: 44px; height: 44px; border: 0; border-radius: 12px;
		background: transparent; cursor: pointer;
	}
	.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s ease; }
	.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
	.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

	.nav__links {
		position: absolute; left: 0; right: 0; top: var(--nav-h);
		flex-direction: column; align-items: stretch; gap: 2px;
		padding: 12px 16px 20px;
		background: var(--paper);
		border-bottom: 1px solid var(--line);
		box-shadow: 0 16px 30px rgba(26, 23, 20, .08);
		opacity: 0; visibility: hidden; transform: translateY(-8px);
		transition: opacity .2s ease, transform .2s ease, visibility .2s;
	}
	.nav__links.is-open { opacity: 1; visibility: visible; transform: none; }
	.nav__links a:not(.btn) { padding: 12px 14px; font-size: 1rem; }
	.nav__links .btn { margin: 8px 0 0; justify-content: center; }
}

/* Hero */
.hero {
	position: relative;
	min-height: min(88vh, 760px);
	display: flex; align-items: flex-end;
	color: #fff;
	overflow: hidden;
	isolation: isolate;
}
.hero__media {
	position: absolute; inset: 0; z-index: -2;
	background-size: cover; background-position: center 30%;
	transform: scale(1.04);
	animation: heroZoom 18s ease-out forwards;
}
.hero::after {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background:
		linear-gradient(180deg, rgba(20, 17, 15, .35) 0%, rgba(20, 17, 15, .25) 35%, rgba(20, 17, 15, .9) 100%),
		linear-gradient(90deg, rgba(20, 17, 15, .8) 0%, rgba(20, 17, 15, .45) 45%, rgba(20, 17, 15, 0) 80%);
}
@keyframes heroZoom { to { transform: scale(1); } }

.hero__content { padding: 120px 0 56px; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); max-width: 14ch; font-weight: 600; }
.hero__lead { margin-top: 18px; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: rgba(255, 255, 255, .85); max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero__facts {
	display: flex; flex-wrap: wrap; gap: 14px 40px;
	list-style: none; margin: 48px 0 0; padding: 22px 0 0;
	border-top: 1px solid rgba(255, 255, 255, .2);
}
.hero__facts li { display: flex; flex-direction: column; }
.hero__facts strong { font: 600 1.5rem/1.2 var(--serif); }
.hero__facts span { font-size: .85rem; color: rgba(255, 255, 255, .7); }

/* Sections */
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section--tint { background: var(--paper-tint); }
.section__head { max-width: 640px; margin-bottom: 44px; }
.section__head p:not(.eyebrow) { margin-top: 14px; color: var(--ink-soft); font-size: 1.05rem; }

/* About */
.about { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.about__intro h2 { margin-bottom: 22px; }
.about__intro p:not(.eyebrow) { color: var(--ink-soft); font-size: 1.05rem; }
.about__intro p + p { margin-top: 14px; }
.about__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.feature {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 24px;
	transition: transform .25s ease, box-shadow .25s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature__icon {
	display: grid; place-items: center;
	width: 44px; height: 44px; border-radius: 12px;
	background: #fff4d1; margin-bottom: 16px;
}
.feature__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { margin-bottom: 6px; }
.feature p { color: var(--ink-soft); font-size: .95rem; line-height: 1.55; }

@media (max-width: 900px) {
	.about { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
	.about__cards { grid-template-columns: 1fr; }
}

/* Rooms */
.rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }

.room {
	display: flex; flex-direction: column;
	background: var(--card);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
	transition: transform .3s ease, box-shadow .3s ease;
}
.room:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.room__media {
	position: relative; display: block; width: 100%;
	padding: 0; border: 0; background: var(--line); cursor: zoom-in;
	aspect-ratio: 500 / 330; overflow: hidden;
}
.room__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.room:hover .room__media img { transform: scale(1.05); }
.room__count {
	position: absolute; left: 12px; bottom: 12px;
	padding: 5px 10px; border-radius: 999px;
	background: rgba(20, 17, 15, .7); color: #fff;
	font-size: .78rem; font-weight: 500;
	backdrop-filter: blur(4px);
}

.room__body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.room__body h3 { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; }
.room__body > p { color: var(--ink-soft); font-size: .95rem; }

.tag {
	align-self: flex-start;
	font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
	padding: 4px 10px; border-radius: 999px;
	background: var(--paper-tint); color: var(--ink-soft);
	margin-bottom: 6px;
}
.tag--accent { background: #fff4d1; color: #8a6400; }

.price { margin-top: auto !important; padding-top: 14px; color: var(--ink-faint) !important; font-size: .9rem !important; }
.price strong { font: 600 1.6rem/1 var(--serif); color: var(--ink); margin-right: 2px; }

.room--cta { background: var(--night); color: #fff; box-shadow: none; }
.room--cta:hover { transform: none; box-shadow: none; }
.room--cta .room__body { justify-content: center; padding: 32px; gap: 14px; }
.room--cta h3 { font-size: 1.7rem; }
.room--cta p { color: rgba(255, 255, 255, .75) !important; font-size: 1rem !important; }
.room--cta p strong { color: var(--accent); }
.room--cta .btn { align-self: flex-start; margin-top: 8px; }

/* Facilities */
.facilities {
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
	margin: 0;
	border-top: 1px solid var(--line);
}
.facility { padding: 26px 28px 26px 0; border-bottom: 1px solid var(--line); }
.facility--wide { grid-column: 1 / -1; }
.facility dt { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 8px; }
.facility dd { margin: 0; font-size: 1.02rem; color: var(--ink); }

.chips { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
	padding: 7px 14px; border-radius: 999px;
	background: var(--card); border: 1px solid var(--line);
	font-size: .92rem;
}

@media (max-width: 900px) { .facilities { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .facilities { grid-template-columns: 1fr; } .facility { padding-right: 0; } }

/* Booking band */
.band {
	background:
		radial-gradient(900px 400px at 85% 0%, rgba(242, 183, 5, .18), transparent 60%),
		var(--night);
	color: #fff;
	padding: clamp(64px, 8vw, 96px) 0;
}
.band__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.band h2 { max-width: 18ch; }
.band p:not(.eyebrow) { margin-top: 14px; color: rgba(255, 255, 255, .72); font-size: 1.05rem; max-width: 48ch; }

/* Contact */
.contact { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(40px, 6vw, 72px); align-items: center; }
.contact h2 { margin-bottom: 22px; }
.contact address { font-style: normal; font-size: 1.1rem; line-height: 1.6; margin-bottom: 28px; }
.contact__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.contact__list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact__list span { color: var(--ink-faint); font-size: .92rem; }
.contact__list a { font-weight: 500; text-decoration: none; }
.contact__list a:hover { color: var(--accent-strong); }

.contact__map {
	position: relative; display: block;
	border-radius: var(--radius); overflow: hidden;
	box-shadow: var(--shadow-lg);
	border: 1px solid var(--line);
}
.contact__map img { width: 100%; transition: transform .6s ease; }
.contact__map:hover img { transform: scale(1.03); }
.contact__map span {
	position: absolute; right: 14px; bottom: 14px;
	padding: 9px 16px; border-radius: 999px;
	background: var(--card); box-shadow: var(--shadow);
	font-size: .88rem; font-weight: 600; text-decoration: none;
}

@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: .9rem; color: var(--ink-faint); }
.footer__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; }
.footer a { color: var(--ink-soft); }
.footer a:hover { color: var(--ink); }
.c, .c a { color: transparent !important; cursor: default; font-size: 1px; line-height: 1px; }

/* Lightbox */
.lightbox {
	position: fixed; inset: 0; z-index: 100;
	display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
	padding: 24px;
	background: rgba(12, 10, 9, .92);
	backdrop-filter: blur(8px);
	animation: fadeIn .2s ease;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; min-width: 0; }
.lightbox img { max-height: 78vh; width: auto; max-width: 100%; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lightbox figcaption { color: rgba(255, 255, 255, .8); font-size: .95rem; text-align: center; }
.lightbox__close, .lightbox__nav {
	border: 0; cursor: pointer; color: #fff;
	background: rgba(255, 255, 255, .1);
	border-radius: 50%; width: 48px; height: 48px;
	font-size: 1.8rem; line-height: 1;
	transition: background-color .2s ease;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, .22); }
.lightbox__close { position: absolute; top: 18px; right: 18px; }
.lightbox__nav[hidden] { visibility: hidden; display: block; }
@keyframes fadeIn { from { opacity: 0; } }

@media (max-width: 600px) {
	.lightbox { grid-template-columns: 1fr; padding: 64px 12px 24px; }
	.lightbox__nav { position: absolute; bottom: 24px; }
	.lightbox__nav--prev { left: calc(50% - 60px); }
	.lightbox__nav--next { right: calc(50% - 60px); }
	.lightbox figure { padding-bottom: 72px; }
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.reveal { opacity: 1; transform: none; }
}
