/* Tema „Aurel Vlaicu” – stiluri care nu se pot exprima în theme.json. */

h1, h2, h3, .wp-block-site-title { font-stretch: 110%; }
.av-display { font-stretch: 112%; }

:where(.wp-site-blocks) :focus-visible {
	outline: 3px solid #F59E0B;
	outline-offset: 2px;
}

.av-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 1000;
	background: var(--wp--preset--color--ink);
	color: #fff;
	padding: 0.75rem 1rem;
}
.av-skip-link:focus { left: 1rem; top: 1rem; }

/* Antet */
.av-utility a { color: var(--wp--preset--color--on-dark); text-decoration: none; }
.av-utility a:hover { color: #fff; text-decoration: underline; }
.av-utility svg { flex-shrink: 0; vertical-align: -3px; margin-right: 0.4rem; }
.av-utility p { display: inline-flex; align-items: center; margin: 0; }

.av-brand .wp-block-site-logo img { border-radius: 10px; }
.av-brand .wp-block-site-title a { text-decoration: none; }
.av-brand .wp-block-site-title { line-height: 1.15; }

.wp-block-navigation .wp-block-navigation__submenu-container {
	border: 1px solid var(--wp--preset--color--line) !important;
	border-radius: 12px;
	padding: 0.5rem 0;
	box-shadow: 0 12px 30px rgb(15 42 68 / 0.12);
	min-width: 260px !important;
}
.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 0.55rem 1.1rem;
}
.wp-block-navigation .av-nav-cta > a {
	background: var(--wp--preset--color--accent);
	color: #fff !important;
	padding: 0.7rem 1.2rem;
	border-radius: 10px;
	font-weight: 600;
}
.wp-block-navigation .av-nav-cta > a:hover { background: var(--wp--preset--color--accent-dark); }
.wp-block-navigation__responsive-container.is-menu-open { padding: 1.5rem; }

/* Supratitlu */
.is-style-eyebrow {
	color: var(--wp--preset--color--accent);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--small);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.has-ink-background-color .is-style-eyebrow,
.has-ink-deep-background-color .is-style-eyebrow { color: var(--wp--preset--color--amber); }

/* Carduri */
.is-style-card {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 18px;
	padding: 1.5rem;
	box-sizing: border-box;
}
.is-style-card + .is-style-card { margin-top: 1rem; }
.av-grid > .is-style-card + .is-style-card { margin-top: 0; }
.is-style-card > .wp-block-image:first-child,
.is-style-card > .is-style-placeholder:first-child {
	margin: -1.5rem -1.5rem 0.5rem;
	border-radius: 17px 17px 0 0;
	overflow: hidden;
}
.is-style-card .wp-block-image img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
a.av-card-link, .av-card-link a { text-decoration: none; }
.is-style-card:has(a:hover) { border-color: #B8C6D6; box-shadow: 0 8px 24px rgb(15 42 68 / 0.08); }

.av-icon {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: var(--wp--preset--color--tint);
	color: var(--wp--preset--color--ink);
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Loc pentru imagine (până sosesc fotografiile) */
.is-style-placeholder {
	background: repeating-linear-gradient(135deg, #DCE3EC 0 12px, #E6EBF2 12px 24px);
	color: #3E5268;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	font-size: var(--wp--preset--font-size--small);
	padding: 1.5rem;
	min-height: 220px;
	border-radius: 18px;
	box-sizing: border-box;
}
.has-ink-background-color .is-style-placeholder { background: #1E3A5A; color: var(--wp--preset--color--on-dark); }

/* Prima secțiune */
.av-hero { position: relative; overflow: hidden; }
.av-hero::before {
	content: "";
	position: absolute;
	right: -80px;
	top: 10px;
	width: 900px;
	height: 420px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 900 420' fill='none'%3E%3Cpath d='M0 400 C 250 380, 420 260, 560 170 S 820 40, 900 20' stroke='%239FB3C8' stroke-width='2' stroke-dasharray='6 10'/%3E%3C/svg%3E") no-repeat;
	opacity: 0.5;
	pointer-events: none;
}
.av-hero > * { position: relative; }
.av-hero h1 { font-stretch: 112%; line-height: 1.02; }
.av-badge {
	display: inline-block;
	background: var(--wp--preset--color--accent-soft);
	color: var(--wp--preset--color--accent-dark);
	padding: 0.35rem 0.8rem;
	border-radius: 999px;
	font-weight: 600;
	font-size: var(--wp--preset--font-size--small);
}
.av-hero .wp-block-image img { border-radius: 20px; aspect-ratio: 5 / 4; object-fit: cover; width: 100%; }
.av-hero .av-hero-foto { margin: 0; }
.av-hero .av-hero-foto img { aspect-ratio: auto; height: auto; box-shadow: 0 18px 40px rgb(15 42 68 / 0.18); }
.av-hero .is-style-placeholder { aspect-ratio: 5 / 4; }
.av-hero-media { position: relative; }
.av-hero-chip {
	position: absolute;
	left: -20px;
	top: -20px;
	box-shadow: 0 12px 30px rgb(15 42 68 / 0.25);
}
@media (max-width: 781px) {
	.av-hero::before { display: none; }
	.av-hero-chip { position: static; display: inline-block; margin-top: 1rem; box-shadow: none; }
}

/* Cifre */
.av-stat-number {
	font-family: var(--wp--preset--font-family--display);
	font-stretch: 112%;
	font-weight: 800;
	font-size: 2.5rem;
	line-height: 1.1;
	color: var(--wp--preset--color--amber);
	margin: 0;
}

/* Grile care se adaptează singure */
.av-grid {
	display: grid !important;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--av-min, 260px)), 1fr));
	gap: 1.25rem;
}
.av-grid > * { margin: 0 !important; }
.av-grid--4 { --av-min: 220px; }
.av-grid--3 { --av-min: 300px; }

/* Taburi – ofertă educațională */
.av-tabs [role="tablist"] {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin-bottom: 1.5rem;
}
.av-tabs [role="tab"] {
	min-height: 44px;
	padding: 0.6rem 1.25rem;
	border-radius: 999px;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--ink);
	border: 1.5px solid #B8C6D6;
}
.av-tabs [role="tab"][aria-selected="true"] {
	background: var(--wp--preset--color--ink);
	border-color: var(--wp--preset--color--ink);
	color: #fff;
}
.av-tabs.is-enhanced .av-tab-panel[hidden] { display: none; }
.av-tabs:not(.is-enhanced) .av-tab-panel + .av-tab-panel { margin-top: 1.5rem; }
.av-program {
	background: var(--wp--preset--color--ground);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 14px;
	padding: 1.1rem 1.25rem;
}
.av-program p { margin: 0; }
.av-program .av-program-domain {
	color: var(--wp--preset--color--accent-dark);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.av-program .av-program-name {
	color: var(--wp--preset--color--ink);
	font-weight: 600;
	font-size: 1.125rem;
	line-height: 1.35;
	margin-top: 0.4rem;
}
.av-program .av-program-seats { color: var(--wp--preset--color--muted); margin-top: 0.4rem; }

/* Liste de legături */
.is-style-links { list-style: none; padding: 0; }
.is-style-links li { padding: 0.35rem 0; }
.has-ink-deep-background-color a { color: var(--wp--preset--color--on-dark); }
.has-ink-deep-background-color a:hover { color: #fff; }

/* Articole */
.av-post-card .wp-block-post-title { font-family: var(--wp--preset--font-family--body); font-weight: 600; font-size: 1.1875rem; line-height: 1.35; letter-spacing: 0; }
.av-post-card .wp-block-post-title a { text-decoration: none; }
.av-post-card .wp-block-post-title a:hover { text-decoration: underline; }
.av-post-card .wp-block-post-excerpt { color: var(--wp--preset--color--muted); }

/* Conținut migrat din vechiul site (Elementor) */
.entry-content img { max-width: 100%; height: auto; }
.entry-content table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.entry-content td, .entry-content th { border: 1px solid var(--wp--preset--color--line); padding: 0.5rem 0.75rem; }
.entry-content iframe { max-width: 100%; }
.entry-content .pdfemb-viewer { max-width: 100% !important; }

/* Navigare în paginile interioare */
.av-crumb { margin-bottom: 0.5rem; }
.av-crumb a { text-decoration: none; color: var(--wp--preset--color--muted); }
.av-subpages { margin-top: var(--wp--preset--spacing--60); }
.av-subpage {
	display: flex;
	align-items: center;
	text-decoration: none;
	font-weight: 600;
	color: var(--wp--preset--color--ink);
	min-height: 5rem;
}
.av-subpage:hover { border-color: var(--wp--preset--color--accent); color: var(--wp--preset--color--accent); }

/* Hartă */
.av-map { border-radius: 20px; overflow: hidden; border: 1px solid var(--wp--preset--color--line); }
.av-map iframe { display: block; width: 100%; height: 360px; border: 0; }
.av-map-link { display: block; padding: 0.75rem 1rem; background: var(--av-card); font-size: var(--wp--preset--font-size--small); font-weight: 600; border-top: 1px solid var(--wp--preset--color--line); }

.wp-block-quote { margin-left: 0; margin-right: 0; border-left: 0; }

/* Galerii foto migrate din Elementor */
.av-galerie {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
	gap: 0.75rem;
	margin-block: 1.5rem;
}
.av-galerie figure { margin: 0; }
.av-galerie img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.av-galerie a:hover img { opacity: 0.9; }
.entry-content > figure img { border-radius: 14px; }

/* Titluri în conținutul paginilor: mai mici decât titlul paginii */
.entry-content h2 { font-size: clamp(1.4rem, 2.5vw, 1.75rem); margin-top: 2.5rem; }
.entry-content h3 { font-size: clamp(1.2rem, 2vw, 1.375rem); margin-top: 2rem; }
.entry-content h4, .entry-content h5, .entry-content h6 { font-size: 1.125rem; margin-top: 1.5rem; }

/* Antet: numele școlii nu se rupe; meniul are prioritate la spațiu */
.av-brand { flex-shrink: 0; }
.av-brand p { white-space: nowrap; }

/* Pagini cu calendar (ex. Bacalaureat): repere și tabele */
.av-grid.av-bac-repere { --av-min: 300px; margin-block: 2rem 2.5rem; }
.av-bac-repere .is-style-card p { margin: 0; }
.av-bac-repere .is-style-card .is-style-eyebrow { margin-bottom: 0.6rem; }
.av-bac-data {
	font-family: var(--wp--preset--font-family--display);
	font-stretch: 108%;
	font-weight: 800;
	font-size: 1.35rem;
	line-height: 1.2;
	color: var(--wp--preset--color--ink);
	margin-top: 0.75rem !important;
}
.av-bac-data:first-of-type { margin-top: 0 !important; }
.av-bac-data + p { color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--small); }
.entry-content .av-calendar table { display: table; background: var(--wp--preset--color--surface); border-radius: 12px; overflow: hidden; }
.av-calendar th { background: var(--wp--preset--color--ink); color: #fff; text-align: left; font-weight: 600; }
.av-calendar th:first-child { width: 32%; }
.av-calendar tbody tr:nth-child(even) td { background: var(--wp--preset--color--ground); }
.av-calendar td:first-child { font-weight: 600; color: var(--wp--preset--color--ink); }
@media (max-width: 600px) { .av-calendar th:first-child { width: 40%; } }

/* Subsol: link spre rețele sociale */
.av-social a { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; text-decoration: none; min-height: 44px; }
.av-social a:hover { text-decoration: underline; }

/* Fotografiile din secțiunea Smart Labs */
.av-smart-foto { margin: 0; }
.av-smart-foto img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; }

/* Paleta „Nisip”, aleasă de școală: panourile deschise, prima secțiune și cardurile în nuanțe calde
   (fondul, liniile și nuanța pentru iconițe sunt în paleta din theme.json). */
:root {
	--av-panou: #FAF5EC;
	--av-erou: #F6EEDF;
	--av-card: #FFFCF7;
}
.wp-block-group.has-surface-background-color { background-color: var(--av-panou) !important; }
.av-hero.has-surface-background-color { background-color: var(--av-erou) !important; }
.is-style-card,
.entry-content .av-calendar table { background-color: var(--av-card); }
