/* Terrascapes - static rebuild of the Joomla "Enigma" template. */

/* ---------- Fonts (self-hosted) ---------- */
@font-face { font-family: 'Open Sans'; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/open-sans-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Open Sans'; font-weight: 600; font-style: normal; font-display: swap; src: url(../fonts/open-sans-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Open Sans'; font-weight: 700; font-style: normal; font-display: swap; src: url(../fonts/open-sans-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Montserrat'; font-weight: 700; font-style: normal; font-display: swap; src: url(../fonts/montserrat-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'PT Serif'; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/pt-serif-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'PT Serif'; font-weight: 400; font-style: italic; font-display: swap; src: url(../fonts/pt-serif-latin-400-italic.woff2) format('woff2'); }

/* ---------- Tokens ---------- */
:root {
	--accent: #99ca3c;
	--ink: #111;
	--text: #7a7a7a;
	--line: #d7d7d7;
	--dark: #3b3e43;
	--darker: #2b2e31;
	--nav: #3b3e43;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font: 400 13px/25px 'Open Sans', Arial, sans-serif;
	letter-spacing: 1px;
	color: var(--text);
	background: #fff;
}
img { max-width: 100%; height: auto; border: 0; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s, background-color .2s, opacity .2s; }
a:hover { color: var(--ink); }
p { margin: 0 0 10px; }
h1, h2, h3, h4, h5 { color: var(--ink); margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container { max-width: 1170px; margin: 0 auto; padding: 0 15px; }
.section { padding: 0 0 100px; }

.btn {
	display: inline-block;
	padding: 15px 20px;
	border: 3px solid transparent;
	background: var(--accent);
	color: #fff;
	font: 700 12px/12px 'Open Sans', Arial, sans-serif;
	letter-spacing: .24px;
	text-transform: uppercase;
	text-align: center;
}
.btn:hover { background: var(--ink); color: #fff; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 20; background: #fff; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 127px; }
.logo img { width: 306px; height: auto; }
.main-nav ul { display: flex; }
.main-nav a {
	display: block;
	padding: 10px 20px;
	font-size: 12px;
	font-weight: 600;
	line-height: 24px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--nav);
}
.main-nav li:last-child a { padding-right: 0; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--accent); }
.nav-toggle { display: none; }

/* ---------- Home slider ---------- */
.hero {
	position: relative;
	height: clamp(350px, 36.5vw, 700px);
	overflow: hidden;
	background: #e9e9e9;
}
.hero .slide { position: absolute; inset: 0; visibility: hidden; }
.hero .slide.is-active { visibility: visible; z-index: 1; }
.hero .slide.is-next { visibility: visible; z-index: 2; }
.hero .slide img { width: 100%; height: 100%; object-fit: cover; }
.hero .slots { position: absolute; inset: 0; z-index: 3; display: flex; pointer-events: none; }
.hero .slots > div { flex: 1 1 0; background-repeat: no-repeat; }
.hero-caption {
	position: absolute;
	inset: 0;
	z-index: 4;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: clamp(10px, 2vw, 36px);
	text-align: center;
	color: #fff;
	pointer-events: none;
	transition: opacity .5s;
}
.hero-caption.is-hidden { opacity: 0; transition-duration: .5s; }
.hero-caption.is-shown { opacity: 1; transition-duration: 1s; }
.hero-title {
	margin: 0;
	font: 700 clamp(46px, 6vw, 116px)/1 'Montserrat', sans-serif;
	letter-spacing: 2px;
	color: #fff;
	text-shadow: 0 2px 18px rgba(0, 0, 0, .25);
}
.hero-sub { margin: 0; padding: 0 16px; font: 400 clamp(15px, 1.15vw, 22px)/1.3 'PT Serif', serif; letter-spacing: 1px; text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }
.hero-nav {
	position: absolute;
	top: 50%;
	z-index: 5;
	width: 40px; height: 40px;
	margin-top: -20px;
	padding: 0;
	border: 0;
	background: rgba(255, 255, 255, .9);
	cursor: pointer;
	opacity: .85;
	transition: opacity .2s, background .2s;
}
.hero-nav::before {
	content: "";
	position: absolute;
	top: 50%; left: 50%;
	width: 9px; height: 9px;
	border-top: 2px solid #333;
	border-left: 2px solid #333;
}
.hero-prev { left: 20px; }
.hero-prev::before { transform: translate(-30%, -50%) rotate(-45deg); }
.hero-next { right: 20px; }
.hero-next::before { transform: translate(-70%, -50%) rotate(135deg); }
.hero-nav:hover { opacity: 1; background: #fff; }

/* ---------- Inner page title bar ---------- */
.page-title { padding: 25px 0; margin: 0 0 100px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.page-title .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.page-title h1 { font-size: 13px; font-weight: 700; line-height: 20px; letter-spacing: 3px; text-transform: uppercase; }
.breadcrumb { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; color: #121212; }
.breadcrumb li + li::before { content: "/"; padding: 0 6px; color: #ccc; }
.breadcrumb li:first-child::after { content: "\00a0"; }
.breadcrumb li:first-child + li::before { content: none; }
.breadcrumb a { color: var(--text); }
.breadcrumb a:hover { color: var(--accent); }

/* ---------- Headings ---------- */
.headline { margin: 0 0 70px; text-align: center; }
.headline h5, .kicker { font-size: 12px; font-weight: 700; line-height: 18px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--accent); }
.headline h2 { font-size: 24px; font-weight: 700; line-height: 36px; letter-spacing: 4px; text-transform: uppercase; }
.label { margin: 0 0 4px; font-size: 13px; font-weight: 600; line-height: 20px; letter-spacing: 3px; text-transform: uppercase; color: var(--accent); }
.story h4 { margin: 0 0 15px; font-size: 18px; line-height: 27px; letter-spacing: 3.5px; text-transform: uppercase; }
.story p { margin-bottom: 15px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
.split img { width: 100%; }

.gallery-head { max-width: 360px; margin: 0 auto 50px; text-align: center; }
.gallery-head h2 { font-size: 24px; font-weight: 700; line-height: 36px; letter-spacing: 4px; text-transform: uppercase; }
.gallery-head h2::after { content: ""; display: block; width: 48px; margin: 15px auto 14px; border-bottom: 3px solid #e8e8e8; }
.subheading { font: italic 400 16px/25px 'PT Serif', serif; letter-spacing: 1px; }

/* ---------- Gallery (justified rows) + lightbox ---------- */
.gallery { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 70px; }
.gallery::after { content: ""; flex-grow: 999; }  /* keeps the last row from stretching */
.gallery a { position: relative; flex-grow: calc(var(--r) * 100); flex-basis: calc(var(--r) * 190px); overflow: hidden; background: #eee; cursor: zoom-in; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: var(--r); transition: transform .5s ease, opacity .3s; }
.gallery a:hover img { transform: scale(1.05); opacity: .9; }

.lightbox {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, .9);
	opacity: 0;
	visibility: hidden;
	transition: opacity .3s, visibility .3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: min(92vw, 1600px); max-height: 86vh; width: auto; border: 4px solid #fff; transition: opacity .25s; }
.lightbox img.is-loading { opacity: 0; }
.lightbox button {
	position: absolute;
	border: 0;
	background: #232323;
	color: #fff;
	cursor: pointer;
	font: 300 30px/1 'Open Sans', Arial, sans-serif;
	width: 50px; height: 50px;
	opacity: .85;
}
.lightbox button:hover { opacity: 1; background: var(--accent); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; margin-top: -25px; }
.lb-next { right: 16px; top: 50%; margin-top: -25px; }
.lb-count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #ccc; font-size: 12px; }
body.lb-open { overflow: hidden; }

/* ---------- Services boxes ---------- */
.services { display: grid; gap: 40px 30px; margin-bottom: 40px; }
.services.cols-3 { grid-template-columns: repeat(3, 1fr); }
.services.cols-2 { grid-template-columns: repeat(2, 1fr); }
.services h3 { margin: 0 0 25px; font-size: 21px; font-weight: 600; line-height: 27px; letter-spacing: 1.05px; text-transform: uppercase; }

/* ---------- Home intro blocks ---------- */
.home-intro { padding-top: 100px; }
.home-blocks { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.home-blocks p { margin-bottom: 20px; }

/* ---------- Call to action ---------- */
.cta { padding: 70px 0; }
.cta .container { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cta h2 { font-size: 19px; font-weight: 700; line-height: 48px; letter-spacing: 4px; text-transform: uppercase; }
.cta .btn { flex: 0 0 auto; }

/* ---------- Contact ---------- */
.contact-title { margin: 0 0 50px; text-align: center; font-size: 24px; font-weight: 700; line-height: 36px; letter-spacing: 4px; text-transform: uppercase; }
.contact-wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: stretch; }
.contact-photo { position: relative; min-height: 420px; }
.contact-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.contact-info { display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; align-content: center; }
.contact-info h3 { grid-column: 1 / -1; margin: 0 0 25px; font-size: 15px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; }
.contact-info h3::after { content: ""; display: block; width: 45px; margin-top: 15px; border-bottom: 2px solid var(--accent); }
.info-item { padding: 18px 0; border-top: 1px solid #e8e8e8; }
.info-item.wide { grid-column: 1 / -1; }
.info-item .k { display: block; margin-bottom: 4px; font-size: 11px; font-weight: 700; line-height: 18px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); }
.info-item .v { font-size: 15px; line-height: 26px; color: #333; letter-spacing: .5px; }
.info-item .v a { color: #333; }
.info-item .v a:hover { color: var(--accent); }
.info-item .note { display: block; font-size: 12px; color: var(--text); }

/* ---------- Privacy ---------- */
.policy { max-width: 1140px; }
.policy h2 { margin: 0 0 25px; font-size: 24px; font-weight: 700; line-height: 36px; letter-spacing: 3px; text-transform: uppercase; }
.policy h3 { margin: 30px 0 10px; font-size: 16px; font-weight: 700; line-height: 24px; letter-spacing: 1.5px; text-transform: uppercase; }
.policy ul { margin: 0 0 12px; }
.policy b, .policy strong { color: #333; }

/* ---------- Footer ---------- */
.site-footer { padding: 100px 0 0; background: var(--dark); color: var(--line); }
.footer-widgets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding-bottom: 70px; }
.footer-widgets h5 { margin: 0 0 35px; font-size: 18px; font-weight: 700; line-height: 18px; letter-spacing: 2.5px; color: var(--line); }
.footer-widgets h5::after { content: ""; display: block; width: 45px; margin-top: 15px; border-bottom: 2px solid var(--accent); }
.footer-widgets a { color: var(--line); }
.footer-widgets a:hover { color: var(--accent); }
.footer-list li { padding: 0 0 10px; margin: 0 0 12px; border-bottom: 1px solid rgba(255, 255, 255, .12); line-height: 23px; }
.footer-list li span { display: block; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); }
.bottom-footer { padding: 34px 0; background: var(--darker); color: #585c62; text-align: center; }
.bottom-footer p { margin: 0; }
.bottom-footer a { color: var(--text); }
.bottom-footer a:hover { color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
	.gallery img, .hero-caption { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
	.site-header .container { min-height: 90px; flex-wrap: wrap; }
	.logo img { width: 240px; }
	.nav-toggle {
		display: block;
		width: 44px; height: 40px;
		padding: 0;
		border: 1px solid #ddd;
		background: #fff;
		cursor: pointer;
	}
	.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
		display: block; position: relative;
		width: 22px; height: 2px; margin: 0 auto;
		background: var(--nav); content: "";
	}
	.nav-toggle span::before { position: absolute; top: -7px; }
	.nav-toggle span::after { position: absolute; top: 7px; }
	.main-nav { flex: 1 0 100%; display: none; }
	.main-nav.is-open { display: block; }
	.main-nav ul { flex-direction: column; padding: 0 0 15px; }
	.main-nav a, .main-nav li:last-child a { padding: 10px 0; border-top: 1px solid #eee; }
	.footer-widgets { grid-template-columns: 1fr 1fr; }
	.services.cols-3 { grid-template-columns: 1fr 1fr; }
	.contact-wrap { grid-template-columns: 1fr; }
	.contact-photo { min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 767px) {
	.section { padding-bottom: 60px; }
	.page-title { margin-bottom: 50px; }
	.page-title .container { flex-direction: column; align-items: flex-start; gap: 4px; }
	.headline { margin-bottom: 40px; }
	.headline h2, .gallery-head h2, .contact-title { font-size: 20px; letter-spacing: 3px; line-height: 30px; }
	.split, .home-blocks, .services.cols-2, .services.cols-3 { grid-template-columns: 1fr; }
	.home-intro { padding-top: 50px; }
	.services { gap: 30px; }
	.services h3 { margin-bottom: 12px; font-size: 18px; }
	.cta { padding: 50px 0; }
	.cta .container { flex-direction: column; align-items: flex-start; }
	.cta h2 { font-size: 16px; line-height: 28px; letter-spacing: 3px; }
	.gallery a { flex-basis: calc(var(--r) * 120px); }
	.contact-info { grid-template-columns: 1fr; }
	.hero-nav { display: none; }
	.footer-widgets { grid-template-columns: 1fr; padding-bottom: 40px; }
	.site-footer { padding-top: 60px; }
}
