/*
Theme Name: Swaloh Resort
Theme URI: https://swalohresort.com
Description: Custom hotel theme for Swaloh Hill Resort with a built-in booking engine (Hotel Booking by MotoPress).
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: swaloh
*/

:root {
	--forest: #1f3a2e;
	--forest-2: #2c5242;
	--sand: #f6f1e9;
	--sand-2: #ece3d4;
	--gold: #b08d57;
	--gold-2: #96753f;
	--ink: #1d211f;
	--muted: #5f6a64;
	--white: #ffffff;
	--radius: 14px;
	--shadow: 0 18px 40px -18px rgba(20, 35, 28, .35);
	--serif: "Cormorant Garamond", Georgia, serif;
	--sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.65;
	color: var(--ink);
	background: var(--sand);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest-2); }
a:hover { color: var(--gold-2); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; color: var(--forest); }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1.1em; }

.container { width: min(var(--max), 92%); margin: 0 auto; }
.eyebrow {
	display: inline-block;
	font-size: .78rem;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--gold-2);
	font-weight: 600;
	margin-bottom: .8rem;
}
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section--white { background: var(--white); }
.section--forest { background: var(--forest); color: #e8efe9; }
.section--forest h2, .section--forest h3 { color: var(--white); }
.section-head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section-head p { color: var(--muted); }
.section--forest .section-head p { color: #c7d5cc; }

/* Buttons */
.btn, .button, button[type="submit"], input[type="submit"], .mphb-button, .mphb_sc_search-submit-button-wrapper input {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5em;
	padding: .9em 1.7em;
	border: 0;
	border-radius: 999px;
	background: var(--gold);
	color: var(--white) !important;
	font-family: var(--sans);
	font-weight: 600;
	font-size: .95rem;
	letter-spacing: .03em;
	text-decoration: none;
	cursor: pointer;
	transition: background .2s, transform .2s;
}
.btn:hover, .button:hover, button[type="submit"]:hover, input[type="submit"]:hover, .mphb-button:hover { background: var(--gold-2); transform: translateY(-1px); }
.btn--ghost { background: transparent; border: 1.5px solid currentColor; color: var(--white) !important; }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--forest { background: var(--forest); }
.btn--forest:hover { background: var(--forest-2); }

/* Header */
.site-header {
	position: absolute;
	inset: 0 0 auto 0;
	z-index: 50;
	color: var(--white);
}
.site-header.is-solid { position: sticky; top: 0; background: var(--forest); box-shadow: 0 2px 18px rgba(0,0,0,.15); }
.admin-bar .site-header.is-solid { top: 32px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1.3rem 0; }
.brand { color: var(--white); text-decoration: none; display: flex; flex-direction: column; line-height: 1; }
.brand:hover { color: var(--white); }
.brand-name { font-family: var(--serif); font-size: 1.8rem; font-weight: 600; letter-spacing: .02em; }
.brand-tag { font-size: .66rem; letter-spacing: .32em; text-transform: uppercase; opacity: .8; margin-top: .35rem; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2rem; align-items: center; }
.main-nav a { color: var(--white); text-decoration: none; font-size: .92rem; font-weight: 500; letter-spacing: .04em; opacity: .9; }
.main-nav a:hover { opacity: 1; color: var(--white); }
.main-nav .menu-book a, .nav-book { background: var(--gold); padding: .65em 1.3em; border-radius: 999px; opacity: 1; }
.nav-toggle { display: none; background: none; border: 0; color: var(--white); padding: .4rem; cursor: pointer; }
.nav-toggle svg { width: 28px; height: 28px; }

/* Hero */
.hero {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	color: var(--white);
	background: var(--forest) center/cover no-repeat;
	isolation: isolate;
}
.hero::before {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(10,22,16,.55) 0%, rgba(10,22,16,.25) 45%, rgba(10,22,16,.7) 100%);
	z-index: -1;
}
.hero-content { padding: 9rem 0 4rem; max-width: 760px; }
.hero h1 { color: var(--white); margin-bottom: .3em; }
.hero .eyebrow { color: #e7cf9f; }
.hero p.lead { font-size: 1.2rem; max-width: 560px; color: #eef2ef; }

/* Booking bar */
.booking-bar {
	position: relative;
	margin-top: -5rem;
	z-index: 5;
}
.booking-card {
	background: var(--white);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 1.8rem 2rem;
}
.booking-card h3 { font-size: 1.35rem; margin-bottom: 1rem; }
.booking-card .mphb_sc_search-form,
.booking-card form.mphb_sc_search-form {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 1rem;
	align-items: end;
}
.booking-card .mphb_sc_search-form p { margin: 0; }
.booking-card .mphb-required-fields-tip { display: none; }

/* MotoPress forms */
.mphb_sc_search-form label, .mphb_widget_search-form label, .mphb-checkout-section label, .mphb-booking-form label {
	display: block;
	font-size: .75rem;
	text-transform: uppercase;
	letter-spacing: .14em;
	color: var(--muted);
	font-weight: 600;
	margin-bottom: .35rem;
}
.site-main input[type="text"], .site-main input[type="email"], .site-main input[type="tel"], .site-main input[type="number"],
.site-main input[type="password"], .site-main select, .site-main textarea {
	width: 100%;
	padding: .8em 1em;
	border: 1px solid #d8d2c6;
	border-radius: 10px;
	background: #fbf9f5;
	font: inherit;
	font-size: .95rem;
	color: var(--ink);
}
.site-main input:focus, .site-main select:focus, .site-main textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: transparent; }
.mphb_sc_search-submit-button-wrapper { align-self: end; }
.mphb_sc_search-submit-button-wrapper input, .mphb_sc_search-form input[type="submit"] { width: 100%; padding: 1em 1.4em; }

/* Intro */
.intro-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.intro-media { position: relative; }
.intro-media img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.intro-media .badge {
	position: absolute; right: -1.2rem; bottom: 2rem;
	background: var(--forest); color: var(--white);
	border-radius: var(--radius); padding: 1.2rem 1.5rem; box-shadow: var(--shadow);
	font-family: var(--serif); font-size: 1.15rem; line-height: 1.2;
}
.intro-media .badge strong { display: block; font-size: 2.4rem; color: #e7cf9f; }
.stats { display: flex; gap: 2.5rem; margin-top: 2rem; flex-wrap: wrap; }
.stats div { font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.stats strong { display: block; font-family: var(--serif); font-size: 2.4rem; color: var(--forest); letter-spacing: 0; text-transform: none; }

/* Rooms */
.rooms-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 2rem; }
.room-card {
	background: var(--white);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: 0 10px 30px -20px rgba(20,35,28,.4);
	display: flex; flex-direction: column;
	transition: transform .25s, box-shadow .25s;
}
.room-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.room-card .thumb { aspect-ratio: 3/2; overflow: hidden; background: var(--sand-2); }
.room-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.room-card:hover .thumb img { transform: scale(1.05); }
.room-card .body { padding: 1.6rem; display: flex; flex-direction: column; flex: 1; }
.room-card h3 { margin-bottom: .4rem; }
.room-card h3 a { color: var(--forest); text-decoration: none; }
.room-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }
.room-card .excerpt { color: var(--muted); font-size: .95rem; flex: 1; }
.room-card .foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.1rem; border-top: 1px solid #eee6d8; }
.price { font-family: var(--serif); font-size: 1.15rem; color: var(--muted); }
.price strong { font-size: 1.9rem; color: var(--forest); }

/* Amenities */
.amenities { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.5rem; }
.amenity {
	padding: 2rem 1.6rem;
	border: 1px solid rgba(255,255,255,.14);
	border-radius: var(--radius);
	background: rgba(255,255,255,.03);
}
.amenity svg { width: 38px; height: 38px; stroke: #e7cf9f; margin-bottom: 1rem; }
.amenity h3 { font-size: 1.4rem; margin-bottom: .35rem; }
.amenity p { color: #c7d5cc; font-size: .95rem; margin: 0; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 1rem; }
.gallery figure { margin: 0; overflow: hidden; border-radius: var(--radius); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gallery figure:hover img { transform: scale(1.06); }
.gallery .tall { grid-row: span 2; }
.gallery .wide { grid-column: span 2; }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.quote { background: var(--white); padding: 2rem; border-radius: var(--radius); box-shadow: 0 10px 30px -22px rgba(20,35,28,.4); }
.quote p { font-family: var(--serif); font-size: 1.3rem; line-height: 1.4; color: var(--forest); }
.quote .stars { color: var(--gold); letter-spacing: .2em; margin-bottom: .6rem; }
.quote cite { font-style: normal; font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }

/* CTA */
.cta {
	position: relative; isolation: isolate; color: var(--white); text-align: center;
	background: var(--forest) center/cover no-repeat;
}
.cta::before { content: ""; position: absolute; inset: 0; background: rgba(15,30,22,.65); z-index: -1; }
.cta h2 { color: var(--white); }
.cta p { color: #e3ebe5; max-width: 560px; margin: 0 auto 2rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: stretch; }
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.contact-list li { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid #e6dccb; }
.contact-list svg { width: 22px; height: 22px; stroke: var(--gold-2); flex: none; margin-top: .2rem; }
.contact-list strong { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.map-wrap { border-radius: var(--radius); overflow: hidden; min-height: 360px; box-shadow: var(--shadow); }
.map-wrap iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }

/* Inner pages */
.page-hero {
	position: relative; isolation: isolate; color: var(--white);
	background: var(--forest) center/cover no-repeat;
	padding: 11rem 0 4.5rem;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,22,16,.65), rgba(10,22,16,.55)); z-index: -1; }
.page-hero h1 { color: var(--white); font-size: clamp(2.4rem, 5vw, 3.8rem); margin: 0; }
.page-content { padding: 4rem 0 6rem; }
.page-content .entry { background: var(--white); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 3rem); box-shadow: 0 10px 30px -24px rgba(20,35,28,.4); }
.entry > *:last-child { margin-bottom: 0; }
.entry table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.entry th, .entry td { padding: .7rem .8rem; border-bottom: 1px solid #eee6d8; text-align: left; }

/* MotoPress listing tweaks */
.mphb-room-type, .mphb_sc_rooms-wrapper .mphb-room-type { margin-bottom: 3rem; padding-bottom: 3rem; border-bottom: 1px solid #eee6d8; }
.mphb-room-type .post-thumbnail img, .mphb-room-type-images img { border-radius: var(--radius); }
.mphb-room-type-title, .mphb-room-type .mphb-room-type-title a { font-family: var(--serif); color: var(--forest); text-decoration: none; }
.mphb-price { font-family: var(--serif); font-size: 1.6rem; color: var(--forest); font-weight: 600; }
.mphb-loop-room-type-attributes, .mphb-single-room-type-attributes { list-style: none; padding: 0; }
.mphb-loop-room-type-attributes li, .mphb-single-room-type-attributes li { padding: .25rem 0; color: var(--muted); }
.mphb-calendar .datepick, .datepick-popup .datepick { font-family: var(--sans); }
.mphb-checkout-section { margin-bottom: 2rem; }
.mphb-checkout-section h3, .mphb-checkout-section h4 { font-family: var(--serif); }
.mphb-reserve-btn, .mphb-book-button, .mphb-confirm-reservation { margin-top: .5rem; }

/* Footer */
.site-footer { background: #142a20; color: #b9c7be; padding: 4.5rem 0 2rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; }
.site-footer h4 { color: var(--white); font-family: var(--sans); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 1.1rem; }
.site-footer a { color: #d9e3dc; text-decoration: none; }
.site-footer a:hover { color: #e7cf9f; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55rem; }
.footer-bottom { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem; }

/* Responsive */
@media (max-width: 960px) {
	.intro-grid, .contact-grid { grid-template-columns: 1fr; }
	.intro-media .badge { right: 1rem; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
	.nav-toggle { display: block; }
	.main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--forest); padding: 1.5rem 4%; }
	.main-nav.is-open { display: block; }
	.main-nav ul { flex-direction: column; align-items: flex-start; gap: 1.1rem; }
	.header-inner { position: relative; }
}
@media (max-width: 600px) {
	body { font-size: 16px; }
	.footer-grid { grid-template-columns: 1fr; }
	.gallery .wide { grid-column: span 2; }
	.booking-card { padding: 1.4rem; }
	.booking-bar { margin-top: -3rem; }
	.admin-bar .site-header.is-solid { top: 0; }
}
