/*
Theme Name: smk-motion
Text Domain: smk-motion
Description: Premium cinematic corporate technology theme for SMK Bilişim with a bold animated homepage and two-brand ecosystem.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
WPVibe: yes
*/

/* This file holds the WordPress theme header (above) plus truly global
 * rules only. Tailwind handles everything else.
 *
 * - Design tokens live in theme.css's @theme block.
 * - Prose + form styles live in presets.css.
 * - Layout, color, typography utilities come from Tailwind v4.
 *
 * Do NOT add component classes here (.btn-primary, .card, etc.). Use
 * Tailwind utilities in templates instead.
 */

html {
	scroll-behavior: smooth;
}

/* Critical mega-menu styles live here as a non-Tailwind fallback so the
 * navigation never renders expanded while compiled assets are refreshing. */
@media (min-width: 761px) {
	.smk-nav-dropdown {
		position: relative;
		height: 82px;
		display: flex;
		align-items: center;
		padding: 0;
	}

	.smk-nav-dropdown-trigger {
		display: inline-flex;
		align-items: center;
		gap: .45rem;
	}

	.smk-nav-dropdown-trigger span {
		color: #28e868;
		font-size: .7rem;
		transition: transform .25s ease;
	}

	.smk-nav-dropdown-menu.smk-mega-menu {
		position: fixed !important;
		top: 72px !important;
		left: 50% !important;
		width: min(980px, calc(100vw - 56px)) !important;
		transform: translate(-50%, 14px) scale(.985) !important;
		display: grid !important;
		grid-template-columns: 1.35fr .8fr;
		gap: .7rem;
		padding: .72rem !important;
		border: 1px solid rgba(255,255,255,.115) !important;
		border-radius: 1.35rem !important;
		background: rgba(7,10,7,.975) !important;
		box-shadow: 0 28px 90px rgba(0,0,0,.58) !important;
		backdrop-filter: blur(24px);
		-webkit-backdrop-filter: blur(24px);
		opacity: 0 !important;
		visibility: hidden !important;
		pointer-events: none !important;
		z-index: 9999 !important;
		overflow: hidden;
		transition: opacity .22s ease, transform .3s cubic-bezier(.22,1,.36,1), visibility .22s ease !important;
	}

	.smk-nav-dropdown:hover > .smk-nav-dropdown-menu.smk-mega-menu,
	.smk-nav-dropdown:focus-within > .smk-nav-dropdown-menu.smk-mega-menu {
		opacity: 1 !important;
		visibility: visible !important;
		pointer-events: auto !important;
		transform: translate(-50%, 0) scale(1) !important;
	}

	.smk-nav-dropdown:hover > .smk-nav-dropdown-trigger span,
	.smk-nav-dropdown:focus-within > .smk-nav-dropdown-trigger span {
		transform: rotate(180deg);
	}

	.smk-mega-links {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: .55rem;
	}

	.smk-mega-links a {
		min-height: 114px;
		display: flex !important;
		flex-direction: column;
		justify-content: center;
		gap: .34rem;
		padding: 1.05rem 1.1rem !important;
		border: 1px solid rgba(255,255,255,.07);
		border-radius: 1rem;
		background: rgba(255,255,255,.018);
	}

	.smk-mega-links small {
		color: #28e868;
		font-family: "Archivo", sans-serif;
		font-size: .5rem;
		letter-spacing: .14em;
	}

	.smk-mega-links strong {
		color: #eef2ec;
		font-family: "Archivo", sans-serif;
		font-size: .88rem;
		font-weight: 610;
	}

	.smk-mega-links em {
		color: #6f7a6d;
		font-style: normal;
		font-size: .66rem;
		line-height: 1.45;
	}

	.smk-mega-feature {
		position: relative;
		min-height: 244px;
		display: flex;
		flex-direction: column;
		justify-content: flex-end;
		padding: 1.35rem;
		border: 1px solid rgba(40,232,104,.15);
		border-radius: 1rem;
		background: radial-gradient(circle at 92% 8%, rgba(40,232,104,.18), transparent 13rem), #0a0f0a;
		overflow: hidden;
	}

	.smk-mega-feature > span {
		margin-bottom: auto;
		color: #28e868;
		font-family: "Archivo", sans-serif;
		font-size: .52rem;
		letter-spacing: .14em;
	}

	.smk-mega-feature h3 {
		margin: 0 0 .7rem;
		color: #edf1eb;
		font-family: "Archivo", sans-serif;
		font-size: 1.75rem;
		line-height: .98;
		letter-spacing: -.05em;
		font-weight: 520;
	}

	.smk-mega-feature h3 em { color: #28e868; font-style: normal; }
	.smk-mega-feature p { margin: 0 0 1rem; color: #7d887a; font-size: .67rem; line-height: 1.55; }
	.smk-mega-arrow { display: inline-flex !important; align-items: center; justify-content: space-between; width: 100%; padding: .72rem .8rem !important; border: 1px solid rgba(255,255,255,.09); border-radius: .8rem; }
}
