/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body, 'Manrope', system-ui, sans-serif);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- VARIANT: Cultural Maramureș ---------- */
body.v-cultural {
  --bg: #F4ECD8;
  --bg-deep: #ECE0C2;
  --paper: #FBF6E9;
  --ink: #1F1611;
  --ink-soft: #4a3a2c;
  --rule: #d6c39a;
  --primary: #7A1F2B;          /* bordo maramureșean */
  --primary-deep: #5C161F;
  --accent: #5B3A24;           /* lemn */
  --accent-2: #2A4A35;         /* brad */
  --gold: #B98B3C;
  --font-display: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --radius: 4px;
  --display-weight: 600;
  --display-italic: italic;
}

/* ---------- VARIANT: Modern Editorial Ivory ---------- */
body.v-modern {
  --bg: #FAF6EC;
  --bg-deep: #F2ECDD;
  --paper: #FFFCF3;
  --ink: #16140F;
  --ink-soft: #5a5648;
  --rule: #e2dac4;
  --primary: #16140F;          /* ink */
  --primary-deep: #000000;
  --accent: #8B6B2A;           /* subtle gold */
  --accent-2: #2E2B22;
  --gold: #8B6B2A;
  --font-display: 'Instrument Serif', 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --radius: 2px;
  --display-weight: 400;
  --display-italic: normal;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.05;
}
.h-display {
  font-family: var(--font-display);
  font-style: var(--display-italic);
  font-weight: var(--display-weight);
}
.signature {
  font-family: 'Imperial Script', 'Pinyon Script', cursive;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0;
  line-height: 1;
}
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
body.v-modern .eyebrow { color: var(--ink-soft); }

.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 920px; margin: 0 auto; padding: 0 32px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  transition: background 380ms ease, box-shadow 380ms ease, padding 380ms ease, color 380ms ease;
  color: #fff;
}
.site-header.is-solid {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06), 0 18px 40px -22px rgba(0,0,0,0.4);
  padding: 12px 32px;
}
.site-header .logo {
  font-family: 'Imperial Script', 'Pinyon Script', cursive;
  font-weight: 400;
  font-size: 36px;
  line-height: 1;
  letter-spacing: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 2px;
}
.site-header .logo small {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.75;
  font-weight: 600;
  align-self: center;
  padding-left: 12px;
  border-left: 1px solid currentColor;
  line-height: 1.2;
}
.nav {
  display: flex; align-items: center; gap: 4px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav a {
  position: relative;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.92;
  transition: opacity 200ms;
}
.nav a:hover { opacity: 1; }
.nav a::after {
  content: '';
  position: absolute;
  left: 16px; right: 16px; bottom: 4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 320ms ease;
}
.nav a:hover::after { transform: scaleX(1); }

.socials {
  display: flex; align-items: center; gap: 6px;
}
.socials a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  transition: background 200ms, border-color 200ms, transform 200ms;
}
.socials a:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.5); transform: translateY(-1px); }
.socials svg { width: 16px; height: 16px; fill: currentColor; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 680px;
  overflow: hidden;
  background: #1a0e0a;
  color: #fff;
}
.hero-slides {
  position: absolute; inset: 0;
}
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1400ms ease, transform 9000ms linear;
  transform: scale(1.04);
}
.hero-slide.is-active {
  opacity: 1;
  transform: scale(1.12);
}
.hero-slide image-slot {
  width: 100%; height: 100%;
  display: block;
}
.hero-slide image-slot::part(label) { color: rgba(255,255,255,0.7); }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.15) 35%, rgba(0,0,0,0.65) 100%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  height: 100%;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 0 56px 160px 28px;
  max-width: 1240px;
  margin: 0 auto;
}
body.v-cultural .hero-content { padding-bottom: 96px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.26em; text-transform: uppercase;
  margin-bottom: 28px;
  color: rgba(255,255,255,0.92);
}
.hero-eyebrow::before {
  content: ''; width: 36px; height: 1px; background: currentColor; opacity: 0.7;
}
.hero h1 {
  color: #fff;
  font-family: 'Imperial Script', 'Pinyon Script', cursive;
  font-style: normal;
  font-weight: 400;
  font-size: clamp(88px, 16vw, 220px);
  line-height: 0.95;
  letter-spacing: 0;
  white-space: nowrap;
  margin-bottom: 24px;
}
.hero-tag {
  font-size: clamp(18px, 1.6vw, 22px);
  max-width: 640px;
  opacity: 0.93;
  font-weight: 400;
}
.hero-dots {
  position: absolute;
  right: 56px;
  bottom: 96px;
  display: flex; gap: 8px;
  z-index: 2;
}
.hero-dots button {
  width: 36px; height: 3px;
  background: rgba(255,255,255,0.35);
  border: none;
  transition: background 200ms, width 320ms;
  cursor: pointer;
  padding: 0;
}
.hero-dots button.is-active { background: #fff; width: 64px; }

.scroll-cue {
  position: absolute; bottom: 28px;
  left: 50%; transform: translateX(-50%);
  font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-cue::after {
  content: '';
  width: 1px; height: 28px;
  background: rgba(255,255,255,0.5);
  animation: scrollLine 2.2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.01% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Section base ---------- */
section.section {
  padding: 140px 0;
  position: relative;
}
.section-head {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  margin-bottom: 72px;
  align-items: end;
}
.section-head h2 {
  font-size: clamp(40px, 5.6vw, 76px);
  font-style: var(--display-italic);
}
.section-head .lead {
  max-width: 580px;
  color: var(--ink-soft);
  font-size: 18px;
  font-weight: 400;
}
.section-rule {
  height: 1px; background: var(--rule); margin: 0;
}

/* ---------- Despre ---------- */
#despre {
  background: var(--bg);
}
.despre-pull {
  font-family: var(--font-display);
  font-style: var(--display-italic);
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.18;
  color: var(--ink);
  max-width: 920px;
  margin: 0 0 96px;
  padding-left: 28px;
  border-left: 2px solid var(--ink);
  text-wrap: balance;
}
.despre-blocks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.despre-block {
  background: var(--bg);
  padding: 48px 48px 56px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}
.despre-block .index {
  font-family: var(--font-display);
  font-style: var(--display-italic);
  font-size: 18px;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 6px;
}
.despre-block .index::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule);
}
.despre-block .key {
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 700;
}
.despre-block h3 {
  font-size: clamp(28px, 2.6vw, 36px);
  line-height: 1.1;
  font-style: var(--display-italic);
  margin: 4px 0 12px;
  max-width: 24ch;
}
.despre-block p {
  color: var(--ink-soft);
  max-width: 52ch;
  font-size: 16px;
}
@media (max-width: 920px) {
  .despre-blocks { grid-template-columns: 1fr; }
  .despre-block { padding: 32px 24px 40px; }
  .despre-pull { font-size: 22px; padding-left: 18px; margin-bottom: 60px; }
}

/* ---------- Noutăți ---------- */
#noutati {
  background: var(--bg-deep);
  padding: 140px 0 160px;
  overflow: hidden;
}
.filters {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 56px;
}
.filters button {
  padding: 10px 20px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  transition: background 200ms, color 200ms, border-color 200ms;
  border-radius: var(--radius);
}
.filters button:hover { border-color: var(--ink); }
.filters button.is-active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* 3D / Stack carousel */
.carousel-3d {
  position: relative;
  height: 680px;
  perspective: 1800px;
  perspective-origin: 50% 45%;
  margin: 0 -32px 8px;
}
.carousel-track {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
}
.news-card {
  position: absolute;
  top: 50%; left: 50%;
  width: 460px;
  height: 600px;
  transform: translate(-50%, -50%);
  background: var(--paper);
  border: 1px solid var(--rule);
  transition: transform 800ms cubic-bezier(.22,.9,.3,1), opacity 500ms, filter 500ms;
  display: flex; flex-direction: column;
  text-align: left;
  overflow: hidden;
  cursor: pointer;
  will-change: transform, opacity;
  border-radius: 18px;
}
body.v-modern .news-card { box-shadow: 0 40px 80px -40px rgba(0,0,0,0.35), 0 8px 24px -12px rgba(0,0,0,0.12); }

.news-card .cover {
  position: relative;
  height: 280px;
  background: var(--bg-deep);
  overflow: hidden;
  border-radius: 18px 18px 0 0;
  flex-shrink: 0;
}
.news-card .cover::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.28) 100%);
  pointer-events: none;
  z-index: 1;
}
.news-card .cover image-slot {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
}
.news-card .tag {
  position: absolute;
  top: 18px; left: 18px;
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  padding: 7px 12px;
  background: rgba(255,255,255,0.95);
  color: var(--ink);
  font-weight: 700;
  z-index: 2;
  border-radius: 999px;
}
.news-card .body { padding: 30px 34px 34px; flex: 1; display: flex; flex-direction: column; min-height: 0; }
.news-card .date {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 14px;
  font-weight: 600;
}
.news-card h3 {
  font-size: 28px; line-height: 1.12;
  margin-bottom: 16px;
  font-style: var(--display-italic);
  letter-spacing: -0.01em;
}
.news-card .excerpt {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.news-card.pos-c { z-index: 5; }
.news-card.pos-l1, .news-card.pos-r1 { z-index: 4; }
.news-card.pos-l2, .news-card.pos-r2 { z-index: 3; }
.news-card.hidden { opacity: 0; pointer-events: none; }
.news-card.dimmed { filter: brightness(0.85); }

.carousel-controls {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 40px;
  padding: 0 16px;
}
.carousel-controls .arrows {
  display: flex; gap: 12px;
}
.carousel-controls button.arrow {
  width: 56px; height: 56px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: var(--paper);
  display: grid; place-items: center;
  font-size: 18px;
  transition: background 200ms, color 200ms, border-color 200ms;
}
.carousel-controls button.arrow:hover {
  background: var(--primary); color: #fff; border-color: var(--primary);
}
.carousel-counter {
  font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-soft);
}
.carousel-counter strong { color: var(--ink); font-weight: 700; }

/* ---------- Realizări stack (typographic, no images) ---------- */
.realizari-stack {
  position: relative;
  height: 540px;
  margin: 0 -32px;
  perspective: 1600px;
  perspective-origin: 50% 45%;
}
.realizari-track {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
}
.realizari-card {
  position: absolute;
  top: 50%; left: 50%;
  width: min(640px, 92%);
  height: 460px;
  transform: translate(-50%, -50%);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 22px;
  padding: 60px 64px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 800ms cubic-bezier(.22,.9,.3,1), opacity 500ms;
  box-shadow: 0 50px 100px -40px rgba(0,0,0,0.4), 0 12px 30px -14px rgba(0,0,0,0.14);
  overflow: hidden;
  will-change: transform, opacity;
}
.realizari-card .bg-num {
  position: absolute;
  right: -28px;
  top: -88px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 380px;
  line-height: 1;
  color: var(--gold);
  opacity: 0.10;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.realizari-card .accent-bar {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--gold) 0%, var(--ink) 100%);
}
.realizari-card .meta {
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}
.realizari-card h4 {
  font-family: var(--font-display);
  font-style: var(--display-italic);
  font-weight: var(--display-weight);
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.05;
  margin: 0 0 24px;
  max-width: 14ch;
  position: relative;
  z-index: 1;
  color: var(--ink);
}
.realizari-card p {
  color: var(--ink-soft);
  font-size: 16.5px;
  line-height: 1.65;
  max-width: 52ch;
  position: relative;
  z-index: 1;
  margin: 0;
}

.realizari-controls {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 32px;
  padding: 0 16px;
}
.realizari-controls .arrows {
  display: flex; gap: 12px;
}
.realizari-controls button.arrow {
  width: 56px; height: 56px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: var(--paper);
  display: grid; place-items: center;
  font-size: 18px;
  transition: background 200ms, color 200ms, border-color 200ms;
}
.realizari-controls button.arrow:hover {
  background: var(--ink); color: var(--bg); border-color: var(--ink);
}

@media (max-width: 920px) {
  .realizari-stack { height: 480px; }
  .realizari-card { padding: 40px 32px; height: 420px; }
  .realizari-card .bg-num { font-size: 240px; top: -52px; right: -16px; }
}

/* News cards style alt */
body.cards-minimal .news-card { border-radius: 0; }
body.cards-minimal .news-card .cover { border-radius: 0; }
body.cards-minimal .news-card .tag { background: var(--ink); color: var(--bg); border-radius: 0; }
body.cards-soft .news-card { border-radius: 22px; box-shadow: 0 50px 100px -40px rgba(0,0,0,0.4), 0 12px 30px -14px rgba(0,0,0,0.14); }
body.cards-soft .news-card .cover { border-radius: 22px 22px 0 0; }

/* ---------- Activitate ---------- */
#activitate { background: var(--bg); }
.activity-intro {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-bottom: 80px;
}
.activity-intro p { color: var(--ink-soft); font-size: 18px; max-width: 56ch; }

.activity-group { margin-bottom: 120px; }
.activity-group:last-child { margin-bottom: 0; }
.activity-group-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--ink);
  margin-bottom: 56px;
}
.activity-group-head .group-num {
  font-family: var(--font-display);
  font-style: var(--display-italic);
  font-size: clamp(32px, 3.4vw, 44px);
  color: var(--gold);
  line-height: 1;
}
.activity-group-head h3 {
  font-size: clamp(28px, 3vw, 44px);
  font-style: var(--display-italic);
  line-height: 1;
}
.activity-group-head .count {
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 700;
}
.activity-list {
  display: flex;
  flex-direction: column;
  position: relative;
}
/* Continuous timeline rail running through all rows */
.activity-list::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 2px;
  height: 100%;
  background: var(--rule);
  z-index: 0;
}
.activity-list .timeline-fill {
  position: absolute;
  left: 0; top: 0;
  width: 2px;
  height: 0;
  background: linear-gradient(180deg, var(--gold) 0%, var(--ink) 100%);
  transition: height 200ms linear;
  z-index: 1;
  pointer-events: none;
}
.activity-row {
  display: grid;
  grid-template-columns: 60px 200px 1fr;
  gap: 32px;
  padding: 36px 0 36px 36px;
  border-top: 1px solid var(--rule);
  align-items: start;
  transition: padding 300ms ease, background 300ms ease;
  cursor: default;
  position: relative;
}
.activity-row::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--rule);
  transform: translateY(-50%) scale(0.6);
  opacity: 0;
  transition: transform 600ms cubic-bezier(.22,.9,.3,1), opacity 500ms, background 300ms, border-color 300ms;
  z-index: 2;
}
.activity-row.is-active-tl::before {
  background: var(--ink);
  border-color: var(--ink);
  transform: translateY(-50%) scale(1.15);
  opacity: 1;
  box-shadow: 0 0 0 4px rgba(0,0,0,0.06);
}
.activity-row.is-passed-tl::before {
  background: var(--gold);
  border-color: var(--gold);
  transform: translateY(-50%) scale(1);
  opacity: 1;
}
.activity-row:hover {
  padding-left: 48px;
  background: linear-gradient(90deg, rgba(139,107,42,0.06) 0%, transparent 60%);
}
.activity-row:hover .activity-arrow { transform: translateX(4px); opacity: 1; }
.activity-row:last-child { border-bottom: 1px solid var(--rule); }
.activity-row .num {
  font-family: var(--font-display);
  font-style: var(--display-italic);
  font-size: 36px;
  color: var(--gold);
  line-height: 1;
  font-weight: 400;
  padding-top: 4px;
  transition: color 300ms;
}
.activity-row.is-active-tl .num { color: var(--ink); }
.activity-row .meta {
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 700;
  padding-top: 8px;
  line-height: 1.6;
}
.activity-row .content { display: flex; flex-direction: column; gap: 10px; }
.activity-row h4 {
  font-size: clamp(22px, 2vw, 28px);
  font-style: var(--display-italic);
  font-weight: var(--display-weight);
  line-height: 1.18;
  max-width: 36ch;
  margin: 0;
}
.activity-row p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.65;
  max-width: 62ch;
}
.activity-arrow {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ink-soft);
  opacity: 0.5;
  transition: transform 300ms, opacity 300ms;
  margin-left: auto;
  align-self: flex-start;
  padding-top: 6px;
}
@media (max-width: 920px) {
  .activity-row { grid-template-columns: 40px 1fr; gap: 16px; padding: 24px 0 24px 24px; }
  .activity-row:hover { padding-left: 32px; }
  .activity-row .meta { grid-column: 2; padding-top: 0; }
  .activity-row .content { grid-column: 2; }
  .activity-arrow { display: none; }
  .activity-group-head { grid-template-columns: auto 1fr; gap: 16px; }
  .activity-group-head .count { grid-column: 1 / -1; }
}

/* Realizări variant */
.realizari .activity-grid { grid-template-columns: repeat(2, 1fr); }

/* ---------- Footer / CTA ---------- */
.cta-strip {
  background: var(--primary);
  color: #fff;
  padding: 100px 0 110px;
  text-align: center;
}
.cta-strip h2 {
  color: #fff;
  font-size: clamp(40px, 5vw, 72px);
  font-style: var(--display-italic);
  margin-bottom: 18px;
}
.cta-strip p {
  max-width: 520px; margin: 0 auto 36px;
  opacity: 0.88;
}
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 18px 34px;
  background: #fff;
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: transform 200ms, background 200ms;
}
.btn:hover { transform: translateY(-2px); background: var(--bg); }
.btn.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
}
.btn.btn-ghost:hover { background: rgba(255,255,255,0.1); }

footer.site-footer {
  background: #100806;
  color: rgba(255,255,255,0.7);
  padding: 64px 0 36px;
  font-size: 13px;
}
body.v-modern footer.site-footer { background: #15130E; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-grid h5 {
  font-family: var(--font-body);
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 18px;
  font-weight: 700;
}
.footer-grid a { display: block; padding: 4px 0; opacity: 0.85; }
.footer-grid a:hover { opacity: 1; color: #fff; }
.footer-mark {
  font-family: 'Imperial Script', 'Pinyon Script', cursive;
  font-weight: 400;
  font-size: 56px;
  line-height: 1;
  color: #fff;
  margin-bottom: 14px;
}
.footer-bar {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
}
.footer-bar a:hover { color: #fff; }

/* ---------- Variant switcher (top floating) ---------- */
.variant-switch {
  position: fixed;
  bottom: 24px; left: 24px;
  z-index: 60;
  display: flex;
  background: rgba(20,15,10,0.85);
  backdrop-filter: blur(14px);
  border-radius: 999px;
  padding: 4px;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 18px 40px -18px rgba(0,0,0,0.6);
}
.variant-switch button {
  padding: 9px 16px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: none;
  border-radius: 999px;
  transition: background 220ms, color 220ms;
}
.variant-switch button.is-active {
  background: #fff;
  color: #111;
}

/* ---------- Cookies banner ---------- */
.cookies {
  position: fixed;
  left: 24px; right: 24px; bottom: 24px;
  z-index: 70;
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 22px 26px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  max-width: 920px;
  margin: 0 auto;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.35);
  border-radius: var(--radius);
  transform: translateY(140%);
  opacity: 0;
  transition: transform 700ms cubic-bezier(.22,.9,.3,1), opacity 600ms;
}
.cookies.is-visible {
  transform: translateY(0);
  opacity: 1;
}
.cookies.is-leaving {
  transform: translateY(140%) scale(0.96);
  opacity: 0;
}
.cookies .ico {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: var(--bg);
  border-radius: 999px;
  font-size: 28px;
  animation: cookieFloat 3.4s ease-in-out infinite;
}
.cookies .ico svg { width: 32px; height: 32px; }
@keyframes cookieFloat {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-4px) rotate(3deg); }
}
.cookies .crumb {
  position: absolute;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  pointer-events: none;
}
.cookies.is-leaving .crumb { animation: crumbBurst 700ms ease-out forwards; }
.cookies .crumb:nth-child(1) { --tx: -40px; --ty: -60px; }
.cookies .crumb:nth-child(2) { --tx: 30px; --ty: -50px; }
.cookies .crumb:nth-child(3) { --tx: 60px; --ty: -20px; }
.cookies .crumb:nth-child(4) { --tx: -20px; --ty: 30px; }
.cookies .crumb:nth-child(5) { --tx: 50px; --ty: 40px; }
@keyframes crumbBurst {
  0% { opacity: 1; transform: translate(0,0) scale(1); }
  100% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(0.3); }
}
.cookies-text {
  font-size: 14px; color: var(--ink-soft); line-height: 1.5;
}
.cookies-text strong { color: var(--ink); display: block; margin-bottom: 4px; font-family: var(--font-display); font-size: 18px; font-weight: var(--display-weight); }
.cookies-text a { text-decoration: underline; }
.cookies-actions {
  display: flex; gap: 10px; flex-shrink: 0;
}
.cookies-actions button {
  padding: 12px 18px;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 700;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  border-radius: var(--radius);
  transition: background 200ms, color 200ms, border-color 200ms;
}
.cookies-actions button.primary {
  background: var(--primary); color: #fff; border-color: var(--primary);
}
.cookies-actions button.primary:hover { background: var(--primary-deep); }
.cookies-actions button:hover { border-color: var(--ink); }

/* ---------- Decorative pattern (cultural variant) ---------- */
.maramures-divider {
  height: 28px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 28' fill='none' stroke='%237A1F2B' stroke-width='1.2'><path d='M0 14 L8 6 L16 14 L24 6 L32 14 L40 6 L48 14 L56 6 L64 14'/><path d='M0 22 L8 14 L16 22 L24 14 L32 22 L40 14 L48 22 L56 14 L64 22' opacity='0.4'/></svg>");
  background-repeat: repeat-x;
  background-size: 60px 28px;
  opacity: 0.6;
}
body.v-modern .maramures-divider { display: none; }

/* ---------- Tweaks panel ---------- */
.tweaks-panel {
  position: fixed;
  top: 100px; right: 24px;
  z-index: 80;
  width: 300px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.4);
  display: none;
  font-size: 13px;
}
.tweaks-panel.is-open { display: block; }
.tweaks-panel h4 {
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: 4px;
}
.tweaks-panel .close {
  position: absolute; top: 14px; right: 14px;
  width: 28px; height: 28px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: transparent;
  font-size: 14px;
}
.tweaks-section { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--rule); }
.tweaks-section:first-of-type { border-top: none; padding-top: 4px; }
.tweaks-section > label {
  display: block;
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 700;
  margin-bottom: 12px;
}
.tweaks-segmented {
  display: flex;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 3px;
  gap: 2px;
}
.tweaks-segmented button {
  flex: 1;
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 600;
  background: transparent;
  border: none;
  border-radius: 4px;
  color: var(--ink-soft);
}
.tweaks-segmented button.is-active { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.tweaks-swatches { display: flex; gap: 8px; }
.tweaks-swatches button {
  width: 36px; height: 36px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
}
.tweaks-swatches button.is-active { border-color: var(--ink); transform: scale(1.05); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 900ms ease, transform 900ms cubic-bezier(.22,.9,.3,1);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .container, .container-narrow { padding: 0 22px; }
  .site-header { padding: 14px 22px; }
  /* .nav is now handled by the mobile menu rules below */
  .hero-content { padding: 0 24px 80px; }
  .hero-dots { right: 24px; bottom: 84px; }
  .section-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 44px; }
  .despre-grid { grid-template-columns: 1fr; gap: 36px; }
  .despre-portrait { position: static; }
  .activity-grid, .activity-intro { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .carousel-3d { height: 540px; }
  .news-card { width: 320px; height: 480px; }
  .news-card .body { padding: 22px 24px 26px; }
  .news-card h3 { font-size: 22px; }
  .news-card .excerpt { font-size: 14px; -webkit-line-clamp: 5; }
  .news-card .cover { height: 200px; }
  .cookies { grid-template-columns: 1fr; text-align: left; }
  .cookies .ico { display: none; }
  .tweaks-panel { width: calc(100% - 32px); right: 16px; top: 80px; }
  section.section { padding: 96px 0; }
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
/* ============================================================
   MOBILE NAVIGATION + PHONE REFINEMENTS
   ============================================================ */

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  position: relative;
  z-index: 60;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 280ms ease, opacity 220ms ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

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

  .site-header .nav {
    display: flex;
    position: fixed;
    top: 0; right: 0;
    width: min(82vw, 340px);
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 96px 36px 48px;
    background: var(--bg, #FAF6EC);
    box-shadow: -24px 0 60px -30px rgba(0,0,0,0.5);
    transform: translateX(100%);
    transition: transform 360ms cubic-bezier(.4,0,.2,1);
    z-index: 55;
  }
  .site-header .nav.is-open { transform: translateX(0); }

  .site-header .nav a {
    color: var(--ink, #16140F);
    font-family: var(--font-display, serif);
    font-style: italic;
    font-size: 30px;
    padding: 10px 0;
    opacity: 0.9;
  }
  .site-header .nav a:hover { opacity: 1; }

  .site-header.nav-open { color: var(--ink, #16140F); }

  .nav-backdrop {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.42);
    opacity: 0;
    pointer-events: none;
    transition: opacity 320ms ease;
    z-index: 54;
  }
  .nav-backdrop.is-open { opacity: 1; pointer-events: auto; }

  body.menu-open { overflow: hidden; }
}

/* ---------- Phone breakpoint (≤600px) ---------- */
@media (max-width: 600px) {
  .container, .container-narrow { padding: 0 18px; }

  .site-header { padding: 12px 18px; }
  .site-header .logo { font-size: 19px; }
  .site-header .logo small { font-size: 9px; letter-spacing: 0.14em; }
  .site-header .socials { display: none; }

  .hero-content { padding: 0 20px 72px; }
  .hero-tag { font-size: 15px; }
  .scroll-cue { display: none; }
  .hero-dots { right: 16px; bottom: 72px; }

  section.section { padding: 72px 0; }
  #noutati { padding: 80px 0 96px; }
  .section-head { gap: 14px; margin-bottom: 32px; }

  .despre-pull { font-size: 19px; padding-left: 14px; margin-bottom: 44px; }
  .despre-block { padding: 28px 20px 32px; }
  .despre-block h3 { font-size: 24px; }

  .carousel-3d { height: 470px; margin: 0 -18px 8px; }
  .news-card { width: 260px; height: 400px; }
  .news-card .cover { height: 160px; }
  .news-card .body { padding: 18px 18px 20px; }
  .news-card h3 { font-size: 19px; }
  .news-card .excerpt { font-size: 13px; -webkit-line-clamp: 4; }
  .news-card .date { font-size: 11px; }
  .filters { margin-bottom: 32px; gap: 6px; }
  .filters button { padding: 8px 14px; font-size: 11px; letter-spacing: 0.12em; }
  .carousel-counter { font-size: 13px; }

  .activity-group { margin-bottom: 72px; }
  .activity-group-head { gap: 12px; padding-bottom: 18px; margin-bottom: 36px; }
  .activity-row { padding: 20px 0 20px 16px; }
  .activity-row:hover { padding-left: 20px; }
  .activity-row .num { font-size: 13px; }
  .activity-row .content h4 { font-size: 17px; }
  .activity-row .content p { font-size: 14px; }

  .realizari-stack { height: 440px; }
  .realizari-card { padding: 30px 24px; height: 380px; }
  .realizari-card h4 { font-size: 22px; }
  .realizari-card p { font-size: 14px; }
  .realizari-card .bg-num { font-size: 180px; top: -36px; right: -10px; }

  .cta-strip { padding: 72px 0 80px; }
  .cta-strip p { font-size: 15px; }
  .btn { padding: 16px 26px; font-size: 12px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bar { flex-direction: column; gap: 8px; text-align: center; font-size: 12px; }

  .cookies { padding: 18px; gap: 14px; }
  .cookies-actions { flex-direction: column; }
  .cookies-actions button { width: 100%; }

  .tweaks-panel { width: calc(100% - 24px); right: 12px; top: 72px; }
}

@media (max-width: 380px) {
  .news-card { width: 240px; height: 380px; }
  .carousel-3d { height: 440px; }
  .hero h1 { font-size: clamp(64px, 22vw, 96px); }
  .site-header .logo { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .site-header .nav,
  .nav-toggle span,
  .nav-backdrop { transition: none; }
}
