/*
Theme Name: SciTope
Theme URI: https://scitope.com/
Author: DigitalEgg
Author URI: https://digitalegg.hu/
Description: Könnyű, PHP 8.x-kompatibilis sablon a SciTope oldalhoz. A régi Solitudo sablon kinézetét hozza: középre zárt logó, vízszintes menü, logós projektrács a főoldalon. Kompatibilis a WPBakery és az Elementor tartalmakkal.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: scitope
*/

/* ---------- Betűtípus (helyben tárolt Open Sans, keskeny szélességgel) ---------- */
@font-face {
	font-family: "SciTope Sans";
	src: url("assets/fonts/open-sans-latin-ext-wdth-normal.woff2") format("woff2");
	font-weight: 300 800;
	font-stretch: 75% 100%;
	font-display: swap;
	unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "SciTope Sans";
	src: url("assets/fonts/open-sans-latin-wdth-normal.woff2") format("woff2");
	font-weight: 300 800;
	font-stretch: 75% 100%;
	font-display: swap;
	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;
}

/* ---------- Alapértékek ---------- */
:root {
	--st-navy: #344079;
	--st-navy-dark: #2b3566;
	--st-orange: #db931b;
	--st-orange-dark: #b97a12;
	--st-text: #344079;
	--st-muted: #6b7399;
	--st-line: #e6e8f0;
	--st-bg: #ffffff;
	--st-width: 1100px;
	--st-gutter: 16px;
	--st-font-body: Helvetica, Arial, sans-serif;
	--st-font-head: "SciTope Sans", "Open Sans Condensed", "Arial Narrow", sans-serif;
}

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

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

body {
	margin: 0;
	background: var(--st-bg);
	color: var(--st-text);
	font-family: var(--st-font-body);
	font-size: 14px;
	line-height: 1.6;
}

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

a { color: var(--st-orange); text-decoration: none; }
a:hover, a:focus { color: var(--st-orange-dark); text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--st-font-head);
	font-stretch: 75%;
	font-weight: 700;
	color: var(--st-navy);
	line-height: 1.3;
	margin: 1.4em 0 0.6em;
}
h1 { font-size: 30px; }
h2 { font-size: 24px; }
h3 { font-size: 20px; }
h4 { font-size: 18px; }
h5 { font-size: 16px; }
h6 { font-size: 14px; }

p { margin: 0 0 1em; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.screen-reader-text:focus {
	clip: auto; width: auto; height: auto;
	top: 8px; left: 8px; z-index: 1000;
	padding: 8px 12px; background: #fff; color: var(--st-navy);
}

.st-container {
	width: 100%;
	max-width: var(--st-width);
	margin: 0 auto;
	padding: 0 var(--st-gutter);
}

/* ---------- Fejléc ---------- */
.st-header { text-align: center; }

.st-branding { padding: 48px 0 40px; }

.st-logo { display: inline-block; line-height: 0; }
.st-logo img { width: 400px; max-width: 100%; height: auto; }

.st-site-title {
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 44px;
	font-weight: 400;
	letter-spacing: 0.25em;
	color: var(--st-navy);
}
.st-site-title a { color: inherit; }
.st-site-title a:hover { text-decoration: none; }

.st-tagline {
	margin: 28px auto 0;
	max-width: 900px;
	font-size: 12px;
	color: var(--st-navy);
}

/* ---------- Menü ---------- */
.st-nav {
	border-top: 1px solid var(--st-line);
	border-bottom: 2px solid var(--st-navy);
	background: #fff;
}

.st-nav .st-container { position: relative; }

.st-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
}

.st-menu li { position: relative; }

.st-menu a {
	display: block;
	padding: 18px 18px;
	font-family: var(--st-font-head);
	font-stretch: 75%;
	font-weight: 700;
	font-size: 15px;
	text-transform: uppercase;
	color: var(--st-navy);
	text-decoration: none;
}
.st-menu > li:first-child > a { padding-left: 0; }

.st-menu a:hover,
.st-menu a:focus,
.st-menu .current-menu-item > a,
.st-menu .current_page_item > a,
.st-menu .current-menu-ancestor > a {
	color: var(--st-orange);
	text-decoration: none;
}

/* Almenük */
.st-menu .sub-menu,
.st-menu .children {
	list-style: none;
	margin: 0;
	padding: 6px 0;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	background: #fff;
	border-top: 2px solid var(--st-navy);
	box-shadow: 0 6px 18px rgba(52, 64, 121, 0.12);
	display: none;
	z-index: 50;
	text-align: left;
}
.st-menu .sub-menu a,
.st-menu .children a { padding: 8px 16px; font-size: 14px; }
.st-menu li:hover > .sub-menu,
.st-menu li:focus-within > .sub-menu,
.st-menu li:hover > .children,
.st-menu li:focus-within > .children { display: block; }

.st-menu-toggle {
	display: none;
	margin: 0 auto;
	padding: 14px 0;
	background: none;
	border: 0;
	font-family: var(--st-font-head);
	font-stretch: 75%;
	font-weight: 700;
	font-size: 16px;
	text-transform: uppercase;
	color: var(--st-navy);
	cursor: pointer;
}
.st-menu-toggle .st-burger {
	display: inline-block;
	width: 18px; height: 2px;
	margin-right: 8px;
	vertical-align: middle;
	background: currentColor;
	box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

/* ---------- Tartalom ---------- */
.st-main { padding: 40px 0 64px; min-height: 40vh; overflow-x: clip; }

.st-page-title {
	margin: -8px calc(50% - 50vw) 40px;
	padding: 4px 16px 32px;
	border-bottom: 1px solid var(--st-line);
	text-align: center;
	font-size: 30px;
	text-transform: uppercase;
}

/* Tartalmi címsorok: a régi oldalhoz hasonlóan nagybetűs h2/h3 */
.entry-content h2, .entry-content h3 { text-transform: uppercase; }
.entry-content h3 a { color: var(--st-orange); }
.entry-content h5 { font-size: 15px; }
.entry-content > :first-child,
.entry-content .wp-block-column > :first-child,
.entry-content .wp-block-column > :first-child > :first-child { margin-top: 0; }

/* Képek és beágyazások */
.entry-content figure { margin: 0 0 1.4em; }
.entry-content figure.aligncenter,
.entry-content .wp-block-image.aligncenter { display: block; text-align: center; }
.entry-content iframe { border: 0; }

/* Oszlopok */
.entry-content .wp-block-columns { gap: 32px; margin-bottom: 40px; }

/* Gomb (a régi WPBakery gombok helyett) */
.st-btn-wrap { text-align: center; margin: 32px 0; }
.st-button-block { display: block; width: 100%; padding: 14px 20px; border-radius: 999px; text-transform: none; font-family: var(--st-font-body); font-weight: 400; font-stretch: 100%; }

.entry-content::after { content: ""; display: table; clear: both; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; margin: 0 0 1em; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; }
.entry-content th, .entry-content td { padding: 8px 10px; border: 1px solid var(--st-line); text-align: left; }
.entry-content blockquote { margin: 0 0 1.4em; padding: 4px 0 4px 18px; border-left: 3px solid var(--st-orange); }
.entry-content iframe, .entry-content video { max-width: 100%; }

.alignleft { float: left; margin: 0 1.4em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.4em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text, figcaption { font-size: 12px; color: var(--st-muted); margin-top: 6px; }

/* Gombok (a régi oldalon "SUBMISSION GUIDELINE" stílusú linkek is ezt kapják WPBakeryből) */
.st-button,
.wp-block-button__link,
input[type="submit"],
button[type="submit"] {
	display: inline-block;
	padding: 10px 20px;
	background: var(--st-navy);
	color: #fff;
	border: 0;
	border-radius: 2px;
	font-family: var(--st-font-head);
	font-stretch: 75%;
	font-weight: 700;
	font-size: 15px;
	text-transform: uppercase;
	cursor: pointer;
}
.st-button:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover,
button[type="submit"]:hover { background: var(--st-orange); color: #fff; text-decoration: none; }

input[type="text"], input[type="email"], input[type="url"], input[type="search"],
input[type="tel"], input[type="number"], textarea, select {
	width: 100%;
	max-width: 100%;
	padding: 9px 11px;
	border: 1px solid #cfd3e3;
	border-radius: 2px;
	font: inherit;
	color: var(--st-text);
	background: #fff;
}

/* WPBakery: a sor ne lógjon ki a konténerből */
.entry-content .vc_row { margin-left: -15px; margin-right: -15px; }
.entry-content .vc_row[data-vc-full-width] { margin-left: 0; margin-right: 0; }

/* ---------- Képváltó (a régi Slider Revolution helyett) ---------- */
.st-slider {
	position: relative;
	margin: -40px calc(50% - 50vw) 40px;
	aspect-ratio: 16 / 5;
	max-height: 520px;
	overflow: hidden;
	background: #eef0f6;
}
.st-slider img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 1s ease;
}
.st-slider img.is-active,
.st-slider:not(.is-ready) img:first-child { opacity: 1; }
@media (max-width: 782px) {
	.st-slider { margin-top: -28px; aspect-ratio: 16 / 7; }
}
@media (prefers-reduced-motion: reduce) {
	.st-slider img { transition: none; }
}

/* ---------- Főoldali projektrács ---------- */
.st-projects {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 48px 32px;
	padding: 8px 0 16px;
}

.st-project { text-align: center; }

/* Páratlan darabszámnál az utolsó elem középre kerül, mint a régi oldalon */
.st-project:last-child:nth-child(odd) { grid-column: 1 / -1; }

.st-project-title {
	margin: 0 0 22px;
	font-size: 16px;
	font-weight: 700;
	color: var(--st-navy);
}
.st-project-title a { color: var(--st-orange); }

.st-project-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 130px;
}
.st-project-logo a { display: inline-block; line-height: 0; transition: opacity 0.15s ease, transform 0.15s ease; }
.st-project-logo a:hover { opacity: 0.85; transform: translateY(-2px); }
.st-project-logo img { max-height: 110px; max-width: min(100%, 520px); width: auto; height: auto; object-fit: contain; }

.st-empty { text-align: center; color: var(--st-muted); }

/* ---------- Bejegyzéslista ---------- */
.st-post { padding: 0 0 28px; margin: 0 0 28px; border-bottom: 1px solid var(--st-line); }
.st-post:last-child { border-bottom: 0; }
.st-post-title { margin-top: 0; }
.st-post-title a { color: var(--st-navy); }
.st-post-meta { font-size: 12px; color: var(--st-muted); margin: -4px 0 12px; }
.st-pagination { margin-top: 24px; font-family: var(--st-font-head); font-stretch: 75%; font-weight: 700; }
.st-pagination .page-numbers { display: inline-block; padding: 4px 10px; }
.st-pagination .current { color: var(--st-orange); }

/* ---------- Lábléc ---------- */
.st-footer { background: var(--st-navy); color: #fff; font-size: 12px; }
.st-footer a { color: #fff; }
.st-footer a:hover { color: var(--st-orange); }

.st-footer-widgets {
	padding: 24px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.st-footer-widgets:empty { display: none; }
.st-footer-widgets .widget-title { color: #fff; font-size: 15px; margin-top: 0; }
.st-footer-widgets .st-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 24px;
}

.st-footer-band { min-height: 48px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }

.st-footer-bottom { background: var(--st-navy-dark); padding: 28px 0 30px; }
.st-footer-bottom p { margin: 0; }

/* ---------- Mobil ---------- */
@media (max-width: 782px) {
	.st-branding { padding: 32px 0 28px; }
	.st-logo img { width: 280px; }
	.st-tagline { margin-top: 18px; }
	.st-site-title { font-size: 32px; }

	.st-menu-toggle { display: block; }
	.st-menu { display: none; flex-direction: column; padding-bottom: 12px; text-align: center; }
	.st-nav.is-open .st-menu { display: flex; }
	.st-menu a, .st-menu > li:first-child > a { padding: 10px 0; }
	.st-menu .sub-menu, .st-menu .children {
		position: static; display: block; box-shadow: none; border-top: 0;
		padding: 0 0 6px; min-width: 0; text-align: center;
	}

	.st-projects { grid-template-columns: 1fr; gap: 40px; }
	.st-main { padding: 28px 0 48px; }
	.entry-content .vc_row { margin-left: 0; margin-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.st-project-logo a { transition: none; }
	.st-project-logo a:hover { transform: none; }
}
