/* Bunătate România și Moldova — site styles
   Built on the Bunătate Design System tokens (colours, Outfit type, radii, red bar motif).
   No shadows, no gradients, one accent. */

:root {
  --black: #0a0a0a;
  --surface: #141414;
  --field: #0d0d0d;
  --raised: #1f1f1f;
  --line: #262626;
  --red: #d11225;
  --red-light: #e8202f;
  --red-bright: #ff3b48;
  --white: #ffffff;
  --text: #f0f0f0;
  --muted: #9aa0a6;
  --dim: #6d7276;

  --font: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --site-max: 1320px;
  --radius-card: 10px;
  --radius-btn: 8px;
  --radius-field: 7px;
  --dur: 0.2s;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 125px; font-size: clamp(16px, 0.55vw + 10.5px, 19px); }
body {
  background: var(--black);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.08rem;
  line-height: 1.7;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--red-bright); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--site-max); margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }

/* ── Type ── */
h1, h2, h3 { font-weight: 700; letter-spacing: -0.025em; color: var(--white); line-height: 1.08; }
h1 { font-size: clamp(2.5rem, 5.4vw, 5.4rem); line-height: 1.04; }
h2 { font-size: clamp(2.1rem, 3.6vw, 3.4rem); }
h3 { font-size: 1.45rem; line-height: 1.25; }
p { color: #d6d9dc; font-weight: 500; }
.lede { font-size: clamp(1.18rem, 1.4vw, 1.45rem); color: var(--white); max-width: 54ch; font-weight: 500; line-height: 1.5; }

.eyebrow {
  font-size: 0.8rem; font-weight: 800; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--red-bright); margin-bottom: 16px;
}
/* signature motif: short red bar above titles */
.bar::before {
  content: ""; display: block; width: 56px; height: 5px;
  background: var(--red); margin-bottom: 22px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 56px; padding: 0 32px; border-radius: var(--radius-btn);
  font-family: var(--font); font-size: 0.9rem; font-weight: 800;
  letter-spacing: 1px; text-transform: uppercase; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: background var(--dur) ease, border-color var(--dur) ease, color var(--dur) ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-light); }
.btn-ghost { background: transparent; color: var(--white); border-color: var(--line); border-radius: var(--radius-field); }
.btn-ghost:hover { border-color: var(--red-bright); color: var(--red-bright); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--black);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 96px; transition: height var(--dur) ease; }
/* logo hangs over the header border onto the hero (transparent PNG) */
.brand { position: relative; display: block; width: 200px; height: 96px; line-height: 0; z-index: 2; }
.brand img { position: absolute; left: 0; top: 14px; height: 200px; width: auto; transition: height .3s ease, top .3s ease; }
.site-header.compact .wrap { height: 84px; }
.site-header.compact .brand { height: 84px; }
.site-header.compact .brand img { top: 6px; height: 72px; }

.nav { display: flex; align-items: center; gap: clamp(20px, 2.4vw, 40px); }
.nav a { color: var(--white); font-size: 0.85rem; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--red-bright); text-decoration: none; }
.nav .btn { height: 50px; padding: 0 26px; color: var(--white); font-size: 0.85rem; font-weight: 800; }
.nav .btn:hover { color: var(--white); }

.menu-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius-field);
  color: var(--white); font-family: var(--font); font-size: 0.85rem; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; height: 46px; padding: 0 18px; cursor: pointer;
}

@media (max-width: 960px) {
  .site-header .wrap, .site-header.compact .wrap { height: 76px; }
  .brand, .site-header.compact .brand { width: 120px; height: 76px; }
  .brand img { top: 10px; height: 124px; }
  .site-header.compact .brand img { top: 6px; height: 64px; }
  .menu-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--black); border-bottom: 1px solid var(--line);
    padding: 8px clamp(20px, 4vw, 48px) 24px; display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav .btn { margin-top: 18px; border-bottom: none; height: 56px; font-size: 0.95rem; }
}

/* ── Hero ── */
.hero { position: relative; min-height: min(80vh, 820px); display: flex; align-items: flex-end; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(10,10,10,0.62); }
.hero .wrap { position: relative; z-index: 1; padding-top: 180px; padding-bottom: clamp(48px, 7vh, 88px); }
.hero h1 { max-width: 17ch; margin-bottom: 28px; }
.hero .lede { margin-bottom: 40px; color: #ececec; }
.hero .eyebrow { color: #ffffff; }
.hero .btn-ghost { border-color: rgba(255,255,255,0.45); }

/* ── Sections ── */
section { padding: clamp(56px, 6vw, 96px) 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 40px; max-width: 760px; }
.section-head h2, .intro h2 { margin-bottom: 18px; }

/* White section (brand white + red) */
.section-light { background: #ffffff; color: #0a0a0a; border: none; }
.section-light h2, .section-light h3 { color: #0a0a0a; }
.section-light p { color: #3b3e42; }
.section-light .lede { color: #111111; }
.section-light .eyebrow { color: var(--red); }
.section-light .area { background: #f4f4f4; border-color: #e3e3e3; }
.section-light .area:hover { border-color: #cfcfcf; }
.section-light .area-icon { background: #ffffff; border-color: #e3e3e3; }
.section-light .principle + .principle { border-left-color: #e3e3e3; }
.section-light .principles { border-top-color: #e3e3e3; }

/* Intro split */
.intro { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(40px, 5vw, 80px); align-items: center; }
.intro p + p { margin-top: 18px; }
.facts { display: grid; gap: 0; border-radius: var(--radius-card); background: var(--red); overflow: hidden; }
.fact { padding: 28px 32px; border-bottom: 1px solid rgba(255,255,255,0.22); display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 20px; }
.fact:last-child { border-bottom: none; }
.fact strong { font-size: 3.2rem; font-weight: 800; letter-spacing: -0.03em; color: var(--white); line-height: 1; }
.fact span { color: #ffffff; font-weight: 500; font-size: 1.02rem; line-height: 1.45; }

/* UK strip */
.uk-strip {
  margin-top: 20px; display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--red);
  border-radius: var(--radius-btn); padding: 34px 38px;
}
.uk-strip img { width: 44px; border-radius: 4px; border: 1px solid var(--line); }
.uk-strip h3 { font-size: 1.4rem; margin-bottom: 10px; }

/* Areas of work */
.areas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.area {
  background: var(--black); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 36px 30px 34px; display: flex; flex-direction: column; position: relative; overflow: hidden;
  transition: border-color .3s ease, transform .3s ease;
}
.area::after {
  content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .4s ease;
}
.area:hover { border-color: #3a3a3a; transform: translateY(-4px); }
.area:hover::after { transform: scaleX(1); }
.area-icon {
  width: 64px; height: 64px; border-radius: 12px; background: var(--raised); border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 1.9rem; margin-bottom: 24px;
}
.area h3 { font-size: 1.3rem; margin-bottom: 12px; }
.area p { font-size: 1rem; }

/* Where we work */
.places { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.place-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card);
  overflow: hidden; transition: border-color .3s ease;
}
.place-card:hover { border-color: #3a3a3a; }
.place-photo { aspect-ratio: 16 / 10; overflow: hidden; }
.place-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.place-card:hover .place-photo img { transform: scale(1.04); }
.place-body { padding: 32px 34px 36px; }
.place-title { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.place-title img { width: 38px; border-radius: 4px; border: 1px solid var(--line); }
.place-title h3 { font-size: clamp(1.5rem, 2vw, 1.9rem); }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.principle { padding: 30px 28px 4px 0; }
.principle + .principle { padding-left: 28px; border-left: 1px solid var(--line); }
.principle .icon { font-size: 2rem; margin-bottom: 18px; line-height: 1; }
.principle h3 { font-size: 1.3rem; margin-bottom: 12px; }
.principle p { font-size: 1rem; }

/* News */
.news-feature {
  display: grid; grid-template-columns: 1.05fr 1fr; background: var(--black);
  border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden;
}
.news-feature .news-photo img { width: 100%; height: 100%; object-fit: cover; min-height: 380px; }
.news-body { padding: clamp(32px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; }
.news-date { font-size: 0.9rem; font-weight: 700; color: var(--red-bright); margin-bottom: 12px; }
.news-body h3 { font-size: clamp(1.7rem, 2.4vw, 2.3rem); margin-bottom: 18px; }
.news-body p + p { margin-top: 12px; }
.news-body .btn-row { margin-top: 26px; }
.news-body .source { margin-top: 22px; font-size: 1rem; font-weight: 600; }
.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.news-small {
  display: grid; grid-template-columns: 240px 1fr; background: var(--black);
  border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden;
  transition: border-color var(--dur) ease;
}
.news-small:hover { border-color: var(--red-bright); text-decoration: none; }
.news-small { overflow: hidden; }
.news-small img { transition: transform .8s ease; }
.news-small:hover img { transform: scale(1.05); }
.news-small img { width: 100%; height: 100%; object-fit: cover; }
.news-small div { padding: 30px 30px 32px; }
.news-small h3 { font-size: 1.35rem; margin-bottom: 10px; }
.news-small p { font-size: 1rem; }
.news-small .more { display: inline-block; margin-top: 14px; color: var(--red-bright); font-weight: 700; font-size: 1rem; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(170px, 17vw, 250px); gap: 14px; }
.gallery figure { border-radius: var(--radius-card); overflow: hidden; border: 1px solid var(--line); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery .g1 { grid-column: span 3; grid-row: span 2; }
.gallery .g2 { grid-column: span 3; }
.gallery .g3 { grid-column: span 3; }
.gallery .g4 { grid-column: span 2; }
.gallery .g5 { grid-column: span 2; }
.gallery .g6 { grid-column: span 2; }

/* Get involved */
.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.way {
  transition: border-color .3s ease, transform .3s ease;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 40px 36px; display: flex; flex-direction: column;
}
.way:hover { border-color: #3a3a3a; transform: translateY(-4px); }
.way .icon { font-size: 2rem; margin-bottom: 18px; line-height: 1; }
.way h3 { margin-bottom: 10px; }
.way p { flex: 1; font-size: 1.02rem; }
.way .btn { margin-top: 24px; align-self: flex-start; }

/* Verse */
.verse { text-align: center; padding: clamp(64px, 7vw, 110px) 0; background: var(--red) !important; border: none !important; }
.verse blockquote {
  color: #ffffff !important; font-weight: 600 !important;
  font-size: clamp(1.6rem, 3.2vw, 2.8rem); font-weight: 300; color: var(--white);
  line-height: 1.4; max-width: 30ch; margin: 0 auto 20px; letter-spacing: -0.01em;
}
.verse cite { font-style: normal; color: #ffffff; font-size: 1.05rem; font-weight: 700; letter-spacing: 1px; }
.verse .bar::before { margin: 0 auto 24px; background: #ffffff; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 40px; background: var(--black); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.footer-grid h4 { font-size: 0.8rem; font-weight: 800; letter-spacing: 2.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer-grid ul { list-style: none; display: grid; gap: 10px; }
.footer-grid li a { color: var(--text); font-size: 1.02rem; }
.footer-grid li a:hover { color: var(--red-bright); }
.footer-brand img { width: 130px; margin-bottom: 20px; }
.footer-brand p { font-size: 1rem; max-width: 40ch; }
.footer-legal {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: 0.9rem; color: var(--dim);
}
.footer-legal p { color: var(--dim); }

/* Events page */
.page-head { padding: 170px 0 40px; }
@media (max-width: 960px) { .page-head { padding-top: 100px; } }
.page-head h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); margin-bottom: 20px; }
.empty {
  border: 1px dashed var(--line); border-radius: var(--radius-card); background: var(--surface);
  padding: 48px 40px; text-align: center; margin: 10px 0 80px;
}
.empty .icon { font-size: 2.2rem; margin-bottom: 16px; }
.empty h2 { font-size: 1.6rem; margin-bottom: 12px; }
.empty p { max-width: 52ch; margin: 0 auto 26px; }
.empty .btn-row { justify-content: center; }
.event {
  display: grid; grid-template-columns: 90px 1fr; gap: 26px; align-items: start;
  border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); padding: 26px;
}
.event-date { text-align: center; border-right: 1px solid var(--line); padding-right: 20px; }
.event-date strong { display: block; font-size: 2rem; font-weight: 600; color: var(--white); line-height: 1; }
.event-date span { font-size: 0.8rem; font-weight: 700; color: var(--red-bright); text-transform: uppercase; letter-spacing: 1px; }

/* ── Motion: one clean reveal, staggered within grids ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.areas .reveal:nth-child(2), .places .reveal:nth-child(2), .principles .reveal:nth-child(2), .ways .reveal:nth-child(2), .news-grid .reveal:nth-child(2) { transition-delay: .1s; }
.areas .reveal:nth-child(3), .principles .reveal:nth-child(3), .ways .reveal:nth-child(3) { transition-delay: .2s; }
.areas .reveal:nth-child(4), .principles .reveal:nth-child(4) { transition-delay: .3s; }
.hero-img { transform: scale(1.06); transition: transform 2.4s cubic-bezier(.2,.7,.2,1); }
.hero .wrap > * { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.loaded .hero-img { transform: scale(1); }
.loaded .hero .wrap > * { opacity: 1; transform: none; }
.loaded .hero .wrap > :nth-child(2) { transition-delay: .12s; }
.loaded .hero .wrap > :nth-child(3) { transition-delay: .24s; }
.loaded .hero .wrap > :nth-child(4) { transition-delay: .36s; }
.area:hover, .way:hover { transition-delay: 0s; }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .areas { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .intro { grid-template-columns: 1fr; gap: 40px; }
  .places { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr 1fr; }
  .principle:nth-child(3) { padding-left: 0; border-left: none; }
  .news-feature { grid-template-columns: 1fr; }
  .news-grid, .ways { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  section { padding: 56px 0; }
  .wrap { padding: 0 20px; }
  .hero { min-height: 76vh; }
  .hero .wrap { padding-top: 130px; padding-bottom: 44px; }
  .btn-row .btn { width: 100%; }
  .fact { grid-template-columns: 76px 1fr; padding: 24px; }
  .fact strong { font-size: 2.4rem; }
  .principles { grid-template-columns: 1fr; }
  .principle, .principle + .principle { padding: 26px 0 4px; border-left: none; }
  .principle + .principle { border-top: 1px solid var(--line); }
  .news-body { padding: 30px 24px; }
  .news-small { grid-template-columns: 1fr; }
  .news-small img { height: 180px; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .gallery figure { grid-column: span 1 !important; grid-row: span 1 !important; }
  .gallery .g1 { grid-column: span 2 !important; grid-row: span 2 !important; }
  .gallery .g6 { grid-column: span 2 !important; }
  .uk-strip { grid-template-columns: 1fr; gap: 14px; }
  .areas { grid-template-columns: 1fr; }
  .place-body { padding: 26px 24px 30px; }
  .footer-grid { grid-template-columns: 1fr; }
  .event { grid-template-columns: 1fr; }
  .event-date { border-right: none; text-align: left; padding: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .reveal, .hero .wrap > *, .hero-img { opacity: 1 !important; transform: none !important; }
}
