/*
Theme Name:   The Great Escape
Theme URI:    
Description:  Child theme of Kadence for The Great Escape short-term rentals.
Template:     kadence
Version:      1.0.0
Text Domain:  great-escape
*/

:root {
	--ge-navy: #0f2231;
	--ge-ocean: #1e5f74;
	--ge-ocean-dark: #154656;
	--ge-gold: #c9a36a;
	--ge-gold-light: #f1d9ae;
	--ge-serif: "Playfair Display", Georgia, serif;
	--ge-sand: #ede6da;
	--ge-cream: #f8f4ee;
	--ge-text: #2e3a44;
	--ge-muted: #56636d;
	--ge-radius: 14px;
	--ge-shadow: 0 18px 40px -22px rgba(15, 34, 49, 0.35);
}

body {
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
	letter-spacing: -0.01em;
	font-weight: 600;
}

/* ---------- Header ---------- */
.site-branding .site-title {
	font-family: var(--ge-serif);
	font-weight: 600;
	letter-spacing: 0.01em;
}
/* Even spacing between menu items */
.site-header .main-navigation .primary-menu-container > ul {
	gap: 6px;
	align-items: center;
}
.site-header .main-navigation .primary-menu-container > ul > li.menu-item > a {
	padding-left: 0.9em;
	padding-right: 0.9em;
}
.site-header .site-header-main-section-right {
	gap: 22px;
}
.transparent-header #masthead .site-main-header-wrap:not(.item-is-stuck) {
	background: linear-gradient(to bottom, rgba(10, 22, 32, 0.55), rgba(10, 22, 32, 0));
}
.transparent-header #mobile-header .mobile-toggle-open-container .menu-toggle-open {
	color: #fff;
}
/* Mobile header: keep the title on one line with room before the social icons */
#mobile-header .site-title {
	white-space: nowrap;
}
#mobile-header .header-mobile-social-wrap {
	margin-left: 10px;
}
#mobile-header .header-mobile-social-inner-wrap {
	flex-wrap: nowrap;
}
#mobile-header .site-header-main-section-right {
	gap: 4px;
}
@media (max-width: 369px) {
	#mobile-header .site-title {
		font-size: 19px;
	}
}
@media (max-width: 339px) {
	#mobile-header .site-title {
		font-size: 17px;
	}
	#mobile-header .header-mobile-social-wrap {
		margin-left: 4px;
	}
}
#masthead .item-is-stuck {
	box-shadow: 0 8px 24px -16px rgba(15, 34, 49, 0.35);
}

/* ---------- Generic sections ---------- */
.ge-section {
	padding-top: clamp(3.5rem, 7vw, 6.5rem) !important;
	padding-bottom: clamp(3.5rem, 7vw, 6.5rem) !important;
	padding-left: clamp(16px, 4vw, 40px) !important;
	padding-right: clamp(16px, 4vw, 40px) !important;
}
.ge-section .alignwide,
.ge-hero .alignwide {
	width: 100%;
	max-width: 1240px !important;
	margin-left: auto !important;
	margin-right: auto !important;
}
.ge-section--cream {
	background: var(--ge-cream);
}
.ge-section--navy {
	background: var(--ge-navy);
	color: #e8eef2;
}
.ge-section--navy h2,
.ge-section--navy h3 {
	color: #fff;
}
.ge-eyebrow {
	color: var(--ge-gold) !important;
	font-size: 0.8rem !important;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	margin-bottom: 0.6rem !important;
}
.ge-lead {
	font-size: 1.15rem;
	color: var(--ge-muted);
}
.ge-divider {
	width: 64px;
	height: 2px;
	background: var(--ge-gold);
	border: 0;
	margin: 1.2rem auto 1.6rem !important;
	opacity: 1;
}

/* ---------- Hero ---------- */
.ge-hero {
	min-height: 92vh !important;
	padding-top: 120px !important;
	padding-bottom: 60px !important;
}
.ge-hero--inner {
	min-height: 72vh !important;
}
.ge-hero h1 {
	font-size: clamp(2.4rem, 6vw, 4.6rem);
	line-height: 1.08;
	color: #fff;
	text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}
.ge-hero p {
	color: rgba(255, 255, 255, 0.92);
	font-size: clamp(1.05rem, 1.6vw, 1.25rem);
}
.ge-hero .ge-eyebrow {
	color: var(--ge-gold-light) !important;
}

/* ---------- Buttons ---------- */
.wp-block-button__link {
	border-radius: 999px !important;
	padding: 0.85em 1.8em !important;
	font-weight: 600;
	letter-spacing: 0.02em;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 22px -12px rgba(0, 0, 0, 0.45);
}
.is-style-outline .wp-block-button__link {
	border: 2px solid currentColor !important;
}
.ge-hero .is-style-outline .wp-block-button__link {
	color: #fff !important;
	background: rgba(255, 255, 255, 0.08) !important;
	backdrop-filter: blur(4px);
}

/* ---------- Text + photo sections (Welcome, Meet your host) ---------- */
.ge-split {
	gap: clamp(2rem, 5vw, 4.5rem) !important;
}
.ge-split > .wp-block-column {
	align-self: center;
}
.ge-photo.wp-block-image {
	position: relative;
	margin: 0 0 18px !important;
	padding: 0 18px 0 0;
}
/* Gold offset frame behind the photo; mirrored when the photo is on the left. */
.ge-photo.wp-block-image::before {
	content: "";
	position: absolute;
	top: 18px;
	right: 0;
	bottom: -18px;
	left: 18px;
	border: 2px solid var(--ge-gold);
	border-radius: var(--ge-radius);
	opacity: 0.55;
}
.ge-split > .wp-block-column:first-child .ge-photo.wp-block-image {
	padding: 0 0 0 18px;
}
.ge-split > .wp-block-column:first-child .ge-photo.wp-block-image::before {
	right: 18px;
	left: 0;
}
.ge-photo.wp-block-image img {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	max-height: 440px;
	object-fit: cover;
	border-radius: var(--ge-radius);
	box-shadow: var(--ge-shadow);
}

/* Meet your host: heavier, darker text */
.ge-host p:not(.ge-eyebrow) {
	font-weight: 500;
	color: var(--ge-text);
}
.ge-host strong {
	font-weight: 700;
	color: var(--ge-navy);
}

/* ---------- Pillars (We focus on) ---------- */
.ge-pillar {
	background: #fff;
	border-radius: var(--ge-radius);
	padding: 2.2rem 1.8rem !important;
	box-shadow: var(--ge-shadow);
	height: 100%;
}
.ge-pillar .ge-num {
	font-family: var(--ge-serif);
	font-weight: 600;
	font-size: 2.4rem;
	color: var(--ge-gold);
	line-height: 1;
	margin-bottom: 0.8rem;
}
.ge-pillar h3 {
	font-size: 1.35rem;
	margin: 0 0 0.5rem;
}
.ge-pillar p {
	color: var(--ge-muted);
	margin: 0;
}

/* ---------- Property cards ---------- */
.ge-card {
	background: #fff;
	border-radius: var(--ge-radius);
	overflow: hidden;
	box-shadow: var(--ge-shadow);
	height: 100%;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ge-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 26px 50px -24px rgba(15, 34, 49, 0.45);
}
.ge-card .wp-block-image,
.ge-card figure {
	margin: 0 !important;
}
.ge-card .wp-block-image img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	display: block;
	transition: transform 0.6s ease;
}
.ge-card:hover .wp-block-image img {
	transform: scale(1.04);
}
.ge-card__body {
	padding: 1.5rem 1.6rem 1.8rem !important;
}
.ge-card__body h3 {
	font-size: 1.35rem;
	margin: 0.2rem 0 0.5rem;
}
.ge-card__body h3 a {
	color: inherit;
	text-decoration: none;
}
.ge-card__body p {
	color: var(--ge-muted);
}
.ge-card .ge-eyebrow {
	margin-bottom: 0.2rem !important;
}

/* ---------- Chips ---------- */
ul.ge-chips {
	list-style: none;
	padding: 0;
	margin: 0.8rem 0 1.2rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
}
ul.ge-chips li {
	background: var(--ge-cream);
	border: 1px solid var(--ge-sand);
	color: var(--ge-navy);
	font-size: 0.85rem;
	font-weight: 500;
	padding: 0.3em 0.85em;
	border-radius: 999px;
	margin: 0;
}
.ge-hero ul.ge-chips {
	justify-content: center;
}
.ge-hero ul.ge-chips li {
	background: rgba(255, 255, 255, 0.14);
	border-color: rgba(255, 255, 255, 0.35);
	color: #fff;
	backdrop-filter: blur(4px);
}

/* ---------- Text link with arrow ---------- */
.ge-more a {
	font-weight: 600;
	text-decoration: none;
	color: var(--ge-ocean);
}
.ge-more a::after {
	content: " \2192";
	transition: margin 0.2s ease;
}
.ge-more a:hover::after {
	margin-left: 4px;
}

/* ---------- Quote band ---------- */
.ge-quote {
	border: 0 !important;
	padding: 0 !important;
	margin: 0 auto !important;
	max-width: 860px;
	text-align: center;
}
.ge-quote p {
	font-family: var(--ge-serif);
	font-weight: 600;
	font-size: clamp(1.5rem, 3vw, 2.2rem) !important;
	line-height: 1.35;
	color: #fff;
	font-style: italic;
}
.ge-quote cite {
	color: var(--ge-gold);
	font-style: normal;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	font-size: 0.8rem;
}

/* ---------- Property page ---------- */
.ge-booking-card {
	background: #fff;
	border: 1px solid var(--ge-sand);
	border-radius: var(--ge-radius);
	padding: 1.8rem !important;
	box-shadow: var(--ge-shadow);
	position: sticky;
	top: 110px;
}
.ge-booking-card h3 {
	font-size: 1.35rem;
	margin-top: 0;
}
ul.ge-facts {
	list-style: none;
	padding: 0;
	margin: 0;
}
ul.ge-facts li {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.65rem 0;
	border-bottom: 1px solid var(--ge-sand);
	font-size: 0.97rem;
}
ul.ge-facts li:last-child {
	border-bottom: 0;
}
ul.ge-facts strong {
	color: var(--ge-navy);
	font-weight: 600;
	text-align: right;
}
ul.ge-highlights {
	list-style: none;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 0.7rem 1.4rem;
}
ul.ge-highlights li {
	position: relative;
	padding-left: 1.7rem;
	margin: 0;
}
ul.ge-highlights li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.5em;
	width: 0.7rem;
	height: 0.7rem;
	border-radius: 50%;
	background: var(--ge-gold);
	box-shadow: 0 0 0 4px rgba(201, 163, 106, 0.2);
}

/* ---------- Gallery ---------- */
.ge-gallery.wp-block-gallery {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px !important;
}
.ge-gallery.wp-block-gallery > figure.wp-block-image {
	width: auto !important;
	margin: 0 !important;
}
@media (max-width: 781px) {
	.ge-gallery.wp-block-gallery {
		grid-template-columns: repeat(2, 1fr);
	}
}
.ge-gallery.wp-block-gallery .wp-block-image img {
	border-radius: 10px;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: filter 0.3s ease;
}
.ge-gallery.wp-block-gallery .wp-block-image:hover img {
	filter: brightness(1.06);
}

/* ---------- Map ---------- */
.ge-map iframe {
	width: 100%;
	height: 380px;
	border: 0;
	border-radius: var(--ge-radius);
	box-shadow: var(--ge-shadow);
}

/* ---------- Footer ---------- */
.site-footer {
	background: var(--ge-navy);
	color: #b9c6cf;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.site-footer .site-middle-footer-wrap,
.site-footer .site-bottom-footer-wrap {
	background: transparent;
}
.site-footer .site-bottom-footer-wrap {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.site-footer a {
	color: #dfe7ec;
	text-decoration: none;
}
.site-footer a:hover {
	color: var(--ge-gold);
}
.site-footer h2,
.site-footer h3,
.site-footer .widget-title {
	color: #fff;
	font-size: 1.15rem;
	margin: 0 0 0.9rem;
}
.site-footer .footer-brand {
	font-family: var(--ge-serif);
	font-weight: 600;
	font-size: 1.6rem;
	line-height: 1.2;
	color: #fff;
	margin-top: 0;
}
.site-footer ul {
	list-style: none;
	padding: 0;
	margin: 0;
}
.site-footer ul li {
	margin: 0 0 0.45rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 781px) {
	.ge-booking-card {
		position: static;
	}
	.ge-hero {
		min-height: 80vh !important;
	}
	.ge-hero--inner {
		min-height: 60vh !important;
	}
}

/* ---------- Full-bleed section stacking ---------- */
.entry-content > .ge-section,
.entry-content > .ge-hero,
.entry-content > .wp-block-cover.alignfull {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}
.content-area {
	margin-bottom: 0 !important;
}

/* ---------- Placeholders (homes without photos yet) ---------- */
.ge-hero--noimg {
	background: radial-gradient(circle at 20% 20%, rgba(201, 163, 106, 0.22), transparent 55%),
		linear-gradient(135deg, #0f2231 0%, #1e5f74 100%) !important;
}
.ge-hero--noimg .wp-block-cover__background {
	opacity: 0 !important;
}
.ge-placeholder {
	aspect-ratio: 3 / 2;
	display: flex !important;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	margin: 0 !important;
	background: radial-gradient(circle at 25% 20%, rgba(201, 163, 106, 0.28), transparent 60%),
		linear-gradient(135deg, #0f2231 0%, #1e5f74 100%);
}
.ge-placeholder p {
	margin: 0 !important;
}
.ge-placeholder__city {
	font-family: var(--ge-serif);
	font-weight: 600;
	font-size: clamp(1.8rem, 3vw, 2.4rem);
	color: #fff;
}
.ge-placeholder__note {
	color: var(--ge-gold-light);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	margin-top: 0.5rem !important;
}
.ge-hero--noimg .wp-block-button:not(.is-style-outline) .wp-block-button__link {
	background: #fff !important;
	color: var(--ge-navy) !important;
}
