/*
Theme Name: Aysa AI Theme
Theme URI: https://aysa.ai/
Author: Aysa AI
Author URI: https://aysa.ai/
Description: A custom classic WordPress theme foundation for Aysa AI, starting with a Vercel-inspired header and footer system.
Version: 0.1.4
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
Text Domain: aysa-ai-theme
Tags: custom-logo, custom-menu, featured-images, translation-ready, accessibility-ready
*/

@font-face {
	font-display: swap;
	font-family: "Geist";
	font-style: normal;
	font-weight: 400;
	src: url("assets/fonts/geist-sans-latin-400-normal.woff2") format("woff2");
}

@font-face {
	font-display: swap;
	font-family: "Geist";
	font-style: normal;
	font-weight: 600;
	src: url("assets/fonts/geist-sans-latin-600-normal.woff2") format("woff2");
}

:root {
	--aysa-color-bg: #fff;
	--aysa-color-bg-soft: #fafafa;
	--aysa-color-surface: #fff;
	--aysa-color-text: #080808;
	--aysa-color-muted: #666;
	--aysa-color-subtle: #8a8a8a;
	--aysa-color-border: #eaeaea;
	--aysa-color-border-strong: #d8d8d8;
	--aysa-color-accent: #e11937;
	--aysa-color-accent-dark: #b90f28;
	--aysa-color-focus: rgba(225, 25, 55, 0.28);
	--aysa-font-sans: "Geist", Inter, Arial, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--aysa-container: 1200px;
	--aysa-header-height: 72px;
	--aysa-radius-sm: 6px;
	--aysa-radius-md: 8px;
	--aysa-shadow-popover: 0 24px 70px rgba(0, 0, 0, 0.12);
	--aysa-z-header: 50;
	--aysa-z-drawer: 100;
}

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

html {
	background: var(--aysa-color-bg);
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--aysa-color-bg);
	color: var(--aysa-color-text);
	font-family: var(--aysa-font-sans);
	font-size: 16px;
	line-height: 1.5;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

body.drawer-open {
	overflow: hidden;
}

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

a:hover {
	color: var(--aysa-color-accent);
}

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

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

:focus-visible {
	border-radius: var(--aysa-radius-sm);
	box-shadow: 0 0 0 4px var(--aysa-color-focus);
	outline: 2px solid transparent;
	outline-offset: 2px;
}

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

.screen-reader-text:focus {
	clip: auto;
	background: var(--aysa-color-text);
	border-radius: var(--aysa-radius-sm);
	color: var(--aysa-color-bg);
	height: auto;
	left: 16px;
	padding: 10px 12px;
	top: 16px;
	width: auto;
	z-index: calc(var(--aysa-z-drawer) + 1);
}

.site {
	min-height: 100vh;
}

.site-header {
	background: rgba(255, 255, 255, 0.86);
	border-bottom: 1px solid var(--aysa-color-border);
	position: sticky;
	top: 0;
	z-index: var(--aysa-z-header);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
}

.site-header__inner {
	align-items: center;
	display: grid;
	gap: 20px;
	grid-template-columns: auto minmax(0, 1fr) auto;
	height: var(--aysa-header-height);
	margin: 0 auto;
	max-width: var(--aysa-container);
	padding: 0 24px;
}

.site-brand,
.custom-logo-link {
	align-items: center;
	display: inline-flex;
	flex: 0 0 auto;
	line-height: 1;
	max-width: 148px;
	min-width: 106px;
}

.site-brand__logo,
.custom-logo {
	height: auto;
	max-height: 34px;
	width: auto;
}

.site-nav--desktop {
	align-items: center;
	display: flex;
	justify-content: center;
	min-width: 0;
}

.primary-menu,
.primary-menu .sub-menu,
.mobile-menu,
.mobile-menu .sub-menu,
.mega-menu ul,
.compact-menu ul,
.footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.primary-menu {
	align-items: center;
	display: flex;
	gap: 2px;
	justify-content: center;
}

.primary-menu > .menu-item {
	position: relative;
}

.primary-menu > .menu-item-has-children::after {
	content: "";
	height: 16px;
	left: 0;
	position: absolute;
	right: 0;
	top: 100%;
}

.primary-menu a {
	align-items: center;
	border-radius: var(--aysa-radius-sm);
	color: var(--aysa-color-muted);
	display: inline-flex;
	font-size: 14px;
	font-weight: 400;
	min-height: 36px;
	padding: 8px 12px;
	transition: background-color 160ms ease, color 160ms ease;
	white-space: nowrap;
}

.primary-menu a:hover,
.primary-menu a:focus-visible,
.primary-menu > .current-menu-item > a,
.primary-menu > .current-menu-ancestor > a {
	background: var(--aysa-color-bg-soft);
	color: var(--aysa-color-text);
}

.primary-menu .menu-item-has-children > a::after {
	border-bottom: 1px solid currentColor;
	border-right: 1px solid currentColor;
	content: "";
	height: 6px;
	margin-left: 8px;
	transform: rotate(45deg) translateY(-2px);
	width: 6px;
}

.primary-menu .sub-menu {
	background: var(--aysa-color-surface);
	border: 1px solid var(--aysa-color-border);
	border-radius: 12px;
	box-shadow: var(--aysa-shadow-popover);
	display: grid;
	gap: 4px;
	left: 50%;
	min-width: 220px;
	opacity: 0;
	padding: 8px;
	pointer-events: none;
	position: absolute;
	top: calc(100% + 8px);
	transform: translate(-50%, 3px);
	transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
	visibility: hidden;
}

.primary-menu .mega-menu {
	gap: 40px;
	grid-template-columns: repeat(3, minmax(210px, 1fr));
	max-width: min(760px, calc(100vw - 32px));
	padding: 22px 20px;
	width: min(760px, calc(100vw - 32px));
}

.primary-menu .compact-menu {
	min-width: 310px;
	padding: 12px;
}

.primary-menu .menu-item:hover > .sub-menu,
.primary-menu .menu-item:focus-within > .sub-menu {
	opacity: 1;
	pointer-events: auto;
	transform: translate(-50%, 0);
	visibility: visible;
}

.primary-menu .sub-menu a {
	color: var(--aysa-color-text);
	justify-content: flex-start;
	min-height: 38px;
	width: 100%;
}

.primary-menu .sub-menu a:hover,
.primary-menu .sub-menu a:focus-visible {
	background: var(--aysa-color-bg-soft);
	color: var(--aysa-color-accent);
}

.mega-menu__column h3 {
	color: var(--aysa-color-muted);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.2;
	margin: 0 0 14px;
}

.mega-menu__column ul,
.compact-menu ul {
	display: grid;
	gap: 12px;
}

.primary-menu .mega-menu__item {
	align-items: flex-start;
	border-radius: var(--aysa-radius-md);
	color: var(--aysa-color-text);
	display: grid;
	gap: 12px;
	grid-template-columns: 34px minmax(0, 1fr);
	min-height: auto;
	padding: 0;
	white-space: normal;
}

.primary-menu .mega-menu__item:hover,
.primary-menu .mega-menu__item:focus-visible {
	background: transparent;
	color: var(--aysa-color-text);
}

.mega-menu__item span:last-child {
	display: grid;
	gap: 2px;
	min-width: 0;
}

.mega-menu__item strong {
	color: var(--aysa-color-text);
	display: block;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.25;
	transition: color 160ms ease;
}

.mega-menu__item small {
	color: var(--aysa-color-muted);
	display: block;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.3;
}

.mega-menu__item:hover strong,
.mega-menu__item:focus-visible strong {
	color: var(--aysa-color-accent);
}

.mega-menu__icon {
	background: #fff;
	border: 1px solid var(--aysa-color-border);
	border-radius: var(--aysa-radius-sm);
	color: var(--aysa-color-text);
	display: inline-flex;
	height: 34px;
	position: relative;
	width: 34px;
}

.mega-menu__icon::before,
.mega-menu__icon::after {
	content: "";
	position: absolute;
}

.mega-menu__icon--model::before {
	background: currentColor;
	border-radius: 999px;
	box-shadow: 8px 8px 0 currentColor, 16px 0 0 currentColor, 8px -8px 0 currentColor;
	height: 3px;
	left: 7px;
	top: 15px;
	width: 3px;
}

.mega-menu__icon--sandbox::before,
.mega-menu__icon--sdk::before {
	border: 1.5px solid currentColor;
	height: 13px;
	left: 10px;
	top: 9px;
	transform: rotate(30deg);
	width: 13px;
}

.mega-menu__icon--sandbox::after,
.mega-menu__icon--sdk::after {
	border-left: 1.5px solid currentColor;
	height: 18px;
	left: 16px;
	top: 8px;
	transform: rotate(-30deg);
}

.mega-menu__icon--agent::before,
.mega-menu__icon--target::before {
	border: 1.5px solid currentColor;
	border-radius: 50%;
	height: 16px;
	left: 8px;
	top: 8px;
	width: 16px;
}

.mega-menu__icon--agent::after,
.mega-menu__icon--target::after {
	background: currentColor;
	border-radius: 999px;
	box-shadow: 0 5px 0 currentColor, 5px 0 0 currentColor;
	height: 3px;
	left: 15px;
	top: 15px;
	width: 3px;
}

.mega-menu__icon--voice::before {
	border: 1.5px solid currentColor;
	border-radius: 10px 10px 10px 2px;
	height: 12px;
	left: 8px;
	top: 10px;
	width: 18px;
}

.mega-menu__icon--voice::after {
	border-bottom: 1.5px solid currentColor;
	border-right: 1.5px solid currentColor;
	height: 5px;
	left: 13px;
	top: 13px;
	transform: rotate(45deg);
	width: 5px;
}

.mega-menu__icon--pipeline::before,
.mega-menu__icon--docs::before {
	border: 1.5px solid currentColor;
	height: 14px;
	left: 8px;
	top: 9px;
	width: 18px;
}

.mega-menu__icon--pipeline::after,
.mega-menu__icon--docs::after {
	background: currentColor;
	height: 1.5px;
	left: 11px;
	top: 14px;
	width: 12px;
	box-shadow: 0 5px 0 currentColor;
}

.mega-menu__icon--delivery::before {
	border: 1.5px solid currentColor;
	border-radius: 50%;
	height: 18px;
	left: 8px;
	top: 8px;
	width: 18px;
}

.mega-menu__icon--delivery::after {
	border-left: 1.5px solid currentColor;
	border-right: 1.5px solid currentColor;
	height: 16px;
	left: 13px;
	top: 9px;
	width: 8px;
}

.mega-menu__icon--compute::before,
.mega-menu__icon--grid::before {
	background: currentColor;
	height: 16px;
	left: 16px;
	top: 8px;
	width: 1.5px;
	box-shadow: -8px 8px 0 currentColor, 8px 8px 0 currentColor;
}

.mega-menu__icon--compute::after,
.mega-menu__icon--grid::after {
	background: currentColor;
	height: 1.5px;
	left: 8px;
	top: 16px;
	width: 18px;
	box-shadow: 0 8px 0 currentColor;
}

.mega-menu__icon--nodes::before {
	background: currentColor;
	border-radius: 2px;
	box-shadow: 8px 8px 0 currentColor, 16px 8px 0 currentColor, 8px 16px 0 currentColor;
	height: 4px;
	left: 6px;
	top: 6px;
	width: 4px;
}

.mega-menu__icon--chart::before {
	background: currentColor;
	bottom: 8px;
	height: 9px;
	left: 10px;
	width: 1.5px;
	box-shadow: 7px -5px 0 currentColor, 14px -10px 0 currentColor;
}

.mega-menu__icon--bot::before {
	border: 1.5px solid currentColor;
	border-radius: 4px;
	height: 13px;
	left: 8px;
	top: 12px;
	width: 18px;
}

.mega-menu__icon--bot::after {
	background: currentColor;
	border-radius: 999px;
	box-shadow: 8px 0 0 currentColor;
	height: 3px;
	left: 12px;
	top: 17px;
	width: 3px;
}

.mega-menu__icon--identity::before,
.mega-menu__icon--shield::before {
	border: 1.5px solid currentColor;
	border-radius: 9px 9px 12px 12px;
	height: 18px;
	left: 10px;
	top: 7px;
	width: 14px;
}

.mega-menu__icon--identity::after,
.mega-menu__icon--shield::after {
	border-bottom: 1.5px solid currentColor;
	border-right: 1.5px solid currentColor;
	height: 6px;
	left: 14px;
	top: 12px;
	transform: rotate(45deg);
	width: 4px;
}

.mega-menu__icon--firewall::before {
	border: 1.5px solid currentColor;
	height: 17px;
	left: 8px;
	top: 8px;
	width: 18px;
}

.mega-menu__icon--firewall::after {
	background: currentColor;
	height: 1.5px;
	left: 8px;
	top: 14px;
	width: 18px;
	box-shadow: 0 6px 0 currentColor;
}

.mega-menu__icon--book::before {
	border: 1.5px solid currentColor;
	border-radius: 2px;
	height: 17px;
	left: 9px;
	top: 8px;
	width: 16px;
}

.mega-menu__icon--book::after {
	background: currentColor;
	height: 14px;
	left: 15px;
	top: 10px;
	width: 1.5px;
}

.mega-menu__icon--spark::before {
	background: currentColor;
	height: 18px;
	left: 16px;
	top: 8px;
	width: 1.5px;
}

.mega-menu__icon--spark::after {
	background: currentColor;
	height: 1.5px;
	left: 8px;
	top: 16px;
	width: 18px;
	box-shadow: 0 0 0 0 currentColor;
	transform: rotate(45deg);
}

.site-header__actions {
	align-items: center;
	display: flex;
	gap: 10px;
	justify-content: flex-end;
	position: relative;
	z-index: calc(var(--aysa-z-header) + 1);
}

.site-header__cta,
.mobile-drawer__cta {
	align-items: center;
	background: var(--aysa-color-text);
	border: 1px solid var(--aysa-color-text);
	border-radius: var(--aysa-radius-sm);
	color: var(--aysa-color-bg);
	display: inline-flex;
	font-size: 14px;
	font-weight: 600;
	height: 36px;
	justify-content: center;
	padding: 0 14px;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
	white-space: nowrap;
}

.site-header__cta:hover,
.site-header__cta:focus-visible,
.mobile-drawer__cta:hover,
.mobile-drawer__cta:focus-visible {
	background: var(--aysa-color-accent);
	border-color: var(--aysa-color-accent);
	color: var(--aysa-color-bg);
}

.menu-toggle,
.mobile-drawer__close {
	align-items: center;
	background: transparent;
	border: 1px solid var(--aysa-color-border);
	border-radius: var(--aysa-radius-sm);
	color: var(--aysa-color-text);
	cursor: pointer;
	display: none;
	height: 38px;
	justify-content: center;
	padding: 0;
	width: 38px;
}

.menu-toggle__line {
	background: currentColor;
	border-radius: 999px;
	display: block;
	height: 1.5px;
	position: absolute;
	width: 16px;
}

.menu-toggle__line:first-child {
	transform: translateY(-4px);
}

.menu-toggle__line:nth-child(2) {
	transform: translateY(4px);
}

.mobile-drawer {
	background: var(--aysa-color-bg);
	inset: 0;
	opacity: 0;
	overflow-y: auto;
	padding: 0 24px 32px;
	pointer-events: none;
	position: fixed;
	transform: translateY(-8px);
	transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
	visibility: hidden;
	z-index: var(--aysa-z-drawer);
}

.mobile-drawer.is-open {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
	visibility: visible;
}

.mobile-drawer__bar {
	align-items: center;
	border-bottom: 1px solid var(--aysa-color-border);
	display: flex;
	height: var(--aysa-header-height);
	justify-content: space-between;
	margin-bottom: 28px;
}

.mobile-drawer__close {
	display: inline-flex;
	font-size: 28px;
	line-height: 1;
}

.mobile-menu {
	display: grid;
	gap: 4px;
}

.mobile-menu a {
	border-radius: var(--aysa-radius-sm);
	color: var(--aysa-color-text);
	display: flex;
	font-size: 24px;
	font-weight: 600;
	justify-content: space-between;
	line-height: 1.2;
	padding: 14px 0;
}

	.mobile-menu .sub-menu {
		border-left: 1px solid var(--aysa-color-border);
		display: grid;
		gap: 18px;
		margin: 0 0 10px 2px;
		padding-left: 16px;
	}

	.mobile-menu .mega-menu__column h3 {
		color: var(--aysa-color-muted);
		font-size: 13px;
		font-weight: 600;
		margin: 14px 0 8px;
	}

	.mobile-menu .mega-menu__column ul,
	.mobile-menu .compact-menu ul {
		display: grid;
		gap: 10px;
	}

	.mobile-menu .sub-menu a {
		color: var(--aysa-color-muted);
		font-size: 16px;
		font-weight: 400;
		padding: 8px 0;
	}

	.mobile-menu .mega-menu__item {
		align-items: flex-start;
		display: grid;
		gap: 12px;
		grid-template-columns: 34px minmax(0, 1fr);
	}

	.mobile-menu .mega-menu__item span:last-child {
		display: grid;
		gap: 2px;
	}

	.mobile-menu .mega-menu__item strong {
		color: var(--aysa-color-text);
		font-size: 15px;
		font-weight: 600;
		line-height: 1.25;
	}

	.mobile-menu .mega-menu__item small {
		color: var(--aysa-color-muted);
		font-size: 13px;
		line-height: 1.3;
	}

.mobile-drawer__cta {
	height: 44px;
	margin-top: 28px;
	width: 100%;
}

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

.content-shell {
	margin: 0 auto;
	max-width: 920px;
	padding: 72px 24px;
}

.content-entry {
	border: 1px solid var(--aysa-color-border);
	border-radius: var(--aysa-radius-md);
	padding: 32px;
}

.content-entry__title,
.content-entry--empty h1 {
	font-size: 56px;
	letter-spacing: 0;
	line-height: 1;
	margin: 0 0 20px;
}

.content-entry__body > *:first-child,
.content-entry--empty > *:first-child {
	margin-top: 0;
}

.content-entry__body > *:last-child,
.content-entry--empty > *:last-child {
	margin-bottom: 0;
}

.site-footer {
	background: var(--aysa-color-bg-soft);
	border-top: 1px solid var(--aysa-color-border);
}

.site-footer__inner {
	margin: 0 auto;
	max-width: var(--aysa-container);
	padding: 56px 24px 32px;
}

.site-footer__brand {
	align-items: flex-start;
	display: grid;
	gap: 16px;
	grid-template-columns: minmax(140px, 220px) minmax(0, 420px);
	margin-bottom: 48px;
}

.site-footer__brand p {
	color: var(--aysa-color-muted);
	font-size: 14px;
	margin: 0;
	max-width: 360px;
}

.site-footer__columns {
	display: grid;
	gap: 32px 24px;
	grid-template-columns: repeat(5, minmax(0, 1fr));
}

.site-footer__accordion {
	align-items: center;
	background: transparent;
	border: 0;
	color: var(--aysa-color-text);
	cursor: default;
	display: flex;
	font-size: 13px;
	font-weight: 600;
	justify-content: space-between;
	line-height: 1.2;
	margin: 0 0 14px;
	padding: 0;
	text-align: left;
	width: 100%;
}

.site-footer__accordion::after {
	display: none;
}

.site-footer__panel {
	display: block;
}

.footer-menu {
	display: grid;
	gap: 9px;
}

.footer-menu a {
	color: var(--aysa-color-muted);
	font-size: 14px;
	line-height: 1.35;
}

.footer-menu a:hover,
.footer-menu a:focus-visible {
	color: var(--aysa-color-accent);
}

.site-footer__bottom {
	align-items: center;
	border-top: 1px solid var(--aysa-color-border);
	color: var(--aysa-color-subtle);
	display: flex;
	font-size: 13px;
	gap: 16px;
	justify-content: space-between;
	margin-top: 48px;
	padding-top: 24px;
}

.site-footer__bottom p {
	margin: 0;
}

.site-footer__bottom a {
	color: var(--aysa-color-muted);
}

.site-footer__bottom a:hover,
.site-footer__bottom a:focus-visible {
	color: var(--aysa-color-accent);
}

@media (max-width: 880px) {
	.site-header__inner {
		grid-template-columns: auto auto;
		justify-content: space-between;
		padding: 0 20px;
	}

	.site-nav--desktop,
	.site-header__cta {
		display: none;
	}

	.menu-toggle {
		display: inline-flex;
		position: relative;
	}

	.site-footer__brand {
		grid-template-columns: 1fr;
		margin-bottom: 28px;
	}

	.site-footer__columns {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	:root {
		--aysa-header-height: 64px;
	}

	.site-header__inner,
	.mobile-drawer {
		padding-left: 16px;
		padding-right: 16px;
	}

	.site-brand,
	.custom-logo-link {
		max-width: 124px;
	}

	.content-shell {
		padding: 48px 16px;
	}

	.content-entry {
		padding: 24px;
	}

	.content-entry__title,
	.content-entry--empty h1 {
		font-size: 40px;
	}

	.site-footer__inner {
		padding: 42px 16px 28px;
	}

	.site-footer__columns {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.site-footer__column {
		border-top: 1px solid var(--aysa-color-border);
	}

	.site-footer__column:last-child {
		border-bottom: 1px solid var(--aysa-color-border);
	}

	.site-footer__accordion {
		cursor: pointer;
		font-size: 14px;
		margin: 0;
		min-height: 48px;
		padding: 0;
	}

	.site-footer__accordion::after {
		border-bottom: 1.5px solid currentColor;
		border-right: 1.5px solid currentColor;
		content: "";
		display: block;
		height: 7px;
		margin-left: 16px;
		transform: rotate(45deg) translateY(-2px);
		transition: transform 160ms ease;
		width: 7px;
	}

	.site-footer__accordion[aria-expanded="true"]::after {
		transform: rotate(225deg) translate(-2px, -2px);
	}

	.site-footer__panel {
		display: grid;
		grid-template-rows: 0fr;
		overflow: hidden;
		transition: grid-template-rows 180ms ease;
	}

	.site-footer__panel > .footer-menu {
		min-height: 0;
		padding-bottom: 0;
	}

	.site-footer__column.is-open .site-footer__panel {
		grid-template-rows: 1fr;
	}

	.site-footer__column.is-open .footer-menu {
		padding-bottom: 18px;
	}

	.site-footer__bottom {
		align-items: flex-start;
		flex-direction: column;
	}
}

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