/* =============================
   RESET & BASE STYLES
   ============================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: navy;
  background: #ffffff;
}

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Reusable spacing so every section lines up the same way */
section {
  padding: 6rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* Reusable button style */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background: navy;
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.2s ease;
}

.btn:hover {
  background: navy;
}

/* =============================
   NAVBAR
   ============================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #eee;
  z-index: 100;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 700;
  font-size: 1.2rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a:hover {
  color: navy;
}

/* Hamburger hidden by default, shown only on small screens */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: navy;
}

/* =============================
   HERO
   ============================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 5rem; /* clears fixed navbar */
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.highlight {
  color: navy;
}

.hero p {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 2rem;
}

/* =============================
   ABOUT
   ============================= */
.about h2,
.projects h2,
.skills h2,
.contact h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.about-img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
}

/* =============================
   PROJECTS
   ============================= */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.project-card {
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.project-card h3 {
  margin: 0.5rem 0;
}

.project-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.project-links a {
  color: #2563eb;
  font-weight: 600;
}

/* =============================
   SKILLS
   ============================= */
.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.skills-list li {
  background: #f1f5f9;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
}

/* =============================
   CONTACT
   ============================= */
#contactForm {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 500px;
}

#contactForm label {
  font-weight: 600;
  margin-top: 1rem;
}

#contactForm input,
#contactForm textarea {
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
}

.form-error {
  color: #dc2626;
  font-size: 0.9rem;
  min-height: 1.2em; /* reserves space so layout doesn't jump */
}

#contactForm .btn {
  align-self: flex-start;
  border: none;
  cursor: pointer;
  margin-top: 1rem;
}

/* =============================
   FOOTER
   ============================= */
footer {
  text-align: center;
  padding: 2rem;
  color: #888;
  font-size: 0.9rem;
}

/* =============================
   RESPONSIVE (mobile nav)
   ============================= */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 0;
    gap: 1.5rem;
    transform: translateY(-150%); /* hidden above viewport */
    transition: transform 0.3s ease;
    border-bottom: 1px solid #eee;
  }

  .nav-links.open {
    transform: translateY(0); /* toggled via JS */
  }

  .hamburger {
    display: flex;
  }

  .about-content {
    flex-direction: column;
    text-align: center;
  }
}

html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
section { scroll-margin-top: 6rem; }
body { font-family: 'Inter', system-ui, sans-serif; }
[hidden] { display: none !important; }
.assembly-mark { flex-shrink: 0; display: grid; place-items: center; width: 180px; height: 180px; border-radius: 50%; background: navy; color: white; font-size: 2.5rem; font-weight: 700; }
.membership h2, .affiliates h2 { font-size: 2rem; margin-bottom: 1.5rem; }
.notice { margin: 1rem 0; padding: 1rem; background: #f1f5f9; border-left: 4px solid navy; }
fieldset { border: 1px solid #ddd; border-radius: 10px; padding: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
#membershipForm, #contactForm { margin-top: 1.5rem; max-width: 600px; }
fieldset label { font-weight: 600; margin-top: 0.5rem; }
fieldset input, fieldset textarea { width: 100%; padding: 0.75rem; border: 1px solid #ccc; border-radius: 8px; font: inherit; }
fieldset button { border: 0; align-self: flex-start; font: inherit; }
fieldset:disabled { opacity: 0.7; }
button:disabled { cursor: not-allowed; }
.field-note { color: #555; font-size: 0.9rem; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #b8860b; outline-offset: 4px; }
.skip-link { position: fixed; top: -100px; left: 1rem; background: navy; color: white; padding: 1rem; z-index: 200; }
.skip-link:focus { top: 0; }
@media (max-width: 768px) {
  .logo { max-width: 75%; font-size: 1rem; }
  .hero h1 { font-size: clamp(1.8rem, 7vw, 3rem); }
  .nav-links { display: none; transform: none; }
  .nav-links.open { display: flex; }
  section { padding: 4rem 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
 html { scroll-behavior: auto; }
 *, *::before, *::after { transition: none !important; }
}

.hero { position: relative; max-width: none; min-height: 82vh; background: linear-gradient(90deg, rgba(5,12,30,.85), rgba(5,12,30,.4)), url('assets/indigenous-continuity.webp') center/cover; color: #fff; padding: 8rem 2rem 5rem; }
.hero-content { max-width: 800px; }
.hero .highlight, .hero p { color: #fff; }
.hero .eyebrow { text-transform: uppercase; font-size: .8rem; letter-spacing: .18em; color: #f4d690; }
.hero .btn { background: #e7bf67; color: #111e36; }
.art-caption, figcaption { font-size: .78rem; color: #555; padding: .8rem 1rem; }
.art-caption { text-align: center; }
.about-img { width: 240px; height: 240px; object-fit: contain; border-radius: 12px; }
.about-intro { margin-bottom: 2rem; }
.text-link { display: inline-block; margin-top: 1.5rem; text-decoration: underline; font-weight: 600; }
.community { background: #f6f7f4; border-radius: 16px; }
.community h2 { font-size: 2rem; margin-bottom: 1rem; }
figure { margin: 2rem 0; }
figure img { display: block; width: 100%; height: auto; border-radius: 12px; }
.about-page { padding-top: 9rem; }
.about-page h1 { font-size: 2.5rem; margin: 1.5rem 0; }
.about-page p { margin: 1.25rem 0; }
.about-page-logo { display: block; width: 220px; height: auto; margin: 0 auto; }
@media(max-width:768px){ .hero{min-height:70vh;background-position:65% center;} .hero h1{font-size:2rem;} .about-img{width:220px;height:220px;} }

.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.5rem; margin-top: 2rem; }
.account-card fieldset { min-width: 0; height: 100%; }
.account-card input { min-width: 0; }
.text-button { background: none; color: navy; text-decoration: underline; cursor: pointer; padding: .5rem 0; }
#assemblyAccount { margin: 1.5rem 0; }
#assemblyAccount .btn { margin-top: 1rem; }
#membershipForm[aria-busy="true"] { opacity: .7; }
@media(max-width:768px){ .account-grid { grid-template-columns: 1fr; } }

#membershipPanel { margin-top: 1.5rem; }
#membershipPanel summary { cursor: pointer; list-style: none; }
#membershipPanel summary::-webkit-details-marker { display: none; }
#membershipPanel summary:focus-visible { outline: 3px solid #b8860b; outline-offset: 4px; }
fieldset input:focus, fieldset textarea:focus { border-color: navy; outline: 3px solid #e7bf67; outline-offset: 2px; background: #fffdf5; }
fieldset input, fieldset textarea { font-size: 16px; }

.hero .btn { margin: .4rem; }
.service-section { text-align: center; background: #f6f7f4; border-radius: 16px; margin-top: 2rem; }
.service-time { font-size: 1.3rem; font-weight: 600; margin: 1rem 0; }
.live-sign { display: inline-block; margin: 1rem 0; padding: .6rem 1.3rem; background: #a50015; color: white; border: 2px solid #ff4c5e; border-radius: 8px; font-weight: 800; letter-spacing: .16em; box-shadow: 0 0 12px #e6002b, 0 0 28px #e6002b66; }
#assemblyMembership summary { cursor: pointer; list-style: none; }
#assemblyMembership summary::-webkit-details-marker { display: none; }
#assemblyMembership summary:focus-visible { outline: 3px solid #b8860b; outline-offset: 4px; }
