/* =========================================================
   Codirextech Technologies — light theme with 3D accents
   ========================================================= */

:root {
	--cx-bg: #F7F9FC;
	--cx-surface: #FFFFFF;
	--cx-border: #E6EBF2;
	--cx-text: #1B2430;
	--cx-text-muted: #5B6472;
	--cx-primary: #3B5BFF;
	--cx-primary-dark: #2A44D6;
	--cx-accent: #06B6D4;
	--cx-shadow-sm: 0 2px 6px rgba(27, 36, 48, 0.06);
	--cx-shadow-md: 0 10px 30px rgba(27, 36, 48, 0.10);
	--cx-shadow-lg: 0 24px 60px rgba(27, 36, 48, 0.16);
	--cx-radius: 16px;
	--cx-container: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--cx-bg);
	color: var(--cx-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

a { color: var(--cx-primary); text-decoration: none; }
a:hover { color: var(--cx-primary-dark); }

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

.container {
	max-width: var(--cx-container);
	margin: 0 auto;
	padding: 0 24px;
}

.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; padding: 10px 16px; z-index: 10000; }
.skip-link:focus { left: 10px; top: 10px; }

/* ---------- Header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.85);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--cx-border);
}

.site-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 76px;
}

.site-branding .site-logo-link {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 700;
	font-size: 1.15rem;
	color: var(--cx-text);
}

.site-logo-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: linear-gradient(135deg, var(--cx-primary), var(--cx-accent));
	color: #fff;
	font-weight: 800;
	box-shadow: var(--cx-shadow-md), inset 0 -3px 0 rgba(0,0,0,0.15);
	transform: perspective(300px) rotateX(8deg);
}

.main-navigation { display: flex; align-items: center; gap: 28px; }

.primary-menu { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.primary-menu a { color: var(--cx-text); font-weight: 500; }
.primary-menu a:hover { color: var(--cx-primary); }

.header-checkout-link { padding: 10px 22px; font-size: 0.9rem; box-shadow: 0 4px 0 var(--cx-primary-dark), var(--cx-shadow-sm); }
.header-checkout-link:hover { box-shadow: 0 6px 0 var(--cx-primary-dark), var(--cx-shadow-md); }

.menu-toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 6px;
}
.menu-toggle span { width: 24px; height: 2px; background: var(--cx-text); border-radius: 2px; }

/* ---------- Buttons (3D press effect) ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 28px;
	border-radius: 12px;
	font-weight: 600;
	font-size: 0.95rem;
	cursor: pointer;
	border: none;
	transition: transform .15s ease, box-shadow .15s ease;
}

.btn-primary {
	background: linear-gradient(135deg, var(--cx-primary), var(--cx-accent));
	color: #fff;
}

.btn-3d {
	box-shadow: 0 6px 0 var(--cx-primary-dark), var(--cx-shadow-md);
}
.btn-3d:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--cx-primary-dark), var(--cx-shadow-lg); color: #fff; }
.btn-3d:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--cx-primary-dark); }

.btn-ghost {
	background: var(--cx-surface);
	color: var(--cx-text);
	border: 1px solid var(--cx-border);
	box-shadow: var(--cx-shadow-sm);
}
.btn-ghost:hover { color: var(--cx-primary); border-color: var(--cx-primary); }

/* ---------- Hero (background video) ---------- */
.hero {
	position: relative;
	min-height: 88vh;
	display: flex;
	align-items: center;
	overflow: hidden;
	color: var(--cx-text);
}

.hero-video-wrap {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.hero-video {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(247, 249, 252, 0.55) 0%, rgba(247, 249, 252, 0.82) 100%);
}

.hero-content {
	position: relative;
	z-index: 1;
	max-width: 760px;
	padding-top: 40px;
	padding-bottom: 40px;
}

.hero-eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--cx-primary);
	margin: 0 0 14px;
}

.hero-title {
	font-size: clamp(2.4rem, 5vw, 3.6rem);
	font-weight: 800;
	margin: 0 0 18px;
	color: var(--cx-text);
}

.hero-subtitle {
	font-size: 1.15rem;
	color: var(--cx-text-muted);
	max-width: 620px;
	margin: 0 0 32px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-actions .btn-ghost { background: rgba(255,255,255,0.7); color: var(--cx-text); border-color: var(--cx-border); }
.hero-actions .btn-ghost:hover { background: #fff; color: var(--cx-primary); }

.hero-stats { display: flex; gap: 40px; margin-top: 48px; flex-wrap: wrap; }
.hero-stat { display: flex; flex-direction: column; }
.hero-stat-number { font-size: 1.8rem; font-weight: 800; color: var(--cx-primary); }
.hero-stat-label { font-size: 0.85rem; color: var(--cx-text-muted); }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-title {
	font-size: 2rem;
	font-weight: 800;
	text-align: center;
	margin: 0 0 48px;
}

/* ---------- 3D cards ---------- */
.card-3d-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	perspective: 1200px;
}

.card-3d {
	background: var(--cx-surface);
	border: 1px solid var(--cx-border);
	border-radius: var(--cx-radius);
	padding: 32px 26px;
	box-shadow: var(--cx-shadow-md);
	transition: transform .35s ease, box-shadow .35s ease;
	transform-style: preserve-3d;
}
.card-3d:hover {
	transform: translateY(-8px) rotateX(4deg) rotateY(-4deg);
	box-shadow: var(--cx-shadow-lg);
}
.card-3d h3 { margin: 6px 0 10px; font-size: 1.15rem; }
.card-3d p { color: var(--cx-text-muted); margin: 0; font-size: 0.95rem; }
.card-3d-icon {
	width: 56px; height: 56px;
	display: flex; align-items: center; justify-content: center;
	border-radius: 14px;
	background: linear-gradient(135deg, #EAF0FF, #E4FBFF);
	color: var(--cx-primary);
	margin-bottom: 6px;
	box-shadow: inset 0 -3px 0 rgba(59,91,255,0.12);
}

/* ---------- Process / how we work ---------- */
.process-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}
.process-step {
	position: relative;
	background: var(--cx-surface);
	border: 1px solid var(--cx-border);
	border-radius: var(--cx-radius);
	padding: 30px 22px 26px;
	text-align: center;
	box-shadow: var(--cx-shadow-sm);
	transition: transform .25s ease, box-shadow .25s ease;
}
.process-step:hover { transform: translateY(-6px); box-shadow: var(--cx-shadow-md); }
.process-step-number {
	position: absolute;
	top: -14px; left: 50%;
	transform: translateX(-50%);
	width: 28px; height: 28px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--cx-primary), var(--cx-accent));
	color: #fff;
	font-size: 0.8rem;
	font-weight: 800;
	display: flex; align-items: center; justify-content: center;
	box-shadow: var(--cx-shadow-sm);
}
.process-step-icon {
	width: 52px; height: 52px;
	margin: 10px auto 14px;
	display: flex; align-items: center; justify-content: center;
	border-radius: 50%;
	background: #F1F4FA;
	color: var(--cx-primary);
}
.process-step h3 { margin: 0 0 8px; font-size: 1.05rem; }
.process-step p { margin: 0; color: var(--cx-text-muted); font-size: 0.9rem; }

/* ---------- Technology stack ---------- */
.section-subtitle { text-align: center; color: var(--cx-text-muted); max-width: 600px; margin: -28px auto 44px; }
.tech-badge-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
	perspective: 1200px;
}
.tech-badge {
	background: var(--cx-surface);
	border: 1px solid var(--cx-border);
	border-radius: 14px;
	padding: 22px 14px;
	text-align: center;
	box-shadow: var(--cx-shadow-sm);
	transition: transform .25s ease, box-shadow .25s ease;
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--cx-text);
}
.tech-badge:hover { transform: translateY(-6px) rotateX(3deg); box-shadow: var(--cx-shadow-md); }
.tech-badge-icon {
	width: 44px; height: 44px;
	margin: 0 auto 10px;
	display: flex; align-items: center; justify-content: center;
	border-radius: 12px;
	background: #F1F4FA;
	color: var(--cx-primary);
}

/* ---------- Reviews teaser ---------- */
.reviews-teaser-cta { text-align: center; margin: 36px 0 0; }

/* ---------- Location map ---------- */
.location-map .map-embed { padding: 8px; margin-bottom: 16px; }
.location-map .map-embed iframe { border-radius: 10px; }
.map-address { text-align: center; color: var(--cx-text-muted); font-size: 0.9rem; }

/* ---------- Cart page bank details card ---------- */
.cx-cart-bank-card { max-width: 560px; margin: 0 auto; }
.cx-cart-bank-header { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.cx-cart-bank-header .cx-invoice-logo {
	width: 44px; height: 44px; flex-shrink: 0;
	border-radius: 12px;
	background: linear-gradient(135deg, var(--cx-primary), var(--cx-accent));
	color: #fff;
	display: flex; align-items: center; justify-content: center; font-weight: 800;
}
.cx-cart-bank-header h2 { margin: 0 0 2px; font-size: 1.2rem; }
.cx-cart-bank-header p { margin: 0; color: var(--cx-text-muted); font-size: 0.9rem; }
.cx-cart-bank-card .cx-bank-table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.cx-cart-bank-card .cx-bank-table th, .cx-cart-bank-card .cx-bank-table td { text-align: left; padding: 9px 4px; border-bottom: 1px solid var(--cx-border); font-size: 0.92rem; }
.cx-cart-bank-card .cx-bank-table th { width: 40%; color: var(--cx-text-muted); font-weight: 600; }
.cx-cart-bank-note { font-size: 0.85rem; color: var(--cx-text-muted); background: #F1F4FA; border-radius: 10px; padding: 12px 14px; margin-bottom: 20px; line-height: 1.5; }
.cx-cart-pay-btn { display: block; text-align: center; width: 100%; }

/* ---------- CTA band ---------- */
.cta-band {
	background: linear-gradient(135deg, #101A33, #1B2C56);
	color: #fff;
	border-radius: 28px;
	margin: 0 24px 90px;
}
.cta-band-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	padding: 56px 48px;
}
.cta-band-inner h2 { margin: 0 0 8px; font-size: 1.6rem; }
.cta-band-inner p { margin: 0; color: #C6D2EE; }

/* ---------- Generic page content ---------- */
.page-content-wrap { padding: 64px 0 90px; }
.page-header-block { text-align: center; margin-bottom: 48px; }
.page-title { font-size: 2.2rem; font-weight: 800; margin: 0 0 12px; }
.page-header-subtitle { color: var(--cx-text-muted); font-size: 1.05rem; }
.page-content { max-width: 820px; margin: 0 auto; }
.page-content h2 { margin-top: 2em; }

/* ---------- Contact page ---------- */
.contact-grid {
	display: grid;
	grid-template-columns: 1fr 1.3fr;
	gap: 28px;
	margin-bottom: 32px;
}
.contact-info h2 { margin-top: 0; }
.contact-details { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-direction: column; gap: 12px; }
.contact-form .form-row { margin-bottom: 18px; }
.contact-form label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; }
.contact-form input,
.contact-form textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--cx-border);
	border-radius: 10px;
	font-size: 0.95rem;
	font-family: inherit;
	background: #FBFCFE;
}
.contact-form input:focus,
.contact-form textarea:focus {
	outline: none;
	border-color: var(--cx-primary);
	box-shadow: 0 0 0 3px rgba(59,91,255,0.15);
}
.form-notice { padding: 14px 16px; border-radius: 10px; margin-bottom: 20px; font-size: 0.92rem; }
.form-notice-success { background: #E7FBF0; color: #14834A; border: 1px solid #BEEED2; }
.form-notice-error { background: #FDEDEE; color: #C22B37; border: 1px solid #F6C6CA; }
.map-embed { padding: 8px; overflow: hidden; }
.map-embed iframe { border-radius: 10px; }

/* ---------- Reviews ---------- */
.reviews-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	perspective: 1200px;
}
.review-card { display: flex; flex-direction: column; gap: 14px; }
.review-stars { color: #E6E9EF; font-size: 1.05rem; letter-spacing: 2px; }
.star-filled { color: #F5A623; }
.review-text { color: var(--cx-text); font-size: 0.95rem; margin: 0; flex-grow: 1; }
.review-author { display: flex; align-items: center; gap: 12px; }
.review-avatar {
	width: 42px; height: 42px; border-radius: 50%;
	background: linear-gradient(135deg, var(--cx-primary), var(--cx-accent));
	color: #fff; font-weight: 700;
	display: flex; align-items: center; justify-content: center;
}
.review-name { font-weight: 700; font-size: 0.92rem; }
.review-role { color: var(--cx-text-muted); font-size: 0.8rem; }

/* ---------- Footer ---------- */
.site-footer { background: #101A33; color: #C6D2EE; padding: 64px 0 24px; margin-top: 60px; }
.footer-grid {
	display: grid;
	grid-template-columns: 1.3fr 1fr 1fr 1fr;
	gap: 32px;
	padding-bottom: 40px;
	border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-tagline { color: #8FA0C6; font-size: 0.9rem; margin-top: 14px; }
.footer-widget-title { color: #fff; font-size: 1rem; margin: 0 0 16px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: #C6D2EE; font-size: 0.92rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom { padding-top: 24px; text-align: center; font-size: 0.85rem; color: #7C8BB0; }

/* ---------- Misc ---------- */
.error-404-wrap { text-align: center; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { background: var(--cx-surface); border: 1px solid var(--cx-border); border-radius: var(--cx-radius); overflow: hidden; box-shadow: var(--cx-shadow-sm); }
.post-card-thumb img { width: 100%; }
.post-card-title { padding: 18px 20px 0; font-size: 1.05rem; }
.post-card-excerpt { padding: 10px 20px 20px; color: var(--cx-text-muted); font-size: 0.9rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.card-3d-grid { grid-template-columns: repeat(2, 1fr); }
	.reviews-grid { grid-template-columns: repeat(2, 1fr); }
	.contact-grid { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.post-grid { grid-template-columns: repeat(2, 1fr); }
	.tech-badge-grid { grid-template-columns: repeat(3, 1fr); }
	.process-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
	.menu-toggle { display: flex; }
	.primary-menu {
		position: absolute;
		top: 76px; left: 0; right: 0;
		background: var(--cx-surface);
		flex-direction: column;
		gap: 0;
		border-bottom: 1px solid var(--cx-border);
		display: none;
		padding: 12px 24px;
	}
	.primary-menu.is-open { display: flex; }
	.primary-menu li { padding: 12px 0; border-bottom: 1px solid var(--cx-border); }
	.card-3d-grid { grid-template-columns: 1fr; }
	.reviews-grid { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; }
	.post-grid { grid-template-columns: 1fr; }
	.tech-badge-grid { grid-template-columns: repeat(2, 1fr); }
	.process-grid { grid-template-columns: 1fr; }
	.cta-band-inner { padding: 40px 28px; }
}
