/* ==========================================================================
   GEMA — Gender, Masculinities and Gender-Based Violence
   Palette and typography reproduced from the original Wix site.
   ========================================================================== */

:root {
  --plum: #633761;
  --plum-dark: #3f2340;
  --plum-deep: #2b074d;
  --violet: #8015e8;
  --violet-dark: #550e9b;
  --lilac: #ba83f0;
  --lilac-soft: #d2acf7;
  --lilac-pale: #e7bbff;
  --pink-pale: #fee9ff;
  --ink: #1d1420;
  --body: #3f3a41;
  --muted: #6f6874;
  --line: #e6d9e8;
  --bg: #ffffff;
  --bg-alt: #fbf6fc;

  --font: "Quicksand", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px rgba(99, 55, 97, .10);
  --shadow-lg: 0 18px 48px rgba(99, 55, 97, .16);
  --wrap: 1180px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 58px); }
/* `clip` (not `hidden`) keeps position: sticky working on the header and page tabs. */
html, body { overflow-x: clip; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--plum); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 2px;
  border-radius: 4px;
}

h1, h2, h3, h4 { font-weight: 700; color: var(--plum-dark); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p { margin: 0 0 1.1em; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.skip-link {
  position: fixed; left: 0; top: -100px; z-index: 200;
  background: var(--plum); color: #fff; padding: 12px 18px; border-radius: 0 0 10px 0;
  transition: top .15s ease;
}
.skip-link:focus { top: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  /* No backdrop-filter here: it would make the header a containing block for the
     position: fixed mobile nav panel and collapse it to the header's height. */
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  min-height: var(--header-h);
  display: flex; align-items: center; gap: 18px;
}
.brand {
  display: flex; flex-direction: column; text-decoration: none; color: var(--plum);
  font-weight: 700; line-height: 1.15; margin-right: auto;
}
.brand strong { font-size: 1.35rem; letter-spacing: .06em; }
.brand span { font-size: .72rem; color: var(--muted); font-weight: 600; max-width: 30ch; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a, .nav .sub-toggle {
  font: inherit; font-weight: 700; font-size: .93rem;
  color: var(--plum-dark); background: none; border: 0; cursor: pointer;
  padding: 10px 13px; border-radius: 10px; text-decoration: none; white-space: nowrap;
}
.nav a:hover { background: var(--pink-pale); }
.nav a[aria-current="page"] { color: var(--violet-dark); background: var(--pink-pale); }

/* The parent item is a real link to the section index; the chevron beside it
   only opens the submenu. */
.has-sub { position: relative; display: flex; align-items: center; }
.sub-toggle {
  font: inherit; line-height: 1; color: var(--plum-dark); background: none;
  border: 0; cursor: pointer; padding: 10px 8px; border-radius: 10px; font-size: .8rem;
}
.sub-toggle:hover { background: var(--pink-pale); }
.submenu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 260px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 8px; display: none; list-style: none; margin: 0;
}
.submenu a { display: block; padding: 9px 12px; font-size: .9rem; white-space: normal; }

/* Pointer devices: open on hover or keyboard focus, so there is nothing for a
   click on the chevron to fight with. */
@media (min-width: 1081px) {
  .has-sub:hover .submenu,
  .has-sub:focus-within .submenu { display: block; }
  /* a hover bridge, so the pointer can travel to the submenu */
  .has-sub::after { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 8px; }
}
.has-sub[data-open="true"] > .submenu { display: block; }

.lang-switch { display: flex; gap: 2px; margin-left: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang-switch a {
  padding: 5px 11px; font-size: .78rem; font-weight: 700; border-radius: 999px;
  text-decoration: none; color: var(--muted); text-transform: uppercase; letter-spacing: .05em;
}
.lang-switch a[aria-current="true"] { background: var(--plum); color: #fff; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 10px;
  color: var(--plum-dark);
}
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 auto; width: min(360px, 88vw);
    background: #fff; border-left: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 18px;
    overflow-y: auto; transform: translateX(100%); transition: transform .25s ease;
    box-shadow: var(--shadow-lg);
  }
  body[data-nav="open"] .nav { transform: translateX(0); }
  .nav a { padding: 13px 12px; width: 100%; text-align: left; font-size: 1rem; }
  .has-sub { flex-wrap: wrap; }
  .has-sub > a { flex: 1; width: auto; }
  .sub-toggle { padding: 13px 14px; font-size: 1rem; }
  .submenu { position: static; display: none; box-shadow: none; border: 0; border-left: 3px solid var(--lilac-pale); border-radius: 0; margin: 0 0 8px 12px; padding: 0; flex-basis: 100%; }
  .has-sub[data-open="true"] > .submenu { display: block; }
  .lang-switch { margin: 14px 0 0; align-self: flex-start; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-weight: 700; font-size: .95rem;
  padding: 13px 26px; border-radius: 999px; text-decoration: none;
  background: var(--plum); color: #fff; border: 2px solid var(--plum);
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.btn:hover { background: var(--plum-dark); border-color: var(--plum-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--plum); }
.btn-outline:hover { background: var(--plum); color: #fff; }
.btn-light { background: #fff; color: var(--plum); border-color: #fff; }
.btn-light:hover { background: var(--pink-pale); border-color: var(--pink-pale); color: var(--plum); }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; text-align: center;
  padding: clamp(80px, 13vw, 150px) 0;
  background: linear-gradient(135deg, var(--plum) 0%, var(--violet-dark) 55%, var(--plum-deep) 100%);
  overflow: hidden;
}
.hero .hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .28;
}
.hero > .wrap { position: relative; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero .eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .18em;
  font-size: .75rem; font-weight: 700; color: var(--lilac-pale); margin-bottom: 14px;
}
.hero p.lead { font-size: clamp(1.02rem, 1.8vw, 1.2rem); max-width: 68ch; margin-inline: auto; color: #f3e6f5; }
.hero .btn { margin-top: 26px; }
.hero-logo { max-height: 74px; width: auto; margin: 0 auto 22px; background: #fff; padding: 10px 16px; border-radius: 12px; }

/* ---------- Sections ---------- */
section { padding: clamp(52px, 7vw, 88px) 0; }
section.tint { background: var(--bg-alt); }
section.pink { background: var(--pink-pale); }
.section-head { max-width: 72ch; margin-bottom: 40px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

.prose { max-width: 74ch; }
.prose ul { padding-left: 1.15em; }
.prose li { margin-bottom: .5em; }

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 860px) { .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; } }
.split img { border-radius: var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* ---------- In-page tabs ---------- */
.page-tabs {
  position: sticky; top: var(--header-h); z-index: 60;
  background: #fff; border-bottom: 1px solid var(--line);
}
.page-tabs ul {
  display: flex; gap: 6px; list-style: none; margin: 0; padding: 0;
  overflow-x: auto; scrollbar-width: none;
}
.page-tabs ul::-webkit-scrollbar { display: none; }
.page-tabs a {
  display: block; padding: 15px 16px; font-size: .88rem; font-weight: 700;
  color: var(--muted); text-decoration: none; white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.page-tabs a:hover { color: var(--plum); }
.page-tabs a.is-active { color: var(--violet-dark); border-bottom-color: var(--violet); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
a.card { text-decoration: none; color: inherit; }
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card img.card-media { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card .card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
/* No text-transform here: it would render PREDICT-ViS as PREDICT-VIS. */
.card .years {
  font-size: .78rem; font-weight: 700; letter-spacing: .08em;
  color: var(--violet-dark);
}
.card h3 { margin: 0; }
.card .tagline { font-size: .95rem; color: var(--plum); font-weight: 600; margin: 0; }
.card p.desc { font-size: .93rem; color: var(--muted); margin: 0; }
.card .more { margin-top: auto; padding-top: 12px; font-weight: 700; font-size: .88rem; color: var(--violet-dark); }
.card .more::after { content: " →"; }

.badge {
  display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 999px;
  background: var(--lilac-pale); color: var(--plum-dark);
}
.badge.active { background: #d8f5e1; color: #1c5b34; }

/* numbered objective cards */
.obj-list { counter-reset: obj; list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.obj-list.cols { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.obj-list li {
  counter-increment: obj; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 24px 22px 62px; position: relative;
  box-shadow: var(--shadow); font-size: .97rem;
}
.obj-list li::before {
  content: counter(obj); position: absolute; left: 20px; top: 20px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--plum); color: #fff; font-weight: 700; font-size: .85rem;
  display: grid; place-items: center;
}

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.check-list li { position: relative; padding-left: 34px; font-size: .97rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .42em;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--lilac-pale); border: 4px solid var(--plum);
}

/* ---------- Partner logos ---------- */
.partners { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 22px; }
.partner {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; text-align: center; display: flex; flex-direction: column; gap: 12px;
  text-decoration: none; color: inherit;
}
a.partner:hover { border-color: var(--lilac); box-shadow: var(--shadow); }
.partner img { height: 62px; width: 100%; object-fit: contain; }
.partner .name { font-size: .86rem; font-weight: 700; color: var(--plum-dark); line-height: 1.35; }
.partner .country { font-size: .76rem; color: var(--muted); }
.partner .role { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--violet-dark); font-weight: 700; }

/* ---------- Outputs ---------- */
.output-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 22px; }
.output {
  display: flex; flex-direction: column; gap: 0; text-decoration: none; color: inherit;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
a.output:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.output { transition: transform .18s ease, box-shadow .18s ease; }
.output img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: #fff; padding: 10px; }
.output .t { padding: 14px 16px 16px; font-size: .86rem; font-weight: 700; color: var(--plum-dark); }
.output .t small { display: block; font-weight: 600; color: var(--muted); margin-top: 4px; font-size: .78rem; }

.res-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.res-list a {
  display: flex; gap: 12px; align-items: baseline; padding: 16px 20px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; font-weight: 600; font-size: .96rem; color: var(--plum-dark);
}
.res-list a:hover { border-color: var(--lilac); background: var(--pink-pale); }
.res-list a::before { content: "↗"; color: var(--violet); font-weight: 700; }

/* ---------- Publications ---------- */
.pub-year {
  font-size: 1.6rem; font-weight: 700; color: var(--violet-dark);
  border-bottom: 3px solid var(--lilac-pale); padding-bottom: 8px; margin: 46px 0 22px;
}
.pub-year:first-of-type { margin-top: 0; }
.pub-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.pub-list li {
  background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--lilac);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 18px 22px;
  font-size: .95rem; line-height: 1.6;
}
.pub-list a { word-break: break-word; }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.member { text-align: center; }
.member img {
  width: 100%; max-width: 230px; aspect-ratio: 1; object-fit: cover; border-radius: 50%;
  margin: 0 auto 16px; box-shadow: var(--shadow);
}
.member .n { font-weight: 700; color: var(--plum-dark); font-size: 1.05rem; }
.member .r { font-size: .88rem; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--plum) 0%, var(--violet-dark) 100%);
  color: #fff; text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #f0e2f2; max-width: 62ch; margin-inline: auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--plum-dark); color: #e9dceb; padding: 56px 0 28px; font-size: .92rem; }
.site-footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr; gap: 40px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer a { color: #f0dcf2; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-brand strong { display: block; color: #fff; font-size: 1.15rem; letter-spacing: .06em; }
.footer-logo { background: #fff; padding: 10px 14px; border-radius: 10px; width: max-content; margin-top: 18px; }
.footer-logo img { height: 42px; width: auto; }
.footer-bottom {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid #6c4a6e;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: .8rem; color: #c9b4cb;
}

