/*
 * Ho'olei Villa 12-1 - 2026 site theme
 *
 * Loaded after bootstrap.min.css on all public and renter pages (Home and Renter
 * controllers). Bootstrap is still used for the grid, forms, alerts and the
 * calendar modal; this file restyles them to match the 2026 design.
 *
 * Page-specific styles live in assets/css/pages/*.css and are loaded by the
 * controller method that renders that page.
 */

:root {
	--green: #183f3b;
	--green-2: #214b43;
	--green-hover: #2b5750;
	--ink: #233c37;
	--muted: #69756c;
	--paper: #fcfbf7;
	--sand: #f5f2eb;
	--sand-2: #ede8db;
	--cream: #f6f0e3;
	--gold: #b99863;
	--gold-text: #8a6d44;
	--gold-light: #e8d6b3;
	--eyebrow: #746645;
	--line: #dcded3;
	--line-dark: #aeb9aa;
	--serif: Georgia, 'Times New Roman', serif;
	--sans: Arial, Helvetica, sans-serif;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
	margin: 0;
	color: var(--ink);
	background: var(--paper);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.65;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}
main { flex: 1 0 auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { display: block; width: 100%; object-fit: cover; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3, h4, blockquote, .brand-name {
	font-family: var(--serif);
	font-weight: 400;
}
h1 { font-size: clamp(45px, 5.6vw, 78px); line-height: 1.04; letter-spacing: -2px; }
h2 { font-size: clamp(36px, 4vw, 57px); line-height: 1.12; letter-spacing: -1.6px; }
h3 { font-size: 29px; line-height: 1.2; }
h4 { font-size: 21px; line-height: 1.3; }
h1 em, h2 em, h3 em { font-weight: 400; color: var(--gold-text); }
strong, b { font-weight: 700; }

a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
	outline: 3px solid #ba9654;
	outline-offset: 4px;
}

.skip { position: absolute; top: -60px; left: 20px; z-index: 1000; background: white; padding: 10px; }
.skip:focus { top: 10px; }

.eyebrow {
	font-size: 10px;
	letter-spacing: 2.5px;
	color: var(--eyebrow);
	font-weight: 600;
	margin-bottom: 22px;
	text-transform: uppercase;
}
.eyebrow.light { color: var(--gold-light); }
.lead-text { font-size: 15px; color: var(--muted); }
.muted { color: var(--muted); }

/* ---------- Buttons & links ---------- */

.button {
	display: inline-flex;
	justify-content: space-between;
	align-items: center;
	gap: 30px;
	background: var(--green);
	color: white;
	padding: 17px 26px;
	font-size: 13px;
	letter-spacing: .3px;
	border: 0;
	border-radius: 0;
	transition: background .2s;
}
.button:hover, .button:focus { background: var(--green-hover); color: white; }
.button.compact { padding: 13px 20px; }
.button.cream { background: var(--cream); color: var(--green); }
.button.cream:hover { background: white; color: var(--green); }
.button.outline { background: transparent; color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.button.outline:hover { background: var(--green); color: white; }
.button.block { display: flex; width: 100%; }

.text-link {
	font-size: 12px;
	border-bottom: 1px solid #81968a;
	padding-bottom: 7px;
	display: inline-flex;
	gap: 24px;
	align-items: center;
	background: none;
	border-top: 0;
	border-left: 0;
	border-right: 0;
	color: inherit;
}
.text-link:hover { border-bottom-color: var(--ink); }
.text-link.white { color: white; border-color: #a6b5a7; }
.text-link.white:hover { color: white; border-color: white; }

/* Bootstrap buttons used by existing forms and the calendar, restyled to match .button */
.btn {
	border-radius: 0;
	font-size: 13px;
	letter-spacing: .3px;
	padding: 13px 22px;
	font-weight: 400;
	border: 0;
	background: var(--green);
	color: white;
	transition: background .2s;
}
.btn:hover, .btn:focus { background: var(--green-hover); color: white; }
.btn-primary, .btn-primary:not(:disabled):not(.disabled):active { background: var(--green); border: 0; }
.btn-secondary, .btn-light { background: var(--sand-2); color: var(--ink); }
.btn-secondary:hover, .btn-light:hover { background: var(--line); color: var(--ink); }
.btn-warning { background: var(--gold); color: white; }
.btn-warning:hover { background: var(--gold-text); color: white; }
.btn-danger { background: #9c3b2f; color: white; }
.btn-danger:hover { background: #7d2e24; color: white; }
.btn-sm { padding: 8px 14px; font-size: 12px; }

/* ---------- Header ---------- */

.site-header {
	position: relative;
	z-index: 50;
	min-height: 94px;
	padding: 0 4.5%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	background: var(--paper);
	border-bottom: 1px solid transparent;
}
.site-header.bordered { border-bottom-color: var(--line); }
.brand { display: flex; flex-direction: column; line-height: 1.2; }
.brand:hover { color: inherit; }
.brand-name { font-size: 27px; letter-spacing: 3px; }
.brand-name i { font-size: 22px; letter-spacing: 0; }
.brand-small { font-size: 8px; letter-spacing: 2px; margin-top: 7px; }

.site-nav { display: flex; align-items: center; gap: 30px; font-size: 13px; }
.site-nav a { padding: 6px 0; border-bottom: 1px solid transparent; }
.site-nav a:hover, .site-nav a.active { border-bottom-color: var(--gold); }
.site-nav .nav-account { color: var(--muted); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.menu {
	display: none;
	background: none;
	border: 0;
	font-size: 22px;
	line-height: 1;
	padding: 6px;
	color: var(--ink);
}

/* ---------- Page banners (inner pages) ---------- */

.page-hero {
	position: relative;
	height: 420px;
	color: white;
	overflow: hidden;
}
.page-hero > img { height: 100%; position: absolute; inset: 0; }
.page-hero::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(8, 25, 22, .8), rgba(8, 25, 22, .3) 60%, rgba(8, 25, 22, .1));
}
.page-hero-content {
	position: absolute;
	z-index: 1;
	left: 7%;
	right: 7%;
	bottom: 60px;
	max-width: 760px;
}
.page-hero h1 { font-size: clamp(40px, 5vw, 66px); }
.page-hero h1 em { color: #ead8b8; }
.page-hero p:not(.eyebrow) { font-size: 16px; margin-top: 18px; color: #f3f1e9; max-width: 560px; }

/* Text-only page heading, used where a photo banner would get in the way (forms, account) */
.page-head {
	background: var(--sand);
	padding: 60px 7% 50px;
	border-bottom: 1px solid var(--line);
}
.page-head-inner { max-width: 1160px; margin: auto; }
.page-head h1 { font-size: clamp(36px, 4.4vw, 58px); letter-spacing: -1.6px; }
.page-head p:not(.eyebrow) { margin-top: 16px; color: var(--muted); font-size: 15px; max-width: 620px; }

/* ---------- Sections & layout ---------- */

.section { padding: 95px 7%; max-width: 1600px; margin: auto; }
.section.tight { padding-top: 60px; padding-bottom: 60px; }
.section-heading { max-width: 680px; margin: auto; text-align: center; }
.section-heading > p:last-child:not(.eyebrow) { max-width: 510px; margin: 25px auto 0; color: var(--muted); font-size: 15px; }
.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }
.content-width { max-width: 1160px; margin-left: auto; margin-right: auto; }

/* Bordered white card used for forms, account panels, review cards */
.panel {
	background: white;
	border: 1px solid var(--line);
	padding: 36px 40px;
}
.panel + .panel { margin-top: 24px; }
.panel-title { font-family: var(--serif); font-size: 26px; line-height: 1.2; margin-bottom: 20px; }
.panel.sand { background: var(--sand); border-color: transparent; }

/* ---------- Forms (Bootstrap form markup) ---------- */

.form-group { margin-bottom: 22px; }
.form-group label, .form-label {
	display: block;
	font-size: 10px;
	letter-spacing: 1.8px;
	text-transform: uppercase;
	color: var(--eyebrow);
	font-weight: 600;
	margin-bottom: 8px;
}
.form-control, .custom-select {
	border: 1px solid #c9cdc0;
	border-radius: 0;
	background: white;
	color: var(--ink);
	font-size: 15px;
	padding: 12px 14px;
	height: auto;
	box-shadow: none;
}
.form-control:focus, .custom-select:focus {
	border-color: var(--green);
	box-shadow: 0 0 0 3px rgba(24, 63, 59, .12);
	color: var(--ink);
}
.form-control::placeholder { color: #9aa39a; }
textarea.form-control { min-height: 160px; }
.form-check-label { font-size: 14px; }
.form-text { font-size: 12px; color: var(--muted); }

.form_errors {
	background: #fbeeea;
	border-left: 3px solid #9c3b2f;
	color: #6e2a21;
	padding: 14px 18px;
	margin: 0 0 24px;
	font-size: 14px;
}
.form_errors .form_error + .form_error { margin-top: 4px; }

/* ---------- System messages (getSystemMsg) ---------- */

#system_messages { max-width: 1160px; margin: 24px auto 0; padding: 0 4.5%; }
.alert {
	border-radius: 0;
	border: 0;
	border-left: 3px solid var(--green);
	background: var(--sand);
	color: var(--ink);
	font-size: 14px;
	padding: 14px 48px 14px 18px;
}
.alert-primary, .alert-success { border-left-color: var(--green); background: #e9f0ea; }
.alert-info { border-left-color: #4b7d88; background: #e8f0f1; }
.alert-warning { border-left-color: var(--gold); background: #f6efe0; }
.alert-danger { border-left-color: #9c3b2f; background: #fbeeea; color: #6e2a21; }
.alert .close { padding: 12px 16px; }

/* ---------- Tables ---------- */

.site-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.site-table th {
	font-size: 10px;
	letter-spacing: 1.6px;
	text-transform: uppercase;
	color: var(--eyebrow);
	font-weight: 600;
	text-align: left;
	padding: 10px 12px;
	border-bottom: 1px solid var(--line-dark);
}
.site-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }

/* Status labels (bookings: pending / approved / denied) */
.status {
	display: inline-block;
	font-size: 10px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	padding: 4px 10px;
	background: var(--sand-2);
}
.status-approved { background: #e2ede4; color: #1f5a3a; }
.status-pending { background: #f6efe0; color: #6d5526; }
.status-denied { background: #fbeeea; color: #7d2e24; }

/* ---------- Photo grid & viewer (shared by home, gallery, amenities) ---------- */

.gallery-photo {
	border: 0;
	padding: 0;
	position: relative;
	overflow: hidden;
	background: #d6d9ca;
	color: white;
	text-align: left;
	display: block;
	width: 100%;
}
.gallery-photo img { height: 100%; transition: transform .5s; }
.gallery-photo:hover img { transform: scale(1.04); }
.gallery-photo span {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: linear-gradient(transparent, rgba(14, 32, 29, .62));
	padding: 35px 18px 15px;
	display: flex;
	justify-content: space-between;
	gap: 12px;
	font-size: 12px;
	line-height: 1.4;
}
.gallery-photo b { font-size: 16px; font-weight: 400; }

.photo-modal {
	padding: 15px;
	border: 0;
	background: #f5f1e8;
	width: min(1100px, 94vw);
	max-height: 94vh;
	color: var(--ink);
}
.photo-modal::backdrop { background: rgba(11, 32, 26, .91); }
.photo-modal img { max-height: 76vh; object-fit: contain; }
.photo-modal p { font-size: 13px; margin: 12px 5px 0; }
.modal-controls { display: flex; align-items: center; gap: 16px; justify-content: flex-end; margin-bottom: 10px; }
.modal-controls button { border: 0; background: transparent; font-size: 24px; line-height: 1; padding: 4px 12px; color: var(--green); }
.modal-controls .photo-count { font-size: 11px; margin-right: auto; letter-spacing: 1px; }
.modal-controls .close-modal { margin-left: 12px; font-size: 28px; }

/* ---------- Closing call to action ---------- */

.final-cta { background: var(--green-2); padding: 70px 7%; text-align: center; color: white; }
.final-cta h2 { font-size: clamp(40px, 5vw, 65px); }
.final-cta h2 em { color: #e3cdac; }
.final-cta p:not(.eyebrow) { font-size: 14px; color: #d0d9cf; margin: 20px 0 30px; }
.final-cta .text-link { margin-left: 25px; }

/* ---------- Footer (matches the 2026 mockup) ---------- */

.site-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 30px;
	padding: 45px 7%;
	background: var(--paper);
}
.site-footer p { font-size: 10px; color: #748072; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; font-size: 11px; max-width: 240px; }
.footer-links a:hover { text-decoration: underline; }
.footer-links span { width: 100%; font-size: 9px; color: #7a8575; }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
	.site-nav { gap: 20px; }
	.brand-name { font-size: 23px; }
}

@media (max-width: 900px) {
	.site-header { min-height: 80px; padding: 0 5%; gap: 12px; }
	.brand-name { font-size: 20px; letter-spacing: 2px; }
	.brand-small { font-size: 6px; letter-spacing: 1.3px; }
	.header-actions .compact { font-size: 11px; padding: 10px 12px; gap: 10px; }
	.menu { display: block; }
	.site-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		z-index: 60;
		padding: 10px 5% 22px;
		background: var(--paper);
		border-top: 1px solid var(--line);
		border-bottom: 1px solid var(--line);
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		font-size: 15px;
	}
	.site-nav.open { display: flex; }
	.site-nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }
	.site-nav a:hover, .site-nav a.active { border-bottom-color: var(--line); color: var(--gold-text); }
}

@media (max-width: 760px) {
	h1 { font-size: 49px; }
	.eyebrow { font-size: 9px; letter-spacing: 2px; }
	.button { padding: 16px 20px; gap: 20px; }
	.section { padding: 60px 6%; }
	.page-hero { height: 340px; }
	.page-hero-content { left: 6%; right: 6%; bottom: 40px; }
	.page-hero p:not(.eyebrow) { font-size: 14px; }
	.page-head { padding: 42px 6% 36px; }
	.panel { padding: 26px 22px; }
	.gallery-photo span { font-size: 10px; padding: 25px 10px 10px; }
	.final-cta { padding: 60px 6%; }
	.final-cta .text-link { display: flex; width: fit-content; margin: 25px auto 0; }
	.site-footer { flex-direction: column; align-items: flex-start; gap: 22px; padding: 35px 6%; }
	.footer-links { max-width: none; }
}

@media (max-width: 420px) {
	.brand-small { display: none; }
	.header-actions .compact span { display: none; }
}

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