/*
Theme Name:   Evirail
Theme URI:    https://evirail.com
Author:       Richet
Author URI:   https://richet.ca
Description:  Professional theme for the Evirail SOP evidence platform — marketing, auth shells, and PWA host pages.
Version:      0.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.1
License:      GNU General Public License v2 or later
Text Domain:  evirail
*/

:root {
	color-scheme: light;
	--ev-bg: #f4f7f5;
	--ev-bg-deep: #0b3d2e;
	--ev-surface: #ffffff;
	--ev-ink: #14241c;
	--ev-ink-soft: #3d5248;
	--ev-ink-faint: #7a8f84;
	--ev-line: #d5e2db;
	--ev-accent: #1f6b4f;
	--ev-accent-deep: #0b3d2e;
	--ev-gold: #c4a35a;
	--ev-warn: #b86b1e;
	--ev-danger: #a33b3b;
	--ev-ok: #2f7d4a;
	--ev-font-display: "Fraunces", "Palatino Linotype", Palatino, serif;
	--ev-font-body: "Source Sans 3", "Segoe UI", sans-serif;
	--ev-radius: 10px;
	--ev-shadow: 0 18px 40px rgba(11, 61, 46, 0.12);
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--ev-font-body);
	color: var(--ev-ink);
	background:
		radial-gradient(1200px 600px at 10% -10%, rgba(196, 163, 90, 0.18), transparent 55%),
		radial-gradient(900px 500px at 100% 0%, rgba(31, 107, 79, 0.16), transparent 50%),
		linear-gradient(180deg, #eef5f1 0%, var(--ev-bg) 40%, #e8efe9 100%);
	line-height: 1.55;
	min-height: 100vh;
}

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

a {
	color: var(--ev-accent);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--ev-accent-deep);
}

.ev-site-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 1.5rem;
	border-bottom: 1px solid rgba(213, 226, 219, 0.8);
	backdrop-filter: blur(8px);
	background: rgba(244, 247, 245, 0.85);
	position: sticky;
	top: 0;
	z-index: 20;
}

.ev-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	color: inherit;
	text-decoration: none;
	font-family: var(--ev-font-display);
	font-weight: 600;
	font-size: 1.35rem;
	letter-spacing: -0.02em;
}

.ev-brand img {
	display: block;
	width: auto;
	height: 100px;
	max-height: 100px;
	object-fit: contain;
}

.ev-nav {
	display: flex;
	gap: 1rem;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ev-nav a {
	color: var(--ev-ink-soft);
	text-decoration: none;
	font-weight: 600;
}

.ev-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	min-height: 44px;
	padding: 0.65rem 1.15rem;
	border-radius: 999px;
	border: 1px solid transparent;
	background: var(--ev-accent);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
}

.ev-btn:hover {
	background: var(--ev-accent-deep);
	color: #fff;
}

.ev-btn--ghost {
	background: transparent;
	border-color: var(--ev-line);
	color: var(--ev-ink);
}

.ev-hero {
	min-height: calc(100vh - 72px);
	display: grid;
	align-items: end;
	padding: 2rem 1.5rem 4rem;
	position: relative;
	overflow: hidden;
}

.ev-hero__media {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(11, 61, 46, 0.15), rgba(11, 61, 46, 0.72)),
		url("../brand/logo.jpg") center/cover no-repeat;
	z-index: 0;
}

.ev-hero__content {
	position: relative;
	z-index: 1;
	max-width: 40rem;
	color: #f7fbf8;
}

.ev-hero__brand {
	font-family: var(--ev-font-display);
	font-size: clamp(2.8rem, 8vw, 5rem);
	line-height: 0.95;
	margin: 0 0 0.75rem;
	letter-spacing: -0.03em;
}

.ev-hero__lede {
	font-size: 1.15rem;
	max-width: 34rem;
	margin: 0 0 1.5rem;
	color: rgba(247, 251, 248, 0.92);
}

.ev-section {
	padding: 3.5rem 1.5rem;
	max-width: 1100px;
	margin: 0 auto;
}

.ev-section h2 {
	font-family: var(--ev-font-display);
	font-size: clamp(1.8rem, 4vw, 2.4rem);
	margin: 0 0 0.75rem;
}

.ev-section p {
	color: var(--ev-ink-soft);
	max-width: 40rem;
}

.ev-site-footer {
	padding: 2rem 1.5rem;
	border-top: 1px solid var(--ev-line);
	color: var(--ev-ink-faint);
	font-size: 0.95rem;
}

.ev-site-footer__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
	margin: 0.75rem 0 0;
}

.ev-site-footer__links a {
	color: var(--ev-ink-soft);
	text-decoration: none;
	font-weight: 600;
}

.ev-site-footer__links a:hover {
	color: var(--ev-accent);
	text-decoration: underline;
}

.ev-section article {
	max-width: 48rem;
}

.ev-section article h2 {
	font-family: var(--ev-font-display);
	font-size: 1.45rem;
	margin: 2rem 0 0.75rem;
}

.ev-section article h3 {
	font-size: 1.1rem;
	margin: 1.35rem 0 0.5rem;
}

.ev-section article p,
.ev-section article li {
	color: var(--ev-ink-soft);
	line-height: 1.65;
	max-width: none;
}

.ev-section article ul {
	padding-left: 1.25rem;
	margin: 0.5rem 0 1rem;
}

.ev-section article a {
	color: var(--ev-accent-deep);
}

.ev-app-shell {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.ev-app-mount {
	flex: 1;
	min-height: 60vh;
}

.ev-sync-banner {
	padding: 0.65rem 1rem;
	text-align: center;
	font-weight: 600;
	background: #fff4df;
	color: #7a4a10;
	border-bottom: 1px solid #f0d7a8;
}

.ev-sync-banner[data-tone="error"] {
	background: #f8e4e4;
	color: #7a2424;
	border-color: #e8bcbc;
}

.ev-sync-banner[data-tone="ok"] {
	background: #e5f4ea;
	color: #215536;
	border-color: #b9dbc6;
}

.ev-sync-banner[data-tone="info"] {
	background: #e8f0ec;
	color: #1f4637;
	border-color: #c5d8ce;
}

@media (max-width: 720px) {
	.ev-nav {
		gap: 0.65rem;
	}
}
