/* =========================================================
   Asociația Humaniterra — Stylesheet
   Temă: patrimoniu cultural românesc
   Paletă: bordo profund, teracotă, aur, fildeș
   ========================================================= */

:root {
  --plum: #45172a;
  --plum-deep: #2f0e1c;
  --terra: #b5532e;
  --terra-light: #cf6e44;
  --gold: #c9a24b;
  --gold-light: #e0c172;
  --cream: #f7f1e6;
  --cream-dark: #ebe0cc;
  --ink: #241c18;
  --muted: #6f635a;
  --white: #fffdf9;

  --shadow-sm: 0 4px 14px rgba(47, 14, 28, 0.08);
  --shadow-md: 0 14px 40px rgba(47, 14, 28, 0.16);
  --shadow-lg: 0 28px 70px rgba(47, 14, 28, 0.28);

  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;

  --container: 1180px;
  --radius: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.15; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; border-radius: 100px;
  font-weight: 600; font-size: 0.95rem; letter-spacing: 0.02em;
  cursor: pointer; border: none; transition: all 0.35s var(--ease);
  font-family: var(--sans);
}
.btn-primary { background: var(--terra); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--terra-light); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.6); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: var(--white); transform: translateY(-3px); }
.btn-outline { background: transparent; color: var(--plum); border: 1.5px solid var(--gold); }
.btn-outline:hover { background: var(--gold); color: var(--plum-deep); transform: translateY(-3px); }

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  display: inline-block; font-family: var(--sans);
  text-transform: uppercase; letter-spacing: 0.28em;
  font-size: 0.72rem; font-weight: 600; color: var(--terra);
  margin-bottom: 18px;
}
.eyebrow.light { color: var(--gold-light); }

.section-title { font-size: clamp(1.9rem, 4vw, 3rem); color: var(--plum); margin-bottom: 18px; }
.section-lead { font-size: 1.1rem; color: var(--muted); max-width: 640px; }

/* ---------- Navbar ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 20px 0; transition: all 0.4s var(--ease);
}
.nav.scrolled {
  background: rgba(47, 14, 28, 0.96);
  backdrop-filter: blur(12px); padding: 12px 0;
  box-shadow: 0 6px 30px rgba(0,0,0,0.25);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); }
.brand__mark {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--terra));
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 700; font-size: 1.2rem; color: var(--plum-deep);
  box-shadow: var(--shadow-sm);
}
.brand__name { font-family: var(--serif); font-size: 1.15rem; font-weight: 700; line-height: 1.1; }
.brand__name small { display: block; font-family: var(--sans); font-size: 0.62rem; letter-spacing: 0.25em; text-transform: uppercase; opacity: 0.7; font-weight: 500; }

.nav__links { display: flex; align-items: center; gap: 8px; list-style: none; }
.nav__links a {
  color: rgba(255,255,255,0.85); padding: 9px 16px; border-radius: 100px;
  font-size: 0.9rem; font-weight: 500; transition: all 0.25s var(--ease);
}
.nav__links a:hover { color: var(--white); background: rgba(255,255,255,0.1); }
.nav__cta { background: var(--terra) !important; color: var(--white) !important; }
.nav__cta:hover { background: var(--terra-light) !important; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 26px; height: 2px; background: var(--white); transition: all 0.3s var(--ease); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  color: var(--white); overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, rgba(47,14,28,0.92) 0%, rgba(47,14,28,0.7) 45%, rgba(69,23,42,0.55) 100%);
}
.hero__content { max-width: 760px; padding: 120px 0 80px; }
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5rem); margin-bottom: 22px; letter-spacing: -0.01em;
}
.hero h1 .accent { color: var(--gold-light); font-style: italic; }
.hero__tagline {
  font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 3vw, 2rem);
  color: var(--gold-light); margin-bottom: 26px;
}
.hero__text { font-size: 1.15rem; color: rgba(255,255,255,0.88); max-width: 560px; margin-bottom: 40px; }
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.7); font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.hero__scroll::after { content: ''; width: 1px; height: 40px; background: rgba(255,255,255,0.4); animation: scrollPulse 2s var(--ease) infinite; }
@keyframes scrollPulse { 0%,100% { opacity: 0.3; transform: scaleY(0.6); } 50% { opacity: 1; transform: scaleY(1); } }

/* ---------- Sections ---------- */
section { padding: 100px 0; }
.section-head { margin-bottom: 60px; }
.section-head.center { text-align: center; }
.section-head.center .section-lead { margin: 0 auto; }

/* ---------- Despre ---------- */
.about { background: var(--cream); position: relative; }
.about__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 70px; align-items: center; }
.about__text p { color: var(--muted); margin-bottom: 18px; font-size: 1.05rem; }
.about__text strong { color: var(--plum); }
.values { display: grid; gap: 18px; margin-top: 36px; }
.value {
  display: flex; gap: 18px; padding: 22px; background: var(--white);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  border-left: 3px solid var(--terra); transition: transform 0.3s var(--ease);
}
.value:hover { transform: translateX(6px); }
.value__icon { font-size: 1.6rem; flex-shrink: 0; }
.value h4 { color: var(--plum); font-size: 1.05rem; margin-bottom: 4px; }
.value p { font-size: 0.92rem; color: var(--muted); margin: 0; }
.about__media { position: relative; }
.about__media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 3/4; object-fit: cover; }
.about__badge {
  position: absolute; bottom: -24px; left: -24px; background: var(--plum);
  color: var(--cream); padding: 22px 28px; border-radius: var(--radius); box-shadow: var(--shadow-md);
  max-width: 220px;
}
.about__badge strong { font-family: var(--serif); font-size: 2rem; color: var(--gold-light); display: block; }
.about__badge span { font-size: 0.85rem; opacity: 0.85; }

/* ---------- Proiecte ---------- */
.projects { background: var(--plum); color: var(--cream); }
.projects .section-title { color: var(--white); }
.projects .section-lead { color: rgba(255,255,255,0.75); }
.projects__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.project-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--plum-deep); box-shadow: var(--shadow-md);
  min-height: 420px; display: flex; align-items: flex-end;
  transition: transform 0.45s var(--ease);
}
.project-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s var(--ease); filter: brightness(0.78);
}
.project-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,6,12,0.95) 0%, rgba(20,6,12,0.35) 55%, transparent 100%);
}
.project-card:hover { transform: translateY(-8px); }
.project-card:hover img { transform: scale(1.07); }
.project-card__body { position: relative; z-index: 2; padding: 34px; }
.project-card__tag {
  display: inline-block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--plum-deep); background: var(--gold); padding: 5px 12px; border-radius: 100px; margin-bottom: 14px; font-weight: 600;
}
.project-card h3 { font-size: 1.7rem; color: var(--white); margin-bottom: 10px; }
.project-card p { color: rgba(255,255,255,0.82); font-size: 0.95rem; margin-bottom: 18px; }
.project-card__link {
  display: inline-flex; align-items: center; gap: 8px; color: var(--gold-light);
  font-weight: 600; font-size: 0.9rem; transition: gap 0.3s var(--ease);
}
.project-card:hover .project-card__link { gap: 14px; }

/* ---------- Galerie ---------- */
.gallery { background: var(--cream); }
.gallery__grid {
  columns: 4; column-gap: 16px;
}
.gallery__item {
  break-inside: avoid; margin-bottom: 16px; border-radius: 12px; overflow: hidden;
  cursor: pointer; box-shadow: var(--shadow-sm); position: relative;
}
.gallery__item img { width: 100%; transition: transform 0.6s var(--ease); }
.gallery__item::after {
  content: '⤢'; position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(47,14,28,0.55); color: var(--gold-light); font-size: 1.6rem;
  opacity: 0; transition: opacity 0.35s var(--ease);
}
.gallery__item:hover img { transform: scale(1.08); }
.gallery__item:hover::after { opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 2000; background: rgba(20,6,12,0.95);
  display: none; align-items: center; justify-content: center; padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 86vh; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox__close, .lightbox__nav {
  position: absolute; background: rgba(255,255,255,0.1); border: none; color: var(--white);
  width: 52px; height: 52px; border-radius: 50%; font-size: 1.5rem; cursor: pointer;
  transition: background 0.25s; display: grid; place-items: center;
}
.lightbox__close { top: 28px; right: 28px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav.prev { left: 28px; }
.lightbox__nav.next { right: 28px; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--terra); }

/* ---------- Evenimente ---------- */
.events { background: var(--plum-deep); color: var(--cream); }
.events .section-title { color: var(--white); }
.events .section-lead { color: rgba(255,255,255,0.7); }
.timeline { display: grid; gap: 0; margin-top: 20px; }
.event {
  display: grid; grid-template-columns: 150px 1fr; gap: 30px; padding: 30px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12); align-items: start;
}
.event:last-child { border-bottom: none; }
.event__date { font-family: var(--serif); }
.event__date .day { font-size: 2.4rem; color: var(--gold-light); display: block; line-height: 1; }
.event__date .mon { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.15em; opacity: 0.7; }
.event__body h3 { color: var(--white); font-size: 1.4rem; margin-bottom: 8px; }
.event__body p { color: rgba(255,255,255,0.75); font-size: 0.98rem; }
.event__meta { display: flex; gap: 18px; margin-top: 12px; flex-wrap: wrap; font-size: 0.85rem; color: var(--gold-light); }

/* ---------- Contact ---------- */
.contact { background: var(--cream); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact__info { display: grid; gap: 24px; margin-top: 30px; }
.contact__row { display: flex; gap: 18px; align-items: flex-start; }
.contact__ic {
  width: 50px; height: 50px; border-radius: 14px; flex-shrink: 0;
  background: var(--white); display: grid; place-items: center; font-size: 1.4rem;
  box-shadow: var(--shadow-sm); border: 1px solid var(--cream-dark);
}
.contact__row h4 { color: var(--plum); font-size: 1rem; margin-bottom: 2px; }
.contact__row p, .contact__row a { color: var(--muted); font-size: 0.98rem; }
.contact__row a:hover { color: var(--terra); }
.contact__form { background: var(--white); padding: 40px; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--plum); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; border: 1.5px solid var(--cream-dark); border-radius: 12px;
  font-family: var(--sans); font-size: 0.95rem; background: var(--cream); transition: border 0.25s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--terra); }
.field textarea { resize: vertical; min-height: 120px; }
.contact__form .btn { width: 100%; justify-content: center; }
.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 14px; text-align: center; }

/* ---------- Footer ---------- */
.footer { background: var(--plum-deep); color: rgba(255,255,255,0.7); padding: 70px 0 30px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 50px; margin-bottom: 50px; }
.footer .brand { margin-bottom: 18px; }
.footer__about { font-size: 0.92rem; max-width: 320px; }
.footer h5 { color: var(--white); font-family: var(--sans); font-size: 0.95rem; margin-bottom: 18px; letter-spacing: 0.05em; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer ul a { font-size: 0.92rem; transition: color 0.25s; }
.footer ul a:hover { color: var(--gold-light); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.12); padding-top: 26px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.85rem;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Page hero (subpagini) ---------- */
.page-hero {
  position: relative; min-height: 60vh; display: flex; align-items: flex-end;
  color: var(--white); padding-bottom: 60px;
}
.page-hero__bg { position: absolute; inset: 0; z-index: -2; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(47,14,28,0.95), rgba(47,14,28,0.5)); }
.page-hero .crumbs { font-size: 0.85rem; color: var(--gold-light); margin-bottom: 14px; }
.page-hero .crumbs a:hover { color: var(--white); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.page-hero__tag { display: inline-block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--plum-deep); background: var(--gold); padding: 6px 14px; border-radius: 100px; margin-bottom: 18px; font-weight: 600; }

.article { padding: 90px 0; background: var(--cream); }
.article__wrap { max-width: 820px; margin: 0 auto; }
.article__lead { font-size: 1.3rem; font-family: var(--serif); color: var(--plum); line-height: 1.5; margin-bottom: 34px; }
.article p { color: var(--ink); margin-bottom: 22px; font-size: 1.06rem; }
.article h3 { color: var(--plum); font-size: 1.5rem; margin: 40px 0 16px; }
.article ul.feature-list { list-style: none; display: grid; gap: 16px; margin: 24px 0; }
.article ul.feature-list li {
  padding: 18px 22px; background: var(--white); border-radius: 12px; box-shadow: var(--shadow-sm);
  border-left: 3px solid var(--gold); font-size: 0.98rem;
}
.article ul.feature-list li strong { color: var(--plum); }
.article__meta {
  display: flex; gap: 30px; flex-wrap: wrap; padding: 24px; background: var(--white);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-bottom: 40px;
}
.article__meta div span { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--terra); font-weight: 600; }
.article__meta div strong { color: var(--plum); font-family: var(--serif); font-size: 1.05rem; }
.article__back { margin-top: 50px; }
.media-credit { font-size: 0.82rem; color: var(--muted); font-style: italic; margin-top: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .about__grid, .contact__grid { grid-template-columns: 1fr; gap: 50px; }
  .projects__grid { grid-template-columns: 1fr; }
  .gallery__grid { columns: 3; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .about__media { max-width: 420px; }
}
@media (max-width: 720px) {
  .nav__links {
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px); flex-direction: column;
    background: var(--plum-deep); padding: 100px 30px 40px; align-items: stretch; gap: 6px;
    transform: translateX(100%); transition: transform 0.4s var(--ease); box-shadow: var(--shadow-lg);
  }
  .nav__links.open { transform: none; }
  .nav__links a { padding: 14px 16px; font-size: 1rem; }
  .nav__toggle { display: flex; z-index: 1100; }
  .nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle.open span:nth-child(2) { opacity: 0; }
  .nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .gallery__grid { columns: 2; }
  .footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .event { grid-template-columns: 70px 1fr; gap: 18px; }
  .event__date .day { font-size: 1.8rem; }
  section { padding: 70px 0; }
  .about__badge { left: 16px; bottom: -16px; }
}
