/**
 * LBC IA Suite - Main Styles
 * Modern, performance-focused CSS with animations and interactions
 */

/* ========================================
   CSS RESET & BASE
   ======================================== */

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

html {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

body {
	margin: 0;
	min-height: 100vh;
	text-rendering: optimizeLegibility;
}

img,
picture,
video,
canvas,
svg {
	display: block;
	max-width: 100%;
	height: auto;
}

input,
button,
textarea,
select {
	font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
	overflow-wrap: break-word;
}

/* ========================================
   SKIP LINK (Accessibility)
   ======================================== */

.skip-link {
	position: absolute;
	top: -40px;
	left: 0;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--contrast);
	padding: 8px 16px;
	text-decoration: none;
	z-index: 100000;
	border-radius: 0 0 4px 0;
}

.skip-link:focus {
	top: 0;
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}

/* ========================================
   SCREEN READER ONLY
   ======================================== */

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: var(--wp--preset--color--surface-light);
	clip: auto !important;
	clip-path: none;
	color: var(--wp--preset--color--text-dark);
	display: block;
	font-size: 1rem;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
	border-radius: 4px;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

.site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: rgba(10, 10, 26, 0.8);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header.scrolled {
	background: rgba(10, 10, 26, 0.95);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.header-container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 1rem 1.5rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.site-logo {
	display: flex;
	align-items: center;
	text-decoration: none;
	color: var(--wp--preset--color--contrast);
	font-size: 1.5rem;
	font-weight: 700;
	transition: opacity 0.3s ease;
}

.site-logo:hover {
	opacity: 0.8;
}

.site-logo img {
	height: 40px;
	width: auto;
}

/* Navigation */
.main-navigation {
	display: flex;
	gap: 2rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.main-navigation a {
	text-decoration: none;
	color: var(--wp--preset--color--text-primary);
	font-weight: 500;
	position: relative;
	padding: 0.5rem 0;
	transition: color 0.3s ease;
}

.main-navigation a::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background: var(--wp--preset--gradient--primary-gradient);
	transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-navigation a:hover {
	color: var(--wp--preset--color--contrast);
}

.main-navigation a:hover::after,
.main-navigation a:focus::after {
	width: 100%;
}

.main-navigation .current-menu-item a {
	color: var(--wp--preset--color--primary);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
	display: none;
	background: none;
	border: none;
	color: var(--wp--preset--color--contrast);
	font-size: 1.5rem;
	cursor: pointer;
	padding: 0.5rem;
	margin: 0;
	transition: transform 0.3s ease;
}

.mobile-menu-toggle:hover {
	transform: scale(1.1);
}

@media (max-width: 768px) {
	.mobile-menu-toggle {
		display: block;
	}
	
	.main-navigation {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		background: rgba(10, 10, 26, 0.98);
		padding: 2rem;
		gap: 1rem;
		transform: translateY(-100%);
		opacity: 0;
		pointer-events: none;
		transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	}
	
	.main-navigation.active {
		transform: translateY(0);
		opacity: 1;
		pointer-events: all;
	}
}

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

.hero-section {
	position: relative;
	min-height: 80vh;
	display: flex;
	align-items: center;
	overflow: hidden;
	background: linear-gradient(135deg, #0a0a1a 0%, #1a1a2e 100%);
}

.hero-background {
	position: absolute;
	inset: 0;
	background: 
		radial-gradient(ellipse at top left, rgba(59, 130, 246, 0.15), transparent 50%),
		radial-gradient(ellipse at bottom right, rgba(139, 92, 246, 0.15), transparent 50%);
	animation: heroGradientShift 20s ease-in-out infinite;
}

@keyframes heroGradientShift {
	0%, 100% {
		opacity: 1;
	}
	50% {
		opacity: 0.8;
	}
}

.hero-content {
	position: relative;
	z-index: 1;
	max-width: 1200px;
	margin: 0 auto;
	padding: 4rem 2rem;
	text-align: center;
}

.hero-title {
	font-size: clamp(2.5rem, 5vw, 4rem);
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 1.5rem;
	background: linear-gradient(135deg, #fff 0%, #a8a8a8 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
	font-size: clamp(1.125rem, 2vw, 1.5rem);
	color: var(--wp--preset--color--text-secondary);
	margin-bottom: 2.5rem;
	animation: fadeInUp 0.8s ease-out 0.2s both;
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ========================================
   CARDS & COMPONENTS
   ======================================== */

.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
	padding: 2rem 0;
}

.card {
	background: var(--wp--preset--color--surface);
	border-radius: 12px;
	padding: 2rem;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	border: 1px solid rgba(255, 255, 255, 0.1);
	position: relative;
	overflow: hidden;
}

.card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: var(--wp--preset--gradient--primary-gradient);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s ease;
}

.card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
	border-color: rgba(59, 130, 246, 0.3);
}

.card:hover::before {
	transform: scaleX(1);
}

.card-icon {
	width: 48px;
	height: 48px;
	margin-bottom: 1rem;
	background: var(--wp--preset--gradient--primary-gradient);
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
}

.card-title {
	font-size: 1.25rem;
	font-weight: 600;
	margin-bottom: 0.75rem;
	color: var(--wp--preset--color--contrast);
}

.card-description {
	color: var(--wp--preset--color--text-secondary);
	line-height: 1.6;
}

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

.wp-block-button__link,
.wp-element-button,
.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.875rem 1.75rem;
	border-radius: 0.5rem;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	border: none;
	cursor: pointer;
	position: relative;
	overflow: hidden;
}

.wp-block-button__link::before,
.btn::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.wp-block-button__link:hover::before,
.btn:hover::before {
	opacity: 1;
}

.wp-block-button__link:hover,
.btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 16px rgba(59, 130, 246, 0.3);
}

.wp-block-button__link:active,
.btn:active {
	transform: translateY(0);
}

.wp-block-button__link:focus-visible,
.btn:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 4px;
}

/* Button variants */
.btn-secondary {
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--contrast);
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
	background: var(--wp--preset--color--contrast-dark);
	border-color: var(--wp--preset--color--primary);
}

.btn-outline {
	background: transparent;
	border: 2px solid var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary);
}

.btn-outline:hover {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--contrast);
}

/* ========================================
   SCROLL REVEAL ANIMATION
   ======================================== */

[data-scroll-reveal] {
	opacity: 0;
	transform: translateY(30px);
	transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-scroll-reveal].revealed {
	opacity: 1;
	transform: translateY(0);
}

/* Stagger delays for multiple items */
[data-scroll-reveal]:nth-child(1) { transition-delay: 0s; }
[data-scroll-reveal]:nth-child(2) { transition-delay: 0.1s; }
[data-scroll-reveal]:nth-child(3) { transition-delay: 0.2s; }
[data-scroll-reveal]:nth-child(4) { transition-delay: 0.3s; }
[data-scroll-reveal]:nth-child(5) { transition-delay: 0.4s; }

/* ========================================
   FAQ SECTION
   ======================================== */

.faq-item {
	background: var(--wp--preset--color--surface);
	border-radius: 8px;
	margin-bottom: 1rem;
	border: 1px solid rgba(255, 255, 255, 0.1);
	overflow: hidden;
	transition: all 0.3s ease;
}

.faq-question {
	padding: 1.5rem;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-weight: 600;
	color: var(--wp--preset--color--contrast);
	user-select: none;
	transition: all 0.3s ease;
}

.faq-question:hover {
	background: rgba(59, 130, 246, 0.1);
}

.faq-icon {
	transition: transform 0.3s ease;
	font-size: 1.25rem;
}

.faq-item.active .faq-icon {
	transform: rotate(180deg);
}

.faq-answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
	max-height: 500px;
}

.faq-answer-content {
	padding: 0 1.5rem 1.5rem;
	color: var(--wp--preset--color--text-secondary);
	line-height: 1.6;
}

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

.site-footer {
	background: var(--wp--preset--color--surface);
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding: 3rem 1.5rem 1.5rem;
	margin-top: 4rem;
}

.footer-content {
	max-width: 1400px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 2rem;
	margin-bottom: 2rem;
}

.footer-section h3 {
	font-size: 1.125rem;
	margin-bottom: 1rem;
	color: var(--wp--preset--color--contrast);
}

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

.footer-section li {
	margin-bottom: 0.5rem;
}

.footer-section a {
	color: var(--wp--preset--color--text-secondary);
	text-decoration: none;
	transition: color 0.3s ease;
}

.footer-section a:hover {
	color: var(--wp--preset--color--primary);
}

.footer-bottom {
	text-align: center;
	padding-top: 2rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	color: var(--wp--preset--color--text-secondary);
	font-size: 0.875rem;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.text-gradient {
	background: var(--wp--preset--gradient--primary-gradient);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

.section-padding {
	padding: 4rem 0;
}

@media (min-width: 768px) {
	.section-padding {
		padding: 6rem 0;
	}
}

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

.mb-small { margin-bottom: 1rem; }
.mb-medium { margin-bottom: 2rem; }
.mb-large { margin-bottom: 3rem; }

/* ========================================
   LOADING STATE
   ======================================== */

.loading {
	position: relative;
	pointer-events: none;
	opacity: 0.6;
}

.loading::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 24px;
	height: 24px;
	margin: -12px 0 0 -12px;
	border: 3px solid var(--wp--preset--color--primary);
	border-radius: 50%;
	border-top-color: transparent;
	animation: spin 0.8s linear infinite;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

/* ========================================
   FOCUS STATES (Accessibility)
   ======================================== */

:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 2px;
	border-radius: 4px;
}

button:focus-visible,
a:focus-visible {
	outline-offset: 4px;
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
	.site-header,
	.site-footer,
	.mobile-menu-toggle,
	.skip-link {
		display: none;
	}
	
	body {
		background: white;
		color: black;
	}
	
	a {
		text-decoration: underline;
	}
	
	a[href^="http"]::after {
		content: " (" attr(href) ")";
	}
}
