/*
 * PR Rentals — header & footer.
 * Values match Final Design / Home (sticky header + ocean footer) exactly.
 * theme.json carries the tokens; this file carries what tokens can't express
 * (sticky, dropdown, slide-in panel, hover/focus interactions).
 */

:root {
	--prr-ocean: #0C3A5B;
	--prr-ocean-deep: #082A43;
	--prr-gold: #F3B007;
	--prr-gold-hover: #D69A00;
	--prr-gold-active: #BE8800;
	--prr-sand: #FAF6EF;
	--prr-charcoal: #1F2933;
	--prr-slate: #5C6B73;
	--prr-on-dark: #9DB4C4;
	--prr-on-dark-faint: #7B96A8;
	--prr-border: #ECE3D2;
	--prr-font: var(--wp--preset--font-family--inter, "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
	--prr-header-h: 67px; /* 38px logo + 2 × 14px padding + ~1px border */
}

/* ---------- Skip link ---------- */
.prr-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 200;
	background: var(--prr-ocean);
	color: #fff;
	font: 600 14px/1 var(--prr-font);
	padding: 12px 18px;
	border-radius: 0 0 10px 0;
}
.prr-skip-link:focus {
	left: 0;
}
.prr-content-anchor {
	display: block;
	height: 0;
	scroll-margin-top: var(--prr-header-h);
}

/* ============================================================
   HEADER
   ============================================================ */
.prr-site-header {
	position: sticky;
	top: 0;
	z-index: 60;
	background: #fff;
	border-bottom: 1px solid var(--prr-border);
	box-shadow: 0 1px 12px rgba(12, 58, 91, 0.05);
	font-family: var(--prr-font);
}

.prr-site-header__inner {
	max-width: 1240px;
	margin: 0 auto;
	padding: 14px 32px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

/* Logo + light/dark swap */
.prr-logo {
	display: block;
	flex-shrink: 0;
	line-height: 0;
	border-radius: 6px;
}
.prr-logo__img {
	height: 46px;
	width: auto;
	display: block;
}
.prr-logo__img--dark {
	display: none;
}

/* ---- Primary nav ---- */
.prr-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 30px;
}
.prr-nav__item {
	position: relative;
	display: flex;
}
.prr-nav__link {
	font: 500 16px/1 var(--prr-font);
	color: var(--prr-slate);
	text-decoration: none;
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border-radius: 6px;
	transition: color 0.15s ease;
}
.prr-nav__link:hover {
	color: var(--prr-ocean);
}
.prr-nav__link.is-current {
	font-weight: 600;
	color: var(--prr-ocean);
}
.prr-dropdown__toggle .prr-svg {
	width: 13px;
	height: 13px;
	stroke-width: 2.2;
	transition: transform 0.18s ease;
}
.prr-nav__item--dropdown.is-open .prr-dropdown__toggle .prr-svg,
.prr-nav__item--dropdown:hover .prr-dropdown__toggle .prr-svg {
	transform: rotate(180deg);
}

/* ---- Collections dropdown ---- */
.prr-dropdown__menu {
	position: absolute;
	top: calc(100% + 12px);
	left: -18px;
	width: 262px;
	margin: 0;
	padding: 8px;
	list-style: none;
	background: #fff;
	border: 1px solid var(--prr-border);
	border-radius: 14px;
	box-shadow: 0 18px 44px rgba(12, 58, 91, 0.16);
	z-index: 70;
	display: none;
}
.prr-nav__item--dropdown:hover .prr-dropdown__menu,
.prr-nav__item--dropdown:focus-within .prr-dropdown__menu,
.prr-nav__item--dropdown.is-open .prr-dropdown__menu {
	display: block;
}
.prr-dropdown__link {
	display: block;
	padding: 11px 14px;
	border-radius: 9px;
	font: 600 14px/1.3 var(--prr-font);
	color: var(--prr-ocean);
	text-decoration: none;
	transition: background 0.15s ease;
}
.prr-dropdown__link:hover,
.prr-dropdown__link:focus-visible {
	background: var(--prr-sand);
}

/* ---- Actions (phone + book + burger) ---- */
.prr-site-header__actions {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-shrink: 0;
}
.prr-phone {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font: 600 15px/1 var(--prr-font);
	color: var(--prr-ocean);
	text-decoration: none;
	border-radius: 6px;
}
.prr-phone .prr-svg {
	width: 16px;
	height: 16px;
	stroke: var(--prr-gold);
}
.prr-phone:hover {
	color: var(--prr-gold-hover);
}
.prr-btn--book {
	font: 600 15px/1 var(--prr-font);
	color: var(--prr-ocean);
	background: var(--prr-gold);
	border: none;
	padding: 13px 24px;
	border-radius: 10px;
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
	box-shadow: 0 2px 6px rgba(243, 176, 7, 0.28);
	transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.prr-btn--book:hover {
	background: var(--prr-gold-hover);
	transform: translateY(-1px);
	box-shadow: 0 8px 18px rgba(214, 154, 0, 0.32);
}
.prr-btn--book:active {
	background: var(--prr-gold-active);
	transform: translateY(0);
}

/* ---- Hamburger (mobile only) ---- */
.prr-burger {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: -6px -8px -6px 0;
	background: none;
	border: none;
	border-radius: 10px;
	color: var(--prr-ocean);
	cursor: pointer;
}
.prr-burger .prr-svg {
	width: 26px;
	height: 26px;
}

/* ============================================================
   OVERLAY HEADER VARIANT (transparent over a dark hero)
   ============================================================ */
.prr-site-header--overlay {
	background: transparent;
	border-bottom-color: transparent;
	box-shadow: none;
}
.prr-site-header--overlay:not(.is-stuck) .prr-logo__img--light {
	display: none;
}
.prr-site-header--overlay:not(.is-stuck) .prr-logo__img--dark {
	display: block;
}
.prr-site-header--overlay:not(.is-stuck) .prr-nav__link {
	color: #C7D6E1;
}
.prr-site-header--overlay:not(.is-stuck) .prr-nav__link:hover,
.prr-site-header--overlay:not(.is-stuck) .prr-nav__link.is-current {
	color: #fff;
}
.prr-site-header--overlay:not(.is-stuck) .prr-phone {
	color: #fff;
}
/* Once scrolled, the overlay header becomes the solid header. */
.prr-site-header--overlay.is-stuck {
	background: #fff;
	border-bottom-color: var(--prr-border);
	box-shadow: 0 1px 12px rgba(12, 58, 91, 0.05);
}

/* ============================================================
   MOBILE SLIDE-IN PANEL
   ============================================================ */
.prr-mobile[hidden] {
	display: none;
}
.prr-mobile {
	position: fixed;
	inset: 0;
	z-index: 120;
}
.prr-mobile__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(8, 42, 67, 0.5);
	opacity: 0;
	transition: opacity 0.25s ease;
}
.prr-mobile__panel {
	position: absolute;
	top: 0;
	right: 0;
	height: 100vh;
	height: 100dvh; /* match the visible viewport so the footer isn't hidden behind mobile browser chrome */
	width: min(360px, 86vw);
	background: #fff;
	box-shadow: -20px 0 50px rgba(8, 42, 67, 0.22);
	display: flex;
	flex-direction: column;
	padding: 18px 22px 26px;
	transform: translateX(100%);
	transition: transform 0.28s ease;
	overflow-y: auto; /* whole panel scrolls so the footer (Book Now) is always reachable */
	-webkit-overflow-scrolling: touch;
	font-family: var(--prr-font);
}
.prr-mobile.is-open .prr-mobile__backdrop {
	opacity: 1;
}
.prr-mobile.is-open .prr-mobile__panel {
	transform: translateX(0);
}
.prr-mobile__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--prr-border);
}
.prr-mobile__close {
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-right: -10px;
	background: none;
	border: none;
	border-radius: 10px;
	color: var(--prr-ocean);
	cursor: pointer;
}
.prr-mobile__close .prr-svg {
	width: 24px;
	height: 24px;
}
.prr-mobile__nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.prr-mobile__nav a {
	display: flex;
	align-items: center;
	min-height: 44px;
	font: 600 16px/1.3 var(--prr-font);
	color: var(--prr-ocean);
	text-decoration: none;
	border-bottom: 1px solid var(--prr-border);
}
.prr-mobile__label {
	margin: 22px 0 4px;
	font: 600 12px/1 var(--prr-font);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--prr-slate);
}
.prr-mobile__nav ul + .prr-mobile__label + ul a {
	padding-left: 2px;
	font-weight: 500;
	color: var(--prr-charcoal);
}
.prr-mobile__foot {
	flex-shrink: 0;
	margin-top: 28px;
	padding-top: 24px;
	border-top: 1px solid var(--prr-border);
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.prr-mobile__foot .prr-phone {
	min-height: 44px;
	font-size: 15px;
}
.prr-mobile__foot .prr-btn--book {
	text-align: center;
	padding: 15px 24px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.prr-footer {
	background: var(--prr-ocean-deep);
	font-family: var(--prr-font);
}
.prr-footer__grid {
	max-width: 1240px;
	margin: 0 auto;
	padding: 60px 32px 0;
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
	gap: 40px;
}
.prr-footer__logo {
	height: 56px;
	width: auto;
	display: block;
	margin-bottom: 18px;
}
.prr-footer__tagline {
	font: 400 14px/1.7 var(--prr-font);
	color: var(--prr-on-dark);
	max-width: 250px;
	margin: 0 0 20px;
}
.prr-footer__phone {
	display: flex;
	align-items: center;
	gap: 9px;
	font: 600 15px/1 var(--prr-font);
	color: #fff;
	text-decoration: none;
	margin-bottom: 10px;
}
.prr-footer__email {
	display: flex;
	align-items: center;
	gap: 9px;
	font: 400 14px/1 var(--prr-font);
	color: var(--prr-on-dark);
	text-decoration: none;
}
.prr-footer__phone .prr-svg,
.prr-footer__email .prr-svg {
	width: 15px;
	height: 15px;
	stroke: var(--prr-gold);
	flex-shrink: 0;
}
.prr-footer__phone:hover,
.prr-footer__email:hover {
	color: #fff;
}

/* Columns */
.prr-footer__col {
	margin: 0;
}
.prr-footer__heading {
	font: 600 12px/1 var(--prr-font);
	color: #fff;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin: 0 0 18px;
}
.prr-footer__col ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.prr-footer__col a {
	font: 400 14px/1 var(--prr-font);
	color: var(--prr-on-dark);
	text-decoration: none;
	transition: color 0.15s ease;
}
.prr-footer__col a:hover {
	color: #fff;
}
.prr-footer__place {
	font: 400 13px/1.6 var(--prr-font);
	color: var(--prr-on-dark);
	margin: 0 0 16px;
}

/* Social */
.prr-footer__social {
	display: flex;
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 0;
}
/* Override the column direction inherited from `.prr-footer__col ul` so the
   social icons sit in a row, not stacked. */
.prr-footer__social-col .prr-footer__social {
	flex-direction: row;
	flex-wrap: wrap;
}
.prr-social {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.14);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	transition: background 0.18s ease, border-color 0.18s ease;
}
.prr-social:hover {
	background: var(--prr-gold);
	border-color: var(--prr-gold);
	color: var(--prr-ocean);
}

/* Bottom bar */
.prr-footer__bar {
	max-width: 1240px;
	margin: 40px auto 0;
	padding: 24px 32px 36px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
}
.prr-footer__copy {
	font: 400 13px/1 var(--prr-font);
	color: var(--prr-on-dark-faint);
	margin: 0;
}
.prr-footer__legal {
	display: flex;
	align-items: center;
	gap: 22px;
}
.prr-footer__legal a {
	font: 400 13px/1 var(--prr-font);
	color: var(--prr-on-dark);
	text-decoration: none;
}
.prr-footer__legal a:hover {
	color: #fff;
}

/* ============================================================
   ACCESSIBLE FOCUS STATES
   ============================================================ */
.prr-logo:focus-visible,
.prr-nav__link:focus-visible,
.prr-dropdown__link:focus-visible,
.prr-phone:focus-visible,
.prr-btn--book:focus-visible,
.prr-burger:focus-visible,
.prr-mobile__close:focus-visible,
.prr-mobile__nav a:focus-visible,
.prr-footer a:focus-visible,
.prr-social:focus-visible,
.prr-skip-link:focus-visible {
	outline: 3px solid var(--prr-gold);
	outline-offset: 2px;
	border-radius: 8px;
}
/* On dark surfaces use a light ring so it's visible. */
.prr-site-header--overlay:not(.is-stuck) .prr-nav__link:focus-visible,
.prr-site-header--overlay:not(.is-stuck) .prr-phone:focus-visible,
.prr-footer a:focus-visible,
.prr-social:focus-visible {
	outline-color: #FBE6AE;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
	.prr-nav,
	.prr-site-header__actions .prr-phone,
	.prr-site-header__actions .prr-btn--book {
		display: none;
	}
	.prr-burger {
		display: inline-flex;
	}
	.prr-site-header__inner {
		padding: 12px 20px;
	}
}

@media (max-width: 900px) {
	.prr-footer__grid {
		grid-template-columns: 1fr 1fr;
		gap: 36px 40px;
		padding: 48px 24px 0;
	}
	.prr-footer__brand {
		grid-column: 1 / -1;
	}
	.prr-footer__bar {
		padding: 24px 24px 32px;
	}
}

@media (max-width: 560px) {
	.prr-footer__grid {
		grid-template-columns: 1fr;
	}
	.prr-footer__bar {
		justify-content: flex-start;
	}
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
	.prr-mobile__panel,
	.prr-mobile__backdrop,
	.prr-btn--book,
	.prr-nav__link,
	.prr-dropdown__toggle .prr-svg,
	.prr-social {
		transition: none;
	}
}
