/* ==========================================================================
   CWEIA — Cree Women of Eeyou Istchee Association
   Site stylesheet
   ========================================================================== */

:root {
  --color-primary: #aa0b07;
  --color-primary-dark: #7d2821;
  --color-accent: #dc4a3e;
  --color-accent-dark: #7d2821;
  --color-text: #2d2d2d;
  --color-muted: #6b6b6b;
  --color-muted-light: #999999;
  --color-bg: #ffffff;
  --color-bg-alt: #f7f5f3;
  --color-border: #e7e2dd;
  --color-footer-bg: #2c2c2c;
  --color-footer-bar: #3a3a3a;
  --font-heading: 'PT Sans', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
  --container-width: 1140px;
  --radius: 6px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 6px 24px rgba(0,0,0,.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-accent-dark); }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.25;
  margin: 0 0 .6em;
}
p { margin: 0 0 1.2em; }
ul { margin: 0; padding: 0; list-style: none; }
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 30px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn-primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.btn-primary:hover { background: var(--color-accent-dark); border-color: var(--color-accent-dark); color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-outline:hover { background: var(--color-primary); color: #fff; }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-sm { padding: 8px 18px; font-size: 12px; }

/* ---------- Top bar ---------- */
.topbar {
  background: #f2efec;
  border-bottom: 1px solid var(--color-border);
  font-size: 13px;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  min-height: 38px;
  gap: 10px;
}
.topbar-links, .topbar-contact { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.topbar-links a, .topbar-contact a { color: var(--color-muted); }
.topbar-links a:hover, .topbar-contact a:hover { color: var(--color-primary); }
.topbar-contact .fa { margin-right: 5px; color: var(--color-primary); }

/* ---------- Header ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--color-border); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 20px;
  flex-wrap: wrap;
}
.logo img { max-height: 82px; width: auto; }
.header-address {
  flex: 1 1 260px;
  font-size: 14px;
  color: var(--color-muted);
}
.header-address .fa { color: var(--color-primary); margin-right: 6px; }
.header-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; width: 20px; margin: 0 auto; background: var(--color-text); }

/* ---------- Navigation ---------- */
.site-nav {
  background: var(--color-primary);
}
.menu {
  display: flex;
  flex-wrap: wrap;
}
.menu > li {
  position: relative;
}
.menu > li > a {
  display: block;
  padding: 15px 18px;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 14.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.menu > li > a:hover, .menu > li.active > a { background: var(--color-primary-dark); color: #fff; }
.menu .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: #fff;
  box-shadow: var(--shadow-md);
  border-top: 3px solid var(--color-accent);
  z-index: 50;
  padding: 6px 0;
}
.menu li.has-dropdown:hover > .dropdown { display: block; }
.menu .dropdown li a {
  display: block;
  padding: 10px 20px;
  color: var(--color-text);
  font-size: 14px;
  font-family: var(--font-body);
  text-transform: none;
  font-weight: 400;
  border-bottom: 1px solid var(--color-border);
}
.menu .dropdown li:last-child a { border-bottom: none; }
.menu .dropdown li a:hover { background: var(--color-bg-alt); color: var(--color-primary); }
.menu .dropdown .dropdown { top: 0; left: 100%; border-top: none; border-left: 3px solid var(--color-accent); }

/* ---------- Page title / breadcrumb banner ---------- */
.page-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  padding: 46px 0;
  text-align: center;
}
.page-banner h1 { color: #fff; margin: 0 0 8px; font-size: 32px; text-transform: uppercase; }
.page-banner .breadcrumb { font-size: 13px; opacity: .85; }
.page-banner .breadcrumb a { color: #fff; opacity: .85; }
.page-banner .breadcrumb a:hover { opacity: 1; text-decoration: underline; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(45,10,8,.55) 0%, rgba(45,10,8,.75) 100%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; padding: 60px 20px; }
.hero-inner img.hero-logo { max-width: 130px; margin: 0 auto 20px; }
.hero-inner h1 {
  color: #fff;
  font-size: clamp(28px, 4vw, 46px);
  text-transform: uppercase;
  letter-spacing: .02em;
  margin-bottom: 14px;
}
.hero-inner p.tagline { font-size: 19px; max-width: 640px; margin: 0 auto 28px; color: #f1e6e5; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Feature boxes ---------- */
.features {
  background: var(--color-bg-alt);
  padding: 60px 0;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.feature-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 40px 24px 30px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 76px; height: 76px;
  margin: 0 auto 18px;
  border: 3px solid var(--color-primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-primary);
  font-size: 30px;
}
.feature-card h3 { font-size: 18px; text-transform: none; margin-bottom: 10px; }
.feature-card p { color: var(--color-muted); font-size: 14.5px; margin-bottom: 16px; }

/* ---------- Sections ---------- */
.section { padding: 60px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title .eyebrow {
  display: block; color: var(--color-primary);
  font-family: var(--font-heading); text-transform: uppercase;
  font-size: 14px; letter-spacing: .08em; margin-bottom: 8px;
}
.two-col {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 50px;
  align-items: center;
}
.two-col img { border-radius: var(--radius); box-shadow: var(--shadow-md); }
.stats-row { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 30px; }
.stat { }
.stat .num { font-family: var(--font-heading); font-size: 42px; color: var(--color-primary); font-weight: 700; line-height: 1; }
.stat .label { color: var(--color-muted); font-size: 15px; margin-top: 6px; }

/* ---------- News / gallery grid ---------- */
.news-grid, .gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.news-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
}
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.news-card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.news-card .news-card-body { padding: 16px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.news-card h3 { font-size: 16px; margin-bottom: 8px; }
.news-card p { font-size: 13.5px; color: var(--color-muted); margin-bottom: 14px; flex: 1; }
.news-card .news-links { display: flex; flex-wrap: wrap; gap: 8px; }
.gallery-grid img { border-radius: var(--radius); box-shadow: var(--shadow-sm); }

/* ---------- Cards (people, docs, links) ---------- */
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 24px;
}
.people-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.people-card .avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--color-bg-alt);
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-family: var(--font-heading); font-weight: 700;
  margin: 0 auto 14px;
}
.people-card h3 { font-size: 16px; margin-bottom: 4px; }
.people-card .role { color: var(--color-primary); font-size: 13px; font-weight: 700; text-transform: uppercase; margin-bottom: 4px; }
.people-card .meta { color: var(--color-muted); font-size: 13px; }
.people-card a { font-size: 13px; }

table.data-table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; font-size: 14.5px; }
table.data-table th, table.data-table td { padding: 12px 14px; border: 1px solid var(--color-border); text-align: left; }
table.data-table th { background: var(--color-bg-alt); font-family: var(--font-heading); }
table.data-table tr:nth-child(even) td { background: #fbfaf9; }

.doc-list { display: grid; gap: 10px; margin-bottom: 1.5em; }
.doc-list a {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text);
  font-size: 14.5px;
}
.doc-list a:hover { border-color: var(--color-primary); color: var(--color-primary); }
.doc-list a .fa { color: var(--color-primary); }

.link-columns { columns: 3 220px; column-gap: 40px; }
.link-columns .link-group { break-inside: avoid; margin-bottom: 28px; }
.link-columns h3 { font-size: 16px; color: var(--color-primary); border-bottom: 2px solid var(--color-border); padding-bottom: 8px; margin-bottom: 12px; }
.link-columns li { margin-bottom: 8px; font-size: 14.5px; }

.notice-box {
  background: var(--color-bg-alt);
  border-left: 4px solid var(--color-accent);
  padding: 20px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 1.5em;
  color: var(--color-muted);
}

.event-poster { text-align: center; margin-bottom: 1.5em; }
.event-poster img { border-radius: var(--radius); box-shadow: var(--shadow-md); display: inline-block; max-width: 560px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--color-primary);
  color: #fff;
  padding: 50px 0;
  text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: #f1dcdb; margin-bottom: 24px; }
.cta-band .btn-outline { color: #fff; border-color: #fff; }
.cta-band .btn-outline:hover { background: #fff; color: var(--color-primary); }

/* ---------- Footer ---------- */
.footer-address-bar {
  background: var(--color-footer-bar);
  color: #cccccc;
  padding: 18px 0;
  font-size: 14px;
  text-align: center;
}
.footer-address-bar a { color: #fff; }
.footer-address-bar strong { color: #fff; }
.site-footer { background: var(--color-footer-bg); padding: 26px 0; }
.footer-inner { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center; text-align: center; }
.footer-logo { max-height: 44px; }
.copyright { color: #999; font-size: 13px; margin: 0; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--color-primary); color: #fff;
  padding: 10px 16px; z-index: 999;
}
.skip-link:focus { left: 10px; top: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .link-columns { columns: 2 200px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-nav { display: none; }
  .site-nav.open { display: block; }
  .menu { flex-direction: column; }
  .menu > li > a { padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,.12); }
  .menu .dropdown { position: static; box-shadow: none; border-top: none; min-width: 100%; padding-left: 12px; }
  .menu .dropdown .dropdown { padding-left: 12px; }
  .header-address { order: 3; flex-basis: 100%; }
  .topbar-inner { justify-content: center; text-align: center; }
}

@media (max-width: 640px) {
  .feature-grid { grid-template-columns: 1fr; }
  .news-grid, .gallery-grid { grid-template-columns: 1fr; }
  .link-columns { columns: 1; }
  .stats-row { grid-template-columns: 1fr; }
  .hero { min-height: 380px; }
}
