/* ==========================================================================
   TRINAYA – Global Design System
   Inspired by Constructo Demo11 typography & spacing
   ========================================================================== */

:root {
	/* Brand Colors */
	--color-primary: #004494;
	--color-primary-dark: #003370;
	--color-primary-light: #1a6bb5;
	--color-accent: #f5a623;
	--color-accent-hover: #e09510;

	/* Neutrals */
	--color-white: #ffffff;
	--color-black: #1a1a1a;
	--color-text: #666666;
	--color-text-dark: #333333;
	--color-text-light: #999999;
	--color-border: #e8e8e8;
	--color-bg-light: #f7f7f7;
	--color-bg-dark: #1e2a3a;

	/* Typography – Mulish (self-hosted) */
	--font-heading: 'Mulish', sans-serif;
	--font-body: 'Mulish', sans-serif;

	--fs-h1: clamp(2rem, 4vw, 3.25rem);
	--fs-h2: clamp(1.75rem, 3vw, 2.5rem);
	--fs-h3: clamp(1.25rem, 2vw, 1.75rem);
	--fs-h4: clamp(1.1rem, 1.5vw, 1.375rem);
	--fs-h5: 1rem;
	--fs-h6: 0.875rem;
	--fs-body: 16px;
	--fs-small: 14px;
	--fs-label: 13px;

	--fw-regular: 400;
	--fw-medium: 500;
	--fw-semibold: 600;
	--fw-bold: 700;
	--fw-extrabold: 800;

	--lh-heading: 1.25;
	--lh-body: 1.7;
	--ls-heading: 0.02em;
	--ls-label: 0.12em;

	/* Spacing */
	--space-xs: 8px;
	--space-sm: 16px;
	--space-md: 24px;
	--space-lg: 40px;
	--space-xl: 50px;
	--space-2xl: 60px;
	--space-3xl: 100px;

	/* Container */
	--container-max: 1440px;
	--container-padding: 15px;

	/* Transitions */
	--transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
	--transition-fast: 0.2s ease;

	/* Header */
	--header-height: 90px;
	--header-height-scrolled: 70px;

	/* Shadows */
	--shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
	--shadow-md: 0 8px 30px rgba(0, 0, 0, 0.1);
	--shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Reset & Base
   ========================================================================== */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
	font-size: 16px;
}

body {
	font-family: var(--font-body);
	font-size: var(--fs-body);
	font-weight: var(--fw-regular);
	line-height: var(--lh-body);
	color: var(--color-text);
	background-color: var(--color-white);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

/* Hide native cursor only inside main content (header/footer keep normal cursor).
 * Keep native "hand" cursor for real hyperlinks (UX). */
body.has-cb-cursor #main-content {
	cursor: none;
}
body.has-cb-cursor #main-content a {
	cursor: pointer !important;
}
body.has-cb-cursor #main-content button,
body.has-cb-cursor #main-content [role="button"] {
	cursor: pointer !important;
}
body.has-cb-cursor #main-content input,
body.has-cb-cursor #main-content textarea {
	cursor: text !important;
}

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

a {
	color: var(--color-primary);
	text-decoration: none;
	transition: color var(--transition-fast);
}

a:hover {
	color: var(--color-accent);
}

ul,
ol {
	list-style: none;
}

/* Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
	font-family: var(--font-heading);
	font-weight: var(--fw-bold);
	line-height: var(--lh-heading);
	letter-spacing: var(--ls-heading);
	color: var(--color-text-dark);
}

h1, .h1 { font-size: var(--fs-h1); }
h2, .h2 { font-size: var(--fs-h2); }
h3, .h3 { font-size: var(--fs-h3); }
h4, .h4 { font-size: var(--fs-h4); }
h5, .h5 { font-size: var(--fs-h5); }
h6, .h6 { font-size: var(--fs-h6); }

p {
	margin-bottom: var(--space-sm);
}

p:last-child {
	margin-bottom: 0;
}

.section-label {
	display: inline-block;
	font-family: var(--font-heading);
	font-size: clamp(16px, 1.25vw, 18px);
	font-weight: var(--fw-bold);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #b8720a;
	margin-bottom: var(--space-sm);
	line-height: 1.5;
}

.section-title {
	margin-bottom: var(--space-md);
}

.section-desc {
	max-width: 600px;
	font-size: var(--fs-body);
	line-height: var(--lh-body);
	color: var(--color-text);
}

.text-center .section-desc {
	margin-left: auto;
	margin-right: auto;
}

/* Container & Layout
   ========================================================================== */
.container {
	width: 100%;
	max-width: var(--container-max);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--container-padding);
	padding-right: var(--container-padding);
}

.container-fluid {
	width: 100%;
	padding-left: var(--container-padding);
	padding-right: var(--container-padding);
}

.section {
	padding-top: var(--space-2xl);
	padding-bottom: var(--space-2xl);
}

.section--light {
	background-color: var(--color-bg-light);
}

.section--dark {
	background-color: var(--color-bg-dark);
	color: var(--color-white);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4,
.section--dark h5,
.section--dark h6 {
	color: var(--color-white);
}

.text-center {
	text-align: center;
}

/* Buttons
   ========================================================================== */
a.btn {
	text-decoration: none;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 32px;
	font-family: var(--font-heading);
	font-size: var(--fs-small);
	font-weight: var(--fw-semibold);
	letter-spacing: var(--ls-label);
	text-transform: uppercase;
	border: 2px solid transparent;
	border-radius: 0;
	cursor: pointer;
	transition: all var(--transition);
	white-space: nowrap;
}

.btn--primary {
	background-color: var(--color-accent);
	color: var(--color-white);
	border-color: var(--color-accent);
}

.btn--primary:hover {
	background-color: var(--color-accent-hover);
	border-color: var(--color-accent-hover);
	color: var(--color-white);
}

.btn--outline {
	background-color: transparent;
	color: var(--color-white);
	border-color: var(--color-white);
}

.btn--outline:hover {
	background-color: var(--color-white);
	color: var(--color-primary);
}

.btn--outline-dark {
	background-color: transparent;
	color: var(--color-primary);
	border-color: var(--color-primary);
}

.btn--outline-dark:hover {
	background-color: var(--color-primary);
	color: var(--color-white);
}

/* Image Anime – Buildtown diagonal shine on hover
   ========================================================================== */
.image-anime {
	position: relative;
	overflow: hidden;
	display: block;
	width: 100%;
	margin: 0;
}

.image-anime img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.image-anime::after {
	content: "";
	position: absolute;
	width: 200%;
	height: 0%;
	left: 50%;
	top: 50%;
	background-color: rgba(255, 255, 255, 0.3);
	transform: translate(-50%, -50%) rotate(-45deg);
	z-index: 1;
	pointer-events: none;
}

.image-anime:hover::after {
	height: 250%;
	transition: all 600ms linear;
	background-color: transparent;
}

/* Image Reveal – GSAP scroll curtain (Buildtown .reveal)
   ========================================================================== */
.reveal {
	position: relative;
	display: inline-flex;
	visibility: hidden;
	overflow: hidden;
	width: 100%;
}

.reveal img {
	height: 100%;
	width: 100%;
	object-fit: cover;
	transform-origin: left;
}

/* Text fade-up scroll animation
   ========================================================================== */
.fade-up {
	opacity: 0;
	transform: translateY(40px);
	transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.fade-up--left {
	transform: translateX(-40px);
}

.fade-up--left.is-visible {
	transform: translateX(0);
}

.fade-up--right {
	transform: translateX(40px);
}

.fade-up--right.is-visible {
	transform: translateX(0);
}

.fade-up--delay-1 { transition-delay: 0.1s; }
.fade-up--delay-2 { transition-delay: 0.2s; }
.fade-up--delay-3 { transition-delay: 0.3s; }
.fade-up--delay-4 { transition-delay: 0.4s; }

/* Header
   ========================================================================== */
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	height: var(--header-height);
	background: rgba(255, 255, 255, 0.97);
	box-shadow: var(--shadow-sm);
	transition: height var(--transition), background var(--transition), box-shadow var(--transition);
}

.site-header.is-scrolled {
	height: var(--header-height-scrolled);
	background: rgba(255, 255, 255, 0.98);
	box-shadow: var(--shadow-md);
}

/* Constructo-style transparent header over hero (home page) */
.site-header--overlay {
	background: transparent;
	box-shadow: none;
}

.site-header--overlay .primary-menu .menu-item a {
	color: var(--color-white);
}

.site-header--overlay .primary-menu .menu-item a:hover {
	color: var(--color-accent);
}

.site-header--overlay .primary-menu .current-menu-item > a,
.site-header--overlay .primary-menu .current_page_item > a,
.site-header--overlay .primary-menu .current-menu-ancestor > a,
.site-header--overlay .primary-menu .current_page_parent > a {
	color: var(--color-accent) !important;
	font-weight: var(--fw-bold);
}

.site-header--overlay .site-header__search {
	color: var(--color-white);
}

.site-header--overlay .site-header__search:hover {
	color: var(--color-accent);
}

.site-header--overlay .menu-toggle span {
	background: var(--color-white);
}

.site-header--overlay.is-scrolled {
	background: rgba(255, 255, 255, 0.98);
	box-shadow: var(--shadow-md);
}

.site-header--overlay.is-scrolled .primary-menu .menu-item a {
	color: var(--color-text-dark);
}

.site-header--overlay.is-scrolled .primary-menu .menu-item a:hover {
	color: var(--color-accent);
}

.site-header--overlay.is-scrolled .primary-menu .current-menu-item > a,
.site-header--overlay.is-scrolled .primary-menu .current_page_item > a,
.site-header--overlay.is-scrolled .primary-menu .current-menu-ancestor > a,
.site-header--overlay.is-scrolled .primary-menu .current_page_parent > a {
	color: var(--color-accent);
	font-weight: var(--fw-bold);
}

.site-header--overlay.is-scrolled .site-header__search {
	color: var(--color-text-dark);
}

.site-header--overlay.is-scrolled .menu-toggle span {
	background: var(--color-text-dark);
}

/* WordPress admin bar offset */
body.admin-bar .site-header {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar .site-header {
		top: 46px;
	}

	body.admin-bar .site-header__nav {
		top: 46px;
		height: calc(100vh - 46px);
		padding-top: calc(var(--header-height-scrolled) + 20px);
	}
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 100%;
}

.site-header__logo a {
	display: inline-flex;
	align-items: center;
}

.site-header__logo img {
	height: 55px;
	width: auto;
	transition: height var(--transition), filter var(--transition), mix-blend-mode var(--transition);
}

.site-header.is-scrolled .site-header__logo img {
	height: 45px;
}

/* White logo on transparent header – filter original image (no extra file) */
.site-header--overlay:not(.is-scrolled) .site-header__logo img {
	filter: grayscale(1) brightness(10);
	mix-blend-mode: screen;
}

.site-header--overlay.is-scrolled .site-header__logo img,
.site-header:not(.site-header--overlay) .site-header__logo img {
	filter: none;
	mix-blend-mode: normal;
}

.primary-menu {
	display: flex;
	align-items: center;
	gap: 0;
}

.primary-menu .menu-item a {
	display: block;
	padding: 10px 18px;
	font-family: var(--font-heading);
	font-size: var(--fs-small);
	font-weight: var(--fw-semibold);
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--color-text-dark);
	transition: color var(--transition-fast);
}

.primary-menu .menu-item a:hover {
	color: var(--color-accent);
}

.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a,
.primary-menu .current-menu-ancestor > a,
.primary-menu .current_page_parent > a,
.primary-menu .current_page_ancestor > a {
	color: var(--color-accent);
	font-weight: var(--fw-bold);
}

.site-header__actions {
	display: flex;
	align-items: center;
	gap: var(--space-sm);
}

.site-header__search {
	background: none;
	border: none;
	color: var(--color-text-dark);
	font-size: 18px;
	cursor: pointer;
	padding: 8px;
	transition: color var(--transition-fast);
}

.site-header__search:hover {
	color: var(--color-accent);
}

/* Mobile Menu Toggle */
.menu-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 30px;
	height: 30px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	z-index: 1001;
}

.menu-toggle span {
	display: block;
	width: 100%;
	height: 2px;
	background: var(--color-text-dark);
	transition: all var(--transition);
}

.menu-toggle.is-active span{
    background:var(--color-text-dark) !important;
}

.menu-toggle.is-active span:nth-child(1) {
	transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.is-active span:nth-child(2) {
	opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
	transform: rotate(-45deg) translate(5px, -5px);
}

/* Footer
   ========================================================================== */
.site-footer {
	position: relative;
	background-color: var(--color-bg-dark);
	color: rgba(255, 255, 255, 0.7);
}

.site-footer::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(
		90deg,
		transparent,
		var(--color-accent) 20%,
		#ffd166 50%,
		var(--color-accent) 80%,
		transparent
	);
}

.site-footer a {
	color: rgba(255, 255, 255, 0.7);
	transition: color var(--transition-fast);
}

.site-footer a:hover {
	color: var(--color-accent);
}

.footer-main {
	padding: clamp(48px, 5vw, 72px) 0 clamp(40px, 4vw, 56px);
}

.footer-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(40px, 5vw, 72px);
	align-items: start;
}

.footer-widget {
	min-width: 0;
	text-align: left;
}

.footer-widget__title {
	position: relative;
	font-family: var(--font-heading);
	font-size: var(--fs-h5);
	font-weight: var(--fw-bold);
	color: var(--color-white);
	text-transform: uppercase;
	letter-spacing: var(--ls-label);
	margin-bottom: var(--space-md);
	padding-bottom: var(--space-sm);
}

.footer-widget__title::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 40px;
	height: 2px;
	background: var(--color-primary-light);
}

.footer-widget__logo {
	margin-bottom: var(--space-xs);
}

.footer-widget__logo img {
	height: 50px;
	margin-bottom: var(--space-sm);
	filter: brightness(0) invert(1);
}

.footer-widget p {
	font-size: var(--fs-small);
	line-height: 1.8;
	margin: 0;
	max-width: 38ch;
	color: rgba(255, 255, 255, 0.72);
}

.footer-links {
	list-style: none;
	padding: 0;
	margin: 0;
}

.footer-links li {
	margin-bottom: 10px;
}

.footer-links li:last-child {
	margin-bottom: 0;
}

.footer-links a {
	display: inline-block;
	font-size: var(--fs-small);
	padding-left: 18px;
	position: relative;
}

.footer-links a::before {
	content: '\00BB';
	position: absolute;
	left: 0;
	top: 0;
	color: rgba(255, 255, 255, 0.45);
	transition: color var(--transition-fast);
}

.footer-links a:hover {
	color: var(--color-accent);
}

.footer-links .current-menu-item > a,
.footer-links .current_page_item > a,
.footer-links .current-menu-ancestor > a,
.footer-links .current_page_parent > a {
	color: var(--color-accent);
	font-weight: var(--fw-bold);
}

.footer-links .current-menu-item > a::before,
.footer-links .current_page_item > a::before,
.footer-links .current-menu-ancestor > a::before,
.footer-links .current_page_parent > a::before {
	color: var(--color-accent);
}

.footer-links a:hover::before {
	color: var(--color-accent);
}

.footer-contact {
	list-style: none;
	padding: 0;
	margin: 0;
}

.footer-contact li {
	margin-bottom: 14px;
	font-size: var(--fs-small);
	line-height: 1.7;
}

.footer-contact li:last-child {
	margin-bottom: 0;
}

.footer-contact strong {
	display: block;
	color: var(--color-white);
	font-weight: var(--fw-semibold);
	margin-bottom: 2px;
}

.footer-contact__item--phone,
.footer-contact__item--email {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.footer-contact .footer-contact__icon {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	color: var(--color-accent);
	margin-top: 3px;
}

.footer-contact .footer-contact__icon svg {
	display: block;
	color: var(--color-accent);
	fill: currentColor;
}

.footer-contact__content {
	color: rgba(255, 255, 255, 0.7);
	line-height: 1.7;
}

.footer-contact__content a {
	color: rgba(255, 255, 255, 0.7);
	text-decoration: none;
	transition: color var(--transition-fast);
}

.footer-contact__content a:hover {
	color: var(--color-accent);
}

.footer-contact .footer-contact__content,
.footer-contact .business-address {
	color: rgba(255, 255, 255, 0.7);
	font-style: normal;
}

.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(0, 0, 0, 0.15);
	padding: var(--space-md) 0;
}

.footer-bottom__inner {
	text-align: center;
}

.footer-bottom p {
	font-size: var(--fs-small);
	margin: 0;
	color: rgba(255, 255, 255, 0.55);
}

/* Responsive – Global
   ========================================================================== */
@media (max-width: 1024px) {
	.footer-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--space-lg) clamp(32px, 4vw, 48px);
	}

	.footer-grid .footer-widget:first-child {
		grid-column: 1 / -1;
	}

	.footer-widget p {
		max-width: 52ch;
	}
}

@media (max-width: 991px) {
	.menu-toggle {
		display: flex;
	}

	.site-header--overlay .primary-menu .menu-item a {
	color: #000;
}
.site-header--overlay .primary-menu .menu-item a:active,
.site-header--overlay .primary-menu .menu-item a:focus{
	color: var(--color-accent);
}

	.site-header__nav {
		position: fixed;
		top: 0;
		right: -100%;
		width: 300px;
		height: 100vh;
		background: var(--color-white);
		box-shadow: var(--shadow-lg);
		padding: calc(var(--header-height) + 20px) 30px 30px;
		transition: right var(--transition);
		overflow-y: auto;
		z-index: 999;
	}

	.site-header__nav.is-open {
		right: 0;
	}

	.primary-menu {
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
	}

	.primary-menu .menu-item {
		width: 100%;
		border-bottom: 1px solid var(--color-border);
	}

	.primary-menu .menu-item a {
		padding: 15px 0;
		display: block;
	}

	.site-header__overlay {
		position: fixed;
		inset: 0;
		background: rgba(0, 0, 0, 0.5);
		opacity: 0;
		visibility: hidden;
		transition: all var(--transition);
		z-index: 998;
	}

	.site-header__overlay.is-visible {
		opacity: 1;
		visibility: visible;
	}
}

@media (max-width: 767px) {
	:root {
		--space-2xl: 60px;
		--space-xl: 40px;
		--container-padding: 16px;
	}
	

	#main-content {
		overflow-x: clip;
	}

	/* Avoid horizontal slide-in pushing layout off-center on mobile */
	.fade-up--left,
	.fade-up--right {
		transform: translateY(40px);
	}

	.fade-up--left.is-visible,
	.fade-up--right.is-visible {
		transform: translateY(0);
	}

	.reveal {
		display: block;
		max-width: 100%;
	}

	.footer-grid {
		grid-template-columns: 1fr;
		gap: var(--space-lg);
	}

	.footer-widget {
		text-align: center;
	}

	.footer-widget p {
		max-width: none;
		margin-left: auto;
		margin-right: auto;
	}

	.footer-widget__title::after {
		left: 50%;
		transform: translateX(-50%);
	}

	.footer-widget__logo {
		display: flex;
		justify-content: center;
	}

	.footer-links {
		display: inline-block;
		text-align: left;
	}

	.footer-contact li {
		text-align: center;
	}

	.footer-contact__item--phone,
	.footer-contact__item--email {
		justify-content: center;
	}

	.footer-contact__content {
		text-align: left;
	}

	body.has-cb-cursor #main-content,
	body.has-cb-cursor #main-content button {
		cursor: auto;
	}

	body.has-cb-cursor #main-content a {
		cursor: pointer !important;
	}

	.cb-cursor {
		display: none;
	}
}

@media (max-width: 480px) {
	.btn {
		padding: 12px 24px;
		font-size: 11px;
	}
	.footer-bottom p {
		font-size:12px;
	}
}
