/*
Theme Name: UNSOC-AUTh
Theme URI: https://www.instagram.com/unsoc.auth/
Author: UNSOC-AUTh
Description: Theme for the United Nations Society of Aristotle University of Thessaloniki. Navy and beige editorial design with a home page, Executive Board, Our History, Partnerships and a Newsletter (blog). Home text, numbers and contact details are editable in Appearance > Customize; board members are edited under Board Members.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.7
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: unsoc-auth
*/

/* ---------- Tokens ---------- */
:root {
	--navy: #020a3c;
	--navy-2: #0b1450;
	--beige: #fdf9ee;
	--gold: #9f7c50;
	--ink: #595045;
	--white: #ffffff;
	--line: rgba(255, 255, 255, 0.55);

	--font-display: "Gloock", "Times New Roman", serif;
	--font-condensed: "Playfair Display", "Times New Roman", serif;
	--font-body: "Source Serif 4", Georgia, serif;
	--font-book: "Libre Baskerville", Georgia, serif;

	--wrap: 1180px;
	--gutter: clamp(20px, 4vw, 56px);
}

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

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--navy);
	color: var(--white);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 400;
	line-height: 1.1;
	margin: 0 0 0.5em;
}

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;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto;
	top: 8px; left: 8px; z-index: 1000;
	background: var(--beige); color: var(--navy);
	padding: 10px 16px;
}

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

/* ---------- Header ---------- */
.site-header {
	position: absolute;
	top: 0; left: 0; right: 0;
	z-index: 20;
}
.site-header--solid { position: relative; background: var(--navy); }

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-top: 26px;
	padding-bottom: 22px;
	border-bottom: 1px solid var(--line);
}

.site-logo img { width: 200px; height: auto; }
.site-logo { text-decoration: none; flex-shrink: 0; }
.site-logo__text { font-family: var(--font-book); letter-spacing: .05em; }

.main-nav ul {
	list-style: none;
	margin: 0; padding: 0;
	display: flex;
	gap: clamp(16px, 2.6vw, 38px);
}
.main-nav a {
	font-family: var(--font-display);
	font-size: 15px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: underline;
	text-underline-offset: 4px;
	text-decoration-thickness: 1px;
	color: var(--white);
	white-space: nowrap;
}
.main-nav a:hover,
.main-nav .current-menu-item > a { color: #d9c3a1; }

.nav-toggle {
	display: none;
	background: none;
	border: 1px solid var(--line);
	color: var(--white);
	font-family: var(--font-book);
	font-size: 12px;
	letter-spacing: .12em;
	text-transform: uppercase;
	padding: 10px 14px;
	cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn-outline {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 30px;
	border: 1px solid var(--white);
	color: var(--white);
	text-decoration: none;
	font-family: var(--font-book);
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	transition: background .2s, color .2s;
}
.btn-outline:hover { background: var(--white); color: var(--navy); }

/* ---------- Photo sections ---------- */
.photo-section {
	position: relative;
	background-size: cover;
	background-position: center;
	color: var(--white);
}
.photo-section::before {
	content: "";
	position: absolute; inset: 0;
	background: rgba(4, 8, 30, 0.45);
}
.photo-section > * { position: relative; }

/* Hero */
.hero {
	min-height: min(100vh, 820px);
	display: flex;
	align-items: flex-end;
	padding-bottom: clamp(48px, 8vw, 90px);
}
.hero::before { background: linear-gradient(180deg, rgba(4,8,30,.55) 0%, rgba(4,8,30,.25) 40%, rgba(4,8,30,.55) 100%); }
.hero__title {
	font-family: var(--font-display);
	font-size: clamp(52px, 9vw, 116px);
	line-height: 0.98;
	margin: 0 0 40px;
}

/* ---------- Split (beige + photo) ---------- */
.split {
	display: grid;
	grid-template-columns: 1.25fr 1fr;
	background: var(--beige);
	color: var(--ink);
}
.split__text {
	padding: clamp(48px, 7vw, 96px) clamp(24px, 5vw, 64px);
	max-width: 680px;
	margin-left: auto;
}
.split__heading {
	color: var(--gold);
	font-family: var(--font-condensed);
	letter-spacing: -0.01em;
	font-size: clamp(36px, 4.4vw, 52px);
	margin-bottom: 28px;
}
.split__body {
	font-family: var(--font-book);
	font-size: 15.5px;
	line-height: 1.75;
	text-align: justify;
	hyphens: auto;
}
.split__media {
	position: relative;
	background-size: cover;
	background-position: center;
	min-height: 420px;
}
.split--about .split__media::before {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(10,10,40,.55) 0%, rgba(10,10,40,.2) 45%, rgba(10,10,40,.4) 100%);
}
.split__quote {
	position: relative;
	color: var(--white);
	padding: 28px clamp(24px, 4vw, 48px);
	margin: 0;
	max-width: 440px;
}
.split__quote p {
	font-family: var(--font-display);
	font-size: clamp(20px, 2vw, 25px);
	line-height: 1.3;
	margin-bottom: 8px;
}
.split__quote cite {
	font-family: var(--font-book);
	font-style: italic;
	font-size: 12px;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.split--person .split__body { font-family: var(--font-body); text-align: left; font-size: 16px; }

.quote-box {
	position: relative;
	margin: 48px 0 0;
	padding: 22px 26px;
	border: 1px solid var(--gold);
	border-radius: 14px;
	max-width: 420px;
}
.quote-box::before {
	content: "\201C";
	position: absolute;
	top: -46px; left: 14px;
	font-family: var(--font-display);
	font-size: 86px;
	line-height: 1;
	color: var(--gold);
	background: var(--beige);
	padding: 0 6px;
	height: 56px;
	overflow: hidden;
}
.quote-box p {
	font-family: var(--font-book);
	font-style: italic;
	color: var(--gold);
	font-size: 17px;
	line-height: 1.4;
	margin: 0;
}

/* ---------- Statement ---------- */
.statement {
	min-height: clamp(420px, 60vw, 640px);
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}
.statement__title {
	font-family: var(--font-condensed);
	font-weight: 400;
	font-size: clamp(40px, 6.4vw, 78px);
	letter-spacing: -0.02em;
	line-height: 1.05;
	margin: 0;
	padding: 0 var(--gutter);
}

/* ---------- Navy section ---------- */
.navy-section {
	background: var(--navy);
	padding: clamp(56px, 8vw, 100px) 0;
}
.section-title {
	font-family: var(--font-display);
	font-size: clamp(34px, 4vw, 48px);
	margin-bottom: 0;
}

/* Timeline */
/* 8 half-columns: points 1-4 fill the first line, points 5-7 start half a step in. */
.timeline {
	list-style: none;
	margin: clamp(60px, 9vw, 110px) 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(8, 1fr);
	row-gap: 40px;
}
.timeline li { position: relative; padding-right: 24px; grid-column: span 2; }
.timeline li:nth-child(5) { grid-column: 2 / span 2; }
.timeline li::after {
	content: "";
	position: absolute;
	top: 7px; left: 0; right: 0;
	height: 1px;
	background: var(--line);
}
.timeline li:nth-child(n+5):last-child::after { right: -50%; }
.timeline li::before {
	content: "";
	display: block;
	width: 15px; height: 15px;
	border-radius: 50%;
	background: var(--beige);
	margin-bottom: 28px;
	position: relative;
}
.timeline h3 {
	font-family: var(--font-book);
	font-size: 14px;
	letter-spacing: .1em;
	text-transform: uppercase;
	margin-bottom: 12px;
}
.timeline p { font-family: var(--font-book); font-size: 13px; line-height: 1.6; }
.timeline sup { font-size: .65em; line-height: 0; }

/* Numbers */
.numbers { padding: clamp(56px, 8vw, 100px) 0 clamp(64px, 9vw, 120px); }
.numbers::before { background: rgba(4, 8, 30, 0.5); }
.numbers__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: clamp(16px, 3vw, 32px);
	margin-top: 44px;
}
.stat {
	border: 1px solid rgba(255,255,255,.75);
	min-height: 230px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 24px 14px;
}
.stat__value {
	font-family: var(--font-display);
	font-size: clamp(36px, 4.2vw, 52px);
	line-height: 1;
	margin-bottom: 10px;
}
.stat__label { font-family: var(--font-book); font-size: 14px; line-height: 1.45; }

/* Contact */
.contact { padding-bottom: clamp(64px, 9vw, 110px); }
.contact__inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.contact__list { margin-top: 44px; display: grid; gap: 26px; }
.contact__seal { width: clamp(120px, 18vw, 210px); height: auto; flex-shrink: 0; }
.socials { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 12px; }
.socials li { display: flex; align-items: center; gap: 12px; }
.socials .social-icon { flex-shrink: 0; }
.socials a, .socials strong { max-width: 340px; line-height: 1.3; }
.contact__item span {
	display: block;
	font-family: var(--font-book);
	font-size: 13px;
	letter-spacing: .1em;
	text-transform: uppercase;
}
.contact__item a,
.contact__item strong {
	font-family: var(--font-book);
	font-weight: 700;
	font-size: 14px;
	letter-spacing: .04em;
	text-decoration: none;
}
.contact__item a:hover { text-decoration: underline; }

/* ---------- Inner pages ---------- */
.page-top { padding-top: 110px; }
.page-hero {
	position: relative;
	margin: clamp(32px, 5vw, 56px) auto 0;
	max-width: 880px;
	aspect-ratio: 2.4 / 1;
	background-size: cover;
	background-position: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: rgba(4,8,30,.4); }
.page-hero > * { position: relative; }
.page-hero__title {
	font-family: var(--font-condensed);
	font-weight: 400;
	font-size: clamp(44px, 8vw, 104px);
	letter-spacing: -0.04em;
	line-height: 0.95;
	margin: 0;
	transform: scaleX(.86);
}
.page-hero__sub {
	font-family: var(--font-condensed);
	font-size: clamp(30px, 5vw, 64px);
	letter-spacing: -0.03em;
	line-height: 1;
	margin: 6px 0 0;
	transform: scaleX(.86);
}
.page-hero--tall { aspect-ratio: 1.6 / 1; }
.rule { max-width: 880px; margin: 48px auto 0; border: 0; border-top: 1px solid var(--line); }

.page-title-plain {
	text-align: center;
	font-family: var(--font-condensed);
	font-weight: 400;
	font-size: clamp(44px, 7vw, 88px);
	letter-spacing: -0.03em;
	margin: clamp(32px, 5vw, 48px) 0;
	transform: scaleX(.88);
}

.narrow { max-width: 880px; margin: 0 auto; padding: 0 var(--gutter); }

/* Board */
.board { padding: clamp(48px, 7vw, 72px) 0 120px; }
.member {
	display: grid;
	grid-template-columns: 270px 1fr;
	gap: clamp(24px, 3vw, 40px);
	max-width: 880px;
	margin: 0 auto clamp(56px, 8vw, 88px);
	padding: 0 var(--gutter);
	align-items: start;
}
.member__photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--navy-2); }
.member__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.member__name { font-family: var(--font-condensed); font-size: clamp(28px, 3vw, 36px); letter-spacing: -.01em; margin: 0; }
.member__role {
	font-family: var(--font-condensed);
	font-size: clamp(18px, 2vw, 24px);
	text-transform: uppercase;
	letter-spacing: -.01em;
	line-height: 1.15;
	margin: 4px 0 18px;
	transform: scaleX(.9);
	transform-origin: left;
}
.member__bio {
	font-family: var(--font-book);
	font-size: 13.5px;
	line-height: 1.55;
	letter-spacing: .02em;
}

/* History */
.history-body { padding: clamp(40px, 6vw, 64px) 0 120px; }
.history-body h2 { font-family: var(--font-condensed); font-size: clamp(32px, 4vw, 44px); letter-spacing: -.02em; margin: 0 0 40px; }
.history-body .entry-content p {
	font-family: var(--font-book);
	font-size: clamp(16px, 1.6vw, 19px);
	line-height: 1.45;
	letter-spacing: .06em;
	text-align: justify;
	hyphens: auto;
}
.history-body .entry-content figure,
.history-image { margin: 64px 0; }
.history-image img { width: 100%; }

/* Actions */
.page-intro {
	text-align: center;
	font-family: var(--font-book);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: .08em;
	text-transform: uppercase;
	margin: -12px var(--gutter) 0;
}
.actions-body { padding-top: 48px; padding-bottom: 120px; }
.actions-body h2 {
	font-family: var(--font-condensed);
	font-size: clamp(26px, 3vw, 34px);
	text-transform: uppercase;
	letter-spacing: 0;
	margin: 56px 0 28px;
}
.actions-body h2:first-child { margin-top: 0; }
.actions-body p {
	font-family: var(--font-book);
	font-size: clamp(15px, 1.5vw, 18px);
	line-height: 1.45;
	letter-spacing: .04em;
	text-align: justify;
	hyphens: auto;
	margin: 0;
}
.actions-body p + p { margin-top: 1em; }
.actions-body figure { margin: 0 0 40px; }
.actions-body img { margin: 0; width: 100%; aspect-ratio: 2.3 / 1; object-fit: cover; }

/* Generic content */
.entry-content > * + * { margin-top: 1em; }
.entry-content a { color: #d9c3a1; }
.entry-content img { margin: 32px 0; }
.content-area { padding: 48px 0 120px; }

/* Partnerships grid (core gallery) */
.partners .wp-block-gallery,
.partners .gallery { gap: 24px; }
.partners .wp-block-image img,
.partners .gallery img { background: var(--white); padding: 18px; object-fit: contain; }
.partners-empty { text-align: center; font-family: var(--font-book); opacity: .7; }

/* Newsletter */
.posts-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 40px 32px;
}
.post-card a { text-decoration: none; }
.post-card__img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--navy-2); margin-bottom: 18px; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover .post-card__img img { transform: scale(1.03); }
.post-card__date { font-family: var(--font-book); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.post-card__title { font-size: 26px; margin: 6px 0 10px; }
.post-card__excerpt { font-family: var(--font-book); font-size: 14px; opacity: .85; }
.pagination { margin-top: 60px; text-align: center; font-family: var(--font-book); }
.pagination .page-numbers { padding: 6px 12px; text-decoration: none; }
.pagination .current { border: 1px solid var(--line); }

.single-post-meta { text-align: center; font-family: var(--font-book); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.single-thumb { max-width: 880px; margin: 32px auto 0; }

/* Footer */
.site-footer {
	border-top: 1px solid rgba(255,255,255,.18);
	padding: 28px 0;
	font-family: var(--font-book);
	font-size: 12px;
	letter-spacing: .08em;
	opacity: .75;
}
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
	.nav-toggle { display: inline-block; }
	.main-nav {
		position: absolute;
		top: 100%; left: 0; right: 0;
		background: var(--navy);
		border-bottom: 1px solid var(--line);
		display: none;
	}
	.main-nav.is-open { display: block; }
	.main-nav ul { flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px; }
	.main-nav li a { display: block; padding: 12px 0; }
	.site-header__inner { position: relative; }
	.site-header .wrap { position: relative; }
}

@media (max-width: 900px) {
	.split { grid-template-columns: 1fr; }
	.split__text { max-width: none; margin: 0; }
	.split__media { min-height: 380px; }
	.split--person .split__media { order: 2; }
	.timeline { grid-template-columns: 1fr 1fr; row-gap: 48px; }
	.timeline li, .timeline li:nth-child(5) { grid-column: auto; }
	.timeline li::after, .timeline li:nth-child(n+5):last-child::after { right: 0; }
	.contact__inner { flex-direction: column; align-items: flex-start; }
	.numbers__grid { grid-template-columns: 1fr 1fr; }
	.member { grid-template-columns: 1fr; }
	.member__photo { max-width: 360px; }
}

@media (max-width: 560px) {
	body { font-size: 16px; }
	.site-logo img { width: 160px; }
	.timeline { grid-template-columns: 1fr; }
	.stat { min-height: 170px; }
	.numbers__grid { grid-template-columns: 1fr 1fr; gap: 12px; }
	.page-hero { aspect-ratio: 4 / 3; }
	.page-hero__title, .page-hero__sub, .page-title-plain { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; }
}
