/*
Theme Name: Sion Light
Theme URI: https://biserica-sion.ro/
Author: Biserica Sion
Description: Temă luminoasă, rapidă și simplă pentru Biserica Creștină după Evanghelie Cozmești. Fără dependențe, compatibilă cu PHP 8.x.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: sion-light
*/

:root {
	--bg: #fffdf8;
	--surface: #ffffff;
	--ink: #2a2622;
	--muted: #6b645c;
	--line: #ece4d4;
	--accent: #c98a1b;
	--accent-ink: #8f5f0a;
	--accent-soft: #fbf1dc;
	--radius: 14px;
	--shadow: 0 6px 24px rgba(60, 40, 10, .08);
	--serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
	--sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 17px/1.7 var(--sans);
	-webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; }
iframe { max-width: 100%; }
.entry-content iframe[src*="youtube"], .entry-content iframe[src*="youtu.be"], .entry-content iframe[src*="vimeo"], .entry-content iframe[src*="facebook.com/plugins/video"] {
	display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: 10px;
}
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4vw + 1rem, 3.2rem); }
h2 { font-size: clamp(1.5rem, 2vw + 1rem, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.wrap { width: min(var(--wrap), 100% - 2rem); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2rem); margin-inline: auto; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	position: fixed; top: 8px; left: 8px; z-index: 100; width: auto; height: auto;
	clip: auto; background: #fff; padding: .6rem 1rem; border-radius: 8px; box-shadow: var(--shadow);
}

/* Header */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 253, 248, .94);
	backdrop-filter: saturate(1.4) blur(8px);
	border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.site-title {
	font: italic 700 1.9rem/1 var(--serif); margin: 0; letter-spacing: .01em;
}
.site-title a { color: var(--accent-ink); text-decoration: none; }
.nav-toggle {
	display: none; background: none; border: 1px solid var(--line); border-radius: 10px;
	padding: .5rem .8rem; font: inherit; color: var(--ink); cursor: pointer;
}
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; align-items: center; }
.main-nav li { position: relative; }
.main-nav a {
	display: block; padding: .55rem .85rem; border-radius: 999px; text-decoration: none;
	color: var(--ink); font-size: .95rem; font-weight: 500;
}
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current_page_item > a { background: var(--accent-soft); color: var(--accent-ink); }
.main-nav ul ul {
	display: none; position: absolute; left: 0; top: 100%; min-width: 210px; flex-direction: column;
	align-items: stretch; background: var(--surface); border: 1px solid var(--line);
	border-radius: 12px; padding: .4rem; box-shadow: var(--shadow);
}
.main-nav li:hover > ul, .main-nav li:focus-within > ul { display: flex; }

@media (max-width: 860px) {
	.nav-toggle { display: inline-block; }
	.main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); padding: .5rem 1rem 1rem; }
	.main-nav.open { display: block; }
	.main-nav ul { flex-direction: column; align-items: stretch; }
	.main-nav ul ul { display: flex; position: static; border: 0; box-shadow: none; padding: 0 0 0 1rem; background: none; }
}

/* Buttons */
.btn {
	display: inline-block; padding: .8rem 1.5rem; border-radius: 999px; font-weight: 600;
	text-decoration: none; border: 2px solid var(--accent); background: var(--accent); color: #fff;
	transition: transform .15s, box-shadow .15s;
}
.btn:hover { color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn.ghost { background: transparent; color: var(--accent-ink); }
.btn.ghost:hover { background: var(--accent-soft); color: var(--accent-ink); }

/* Hero */
.hero {
	position: relative; min-height: min(70vh, 560px); display: flex; align-items: center;
	background-color: #f6e7c8; background-size: cover; background-position: center right;
}
.hero::before {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(90deg, rgba(255, 253, 248, .97) 0%, rgba(255, 253, 248, .88) 38%, rgba(255, 253, 248, 0) 78%);
}
.hero .wrap { position: relative; padding-block: 4rem; }
.hero-copy { max-width: 560px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--accent-ink); margin-bottom: .8rem; }
.hero h1 { color: var(--ink); }
.hero p.lead { font-size: 1.2rem; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }
@media (max-width: 700px) { .hero::before { background: rgba(255, 253, 248, .9); } }

/* Sections */
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section.tint { background: var(--accent-soft); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.2rem; }
.section-head p { color: var(--muted); }
.grid { display: grid; gap: 1.5rem; }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
	overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.card-img { aspect-ratio: 16 / 9; background: var(--accent-soft) center / cover no-repeat; display: block; }
.card-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: .3rem; }
.card-body h3 a { color: var(--ink); text-decoration: none; }
.card-body h3 a:hover { color: var(--accent-ink); }
.badge { display: inline-block; background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; font-size: .85rem; padding: .15rem .7rem; border-radius: 999px; margin-bottom: .7rem; align-self: flex-start; }
.meta { color: var(--muted); font-size: .9rem; margin-bottom: .6rem; }
.more { margin-top: auto; font-weight: 600; text-decoration: none; }

/* Program band */
.program { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.program div {
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 1.3rem; text-align: center;
}
.program strong { display: block; font-family: var(--serif); font-size: 1.15rem; }
.program span { color: var(--accent-ink); font-weight: 700; font-size: 1.3rem; }

/* Help band */
.help { text-align: center; }
.help .narrow > * { margin-inline: auto; }

/* Content */
.page-head { padding-block: 3rem 1.5rem; text-align: center; border-bottom: 1px solid var(--line); background: var(--accent-soft); }
.page-head h1 { margin: 0; }
.entry { padding-block: 2.5rem 4rem; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content img { border-radius: 10px; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content td, .entry-content th { vertical-align: top; padding: .8rem; }
.entry-content blockquote { margin: 1.5rem 0; padding: .5rem 1.4rem; border-left: 4px solid var(--accent); background: var(--accent-soft); border-radius: 0 10px 10px 0; font-family: var(--serif); }
.entry-content .alignleft { float: left; margin: .3rem 1.2rem 1rem 0; }
.entry-content .alignright { float: right; margin: .3rem 0 1rem 1.2rem; }
.entry-content .aligncenter { display: block; margin-inline: auto; }
.entry-content::after { content: ""; display: table; clear: both; }
.post-thumb { margin: 0 0 2rem; }
.post-thumb img { width: 100%; border-radius: var(--radius); }
.post-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.pagination { display: flex; justify-content: center; gap: .4rem; margin-top: 2.5rem; flex-wrap: wrap; }
.pagination .page-numbers { padding: .45rem .9rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; background: var(--surface); }
.pagination .current { background: var(--accent); border-color: var(--accent); color: #fff; }
input[type=text], input[type=email], input[type=search], input[type=url], textarea {
	width: 100%; padding: .75rem 1rem; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; color: var(--ink);
}
input[type=submit], button[type=submit], .wpcf7-submit {
	background: var(--accent); color: #fff; border: 0; padding: .8rem 1.6rem; border-radius: 999px; font: inherit; font-weight: 600; cursor: pointer;
}
.wpcf7 form p { margin-bottom: 1rem; }
.searchform { display: flex; gap: .5rem; }
.searchform input[type=search] { flex: 1; }

/* Comments */
.comments { margin-top: 3rem; }
.comment-list { list-style: none; padding: 0; }
.comment-list li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.2rem; margin-bottom: 1rem; }

/* Footer */
.site-footer { background: #2a2622; color: #e9e2d6; padding-block: 3rem 1.5rem; margin-top: 2rem; }
.site-footer a { color: #f3d9a0; }
.site-footer h3 { color: #fff; font-size: 1.1rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .4rem; }
.site-footer { padding-bottom: 0; }
.bone-banner {
	display: flex; flex-direction: column; gap: .35rem; text-decoration: none; color: var(--ink);
	background: linear-gradient(135deg, #fff7e6, #f7dfae); border-radius: var(--radius); padding: 1.3rem 1.4rem;
	transition: transform .15s, box-shadow .15s;
}
.bone-banner:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0, 0, 0, .35); }
.bone-banner strong { font: 700 1.9rem/1 var(--serif); color: var(--accent-ink); }
.bone-kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; font-weight: 700; color: var(--accent-ink); }
.bone-text { font-size: .95rem; line-height: 1.5; }
.bone-cta { font-weight: 700; color: var(--accent-ink); margin-top: .3rem; }
.bottom-band { background: #1d1a17; margin-top: 2.5rem; padding-block: 1rem; font-size: .9rem; color: #b9b0a2; }
.bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: .5rem 1.5rem; flex-wrap: wrap; }
.bottom-inner a { color: #f3d9a0; font-weight: 600; }
@media (max-width: 600px) { .bottom-inner { flex-direction: column; text-align: center; } }
.site-footer .bone-banner, .site-footer .bone-banner:hover { color: var(--ink); }
.site-footer .bone-banner .bone-kicker, .site-footer .bone-banner .bone-cta { color: var(--accent-ink); }
.entry-content { overflow-wrap: anywhere; }
@media (max-width: 700px) {
	.entry-content table, .entry-content tbody, .entry-content tr, .entry-content td, .entry-content th { display: block; width: 100% !important; }
	.entry-content td, .entry-content th { padding: .5rem 0; }
}
.nw { white-space: nowrap; }
.hero h1 { text-wrap: balance; }

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