/*
Theme Name: Embriologie Modern
Theme URI: https://embriologie.ro/
Description: A modern light child theme for the Embriologie department website.
Author: Embriologie.ro
Template: twentytwenty
Version: 1.0.1
Text Domain: embriologie-modern
*/

@import url("../twentytwenty/style.css");

:root {
	--embrio-ink: #16323a;
	--embrio-muted: #5d7078;
	--embrio-line: #dcebef;
	--embrio-soft: #f5fbfc;
	--embrio-panel: #ffffff;
	--embrio-teal: #0f8a96;
	--embrio-coral: #e88573;
	--embrio-gold: #d7a84f;
	--embrio-shadow: 0 22px 70px rgba(22, 50, 58, 0.12);
}

html {
	scroll-behavior: smooth;
}

body {
	background:
		url("assets/embryology-field.svg") top center / 1440px auto no-repeat,
		linear-gradient(180deg, #f9fdfe 0%, #eef8fa 44%, #ffffff 100%);
	color: var(--embrio-ink);
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 1.8rem;
	letter-spacing: 0;
}

body:not(.overlay-header) .primary-menu > li > a,
body:not(.overlay-header) .primary-menu > li > .icon,
body:not(.overlay-header) .toggle-inner .toggle-text,
body:not(.overlay-header) .toggle-inner .toggle-icon,
.footer-menu a,
.footer-widgets a,
#site-footer .wp-block-button.is-style-outline,
.wp-block-pullquote::before,
.singular:not(.overlay-header) .entry-header a,
.archive-header a,
.header-footer-group .color-accent,
.header-footer-group .color-accent-hover:hover {
	color: var(--embrio-teal);
}

a {
	color: var(--embrio-teal);
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.2em;
}

a:hover {
	color: #0b6670;
}

#site-header {
	background: rgba(255, 255, 255, 0.9);
	border-bottom: 1px solid rgba(15, 138, 150, 0.16);
	box-shadow: 0 8px 28px rgba(22, 50, 58, 0.06);
	position: sticky;
	top: 0;
	z-index: 20;
}

.admin-bar #site-header {
	top: 32px;
}

.embrio-header {
	align-items: center;
	display: grid;
	gap: 1.4rem;
	grid-template-columns: 30rem minmax(0, 1fr) auto;
	min-height: 8.8rem;
	padding: 1.8rem 0;
}

.embrio-brand {
	align-items: center;
	display: inline-flex;
	gap: 1.4rem;
	text-decoration: none;
}

.embrio-brand-mark {
	display: block;
	filter: drop-shadow(0 10px 20px rgba(15, 138, 150, 0.16));
	height: 5.2rem;
	width: 5.2rem;
}

.embrio-brand-text {
	display: grid;
	gap: 0.2rem;
}

.embrio-brand-name {
	color: var(--embrio-ink);
	font-size: 2.25rem;
	font-weight: 800;
	line-height: 1;
	text-transform: lowercase;
}

.embrio-brand-tagline {
	color: var(--embrio-muted);
	font-size: 1.1rem;
	font-weight: 650;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.embrio-nav {
	justify-self: end;
	max-width: 100%;
}

.embrio-menu {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	justify-content: flex-end;
	list-style: none;
	margin: 0;
	padding: 0;
}

.embrio-menu li {
	margin: 0;
	position: relative;
}

.embrio-menu a {
	border: 1px solid transparent;
	border-radius: 999px;
	color: var(--embrio-ink);
	display: inline-flex;
	font-size: 1.22rem;
	font-weight: 700;
	line-height: 1.15;
	padding: 0.68rem 0.78rem;
	text-decoration: none;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.embrio-menu .current-menu-item > a,
.embrio-menu .current_page_item > a,
.embrio-menu a:hover {
	background: #e7f6f7;
	border-color: rgba(15, 138, 150, 0.18);
	color: #0b6670;
}

.embrio-menu .sub-menu {
	background: #ffffff;
	border: 1px solid rgba(15, 138, 150, 0.18);
	border-radius: 8px;
	box-shadow: var(--embrio-shadow);
	display: grid;
	gap: 0.2rem;
	left: 0;
	list-style: none;
	margin: 0;
	min-width: 18rem;
	opacity: 0;
	padding: 0.7rem;
	pointer-events: none;
	position: absolute;
	top: 100%;
	transform: translateY(0);
	transition: opacity 160ms ease, transform 160ms ease;
	z-index: 30;
}

.embrio-menu .sub-menu::before {
	content: "";
	height: 0.8rem;
	left: 0;
	position: absolute;
	right: 0;
	top: -0.8rem;
}

.embrio-menu li:hover > .sub-menu,
.embrio-menu li:focus-within > .sub-menu {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
}

.embrio-menu .sub-menu a {
	display: flex;
	justify-content: flex-start;
	white-space: nowrap;
	width: 100%;
}

.embrio-language-switcher {
	align-items: center;
	background: #f3fbfc;
	border: 1px solid rgba(15, 138, 150, 0.2);
	border-radius: 999px;
	display: inline-flex;
	gap: 0.2rem;
	justify-self: end;
	padding: 0.25rem;
}

.embrio-language-switcher a {
	align-items: center;
	border-radius: 999px;
	color: var(--embrio-muted);
	display: inline-flex;
	font-size: 1.15rem;
	font-weight: 850;
	gap: 0.45rem;
	line-height: 1;
	padding: 0.64rem 0.82rem;
	text-decoration: none;
}

.embrio-flag {
	display: inline-block;
	font-size: 1.5rem;
	line-height: 1;
	transform: translateY(-0.02em);
}

.embrio-language-switcher a.is-active {
	background: #ffffff;
	box-shadow: 0 6px 16px rgba(22, 50, 58, 0.1);
	color: var(--embrio-teal);
}

.embrio-front-hero {
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(241, 251, 252, 0.88)),
		url("assets/embryology-field.svg") center / cover no-repeat;
	border-bottom: 1px solid rgba(15, 138, 150, 0.14);
	overflow: hidden;
	position: relative;
}

.embrio-front-hero::after {
	background: linear-gradient(90deg, var(--embrio-teal), var(--embrio-coral), var(--embrio-gold));
	bottom: 0;
	content: "";
	height: 0.5rem;
	left: 0;
	position: absolute;
	right: 0;
}

.embrio-hero-inner {
	display: grid;
	gap: 4rem;
	grid-template-columns: minmax(0, 1.05fr) minmax(28rem, 0.75fr);
	min-height: 52rem;
	padding: 8rem 0 7rem;
}

.embrio-hero-copy {
	align-self: center;
	max-width: 78rem;
}

.embrio-eyebrow {
	color: var(--embrio-teal);
	font-size: 1.35rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	margin: 0 0 1.6rem;
	text-transform: uppercase;
}

.embrio-hero-copy h1,
.entry-title {
	color: var(--embrio-ink);
	font-weight: 850;
	letter-spacing: 0;
}

.embrio-hero-copy h1 {
	font-size: clamp(4.4rem, 7vw, 8.6rem);
	line-height: 0.94;
	margin: 0;
	max-width: 84rem;
}

.embrio-hero-lede {
	color: var(--embrio-muted);
	font-size: clamp(1.9rem, 2.4vw, 2.5rem);
	line-height: 1.45;
	margin: 2.4rem 0 0;
	max-width: 70rem;
}

.embrio-hero-content {
	border-left: 4px solid var(--embrio-coral);
	color: var(--embrio-ink);
	font-size: 2rem;
	line-height: 1.6;
	margin-top: 3.2rem;
	padding-left: 2rem;
}

.embrio-hero-content p {
	margin: 0 0 1.2rem;
}

.embrio-hero-panel {
	align-self: center;
	background: rgba(255, 255, 255, 0.78);
	border: 1px solid rgba(15, 138, 150, 0.16);
	border-radius: 8px;
	box-shadow: var(--embrio-shadow);
	padding: 3.2rem;
}

.embrio-hero-panel svg {
	display: block;
	height: auto;
	width: 100%;
}

.embrio-hero-stats {
	display: grid;
	gap: 1.2rem;
	grid-template-columns: repeat(3, 1fr);
	margin-top: 2.4rem;
}

.embrio-stat {
	background: #f7fcfd;
	border: 1px solid var(--embrio-line);
	border-radius: 8px;
	padding: 1.4rem;
	text-align: center;
}

.embrio-stat strong {
	color: var(--embrio-ink);
	display: block;
	font-size: 2.4rem;
	line-height: 1;
}

.embrio-stat span {
	color: var(--embrio-muted);
	display: block;
	font-size: 1.15rem;
	font-weight: 750;
	letter-spacing: 0.08em;
	margin-top: 0.6rem;
	text-transform: uppercase;
}

.embrio-page-links {
	background: #ffffff;
	padding: 5rem 0 7rem;
}

.embrio-link-grid {
	display: grid;
	gap: 1.6rem;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.embrio-link-grid li {
	margin: 0;
}

.embrio-link-grid a {
	background: var(--embrio-panel);
	border: 1px solid var(--embrio-line);
	border-radius: 8px;
	box-shadow: 0 14px 34px rgba(22, 50, 58, 0.07);
	color: var(--embrio-ink);
	display: flex;
	font-size: 1.8rem;
	font-weight: 800;
	justify-content: space-between;
	min-height: 9.6rem;
	padding: 2rem;
	text-decoration: none;
	transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.embrio-link-grid a::after {
	color: var(--embrio-coral);
	content: ">";
	font-weight: 900;
	margin-left: 1rem;
}

.embrio-link-grid a:hover {
	border-color: rgba(15, 138, 150, 0.34);
	box-shadow: var(--embrio-shadow);
	transform: translateY(-2px);
}

.embrio-quotes {
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(239, 249, 250, 0.9)),
		url("assets/embryology-field.svg") center / cover no-repeat;
	border-top: 1px solid rgba(15, 138, 150, 0.12);
	padding: 5rem 0 6rem;
}

.embrio-quotes-panel {
	background: rgba(255, 255, 255, 0.86);
	border: 1px solid rgba(15, 138, 150, 0.16);
	border-radius: 8px;
	box-shadow: var(--embrio-shadow);
	margin: 0 auto;
	max-width: 86rem;
	min-height: 21rem;
	padding: 3rem;
	position: relative;
}

.embrio-quote-rotator {
	display: grid;
	min-height: 11rem;
	position: relative;
}

.embrio-quote {
	grid-area: 1 / 1;
	margin: 0;
	opacity: 0;
	transform: translateY(0.8rem);
	animation: embrioQuoteFade 24s infinite;
}

.embrio-quote-2 {
	animation-delay: 6s;
}

.embrio-quote-3 {
	animation-delay: 12s;
}

.embrio-quote-4 {
	animation-delay: 18s;
}

.embrio-quote p {
	color: var(--embrio-ink);
	font-size: clamp(2.2rem, 3vw, 3.6rem);
	font-weight: 780;
	line-height: 1.2;
	margin: 0;
}

.embrio-quote cite {
	color: var(--embrio-teal);
	display: block;
	font-size: 1.35rem;
	font-style: normal;
	font-weight: 850;
	letter-spacing: 0.08em;
	margin-top: 1.5rem;
	text-transform: uppercase;
}

@keyframes embrioQuoteFade {
	0%, 7% {
		opacity: 0;
		transform: translateY(0.8rem);
	}
	11%, 24% {
		opacity: 1;
		transform: translateY(0);
	}
	29%, 100% {
		opacity: 0;
		transform: translateY(-0.8rem);
	}
}

.embrio-edition-page .entry-content {
	display: grid;
	gap: 2rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	max-width: 112rem;
}

.embrio-edition-page .entry-content > * {
	max-width: none;
}

.embrio-edition-page .entry-content > h2,
.embrio-edition-page .entry-content > h3,
.embrio-edition-page .entry-content > h4,
.embrio-edition-page .entry-content > p,
.embrio-edition-page .entry-content > ul,
.embrio-edition-page .entry-content > ol {
	grid-column: 1 / -1;
}

.embrio-edition-page .entry-content > .wp-block-image {
	align-self: stretch;
	background: #ffffff;
	border: 1px solid var(--embrio-line);
	border-radius: 8px;
	box-shadow: 0 18px 46px rgba(22, 50, 58, 0.1);
	margin: 0;
	overflow: hidden;
	padding: 1rem;
}

.embrio-edition-page .entry-content > .wp-block-image:has(img:not([src])),
.embrio-edition-page .entry-content > .wp-block-image img:not([src]) {
	display: none;
}

.embrio-edition-page .entry-content > .wp-block-image img {
	aspect-ratio: 4 / 3;
	border-radius: 6px;
	display: block;
	height: 100%;
	object-fit: contain;
	width: 100%;
}

.embrio-edition-page .entry-content > .wp-block-image:first-of-type:nth-last-of-type(1) {
	grid-column: 1 / -1;
}

.singular .entry-header {
	background:
		linear-gradient(135deg, rgba(245, 251, 252, 0.94), rgba(255, 255, 255, 0.88)),
		url("assets/embryology-field.svg") center / cover no-repeat;
	padding: 7rem 0 5rem;
}

.singular .entry-header .entry-categories,
.post-meta-wrapper {
	display: none;
}

.singular .entry-title {
	font-size: clamp(4rem, 5vw, 6.8rem);
	line-height: 1;
}

.post-inner {
	padding-top: 4.5rem;
}

.entry-content {
	color: var(--embrio-ink);
}

.entry-content > * {
	max-width: 86rem;
}

.entry-content p,
.entry-content li {
	color: var(--embrio-ink);
	line-height: 1.72;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	color: var(--embrio-ink);
	font-weight: 820;
	letter-spacing: 0;
}

.entry-content .wp-block-table,
.entry-content table {
	border-radius: 8px;
	box-shadow: 0 12px 34px rgba(22, 50, 58, 0.07);
	overflow: hidden;
}

.wp-block-button__link,
button,
.button {
	border-radius: 999px;
	font-weight: 800;
}

#site-footer {
	background: #113139;
	color: #effbfc;
	padding: 3.4rem 0;
}

.embrio-footer {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 1.6rem;
	justify-content: space-between;
}

.embrio-footer p {
	margin: 0;
}

.embrio-footer a {
	color: #bcecef;
	font-weight: 750;
	text-decoration: none;
}

.embrio-footer a:hover {
	color: #ffffff;
}

@media (max-width: 999px) {
	.admin-bar #site-header {
		top: 0;
	}

	.embrio-header,
	.embrio-hero-inner {
		grid-template-columns: 1fr;
	}

	.embrio-nav {
		justify-self: stretch;
	}

	.embrio-language-switcher {
		justify-self: start;
	}

	.embrio-menu {
		justify-content: flex-start;
	}

	.embrio-menu .sub-menu {
		box-shadow: none;
		display: flex;
		flex-wrap: wrap;
		left: auto;
		min-width: 100%;
		opacity: 1;
		padding: 0.4rem 0 0 1rem;
		pointer-events: auto;
		position: static;
		transform: none;
		width: 100%;
	}

	.embrio-menu .sub-menu a {
		white-space: normal;
	}

	.embrio-hero-inner {
		min-height: auto;
		padding: 6rem 0;
	}

	.embrio-hero-panel {
		max-width: 52rem;
	}

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

	.embrio-edition-page .entry-content {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 620px) {
	body {
		font-size: 1.7rem;
	}

	.embrio-header {
		gap: 1.4rem;
		min-height: auto;
		padding: 1.4rem 0;
	}

	.embrio-brand-mark {
		height: 4.8rem;
		width: 4.8rem;
	}

	.embrio-brand-name {
		font-size: 2rem;
	}

	.embrio-brand-tagline {
		font-size: 1.05rem;
	}

	.embrio-menu {
		gap: 0.45rem;
	}

	.embrio-menu a {
		font-size: 1.25rem;
		padding: 0.72rem 0.9rem;
	}

	.embrio-hero-copy h1 {
		font-size: 4.2rem;
	}

	.embrio-hero-panel {
		padding: 2rem;
	}

	.embrio-hero-stats,
	.embrio-link-grid {
		grid-template-columns: 1fr;
	}
}
