/* =====================================================
   ASEM Canada - Site Styles
   ===================================================== */

:root {
  --black: #000000;
  --cream: #F1E4CF;
  --cream-soft: #F8EFDF;
  --crimson: #B31939;
  --crimson-dark: #911330;
  --ink: #100F0D;
  --ink-soft: #3a3733;
  --white: #FFFFFF;
  --line: rgba(16, 15, 13, 0.08);
  --line-strong: rgba(16, 15, 13, 0.15);

  --font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --track: -0.02em;

  --w-max: 1200px;
  --pad-x: 24px;
  --pad-y: 96px;
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: var(--track);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--crimson); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-weight: 500;
  letter-spacing: var(--track);
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 5.5vw, 3.75rem); line-height: 1.1; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.35rem; font-weight: 600; }
h4 { font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }

p { margin: 0 0 1em; }

.container {
  max-width: var(--w-max);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
  width: 100%;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--crimson);
  margin: 0 0 1em;
}
.eyebrow-light { color: var(--cream); }

.lede { font-size: 1.2rem; line-height: 1.55; color: var(--ink-soft); }

.section { padding: var(--pad-y) 0; }
.section-cream { background: var(--cream-soft); }
.section-dark { background: var(--ink); color: var(--cream); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: var(--cream); }
.section-dark p { color: var(--cream); }
.section-dark a { color: var(--cream); text-decoration: underline; }
.section-dark .eyebrow { color: var(--cream); opacity: 0.75; }

.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head p.section-lede {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--crimson); color: var(--white); border-color: var(--crimson); }
.btn-primary:hover { background: var(--crimson-dark); border-color: var(--crimson-dark); color: var(--white); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--white); }
.section-dark .btn-secondary { color: var(--cream); border-color: var(--cream); }
.section-dark .btn-secondary:hover { background: var(--cream); color: var(--ink); }
.btn-sm { padding: 10px 18px; font-size: 0.85rem; }

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--w-max);
  margin: 0 auto;
  padding: 14px var(--pad-x);
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.nav-logo:hover { text-decoration: none; }
.nav-mark { height: 40px; width: auto; }
.nav-wordmark { height: 24px; width: auto; display: block; }
.nav-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 32px; margin-left: auto; }
.nav-links a {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.15s;
}
.nav-links a:hover { border-color: var(--crimson); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; margin-left: auto; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform 0.2s; }

/* HERO */
.hero { padding: 32px 0 80px; background: linear-gradient(180deg, var(--white) 0%, var(--cream-soft) 100%); }
.hero-inner {
  max-width: var(--w-max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.hero-copy { max-width: 540px; }
.hero-copy h1 { margin: 12px 0 20px; }
.hero-copy .lede { margin-bottom: 32px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-image { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.25); }
.hero-image img { aspect-ratio: 3/4; object-fit: cover; width: 100%; }

/* TWO-COLUMN */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.two-col-reverse { direction: rtl; }
.two-col-reverse > * { direction: ltr; }
.two-col-text { max-width: 500px; }
.two-col-text h2 { margin-bottom: 20px; }
.two-col-image { margin: 0; border-radius: var(--radius); overflow: hidden; }
.two-col-image img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.barbara-image img { aspect-ratio: 3/4; object-fit: cover; object-position: center top; max-width: 360px; margin-left: auto; }
.chair-image img { aspect-ratio: 3/4; object-fit: cover; object-position: center top; max-width: 360px; margin-right: auto; }

/* Portrait sections — narrower image column so photos don't dominate */
#about .two-col,
#chair .two-col {
  grid-template-columns: 0.75fr 1.25fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 900px) {
  #about .two-col, #chair .two-col { grid-template-columns: 1fr; gap: 32px; }
  .barbara-image img, .chair-image img { max-width: 320px; margin: 0 auto; }
}

/* PILLARS */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.pillar { padding: 0; }
.pillar-icon { width: 56px; height: 56px; color: var(--crimson); margin-bottom: 20px; }
.pillar-icon svg { width: 100%; height: 100%; }
.pillar h3 { margin-bottom: 12px; }
.pillar p { color: var(--ink-soft); font-size: 0.98rem; }

/* PLACES */
.places { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.place { background: var(--white); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); }
.place-img { aspect-ratio: 4/3; overflow: hidden; }
.place-img img { width: 100%; height: 100%; object-fit: cover; }
.place-body { padding: 28px; flex: 1; }
.place-body h3 { margin-bottom: 4px; }
.place-meta { font-size: 0.8rem; color: var(--crimson); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 12px; }
.place-body p:last-child { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }

/* FACES */
.section-faces { padding: 0; background: var(--ink); }
.faces-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px; background: var(--ink); }
.face { margin: 0; aspect-ratio: 1/1; overflow: hidden; background: var(--ink); }
.face img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease, filter 0.4s ease; filter: contrast(1.08) saturate(1.15); }
.face:hover img { transform: scale(1.04); filter: contrast(1.12) saturate(1.25); }

/* STATS */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; text-align: center; margin-bottom: 40px; }
.stat-num { font-size: clamp(2.5rem, 4.5vw, 3.5rem); font-weight: 500; line-height: 1; color: var(--cream); margin-bottom: 8px; letter-spacing: -0.03em; }
.stat-label { font-size: 0.9rem; color: var(--cream); opacity: 0.75; line-height: 1.4; }
.stats-note { max-width: 720px; margin: 0 auto; text-align: center; font-size: 0.92rem; opacity: 0.7; color: var(--cream); }

/* STORY */
.story { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; }
.story-img { margin: 0; border-radius: var(--radius); overflow: hidden; }
.story-img img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.story-body h2 { margin-bottom: 20px; }
.story-body .btn { margin-top: 16px; }

/* GIVE */
.give-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 48px; }
.give-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px 32px; display: flex; flex-direction: column; position: relative; }
.give-card h3 { margin-bottom: 12px; }
.give-card p { color: var(--ink-soft); flex: 1; font-size: 0.98rem; }
.give-card .btn { align-self: flex-start; }
.give-card-featured { border-color: var(--crimson); box-shadow: 0 20px 40px -20px rgba(179, 25, 57, 0.3); position: relative; }
.give-badge { position: absolute; top: -12px; left: 32px; background: var(--crimson); color: var(--white); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.give-note { background: var(--white); border-left: 3px solid var(--crimson); padding: 24px 28px; border-radius: 4px; }
.give-note p { margin: 0 0 6px; font-size: 0.95rem; }
.give-note p:last-child { margin-bottom: 0; }
.give-note strong { color: var(--ink); }

/* CONTACT */
.contact { max-width: 720px; text-align: center; }
.contact h2 { margin-bottom: 20px; }
.contact p { font-size: 1.1rem; }

/* FOOTER */
.footer { background: var(--ink); color: var(--cream); padding: 72px 0 24px; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 2.5fr; gap: 64px; }
.footer-brand p { color: var(--cream); }
.footer-mark { height: 56px; width: auto; margin-bottom: 16px; filter: brightness(1.1); }
.footer-wordmark { height: 28px; width: auto; display: block; margin: 0 0 12px; }
.footer-tag { font-size: 0.85rem; opacity: 0.7; margin: 0; max-width: 240px; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.footer-col h4 { color: var(--cream); opacity: 0.6; font-size: 0.72rem; margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { font-size: 0.9rem; margin-bottom: 12px; line-height: 1.5; color: var(--cream); opacity: 0.85; }
.footer-col a { color: var(--cream); text-decoration: none; transition: opacity 0.15s; }
.footer-col a:hover { text-decoration: underline; opacity: 1; }
.footer-legal { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(241, 228, 207, 0.15); font-size: 0.8rem; opacity: 0.5; }
.footer-legal p { margin: 0; }

/* RESPONSIVE */
@media (max-width: 900px) {
  :root { --pad-y: 64px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-image { order: -1; max-width: 480px; margin: 0 auto; }
  .hero-image img { aspect-ratio: 4/3; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .two-col-reverse { direction: ltr; }
  .pillars { grid-template-columns: 1fr; gap: 32px; }
  .places { grid-template-columns: 1fr; gap: 24px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .story { grid-template-columns: 1fr; gap: 32px; }
  .give-cards { grid-template-columns: 1fr; }
  .faces-strip { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 20px var(--pad-x); border-bottom: 1px solid var(--line); gap: 16px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-inner .btn { display: none; }
}

@media (max-width: 500px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.75rem; }
  .hero-ctas .btn { width: 100%; }
  .stats { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .section-faces { padding: 0; }
  .nav-wordmark { display: none; }
  .nav-mark { height: 32px; }
  .faces-strip { grid-template-columns: repeat(2, 1fr); }
}
