/*
Theme Name: GlobalReach Theme
Theme URI:
Author: GlobalReach Solution
Author URI:
Description: Custom theme for GlobalReach Solution - CINET project.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: globalreach-theme
Tags: custom, minimal
*/

/* =============================================================================
   SECTION 1 — CSS CUSTOM PROPERTIES
============================================================================= */

:root {
	/* Brand colours */
	--clr-primary:       #C9A84C;
	--clr-primary-dark:  #A8852A;
	--clr-primary-light: #E0B75C;
	--clr-accent:        #C9A84C;
	--clr-accent-hover:  #E0B75C;
	--clr-navy:          #07070E;
	--clr-indigo:        #3D3B8E;

	/* Text */
	--clr-text:          #E8E8F0;
	--clr-text-muted:    #8890A4;

	/* Backgrounds */
	--clr-bg:            #07070E;
	--clr-bg-surface:    #0E0E1A;
	--clr-bg-card:       rgba(255, 255, 255, 0.04);
	--clr-bg-light:      rgba(255, 255, 255, 0.06);
	--clr-border:        rgba(255, 255, 255, 0.08);
	--clr-border-gold:   rgba(201, 168, 76, 0.20);

	/* Header */
	--header-bg:              rgba(8, 10, 22, 0.86);
	--header-height:          80px;
	--header-height-compact:  64px;
	--header-shadow:          0 2px 32px rgba(0, 0, 0, 0.50);

	/* Footer */
	--footer-top-bg:     #0A0A14;
	--footer-mid-bg:     #08080F;
	--footer-bottom-bg:  #050509;
	--footer-text:       #6B7280;
	--footer-heading:    #ffffff;
	--footer-link:       #6B7280;
	--footer-link-hover: #C9A84C;
	--footer-border:     rgba(255, 255, 255, 0.06);

	/* Spacing scale */
	--sp-1:  0.25rem;
	--sp-2:  0.5rem;
	--sp-3:  0.75rem;
	--sp-4:  1rem;
	--sp-5:  1.25rem;
	--sp-6:  1.5rem;
	--sp-8:  2rem;
	--sp-10: 2.5rem;
	--sp-12: 3rem;
	--sp-16: 4rem;

	/* Typography — Inter throughout */
	--font-base: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--fz-sm:   0.875rem;
	--fz-base: 1rem;
	--fz-md:   1.0625rem;
	--fz-lg:   1.125rem;

	/* Borders */
	--radius-sm:   4px;
	--radius-md:   8px;
	--radius-full: 999px;

	/* Transitions */
	--t-fast:   150ms ease;
	--t-normal: 220ms ease;

	/* Z-index */
	--z-header: 1000;
}

/* =============================================================================
   SECTION 2 — RESET & BASE
============================================================================= */

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

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-base);
	font-size: var(--fz-base);
	line-height: 1.65;
	color: var(--clr-text);
	background-color: var(--clr-bg);
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-base);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.025em;
	color: var(--clr-text);
}

/* Prevent horizontal scroll when mobile nav is open */
body.menu-open {
	overflow: hidden;
}

a {
	color: inherit;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

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

ul,
ol {
	list-style: none;
}

address {
	font-style: normal;
}

/* =============================================================================
   SECTION 3 — LAYOUT
============================================================================= */

.container {
	max-width: 1240px;
	margin-inline: auto;
	padding-inline: var(--sp-6);
}

.site-main {
	min-height: 60vh;
}

/* =============================================================================
   SECTION 4 — HEADER
============================================================================= */

/* --- 4.1  Header wrapper -------------------------------------------------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: var(--z-header);
	background-color: var(--header-bg);
	-webkit-backdrop-filter: blur(20px);
	backdrop-filter: blur(20px);
	border-bottom: 1px solid var(--clr-border);
	transition:
		box-shadow var(--t-normal),
		background-color var(--t-normal);
}

.site-header.is-scrolled {
	box-shadow: var(--header-shadow);
	border-bottom-color: transparent;
	background-color: rgba(7, 7, 14, 0.95);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-6);
	height: var(--header-height);
	transition: height var(--t-normal);
}

.site-header.is-scrolled .header-inner {
	height: var(--header-height-compact);
}

/* --- 4.2  Logo ------------------------------------------------------------ */

.header-logo {
	flex-shrink: 0;
}

.header-logo .custom-logo-link,
.header-logo .site-logo-link {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
}

.header-logo .custom-logo,
.header-logo img {
	display: block;
	width: auto;
	max-width: 340px;
	max-height: 220px;
	object-fit: contain;
}

.site-logo__globe {
	height: 95px;
	max-height: 95px;
	max-width: none;
}

.site-logo__wordmark-text {
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding-left: 12px;
	border-left: 1.5px solid rgba(201, 168, 76, 0.40);
	line-height: 1;
}

.site-logo__wordmark-main {
	font-family: var(--font-base);
	font-size: 1.375rem;
	font-weight: 900;
	color: #ffffff;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.site-logo__wordmark-sub {
	font-family: var(--font-base);
	font-size: 0.625rem;
	font-weight: 600;
	color: rgba(201, 168, 76, 0.85);
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.header-logo a:hover {
	text-decoration: none;
}

.site-wordmark {
	display: flex;
	flex-direction: column;
	gap: 2px;
	text-decoration: none;
	line-height: 1;
}

.site-wordmark:hover {
	text-decoration: none;
}

.site-wordmark__main {
	font-family: var(--font-base);
	font-size: 1.875rem;
	font-weight: 900;
	color: #ffffff;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	display: block;
}

.site-wordmark__accent {
	font-family: var(--font-base);
	font-size: 1.0625rem;
	font-weight: 700;
	color: var(--clr-primary);
	letter-spacing: 0.20em;
	text-transform: uppercase;
	display: block;
}

/* Footer / dark-background variant */
.site-wordmark--light .site-wordmark__main {
	color: #ffffff;
}

/* --- 4.3  Primary navigation ---------------------------------------------- */

.header-nav {
	flex: 1;
	display: flex;
	justify-content: center;
}

.header-nav .nav-menu {
	display: flex;
	align-items: center;
	gap: var(--sp-1);
}

.header-nav .nav-menu > li {
	position: relative;
}

.header-nav .nav-menu > li > a {
	display: block;
	padding: var(--sp-2) var(--sp-4);
	font-size: var(--fz-sm);
	font-weight: 500;
	color: rgba(255, 255, 255, 0.80);
	border-radius: var(--radius-sm);
	transition: color var(--t-fast), background-color var(--t-fast);
	white-space: nowrap;
	letter-spacing: 0.01em;
}

.header-nav .nav-menu > li > a:hover,
.header-nav .nav-menu > li.current-menu-item > a,
.header-nav .nav-menu > li.current-menu-ancestor > a {
	color: var(--clr-primary);
	background-color: rgba(201, 168, 76, 0.08);
	text-decoration: none;
}

/* --- 4.4  Dropdown sub-menus ---------------------------------------------- */

.header-nav .sub-menu {
	display: none;
	position: absolute;
	top: calc(100% + var(--sp-2));
	left: 0;
	min-width: 200px;
	background-color: #0E0E1A;
	border: 1px solid var(--clr-border);
	border-radius: var(--radius-md);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.40);
	padding: var(--sp-2) 0;
	z-index: 10;
}

.header-nav .menu-item-has-children:hover > .sub-menu,
.header-nav .menu-item-has-children:focus-within > .sub-menu {
	display: block;
}

.header-nav .sub-menu li a {
	display: block;
	padding: var(--sp-2) var(--sp-5);
	font-size: var(--fz-sm);
	color: rgba(255, 255, 255, 0.72);
	white-space: nowrap;
	transition: background-color var(--t-fast), color var(--t-fast);
}

.header-nav .sub-menu li a:hover {
	background-color: rgba(201, 168, 76, 0.08);
	color: var(--clr-primary);
	text-decoration: none;
}

/* --- 4.5  CTA Call button ------------------------------------------------- */

.header-cta {
	flex-shrink: 0;
}

.btn-call {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-2);
	padding: var(--sp-2) var(--sp-5);
	background-color: var(--clr-accent);
	color: #07070E;
	font-size: var(--fz-sm);
	font-weight: 700;
	border-radius: var(--radius-full);
	white-space: nowrap;
	transition: background-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
	text-decoration: none;
	letter-spacing: 0.01em;
}

.btn-call:hover {
	background-color: var(--clr-accent-hover);
	box-shadow: 0 4px 20px rgba(201, 168, 76, 0.40);
	transform: translateY(-1px);
	text-decoration: none;
	color: #07070E;
}

.btn-call:active {
	background-color: var(--clr-primary-dark);
	transform: translateY(0);
	box-shadow: none;
	color: #07070E;
}

.btn-call__icon {
	flex-shrink: 0;
}

/* --- 4.6  Hamburger button (hidden on desktop) ---------------------------- */

.hamburger {
	display: none;
	flex-direction: column;
	justify-content: space-between;
	width: 26px;
	height: 18px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	flex-shrink: 0;
	z-index: calc(var(--z-header) + 1);
}

.hamburger__line {
	display: block;
	width: 100%;
	height: 2px;
	background-color: var(--clr-primary);
	border-radius: 2px;
	transform-origin: center;
	transition: transform var(--t-normal), opacity var(--t-normal), background-color var(--t-normal);
}

.hamburger.is-active .hamburger__line:nth-child(1) {
	transform: translateY(8px) rotate(45deg);
}

.hamburger.is-active .hamburger__line:nth-child(2) {
	opacity: 0;
	transform: scaleX(0);
}

.hamburger.is-active .hamburger__line:nth-child(3) {
	transform: translateY(-8px) rotate(-45deg);
}

/* =============================================================================
   SECTION 5 — FOOTER
============================================================================= */

/* --- 5.1  Footer top (brand + tagline) ------------------------------------ */

.footer-top {
	background-color: var(--footer-top-bg);
	padding: var(--sp-10) 0;
	border-bottom: 1px solid var(--footer-border);
}

.footer-top__inner {
	display: flex;
	align-items: center;
	gap: var(--sp-6);
}

.footer-brand {
	display: flex;
	flex-direction: column;
	gap: var(--sp-3);
}

.footer-tagline {
	font-size: var(--fz-sm);
	color: var(--footer-text);
	max-width: 280px;
	line-height: 1.5;
}

/* --- 5.2  Footer middle (navigation columns) ------------------------------ */

.footer-middle {
	background-color: var(--footer-mid-bg);
	padding: var(--sp-8) 0;
}

.footer-columns {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--sp-6);
	align-items: start;
}

.footer-col__title {
	font-size: var(--fz-sm);
	font-weight: 700;
	color: var(--footer-heading);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-bottom: var(--sp-3);
}

/* --- 5.3  Footer navigation lists ---------------------------------------- */

.footer-nav-list {
	display: flex;
	flex-direction: column;
	gap: var(--sp-3);
}

.footer-nav-list li a,
.footer-nav-list a {
	font-size: var(--fz-sm);
	color: var(--footer-link);
	transition: color var(--t-fast), padding-left var(--t-fast);
	display: inline-block;
}

.footer-nav-list li a:hover,
.footer-nav-list a:hover {
	color: var(--footer-link-hover);
	padding-left: var(--sp-1);
	text-decoration: none;
}

/* --- 5.3b Footer support message ------------------------------------------ */

.footer-support-msg {
	font-size: 0.75rem;
	color: var(--footer-text);
	opacity: 0.65;
	line-height: 1.5;
	margin-top: var(--sp-4);
	font-style: italic;
}

/* --- 5.4  Contact column -------------------------------------------------- */

.footer-contact {
	display: flex;
	flex-direction: column;
	gap: var(--sp-2);
}

.footer-contact__item {
	display: flex;
	align-items: flex-start;
	gap: var(--sp-2);
	font-size: var(--fz-sm);
	color: var(--footer-text);
	line-height: 1.5;
}

.footer-contact__item svg {
	flex-shrink: 0;
	margin-top: 2px;
	opacity: 0.7;
}

.footer-contact__item a {
	color: var(--footer-link);
	transition: color var(--t-fast);
}

.footer-contact__item a:hover {
	color: var(--footer-link-hover);
	text-decoration: none;
}

.footer-contact__address {
	align-items: flex-start;
}

/* --- 5.5  Social icons ---------------------------------------------------- */

.footer-social {
	display: flex;
	flex-direction: column;
	gap: var(--sp-3);
}

.footer-social__link {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-3);
	color: var(--footer-link);
	font-size: var(--fz-sm);
	transition: color var(--t-fast);
}

.footer-social__link svg {
	flex-shrink: 0;
	transition: transform var(--t-fast);
}

.footer-social__link:hover {
	color: var(--footer-link-hover);
	text-decoration: none;
}

.footer-social__link:hover svg {
	transform: scale(1.15);
}

/* --- 5.6  Footer bottom bar ----------------------------------------------- */

.footer-bottom {
	background-color: var(--footer-bottom-bg);
	padding: var(--sp-5) 0;
	border-top: 1px solid var(--footer-border);
}

.footer-bottom__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-4);
	flex-wrap: wrap;
}

.footer-copyright {
	font-size: var(--fz-sm);
	color: var(--footer-text);
}

.footer-copyright a {
	color: var(--footer-text);
	transition: color var(--t-fast);
}

.footer-copyright a:hover {
	color: var(--footer-link-hover);
	text-decoration: none;
}

.footer-bottom-links {
	display: flex;
	align-items: center;
	gap: var(--sp-5);
}

.footer-bottom-links a {
	font-size: var(--fz-sm);
	color: var(--footer-text);
	transition: color var(--t-fast);
}

.footer-bottom-links a:hover {
	color: var(--footer-link-hover);
	text-decoration: none;
}

/* =============================================================================
   SECTION 6 — RESPONSIVE
============================================================================= */

/* --- 6.1  Tablet (≤ 1024px) ----------------------------------------------- */

@media (max-width: 1024px) {

	.footer-columns {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* --- 6.2  Mobile (≤ 768px) ------------------------------------------------ */

@media (max-width: 768px) {

	/* Show hamburger, hide desktop CTA */
	.hamburger {
		display: flex;
	}

	.header-cta {
		display: none;
	}

	/* Full-screen dark drawer */
	.header-nav {
		display: none;
		position: fixed;
		inset: var(--header-height) 0 0 0;
		background-color: #07070E;
		overflow-y: auto;
		padding: var(--sp-6) var(--sp-6) var(--sp-10);
		flex-direction: column;
		justify-content: flex-start;
		align-items: stretch;
		border-top: 1px solid rgba(255, 255, 255, 0.06);
	}

	.header-nav.is-open {
		display: flex;
	}

	.header-nav .nav-menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	/* Large nav links for mobile drawer */
	.header-nav .nav-menu > li > a {
		font-size: 1.5rem;
		font-weight: 600;
		letter-spacing: -0.01em;
		color: rgba(255, 255, 255, 0.85);
		padding: var(--sp-4) var(--sp-2);
		border-bottom: 1px solid rgba(255, 255, 255, 0.06);
		border-radius: 0;
		background-color: transparent;
	}

	.header-nav .nav-menu > li > a:hover {
		color: var(--clr-primary);
		background-color: transparent;
	}

	/* Inline dropdowns on mobile */
	.header-nav .sub-menu {
		display: block;
		position: static;
		box-shadow: none;
		border: none;
		border-radius: 0;
		padding: 0;
		background-color: rgba(255, 255, 255, 0.03);
	}

	.header-nav .sub-menu li a {
		color: rgba(255, 255, 255, 0.60);
		padding-left: var(--sp-8);
		font-size: 1.125rem;
		border-bottom: 1px solid rgba(255, 255, 255, 0.04);
	}

	.header-nav .sub-menu li a:hover {
		color: var(--clr-primary);
		background-color: transparent;
	}

	/* Footer columns: 2 columns */
	.footer-columns {
		grid-template-columns: repeat(2, 1fr);
	}

	/* Footer bottom: stack vertically */
	.footer-bottom__inner {
		flex-direction: column;
		align-items: flex-start;
		gap: var(--sp-3);
	}
}

/* --- 6.3  Small mobile (≤ 480px) ----------------------------------------- */

@media (max-width: 480px) {

	.header-logo .custom-logo,
	.header-logo img {
		max-width: 160px;
		max-height: 44px;
	}

	.site-logo__globe {
		height: 40px;
		max-height: 40px;
	}

	.site-logo__wordmark {
		height: 50px;
		max-height: 50px;
	}

	.footer-columns {
		grid-template-columns: 1fr;
	}

	.footer-col:nth-child(n) {
		grid-column: 1;
	}

	.footer-top__inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.footer-bottom-links {
		flex-direction: column;
		align-items: flex-start;
		gap: var(--sp-2);
	}
}
