/*
Theme Name: ECIO Conference
Theme URI: https://www.ecio-conference.org
Author: ECIO Organising Committee
Description: Custom theme for the European Conference on Integrated Optics (ECIO), recreated from the live ecio-conference.org site design for the ECIO27 edition (DTU Lyngby, Denmark).
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ecio-conference
*/

/* ==========================================================================
   Design tokens (extracted from the live ecio-conference.org site palette)
   ========================================================================== */
:root {
	--ecio-accent: #9c1e64;
	--ecio-accent-dark: #7a1750;
	--ecio-blue: #003f88;
	--ecio-dark: #28292a;
	--ecio-gray: #828487;
	--ecio-border: #e8ebed;
	--ecio-bg-light: #f4f5f6;
	--ecio-bg-lighter: #f8fafc;
	--ecio-white: #ffffff;

	--ecio-font-heading: 'Rubik', sans-serif;
	--ecio-font-body: 'Roboto', sans-serif;

	--ecio-radius: 12px;
	--ecio-shadow: 0 10px 20px rgba(41, 51, 61, 0.1);
	--ecio-container: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--ecio-font-body);
	font-size: 16px;
	line-height: 1.65;
	color: var(--ecio-dark);
	background: var(--ecio-white);
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--ecio-font-heading);
	color: var(--ecio-blue);
	font-weight: 500;
	line-height: 1.25;
	margin: 0 0 0.6em;
}

h1 { font-size: 40px; }
h2 { font-size: 30px; }
h3 { font-size: 25px; }
h4 { font-size: 20px; }

p { margin: 0 0 1.2em; }

a { color: var(--ecio-accent); text-decoration: none; }
a:hover { color: var(--ecio-accent-dark); text-decoration: underline; }

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

.container {
	max-width: var(--ecio-container);
	margin: 0 auto;
	padding: 0 24px;
}

.btn {
	display: inline-block;
	background: var(--ecio-accent);
	color: var(--ecio-white);
	font-family: var(--ecio-font-heading);
	font-size: 15px;
	font-weight: 500;
	padding: 12px 28px;
	border-radius: 6px;
	border: none;
	cursor: pointer;
	transition: background 0.2s ease;
}
.btn:hover { background: var(--ecio-accent-dark); color: var(--ecio-white); text-decoration: none; }

/* ==========================================================================
   Header / nav
   ========================================================================== */
.site-header {
	background: var(--ecio-white);
	border-bottom: 1px solid var(--ecio-border);
	position: sticky;
	top: 0;
	z-index: 100;
}

.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 2px;
	padding-bottom: 7px;
}

.site-logo img { max-height: 75px; width: auto; }
.site-logo { font-family: var(--ecio-font-heading); font-size: 22px; color: var(--ecio-blue); font-weight: 600; }

.main-nav-bar {
	background: var(--ecio-dark);
}

.main-nav-bar .container { display: flex; justify-content: center; }

.main-nav ul {
	list-style: none;
	display: flex;
	margin: 0;
	padding: 0;
}

.main-nav > ul > li {
	position: relative;
}

.main-nav > ul > li > a {
	display: block;
	color: var(--ecio-white);
	font-family: var(--ecio-font-heading);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.02em;
	padding: 16px 20px;
	text-decoration: none;
}

.main-nav > ul > li > a:hover,
.main-nav > ul > li.current-menu-ancestor > a,
.main-nav > ul > li.current-menu-item > a {
	background: var(--ecio-accent);
	color: var(--ecio-white);
}

.main-nav ul ul {
	display: none;
	position: absolute;
	left: 0;
	top: 100%;
	background: var(--ecio-white);
	min-width: 240px;
	box-shadow: var(--ecio-shadow);
	border-radius: 0 0 6px 6px;
	overflow: hidden;
}

.main-nav li:hover > ul { display: block; }

.main-nav ul ul li a {
	display: block;
	padding: 12px 18px;
	color: var(--ecio-dark);
	font-size: 14px;
	border-bottom: 1px solid var(--ecio-border);
}

.main-nav ul ul li:last-child a { border-bottom: none; }
.main-nav ul ul li a:hover { background: var(--ecio-bg-light); color: var(--ecio-accent); text-decoration: none; }

.nav-toggle {
	display: none;
	background: none;
	border: none;
	font-size: 26px;
	line-height: 1;
	color: var(--ecio-dark);
	cursor: pointer;
	padding: 4px 8px;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
	position: relative;
	color: var(--ecio-white);
	background: var(--ecio-dark);
	overflow: hidden;
	min-height: 480px;
	display: flex;
	align-items: center;
}

.hero-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
}

.hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(40, 41, 42, 0.35) 0%, rgba(40, 41, 42, 0.75) 100%);
}

.hero-content {
	position: relative;
	z-index: 2;
	text-align: center;
	width: 100%;
}

.hero-content .eyebrow {
	font-family: var(--ecio-font-heading);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-size: 14px;
	color: var(--ecio-white);
	opacity: 0.85;
	margin-bottom: 10px;
}

.hero-content h1 {
	color: var(--ecio-white);
	font-size: 46px;
	margin-bottom: 14px;
}

.hero-content .hero-meta {
	font-family: var(--ecio-font-heading);
	font-size: 20px;
	margin-bottom: 24px;
}

.hero-content .hero-lede {
	max-width: 720px;
	margin: 0 auto 28px;
	font-size: 18px;
	opacity: 0.92;
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section {
	padding: 70px 0;
}

.section-alt { background: var(--ecio-bg-lighter); }

.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { margin-bottom: 8px; }
.section-title p { color: var(--ecio-gray); max-width: 640px; margin: 0 auto; }

.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 28px;
}

.card {
	background: var(--ecio-white);
	border: 1px solid var(--ecio-border);
	border-radius: var(--ecio-radius);
	padding: 28px;
	box-shadow: var(--ecio-shadow);
}

.card h3 { font-size: 20px; }

.photo-caption {
	font-size: 13px;
	color: var(--ecio-gray);
	margin-top: 8px;
	font-style: italic;
}

.gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 18px;
}

.gallery-grid figure { margin: 0; }
.gallery-grid img { border-radius: var(--ecio-radius); box-shadow: var(--ecio-shadow); }

.sponsor-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 40px;
}

.sponsor-grid .sponsor-tier { width: 100%; text-align: center; margin-bottom: 10px; }
.sponsor-grid .sponsor-tier h4 { text-transform: uppercase; letter-spacing: 0.08em; color: var(--ecio-gray); font-size: 14px; }

.tba-badge {
	display: inline-block;
	background: var(--ecio-bg-light);
	color: var(--ecio-gray);
	font-family: var(--ecio-font-heading);
	font-size: 13px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	padding: 6px 14px;
	border-radius: 20px;
	border: 1px dashed var(--ecio-border);
}

/* ==========================================================================
   Page content (single/page.php)
   ========================================================================== */
.page-header-band {
	background: var(--ecio-dark);
	color: var(--ecio-white);
	padding: 56px 0;
	text-align: center;
}
.page-header-band h1 { color: var(--ecio-white); margin: 0; }

.entry-content {
	max-width: 860px;
	margin: 0 auto;
	padding: 60px 24px;
}

.entry-content h2 { margin-top: 1.4em; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
.entry-content table th, .entry-content table td { border: 1px solid var(--ecio-border); padding: 10px 14px; text-align: left; }
.entry-content table th { background: var(--ecio-bg-light); }

.doc-list { list-style: none; padding: 0; margin: 0; }
.doc-list li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 20px;
	background: var(--ecio-bg-lighter);
	border: 1px solid var(--ecio-border);
	border-radius: var(--ecio-radius);
	margin-bottom: 14px;
}
.doc-list li a { font-family: var(--ecio-font-heading); font-weight: 500; }
.doc-list .doc-desc { color: var(--ecio-gray); font-size: 14px; margin-top: 4px; }

.external-note {
	background: var(--ecio-bg-light);
	border-left: 4px solid var(--ecio-accent);
	padding: 14px 20px;
	border-radius: 0 8px 8px 0;
	font-size: 15px;
	margin-bottom: 2em;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
	background: var(--ecio-dark);
	color: rgba(255,255,255,0.75);
	padding: 60px 0 24px;
}

.footer-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 40px;
	margin-bottom: 40px;
}

.footer-grid h4 {
	color: var(--ecio-white);
	font-size: 15px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: 16px;
}

.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid ul li { margin-bottom: 8px; }
.footer-grid a { color: rgba(255,255,255,0.75); }
.footer-grid a:hover { color: var(--ecio-white); }

.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form input[type=email] {
	flex: 1;
	min-width: 200px;
	padding: 10px 14px;
	border-radius: 6px;
	border: 1px solid rgba(255,255,255,0.2);
	background: rgba(255,255,255,0.05);
	color: var(--ecio-white);
}

.footer-bottom {
	border-top: 1px solid rgba(255,255,255,0.12);
	padding-top: 20px;
	text-align: center;
	font-size: 13px;
}

@media (max-width: 900px) {
	.nav-toggle { display: block; }

	.main-nav { display: none; width: 100%; }
	.main-nav.is-open { display: block; }
	.main-nav > ul { flex-direction: column; }
	.main-nav > ul > li > a { padding: 14px 20px; }

	.main-nav ul ul {
		display: block;
		position: static;
		background: rgba(0, 0, 0, 0.15);
		box-shadow: none;
		border-radius: 0;
	}
	.main-nav ul ul li a {
		color: var(--ecio-white);
		padding-left: 36px;
		border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	}
	.main-nav ul ul li a:hover {
		background: rgba(255, 255, 255, 0.1);
		color: var(--ecio-white);
	}

	.hero-content h1 { font-size: 32px; }
	.entry-content { padding: 40px 20px; }
}
