/* Romproed – strat de design (se incarca ultimul; sterge linkul din pagini pentru a reveni la aspectul anterior). */

:root {
	--navy: #0f2a3d;
	--blue: #1c80b7;
	--blue-dark: #166a99;
	--blue-soft: #eaf4fb;
	--bg-soft: #f4f8fb;
	--line: #dfe9f0;
	--text: #34444f;
	--muted: #5b6b77;
	--radius: 14px;
	--shadow-sm: 0 1px 3px rgba(15, 42, 61, .08), 0 1px 2px rgba(15, 42, 61, .06);
	--shadow-md: 0 12px 32px rgba(15, 42, 61, .13);
}

html { scroll-behavior: smooth; }
body { color: var(--text); line-height: 1.7; }
::selection { background: #cfe7f5; color: var(--navy); }
.post-content p { line-height: 1.75; }
.post-content > p { max-width: 78ch; }

/* ---------- Antet ---------- */
#header { box-shadow: 0 1px 0 var(--line), 0 8px 26px rgba(15, 42, 61, .06); }

/* ---------- Spatiere generala ---------- */
#main { padding-top: 64px; padding-bottom: 88px; border: 0; background: #fff; }

/* ---------- Titlul paginii ---------- */
.page-title-container {
	min-height: 128px;
	border: 0;
	background-color: var(--navy) !important;
	background-image: linear-gradient(120deg, #0f2a3d 0%, #166a99 100%) !important;
}
.page-title h1 {
	margin: 0;
	color: #fff !important;
	font: 700 36px/1.2 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif !important;
	letter-spacing: -.01em;
}
.page-title ul li, .page-title ul li a { color: #e6f2f9; font-size: 16px; line-height: 1.5; }
.page-title ul li a:hover { color: #fff !important; text-decoration: underline; }

/* ---------- Titluri de sectiune ---------- */
#main .title { display: block; margin: 0 0 28px; background: none; overflow: visible; }
#main .title h2,
#main .post-content .title h2 {
	position: relative;
	padding: 0 0 16px !important;
	background: none;
	color: var(--navy);
	font-size: 30px !important;
	font-weight: 700;
	line-height: 1.2 !important;
	letter-spacing: -.01em;
}
#main .title h2::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 56px;
	height: 4px;
	border-radius: 4px;
	background: var(--blue);
}
.post-content > .title { margin-top: 56px; }
.post-content > .title:first-child { margin-top: 0; }

/* ---------- Pagina principala: hero + casuta de prezentare suprapusa ---------- */
#layerslider-wrapper .ls-shadow-top,
#layerslider-wrapper .ls-shadow-bottom { display: none; }
.hero { padding-bottom: 64px; background: linear-gradient(#e6f1f9 0%, #f6fafd 100%); }
.hero-inner { background: transparent; }
#layerslider-container + main {
	position: relative;
	z-index: 2;
	margin-top: -64px;
	padding-top: 0;
	background: transparent;
}
.reading-box {
	margin-bottom: 64px;
	padding: 34px 40px;
	border: 0;
	border-radius: 18px;
	background: #fff;
	box-shadow: var(--shadow-md);
}
#main .reading-box h1 { color: var(--navy); font-size: 30px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.reading-box p { color: var(--muted); font-size: 17px; line-height: 1.7; }

/* ---------- Carduri ---------- */
.columns { gap: 28px; margin-bottom: 80px; }
.columns .col,
.columns .col.last {
	display: flex;
	flex-direction: column;
	padding: 30px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
	box-shadow: var(--shadow-sm);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.columns .col:hover { transform: translateY(-4px); border-color: #b9d6e7; box-shadow: var(--shadow-md); }
.columns .col p { flex: 1 1 auto; margin: 0 0 20px; color: var(--muted); }
.col .heading { gap: 14px; margin: 0 0 14px; }
.col .heading img { box-sizing: content-box; padding: 9px; border-radius: 12px; background: var(--blue-soft); }
#main .columns h2 { margin: 0; color: var(--navy); font-size: 22px !important; font-weight: 700; }
.more { text-align: left; }
.more a { padding: 0; background: none; color: var(--blue-dark); font-weight: 600; }
.more a::after { content: " \2192"; transition: margin-left .2s ease; }
.more a:hover::after { margin-left: 4px; }

/* ---------- Tab-uri ---------- */
.tab-holder {
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
	box-shadow: var(--shadow-sm);
}
.tab-holder .tabs { height: auto; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.tab-holder .tabs li { height: auto; border-right: 0 !important; }
.shortcode-tabs .tab-hold .tabs li a,
.shortcode-tabs .tab-hold .tabs li:last-child a,
.shortcode-tabs .tab-hold .tabs li.active a {
	display: block !important;
	box-sizing: border-box !important;
	width: 100% !important;
	height: auto !important;
	padding: 16px 22px !important;
	border: 0 !important;
	border-bottom: 3px solid transparent !important;
	background: transparent !important;
	color: var(--navy) !important;
	font-size: 17px !important;
	font-weight: 600 !important;
	line-height: 1.35 !important;
	text-indent: 0 !important;
	transition: background-color .2s ease;
}
.shortcode-tabs .tab-hold .tabs li a:hover { background: var(--blue-soft) !important; }
.shortcode-tabs .tab-hold .tabs li.active a { border-bottom-color: var(--blue) !important; background: #fff !important; }
.shortcode-tabs .tab_content { padding: 26px !important; }
.shortcode-tabs { margin-bottom: 32px; }

/* ---------- Acordeon (Proiecte, Noutati) ---------- */
h3.toggle { margin: 0 0 12px; overflow: visible; }
h3.toggle a {
	padding: 16px 20px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: #fff;
	color: var(--navy) !important;
	font-weight: 600;
	transition: background-color .2s ease, border-color .2s ease;
}
h3.toggle a:hover { border-color: var(--blue); background: var(--bg-soft); }
h3.toggle.active a { border-color: var(--blue); border-radius: 12px 12px 0 0; background: var(--blue-soft); }
h3.toggle span.arrow { border-radius: 7px; }
.toggle-content {
	box-sizing: border-box;
	margin: -12px 0 12px;
	padding: 22px 26px;
	border: 1px solid var(--blue);
	border-top: 0;
	border-radius: 0 0 12px 12px;
	background: #fff;
}
h3.toggle.active + .toggle-content { border-bottom: 1px solid var(--blue); }

/* ---------- Echipa ---------- */
.person {
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
	box-shadow: var(--shadow-sm);
	transition: transform .2s ease, box-shadow .2s ease;
}
.person:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.person-img { display: block; width: 100%; margin: 0 !important; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 25%; }
.person-desc { padding: 20px 22px 8px; }
.person-author-wrapper { margin: 0 0 12px !important; }
.person-name { color: var(--navy); font-size: 20px; font-weight: 700; line-height: 1.3; }
.person-title { margin-top: 4px; color: var(--blue-dark); font-weight: 500; }
.person-content { display: none; }

/* ---------- Certificari ---------- */
.certs { gap: 20px; }
.cert {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px 20px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: #fff;
	box-shadow: var(--shadow-sm);
	transition: transform .2s ease, box-shadow .2s ease;
}
.cert:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.cert img { width: auto; max-width: 100%; height: 95px; }

/* ---------- Bara laterala, slider, harta ---------- */
#sidebar .widget {
	padding: 28px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--bg-soft);
}
#sidebar .widget:last-child { margin-bottom: 0; }
.slider { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.map-box { border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea { border-radius: 8px; }

/* ---------- Ecrane mici ---------- */
@media only screen and (max-width: 700px) {
	#main { padding-top: 40px; padding-bottom: 56px; }
	.page-title-container { min-height: 104px; }
	.page-title h1 { font-size: 28px !important; }
	#main .title h2, #main .post-content .title h2 { font-size: 26px !important; }
	.post-content > .title { margin-top: 40px; }
	.hero { padding-bottom: 40px; }
	#layerslider-container + main { margin-top: -40px; }
	.reading-box { padding: 24px 22px; margin-bottom: 40px; }
	.reading-box > .continue { order: 3; justify-self: start; margin-top: 20px; }
	#main .reading-box h1 { font-size: 24px; }
	.columns { margin-bottom: 48px; }
	.columns .col, .columns .col.last { padding: 24px; }
	.shortcode-tabs .tab_content { padding: 20px !important; }
	.toggle-content { padding: 18px 20px; }
}

/* ---------- Pagina Contact: informatii + formular alaturate, harta pe toata latimea ---------- */
.contact-layout {
	display: grid;
	grid-template-columns: minmax(300px, 400px) minmax(0, 1fr);
	gap: 32px;
	align-items: start;
	margin-bottom: 24px;
}
.contact-info {
	padding: 36px;
	border-radius: var(--radius);
	background: var(--navy);
	background-image: linear-gradient(160deg, #0f2a3d 0%, #123d58 100%);
	color: #d3e2ec;
	box-shadow: var(--shadow-md);
}
#main .contact-info h2 { margin: 0 0 12px; color: #fff; font-size: 26px !important; font-weight: 700; line-height: 1.25 !important; }
.contact-lead { margin: 0 0 28px !important; color: #b9ccd9; }

.contact-list { display: grid; gap: 22px; margin: 0; padding: 0; list-style: none; }
.contact-list li { display: flex; align-items: flex-start; gap: 16px; margin: 0; padding: 0; }
.ci-icon {
	display: flex;
	flex: 0 0 48px;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: rgba(124, 196, 236, .16);
	color: #7cc4ec;
}
.ci-label { display: block; color: #9fc3d9; font-size: 16px; font-weight: 600; line-height: 1.4; }
.ci-value { display: block; color: #fff; font-size: 18px; line-height: 1.5; word-break: break-word; }
.contact-list a { color: inherit; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .45); text-underline-offset: 3px; }
.contact-list a:hover { color: #7cc4ec !important; text-decoration-color: currentColor; }

.contact-form-card {
	padding: 36px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
	box-shadow: var(--shadow-sm);
}
.contact-form-card .title { margin-bottom: 20px; }
.contact-form-card .contact-form { margin: 0; }

.map-box iframe { height: 440px; }
.map-open { margin-top: 12px; }

/* Varianta pe fundal deschis (bara laterala din Proiecte / Noutati) */
#sidebar .contact-list { gap: 18px; }
#sidebar .ci-icon { flex-basis: 44px; width: 44px; height: 44px; background: var(--blue-soft); color: var(--blue-dark); }
#sidebar .ci-label { color: var(--muted); }
#sidebar .ci-value { color: var(--navy); font-size: 16px; }
#sidebar .contact-list a:hover { color: var(--blue-dark) !important; }

@media only screen and (max-width: 900px) {
	.contact-layout { grid-template-columns: 1fr; gap: 24px; }
	.map-box iframe { height: 360px; }
}
@media only screen and (max-width: 700px) {
	.contact-info, .contact-form-card { padding: 24px 20px; }
	.ci-value { font-size: 17px; }
}
.post-content > p.map-open { max-width: none; }
/* bara laterala: resetez stilul vechi al linkurilor din liste (sageata + linie) pentru lista de contact */
#sidebar .widget .contact-list li a {
	display: inline;
	padding: 0;
	border: 0;
	background: none;
	color: var(--navy);
	text-decoration: underline;
	text-underline-offset: 3px;
}
#main #sidebar .widget h2 { margin-bottom: 20px; color: var(--navy); font-size: 22px; font-weight: 700; }

/* ---------- Butoane: mai compacte ---------- */
#main .button.large,
#main .continue.button,
#main .reading-box .button,
.contact-form button.button {
	min-height: 44px;
	padding: 10px 26px;
	font-size: 16px !important;
	letter-spacing: .02em;
}

/* ---------- Subsol v2 ---------- */
.site-footer {
	border-top: 0;
	background: linear-gradient(170deg, #0f2a3d 0%, #0a1e2d 100%);
}
.site-footer::before { content: ""; display: block; height: 4px; background: linear-gradient(90deg, #1c80b7, #7cc4ec); }
.footer-grid { grid-template-columns: 1.4fr .8fr 1.3fr; gap: 56px; padding-top: 64px !important; padding-bottom: 56px !important; }
.footer-title {
	margin: 0 0 22px !important;
	color: #7cc4ec !important;
	font: 600 16px/1.3 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif !important;
	letter-spacing: .1em;
	text-transform: uppercase !important;
}
.footer-about p { color: #b9ccd9; }
.footer-links li { margin: 0 0 4px; }
.footer-links a { padding: 5px 0; }
.site-footer .contact-list { gap: 18px; }
.site-footer .ci-icon { flex-basis: 44px; width: 44px; height: 44px; background: rgba(124, 196, 236, .14); }
.site-footer .ci-label { color: #8fb6cc; }
.site-footer .ci-value { color: #fff; font-size: 16px; }
.site-footer .contact-list a { color: #fff; }
.site-footer .contact-list a:hover { color: #7cc4ec !important; }

.site-footer .footer-cta {
	display: inline-flex;
	align-items: center;
	min-height: 42px;
	margin-top: 26px;
	padding: 8px 20px;
	border: 1.5px solid #7cc4ec;
	border-radius: 999px;
	background: transparent;
	color: #fff !important;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none !important;
	transition: background-color .2s ease, color .2s ease;
}
.site-footer .footer-cta:hover,
.site-footer .footer-cta:focus-visible { background: #7cc4ec; color: #0f2a3d !important; text-decoration: none !important; }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); background: rgba(5, 16, 24, .55); }
.footer-bottom-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; }

@media only screen and (max-width: 900px) {
	.footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 32px; padding-top: 48px !important; }
	.footer-about { grid-column: 1 / -1; }
}
@media only screen and (max-width: 600px) {
	.footer-grid { grid-template-columns: 1fr; gap: 32px; padding-top: 40px !important; padding-bottom: 36px !important; }
	.footer-bottom-row { flex-direction: column; align-items: flex-start; padding-bottom: 14px; }
	.footer-bottom p { padding-bottom: 6px; }
}

/* sageata CTA din footer desenata in CSS (fara glif de rezerva care umfla inaltimea) */
.site-footer .footer-cta { gap: 10px; line-height: 1.5; }
.site-footer .footer-cta::after {
	content: "";
	width: 7px;
	height: 7px;
	border: solid currentColor;
	border-width: 2px 2px 0 0;
	transform: rotate(45deg);
	transition: transform .2s ease;
}
.site-footer .footer-cta:hover::after { transform: translateX(3px) rotate(45deg); }
.site-footer .footer-cta { box-sizing: border-box; }

.footer-about .footer-cta { margin-top: 8px; }
.footer-bottom-row { justify-content: flex-start; }

/* ---------- Tab-uri -> acordeon pe ecran mic: continutul apare sub tab-ul apasat ---------- */
.tabs-wrapper.is-accordion .tabs-container { display: none; }
.tabs-wrapper.is-accordion ul.tabs { display: block; background: #fff; border-bottom: 0; }
.tabs-wrapper.is-accordion ul.tabs > li { display: block; border-bottom: 1px solid var(--line); }
.tabs-wrapper.is-accordion ul.tabs > li:last-child { border-bottom: 0; }
.tabs-wrapper.is-accordion ul.tabs > li > a { position: relative; padding-right: 52px !important; background: var(--bg-soft) !important; }
.tabs-wrapper.is-accordion ul.tabs > li > a::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 22px;
	width: 9px;
	height: 9px;
	margin-top: -7px;
	border: solid var(--navy);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
	transition: transform .2s ease;
}
.tabs-wrapper.is-accordion ul.tabs > li.active > a { background: var(--blue-soft) !important; border-bottom-color: var(--blue) !important; }
.tabs-wrapper.is-accordion ul.tabs > li.active > a::after { margin-top: -2px; transform: rotate(-135deg); }
.tabs-wrapper.is-accordion ul.tabs > li > .tab_content { padding: 20px !important; background: #fff; }

/* ---------- Ritm vertical: distante mai mici intre sectiuni ---------- */
.slider { margin-bottom: 24px; }
.shortcode-tabs { margin-bottom: 0; }
.certs { margin-bottom: 0; }
.post-content > .title { margin-top: 40px; }
.post-content > .title:first-child { margin-top: 0; }
#main .title { margin-bottom: 24px; }
.one_half, .one_third, .two_third, .one_fourth, .three_fourth { margin-bottom: 24px; }
.columns { margin-bottom: 56px; }
.reading-box { margin-bottom: 48px; }
@media only screen and (max-width: 800px) {
	.post-content > .one_half,
	.post-content > .one_third,
	.post-content > .two_third,
	.post-content > .one_fourth,
	.post-content > .three_fourth { margin-bottom: 24px; }
}
@media only screen and (max-width: 700px) {
	.post-content > .title { margin-top: 28px; }
	.post-content > .title:first-child { margin-top: 0; }
	#main .title { margin-bottom: 20px; }
	.columns { margin-bottom: 36px; }
	.reading-box { margin-bottom: 32px; }
}

/* ---------- Distanta pana la footer ---------- */
#main { padding-bottom: 56px; }
.post-content > :last-child,
.post-content > :last-child > :last-child,
.slider:last-child { margin-bottom: 0; }
.reading-box + .columns:last-child { margin-bottom: 0; }
@media only screen and (max-width: 700px) {
	#main { padding-bottom: 32px; }
}
.post-content > :last-child .slider { margin-bottom: 0; }
.tabs-wrapper.is-accordion ul.tabs > li.active > a,
.tabs-wrapper.is-accordion ul.tabs > li:last-child > a { padding-right: 52px !important; }

/* =====================================================================
   Ritm vertical unitar: aceeasi distanta intre toate sectiunile
   desktop = 60px, mobil (<= 700px) = 40px
   ===================================================================== */
:root { --gap: 60px; }
@media only screen and (max-width: 700px) { :root { --gap: 40px; } }

/* inceputul / sfarsitul paginii */
#main { padding-top: var(--gap); padding-bottom: var(--gap); }
#layerslider-container + main { padding-top: 0; }

/* pagina principala: casuta de prezentare -> carduri -> sectiuni */
.reading-box { margin-bottom: var(--gap); }
.columns { margin-bottom: var(--gap); }

/* titlurile de sectiune deschid o sectiune noua */
.post-content > .title { margin-top: var(--gap) !important; margin-bottom: 24px; }
.post-content > .title:first-child { margin-top: 0 !important; }
.post-content > p + .title { margin-top: calc(var(--gap) - 20px) !important; }

/* blocuri de sectiune: nu adauga margini proprii (distanta vine din --gap) */
.shortcode-tabs, .tab-holder, .certs, .contact-layout { margin-bottom: 0; }
.map-box { margin-bottom: 12px; }

/* coloane-sectiune (jumatati): distanta pana la urmatoarea sectiune = --gap */
.post-content > .one_half { margin-bottom: var(--gap); }
.post-content > .one_half + .title { margin-top: 0 !important; }
.post-content > .one_half:nth-last-child(-n+2) { margin-bottom: 0; }

/* carduri (echipa): 24px intre carduri, fara margine in plus la final */
.post-content > .one_third:nth-last-child(-n+3) { margin-bottom: 0; }

/* bara laterala asezata sub continut pe ecrane mici */
@media only screen and (max-width: 900px) {
	#main > .row { gap: var(--gap); }
}
@media only screen and (max-width: 800px) {
	.post-content > .one_half { margin-bottom: var(--gap); }
	.post-content > .one_half:nth-last-child(-n+2) { margin-bottom: 0; }
	.post-content > .one_half:last-child { margin-bottom: 0; }
}
/* ultimul element al unei liste de acordeon: fara margine in plus pana la footer */
.post-content > h3.toggle:nth-last-child(2):not(.active) { margin-bottom: 0; }
