/* ===================================================================
   IDES — Instituto para o Desenvolvimento Económico e Social
   Base styles / design tokens
   =================================================================== */

:root{
  --accent: #A8862D;
  --hero-overlay: 0.35;
  --black: #111111;
  --near-black: #0A0A0A;
  --dark: #111111;
  --grey-900: #1A1A1A;
  --grey-800: #2A2A2A;
  --grey-700: #444444;
  --grey-600: #555555;
  --grey-500: #777777;
  --grey-400: #888888;
  --grey-300: #999999;
  --grey-200: #CCCCCC;
  --grey-100: #E0E0E0;
  --grey-50: #EAEAEA;
  --off-white: #F5F5F5;
  --white: #FFFFFF;
  --max-width: 1280px;
  --font: 'Montserrat', sans-serif;
}

*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

a{ color: var(--black); text-decoration: none; }
a:hover{ color: var(--accent); }
::selection{ background: var(--black); color: var(--white); }

img{ max-width: 100%; display: block; }

button{ font-family: var(--font); }

input::placeholder, textarea::placeholder{ color: var(--grey-400); font-family: var(--font); }

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

@keyframes heroZoom{
  from{ transform: scale(1.06); }
  to{ transform: scale(1); }
}

.eyebrow{
  margin: 0 0 18px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before{
  content: '';
  display: inline-block;
  width: 36px;
  height: 2px;
  background: var(--accent);
}
.eyebrow.eyebrow--lg::before{ width: 44px; }
.eyebrow--light{ color: #999; }
.eyebrow--dark{ color: #888; }

.btn{
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 16px 30px;
  border: none;
  cursor: pointer;
  transition: all .25s;
  font-family: var(--font);
  text-align: center;
}
.btn--sm{ padding: 14px 28px; font-size: 12px; }

.btn-white{ background: var(--white); color: var(--black); }
.btn-white:hover{ background: var(--accent); color: var(--white); }

.btn-outline-light{ border: 1.5px solid rgba(255,255,255,0.7); color: var(--white); background: transparent; }
.btn-outline-light:hover{ border-color: var(--white); background: rgba(255,255,255,0.12); color: var(--white); }

.btn-outline-dark{ border: 1.5px solid var(--black); color: var(--black); background: transparent; }
.btn-outline-dark:hover{ background: var(--black); color: var(--white); }

.btn-outline-grey{ border: 1.5px solid #444; color: var(--white); background: transparent; }
.btn-outline-grey:hover{ border-color: var(--white); background: var(--white); color: var(--black); }

.btn-solid-dark{ background: var(--black); color: var(--white); }
.btn-solid-dark:hover{ background: var(--accent); }

.link-arrow{
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--black);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
}

section{ position: relative; }

.section{ padding: 110px 0; }
.section--sm{ padding: 90px 0; }
.section--tight{ padding: 100px 0; }
.section-hero-inner{ padding: 210px 0 90px; }
.section-white{ background: var(--white); }
.section-black{ background: var(--black); }
.section-dark{ background: #111; }
.section-offwhite{ background: var(--off-white); }

.section-title{
  margin: 0;
  font-size: clamp(24px,2.6vw,32px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.8px;
  text-wrap: balance;
}
.section-title--light{ color: var(--white); }
.section-title--dark{ color: var(--black); }

.hero-title{
  margin: 0 0 22px;
  color: var(--white);
  font-size: clamp(28px,3vw,40px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1px;
  text-wrap: balance;
}
.hero-lede{
  margin: 0;
  color: #AAA;
  font-size: 16.5px;
  line-height: 1.8;
  max-width: 680px;
  text-wrap: pretty;
}

[data-reveal]{ opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
[data-reveal].is-visible{ opacity: 1; transform: translateY(0); }

/* ===================================================================
   Header
   =================================================================== */

.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  box-shadow: none;
  transition: box-shadow .3s ease;
}
.site-header.is-scrolled{ box-shadow: 0 6px 24px rgba(0,0,0,0.10); }

.header-bar{
  background: #000;
}
.header-bar-inner{
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.header-bar-inner p{
  margin: 0;
  color: #999;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.header-bar-links{ display: flex; align-items: center; gap: 22px; flex: none; }
.header-bar-links a{ color: #CCC; font-size: 11px; font-weight: 600; letter-spacing: 0.5px; }
.header-bar-links a:hover{ color: #FFF; }

.header-nav{
  background: rgba(255,255,255,0.98);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--grey-50);
}
.header-nav-inner{
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}
.brand{ display: flex; align-items: center; flex: none; }
.brand img{ height: 40px; width: auto; }

.main-nav{ display: flex; align-items: center; gap: 4px; }
.main-nav a{
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #555;
  padding: 10px 13px;
  border-bottom: 2px solid transparent;
  transition: color .2s;
}
.main-nav a:hover{ color: #000; border-bottom-color: var(--accent); }
.main-nav a.is-active{ color: #000; font-weight: 800; border-bottom-color: var(--accent); }

.menu-toggle{
  background: none;
  border: 1.5px solid #111;
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  color: #111;
}

.mobile-nav{
  background: #FFF;
  border-bottom: 1px solid var(--grey-50);
  display: flex;
  flex-direction: column;
  padding: 8px 28px 22px;
  gap: 2px;
}
.mobile-nav a{
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #111;
  padding: 13px 0;
  border-bottom: 1px solid #F0F0F0;
}
.mobile-nav a.is-active{ color: var(--accent); }

/* ===================================================================
   Image slots (placeholder photography)
   =================================================================== */

.img-slot{
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background:
    linear-gradient(135deg, #1c1c1c 0%, #111 55%, #1c1c1c 100%);
  display: flex;
  align-items: flex-end;
  color: rgba(255,255,255,0.55);
}
.img-slot::before{
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.035) 0 2px, transparent 2px 14px);
}
.img-slot__label{
  position: relative;
  margin: 0;
  padding: 16px 18px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.4px;
  line-height: 1.5;
  text-transform: none;
}
.img-slot img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===================================================================
   Hero (home)
   =================================================================== */

.hero{
  position: relative;
  min-height: 88vh;
  background: #000;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-media{
  position: absolute; inset: 0;
  animation: heroZoom 2.4s ease-out both;
}
.hero-slide{
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero-slide.is-active{ opacity: 1; }
.hero-gradient{
  position: absolute; inset: 0;
  background: linear-gradient(to top, #000 0%, rgba(0,0,0,0.72) 34%, rgba(0,0,0,0.22) 72%, rgba(0,0,0,0.5) 100%);
  pointer-events: none;
}
.hero-overlay{
  position: absolute; inset: 0;
  background: #000;
  opacity: var(--hero-overlay, 0.35);
  pointer-events: none;
  mix-blend-mode: multiply;
  transition: opacity 1.4s ease;
}
.hero-content{
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 200px 28px 96px;
  width: 100%;
  pointer-events: none;
}
.hero-content-inner{ pointer-events: auto; max-width: 760px; }
.hero-content-inner .eyebrow{ color: #FFF; }
.hero-content-inner p.lede{
  margin: 0 0 36px;
  color: rgba(255,255,255,0.85);
  font-size: clamp(15px,1.4vw,17.5px);
  font-weight: 400;
  line-height: 1.7;
  max-width: 600px;
  text-wrap: pretty;
}
.hero-ctas{ display: flex; flex-wrap: wrap; gap: 14px; }

/* ===================================================================
   Stats strip
   =================================================================== */

.stats{ background: #111; }
.stats-grid{
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px,1fr));
}
.stat{ padding: 36px 28px; border-left: 1px solid #222; }
.stat-num{ color: #FFF; font-size: 38px; font-weight: 800; letter-spacing: -1px; }
.stat-num .suffix{ color: var(--accent); }
.stat-label{ color: #999; font-size: 11.5px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; margin-top: 8px; }

/* ===================================================================
   Grids / generic content blocks
   =================================================================== */

.split{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px,1fr));
  gap: 56px;
  align-items: start;
}
.split-head{ max-width: 640px; }

.row-head{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 56px;
}

.prose p{ margin: 0 0 18px; font-size: 16px; line-height: 1.8; color: #333; text-align: justify; text-wrap: pretty; }
.prose p:last-child{ margin-bottom: 0; }
.prose--light p{ color: #333; }

/* Pillars */
.pillars-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  border-top: 1px solid var(--grey-800);
  border-left: 1px solid var(--grey-800);
}
.pillar-short{
  padding: 30px 28px;
  border-right: 1px solid var(--grey-800);
  border-bottom: 1px solid var(--grey-800);
  display: flex;
  gap: 16px;
  align-items: baseline;
  transition: background .3s;
}
.pillar-short:hover{ background: var(--grey-900); }
.pillar-short .num{ font-size: 12px; font-weight: 800; color: var(--accent); letter-spacing: 1px; flex: none; }
.pillar-short .title{ font-size: 15.5px; font-weight: 600; color: #FFF; line-height: 1.4; }

.pillars-grid--full{
  grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
}
.pillar-full{
  padding: 36px 32px;
  border-right: 1px solid var(--grey-800);
  border-bottom: 1px solid var(--grey-800);
  transition: background .3s;
}
.pillar-full:hover{ background: var(--grey-900); }
.pillar-full .num{ font-size: 13px; font-weight: 800; color: var(--accent); letter-spacing: 2px; margin-bottom: 14px; }
.pillar-full h3{ margin: 0 0 10px; font-size: 17.5px; font-weight: 700; color: #FFF; line-height: 1.35; }
.pillar-full p{ margin: 0; font-size: 13.5px; line-height: 1.7; color: #999; text-wrap: pretty; }

/* Programs (home cards) */
.programs-grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 26px; }
.program-card{
  background: #111; color: #FFF;
  display: flex; flex-direction: column;
  transition: transform .3s, box-shadow .3s;
}
.program-card:hover{ transform: translateY(-6px); box-shadow: 0 22px 48px rgba(0,0,0,0.22); }
.program-card .media{ height: 200px; flex: none; }
.program-card .body{ padding: 32px 28px 36px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.program-card .tagline{ margin: 0; font-size: 10.5px; font-weight: 800; letter-spacing: 2.5px; text-transform: uppercase; color: var(--accent); }
.program-card h3{ margin: 0; font-size: 21px; font-weight: 800; letter-spacing: -0.3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.program-card p{ margin: 0; font-size: 14px; line-height: 1.7; color: #BBB; text-wrap: pretty; }
.program-card .body > p:last-of-type{ display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Partners strip (home) */
.partners-grid{
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px,1fr));
  border-top: 1px solid var(--grey-100); border-left: 1px solid var(--grey-100);
}
.partner-tile{
  background: var(--off-white);
  border-right: 1px solid var(--grey-100); border-bottom: 1px solid var(--grey-100);
  height: 96px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 18px;
  opacity: 0.75;
  transition: opacity .3s, background .3s;
}
.partner-tile:hover{ opacity: 1; background: #FFF; }
.partner-tile span{ font-size: 15px; font-weight: 800; letter-spacing: 0.5px; color: #111; text-align: center; line-height: 1.35; }

.partners-grid--full{ grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); border-color: var(--grey-100); }
.partner-tile--full{
  background: #FFF;
  min-height: 120px;
  flex-direction: column; gap: 6px;
  padding: 22px 20px;
  opacity: 0.85;
}
.partner-tile--full:hover{ opacity: 1; background: #FAFAFA; }
.partner-tile--full .name{ font-size: 16px; font-weight: 800; letter-spacing: 0.5px; color: #111; text-align: center; line-height: 1.3; }
.partner-tile--full .sub{ font-size: 11.5px; font-weight: 500; color: #888; text-align: center; line-height: 1.5; }

/* Caixa retangular uniforme para todos os logótipos de parceiros,
   independentemente das dimensões originais da imagem enviada. */
.partner-logo-box{
  width: 100%;
  max-width: 168px;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}
.partner-logo-box img{
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Carrossel contínuo de parceiros (página inicial) */
.partners-marquee{
  overflow: hidden;
  border-top: 1px solid var(--grey-100);
  border-bottom: 1px solid var(--grey-100);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
}
.partners-marquee-track{
  display: flex;
  width: max-content;
  animation: partners-marquee 32s linear infinite;
}
.partners-marquee:hover .partners-marquee-track{ animation-play-state: paused; }
.marquee-tile{
  flex: none;
  width: 200px;
  border-right: 1px solid var(--grey-100);
}
@keyframes partners-marquee{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce){
  .partners-marquee-track{ animation: none; }
}

/* CTA band */
.cta-band{ background: #000; padding: 110px 0; text-align: center; }
.cta-band-inner{ max-width: 760px; margin: 0 auto; }
.cta-band h2{ margin: 0 0 24px; font-size: clamp(24px,2.6vw,32px); font-weight: 800; line-height: 1.12; letter-spacing: -1px; color: #FFF; text-wrap: balance; }
.cta-band p{ margin: 0 0 38px; font-size: 16.5px; line-height: 1.8; color: #AAA; text-wrap: pretty; }
.cta-band .hero-ctas{ justify-content: center; }

/* Mission / vision / values */
.mvv-grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 24px; margin-top: 80px; }
.mvv-card{ background: var(--off-white); padding: 40px 34px; border-top: 3px solid #111; }
.mvv-card .kicker{ margin: 0 0 14px; font-size: 11.5px; font-weight: 800; letter-spacing: 3px; text-transform: uppercase; color: var(--accent); }
.mvv-card p.body-text{ margin: 0; font-size: 15.5px; line-height: 1.8; color: #222; }
.mvv-card--dark{ background: #111; border-top-color: var(--accent); }
.mvv-card--dark p.body-text{ color: #FFF; font-size: 17px; line-height: 2.2; font-weight: 600; letter-spacing: 0.5px; }

/* Timeline */
.timeline{ display: flex; flex-direction: column; border-left: 2px solid #DDD; margin-left: 8px; }
.timeline-item{ position: relative; padding: 0 0 42px 40px; }
.timeline-item::before{
  content: '';
  position: absolute; left: -8px; top: 4px;
  width: 14px; height: 14px; background: #111; border: 3px solid var(--off-white); border-radius: 50%;
}
.timeline-item .year{ margin: 0 0 6px; font-size: 13px; font-weight: 800; letter-spacing: 2px; color: var(--accent); }
.timeline-item h3{ margin: 0 0 8px; font-size: 18px; font-weight: 700; color: #111; }
.timeline-item p{ margin: 0; font-size: 15px; line-height: 1.7; color: #555; max-width: 660px; text-wrap: pretty; }

/* Team */
.team-grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 30px; }
.team-card{ display: flex; flex-direction: column; gap: 14px; }
.team-card .media{ width: 100%; aspect-ratio: 1/1; }
.team-card h3{ margin: 0 0 4px; font-size: 16px; font-weight: 700; color: #111; }
.team-card .role{ margin: 0; font-size: 11.5px; font-weight: 600; letter-spacing: 1.3px; text-transform: uppercase; color: #888; }

/* Differentials */
.differentials-grid{
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
  gap: 1px; background: var(--grey-800); border: 1px solid var(--grey-800);
}
.differential{ background: #111; padding: 28px 26px; transition: background .3s; }
.differential:hover{ background: var(--grey-900); }
.differential p.title{ margin: 0 0 8px; font-size: 15px; font-weight: 700; color: #FFF; line-height: 1.4; }
.differential p.desc{ margin: 0; font-size: 13.5px; line-height: 1.65; color: #999; }

/* Eixos (atuação) */
.eixos-grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 18px; }
.eixo-card{
  background: #FFF; padding: 32px 30px;
  display: flex; flex-direction: column; gap: 12px;
  border: 1px solid var(--grey-50);
  transition: border-color .3s, transform .3s;
}
.eixo-card:hover{ border-color: #111; transform: translateY(-3px); }
.eixo-card .num{ font-size: 26px; font-weight: 800; color: var(--grey-100); letter-spacing: -1px; line-height: 1; }
.eixo-card .title{ font-size: 16.5px; font-weight: 700; color: #111; line-height: 1.4; }
.eixo-card .desc{ font-size: 14px; font-weight: 400; color: #666; line-height: 1.7; text-wrap: pretty; }

/* Beneficiaries */
.beneficiaries-grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 14px; }
.beneficiary{ background: var(--off-white); padding: 22px 24px; display: flex; gap: 14px; align-items: flex-start; }
.beneficiary::before{ content: ''; width: 8px; height: 8px; background: var(--accent); flex: none; margin-top: 7px; }
.beneficiary span{ font-size: 14.5px; font-weight: 600; color: #222; line-height: 1.55; }

/* Programs full (programas page) */
.programs-full{ display: flex; flex-direction: column; gap: 70px; }
.program-full{
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px,1fr));
  gap: 48px; align-items: center;
  border-bottom: 1px solid #EEE; padding-bottom: 70px;
}
.program-full .media{ height: 320px; }
.program-full .tagline{ margin: 0 0 12px; font-size: 11px; font-weight: 800; letter-spacing: 2.5px; text-transform: uppercase; color: var(--accent); }
.program-full h2{ margin: 0 0 18px; font-size: clamp(20px,2vw,25px); font-weight: 800; letter-spacing: -0.6px; color: #111; }
.program-full p.long{ margin: 0 0 22px; font-size: 15.5px; line-height: 1.8; color: #444; text-align: justify; text-wrap: pretty; }
.program-points{ display: flex; flex-direction: column; gap: 10px; }
.program-points .point{ display: flex; gap: 12px; align-items: flex-start; }
.program-points .point::before{ content: ''; width: 7px; height: 7px; background: #111; flex: none; margin-top: 8px; }
.program-points .point span{ font-size: 14.5px; line-height: 1.65; color: #333; }

/* Services */
.services-grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 14px; }
.service-card{ background: #FFF; padding: 26px 26px; border: 1px solid var(--grey-50); }
.service-card .title{ margin: 0 0 8px; font-size: 14.5px; font-weight: 700; color: #111; }
.service-card .desc{ margin: 0; font-size: 13.5px; line-height: 1.65; color: #666; }

/* Projects */
.projects-grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 26px; }
.project-card{ border: 1px solid var(--grey-50); display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.project-card:hover{ transform: translateY(-6px); box-shadow: 0 22px 48px rgba(0,0,0,0.12); }
.project-card .media{ height: 200px; flex: none; }
.project-card .body{ padding: 28px 26px 32px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.project-card .tag{ margin: 0; font-size: 10.5px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: #888; }
.project-card h3{ margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -0.3px; color: #111; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.project-card p.desc{ margin: 0; font-size: 14px; line-height: 1.7; color: #555; text-wrap: pretty; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.project-card .period{ margin: auto 0 0; padding-top: 12px; font-size: 11.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); }

/* History table */
.history-list{ display: flex; flex-direction: column; background: #FFF; border: 1px solid #E5E5E5; }
.history-row{
  display: grid; grid-template-columns: 64px 200px 1fr; gap: 20px; align-items: start;
  padding: 20px 26px; border-bottom: 1px solid #F0F0F0; transition: background .2s;
}
.history-row:last-child{ border-bottom: none; }
.history-row:hover{ background: #FAFAFA; }
.history-row .year{ font-size: 12px; font-weight: 800; color: var(--accent); letter-spacing: 1px; padding-top: 2px; }
.history-row .donor{ font-size: 13px; font-weight: 700; color: #111; line-height: 1.5; }
.history-row .desc{ font-size: 13.5px; color: #555; line-height: 1.65; }

@media (max-width: 700px){
  .history-row{ grid-template-columns: 1fr; gap: 6px; }
}

/* News */
.news-grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 26px; }
.news-card{ border: 1px solid var(--grey-50); display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.news-card:hover{ transform: translateY(-6px); box-shadow: 0 22px 48px rgba(0,0,0,0.12); }
.news-card .media{ height: 210px; flex: none; }
.news-card .body{ padding: 28px 26px 32px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.news-card .date{ margin: 0; font-size: 11px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); }
.news-card h3{ margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -0.2px; color: #111; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card p.desc{ margin: 0; font-size: 14px; line-height: 1.75; color: #555; text-wrap: pretty; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Gallery */
.albums-grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 26px; }
.album-card{
  display: flex; flex-direction: column; gap: 14px;
  background: #FFF; border: 1px solid var(--grey-50);
  padding: 16px 16px 20px;
  transition: transform .3s, box-shadow .3s;
  cursor: pointer;
}
.album-card:hover{ transform: translateY(-6px); box-shadow: 0 22px 48px rgba(0,0,0,0.12); }
.album-card .media{ width: 100%; aspect-ratio: 4/3; overflow: hidden; }
.album-card h3{ margin: 0 0 6px; font-size: 17px; font-weight: 700; color: #111; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.album-card p{ margin: 0; font-size: 13px; line-height: 1.6; color: #777; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.album-back{
  background: none; border: 1.5px solid #111; color: #111;
  font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 12px 24px; font-family: var(--font); cursor: pointer;
  margin-bottom: 36px; transition: all .25s;
}
.album-back:hover{ background: #111; color: #FFF; }
.album-title{ margin: 0 0 10px; font-size: clamp(28px,3.4vw,44px); font-weight: 800; letter-spacing: -0.8px; color: #111; line-height: 1.15; }
.album-desc{ margin: 0 0 48px; font-size: 15.5px; color: #777; line-height: 1.6; }
.album-photos{ display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 20px; }
.album-photos .media{ width: 100%; aspect-ratio: 4/3; overflow: hidden; }

/* Contact */
.contact-grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(320px,1fr)); gap: 64px; align-items: start; }
.contact-info h2{ margin: 0 0 34px; font-size: clamp(20px,2vw,25px); font-weight: 800; letter-spacing: -0.6px; color: #111; }
.contact-fields{ display: flex; flex-direction: column; gap: 28px; }
.contact-fields .label{ margin: 0 0 8px; font-size: 11px; font-weight: 800; letter-spacing: 2.5px; text-transform: uppercase; color: #999; }
.contact-fields p.value{ margin: 0; font-size: 15.5px; line-height: 1.8; color: #333; }

.contact-form-card{ background: var(--off-white); padding: 44px 40px; }
.contact-form-card h3{ margin: 0 0 8px; font-size: 20px; font-weight: 800; color: #111; }
.contact-form-card > p{ margin: 0 0 28px; font-size: 14px; color: #666; line-height: 1.6; }
.contact-form{ display: flex; flex-direction: column; gap: 14px; }
.contact-form input, .contact-form textarea{
  background: #FFF; border: 1px solid #DDD; color: #111;
  padding: 15px 16px; font-size: 14px; font-family: var(--font); outline: none;
}
.contact-form input:focus, .contact-form textarea:focus{ border: 1px solid #111; }
.contact-form textarea{ resize: vertical; }
.contact-form button{
  background: #111; color: #FFF; border: none; padding: 16px 22px;
  font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  cursor: pointer; transition: background .25s;
}
.contact-form button:hover{ background: var(--accent); }
.contact-form button:disabled{ cursor: default; }

/* ===================================================================
   Footer
   =================================================================== */

.site-footer{ background: var(--near-black); }
.footer-inner{ max-width: var(--max-width); margin: 0 auto; padding: 80px 28px 0; }
.footer-grid{
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap: 52px; padding-bottom: 64px; border-bottom: 1px solid #1E1E1E;
}
.footer-brand img{ height: 52px; width: auto; margin-bottom: 24px; }
.footer-brand p.desc{ margin: 0 0 24px; font-size: 13.5px; line-height: 1.8; color: #888; text-wrap: pretty; max-width: 300px; }
.footer-brand p.legal{ margin: 0; font-size: 11.5px; line-height: 1.7; color: #555; }

.footer-col-title{ margin: 0 0 20px; font-size: 11px; font-weight: 800; letter-spacing: 2.5px; text-transform: uppercase; color: #666; }
.footer-nav{ display: flex; flex-direction: column; gap: 12px; }
.footer-nav a{ font-size: 13.5px; font-weight: 500; color: #AAA; transition: color .2s; }
.footer-nav a:hover{ color: #FFF; }

.footer-contacts{ display: flex; flex-direction: column; gap: 12px; }
.footer-contacts p, .footer-contacts a{ margin: 0; font-size: 13.5px; line-height: 1.7; color: #AAA; }
.footer-contacts a:hover{ color: #FFF; }

.footer-newsletter p{ margin: 0 0 18px; font-size: 13.5px; line-height: 1.7; color: #888; }
.newsletter-form{ display: flex; margin-bottom: 26px; }
.newsletter-form input{
  flex: 1; min-width: 0; background: #161616; border: 1px solid #2A2A2A; color: #FFF;
  padding: 13px 15px; font-size: 13px; font-family: var(--font); outline: none;
}
.newsletter-form input:focus{ border: 1px solid var(--accent); }
.newsletter-form button{
  background: #FFF; color: #111; border: none; padding: 13px 18px;
  font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  font-family: var(--font); cursor: pointer; transition: background .25s;
}
.newsletter-form button:hover{ background: var(--accent); color: #FFF; }
.footer-social{ display: flex; gap: 18px; }
.footer-social a{ color: #777; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.footer-social a:hover{ color: #FFF; }

.footer-bottom{
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px; padding: 26px 0;
}
.footer-bottom p{ margin: 0; font-size: 12px; color: #666; }

/* ===================================================================
   Utility / page visibility
   =================================================================== */

.page{ display: none; }
.page.is-active{ display: block; }

.js-album-list{ display: none; }
.js-album-list.is-active{ display: block; }
.js-album-detail{ display: none; }
.js-album-detail.is-active{ display: block; }

@media (max-width: 1119px){
  .main-nav{ display: none; }
}
@media (min-width: 1120px){
  .menu-toggle, .mobile-nav{ display: none; }
}
