/* =========================================================
   eCare-PD Poster 2026 — styles.css
   Fonts: Filson Pro (headings) + Roboto (body)
   ========================================================= */

/* ── Filson Pro (served from /fonts/) ── */
@font-face {
	font-family: 'Filson Pro';
	src: url('fonts/FilsonProBlack.otf') format('opentype');
	font-weight: 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Filson Pro';
	src: url('fonts/FilsonProBold.otf') format('opentype');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Filson Pro';
	src: url('fonts/FilsonProMedium.otf') format('opentype');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Filson Pro';
	src: url('fonts/FilsonProRegular.otf') format('opentype');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

/* ── Design Tokens ── */
:root {
	--primary: #4f6ed4;
	--primary-dark: #263b7f;
	--coral: #de6957;
	--mint: #cce9e4;
	--peach: #ffb3a8;
	--bg: #f4f6fb;
	--surface: #ffffff;
	--text-heading: #263b7f; /* Filson Pro titles */
	--text-body: #111111; /* Roboto body */
	--text-muted: #6b7280;
	--border: #e5e7eb;
	--shadow-sm: 0 1px 3px rgba(38, 59, 127, 0.08);
	--shadow-md: 0 4px 16px rgba(38, 59, 127, 0.12);
	--shadow-lg: 0 10px 32px rgba(38, 59, 127, 0.16);
	--radius-sm: 8px;
	--radius-md: 14px;
	--radius-lg: 22px;
	--radius-full: 9999px;
	--font-heading: 'Filson Pro', sans-serif;
	--font-body: 'Roboto', sans-serif;
}

/* ── Reset ── */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-body);
	background: var(--bg);
	color: var(--text-body);
	line-height: 1.7;
	min-height: 100vh;
}

/* =========================================================
   BANNER (mirrors CafyIntroPage .blueBanner)
   ========================================================= */

.banner {
	width: 100%;
	background: var(--primary-dark);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
	position: sticky;
	top: 0;
	z-index: 100;
}

.banner-inner {
	max-width: 960px;
	margin: 0 auto;
	padding: 0.85rem 2rem;
	display: flex;
	align-items: center;
}

/* ── eCare-PD Logo ── */
.ecare-logo {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	text-decoration: none;
}

.ecare-logo img {
	height: 38px;
	width: auto;
	object-fit: contain;
}

/* Fallback text logo if image not yet uploaded */
.ecare-logo-fallback {
	display: flex;
	align-items: center;
	gap: 0.55rem;
}

.ecare-logo-mark {
	width: 38px;
	height: 38px;
	background: white;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-heading);
	font-weight: 900;
	font-size: 0.75rem;
	color: var(--primary-dark);
	flex-shrink: 0;
}

.ecare-logo-text {
	font-family: var(--font-heading);
	font-weight: 900;
	font-size: 1.05rem;
	color: white;
	letter-spacing: 0.5px;
}

.ecare-logo-text span {
	color: var(--peach);
}

/* =========================================================
   HERO SECTION
   ========================================================= */

.hero {
	background: linear-gradient(160deg, #eff3ff 0%, #e4f4f1 60%, #fff0ee 100%);
	padding: 4rem 2rem 3.5rem;
	position: relative;
	overflow: hidden;
}

.hero-inner {
	max-width: 960px;
	margin: 0 auto;
	padding: 0 2rem;
	position: relative;
	z-index: 1;
}

.hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(
		ellipse 80% 60% at 30% -10%,
		rgba(79, 110, 212, 0.1) 0%,
		transparent 70%
	);
	pointer-events: none;
}

/* CAFY logo bubble */
.cafy-logo {
	width: 88px;
	height: 88px;
	border-radius: 50%;
	/*background: var(--primary-dark);*/
	display: flex;
	align-items: center;
	justify-content: center;
	/*box-shadow: var(--shadow-lg); */
	margin-bottom: 1.75rem;
	animation: floatIn 0.7s ease-out both;
	position: relative;
}

.cafy-logo img {
	width: 100px;
	height: 100px;
	object-fit: contain;
	border-radius: 50%;
}

/* Fallback text if logo not yet uploaded */
.cafy-logo-inner {
	font-family: var(--font-heading);
	font-weight: 900;
	font-size: 1.25rem;
	color: white;
	letter-spacing: 1px;
}

.event-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	background: white;
	border: 1.5px solid var(--border);
	border-radius: var(--radius-full);
	padding: 0.35rem 1rem;
	font-family: var(--font-body);
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--text-heading);
	letter-spacing: 0.3px;
	margin-bottom: 1.25rem;
	box-shadow: var(--shadow-sm);
	animation: floatIn 0.6s ease-out 0.1s both;
}

.event-badge::before {
	content: '🎓';
	font-size: 0.85rem;
}

.hero-title {
	font-family: var(--font-heading);
	font-weight: 900;
	font-size: clamp(1.5rem, 3.5vw, 2.3rem);
	color: var(--text-heading);
	line-height: 1.25;
	max-width: 820px;
	margin-bottom: 2rem;
	animation: floatIn 0.7s ease-out 0.15s both;
}

/* ── CTA Buttons ── */
.cta-group {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
	animation: floatIn 0.7s ease-out 0.25s both;
}

.btn {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 0.95rem;
	border: none;
	border-radius: var(--radius-full);
	padding: 0.8rem 1.9rem;
	cursor: pointer;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	transition:
		transform 0.18s ease,
		box-shadow 0.18s ease,
		background 0.18s ease;
	min-height: 48px;
}

.btn-primary {
	background: var(--coral);
	color: white;
	box-shadow: 0 6px 20px rgba(222, 105, 87, 0.35);
}

.btn-primary:hover {
	background: #c9523f;
	box-shadow: 0 10px 28px rgba(222, 105, 87, 0.45);
	transform: translateY(-2px);
}

.btn-secondary {
	background: white;
	color: var(--primary-dark);
	border: 2px solid var(--primary-dark);
	box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
	background: var(--primary-dark);
	color: white;
	box-shadow: var(--shadow-md);
	transform: translateY(-2px);
}

/* =========================================================
   MAIN LAYOUT
   ========================================================= */

.main {
	max-width: 960px;
	margin: 0 auto;
	padding: 3rem 2rem 5rem;
	display: flex;
	flex-direction: column;
	gap: 2.5rem;
}

/* =========================================================
   SECTION HEADINGS & LABELS
   ========================================================= */

.section-label {
	font-family: var(--font-heading);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--coral);
	margin-bottom: 0.5rem;
}

.section-title {
	font-family: var(--font-heading);
	font-weight: 900;
	font-size: 1.35rem;
	color: var(--text-heading);
	margin-bottom: 1.25rem;
	line-height: 1.3;
}

/* =========================================================
   AUTHORS CARD
   ========================================================= */

.card {
	background: var(--surface);
	border-radius: var(--radius-lg);
	padding: 2rem 2.25rem;
	box-shadow: var(--shadow-md);
	border: 1px solid rgba(38, 59, 127, 0.06);
	animation: fadeUp 0.6s ease-out both;
}

.authors-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
	gap: 1rem;
}

.author-chip {
	background: linear-gradient(135deg, var(--bg) 0%, #edf0fb 100%);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	padding: 0.9rem 1rem;
}

.author-name {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 0.9rem;
	color: var(--text-heading);
	margin-bottom: 0.25rem;
}

.author-role {
	font-family: var(--font-body);
	font-size: 0.76rem;
	color: var(--text-muted);
	line-height: 1.45;
}

/* =========================================================
   ABSTRACT — single white box, all subsections inside
   ========================================================= */

.abstract-card {
	background: var(--surface);
	border-radius: var(--radius-lg);
	padding: 2.25rem 2.5rem;
	box-shadow: var(--shadow-md);
	border: 1px solid rgba(38, 59, 127, 0.06);
	animation: fadeUp 0.6s ease-out 0.1s both;
}

.abstract-section {
	margin-bottom: 1.75rem;
}

.abstract-section:last-child {
	margin-bottom: 0;
}

.abstract-section-title {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 1rem;
	color: var(--text-heading);
	margin-bottom: 0.5rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.abstract-section-title::before {
	content: '';
	display: inline-block;
	width: 4px;
	height: 1em;
	background: var(--coral);
	border-radius: 2px;
	flex-shrink: 0;
}

.abstract-section p {
	font-family: var(--font-body);
	font-size: 0.96rem;
	color: var(--text-body);
	line-height: 1.75;
}

.abstract-divider {
	height: 1px;
	background: var(--border);
	margin: 1.5rem 0;
}

/* =========================================================
   PARTNERS
   ========================================================= */

.partners-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	align-items: center;
}

.partner-logo {
	height: auto;
	width: 235px;
	object-fit: contain;
	filter: grayscale(20%);
	transition:
		filter 0.2s ease,
		transform 0.2s ease;
}

.partner-logo:hover {
	filter: grayscale(0%);
	transform: scale(1.04);
}

/* Fallback if logo files not yet uploaded */
.partner-badge {
	background: var(--bg);
	border: 1.5px solid var(--border);
	border-radius: var(--radius-md);
	padding: 0.65rem 1.25rem;
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 0.85rem;
	color: var(--text-heading);
}

/* =========================================================
   REFERENCES
   ========================================================= */

.ref-list {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.ref-item {
	display: flex;
	gap: 0.75rem;
	align-items: flex-start;
	padding: 0.9rem 1rem;
	background: var(--bg);
	border-radius: var(--radius-sm);
	border-left: 3px solid var(--mint);
	font-family: var(--font-body);
	font-size: 0.83rem;
	color: var(--text-body);
	line-height: 1.6;
}

.ref-number {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 0.75rem;
	color: var(--primary);
	min-width: 22px;
	padding-top: 2px;
}

.ref-item a {
	color: var(--coral);
	font-weight: 600;
	text-decoration: none;
	word-break: break-all;
	display: inline-block;
	margin-top: 0.2rem;
}

.ref-item a:hover {
	text-decoration: underline;
}

/* =========================================================
   FOOTER
   ========================================================= */

footer {
	background: var(--primary-dark);
	color: rgba(255, 255, 255, 0.65);
	text-align: left;
	padding: 1.5rem 2rem;
	font-family: var(--font-body);
	font-size: 0.82rem;
}

footer .footer-inner {
	max-width: 960px;
	margin: 0 auto;
	padding: 0 2rem;
}

footer a {
	color: var(--peach);
	text-decoration: none;
}

footer a:hover {
	text-decoration: underline;
}

/* =========================================================
   ANIMATIONS
   ========================================================= */

@keyframes floatIn {
	from {
		opacity: 0;
		transform: translateY(18px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes fadeUp {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Stagger cards */
.card:nth-child(1) {
	animation-delay: 0.05s;
}
.card:nth-child(2) {
	animation-delay: 0.12s;
}
.card:nth-child(3) {
	animation-delay: 0.18s;
}
.card:nth-child(4) {
	animation-delay: 0.24s;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 640px) {
	.hero {
		padding: 2.5rem 1.25rem;
	}
	.main {
		padding: 2rem 1.25rem 4rem;
	}
	.card,
	.abstract-card {
		padding: 1.5rem 1.25rem;
	}
	.authors-grid {
		grid-template-columns: 1fr 1fr;
	}
	.btn {
		font-size: 0.87rem;
		padding: 0.7rem 1.3rem;
	}
	.cta-group {
		flex-direction: column;
	}
	.hero-title {
		font-size: 1.4rem;
	}
}

/* =========================================================
   ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}
}

@media (prefers-contrast: high) {
	.card,
	.abstract-card {
		border: 2px solid var(--text-heading);
	}
	.hero {
		background: white;
	}
}

@media print {
	.banner {
		position: static;
	}
	.btn {
		display: none;
	}
	body {
		background: white;
	}
}
