/*
 * Shared shell parity with the approved tamara-beach-resort-ar reference.
 *
 * This file loads after the legacy theme styles. Keep shared component values
 * aligned with app/globals.css; route-specific parity belongs in later phases.
 */

:root {
	--navy-950: #2d2d2d;
	--navy-900: #408078;
	--navy-800: #408078;
	--teal-700: #408078;
	--teal-600: #408078;
	--teal-100: #cad7e0;
	--sand-300: #b4975a;
	--sand-200: #cad7e0;
	--sand-100: #fbf9f4;
	--cream: #fbf9f4;
	--white: #fff;
	--ink: #2d2d2d;
	--muted: rgb(45 45 45 / 68%);
	--line: rgb(64 128 120 / 22%);
	--shadow: 0 24px 70px rgb(45 45 45 / 14%);
	--shell: min(1180px, calc(100% - 48px));
}

.shell {
	width: var(--shell);
	margin-inline: auto;
}

/* Hostinger's optional assistant is not part of the approved public UI. */
.float-btn__wrapper.chatbot-overwrite,
.kodee-fab {
	display: none !important;
}

/* Header — mirrors app/components/SiteHeader.tsx and CartLink.tsx. */
.site-header {
	position: absolute;
	z-index: 50;
	inset: 0 0 auto;
	display: grid;
	grid-template-columns: 160px 1fr auto;
	align-items: center;
	gap: 24px;
	width: 100%;
	height: 98px;
	min-height: 0;
	margin: 0;
	padding-inline: max(28px, calc((100vw - 1280px) / 2));
	color: white;
	background: transparent;
	border: 0;
	border-bottom: 1px solid rgb(255 255 255 / 22%);
	box-shadow: none;
	backdrop-filter: none;
	line-height: 1.7;
	transition: none;
}

body.tamara-page .site-header,
body.tamara-dining-page .site-header {
	margin-bottom: 0;
}

body.tamara-page .site-header:not(.is-solid),
body.tamara-dining-page .site-header:not(.is-solid),
body.tamara-page .site-header:not(.is-scrolled),
body.tamara-dining-page .site-header:not(.is-scrolled) {
	color: white;
	background: transparent;
	border-color: rgb(255 255 255 / 22%);
	box-shadow: none;
	backdrop-filter: none;
}

.site-header.is-solid,
body.tamara-page .site-header.is-solid,
body.tamara-dining-page .site-header.is-solid {
	position: relative;
	background: var(--navy-950);
}

.brand {
	display: inline-flex;
	align-items: center;
	width: max-content;
	line-height: 1;
}

.brand-logo {
	display: block;
	width: 128px;
	aspect-ratio: 1440 / 743;
	background: var(--sand-300);
	-webkit-mask: var(--tamara-brand-logo) center / contain no-repeat;
	mask: var(--tamara-brand-logo) center / contain no-repeat;
}

.desktop-nav {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: clamp(14px, 1.8vw, 30px);
	font-size: 13px;
	font-weight: 700;
}

.desktop-nav a {
	position: relative;
	padding-block: 37px 30px;
	color: inherit;
	white-space: nowrap;
}

.desktop-nav a::after {
	content: "";
	position: absolute;
	inset-inline: 50%;
	bottom: 24px;
	height: 2px;
	background: var(--sand-300);
	transition: inset-inline 220ms ease;
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
	inset-inline: 0;
}

.tamara-cart-link {
	position: relative;
	justify-self: end;
	display: inline-grid;
	place-items: center;
	width: 46px;
	height: 46px;
	padding: 0;
	color: inherit;
	background: transparent;
	border: 1px solid currentcolor;
	border-radius: 50%;
	text-decoration: none;
}

.tamara-cart-link:hover {
	background: rgb(255 255 255 / 13%);
}

.tamara-cart-link:focus-visible {
	outline: 3px solid #b4975a;
	outline-offset: 3px;
}

.tamara-cart-link > svg {
	width: 22px;
	height: 22px;
}

.tamara-cart-count {
	position: absolute;
	top: -7px;
	inset-inline-end: -7px;
	display: grid;
	place-items: center;
	min-width: 22px;
	height: 22px;
	padding-inline: 5px;
	color: #2d2d2d;
	background: #fbf9f4;
	border: 2px solid #408078;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 900;
	line-height: 1;
}

.tamara-cart-count[hidden] {
	display: none;
}

.mobile-menu {
	position: relative;
	justify-self: end;
	display: none;
}

.mobile-menu summary {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0;
	color: inherit;
	background: transparent;
	border: 1px solid rgb(255 255 255 / 50%);
	border-radius: 50%;
	cursor: pointer;
	list-style: none;
}

.mobile-menu summary::-webkit-details-marker {
	display: none;
}

.mobile-menu summary > svg {
	width: 22px;
	height: 22px;
}

.mobile-menu-panel {
	position: absolute;
	top: 54px;
	inset-inline-end: 0;
	display: grid;
	width: min(310px, calc(100vw - 36px));
	padding: 16px;
	color: var(--ink);
	background: white;
	border-radius: 16px;
	box-shadow: var(--shadow);
}

.mobile-menu:not([open]) > .mobile-menu-panel {
	display: none;
}

.mobile-menu-panel a {
	padding: 11px 12px;
	color: inherit;
	border-bottom: 1px solid var(--line);
	font-weight: 700;
}

.mobile-menu-panel a:last-child {
	margin-top: 8px;
	color: white;
	background: var(--teal-600);
	border: 0;
	border-radius: 10px;
	text-align: center;
}

/* Footer — mirrors app/components/SiteFooter.tsx. */
.site-footer {
	position: relative;
	padding: 0;
	color: white;
	background: var(--navy-950);
	line-height: 1.7;
}

.footer-main {
	display: grid;
	grid-template-columns: 1.45fr 0.75fr 0.75fr 1.25fr;
	gap: clamp(30px, 5vw, 72px);
	padding-block: 78px 60px;
}

.footer-brand .brand-logo {
	width: 142px;
}

.footer-brand > p {
	max-width: 370px;
	margin: 0;
	color: rgb(255 255 255 / 63%);
	font-size: 14px;
}

.footer-badge {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-top: 12px;
	color: var(--sand-300);
	font-size: 12px;
}

.footer-badge svg {
	width: 18px;
	height: 18px;
}

.footer-main h2 {
	margin: 8px 0 21px;
	color: var(--sand-300);
	font-size: 15px;
	font-weight: 700;
	line-height: inherit;
	letter-spacing: normal;
}

.footer-main > div:not(.footer-brand) > a {
	display: block;
	margin-bottom: 10px;
	color: rgb(255 255 255 / 70%);
	font-size: 13px;
}

.footer-main > div:not(.footer-brand) > a:hover {
	color: white;
}

.footer-contact a,
.footer-contact p {
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

.footer-contact svg {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin-top: 3px;
	color: var(--sand-300);
}

.footer-contact p {
	margin: 0;
	color: rgb(255 255 255 / 70%);
	font-size: 13px;
}

.footer-bottom {
	display: flex;
	justify-content: space-between;
	gap: 25px;
	min-height: 0;
	padding-block: 20px;
	color: rgb(255 255 255 / 48%);
	border-top: 1px solid rgb(255 255 255 / 12%);
	font-size: 11px;
}

@media (max-width: 1120px) {
	.site-header {
		grid-template-columns: 1fr auto auto;
		gap: 14px;
		height: 82px;
		padding-inline: 24px;
	}

	.desktop-nav {
		display: none;
	}

	.mobile-menu {
		display: block;
	}

	.footer-main {
		grid-template-columns: 1.3fr 0.7fr 0.7fr;
	}

	.footer-contact {
		grid-column: 1 / -1;
	}
}

@media (max-width: 1024px) {
	.site-header {
		grid-template-columns: 1fr auto auto;
		height: 82px;
	}

	.brand-logo {
		width: 103px;
	}
}

@media (max-width: 880px) {
	:root {
		--shell: min(100% - 38px, 720px);
	}

	.footer-main {
		grid-template-columns: 1.4fr 0.8fr 0.8fr;
	}
}

@media (max-width: 600px) {
	:root {
		--shell: calc(100% - 32px);
	}

	.site-header {
		grid-template-columns: 1fr auto auto;
		gap: 10px;
		padding-inline: 16px;
	}

	.footer-main {
		grid-template-columns: 1fr 1fr;
		gap: 32px;
	}

	.footer-brand,
	.footer-contact {
		grid-column: 1 / -1;
	}

	.footer-bottom {
		display: grid;
		align-items: initial;
		text-align: center;
	}
}

@media print {
	.site-header,
	.site-footer {
		display: none !important;
	}
}
