/*
Theme Name: Aomi Consulting
Description: Theme for the Aomi Consulting website (payroll). The visual identity follows aomi-brand.md.
Version: 0.2.0
Requires at least: 6.5
Requires PHP: 8.1
Author: Aomi Consulting
Text Domain: aomi
Domain Path: /languages
*/

/* ---------- Fonturi găzduite în temă (SIL OFL 1.1, licențele în assets/fonts/) ----------
   Fișiere variabile: Inter 400–600, Inter Tight 600–700.
   latin-ext acoperă ă, â, î, ș, ț. */
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 400 600;
	font-display: swap;
	src: url('assets/fonts/inter-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 400 600;
	font-display: swap;
	src: url('assets/fonts/inter-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Inter Tight';
	font-style: normal;
	font-weight: 600 700;
	font-display: swap;
	src: url('assets/fonts/inter-tight-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Inter Tight';
	font-style: normal;
	font-weight: 600 700;
	font-display: swap;
	src: url('assets/fonts/inter-tight-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokeni (aomi-brand.md) ---------- */
:root {
	--night-0: #0D0A14;
	--night-1: #211A30;
	--graphite: #15101F;
	--amethyst: #7C4DEB;
	--amethyst-600: #6438CF;
	--copper: #D9774A;
	--copper-600: #B85E35;
	--copper-700: #934828;
	--lavender: #F4EFFA;
	--text: #FFFFFF;
	--text-muted: #CCC2E2;
	--text-subtle: #B9ADD3;
	--text-faint: #9F94BD;
	--border: #3E3356;
	--card-bg: rgba(13, 10, 20, 0.5);
	--font-display: 'Inter Tight', Arial, sans-serif;
	--font-body: 'Inter', Arial, sans-serif;
	--ease-o: cubic-bezier(.65, 0, .25, 1);

	/* stările „parcurs” (brand) */
	--done-bg: rgba(217, 119, 74, .14);
	--done-border: rgba(217, 119, 74, .5);
	--done-text: #F0C2A6;
	--track: rgba(204, 194, 226, .22);

	--radius: 12px;
	--radius-card: 14px;
	--wrap: 1120px;
	--gl: max(clamp(16px, 4vw, 48px), env(safe-area-inset-left, 0px));
	--gr: max(clamp(16px, 4vw, 48px), env(safe-area-inset-right, 0px));
	color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	min-height: 100vh;
	color: var(--text);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.6;
	background: var(--night-0);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

/* Fundalul grafit cu strălucirea de ametist de jos, fix pe ecran */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background:
		radial-gradient(ellipse 60% 80% at 50% 115%, rgba(124, 77, 235, .55), rgba(124, 77, 235, 0) 70%),
		linear-gradient(180deg, var(--night-0), var(--night-1));
}

h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.01em;
	margin: 0 0 .5em;
}

p { margin: 0 0 1em; }

a { color: var(--copper); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--text); }

:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; border-radius: 4px; }

img, svg { max-width: 100%; height: auto; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: var(--gl); padding-right: var(--gr); }

.skip-link {
	position: absolute; left: 12px; top: -60px; z-index: 20;
	background: var(--copper); color: var(--graphite);
	padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--graphite); }

/* Eticheta secțiunii: cupru, majuscule spațiate */
.label {
	margin: 0 0 24px;
	font-family: var(--font-body);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--copper);
}
.num { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .2em; color: var(--copper); }
.t { margin: 0; font-family: var(--font-display); font-weight: 700; line-height: 1.04; letter-spacing: -.015em; text-wrap: balance; }

/* ---------- Butoane și carduri (stările din brand) ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 48px; padding: 0 22px;
	border-radius: var(--radius); border: 1px solid var(--border); background: var(--card-bg);
	color: var(--text-muted); font-family: var(--font-body); font-size: 15px; font-weight: 600; line-height: 1.2;
	text-decoration: none; cursor: pointer;
	transition: background-color .4s, color .4s, border-color .4s;
}
.btn:hover { color: var(--text); border-color: var(--done-border); }

.card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 28px; }

/* Marcaj pentru texte care încă lipsesc */
.todo {
	display: inline-block;
	padding: 2px 10px;
	border: 1px dashed var(--copper);
	border-radius: 6px;
	background: rgba(217, 119, 74, .08);
	color: var(--done-text);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.5;
}

/* ---------- Antet: logo mic în stânga, limba și Contact în dreapta ---------- */
.site-header {
	position: relative; z-index: 6;
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding-top: calc(22px + env(safe-area-inset-top, 0px)); padding-bottom: 22px;
	padding-left: var(--gl); padding-right: var(--gr);
}
.home .site-header { position: absolute; top: 0; left: 0; right: 0; }
.site-logo { display: block; line-height: 0; }
.site-logo img { display: block; width: 160px; height: auto; }
.site-header__tools { display: flex; align-items: center; gap: 22px; }

.navlink {
	position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px;
	color: var(--text-muted); font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
	transition: color .3s;
}
.navlink::after {
	content: ""; position: absolute; left: 2px; right: 2px; bottom: 10px; height: 1px; background: var(--copper);
	transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-o);
}
.navlink:hover { color: var(--text); }
.navlink:hover::after, .is-contact-active .navlink::after { transform: scaleX(1); }

/* Comutatorul de limbă: EN / RO, limba curentă în cupru */
.lang-switch { display: flex; align-items: center; gap: 2px; font-size: 12px; font-weight: 500; letter-spacing: .16em; }
.lang-switch__item {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 36px; min-height: 44px; padding: 0 4px;
	color: var(--text-subtle); text-decoration: none; transition: color .3s;
}
.lang-switch__item abbr { text-decoration: none; }
.lang-switch__item:hover { color: var(--text); }
.lang-switch__item.is-current { color: var(--copper); }
.lang-switch__sep { color: var(--border); }

/* ---------- „O”-ul: două cercuri cu aceeași rază, fără cerc de fundal ---------- */
.o { display: block; overflow: visible; }
.o__arc {
	fill: none;
	stroke-width: 70.8; /* 0,354 × R */
	transition: stroke-dasharray 1100ms var(--ease-o), stroke-dashoffset 1100ms var(--ease-o);
}
.o__arc--top { stroke: var(--copper); }
.o__arc--bottom { stroke: var(--text); }

/* ---------- Prima pagină · varianta C „Prin O” ---------- */
.contact { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.contact .t { font-size: clamp(30px, 4.6vw, 56px); }
.contact__who { margin: 0; color: var(--text-muted); }
.contact__list { margin: 10px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 36px; }
.contact__list div { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.contact__list dt { font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--text-subtle); }
.contact__list dd { margin: 0; }
.contact__legal { margin: 18px 0 0; font-size: 13px; color: var(--text-faint); }

/* Fără JavaScript: etapele ca listă, apoi contactul */
.pc { padding: 24px var(--gr) 64px var(--gl); text-align: center; }
.pc-steps { list-style: none; margin: 0 auto 72px; padding: 0; max-width: 560px; display: grid; gap: 28px; }
.pc-steps li { display: flex; flex-direction: column; gap: 4px; }
.pc-steps__name { font-family: var(--font-display); font-size: 28px; }
.pc-steps__desc { color: var(--text-muted); }
.pc-ring, .pc-desc, .pc-prog, .pc-contact__o { display: none; }

/* Cu JavaScript: un ecran pe rând */
html.js body.home { height: 100%; overflow: hidden; overscroll-behavior: none; }
.js .pc { --g: min(62svh, 84vw, 620px); position: relative; height: 100vh; height: 100svh; padding: 0; overflow: hidden; }
.js .pc-steps { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.js .pc-label { position: absolute; z-index: 2; top: calc(96px + env(safe-area-inset-top, 0px)); left: 0; right: 0; margin: 0; transition: opacity .5s; }

.js .pc-ring {
	display: block; position: absolute; left: 50%; top: 49%; width: var(--g); height: var(--g);
	transform: translate(-50%, -50%); transition: transform 1000ms var(--ease-o), opacity 800ms var(--ease-o);
}
.pc-ring .o { width: 100%; height: 100%; }
.pc-hole { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 0 24%; text-align: center; }
.pc-hole .num { font-size: max(11px, calc(var(--g) * .022)); }
.pc-hole .t { font-size: max(20px, calc(var(--g) * .068)); }
.js .pc-desc {
	display: block; position: absolute; left: var(--gl); right: var(--gr); top: calc(49% + var(--g) * .41); margin: 0;
	color: var(--text-muted); font-size: clamp(15px, 1.6vw, 19px); line-height: 1.55; transition: opacity .5s;
}
.pc.is-contact .pc-ring { transform: translate(-50%, -50%) scale(3.4); opacity: 0; }
.pc.is-contact .pc-desc, .pc.is-contact .pc-label { opacity: 0; }

.js .pc-contact {
	position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
	padding: 96px var(--gr) 80px var(--gl);
	opacity: 0; transform: scale(.9); pointer-events: none;
	transition: opacity .7s var(--ease-o), transform 1s var(--ease-o);
}
.js .pc-contact .label { margin: 0; }
.pc.is-contact .pc-contact { opacity: 1; transform: none; pointer-events: auto; transition-delay: .3s; }
.js .pc-contact__o { display: block; width: 72px; height: 72px; }

.js .pc-prog { display: flex; position: absolute; z-index: 3; right: var(--gr); top: 50%; height: min(44%, 320px); transform: translateY(-50%); flex-direction: column; align-items: center; gap: 12px; }
.pc-prog__n { writing-mode: vertical-rl; font-size: 12px; font-weight: 500; letter-spacing: .16em; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.pc-prog__track { position: relative; flex: 1; width: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.pc-prog__track::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: var(--track); }
.pc-prog__fill { position: absolute; top: 0; left: 50%; width: 3px; height: 0; margin-left: -1.5px; border-radius: 2px; background: var(--copper); transition: height 1100ms var(--ease-o); }
.pc-prog__dot { position: absolute; top: 0; left: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--copper); transition: top 1100ms var(--ease-o); }

.pc.is-loading, .pc.is-loading * { transition: none !important; }

/* ---------- Subsol (celelalte pagini) ---------- */
.site-footer { padding: 96px 0 48px; text-align: center; }
.contact-card { max-width: 560px; margin: 0 auto 40px; text-align: left; }
.contact-list { margin: 0; display: grid; gap: 16px; }
.contact-list div { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.contact-list dt { font-family: var(--font-display); font-weight: 600; color: var(--text); }
.contact-list dd { margin: 0; }
.site-footer__legal { margin: 0; font-size: 14px; color: var(--text-subtle); }

/* ---------- Pagini obișnuite ---------- */
.page { padding-top: 48px; padding-bottom: 24px; }
.page__card { max-width: 760px; margin: 0 auto; }
.page__title { font-size: clamp(30px, 4vw, 44px); }
.page__content { color: var(--text-muted); }

/* ---------- Telefon ---------- */
@media (max-width: 640px) {
	body { font-size: 16px; }
	.site-header { padding-top: calc(18px + env(safe-area-inset-top, 0px)); padding-bottom: 18px; }
	.site-logo img { width: 112px; }
	.site-header__tools { gap: 8px; }
	.js .pc-label { top: calc(84px + env(safe-area-inset-top, 0px)); }
	/* Contactul și descrierea etapei: depărtate de linia de progres verticală din dreapta */
	.js .pc-contact, .js .pc-desc { padding-left: calc(var(--gl) + 48px); padding-right: calc(var(--gr) + 48px); }
	.js .pc-desc { left: 0; right: 0; }
	.pc-contact .contact .t { font-size: 28px; }
	.js .pc-prog { height: min(36%, 240px); }
	.card { padding: 22px; }
}

/* ---------- Fără animație, dacă așa cere sistemul ---------- */
@media (prefers-reduced-motion: reduce) {
	.o__arc, .btn, .navlink, .navlink::after, .pc-ring, .pc-contact, .pc-prog__fill, .pc-prog__dot, .pc-label, .pc-desc { transition: none !important; }
}
