/*
Theme Name: Equinox
Version: 1.0.0
Text Domain: equinox
Description: Equinox Louvered Roof — bespoke ACF Pro theme built to BPL conventions from the Vendasta mockup (Home + Products).
Author: BPL
*/

/* ==========================================================================
   Project global styles.
   base.css holds the shared BPL framework (barebones). Everything specific to
   the Equinox design lives here in style.css. Color/font values come from the
   Customizer (--color-1..10, --text-color) and ACF Font Settings
   (--font_body / --font_heading); the tokens below are just aliases so section
   CSS can reference friendly names.
   ========================================================================== */

/* === Global === */
:root {
	--font-serif: var(--font_heading, "Cormorant Garamond", Georgia, serif);
	--font-sans: var(--font_body, "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
	--brand: var(--color_3, #E86333);
	--color-text: var(--text-color, #111111);
	--color-muted: #666666;
	--container: 1320px;
	--container-pad: 24px;
	--headerHeight: 150px;
}
@media (min-width: 1024px) {
	:root {
		--container-pad: 48px;
	}
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	font-family: var(--font-sans);
	line-height: 1.6;
	color: var(--color-text);
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-serif {
	font-family: var(--font-serif);
	font-weight: 500;
	line-height: 1.1;
}
.font-sans {
	font-family: var(--font-sans);
}

[id] {
	scroll-margin-top: calc(var(--headerHeight) + 20px);
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--brand);
}
a:hover,
a:focus {
	color: var(--color-1);
}

.container {
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding-left: var(--container-pad);
	padding-right: var(--container-pad);
}

/* Buttons — Equinox primary is a brand pill (overrides the square base .btn).
   GF submits (footer or inline submit field, <button> or <input>) share it so no
   form placement falls back to the grey browser default. */
body .gform_wrapper.gravity-theme [type="submit"],
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .6em;
	background: var(--brand);
	color: #fff;
	font-family: var(--font-sans);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: .15em;
	text-transform: uppercase;
	padding: 1em 1.9em;
	border: none;
	border-radius: 999px;
	cursor: pointer;
	transition: all .3s ease;
	line-height: 1;
}
body .gform_wrapper.gravity-theme [type="submit"]:hover,
body .gform_wrapper.gravity-theme [type="submit"]:focus,
.btn:hover,
.btn:focus {
	background: var(--color-1);
	color: #fff;
}
.btn.icon.icon_right i {
	padding-left: 0;
}
.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 1rem;
	font-family: var(--font-sans);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: .12em;
	text-transform: uppercase;
	transition: all .3s ease;
}
.link-arrow .arrow {
	color: var(--brand);
	transition: transform .3s ease;
}
.link-arrow:hover .arrow {
	transform: translateX(4px);
}

.btn-outline-dark,
.btn-outline-light {
	display: inline-flex;
	align-items: center;
	gap: 1rem;
	border: 1px solid;
	border-radius: 999px;
	padding: .7em 1.6em;
	font-family: var(--font-sans);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: .12em;
	text-transform: uppercase;
	transition: all .3s ease;
	cursor: pointer;
	background: transparent;
}
.btn-outline-dark {
	border-color: var(--color-1);
	color: var(--color-1);
}
.btn-outline-dark:hover {
	background: var(--color-1);
	color: #fff;
}
.btn-outline-light {
	border-color: #fff;
	color: #fff;
}
.btn-outline-light:hover {
	background: #fff;
	color: var(--color-1);
}
.btn-outline-dark .arrow,
.btn-outline-light .arrow {
	color: var(--brand);
	transition: transform .3s ease;
}
.btn-outline-dark:hover .arrow,
.btn-outline-light:hover .arrow {
	transform: translateX(4px);
}

.grayscale-soft {
	filter: grayscale(10%);
}
.grayscale-med {
	filter: grayscale(20%) contrast(1.1);
}

.fc_section {
	position: relative;
}
#main-content>.sections>.fc_section:first-child:not(.fc_hero):not(.fc_testimonials):not(.fc_lead_capture) {
	padding-top: calc(var(--headerHeight) + 40px);
}
.default-content {
	padding: 80px 0;
}
.single-banner img {
	width: 100%;
}
/* === Header/Nav === */
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	/* Single continuous gradient behind the whole header so there is no seam
	   between the logo layer and the nav. The top bar has its own solid bg. */
	background: linear-gradient(to bottom, rgba(0, 0, 0, .8), rgba(0, 0, 0, 0));
	transition: background .3s ease, box-shadow .3s ease;
}
.site-header .top-bar {
	background: #000;
	padding: .5rem 0;
}
.top-bar-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
}
/* Bootstrap (when enabled) adds `.container::before/::after` clearfix pseudo-
   elements that become phantom flex items in these flex rows and push the
   real content out of place. Remove them. */
.top-bar-inner::before,
.top-bar-inner::after,
.nav-inner::before,
.nav-inner::after,
.footer-inner::before,
.footer-inner::after,
.footer-bottom::before,
.footer-bottom::after {
	content: none;
}
.top-phone,
.top-dealer {
	color: var(--brand);
	font-size: 13px;
	font-weight: 600;
}
.top-phone:hover,
.top-dealer:hover {
	color: #fff;
}
.top-links {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-left: auto;
}
.top-architect {
	display: inline-flex;
	align-items: center;
	background: var(--brand);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	line-height: 1;
	padding: .5em 1.1em;
	border-radius: 999px;
	transition: background .3s ease;
}
.top-architect:hover,
.top-architect:focus {
	background: #fff;
	color: var(--color-1);
}

.logo-layer {
	display: flex;
	justify-content: center;
	padding: 14px 0 6px;
	background: transparent;
	transition: padding .3s ease;
}
.site-logo img,
.site-logo .logo-text {
	transition: height .3s ease;
}
.site-logo img {
	height: 88px;
	width: auto;
}
.site-logo .logo-text {
	color: #fff;
	font-family: var(--font-serif);
	font-size: 2rem;
}

.main-nav {
	background: transparent;
	transition: padding .3s ease;
}
.nav-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	padding: 36px 0;
	border-top: none;
	margin-top: 0;
}
.nav-menu {
	display: flex;
	align-items: center;
	gap: 2.75rem;
	list-style: none;
	margin: 0;
	padding: 0;
}
.nav-item {
	position: relative;
}
.nav-link {
	color: #fff;
	font-size: 15px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: .08em;
	padding: 8px 0;
	display: inline-block;
}
.nav-link:hover {
	color: rgba(255, 255, 255, .75);
}
/* Override barebones base.css `.main-nav a { color: var(--color_1) }` (0,1,1),
   which otherwise wins over `.nav-link` and turns the header links dark.
   These load after base.css so equal-specificity selectors win. */
.main-nav a {
	color: #fff;
}
.main-nav a:hover,
.main-nav a:focus {
	color: rgba(255, 255, 255, .75);
}
.main-nav .btn-quote {
	color: #fff;
}
.main-nav .btn-quote:hover {
	color: #fff;
}

.nav-actions {
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	gap: 1.25rem;
}
.nav-search-toggle {
	background: none;
	border: none;
	color: #fff;
	cursor: pointer;
	font-size: 17px;
	padding: 4px;
}
.nav-search-toggle:hover {
	color: rgba(255, 255, 255, .7);
}
.btn-quote {
	display: inline-flex;
	align-items: center;
	background: var(--brand);
	color: #fff;
	font-family: var(--font-sans);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: .15em;
	text-transform: uppercase;
	padding: .8em 1.6em;
	border-radius: 999px;
	transition: background .3s ease;
}
.btn-quote:hover {
	background: var(--color-1);
	color: #fff;
}

body.scrolled .site-header {
	background: rgba(0, 0, 0, .95);
	backdrop-filter: blur(8px);
}
body.scrolled .logo-layer {
	padding: 6px 0 2px;
}
body.scrolled .site-logo img {
	height: 56px;
}
body.scrolled .nav-inner {
	border-top-color: transparent;
	padding: 6px 0 12px;
}
body.scrolled .site-header {
	box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}

.nav-search-panel {
	max-height: 0;
	overflow: hidden;
	background: rgba(0, 0, 0, .95);
	transition: max-height .3s ease, padding .3s ease;
	padding: 0;
}
.nav-search-panel.active {
	max-height: 120px;
	padding: 18px 0;
}
.nav-search-panel .search-form {
	display: flex;
	gap: 10px;
}
.nav-search-panel .search-field {
	flex: 1;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, .4);
	color: #fff;
	padding: 12px 16px;
	border-radius: 0;
	font-size: 15px;
}
.nav-search-panel .search-field::placeholder {
	color: rgba(255, 255, 255, .6);
}
.nav-search-panel .search-submit {
	background: var(--brand);
	color: #fff;
	border: none;
	padding: 0 18px;
	cursor: pointer;
}

.mobile-toggle {
	display: none;
}

/* Mobile drawer */
.mobile-drawer {
	position: fixed;
	top: 0;
	right: -320px;
	bottom: 0;
	width: 300px;
	max-width: 85vw;
	background: #0b0b0b;
	color: #fff;
	z-index: 200;
	transition: right .35s ease;
	overflow-y: auto;
	padding: 20px;
}
body.has-mobile-menu .mobile-drawer {
	right: 0;
}
.mobile-drawer-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 24px;
}
.mobile-logo img {
	height: 54px;
	width: auto;
}
.mobile-close {
	background: none;
	border: none;
	color: #fff;
	font-size: 24px;
	cursor: pointer;
}
.mobile-menu {
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
}
.mobile-menu>li {
	border-bottom: 1px solid rgba(255, 255, 255, .1);
	position: relative;
}
.mobile-menu>li>a {
	display: block;
	color: #fff;
	padding: 14px 0;
	font-size: 15px;
	font-weight: 500;
	letter-spacing: .06em;
	text-transform: uppercase;
}
.mobile-expand {
	position: absolute;
	top: 8px;
	right: 0;
	background: none;
	border: none;
	color: #fff;
	font-size: 15px;
	padding: 6px 10px;
	cursor: pointer;
}
.mobile-submenu {
	list-style: none;
	margin: 0;
	padding: 0 0 10px 12px;
	display: none;
}
.mobile-has-children.open .mobile-submenu {
	display: block;
}
.mobile-has-children.open .mobile-expand {
	transform: rotate(180deg);
}
.mobile-submenu li a {
	display: block;
	color: rgba(255, 255, 255, .7);
	padding: 8px 0;
	font-size: 14px;
}
.mobile-submenu li a:hover {
	color: #fff;
}
.mobile-quote {
	width: 100%;
	justify-content: center;
}
.mobile-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, .5);
	z-index: 150;
	opacity: 0;
	visibility: hidden;
	transition: opacity .3s ease;
}
body.has-mobile-menu .mobile-backdrop {
	opacity: 1;
	visibility: visible;
}

/* === Footer === */
.site-footer {
	background: var(--color-1);
	color: rgba(255, 255, 255, .6);
	padding: 64px 0 40px;
	border-top: 1px solid rgba(255, 255, 255, .1);
}
.footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 48px;
	margin-bottom: 56px;
}
.footer-logo {
	height: 92px;
	width: auto;
	opacity: .85;
	margin-bottom: 20px;
}
.footer-brand .logo-text {
	color: #fff;
	font-family: var(--font-serif);
	font-size: 1.8rem;
	display: inline-block;
	margin-bottom: 20px;
}
.footer-desc {
	font-size: 14px;
	font-weight: 300;
	color: rgba(255, 255, 255, .5);
	max-width: 300px;
}
.footer-col-heading {
	font-family: var(--font-sans);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .15em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .8);
	margin-bottom: 22px;
}
.footer-links {
	list-style: none;
	margin: 0;
	padding: 0;
}
.footer-links li {
	margin-bottom: 14px;
}
.footer-links a {
	color: rgba(255, 255, 255, .5);
	font-size: 14px;
	font-weight: 300;
}
.footer-links a:hover {
	color: #fff;
}
.footer-bottom {
	padding-top: 28px;
	border-top: 1px solid rgba(255, 255, 255, .1);
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}
.footer-copy {
	font-size: 12px;
	color: rgba(255, 255, 255, .4);
	margin: 0;
	font-weight: 300;
}
.footer-legal {
	display: flex;
	gap: 24px;
}
.footer-legal a {
	font-size: 12px;
	color: rgba(255, 255, 255, .4);
	font-weight: 300;
}
.footer-legal a:hover {
	color: #fff;
}

/* === Interior Pages === */
.error-404,
.search-results,
.archive,
.index-content {
	padding-top: calc(var(--headerHeight) + 40px);
}
.gsection_title {
	margin-bottom: 0;
}
body .gform_wrapper.gravity-theme .ginput_container_address span {
	flex-basis: 33.33%;
}
body .gform_wrapper.gravity-theme .ginput_container_address select {
	height: 44px;
}
body .gform_wrapper.gravity-theme .gfield-choice-input+label {
	font-weight: 400;
}
body .gform_wrapper.gravity-theme .gform-field-label .gform-field-label__text {
	font-weight: 400;
}
/* === Media Queries === */
@media screen and (max-width: 991px) {
	/* Neutralise the barebones fixed-header body offset — Equinox uses its own header */
	body {
		margin-top: 0;
	}
	.nav-menu,
	.nav-actions .nav-search-toggle {
		display: none;
	}
	.nav-inner {
		justify-content: space-between;
		border-top: none;
	}
	.mobile-toggle {
		display: inline-flex;
		align-items: center;
		gap: 8px;
		background: none;
		border: none;
		color: #fff;
		cursor: pointer;
		font-size: 14px;
		letter-spacing: .1em;
		text-transform: uppercase;
	}
	.nav-actions {
		position: static;
		transform: none;
	}
	.site-logo img {
		height: 64px;
	}
	.footer-grid {
		grid-template-columns: 1fr 1fr;
		gap: 32px;
	}
	.footer-brand {
		grid-column: 1 / -1;
	}
}
@media screen and (max-width: 600px) {
	/* Keep phone, dealer link and architects button on one line */
	.top-bar-inner {
		gap: 10px;
	}
	.top-phone,
	.top-dealer,
	.top-architect {
		white-space: nowrap;
	}
	.top-phone,
	.top-dealer {
		font-size: 12px;
	}
	.top-links {
		gap: 10px;
	}
	.top-architect {
		font-size: 10px;
		letter-spacing: .05em;
		padding: .55em .9em;
	}
}
@media screen and (max-width: 359px) {
	/* Very narrow phones: stack the phone above the links rather than overflow */
	.top-bar-inner {
		flex-wrap: wrap;
		justify-content: center;
		row-gap: 6px;
	}
	.top-links {
		margin-left: 0;
	}
}
@media screen and (max-width: 600px) {
	/* Compact footer: link columns sit two-up with tighter spacing throughout */
	.site-footer {
		padding: 40px 0 24px;
	}
	.footer-grid {
		grid-template-columns: 1fr 1fr;
		gap: 28px 20px;
		margin-bottom: 28px;
	}
	.footer-logo {
		height: 64px;
		margin-bottom: 12px;
	}
	.footer-desc {
		margin-bottom: 0;
	}
	.footer-col-heading {
		margin-bottom: 12px;
	}
	.footer-links li {
		margin-bottom: 8px;
	}
	.footer-bottom {
		padding-top: 18px;
		gap: 10px;
		flex-direction: column;
		align-items: flex-start;
	}
	.footer-legal {
		flex-wrap: wrap;
		gap: 8px 16px;
	}
	.site-logo img {
		height: 56px;
	}
}
/* === Section Settings: link colours === */
/* Background and text colours from the Section Settings field are written
   straight onto the wrapper as inline properties by template-parts/sections.php.
   Links have no wrapper property to set, so they arrive as CSS variables and are
   applied here. Both rules are gated behind a has_* class that sections.php only
   adds when a colour was actually chosen, so an unstyled section keeps the link
   colours from its own template CSS. The `.sections` prefix lifts specificity
   above the per-section rules in template-parts/css. */
.sections .fc_section.has_link_color a {
	color: var(--settings_link_color);
}
.sections .fc_section.has_link_hover_color a:hover {
	color: var(--settings_link_hover_color);
}
/* === Third-party floating widgets === */
/* Osano's cookie-preferences widget (40px, bottom-left) and the UserWay
   accessibility button (44px at 13px/13px) share the same corner, so UserWay
   covers Osano once it loads. Sit Osano just to the right of UserWay, centred
   on the same baseline. */
body .osano-cm-widget.osano-cm-widget--position_left {
	left: 67px;
	bottom: 15px;
}
