
/*
 * Luna și Noi — "night glass" theme.
 *
 * Loaded after styles.css on every public page. styles.css keeps the layout
 * (grids, spacing, breakpoints); this file re-skins it after the 2026 mock-up:
 * a deep navy night with turquoise and pink light, frosted-glass panels with
 * neon edges, a yellow call to action, and the 3D illustrations and Stiv.
 *
 * Everything here is colour, surface and type. If a layout breaks, the fix
 * belongs in styles.css; if something looks wrong, it belongs here.
 */

:root {
  color-scheme: dark;
  --night-0: #050922;
  --night-1: #0a1238;
  --night-2: #111c52;
  --text: #f4f6ff;
  --text-soft: #c4cdf1;
  --text-mute: #93a0cf;
  --cyan: #52f2e8;
  --cyan-2: #36c6ff;
  --pink: #ff58b1;
  --magenta: #d65cff;
  --purple: #8f6bff;
  --sun: #ffd447;
  --sun-2: #ffbf2f;
  --glass: rgba(255, 255, 255, 0.075);
  --glass-strong: rgba(255, 255, 255, 0.12);
  --glass-line: rgba(176, 214, 255, 0.26);
  --glass-shadow: 0 18px 50px rgba(2, 6, 30, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  --neon-edge: linear-gradient(135deg, rgba(102, 242, 255, 0.85), rgba(143, 107, 255, 0.55) 45%, rgba(255, 88, 177, 0.75));
  --radius-lg: 28px;
  --display: "Nunito", "Nunito Sans", system-ui, sans-serif;
  --hand: "Caveat", "Permanent Marker", cursive;

  /* styles.css tokens, re-pointed at the night palette */
  --ink: #f4f6ff;
  --ink-2: #dfe5ff;
  --cream: transparent;
  --paper: rgba(255, 255, 255, 0.07);
  --muted: #c4cdf1;
  --line: rgba(176, 214, 255, 0.24);
  --yellow: #ffd447;
  --teal: #52f2e8;
  --shadow: 0 18px 50px rgba(2, 6, 30, 0.55);
}

/* ------------------------------------------------------------- canvas --- */

html { background: var(--night-0); }

body {
  position: relative;
  min-height: 100vh;
  background: transparent;
  color: var(--text);
}

/* The night sky sits behind every page, fixed, and costs one small image. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(54, 198, 255, 0.18), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(255, 88, 177, 0.14), transparent 60%),
    url("/assets/backgrounds/fundal-secundar-navy-discret.webp") center / cover no-repeat,
    linear-gradient(180deg, var(--night-1), var(--night-0));
}

/* Soft bokeh, the "night garden" of the mock-up, drawn rather than shipped. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(6px 6px at 12% 22%, rgba(255, 255, 255, 0.55), transparent 70%),
    radial-gradient(4px 4px at 78% 14%, rgba(122, 240, 255, 0.7), transparent 70%),
    radial-gradient(5px 5px at 64% 72%, rgba(255, 140, 210, 0.55), transparent 70%),
    radial-gradient(3px 3px at 32% 84%, rgba(255, 255, 255, 0.5), transparent 70%),
    radial-gradient(4px 4px at 90% 58%, rgba(255, 255, 255, 0.45), transparent 70%),
    radial-gradient(70px 70px at 4% 70%, rgba(255, 88, 177, 0.16), transparent 70%),
    radial-gradient(90px 90px at 97% 34%, rgba(82, 242, 232, 0.12), transparent 70%);
}

a { color: inherit; }
::selection { background: rgba(255, 88, 177, 0.45); color: #fff; }

h1, h2, h3, h4 { color: var(--text); }
p { color: inherit; }

.eyebrow {
  color: var(--cyan);
  letter-spacing: 0.12em;
}

/* ------------------------------------------------------------- display --- */

/* The condensed Bebas headings become the mock-up's heavy rounded caps. */
.mock-hero h1,
.legal-hero h1,
.legal-article h2,
.page-hero h1,
.apply-grid h2,
.quality-layout h2,
.project-detail-copy h1,
.project-detail-cta h2,
.project-downloads-copy h2,
.project-journey-grid h3,
.blog-hero h1,
.section-heading h2,
.compact-heading h2,
.page-hero-grid h1,
.contact-hero h1,
.about-story h2,
.archive-section h2,
.project-story-section h2,
.project-actions-layout h2,
.project-gallery-section h2,
.project-funding-layout h2,
.project-journey-heading h2,
.split-feature h2,
.team-strip h2,
.volunteer-hero h1,
.apply-panel h2 {
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.02;
  text-transform: uppercase;
}

.legal-hero h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); }
.legal-article h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); }
.page-hero h1,
.contact-hero h1,
.volunteer-hero h1,
.page-hero-grid h1 { font-size: clamp(2.3rem, 3.8vw, 3.9rem); }
.apply-grid h2,
.quality-layout h2,
.project-detail-cta h2,
.project-downloads-copy h2 { font-size: clamp(2rem, 3.2vw, 3.4rem); }
.project-detail-copy h1 { font-size: clamp(2.8rem, 5vw, 5rem); }
.blog-hero h1 { font-size: clamp(3rem, 7vw, 5.6rem); }
.section-heading h2,
.compact-heading h2 { font-size: clamp(1.9rem, 3vw, 3rem); }
.project-journey-grid h3 { font-size: 1.7rem; }

.impact-stats strong,
.project-impact-grid strong,
.project-numbers strong,
.life-board strong,
.youth-badge,
.language-symbol,
.project-journey-step,
.project-actions-layout li::before,
.latest-card h3 {
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: -0.01em;
}
.impact-stats strong { font-size: 3rem; }
.project-impact-grid strong,
.project-numbers strong,
.life-board strong { font-size: 2.5rem; }
.latest-card h3 { font-size: 2.1rem; text-transform: uppercase; }
.project-journey-step { font-size: 3.6rem; }

/* "Ce facem": a rounded bold title with a short pink swash under it. */
.script-title,
.cta-message h2 {
  position: relative;
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: -0.015em;
  text-transform: none;
  color: var(--text);
}
.script-title { font-size: clamp(2.2rem, 3.4vw, 3.3rem); padding-bottom: 14px; }
.script-title::after {
  content: "";
  position: absolute;
  left: 2px;
  bottom: 0;
  width: 2.6em;
  height: 6px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--pink), var(--magenta));
  box-shadow: 0 0 18px rgba(255, 88, 177, 0.7);
  transform: rotate(-2deg);
}
.script-title.light { color: var(--text); }

/* -------------------------------------------------------------- glass --- */

/* One recipe for every frosted panel: translucent fill, blur, and a neon
   edge drawn by a masked gradient so the fill stays see-through. */
.what-card,
.mini-cta,
.impact-stats > div,
.resource-card,
.fit-card,
.journey-step,
.impact-card,
.project-need-card,
.project-download-card,
.funding-card,
.gallery-card,
.blog-card,
.home-blog-card,
.contact-details-grid article,
.legal-toc,
.legal-table > div,
.official-list,
.apply-panel,
.life-board > div,
.archive-details,
.project-journey-grid article,
.project-numbers > div,
.project-impact-grid > div,
.team-grid > *,
.modal-panel,
.apply-band-panel,
.project-detail-cta-inner {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  color: var(--text);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}

.what-card::before,
.mini-cta::before,
.apply-band-panel::before,
.home-blog-card::before,
.project-detail-cta-inner::before,
.hero-feature-photo::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: var(--neon-edge);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.75;
}

/* Text inside panels was dark on cream; on glass it is light. */
.what-card p, .mini-cta p, .resource-card p, .fit-card p, .journey-step p,
.impact-card p, .project-need-card p, .blog-card p, .contact-details-grid p,
.legal-article p, .legal-article li, .official-list dd, .project-detail-copy p,
.project-story-grid p, .page-hero p, .section-heading p, .apply-grid p,
.quality-layout p, .about-story p, .archive-section p, .project-funding-layout p,
.project-downloads-copy p, .home-blog-copy p, .article-body p, .article-lead,
.blog-hero p, .contact-hero p, .legal-hero p, .project-common-grid p,
.project-actions-layout li, .split-feature p, .team-strip p {
  color: var(--text-soft);
}

.section-band,
.what-section,
.latest-section,
.impact-section,
.cta-strip,
.light-strip,
.quality-section,
.project-story-section,
.project-actions-section,
.project-gallery-section,
.project-funding-section,
.project-downloads-section,
.project-journey-section,
.legal-content-section,
.contact-details-section,
.blog-list-section,
.archive-section,
.team-strip,
.page-hero,
.legal-hero,
.contact-hero,
.blog-hero,
.volunteer-hero,
.project-detail-hero,
.project-impact-strip,
.home-blog-feature {
  background: transparent !important;
  color: var(--text);
}

.wave-divider { display: none; }

/* ------------------------------------------------------------- header --- */

.site-header,
body[data-page="home"] .site-header {
  position: sticky;
  top: 0;
  inset: auto;
  background: linear-gradient(180deg, rgba(5, 9, 34, 0.86), rgba(5, 9, 34, 0.55) 70%, rgba(5, 9, 34, 0));
  border-bottom: 0;
  color: var(--text);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
body[data-page="home"] .site-header { position: absolute; inset: 0 0 auto; background: transparent; }

.header-grid { min-height: 104px; gap: 22px; }
.brand img,
body[data-page="home"] .brand img { filter: brightness(0) invert(1); width: 150px; }

.site-nav {
  gap: clamp(10px, 1.6vw, 30px);
  padding: 10px clamp(18px, 2.2vw, 34px);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 10px 40px rgba(2, 6, 30, 0.4);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.98rem;
}
.site-nav a,
body[data-page="home"] .site-nav a {
  color: rgba(244, 246, 255, 0.92);
  text-shadow: none;
}
.site-nav a::after {
  background: linear-gradient(90deg, var(--pink), var(--magenta));
  box-shadow: 0 0 12px rgba(255, 88, 177, 0.8);
  bottom: 2px;
}
body[data-page="blog"] [data-nav="blog"]::after,
body[data-page="article"] [data-nav="blog"]::after { left: 0; right: 0; }

.header-actions { gap: 10px; }

.donate-pill,
.primary-pill,
.button-sun {
  background: linear-gradient(180deg, #ffe066, var(--sun) 45%, var(--sun-2));
  color: #1a1530;
  font-family: var(--display);
  font-weight: 900;
  box-shadow: 0 0 0 1px rgba(255, 230, 140, 0.6) inset, 0 10px 30px rgba(255, 196, 47, 0.35);
}
.donate-pill:hover,
.primary-pill:hover,
.button-sun:hover { filter: brightness(1.06); transform: translateY(-1px); }

.outline-pill,
.view-all-pill,
.button-glass,
.button-light,
.button-outline,
.login-pill,
.button-dark {
  border: 1px solid rgba(214, 228, 255, 0.55);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-family: var(--display);
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.outline-pill:hover,
.view-all-pill:hover,
.button-glass:hover,
.button-light:hover,
.button-outline:hover,
.login-pill:hover,
.button-dark:hover { border-color: var(--cyan); box-shadow: 0 0 18px rgba(82, 242, 232, 0.35); }

.login-pill { min-height: 46px; padding: 10px 16px; gap: 8px; }
.login-pill svg { color: var(--cyan); }

.language-switcher,
body:not([data-page="home"]) .language-switcher {
  border: 1px solid var(--glass-line);
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.lang-button { color: var(--text); font-family: var(--display); }
.lang-button.is-active,
body:not([data-page="home"]) .lang-button.is-active {
  background: rgba(176, 200, 255, 0.24);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.menu-toggle,
body:not([data-page="home"]) .menu-toggle {
  border-color: var(--glass-line);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

@media (max-width: 1360px) and (min-width: 1121px) {
  .login-pill span { display: none; }
  .login-pill { width: 46px; padding: 0; }
  .site-nav { font-size: 0.9rem; }
  .brand img, body[data-page="home"] .brand img { width: 128px; }
}

@media (max-width: 1120px) {
  .site-header[data-menu-open="true"],
  body[data-page="home"] .site-header[data-menu-open="true"] {
    background: rgba(7, 11, 40, 0.96);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
  }
  .site-nav {
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 18px;
  }
  .header-actions { flex-wrap: wrap; }
}

/* --------------------------------------------------------------- hero --- */

.night-hero {
  min-height: 680px;
  background: transparent;
  isolation: isolate;
}
/* The aurora fades out at the bottom so the hero melts into the page. */
.night-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 9, 34, 0.82) 0%, rgba(5, 9, 34, 0.5) 38%, rgba(5, 9, 34, 0) 62%),
    radial-gradient(700px 460px at 18% 92%, rgba(255, 88, 177, 0.18), transparent 70%),
    url("/assets/backgrounds/fundal-principal-navy-turcoaz-roz.webp") center / cover no-repeat,
    var(--night-1);
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent);
  mask-image: linear-gradient(180deg, #000 72%, transparent);
}
.night-hero .mock-hero-bg,
.night-hero .mock-hero-shade { display: none; }

.night-hero .mock-hero-inner { position: relative; z-index: 1; min-height: 660px; padding-top: 120px; padding-bottom: 40px; }
.night-hero .mock-hero-copy { position: relative; }

@media (min-width: 1121px) {
  .night-hero .mock-hero-inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
  .night-hero h1 { white-space: nowrap; }
}
.night-hero h1 {
  font-size: clamp(2.5rem, 4.15vw, 4.35rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: #fff;
  text-shadow: 0 6px 30px rgba(3, 8, 40, 0.6);
}
.night-hero h1 .glow-cyan {
  color: #5ff7ef;
  text-shadow: 0 0 18px rgba(82, 242, 232, 0.55), 0 0 42px rgba(54, 198, 255, 0.35);
}
.night-hero .mock-hero-copy p {
  color: #eef1ff;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.15rem, 1.5vw, 1.45rem);
  max-width: 34ch;
}

.hero-spark {
  position: absolute;
  width: 46px;
  height: 46px;
  pointer-events: none;
}
.hero-spark::before,
.hero-spark::after {
  content: "";
  position: absolute;
  border-radius: 99px;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
}
.hero-spark-cyan { color: var(--cyan); left: 58px; top: -46px; }
.hero-spark-cyan::before { width: 4px; height: 20px; left: 8px; top: 8px; transform: rotate(-24deg); }
.hero-spark-cyan::after { width: 4px; height: 20px; left: 26px; top: 0; transform: rotate(18deg); }
.hero-spark-pink { color: var(--pink); left: min(37vw, 560px); top: -6px; }
.hero-spark-pink::before { width: 4px; height: 26px; left: 10px; top: 10px; transform: rotate(52deg); }
.hero-spark-pink::after { width: 4px; height: 16px; left: 28px; top: 2px; transform: rotate(32deg); }

.hero-visual-stack { position: relative; isolation: isolate; }
.hero-glass-layer {
  position: absolute;
  inset: 0;
  border-radius: 30px;
  border: 1px solid rgba(190, 220, 255, 0.35);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 20px 60px rgba(2, 6, 30, 0.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: -1;
}
.hero-glass-layer.layer-back { transform: translate(-46px, -34px) rotate(-3deg); opacity: 0.6; }
.hero-glass-layer.layer-mid { transform: translate(22px, -16px) rotate(2deg); opacity: 0.85; }

.night-hero .hero-feature-photo {
  position: relative;
  border: 0;
  border-radius: 26px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 40px rgba(82, 242, 232, 0.25), 0 0 80px rgba(255, 88, 177, 0.18), 0 30px 60px rgba(2, 6, 30, 0.55);
  transform: perspective(1400px) rotateY(-6deg) rotateZ(1.2deg);
}
.night-hero .hero-feature-photo img { border-radius: 18px; }
.night-hero .hero-feature-photo::before { opacity: 1; padding: 2px; }

.hero-heart {
  position: absolute;
  right: -14px;
  top: 38%;
  width: 54px;
  color: var(--pink);
  filter: drop-shadow(0 0 10px rgba(255, 88, 177, 0.9));
  transform: rotate(10deg);
}

.night-hero .brush-note {
  position: absolute;
  left: 10%;
  bottom: -30px;
  white-space: nowrap;
  z-index: 3;
  padding: 10px 30px 12px;
  background: linear-gradient(90deg, #ff6fc0, #c86bff);
  clip-path: polygon(2% 12%, 100% 0, 97% 52%, 100% 100%, 0 92%, 3% 48%);
  transform: rotate(-4deg);
  box-shadow: none;
}
.night-hero .brush-note span {
  font-family: var(--hand);
  font-size: clamp(1.45rem, 1.9vw, 1.95rem);
  font-weight: 700;
  color: #1b1236;
  letter-spacing: 0;
  text-transform: none;
}

.hero-stiv {
  position: absolute;
  right: -44px;
  bottom: -70px;
  width: clamp(150px, 15vw, 230px);
  height: auto;
  z-index: 4;
  filter: drop-shadow(0 18px 30px rgba(2, 6, 30, 0.6));
  animation: stiv-float 6s ease-in-out infinite;
}
.hero-stars {
  position: absolute;
  right: 172px;
  bottom: -96px;
  width: 92px;
  height: auto;
  z-index: 4;
  filter: drop-shadow(0 8px 16px rgba(2, 6, 30, 0.5));
}
@keyframes stiv-float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-stiv { animation: none; }
}

.mock-doodle { display: none; }

/* ------------------------------------------------------------ ce facem --- */

.what-section { padding: 30px 0 40px; }
.what-grid { gap: 24px; margin-top: 34px; }
.what-card {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 268px;
  padding: 18px 22px 22px;
  text-align: left;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.what-card:hover { transform: translateY(-4px); box-shadow: 0 0 34px rgba(82, 242, 232, 0.25), var(--glass-shadow); }
.what-card > * { position: relative; z-index: 1; }
.what-card img {
  width: 82%;
  max-width: 230px;
  height: 170px;
  object-fit: contain;
  margin: 0 auto 6px;
  filter: drop-shadow(0 18px 24px rgba(2, 6, 30, 0.55));
}
.what-card h3 {
  margin: 0;
  padding-right: 58px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.28rem;
  line-height: 1.2;
  color: #fff;
}
.card-arrow {
  position: absolute !important;
  right: 20px;
  bottom: 20px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid rgba(230, 238, 255, 0.75);
  color: #fff;
  font-weight: 900;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.what-card:hover .card-arrow { background: rgba(82, 242, 232, 0.2); border-color: var(--cyan); }

/* ---------------------------------------------------------- apply band --- */

.apply-band { padding: 40px 0 30px; }
.apply-band-panel {
  display: grid;
  grid-template-columns: minmax(180px, 300px) 1fr;
  align-items: center;
  gap: clamp(20px, 4vw, 54px);
  padding: clamp(26px, 4vw, 48px);
  background:
    radial-gradient(500px 280px at 0% 100%, rgba(255, 88, 177, 0.16), transparent 70%),
    radial-gradient(500px 300px at 100% 0%, rgba(82, 242, 232, 0.14), transparent 70%),
    var(--glass);
}
.apply-band-panel > * { position: relative; z-index: 1; }
.apply-band-stiv { width: 100%; height: auto; filter: drop-shadow(0 20px 30px rgba(2, 6, 30, 0.55)); }
.apply-band-copy h2 {
  margin: 6px 0 12px;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  line-height: 1.04;
  text-transform: uppercase;
}
.apply-band-copy > p:not(.eyebrow) { color: var(--text-soft); font-size: 1.08rem; max-width: 60ch; }
.apply-band-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 18px 0 22px;
  padding: 0;
  list-style: none;
  font-family: var(--display);
  font-weight: 800;
}
.apply-band-steps li { display: inline-flex; align-items: center; gap: 10px; }
.apply-band-steps li span:first-child {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #0b1238;
  font-size: 0.9rem;
}
.apply-band-login {
  display: inline-block;
  margin-top: 16px;
  color: var(--cyan);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.mock-actions { gap: 14px; }
.mock-actions .button { min-height: 54px; padding: 14px 26px; font-size: 1.02rem; }

/* -------------------------------------------------------------- impact --- */

.impact-section { padding: 60px 0; }
.impact-photo {
  border-radius: 24px;
  border: 1px solid var(--glass-line);
  box-shadow: 0 0 40px rgba(82, 242, 232, 0.2), var(--glass-shadow);
}
.youth-badge {
  background: linear-gradient(135deg, var(--pink), var(--magenta));
  color: #fff;
  border: 0;
  box-shadow: 0 0 26px rgba(255, 88, 177, 0.6);
}
.impact-stats > div { padding: 20px 14px; border-radius: 22px; }
.impact-stats strong { color: #fff; }
.impact-stats p { color: var(--text-soft); }
.line-icon.turquoise { color: var(--cyan); }
.line-icon.pink { color: var(--pink); }
.line-icon.yellow { color: var(--sun); }

/* -------------------------------------------------------------- latest --- */

.latest-section { padding: 50px 0; }
.latest-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-line);
  box-shadow: var(--glass-shadow);
}
.latest-card-shade {
  background: linear-gradient(180deg, rgba(5, 9, 34, 0.05) 20%, rgba(5, 9, 34, 0.92) 100%);
}
.latest-card p { color: var(--text-soft); }
.project-chip {
  border: 1px solid rgba(255, 255, 255, 0.4);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-family: var(--display);
  font-weight: 800;
}
.project-chip.purple { background: rgba(214, 92, 255, 0.35); color: #fff; }
.project-chip.teal { background: rgba(82, 242, 232, 0.3); color: #fff; }
.project-chip.yellow { background: rgba(255, 212, 71, 0.85); color: #1a1530; }

/* ----------------------------------------------------------- CTA strip --- */

.cta-strip { padding: 60px 0 80px; }
.cta-message h2 { font-size: clamp(2rem, 3vw, 3rem); line-height: 1.08; }
.cta-message span { background: linear-gradient(90deg, var(--sun), var(--pink)); box-shadow: 0 0 18px rgba(255, 88, 177, 0.6); }
.mini-cta { text-decoration: none; overflow: hidden; }
.mini-cta > * { position: relative; z-index: 1; }
.mini-cta img {
  width: 104px;
  height: 96px;
  object-fit: contain;
  margin: -6px 0 6px;
  filter: drop-shadow(0 12px 18px rgba(2, 6, 30, 0.5));
}
.mini-cta h3 { font-family: var(--display); font-weight: 900; color: #fff; }
.mini-cta span { color: var(--cyan); font-weight: 800; }

/* ---------------------------------------------------------- blog teaser --- */

.home-blog-card { overflow: hidden; }
.home-blog-card > * { position: relative; z-index: 1; }
.blog-date { color: var(--cyan); }

/* -------------------------------------------------------------- footer --- */

.site-footer,
.mock-footer {
  position: relative;
  margin-top: 40px;
  background:
    linear-gradient(180deg, rgba(5, 9, 34, 0), rgba(5, 9, 34, 0.88) 120px),
    transparent !important;
  border-top: 1px solid rgba(176, 214, 255, 0.14);
  color: var(--text-soft);
}
.site-footer .footer-grid { grid-template-columns: 1.3fr repeat(4, 1fr); gap: 28px; }
.site-footer h3 { font-family: var(--display); font-weight: 900; color: #fff; }
.site-footer a { color: var(--text-soft); }
.site-footer a:hover { color: var(--cyan); }
.site-footer p { color: var(--text-mute); }
.site-footer img { filter: brightness(0) invert(1); }
.footer-socials a {
  border: 1px solid var(--glass-line);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.footer-bottom { border-top-color: rgba(176, 214, 255, 0.14); color: var(--text-mute); }
.footer-stiv {
  position: absolute;
  right: max(16px, calc((100vw - 1240px) / 2));
  top: -96px;
  width: 150px;
  height: auto;
  filter: brightness(1) invert(0) drop-shadow(0 16px 24px rgba(2, 6, 30, 0.6)) !important;
  pointer-events: none;
}
@media (max-width: 1120px) {
  .site-footer .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-stiv { width: 110px; top: -70px; }
}
@media (max-width: 560px) {
  .site-footer .footer-grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------- inner pages --- */

.page-hero,
.legal-hero,
.contact-hero,
.blog-hero,
.volunteer-hero,
.project-detail-hero { padding-top: 40px; }

.filter-bar { gap: 10px; }
.filter-button {
  border: 1px solid var(--glass-line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-family: var(--display);
  font-weight: 800;
}
.filter-button.is-active {
  background: linear-gradient(90deg, var(--pink), var(--magenta));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 18px rgba(255, 88, 177, 0.5);
}

.project-tag,
.project-detail-tags span,
.project-detail-status span {
  border: 1px solid var(--glass-line);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}
.project-back-link,
.article-back { color: var(--cyan); }

.page-hero img,
.project-detail-photo,
.project-page-hero-photo img,
.photo-image,
.gallery-card img,
.project-photo-grid img,
.hero-duo img,
.mini-gallery img,
.split-feature img,
.about-story img,
.article-cover img,
.blog-card-media img,
.home-blog-media img {
  border-radius: 22px;
}

.project-detail-photo,
.page-hero-grid img,
.split-feature img {
  border: 1px solid var(--glass-line);
  box-shadow: 0 0 40px rgba(82, 242, 232, 0.16), var(--glass-shadow);
}

.legal-toc a { color: var(--text-soft); }
.legal-toc a:hover { color: var(--cyan); }
.legal-article { color: var(--text-soft); }
.legal-article a,
.article-body a,
.contact-details-grid a { color: var(--cyan); }

.modal-backdrop { background: rgba(2, 5, 24, 0.72); }
.modal-close { color: #fff; background: rgba(255, 255, 255, 0.1); border: 1px solid var(--glass-line); }

.funding-card img { background: #fff; border-radius: 10px; padding: 6px; }

input, textarea, select {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-color: var(--glass-line);
}

.cms-login-trigger { opacity: 0.35; }

/* ------------------------------------------------- inner page heroes --- */

.page-hero,
.contact-hero,
.blog-hero,
.legal-hero,
.project-detail-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.page-hero::before,
.contact-hero::before,
.blog-hero::before,
.legal-hero::before,
.project-detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 9, 34, 0.86) 0%, rgba(5, 9, 34, 0.55) 45%, rgba(5, 9, 34, 0.1) 75%),
    url("/assets/backgrounds/fundal-principal-navy-turcoaz-roz.webp") center / cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent);
  mask-image: linear-gradient(180deg, #000 70%, transparent);
}
.contact-hero,
.blog-hero,
.legal-hero { min-height: 420px; padding-bottom: 60px; }

.hero-mascot {
  position: absolute;
  right: max(24px, calc((100vw - 1240px) / 2 + 20px));
  bottom: 30px;
  width: clamp(150px, 18vw, 260px);
  height: auto;
  filter: drop-shadow(0 20px 30px rgba(2, 6, 30, 0.6));
  animation: stiv-float 6s ease-in-out infinite;
  pointer-events: none;
}
@media (max-width: 820px) {
  .hero-mascot { width: 120px; right: 16px; bottom: 10px; opacity: 0.9; }
}

.page-hero p,
.contact-hero p,
.blog-hero p,
.legal-hero p,
.contact-intro p { color: var(--text-soft) !important; }
.contact-hero h1,
.blog-hero h1,
.legal-hero h1 { color: #fff; }

.hero-object.photo-image,
.page-hero .photo-image,
.hero-duo .photo-image {
  background: transparent;
  border: 1px solid var(--glass-line);
  padding: 8px;
  background-color: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 40px rgba(82, 242, 232, 0.22), 0 0 70px rgba(255, 88, 177, 0.14), var(--glass-shadow);
}
.contain-image { background: transparent !important; filter: drop-shadow(0 20px 30px rgba(2, 6, 30, 0.5)); }

/* ------------------------------------------------------ fixes by page --- */

.blog-page,
main.blog-page { background: transparent !important; }

.contact-details-grid article > span:first-child,
.contact-details-grid span[aria-hidden="true"] {
  background: linear-gradient(180deg, #ffe066, var(--sun) 50%, var(--sun-2)) !important;
  color: #1a1530 !important;
}
.contact-social-links a {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid var(--glass-line) !important;
  color: var(--text) !important;
}
.contact-social-links a:hover { border-color: var(--cyan) !important; }

.official-list > div,
.official-list dl > div {
  background: rgba(255, 255, 255, 0.07) !important;
  border: 1px solid var(--glass-line) !important;
  color: var(--text);
}
.official-list dt { color: var(--cyan); }
.official-list dd { color: var(--text) !important; }

/* Partner and project logos are drawn for a white ground; keep it. */
.project-brand-mark,
.project-detail-brand {
  background: rgba(255, 255, 255, 0.94) !important;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 10px 30px rgba(2, 6, 30, 0.4);
}

/* A project's own website, right under its title. */
.project-website { display: grid; gap: 8px; justify-items: start; margin-top: 20px; }
.project-website[hidden] { display: none; }
.project-website .button { min-height: 52px; padding: 14px 24px; }
.project-website p { margin: 0; max-width: 46ch; font-size: 0.95rem; color: var(--text-soft); }

.project-detail-cta-inner {
  padding: clamp(26px, 4vw, 44px) clamp(24px, 4vw, 48px);
  background:
    radial-gradient(480px 260px at 100% 0%, rgba(82, 242, 232, 0.14), transparent 70%),
    radial-gradient(480px 260px at 0% 100%, rgba(255, 88, 177, 0.14), transparent 70%),
    var(--glass);
}
.project-detail-cta-inner > * { position: relative; z-index: 1; }
.project-detail-cta h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); }

/* Inner pages: the header is a solid strip of frosted glass. */
body:not([data-page="home"]) .site-header {
  background: rgba(6, 10, 38, 0.72);
  border-bottom: 1px solid rgba(176, 214, 255, 0.12);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}

/* ------------------------------------------------------------- mobile --- */

@media (max-width: 820px) {
  .container { width: min(100% - 32px, 1280px); }

  .night-hero .mock-hero-inner { padding-top: 104px; gap: 54px; }
  .hero-spark { display: none; }
  .hero-glass-layer.layer-back { display: none; }
  .hero-glass-layer.layer-mid { transform: translate(10px, -10px) rotate(2deg); }
  .night-hero .hero-feature-photo { transform: none; padding: 6px; }
  .hero-heart { right: 6px; top: -22px; width: 38px; }
  .night-hero .brush-note { left: 4%; bottom: -24px; padding: 8px 20px 10px; }
  .night-hero .brush-note span { font-size: 1.3rem; }
  .hero-stiv { right: -4px; bottom: -58px; width: 108px; }
  .hero-stars { right: 104px; bottom: -64px; width: 58px; }
  .mock-actions { display: grid; }
  .mock-actions .button { width: 100%; }

  .what-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .what-card { min-height: 200px; padding: 14px 14px 16px; border-radius: 22px; }
  .what-card img { height: 100px; width: 100%; }
  .what-card h3 { font-size: 1rem; padding-right: 0; padding-bottom: 46px; }
  .card-arrow { right: 14px; bottom: 14px; width: 36px; height: 36px; }

  .apply-band-panel { grid-template-columns: 1fr; text-align: left; }
  .apply-band-stiv { width: 140px; margin: -10px auto 0; }
  .apply-band-steps { display: grid; }

  .footer-stiv { width: 92px; top: -58px; right: 16px; }
  .site-footer { margin-top: 70px; }
}
@media (max-width: 820px) {
  .impact-stats { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px; }
  .impact-stats strong { font-size: 2.2rem; }
  .cta-cards { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px; }
  .mini-cta { padding: 16px 12px; }
  .mini-cta img { width: 72px; height: 66px; }
}
@media (max-width: 1120px) {
  .site-header[data-menu-open="true"] .site-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px;
  }
  .site-header[data-menu-open="true"] .site-nav a {
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 1.05rem;
  }
  .site-header[data-menu-open="true"] .site-nav a::after { display: none; }
  body[data-page="home"] .site-header[data-menu-open="true"] [data-nav="home"],
  body[data-page="projects"] .site-header[data-menu-open="true"] [data-nav="projects"],
  body[data-page="blog"] .site-header[data-menu-open="true"] [data-nav="blog"],
  body[data-page="volunteer"] .site-header[data-menu-open="true"] [data-nav="volunteer"],
  body[data-page="about"] .site-header[data-menu-open="true"] [data-nav="about"],
  body[data-page="resources"] .site-header[data-menu-open="true"] [data-nav="resources"],
  body[data-page="contact"] .site-header[data-menu-open="true"] [data-nav="contact"] {
    background: linear-gradient(90deg, rgba(255, 88, 177, 0.28), rgba(214, 92, 255, 0.18));
  }
  .site-header[data-menu-open="true"] { padding-bottom: 18px; }
}

/* Over the bright corner of the aurora the glass needs a darker fill. */
.login-pill,
.language-switcher,
body:not([data-page="home"]) .language-switcher { background: rgba(6, 10, 38, 0.55); }
