/* GAFAI CXS — standalone theme styles */

:root {
	--gafai-primary: #0c1a3a;
	--gafai-accent: #e8a020;
	--gafai-accent-hover: #d4920a;
	--gafai-bg: #f4f7f9;
	--gafai-white: #ffffff;
	--gafai-text: #1a1a2e;
	--gafai-text-muted: #64748b;
	--gafai-border: #e2e8f0;
	--gafai-font-body: 'Inter', sans-serif;
	--gafai-font-heading: 'Inter', sans-serif;
	--gafai-font-size-base: 16px;
	--gafai-radius: 8px;
	--gafai-radius-lg: 12px;
	--gafai-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
	--gafai-container: 1280px;
	--gafai-header-height: 76px;
	--gafai-topbar-height: 40px;
	--gafai-sticky-offset: var(--gafai-header-height);
}

body.gafai-has-topbar {
	--gafai-sticky-offset: calc(var(--gafai-header-height) + var(--gafai-topbar-height));
}

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

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--gafai-font-body);
	font-size: var(--gafai-font-size-base);
	line-height: 1.6;
	color: var(--gafai-text);
	background: var(--gafai-bg);
}

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

a { color: var(--gafai-primary); text-decoration: none; }
a:hover { color: var(--gafai-accent); }

h1, h2, h3, h4 {
	font-family: var(--gafai-font-heading);
	line-height: 1.25;
	margin: 0 0 0.5em;
}

.screen-reader-text {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.screen-reader-text:focus {
	position: fixed; top: 0; left: 0; width: auto; height: auto;
	padding: 12px 20px; overflow: visible; clip: auto;
	background: var(--gafai-accent); color: var(--gafai-white); z-index: 99999;
}

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

.gafai-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 10px 20px; border-radius: var(--gafai-radius); font-weight: 600;
	font-size: 0.9375rem; border: 2px solid transparent; cursor: pointer;
	transition: background 0.2s, color 0.2s, border-color 0.2s; text-decoration: none;
}

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

.gafai-btn--outline {
	background: transparent; color: var(--gafai-primary); border-color: var(--gafai-primary);
}
.gafai-btn--outline:hover { background: rgba(12, 26, 58, 0.06); color: var(--gafai-primary); }

/* Header */
.gafai-header {
	position: sticky; top: 0; z-index: 1000;
	background: var(--gafai-white); box-shadow: 0 1px 0 var(--gafai-border);
}

.gafai-header__inner {
	display: flex; align-items: center; justify-content: space-between;
	min-height: var(--gafai-header-height); gap: 24px;
}

.gafai-logo {
	display: flex; align-items: center; gap: 12px;
	color: var(--gafai-primary); text-decoration: none;
}
.gafai-logo:hover { color: var(--gafai-primary); }

.gafai-logo__icon {
	display: flex; align-items: center; justify-content: center;
	width: 48px; height: 48px; border-radius: 50%;
	background: var(--gafai-primary); color: var(--gafai-accent); flex-shrink: 0;
}

.gafai-logo__text { display: flex; flex-direction: column; line-height: 1.2; }
.gafai-logo__text strong { font-size: 1.125rem; font-weight: 700; }
.gafai-logo__text span { font-size: 0.6875rem; color: var(--gafai-text-muted); font-weight: 400; }

.custom-logo-link img { max-height: 60px; width: auto; }

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

.gafai-nav__toggle {
	display: none; background: none; border: none; padding: 8px;
	color: var(--gafai-primary); cursor: pointer;
}

.gafai-menu {
	list-style: none; margin: 0; padding: 0;
	display: flex; align-items: center; gap: 8px;
}

.gafai-menu a {
	display: block; padding: 8px 16px; color: var(--gafai-text);
	font-weight: 500; font-size: 0.9375rem;
	border-bottom: 2px solid transparent;
	transition: color 0.2s, border-color 0.2s;
}

.gafai-menu a:hover,
.gafai-menu .current-menu-item > a,
.gafai-menu .current_page_item > a {
	color: var(--gafai-accent); border-bottom-color: var(--gafai-accent);
}

.gafai-header__actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.gafai-header__cta { white-space: nowrap; }

/* Top bar */
.gafai-topbar {
	background: var(--gafai-primary); color: rgba(255,255,255,0.85); font-size: 0.8125rem;
}

.gafai-topbar__inner {
	display: flex; align-items: center; justify-content: space-between;
	min-height: var(--gafai-topbar-height); gap: 16px;
}

.gafai-topbar__contact, .gafai-topbar__right {
	display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}

.gafai-topbar__item {
	color: rgba(255,255,255,0.85); display: inline-flex; align-items: center; gap: 6px;
}
.gafai-topbar__item:hover { color: var(--gafai-accent); }
.gafai-topbar__tagline { opacity: 0.75; }

/* Page content */
.gafai-page-content { padding: 48px 0 64px; }
.gafai-page-content--portal { padding-top: 32px; padding-bottom: 48px; }

.gafai-page-title { font-size: 2rem; color: var(--gafai-primary); margin-bottom: 24px; }

.gafai-entry-content { max-width: none; width: 100%; }
.gafai-entry-content--portal { max-width: none; }

.gafai-cxs-portal .gafai-entry-content--portal .wp-block-fluent-support-customer-portal {
	background: var(--gafai-white);
	border-radius: var(--gafai-radius-lg);
	box-shadow: var(--gafai-shadow);
}

.gafai-404 { text-align: center; padding-top: 80px; }

/* Footer */
.gafai-footer__brand {
	background: var(--gafai-primary); padding: 48px 0;
	position: relative; overflow: hidden;
}

.gafai-footer__brand::before {
	content: ''; position: absolute; inset: 0;
	background: repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(255,255,255,0.02) 20px, rgba(255,255,255,0.02) 21px);
	pointer-events: none;
}

.gafai-footer__brand-inner { text-align: center; position: relative; z-index: 1; }
.gafai-footer__brand .gafai-logo { justify-content: center; color: var(--gafai-white); }
.gafai-footer__brand .gafai-logo__text span { color: rgba(255,255,255,0.6); }

.gafai-footer__copyright { margin-top: 16px; font-size: 0.8125rem; color: rgba(255,255,255,0.5); }

.gafai-social, .gafai-footer__social {
	list-style: none; margin: 0; padding: 0; display: flex; gap: 10px;
}

.gafai-social a {
	display: flex; align-items: center; justify-content: center;
	width: 28px; height: 28px; border-radius: 50%;
	background: rgba(255,255,255,0.1); color: var(--gafai-white);
}

.gafai-footer__social { justify-content: center; margin-top: 16px; }
.gafai-footer__social a { background: rgba(255,255,255,0.08); }
.gafai-social a:hover { background: var(--gafai-accent); color: var(--gafai-white); }

.gafai-social__icon {
	width: 14px; height: 14px; background: currentColor;
	border-radius: 2px; opacity: 0.9;
}

.gafai-footer__legal {
	list-style: none; margin: 16px 0 0; padding: 0;
	display: flex; justify-content: center; gap: 20px; flex-wrap: wrap;
}

.gafai-footer__legal a { color: rgba(255,255,255,0.6); font-size: 0.8125rem; }
.gafai-footer__legal a:hover { color: var(--gafai-accent); }

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