/* Studium019 – sistem vizual „Broderie”: in, roșu de ștergar, negru, cusătură în cruce. */
:root {
	--linen: #f4ede0;
	--linen-2: #ebe2d0;
	--paper: #fffcf6;
	--ink: #1f1714;
	--muted: #6d5d52;
	--red: #a8201a;
	--red-dark: #861812;
	--black: #161210;
	--ochre: #c58a2b;
	--line: #d9ccb4;
	--font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
	--serif: "Fraunces", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--linen); color: var(--ink); font: 400 17px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; font-weight: 700; }
:focus-visible { outline: 2px dashed var(--red); outline-offset: 3px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.container--narrow { max-width: 760px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--red); color: #fff; padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* Bandă brodată */
.stitch { height: 44px; background: url("../img/banda.svg") repeat-x left center / auto 100%; }
.stitch--top { margin-top: -80px; margin-bottom: 64px; }

/* Antet */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(244, 237, 224, .94); backdrop-filter: blur(6px); border-bottom: 2px dashed var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font: 700 1.25rem var(--serif); letter-spacing: -.01em; }
.brand__mark { width: 36px; height: auto; }
.brand__logo { max-height: 46px; width: auto; }
.nav__list { list-style: none; display: flex; gap: 30px; margin: 0; padding: 0; }
.nav__list a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav__list a:hover { border-bottom: 2px dashed var(--red); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; }
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after { display: block; width: 22px; height: 2px; background: var(--ink); position: relative; margin: 0 auto; content: ""; }
.nav-toggle__bar::before { position: absolute; top: -7px; }
.nav-toggle__bar::after { position: absolute; top: 7px; }

/* Butoane */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 26px; font-weight: 700; text-decoration: none; border-radius: 4px; transition: transform .15s, background .15s, box-shadow .15s; }
.btn--primary { background: var(--red); color: #fff; box-shadow: 4px 4px 0 var(--black); }
.btn--primary:hover { background: var(--red-dark); transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--black); }
.btn--line { color: var(--ink); border: 2px dashed var(--ink); }
.btn--line:hover { border-color: var(--red); color: var(--red); }

/* Hero */
.hero { padding: 72px 0 64px; overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.25fr .75fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin: 0 0 18px; padding-bottom: 4px; border-bottom: 2px dashed currentColor; }
.hero__title { font: 900 clamp(2.5rem, 5.6vw, 4.6rem)/1.02 var(--serif); letter-spacing: -.025em; margin-bottom: 22px; }
.hero__text { font-size: 1.18rem; color: var(--muted); max-width: 560px; margin: 0 0 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero__art { position: relative; }
.hero__art img { width: 100%; max-width: 420px; margin-left: auto; padding: 18px; background: var(--paper); box-shadow: 0 1px 0 var(--line), 10px 10px 0 var(--linen-2); transform: rotate(2deg); }

/* Cifre */
.stats { padding: 44px 0 8px; }
.stats__inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.stat { padding: 8px 28px; border-left: 2px dashed var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__num { display: block; font: 900 clamp(2.6rem, 5vw, 3.8rem)/1 var(--serif); color: var(--red); letter-spacing: -.02em; }
.stat__label { display: block; margin-top: 6px; color: var(--muted); font-weight: 600; }

/* Secțiuni */
.section { padding: 80px 0; }
.section--linen { background: var(--linen-2); }
.section--dark { background: var(--black); color: var(--linen); }
.section--dark a { color: #f0b9a8; }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 30px; }
.section__head .section__title { margin: 0; }
.section__title { font: 700 clamp(1.9rem, 3.4vw, 2.7rem) var(--serif); letter-spacing: -.015em; }
.section__sub { margin: 6px 0 0; color: var(--muted); }
.section__more { margin: 26px 0 0; font-weight: 700; }
.section__more a { color: var(--ink); text-decoration: none; border-bottom: 2px dashed var(--red); }
.lead { font-size: 1.12rem; color: var(--muted); }
.empty { color: var(--muted); }

/* Misiune – registru */
.ledger { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.ledger__row { padding: 26px 30px 6px; border-top: 3px solid var(--black); border-left: 2px dashed var(--line); }
.ledger__row:first-child { border-left: 0; padding-left: 0; }
.ledger__num { display: block; font: italic 700 2.6rem/1 var(--serif); color: var(--red); margin-bottom: 14px; }
.ledger__title { font-size: 1.25rem; }
.ledger__text { color: var(--muted); margin: 0; }

/* Carusel */
.carousel { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 270px); gap: 26px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 14px 10px 26px; margin: 0 -10px; scrollbar-width: thin; scrollbar-color: var(--red) transparent; }
.carousel .stamp { scroll-snap-align: start; }
.carousel .stamp:nth-child(odd) { transform: rotate(-1.2deg); }
.carousel .stamp:nth-child(even) { transform: rotate(1deg); }
.carousel__controls { display: flex; gap: 10px; }
.carousel__btn { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--ink); background: transparent; color: var(--ink); font-size: 1.1rem; cursor: pointer; }
.carousel__btn:hover:not(:disabled) { background: var(--ink); color: var(--linen); }
.carousel__btn:disabled { opacity: .3; cursor: default; }

/* Card tip timbru */
.stamp { filter: drop-shadow(0 2px 3px rgba(31, 23, 20, .18)); transition: transform .2s; }
.stamp:hover, .carousel .stamp:hover { transform: rotate(0) translateY(-4px); }
.stamp__link {
	display: block; height: 100%; color: inherit; text-decoration: none; background: var(--paper); padding: 12px;
	-webkit-mask: linear-gradient(#000 0 0) content-box, radial-gradient(circle 4.5px, transparent 97%, #000) -7px -7px / 14px 14px round;
	mask: linear-gradient(#000 0 0) content-box, radial-gradient(circle 4.5px, transparent 97%, #000) -7px -7px / 14px 14px round;
}
.stamp__media { position: relative; aspect-ratio: 4 / 3; background: var(--linen-2); }
.stamp__media img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.28) saturate(.85) contrast(1.06); transition: filter .3s; }
.stamp:hover .stamp__media img { filter: none; }
.stamp__placeholder { width: 100%; height: 100%; background: url("../img/semn.svg") center / 34% no-repeat, repeating-linear-gradient(45deg, transparent 0 9px, rgba(168, 32, 26, .07) 9px 10px), var(--linen-2); }
.stamp__date { position: absolute; right: -6px; bottom: -18px; width: 66px; height: 66px; border-radius: 50%; border: 2px dashed var(--red); background: rgba(255, 252, 246, .94); color: var(--red); display: grid; place-content: center; text-align: center; font: 700 .62rem/1.1 var(--font); text-transform: uppercase; letter-spacing: .04em; transform: rotate(-14deg); }
.stamp__date span { display: block; font: 900 1.35rem/1 var(--serif); }
.stamp__body { padding: 16px 4px 6px; }
.stamp__title { font: 700 1.08rem/1.25 var(--serif); margin: 0 60px 8px 0; }
.stamp__text { font-size: .9rem; color: var(--muted); margin: 0; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 28px; margin-top: 28px; }
.pagination { margin-top: 44px; }
.nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.page-numbers { padding: 6px 12px; border: 2px dashed var(--line); text-decoration: none; color: var(--ink); }
.page-numbers.current { background: var(--red); color: #fff; border: 2px solid var(--red); }

/* Cum ajuți */
.help { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: start; }
.help__list { list-style: none; margin: 0; padding: 0; }
.help__list li { display: grid; grid-template-columns: 30px 1fr; column-gap: 16px; padding: 22px 0; border-bottom: 2px dashed var(--line); }
.help__list li:first-child { border-top: 3px solid var(--black); }
.help__list li::before { content: ""; grid-row: span 2; width: 26px; height: 26px; margin-top: 4px; background: url("../img/semn.svg") center / contain no-repeat; }
.help__list strong { font: 700 1.4rem/1.2 var(--serif); }
.help__list span { color: var(--muted); }

/* Contact */
.section--dark { position: relative; }
.contact__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; margin: 28px 0 0; }
.contact__list dt { font-size: .76rem; text-transform: uppercase; letter-spacing: .14em; color: #b7a796; }
.contact__list dd { margin: 6px 0 0; font-size: 1.1rem; }
.contact__iban { font-family: ui-monospace, monospace; font-size: .95rem !important; }

/* Articol */
.entry { padding: 56px 0 80px; }
.entry__back { font-weight: 700; text-decoration: none; font-size: .9rem; }
.entry__title { font: 900 clamp(2rem, 4.4vw, 3rem)/1.08 var(--serif); margin-top: 18px; letter-spacing: -.02em; }
.entry__date { color: var(--muted); }
.entry__media { margin: 30px auto; }
.entry__media img { width: 100%; padding: 12px; background: var(--paper); box-shadow: 8px 8px 0 var(--linen-2); }
.entry__content > * + * { margin-top: 1em; }
.entry__content .wp-block-gallery, .entry__content .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.entry__content figure { margin: 0; }
.entry__nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 2px dashed var(--line); font-weight: 700; }
.entry__nav a { text-decoration: none; }

/* Subsol */
.site-footer { background: #0d0a09; color: #b7a796; font-size: .9rem; }
.site-footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--linen); }

/* Buton fix pe mobil */
.mobile-cta { display: none; }

@media (max-width: 900px) {
	.hero { padding: 36px 0 48px; }
	.hero__inner { grid-template-columns: 1fr; gap: 0; }
	.hero__art { order: -1; margin-bottom: 26px; }
	.hero__art img { width: 132px; margin: 0; padding: 8px; transform: rotate(-3deg); box-shadow: 6px 6px 0 var(--linen-2); }
	.ledger { grid-template-columns: 1fr; }
	.ledger__row { display: grid; grid-template-columns: 58px 1fr; column-gap: 12px; padding: 22px 0; border-left: 0; }
	.ledger__num { grid-row: span 2; margin: 0; font-size: 2.2rem; }
	.help { grid-template-columns: 1fr; gap: 24px; }
	.nav-toggle { display: block; }
	.nav { position: absolute; top: 70px; left: 0; right: 0; background: var(--linen); border-bottom: 2px dashed var(--line); display: none; }
	.nav.is-open { display: block; }
	.nav__list { flex-direction: column; gap: 0; padding: 6px 22px 16px; }
	.nav__list a { display: block; padding: 12px 0; }
	.section { padding: 56px 0; }
	.stitch { height: 30px; }
	.stitch--top { margin-top: -56px; margin-bottom: 44px; }
	.carousel { grid-auto-columns: 76%; gap: 18px; }
	.stats__inner { grid-template-columns: 1fr; }
	.stat { border-left: 0; padding: 14px 0; border-top: 2px dashed var(--line); display: flex; align-items: baseline; gap: 16px; }
	.stat:first-child { border-top: 0; }
	.stat__num { min-width: 110px; }
	.site-footer__inner { flex-direction: column; text-align: center; }
	.mobile-cta { display: block; position: fixed; left: 16px; right: 16px; bottom: 14px; z-index: 60; padding: 15px; text-align: center; font-weight: 700; text-decoration: none; color: #fff; background: var(--red); box-shadow: 4px 4px 0 var(--black); border-radius: 4px; transform: translateY(140%); transition: transform .25s; }
	.mobile-cta.is-visible { transform: none; }
	body.home { padding-bottom: 76px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.stamp, .btn, .mobile-cta, .stamp__media img { transition: none; }
	.carousel .stamp:nth-child(n) { transform: none; }
}
