/*
Theme Name: Andlus Profile
Theme URI: https://andlus.com/
Author: Andlus Information Technology
Author URI: https://andlus.com/
Description: Modern corporate website theme for Andlus Information Technology. Sticky menu, hero, about, services grid and contact sections — every section editable in wp-admin, with smooth scroll animations.
Version: 2.0.0
Requires at least: 5.9
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: andlus-profile
Tags: business, corporate, one-column, custom-menu, custom-logo, editor-style, full-width-template
*/

/* ------------------------------------------------------------------ tokens */
:root {
	--andlus-bg: #060b16;
	--andlus-bg-soft: #0c1526;
	--andlus-fg: #eef4ff;
	--andlus-muted: #9fb2cd;
	--andlus-accent: #35a7ff;
	--andlus-line: rgba(159, 178, 205, 0.16);
	--andlus-speed: 700ms;
	--andlus-radius: 18px;
	--andlus-max: 1180px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
	margin: 0;
	background: var(--andlus-bg);
	color: var(--andlus-fg);
	font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
	font-size: 17px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--andlus-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
	line-height: 1.15;
	margin: 0 0 .6em;
	font-weight: 700;
	letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; }

.andlus-wrap { width: min(100% - 40px, var(--andlus-max)); margin-inline: auto; }

.andlus-kicker {
	display: inline-block;
	font-size: .74rem;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--andlus-accent);
	margin-bottom: 14px;
	font-weight: 600;
}

.andlus-lead { color: var(--andlus-muted); font-size: 1.08rem; }

/* ------------------------------------------------------------------ header */
.andlus-site-header {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 100;
	display: flex;
	align-items: center;
	gap: 22px;
	padding: 16px max(20px, calc((100vw - var(--andlus-max)) / 2));
	background: rgba(6, 11, 22, 0.55);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid transparent;
	transition: background .3s ease, padding .3s ease, border-color .3s ease;
}
.andlus-site-header.is-stuck {
	background: rgba(6, 11, 22, 0.92);
	border-bottom-color: var(--andlus-line);
	padding-block: 10px;
}

.andlus-brand { display: flex; flex-direction: column; line-height: 1.2; }
.andlus-brand__name {
	font-weight: 700;
	font-size: 1.08rem;
	color: var(--andlus-fg);
	text-decoration: none;
	letter-spacing: -0.01em;
}
.andlus-brand__name:hover { text-decoration: none; color: var(--andlus-accent); }
.site-tagline { font-size: .72rem; color: var(--andlus-muted); letter-spacing: .12em; text-transform: uppercase; }
.custom-logo-link img { max-height: 44px; width: auto; }

.andlus-site-nav { margin-left: auto; }
.andlus-site-nav ul {
	display: flex;
	align-items: center;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.andlus-site-nav a {
	display: block;
	padding: 9px 14px;
	border-radius: 999px;
	color: var(--andlus-fg);
	font-size: .93rem;
	text-decoration: none;
	transition: background .25s ease, color .25s ease;
}
.andlus-site-nav a:hover,
.andlus-site-nav .current-menu-item > a {
	background: color-mix(in srgb, var(--andlus-accent) 18%, transparent);
	color: var(--andlus-accent);
	text-decoration: none;
}

.andlus-nav-toggle {
	display: none;
	margin-left: auto;
	width: 44px;
	height: 40px;
	border: 1px solid var(--andlus-line);
	border-radius: 12px;
	background: transparent;
	cursor: pointer;
	padding: 10px;
}
.andlus-nav-toggle span {
	display: block;
	height: 2px;
	background: var(--andlus-fg);
	margin: 4px 0;
	transition: transform .3s ease, opacity .3s ease;
}
.andlus-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.andlus-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.andlus-nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
	.andlus-nav-toggle { display: block; }
	.andlus-site-nav {
		position: fixed;
		inset: 72px 0 auto 0;
		margin: 0;
		background: rgba(6, 11, 22, 0.98);
		border-bottom: 1px solid var(--andlus-line);
		max-height: 0;
		overflow: hidden;
		transition: max-height .35s ease;
	}
	.andlus-site-nav.is-open { max-height: 70vh; overflow: auto; }
	.andlus-site-nav ul { flex-direction: column; align-items: stretch; padding: 12px 20px 22px; gap: 2px; }
	.andlus-site-nav a { padding: 12px 14px; border-radius: 12px; }
	.site-tagline { display: none; }
}

/* ------------------------------------------------------------------- main */
.andlus-main { padding-top: 76px; }

.andlus-section { padding: clamp(60px, 9vw, 118px) 0; }
.andlus-section--soft { background: var(--andlus-bg-soft); }
.andlus-section__head { max-width: 660px; margin-bottom: 46px; }

/* ------------------------------------------------------------------- hero */
.andlus-hero {
	position: relative;
	min-height: min(88vh, 780px);
	display: flex;
	align-items: center;
	overflow: hidden;
	padding: 100px 0;
	isolation: isolate;
}
.andlus-hero__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	transform: scale(1.06);
	animation: andlus-kenburns 22s ease-in-out infinite alternate;
	z-index: -2;
}
.andlus-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(60% 70% at 12% 20%, color-mix(in srgb, var(--andlus-accent) 26%, transparent), transparent 65%),
		linear-gradient(105deg, var(--andlus-bg) 32%, rgba(6, 11, 22, .78) 70%, rgba(6, 11, 22, .55));
}
.andlus-hero__inner { max-width: 720px; }
.andlus-hero h1 { margin-bottom: .35em; }
.andlus-hero p { color: var(--andlus-muted); font-size: 1.15rem; max-width: 56ch; }

@keyframes andlus-kenburns {
	from { transform: scale(1.04) translate3d(0, 0, 0); }
	to   { transform: scale(1.16) translate3d(-1.5%, -1.5%, 0); }
}

.andlus-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.andlus-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 13px 26px;
	border-radius: 999px;
	font-weight: 600;
	font-size: .96rem;
	text-decoration: none;
	transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
	border: 1px solid transparent;
}
.andlus-btn:hover { transform: translateY(-2px); text-decoration: none; }
.andlus-btn--primary {
	background: var(--andlus-accent);
	color: #04101f;
	box-shadow: 0 14px 34px color-mix(in srgb, var(--andlus-accent) 32%, transparent);
}
.andlus-btn--ghost { border-color: var(--andlus-line); color: var(--andlus-fg); }
.andlus-btn--ghost:hover { border-color: var(--andlus-accent); color: var(--andlus-accent); }

/* -------------------------------------------------------------- split rows */
.andlus-split {
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	gap: clamp(28px, 5vw, 68px);
	align-items: center;
}
.andlus-split--reverse .andlus-split__media { order: -1; }
.andlus-split__media {
	position: relative;
	border-radius: var(--andlus-radius);
	overflow: hidden;
	border: 1px solid var(--andlus-line);
	box-shadow: 0 30px 70px rgba(0, 0, 0, .45);
}
.andlus-split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .8s ease; }
.andlus-split__media:hover img { transform: scale(1.05); }

@media (max-width: 860px) {
	.andlus-split { grid-template-columns: 1fr; }
	.andlus-split--reverse .andlus-split__media { order: 0; }
}

/* ------------------------------------------------------------------ cards */
.andlus-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 24px;
}
.andlus-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: color-mix(in srgb, var(--andlus-bg-soft) 90%, #fff 3%);
	border: 1px solid var(--andlus-line);
	border-radius: var(--andlus-radius);
	overflow: hidden;
	transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.andlus-card:hover {
	transform: translateY(-6px);
	border-color: color-mix(in srgb, var(--andlus-accent) 55%, transparent);
	box-shadow: 0 24px 50px rgba(0, 0, 0, .45);
}
.andlus-card__media { overflow: hidden; }
.andlus-card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .7s ease; }
.andlus-card:hover .andlus-card__media img { transform: scale(1.07); }
.andlus-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.andlus-card__body h3 { margin: 0; font-size: 1.15rem; }
.andlus-card__body p { margin: 0; color: var(--andlus-muted); font-size: .96rem; }
.andlus-card__link { margin-top: auto; font-weight: 600; font-size: .9rem; }
.andlus-card__link::after { content: " →"; }

/* --------------------------------------------------------------- contact */
.andlus-contact { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 60px); align-items: start; }
.andlus-contact__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.andlus-contact__list li {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	padding: 16px 18px;
	border: 1px solid var(--andlus-line);
	border-radius: 14px;
	background: var(--andlus-bg-soft);
	transition: border-color .3s ease, transform .3s ease;
}
.andlus-contact__list li:hover { border-color: var(--andlus-accent); transform: translateX(4px); }
.andlus-contact__label { display: block; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--andlus-muted); }
@media (max-width: 860px) { .andlus-contact { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------- articles */
.andlus-page { width: min(100% - 40px, 820px); margin: 0 auto; padding: clamp(50px, 8vw, 96px) 0; }
.andlus-page img { border-radius: var(--andlus-radius); }
.andlus-page h1 { margin-bottom: .4em; }
.andlus-entry-media { border-radius: var(--andlus-radius); overflow: hidden; margin-bottom: 34px; border: 1px solid var(--andlus-line); }
.andlus-back { display: inline-block; margin-top: 40px; font-weight: 600; }

/* ------------------------------------------------------------------ footer */
.andlus-site-footer {
	border-top: 1px solid var(--andlus-line);
	background: var(--andlus-bg-soft);
	padding: 54px 0 30px;
}
.andlus-site-footer__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 30px;
}
.andlus-site-footer h4 { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--andlus-muted); }
.andlus-site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.andlus-site-footer a { color: var(--andlus-fg); }
.andlus-site-footer a:hover { color: var(--andlus-accent); }
.andlus-site-footer__bottom {
	margin-top: 36px;
	padding-top: 18px;
	border-top: 1px solid var(--andlus-line);
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: space-between;
	color: var(--andlus-muted);
	font-size: .86rem;
}

/* --------------------------------------------------------------- reveals */
[data-reveal] {
	opacity: 0;
	transform: translateY(26px);
	transition: opacity var(--andlus-speed) ease, transform var(--andlus-speed) ease;
	transition-delay: var(--andlus-delay, 0ms);
	will-change: opacity, transform;
}
[data-reveal="left"] { transform: translateX(-32px); }
[data-reveal="right"] { transform: translateX(32px); }
[data-reveal="zoom"] { transform: scale(.94); }
.is-visible[data-reveal] { opacity: 1; transform: none; }

.no-anim [data-reveal] { opacity: 1; transform: none; transition: none; }
.no-anim .andlus-hero__bg { animation: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	[data-reveal] { opacity: 1; transform: none; transition: none; }
	.andlus-hero__bg { animation: none; }
}
