/* ===== Enactus Dalhousie — Modern Brochure Site ===== */
:root {
  --yellow: #ffc220;
  --yellow-dark: #e3a800;
  --blue: #88a7c3;
  --blue-tint: #eaf0f6;
  --black: #14161a;
  --ink: #2b2f36;
  --grey: #5c636e;
  --line: #e7e9ee;
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow: 0 10px 30px rgba(20, 22, 26, 0.08);
  --shadow-lg: 0 20px 50px rgba(20, 22, 26, 0.14);
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--black); line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--soft { background: var(--bg-soft); }
.center { text-align: center; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--grey);
  padding: 6px 14px; border-radius: 4px;
  background: var(--blue-tint); margin-bottom: 18px;
}
.eyebrow--yellow { background: rgba(255,194,32,0.18); color: var(--yellow-dark); }

.section-title { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 16px; }
.section-lead { font-size: 1.1rem; color: var(--grey); max-width: 640px; }
.center .section-lead { margin-left: auto; margin-right: auto; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 0.98rem;
  padding: 13px 26px; border-radius: 4px;
  border: 2px solid transparent; cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--yellow); color: var(--black); box-shadow: 0 8px 20px rgba(255,194,32,0.4); }
.btn--primary:hover { background: var(--yellow-dark); }
.btn--dark { background: var(--black); color: #fff; }
.btn--dark:hover { background: #000; box-shadow: var(--shadow); }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--black); }
.btn--ghost:hover { border-color: var(--black); }
.btn--light { background: #fff; color: var(--black); }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 88px; }
.nav__logo img { height: 60px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav__links a {
  font-weight: 600; font-size: 0.95rem; color: var(--ink);
  padding: 9px 14px; border-radius: 4px; transition: background 0.2s, color 0.2s;
}
.nav__links a:hover { background: var(--bg-soft); color: var(--black); }
.nav__links a.active { color: var(--black); background: rgba(255,194,32,0.2); }
.nav__cta { margin-left: 10px; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--black); border-radius: 2px; transition: 0.3s; }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  padding: 96px 0 80px;
  background:
    radial-gradient(circle at 88% 12%, rgba(255,194,32,0.18), transparent 42%),
    radial-gradient(circle at 6% 88%, rgba(136,167,195,0.18), transparent 40%),
    var(--bg);
}
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); margin-bottom: 22px; }
.hero h1 .hl { color: var(--yellow-dark); }
.hero p { font-size: 1.18rem; color: var(--grey); max-width: 520px; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__art {
  position: relative; border-radius: 24px; overflow: hidden;
  aspect-ratio: 5/4; box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--yellow), var(--blue));
}
.hero__art img { width: 100%; height: 100%; object-fit: cover; }

/* ===== Stat band ===== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 24px; text-align: center; transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.stat:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.stat__num { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: var(--black); letter-spacing: -0.03em; }
.stat__num span { color: var(--yellow-dark); }
.stat__label { font-size: 0.95rem; color: var(--grey); margin-top: 6px; }

/* ===== Generic card grid ===== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }

/* ===== Project cards ===== */
.pcard {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pcard__media {
  height: 170px; display: flex; align-items: center; justify-content: center;
  padding: 28px; background: var(--bg-soft); border-bottom: 1px solid var(--line);
}
.pcard__media img { max-height: 100%; width: auto; object-fit: contain; }
.pcard__body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.pcard__tag { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--yellow-dark); margin-bottom: 10px; }
.pcard h3 { font-size: 1.35rem; margin-bottom: 10px; }
.pcard p { color: var(--grey); font-size: 0.98rem; margin-bottom: 18px; flex: 1; }
.pcard__link { font-weight: 700; color: var(--black); display: inline-flex; align-items: center; gap: 6px; }
.pcard__link .arrow { transition: transform 0.25s var(--ease); }
.pcard:hover .pcard__link .arrow { transform: translateX(4px); }

/* ===== Team ===== */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 24px; }
.member { text-align: center; }
.member__photo {
  width: 150px; height: 150px; border-radius: 50%; object-fit: cover; object-position: top;
  margin: 0 auto 16px; border: 4px solid #fff;
  box-shadow: 0 8px 22px rgba(20,22,26,0.12);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.member:hover .member__photo { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(255,194,32,0.35); }
.member__name { font-size: 1.05rem; font-weight: 800; color: var(--black); }
.member__role { font-size: 0.9rem; color: var(--grey); margin: 4px 0 8px; min-height: 2.2em; }
.member__li {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 4px;
  background: var(--blue-tint); color: var(--ink); transition: 0.2s;
}
.member__li:hover { background: var(--blue); color: #fff; }
.member__li svg { width: 16px; height: 16px; }

.copres { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; max-width: 760px; margin: 0 auto; }
.copres .member__photo { width: 180px; height: 180px; }
.copres .member__role { font-weight: 700; color: var(--yellow-dark); }

/* ===== SDG / pill list ===== */
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  font-size: 0.88rem; font-weight: 600; padding: 8px 16px; border-radius: 4px;
  background: var(--blue-tint); color: var(--ink);
}
.pill--yellow { background: rgba(255,194,32,0.2); color: var(--yellow-dark); }

/* ===== Feature split ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--rev .split__media { order: 2; }
.split__media {
  border-radius: 20px; overflow: hidden; box-shadow: var(--shadow);
  background: var(--bg-soft); aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center; padding: 40px;
}
.split__media img { max-height: 100%; width: auto; object-fit: contain; }

/* ===== CTA band ===== */
.cta-band {
  background: linear-gradient(120deg, var(--black), #23272f);
  border-radius: 6px; padding: 64px 48px; text-align: center; color: #fff;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,194,32,0.25), transparent 45%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,0.8); max-width: 560px; margin: 0 auto 28px; font-size: 1.1rem; }
.cta-band .hero__actions { justify-content: center; }

/* ===== Impact metric list (project pages) ===== */
.metric-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.metric {
  background: var(--bg-soft); border-radius: var(--radius); padding: 26px 22px;
  border-left: 4px solid var(--yellow);
}
.metric__num { font-size: 1.9rem; font-weight: 800; color: var(--black); }
.metric__label { font-size: 0.9rem; color: var(--grey); margin-top: 4px; }

/* ===== Project detail block ===== */
.proj-detail { scroll-margin-top: 100px; }
.proj-detail + .proj-detail { margin-top: 80px; padding-top: 80px; border-top: 1px solid var(--line); }
.proj-head { display: flex; align-items: center; gap: 22px; margin-bottom: 24px; flex-wrap: wrap; }
.proj-head__logo {
  width: 90px; height: 90px; border-radius: var(--radius-sm); padding: 12px;
  background: #fff; border: 1px solid var(--line); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.proj-head__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.proj-head h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
.proj-head .since { color: var(--grey); font-size: 0.95rem; }

/* ===== Updates ===== */
.update-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.update-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.update-card img { width: 100%; aspect-ratio: 4/5; object-fit: cover; background: var(--bg-soft); }
.update-card__body { padding: 22px 24px; }
.update-card__date { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--yellow-dark); }
.update-card h3 { font-size: 1.2rem; margin: 6px 0; }
.update-card p { color: var(--grey); font-size: 0.95rem; }

/* ===== Page hero (sub pages) ===== */
.page-hero {
  padding: 72px 0 48px;
  background:
    radial-gradient(circle at 90% 10%, rgba(255,194,32,0.16), transparent 40%),
    var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 14px; }
.page-hero p { font-size: 1.15rem; color: var(--grey); max-width: 620px; }

/* ===== Communities / SDG cards ===== */
.tag-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tag-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 20px 22px; font-weight: 600; display: flex; align-items: center; gap: 12px;
}
.tag-card .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); flex-shrink: 0; }

/* ===== Get involved steps ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; }
.step__n {
  width: 44px; height: 44px; border-radius: 4px; background: var(--yellow);
  color: var(--black); font-weight: 800; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: var(--grey); font-size: 0.97rem; }

/* ===== Partner tiers ===== */
.tier {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.tier:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.tier--featured { border: 2px solid var(--yellow); position: relative; }
.tier--featured::after {
  content: "Most impact"; position: absolute; top: -13px; left: 28px;
  background: var(--yellow); color: var(--black); font-size: 0.75rem; font-weight: 700;
  padding: 4px 12px; border-radius: 100px; letter-spacing: 0.05em;
}
.tier h3 { font-size: 1.4rem; margin-bottom: 6px; }
.tier ul { list-style: none; margin-top: 16px; }
.tier li { padding: 8px 0 8px 28px; position: relative; color: var(--ink); border-top: 1px solid var(--line); }
.tier li:first-child { border-top: 0; }
.tier li::before { content: "✓"; position: absolute; left: 0; color: var(--yellow-dark); font-weight: 800; }

/* ===== Footer ===== */
.footer { background: var(--black); color: rgba(255,255,255,0.75); padding: 64px 0 32px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 44px; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; letter-spacing: 0; }
.footer__brand img { height: 40px; filter: brightness(0) invert(1); margin-bottom: 16px; }
.footer__brand p { font-size: 0.95rem; max-width: 280px; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 10px; }
.footer a:hover { color: var(--yellow); }
.footer__social { display: flex; gap: 12px; margin-top: 8px; }
.footer__social a {
  width: 40px; height: 40px; border-radius: 4px; background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center; transition: 0.2s;
}
.footer__social a:hover { background: var(--yellow); color: var(--black); transform: translateY(-3px); }
.footer__social svg { width: 18px; height: 18px; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.12); padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.88rem; color: rgba(255,255,255,0.55);
}

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero__grid, .split, .split--rev .split__media { grid-template-columns: 1fr; order: 0; }
  .hero__art { order: -1; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .steps, .tag-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .metric-row { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .section { padding: 60px 0; }
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav.open .nav__links {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 88px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 20px 24px; gap: 6px; box-shadow: var(--shadow);
  }
  .nav.open .nav__links a { padding: 13px 14px; }
  .nav.open .nav__links a.active { padding: 7px 12px; font-size: 0.88rem; }
  .nav__cta { display: none; }
  .grid-3, .grid-2, .steps, .tag-grid, .copres { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-band { padding: 44px 24px; }
}
@media (max-width: 460px) {
  .stats, .metric-row, .team-grid { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
}

/* ===== Hero full-bleed background variant ===== */
.hero--bg {
  position: relative; overflow: hidden;
  padding: 160px 0 140px; min-height: 700px;
  display: flex; align-items: center;
  background: none;
}
.hero--bg::before {
  content: none;
}
.hero--bg .hero__bg-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center; z-index: -1;
}
.hero--bg .container { position: relative; z-index: 1; }
.hero--bg h1 { color: var(--black); }
.hero--bg h1 .hl { color: var(--yellow-dark); }
.hero--bg p { color: var(--ink); }
.hero--bg .btn--ghost { border-color: var(--line); color: var(--black); }
.hero--bg .btn--ghost:hover { border-color: var(--black); background: rgba(0,0,0,0.05); }

/* ===== Achievement banner ===== */
.achievement-banner {
  display: grid; grid-template-columns: auto 1fr; gap: 0;
  border: 2px solid var(--yellow); border-radius: var(--radius);
  overflow: hidden; background: #fff; box-shadow: var(--shadow);
}
.achievement-banner__img {
  width: 320px; flex-shrink: 0; padding: 24px; background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
}
.achievement-banner__img img {
  width: 100%; height: auto; object-fit: contain; display: block;
  border-radius: 4px;
}
.achievement-banner__body {
  padding: 40px 44px; display: flex; flex-direction: column; justify-content: center;
}
.achievement-banner__badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--yellow); color: var(--black);
  font-weight: 800; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 8px 16px; border-radius: 4px; margin-bottom: 20px; width: fit-content;
}
.achievement-banner__badge svg { width: 18px; height: 18px; flex-shrink: 0; }
.achievement-banner__body h3 { font-size: 1.7rem; margin-bottom: 10px; }
.achievement-banner__body p { color: var(--grey); margin-bottom: 20px; font-size: 1rem; }

@media (max-width: 820px) {
  .achievement-banner { grid-template-columns: 1fr; }
  .achievement-banner__img { width: 100%; height: auto; padding: 24px; }
  .achievement-banner__body { padding: 28px 28px; }
}

/* ===== Partnership tiers grid ===== */
.tiers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.tier { border-radius: var(--radius); }
.tier--diamond { border: 2px solid var(--yellow); }
.tier--platinum { border: 2px solid #c0c0c0; }
.tier--gold { border: 2px solid #d4a017; }
.tier--silver { border: 2px solid #a8a9ad; }
.tier__badge {
  display: inline-block; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 5px 12px; border-radius: 4px; margin-bottom: 12px;
}
.tier--diamond .tier__badge { background: var(--yellow); color: var(--black); }
.tier--platinum .tier__badge { background: #e8e8e8; color: #444; }
.tier--gold .tier__badge { background: #fdf2d0; color: #8a6800; }
.tier--silver .tier__badge { background: #f0f0f0; color: #555; }
.tier__price { font-size: 2rem; font-weight: 800; color: var(--black); margin-bottom: 8px; }
.tier__desc { color: var(--grey); font-size: 0.92rem; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }

@media (max-width: 980px) {
  .tiers-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .tiers-grid { grid-template-columns: 1fr; }
}

/* ===== Co-pres contact buttons ===== */
.contact-pres { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 36px; }
.contact-card {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 24px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; min-width: 280px;
}
.contact-card__photo { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: top; flex-shrink: 0; }
.contact-card__name { font-weight: 800; font-size: 1rem; color: var(--black); }
.contact-card__role { font-size: 0.85rem; color: var(--grey); }
.contact-card__btn { margin-left: auto; }
