/*
Theme Name: Geek-Tech
Theme URI: https://geek-tech.co.za
Author: Geek-Tech
Author URI: https://geek-tech.co.za
Description: Official Geek-Tech website theme — dark, modern, tech-forward. Web design, development, graphic design and hosting based in Centurion, South Africa.
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: twentytwentyfive
Text Domain: geektech
Tags: dark-theme, business, technology, one-column, two-columns, custom-colors, custom-logo, custom-menu
*/

/* ==========================================
   GLOBAL RESETS & BASE
   ========================================== */

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

html {
	scroll-behavior: smooth;
	color-scheme: only light;
}

body {
	background-color: #0D0D0D;
	color: #F0F0F0;
}

/* ==========================================
   HEADER
   ========================================== */

.geektech-header {
	position: sticky;
	top: 0;
	z-index: 999;
	background-color: rgba(13, 13, 13, 0.95);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	transition: background-color 0.3s ease;
}

.geektech-header > .wp-block-group {
	max-width: 1400px !important;
	margin-left: auto !important;
	margin-right: auto !important;
	padding-top: 16px !important;
	padding-bottom: 16px !important;
	padding-left: clamp(24px, 4vw, 60px) !important;
	padding-right: clamp(24px, 4vw, 60px) !important;
	width: 100%;
	box-sizing: border-box;
	align-items: center !important;
}

.geektech-footer .wp-block-site-logo img {
	height: auto;
	width: 140px;
	filter: brightness(0) invert(1);
	opacity: 0.9;
}

.geektech-header .wp-block-site-logo img {
	height: 60px;
	width: auto;
	filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(107, 143, 255, 0.7)) drop-shadow(0 0 20px rgba(26, 85, 255, 0.4));
	transition: filter 0.3s ease, transform 0.3s ease;
}

.geektech-header .wp-block-site-logo img:hover {
	filter: brightness(0) invert(1) drop-shadow(0 0 12px rgba(107, 143, 255, 0.9)) drop-shadow(0 0 28px rgba(26, 85, 255, 0.6));
	transform: scale(1.04);
}

.geektech-header .wp-block-navigation a {
	color: #F0F0F0 !important;
	text-decoration: none;
	font-size: 0.95rem;
	font-weight: 500;
	letter-spacing: 0.02em;
	transition: color 0.2s ease;
	padding: 6px 0;
	position: relative;
}

.geektech-header .wp-block-navigation a::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 0;
	height: 2px;
	background-color: #1A55FF;
	transition: width 0.25s ease;
}

.geektech-header .wp-block-navigation a:hover {
	color: #1A55FF !important;
}

.geektech-header .wp-block-navigation a:hover::after {
	width: 100%;
}

.geektech-header .wp-block-navigation__responsive-container-open,
.geektech-header .wp-block-navigation__responsive-container-close {
	color: #F0F0F0 !important;
}

.geektech-header .wp-block-navigation__responsive-container.is-menu-open {
	background-color: #0D0D0D !important;
}

/* ==========================================
   HERO SECTION
   ========================================== */

.geektech-hero {
	position: relative;
	overflow: hidden;
}

.geektech-hero::before {
	content: '';
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(ellipse at 60% 40%, rgba(26, 85, 255, 0.12) 0%, transparent 60%),
	            radial-gradient(ellipse at 20% 80%, rgba(26, 85, 255, 0.06) 0%, transparent 50%);
	pointer-events: none;
	z-index: 0;
}

.geektech-hero > * {
	position: relative;
	z-index: 1;
}

.hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(26, 85, 255, 0.12);
	border: 1px solid rgba(26, 85, 255, 0.3);
	color: #6B8FFF;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 6px 16px;
	border-radius: 100px;
	margin-bottom: 24px;
}

.hero-badge::before {
	content: '';
	width: 6px;
	height: 6px;
	background: #1A55FF;
	border-radius: 50%;
	animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: 0.5; transform: scale(0.8); }
}

/* ==========================================
   SERVICE CARDS
   ========================================== */

.wp-block-columns:has(> .wp-block-column > .geektech-service-card) {
	align-items: stretch;
}

.wp-block-columns:has(> .wp-block-column > .geektech-service-card) > .wp-block-column {
	display: flex;
	flex-direction: column;
}

.wp-block-columns:has(> .wp-block-column > .geektech-service-card) > .wp-block-column > .geektech-service-card {
	flex: 1;
}

.geektech-service-card {
	background: #1A1A1A;
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 12px;
	padding: 36px 28px !important;
	transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.geektech-service-card:hover {
	border-color: transparent;
	transform: translateY(-4px);
	box-shadow: 0 16px 48px rgba(26, 85, 255, 0.18),
	            0 0 0 1px rgba(107, 143, 255, 0.35);
}

.service-icon {
	width: 56px;
	height: 56px;
	margin-bottom: 20px;
	filter: drop-shadow(0 0 10px rgba(107, 143, 255, 0.5));
}

/* ==========================================
   SECTION LABELS
   ========================================== */

.section-label {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	margin-bottom: 16px;
}

/* ==========================================
   CTA SECTION
   ========================================== */

.geektech-cta-section {
	position: relative;
	overflow: hidden;
}

.geektech-cta-section::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, #1240CC 0%, #1A55FF 50%, #3D6FFF 100%);
	z-index: 0;
}

.geektech-cta-section > * {
	position: relative;
	z-index: 1;
}

/* ==========================================
   BUTTONS
   ========================================== */

.wp-element-button,
.wp-block-button__link {
	transition: all 0.2s ease !important;
	font-weight: 600 !important;
}

/* Gradient on the primary (filled) button */
.wp-block-button:not(.is-style-outline) .wp-block-button__link {
	background: linear-gradient(135deg, #1240CC 0%, #1A55FF 50%, #3D6FFF 100%) !important;
	border: none !important;
}

.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
	background: linear-gradient(135deg, #0F35BB 0%, #1648EE 50%, #2E5FEE 100%) !important;
	transform: translateY(-1px);
	box-shadow: 0 8px 24px rgba(26, 85, 255, 0.35) !important;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background-color: rgba(240, 240, 240, 0.08) !important;
}

/* CTA section — white button on blue background */
.geektech-cta-section .wp-block-button:not(.is-style-outline) .wp-block-button__link {
	background: #FFFFFF !important;
	color: #1A55FF !important;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
}

.geektech-cta-section .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
	background: #F0F4FF !important;
	transform: translateY(-2px);
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25) !important;
}

/* Nav "Get a Quote" gradient button */
.geektech-header .wp-block-button:not(.is-style-outline) .wp-block-button__link {
	background: linear-gradient(135deg, #1A55FF 0%, #4D7AFF 100%) !important;
	box-shadow: 0 0 20px rgba(26, 85, 255, 0.3);
}

/* Align nav group items (nav links + button) to vertical center */
.geektech-header .wp-block-group.is-nowrap {
	align-items: center !important;
}

.geektech-header .wp-block-buttons {
	align-items: center !important;
	display: flex !important;
}

.geektech-header .wp-block-site-logo {
	display: flex !important;
	align-items: center !important;
}

/* Footer brand heading gradient */
.geektech-footer h3:first-of-type {
	background: linear-gradient(135deg, #6B8FFF 0%, #F0F0F0 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

/* ==========================================
   FOOTER
   ========================================== */

.footer-nav-list {
	list-style: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

.footer-nav-list li {
	margin: 0 0 10px !important;
}

.footer-nav-list li:last-child {
	margin-bottom: 0 !important;
}

.geektech-footer {
	border-top: none;
}

.geektech-footer a {
	color: #888888;
	text-decoration: none;
	transition: color 0.2s ease;
	font-size: 0.9rem;
}

.geektech-footer a:hover {
	color: #1A55FF;
}

.geektech-footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	padding-top: 28px !important;
	padding-bottom: 28px !important;
}

.geektech-footer-bottom .alignwide {
	max-width: 1400px !important;
	margin-left: auto !important;
	margin-right: auto !important;
	padding-left: clamp(24px, 4vw, 60px) !important;
	padding-right: clamp(24px, 4vw, 60px) !important;
	box-sizing: border-box;
	gap: 16px;
}

/* ==========================================
   ABOUT PAGE — TEAM GRID
   ========================================== */

.team-card {
	background: #1A1A1A;
	border: 1px solid rgba(255,255,255,0.06);
	border-radius: 12px;
	overflow: hidden;
	transition: border-color 0.3s ease;
}

.team-card:hover {
	border-color: rgba(26, 85, 255, 0.3);
}

/* ==========================================
   CONTACT PAGE
   ========================================== */

.contact-info-card {
	background: #1A1A1A;
	border: 1px solid rgba(255,255,255,0.06);
	border-radius: 12px;
	padding: 28px !important;
}

/* ==========================================
   STAT COUNTER BLOCKS
   ========================================== */

.stat-block {
	text-align: center;
	padding: 32px 24px;
	border-right: 1px solid rgba(255,255,255,0.06);
}

.stat-block:last-child {
	border-right: none;
}

.stat-number {
	font-size: 3rem !important;
	font-weight: 800 !important;
	line-height: 1 !important;
	display: block;
	margin-bottom: 8px;
}

/* ==========================================
   PAGE HERO (inner pages)
   ========================================== */

.page-hero {
	background: linear-gradient(180deg, #131320 0%, #0D0D0D 100%);
	padding: 80px 0;
	text-align: center;
}

/* ==========================================
   PORTFOLIO GRID
   ========================================== */

.portfolio-item {
	position: relative;
	overflow: hidden;
	border-radius: 12px;
	background: #1A1A1A;
	border: 1px solid rgba(255,255,255,0.06);
	transition: border-color 0.3s ease, transform 0.3s ease;
}

.portfolio-item:hover {
	border-color: rgba(26,85,255,0.4);
	transform: translateY(-4px);
}

/* ==========================================
   GRADIENT UTILITY
   ========================================== */

.gt-gradient-text,
.process-number,
.stat-number,
.section-label {
	background: linear-gradient(135deg, #1A55FF 0%, #6B8FFF 60%, #A78BFF 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

/* ==========================================
   PROCESS STEPS
   ========================================== */

.process-number {
	font-size: 3.2rem;
	font-weight: 800;
	font-family: Manrope, sans-serif;
	line-height: 1;
	margin-bottom: 16px;
}

.process-step {
	position: relative;
	padding-left: 60px;
}

.process-step::before {
	counter-increment: step;
	content: counter(step, decimal-leading-zero);
	position: absolute;
	left: 0;
	top: 0;
	font-size: 2rem;
	font-weight: 800;
	line-height: 1;
	background: linear-gradient(135deg, #1A55FF 0%, #6B8FFF 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

/* ==========================================
   SECTION SEPARATION
   ========================================== */

/* Section separation is handled by alternating backgrounds (#0d0d0d vs #0e1628) */

/* Navy-tinted alternate sections */
.geektech-section-navy {
	background-color: #0e1628 !important;
}

/* ==========================================
   RESPONSIVE ADJUSTMENTS
   ========================================== */

/* Prevent horizontal scroll from alignfull negative margins */
html, body {
	overflow-x: hidden;
	max-width: 100%;
}

/* ── MOBILE MENU OVERLAY — active whenever WP adds is-menu-open ── */

.geektech-header .wp-block-navigation__responsive-container.is-menu-open {
	display: flex !important;
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	width: 100vw !important;
	min-height: 100vh !important;
	max-width: none !important;
	margin: 0 !important;
	z-index: 9998 !important;
	background-color: #08080f !important;
	background-image: linear-gradient(160deg, #08080f 0%, #0c1230 60%, #08080f 100%) !important;
	flex-direction: column !important;
	overflow-y: auto !important;
	padding: 0 !important;
	box-sizing: border-box !important;
}

.geektech-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-close {
	width: 100% !important;
	flex: 1 !important;
	display: flex !important;
	flex-direction: column !important;
}

.geektech-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog {
	width: 100% !important;
	flex: 1 !important;
	display: flex !important;
	flex-direction: column !important;
	padding: 100px 36px 56px !important;
	box-sizing: border-box !important;
}

.geektech-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	display: flex !important;
	flex-direction: column !important;
	width: 100% !important;
	gap: 0 !important;
	align-items: stretch !important;
}

.geektech-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	width: 100% !important;
	border-bottom: 1px solid rgba(255,255,255,0.07) !important;
}

.geektech-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:first-child {
	border-top: 1px solid rgba(255,255,255,0.07) !important;
}

.geektech-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	display: flex !important;
	align-items: center !important;
	width: 100% !important;
	padding: 22px 0 !important;
	font-size: 2rem !important;
	font-weight: 800 !important;
	font-family: Manrope, sans-serif !important;
	color: #F0F0F0 !important;
	text-decoration: none !important;
	letter-spacing: -0.02em !important;
	transition: color 0.2s, padding-left 0.2s !important;
}

.geektech-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:hover {
	color: #1A55FF !important;
	padding-left: 8px !important;
}

/* Override WP's has-base-background-color on the overlay */
.geektech-header .wp-block-navigation__responsive-container.is-menu-open.has-base-background-color {
	background-color: #08080f !important;
}

.geektech-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
	position: fixed !important;
	top: 20px !important;
	right: 20px !important;
	z-index: 9999 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 44px !important;
	height: 44px !important;
	background: rgba(255,255,255,0.08) !important;
	border: 1px solid rgba(255,255,255,0.14) !important;
	border-radius: 10px !important;
	color: #F0F0F0 !important;
	cursor: pointer !important;
}

@media (max-width: 768px) {
	.stat-block {
		border-right: none;
		border-bottom: 1px solid rgba(255,255,255,0.06);
	}

	.stat-block:last-child {
		border-bottom: none;
	}

	.geektech-hero::before {
		background: radial-gradient(ellipse at 50% 30%, rgba(26, 85, 255, 0.1) 0%, transparent 70%);
	}

	/* ── HEADER ── */
	.geektech-header > .wp-block-group {
		padding-left: 20px !important;
		padding-right: 20px !important;
	}

	/* Hamburger button */
	.geektech-header .wp-block-navigation__responsive-container-open {
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
		width: 42px !important;
		height: 42px !important;
		background: rgba(255,255,255,0.06) !important;
		border: 1px solid rgba(255,255,255,0.1) !important;
		border-radius: 8px !important;
		color: #F0F0F0 !important;
		cursor: pointer !important;
	}

	/* Hide the Get a Quote button on mobile */
	.geektech-header .wp-block-buttons {
		display: none !important;
	}

	/* Hide the overlay container when menu is NOT open */
	.geektech-header .wp-block-navigation__responsive-container:not(.is-menu-open) {
		display: none !important;
	}

	/* ── HERO ── */
	.geektech-hero {
		overflow: hidden;
		padding-left: 20px;
		padding-right: 20px;
	}

	/* ── FOOTER COLUMNS ── */
	.geektech-footer > .wp-block-group.alignwide {
		flex-direction: column !important;
		gap: 40px !important;
		align-items: center !important;
	}

	.geektech-footer > .wp-block-group.alignwide > .wp-block-group {
		width: 100% !important;
		max-width: 100% !important;
		text-align: center !important;
		align-items: center !important;
	}

	/* Center footer logo */
	.geektech-footer .wp-block-site-logo {
		margin-left: auto !important;
		margin-right: auto !important;
	}

	/* Override WordPress left-justification in footer constrained columns */
	.geektech-footer .is-layout-constrained.is-content-justification-left > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
		margin-left: auto !important;
		margin-right: auto !important;
	}

	/* Center all text inside footer columns */
	.geektech-footer > .wp-block-group.alignwide > .wp-block-group h5,
	.geektech-footer > .wp-block-group.alignwide > .wp-block-group p,
	.geektech-footer > .wp-block-group.alignwide > .wp-block-group li,
	.geektech-footer > .wp-block-group.alignwide > .wp-block-group a,
	.geektech-footer .footer-nav-list {
		text-align: center !important;
	}

	/* Center social icons row */
	.geektech-footer .wp-block-group[style*="margin-top:8px"],
	.geektech-footer .wp-block-group[style*="margin-top: 8px"] {
		justify-content: center !important;
	}

	/* Center contact info flex items */
	.geektech-footer [style*="display:flex"][style*="flex-direction:column"],
	.geektech-footer [style*="display: flex"][style*="flex-direction: column"] {
		align-items: center !important;
	}

	.geektech-footer-bottom .alignwide {
		flex-direction: column !important;
		gap: 12px !important;
		text-align: center;
	}

	/* ── WHY SECTION — stack columns ── */
	.wp-block-columns {
		flex-wrap: wrap !important;
	}

	.wp-block-columns .wp-block-column {
		flex-basis: 100% !important;
		min-width: 100% !important;
	}

	/* ── INLINE GRID OVERRIDES (stats, process, about stats) ── */
	[style*="grid-template-columns:repeat(3,1fr)"],
	[style*="grid-template-columns:repeat(auto-fit"] {
		grid-template-columns: 1fr !important;
	}

	/* Stats — keep 3 side-by-side since values are short */
	[style*="grid-template-columns:repeat(3,1fr)"] {
		grid-template-columns: repeat(3, 1fr) !important;
	}

	/* Bento / capability grid — single column, reset span */
	#gt-bento {
		grid-template-columns: 1fr !important;
		grid-template-rows: auto !important;
	}

	#gt-bento > [style*="grid-column:span 2"],
	#gt-bento > [style*="grid-column: span 2"] {
		grid-column: span 1 !important;
	}

	/* About page stats — 2 columns */
	[style*="grid-template-columns:repeat(auto-fit,minmax(180px,1fr))"] {
		grid-template-columns: repeat(2, 1fr) !important;
	}

	/* Process steps — 2 columns */
	[style*="grid-template-columns:repeat(auto-fit,minmax(220px,1fr))"] {
		grid-template-columns: repeat(2, 1fr) !important;
	}

	/* Portfolio case study — stack to single column */
	.gt-case-study {
		grid-template-columns: 1fr !important;
	}

	/* Keep 3-column grids (stat cards) as 3 columns on mobile — needs high specificity to beat WP theme's [style][style] rule */
	.gt-grid-3[style] {
		grid-template-columns: repeat(3, 1fr) !important;
	}

	/* Trusted-by logo strip — stack logos centred on mobile */
	.gt-logo-strip {
		flex-direction: column !important;
		align-items: center !important;
		gap: 32px !important;
	}

	/* Hero heading — prevent overflow on small screens */
	.geektech-hero .wp-block-heading {
		font-size: clamp(1.8rem, 7.5vw, 2.8rem) !important;
	}

	/* 4-column stats bar — collapse to 2×2 */
	[style*="grid-template-columns:repeat(4,1fr)"] {
		grid-template-columns: repeat(2, 1fr) !important;
	}

	/* Bento grid — single column on mobile */
	[style*="grid-template-columns:repeat(3,1fr)"][style*="bento"],
	.geektech-bento-grid {
		grid-template-columns: 1fr !important;
	}

	/* Ensure inline bento grid collapses */
	[style*="display:grid"][style*="grid-template-columns:repeat(3"] {
		grid-template-columns: 1fr !important;
	}
}
