/* Small additions on top of the compiled design CSS (app.css). */
[hidden] { display: none !important; }

/* When the WordPress admin bar is showing (logged-in editors), keep the fixed header below it. */
body.admin-bar header[role="banner"] { top: 32px; }
@media screen and (max-width: 782px) {
	body.admin-bar header[role="banner"] { top: 46px; }
}

/* Honeypot field for spam protection (never visible). */
.kanopy-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}

/* Gallery Modal Animations */
@keyframes kanopy-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes kanopy-slide-up {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.animate-fade-in {
	animation: kanopy-fade-in 0.3s ease-out forwards;
}

.animate-slide-up {
	animation: kanopy-slide-up 0.4s ease-out forwards;
}

/* Gallery backdrop animation trigger */
[data-overlay="gallery"][data-state="open"] > div:first-child {
	animation: kanopy-fade-in 0.3s ease-out forwards;
}

[data-overlay="gallery"][data-state="open"] > div:last-child > div {
	animation: kanopy-slide-up 0.4s ease-out forwards;
}

/* Ensure gallery grid items have smooth hover transition */
#gallery-grid > div {
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#gallery-grid > div:hover {
	transform: scale(1.02);
	box-shadow: 0 20px 40px -15px rgba(235, 161, 17, 0.2);
	border-color: rgba(235, 161, 17, 0.3);
}

/* Gallery image hover effect */
#gallery-grid > div img {
	transition: transform 0.5s ease;
}

#gallery-grid > div:hover img {
	transform: scale(1.05);
}
/* ==========================================================================
   BACKGROUND SYSTEM (forest texture) - v2
   ONE continuous texture runs behind the whole page (inside <main>), so there
   are no seams where one section ends and the next begins. Every section
   background is transparent and shows that single texture. Photos fade into it
   using "masks" instead of flat-colour gradients.
   To go back to the old flat dark green: delete this whole block, the
   "IMAGE FADES" block and the "POLISH" block at the bottom of this file.
   ========================================================================== */
html {
	background-color: #184534;
	scroll-padding-top: 84px; /* menu links no longer hide titles under the fixed header */
}
main[role="main"] {
	background-color: #184534; /* shown for a split second while the texture loads */
	background-image: url("../img/bg-forest-tile.jpg");
	background-size: max(100%, 1000px) auto;
	background-repeat: repeat-y;
	background-position: center top;
}
main section,
main footer {
	background: transparent !important; /* also overrides the old inline backgrounds */
}
main .bg-\[\#05130D\],
main .bg-\[\#061710\],
main .bg-\[\#091812\] {
	background-color: transparent;
	background-image: none;
}

/* ==========================================================================
   TEAM SECTION MOBILE FIX - names and bios were getting clipped on phones
   ========================================================================== */
@media (max-width: 767px) {
	/* let each grid column shrink to the screen instead of being forced wider */
	#development-team .grid > * {
		min-width: 0;
	}
	/* the card used overflow:hidden, which is what chops text off - turn it off */
	#development-team article {
		overflow: visible;
		height: auto;
		padding: 24px 20px;
	}
	/* make sure long names/words wrap onto the next line */
	#development-team article > div,
	#development-team article p {
		max-width: 100%;
		overflow-wrap: anywhere;
		white-space: normal;
	}
	/* uppercase names have wide letter-spacing; tighten it a little on small screens */
	#development-team article > div:first-child {
		letter-spacing: 0.08em;
	}
}

/* ==========================================================================
   MATCHING THE NEW GREEN EVERYWHERE ELSE
   The compiled design (app.css) hard-codes many near-black greens like
   #05130D and #0F1B15. These rules re-colour them so cards, buttons, the
   header, the mobile menu and the pop-up windows all sit well on the new
   texture. Each rule overrides one class that already exists in the HTML.
   (Image fades in the PHP templates now end in #184534, the average colour
   of the new background, so there are no dark seams.)
   ========================================================================== */

/* page edge / overscroll colour */
html { background-color: #184534; }

/* any element that used the old darkest greens as a full background */
.bg-\[\#05130D\],
.bg-\[\#061710\] {
	background-color: #14392b;
	background-image: url("../img/bg-forest-tile.jpg");
	background-size: cover;
	background-position: center;
}

/* sticky header (shown after you scroll) and pop-up header/footer bars */
.bg-\[\#05130D\]\/95,
.bg-\[\#06150E\]\/95,
.bg-\[\#071710\]\/95 {
	background-color: rgba(18, 56, 42, 0.95);
}

/* cards, form boxes, circles and buttons that were near-black:
   now a soft, see-through dark green so the texture shows through */
.bg-\[\#0F1B15\],
.bg-\[\#0D1812\],
.bg-\[\#122119\],
.bg-\[\#1F3427\],
.bg-\[\#1F3D30\],
.bg-\[\#122B20\]\/40 {
	background-color: rgba(8, 32, 23, 0.55);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

/* hover colours for the same buttons */
.hover\:bg-\[\#182d22\]:hover,
.hover\:bg-\[\#284f3f\]:hover,
.hover\:bg-\[\#122B20\]:hover,
.hover\:bg-\[\#1A3427\]:hover {
	background-color: rgba(8, 32, 23, 0.8);
}

/* pop-up windows (legal text, brochure): solid deep green so text stays easy to read */
.bg-\[\#071710\],
.bg-\[\#12241B\] {
	background-color: #103226;
	background-image: none;
}
.bg-\[\#0D1812\].rounded-\[20px\] {
	background-color: #103226;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}


/* ==========================================================================
   IMAGE FADES - photos now dissolve into the texture (no flat colour bands)
   ========================================================================== */

/* HERO: photo fades out at the bottom into the page texture */
#hero > div.absolute.inset-0 {
	-webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 150px), transparent 100%);
	mask-image: linear-gradient(180deg, #000 calc(100% - 150px), transparent 100%);
}
#hero .bg-black\/25 { background: transparent; border-top-color: transparent; }
#hero .lg\:hidden a[href^="tel"] {
	white-space: nowrap;
	font-size: clamp(13px, 4vw, 18px); /* phone number stays on one line on small phones */
}

/* RESIDENCES */
#residences div[style*="linear-gradient"] { display: none; } /* old flat-colour fades */
#residences .lg\:hidden > div:first-child > img {
	-webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 55%, transparent 100%);
	mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 55%, transparent 100%);
}
@media (min-width: 1024px) {
	#residences .hidden.lg\:block > div:first-child {
		-webkit-mask-image:
			linear-gradient(90deg, transparent 0, rgba(0, 0, 0, 0.06) 232px, #000 580px),
			linear-gradient(180deg, #000 0, #000 470px, transparent 746px);
		-webkit-mask-composite: source-in;
		mask-image:
			linear-gradient(90deg, transparent 0, rgba(0, 0, 0, 0.06) 232px, #000 580px),
			linear-gradient(180deg, #000 0, #000 470px, transparent 746px);
		mask-composite: intersect;
	}
}

/* AMENITIES: the small image tiles fade into the texture.
   On phones the tiles are stacked, so only the LAST one fades (otherwise there
   would be a green band between every photo). */
#amenities [data-slide-to] > div[style*="linear-gradient"] {
	background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.55) 100%) !important; /* keeps captions readable */
}
#amenities [data-slide-to]:last-child > div[style*="linear-gradient"] { display: none; }
#amenities [data-slide-to]:last-child > img {
	-webkit-mask-image: linear-gradient(180deg, #000 58%, transparent 100%);
	mask-image: linear-gradient(180deg, #000 58%, transparent 100%);
}
@media (min-width: 768px) {
	#amenities [data-slide-to] > div[style*="linear-gradient"] { display: none; }
	#amenities [data-slide-to] > img {
		-webkit-mask-image: linear-gradient(180deg, #000 58%, transparent 100%);
		mask-image: linear-gradient(180deg, #000 58%, transparent 100%);
	}
}
/* caption text on the big slider no longer touches the right edge on phones */
#amenities .absolute.left-6.bottom-6 { right: 24px; }

/* FLOOR PLANS: the dark overlay is no longer needed (texture is already dark) */
#floor-plans > div.absolute.inset-0 { display: none; }

/* LOCATION: styles now live inside template-parts/section-location.php */

/* ==========================================================================
   POLISH - small things that make the site feel finished
   ========================================================================== */

/* booking card was touching the screen edges on phones/tablets */
@media (max-width: 1310px) {
	#booking-form { padding-left: 14px; padding-right: 14px; }
}

/* real date picker: opens when you tap anywhere on the field, dark calendar */
#booking-form input[type="date"] {
	color-scheme: dark;
	min-height: 52px;
	-webkit-appearance: none;
	appearance: none;
}
#booking-form input[type="date"]::-webkit-calendar-picker-indicator {
	opacity: 0;
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	cursor: pointer;
}
#booking-form .relative > svg.lucide-calendar { pointer-events: none; }

/* nicer line breaks in headings and paragraphs */
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

/* people who turn on "reduce motion" in their phone settings get no zooming/sliding */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
	.animate-ken-burns { animation: none !important; }
}

/* keyboard users always see where they are */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
	outline: 2px solid #EBA111;
	outline-offset: 2px;
}

/* ==========================================================================
   MISSING STYLES - these classes are used in the Development Team section,
   the gallery pop-up and the booking form, but were never included in the
   compiled design CSS (app.css), so they did nothing (for example the gallery
   close button jumped to the wrong corner). They are defined here.
   ========================================================================== */
.min-w-0 { min-width: 0; }
.max-w-4xl { max-width: 56rem; }
.max-w-\[800px\] { max-width: 800px; }
.mt-8 { margin-top: 2rem; }
.p-8 { padding: 2rem; }
.top-5 { top: 1.25rem; }
.right-5 { right: 1.25rem; }
.h-\[60px\] { height: 60px; }
.w-\[60px\] { width: 60px; }
.w-\[48px\] { width: 48px; }
.text-\[20px\] { font-size: 20px; }
.pb-\[50px\] { padding-bottom: 50px; }
.rounded-\[10px\] { border-radius: 10px; }
.cursor-not-allowed { cursor: not-allowed; }
.text-\[\#F5A3A3\] { color: #F5A3A3; }
.border-\[\#2D5A45\]\/40 { border-color: rgba(45, 90, 69, 0.4); }
.border-\[\#EBA111\]\/30 { border-color: rgba(235, 161, 17, 0.3); }
.shadow-\[0_30px_80px_-15px_rgba\(0\,0\,0\,0\.5\)\] { box-shadow: 0 30px 80px -15px rgba(0, 0, 0, 0.5); }
@media (hover: hover) {
	.hover\:border-\[\#EBA111\]\/50:hover { border-color: rgba(235, 161, 17, 0.5); }
	.hover\:bg-\[\#EBA111\]:hover { background-color: #EBA111; }
	.hover\:text-\[\#061710\]:hover { color: #061710; }
	.hover\:text-\[\#FFC84D\]:hover { color: #FFC84D; }
	.hover\:shadow-\[0_20px_60px_-10px_rgba\(235\,161\,17\,0\.15\)\]:hover { box-shadow: 0 20px 60px -10px rgba(235, 161, 17, 0.15); }
}
@media (min-width: 640px) {
	.sm\:mt-10 { margin-top: 2.5rem; }
	.sm\:text-\[17px\] { font-size: 17px; }
}
@media (min-width: 768px) {
	.md\:w-\[72px\] { width: 72px; }
	.md\:h-\[72px\] { height: 72px; }
	.md\:text-\[28px\] { font-size: 28px; }
	.md\:gap-6 { gap: 1.5rem; }
	.md\:px-8 { padding-left: 2rem; padding-right: 2rem; }
	.md\:py-8 { padding-top: 2rem; padding-bottom: 2rem; }
}
@media (min-width: 1024px) {
	.lg\:gap-8 { gap: 2rem; }
	.lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
	.xl\:gap-10 { gap: 2.5rem; }
	.xl\:p-12 { padding: 3rem; }
	.xl\:pb-\[80px\] { padding-bottom: 80px; }
	.xl\:text-\[16px\] { font-size: 16px; }
	.xl\:leading-\[26px\] { line-height: 26px; }
}

/* gallery pop-up: close button above the photo grid, long names wrap, scrolls on small screens */
[data-overlay="gallery"] [data-close="gallery"] { z-index: 20; }
[data-overlay="gallery"] #gallery-title { overflow-wrap: anywhere; line-height: 1.15; }
[data-overlay="gallery"] .px-6.py-6 { padding-right: 72px; } /* keeps the title clear of the close button */

/* classes created by the gallery script (photo tiles + caption fade) */
.aspect-\[4\/3\] { aspect-ratio: 4 / 3; }
.bg-gradient-to-t.from-black\/80 {
	background-image: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.35) 45%, transparent 100%);
}

/* ==========================================================================
   GALLERY POP-UP: header + close button stay visible while photos scroll
   (before, the whole card scrolled, so with 3+ photos on a phone the close
   button scrolled out of sight)
   ========================================================================== */
[data-overlay="gallery"] [role="document"] {
	display: flex;
	flex-direction: column;
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);
}
@media (min-width: 768px) {
	[data-overlay="gallery"] [role="document"] {
		max-height: calc(100vh - 64px);
		max-height: calc(100dvh - 64px);
	}
}
/* header (photo, name, title) never scrolls */
[data-overlay="gallery"] [role="document"] > .border-b {
	flex-shrink: 0;
}
/* only the photo area scrolls */
[data-overlay="gallery"] [role="document"] > div:last-child {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
}
/* a little bigger tap target for the close button on phones */
@media (max-width: 767px) {
	[data-overlay="gallery"] [data-close="gallery"] {
		width: 48px;
		height: 48px;
		top: 12px;
		right: 12px;
		background-color: #1F3D30;
		box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
	}
}

/* ==========================================================================
   LEGAL PAGES (Privacy Policy): space for the fixed header + readable text
   ========================================================================== */
.kanopy-legal-wrap { padding-top: 112px; padding-bottom: 64px; }
@media (min-width: 640px)  { .kanopy-legal-wrap { padding-top: 128px; padding-bottom: 80px; } }
@media (min-width: 1024px) { .kanopy-legal-wrap { padding-top: 144px; padding-bottom: 96px; } }
.kanopy-legal-wrap > div.font-jakarta { max-width: 860px; }
.kanopy-legal-wrap h2 { font-family: "Josefin Sans", sans-serif; font-size: 22px; letter-spacing: 0.06em; color: #fff; margin-top: 2rem; }
.kanopy-legal-wrap h3 { font-size: 17px; color: #DEC89F; margin-top: 1.5rem; }
.kanopy-legal-wrap p, .kanopy-legal-wrap li { margin-bottom: 0.9rem; }
.kanopy-legal-wrap ul { list-style: disc; padding-left: 1.4rem; }
.kanopy-legal-wrap ol { list-style: decimal; padding-left: 1.4rem; }
.kanopy-legal-wrap > div.font-jakarta a { color: #DEC89F; text-decoration: underline; } /* links inside the policy text only */
.kanopy-legal-wrap > div:last-child { margin-top: 4rem; padding-top: 2rem; }
.kanopy-legal-wrap > div:last-child a { text-decoration: none; }
.kanopy-legal-wrap > div:last-child a:hover { text-decoration: underline; }
/* the fixed header gets a soft dark bar on inner pages so the logo and menu stay readable over text */
body:not(.home) header[role="banner"] { background: linear-gradient(180deg, rgba(8, 32, 23, 0.92) 0%, rgba(8, 32, 23, 0.6) 100%); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

/* Projects Portfolio button (under the team cards) */
.dt-gallery-trigger { min-height: 52px; }
@media (max-width: 639px) { .dt-gallery-trigger { width: 100%; } }

/* Menu: current section highlight (set by app.js while scrolling) */
header nav a.kanopy-nav-active,
[data-overlay="menu"] nav a.kanopy-nav-active { color: #EBA111 !important; font-weight: 600; }
header nav a.kanopy-nav-active { box-shadow: 0 2px 0 0 #EBA111; }

/* ==========================================================================
   UI/UX AUDIT FIXES (Nov 2026)
   Each rule below fixes one issue found in the audit. Delete a block to undo it.
   ========================================================================== */

/* HOME PAGE TEXTURE: the footer now sits outside <main> (better for screen readers),
   so the forest texture moves to the wrapper around both. Looks exactly the same. */
.kanopy-front {
	background-color: #184534;
	background-image: url("../img/bg-forest-tile.jpg");
	background-size: max(100%, 1000px) auto;
	background-repeat: repeat-y;
	background-position: center top;
}
.kanopy-front > main[role="main"] {
	background: none;
}
.kanopy-front footer {
	background: transparent !important;
}

/* SKIP LINK: hidden until a keyboard user presses Tab, then it appears top-left
   and jumps straight past the menu to the page content. */
.kanopy-skip-link {
	position: absolute;
	left: -9999px;
	top: 12px;
	z-index: 1000;
	padding: 12px 18px;
	border-radius: 999px;
	background: #FDDEAF;
	color: #0F2A1E;
	font: 600 13px/1 "Plus Jakarta Sans", sans-serif;
	letter-spacing: 0.06em;
}
.kanopy-skip-link:focus {
	position: fixed;
	left: 12px;
	outline: 2px solid #EBA111;
	outline-offset: 2px;
}

/* KEYBOARD FOCUS: a clear gold outline on anything you Tab to (mouse clicks are unaffected). */
a:focus-visible,
button:focus-visible,
[role="tab"]:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 2px solid #EBA111;
	outline-offset: 3px;
}

/* AMENITIES: removes the ~200px of empty space under the photo tiles
   (a fixed minimum height + bottom padding left a blank band before the Location section). */
#amenities {
	min-height: 0 !important;
	padding-bottom: 0 !important;
}

/* FLOOR PLANS (phones): the plan-type tabs used to run off the screen with no hint you
   could swipe. Now they wrap onto two lines so every option is visible. */
@media (max-width: 639px) {
	#floor-plans [role="tablist"] {
		display: flex;
		flex-wrap: wrap;
		height: auto;
		min-width: 0;
		width: 100%;
		gap: 4px;
		border-radius: 26px;
	}
	#floor-plans [role="tablist"] > button {
		flex: 1 1 auto;
	}
}

/* PHONE + EMAIL LINKS: bigger tap area (recommended minimum is 24px, ideally 44px)
   without moving anything on the page. */
a[href^="tel:"],
a[href^="mailto:"] {
	padding-block: 8px;
	margin-block: -8px;
}

/* FOOTER PHONE NUMBERS (phones): one number per line instead of a cramped
   "number | number" line that nearly touches the screen edges. */
@media (max-width: 639px) {
	.kanopy-footer-phones {
		flex-direction: column;
		gap: 10px;
	}
	.kanopy-footer-divider {
		display: none;
	}
}

/* BOOKING FORM: the submit button is now the obvious next step (gold, like the hero button)
   instead of dark-on-dark. */
.kanopy-submit {
	background: #FDDEAF;
	border: 1px solid #FDDEAF;
	color: #0F2A1E;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.kanopy-submit:hover {
	background: #FFE7C4;
	border-color: #FFE7C4;
}
.kanopy-submit[disabled] {
	opacity: 0.7;
	cursor: wait;
}

/* PROJECTS PORTFOLIO SECTIONS: when images are assigned to sections (Contractor, Architect ...),
   the pop-up shows a heading above each group instead of one mixed grid. */
#gallery-grid[data-sectioned] {
	display: flex;
	flex-direction: column;
	gap: 40px;
}
.kanopy-gallery-heading {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0 0 16px;
	font-family: "Josefin Sans", sans-serif;
	font-weight: 500;
	font-size: 15px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: #EBA111;
}
/* thin gold line after the heading text */
.kanopy-gallery-heading::after {
	content: "";
	flex: 1;
	height: 1px;
	background: rgba(235, 161, 17, 0.35);
}
@media (min-width: 768px) {
	.kanopy-gallery-heading { font-size: 17px; }
}
