/* ============================================================
   Asociația Prețuiește Timpul — Shared Styles
   Editorial premium · navy / ivory / gold
   ============================================================ */

:root {
  --ink: #0b1b2b;
  --ink-2: #12293f;
  --ink-3: #1b3a5a;
  --ivory: #f7f2e9;
  --paper: #fffdf8;
  --gold: #c8a24b;
  --gold-2: #e3c87e;
  --sand: #e4d9c4;
  --body: #41536b;
  --line: rgba(11, 27, 43, 0.12);
  --line-light: rgba(255, 253, 248, 0.16);
  --accent-sport: #d9602b;
  --accent-arta: #b25d8e;
  --accent-cultura: #7a6b4f;
  --accent-stiinta: #2e7f94;
  --accent-tehnica: #4f5fa8;
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--ivory);
  color: var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.font-display {
  font-family: var(--font-display);
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: "";
  width: 2.25rem;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.display-tight {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.gold-italic {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: var(--ink);
  box-shadow: 0 10px 30px -10px rgba(200, 162, 75, 0.55);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -12px rgba(200, 162, 75, 0.65);
  color: var(--ink);
}
.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}
.btn-ghost-light {
  border-color: var(--line-light);
  color: var(--paper);
}
.btn-ghost-light:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.btn-sm {
  padding: 0.6rem 1.25rem;
  font-size: 0.82rem;
}

/* ---------- Nav ---------- */
.nav-shell {
  transition: all 0.4s ease;
}
.nav-scrolled {
  background: rgba(247, 242, 233, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-link {
  position: relative;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--body);
  text-decoration: none;
  padding: 0.35rem 0;
  transition: color 0.25s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-link:hover {
  color: var(--ink);
}
.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}
.nav-link.active {
  color: var(--ink);
}

/* ---------- Sections ---------- */
.section {
  padding: 6.5rem 0;
}
@media (max-width: 768px) {
  .section {
    padding: 4rem 0;
  }
}

.card-lift {
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
}
.card-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px -25px rgba(11, 27, 43, 0.35);
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ---------- Domain accent chips ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.chip-sport { background: rgba(217, 96, 43, 0.12); color: var(--accent-sport); }
.chip-arta { background: rgba(178, 93, 142, 0.12); color: var(--accent-arta); }
.chip-cultura { background: rgba(122, 107, 79, 0.14); color: var(--accent-cultura); }
.chip-stiinta { background: rgba(46, 127, 148, 0.12); color: var(--accent-stiinta); }
.chip-tehnica { background: rgba(79, 95, 168, 0.12); color: var(--accent-tehnica); }

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 1.35rem;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 2px;
  background: linear-gradient(180deg, var(--gold), rgba(200, 162, 75, 0.15));
}
@media (min-width: 768px) {
  .timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }
}
.timeline-dot {
  position: absolute;
  left: 1.35rem;
  top: 1.6rem;
  transform: translate(-50%, -50%);
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 5px rgba(200, 162, 75, 0.18);
}
@media (min-width: 768px) {
  .timeline-dot {
    left: 50%;
  }
}

/* ---------- Stats ---------- */
.stat-num {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1;
}

/* ---------- Org chart ---------- */
.org-node {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 1rem;
  padding: 1.1rem 1.4rem;
  text-align: center;
}
.org-line {
  height: 2rem;
  width: 2px;
  background: linear-gradient(180deg, var(--gold), var(--gold-2));
  margin: 0 auto;
}
.org-h-line {
  height: 2px;
  background: var(--gold);
  opacity: 0.5;
}

/* ---------- Footer ---------- */
.footer-link {
  color: rgba(255, 253, 248, 0.65);
  text-decoration: none;
  transition: color 0.25s;
  font-size: 0.92rem;
}
.footer-link:hover {
  color: var(--gold-2);
}

/* ---------- Misc ---------- */
.img-frame {
  border-radius: 1.25rem;
  overflow: hidden;
}
.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.img-frame:hover img {
  transform: scale(1.06);
}

.text-gradient-gold {
  background: linear-gradient(120deg, var(--gold), var(--gold-2), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.divider-gold {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

::selection {
  background: var(--gold);
  color: var(--ink);
}

/* marquee for partners strip */
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-track {
  animation: marquee 28s linear infinite;
}
