/* =========================================================================
   ACM SIGAI Lewisville — "Silicon Prairie" theme
   AI (circuit / neural motifs) x Texas (Lone Star navy, red, burnt-orange
   sunset, wheat gold) x North Texas tech corridor. Light, warm palette.
   ========================================================================= */

:root {
  /* Surfaces — warm prairie paper */
  --bg: #fbf6ec;
  --bg-alt: #f3ebda;
  --surface: #ffffff;
  --surface-2: #f7f0e1;

  /* Ink */
  --text: #17233a;
  --muted: #5b6577;
  --border: #e6ddc8;
  --border-strong: #d9cdae;

  /* Texas palette */
  --navy: #0e2a4e;      /* Lone Star flag blue */
  --star-red: #c02b3a;  /* Lone Star flag red */
  --sunset: #d0561f;    /* burnt-orange prairie sunset */
  --wheat: #e0a83d;     /* North Texas wheat / gold */

  /* AI / tech accent */
  --tech: #1f6feb;
  --tech-cyan: #0e9bb8;

  /* Brand roles */
  --brand: var(--navy);
  --brand-2: var(--sunset);
  --brand-ink: #0e2a4e;

  --radius: 14px;
  --maxw: 1080px;
  --shadow-sm: 0 1px 2px rgba(14, 42, 78, 0.06), 0 2px 8px rgba(14, 42, 78, 0.05);
  --shadow-md: 0 6px 24px rgba(14, 42, 78, 0.10);

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: 24px;
}

a { color: var(--tech); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.02em; color: var(--navy); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 246, 236, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
}
.brand:hover { text-decoration: none; }
.brand em { color: var(--sunset); font-style: normal; }
.brand-logo { display: block; width: 34px; height: 34px; }

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(150deg, var(--navy), var(--tech));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
/* Lone Star badge on the brand mark */
.brand-mark::after {
  content: "★";
  position: absolute;
  top: -6px;
  right: -6px;
  font-size: 12px;
  color: var(--wheat);
  text-shadow: 0 1px 2px rgba(14, 42, 78, 0.35);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a { color: var(--muted); font-weight: 500; }
.nav-links a:hover { color: var(--navy); text-decoration: none; }

.nav-cta {
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sunset), var(--wheat));
  color: #fff !important;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.nav-cta:hover { filter: brightness(1.04); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); transition: transform 0.2s, opacity 0.2s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(64px, 12vw, 128px);
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(60% 70% at 12% 0%, rgba(31, 111, 235, 0.14), transparent 60%),
    radial-gradient(55% 60% at 100% 8%, rgba(208, 86, 31, 0.16), transparent 62%),
    linear-gradient(180deg, #fdf9f0, var(--bg));
}

/* faint circuit grid */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(14, 42, 78, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 42, 78, 0.10) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(75% 60% at 50% 0%, #000 25%, transparent 78%);
  opacity: 0.5;
}
/* oversized Lone Star watermark, right side */
.hero::after {
  content: "";
  position: absolute;
  right: -60px;
  top: 50%;
  width: 460px;
  height: 460px;
  transform: translateY(-50%);
  background: var(--star-red);
  opacity: 0.06;
  -webkit-mask: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 .8l2.9 8.16 8.66.1-6.9 5.24 2.55 8.28L12 17.9l-7.2 4.68 2.55-8.28-6.9-5.24 8.66-.1z'/%3E%3C/svg%3E");
  mask: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 .8l2.9 8.16 8.66.1-6.9 5.24 2.55 8.28L12 17.9l-7.2 4.68 2.55-8.28-6.9-5.24 8.66-.1z'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 600;
  color: var(--sunset);
  margin: 0 0 18px;
}
.eyebrow::before { content: "★"; color: var(--wheat); font-size: 13px; }

.hero h1 {
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  margin: 0 0 20px;
  max-width: 18ch;
}

.lede {
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  color: var(--muted);
  max-width: 60ch;
  margin: 0 0 28px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-family: var(--font-display);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--navy), var(--tech));
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { box-shadow: var(--shadow-md); }
.btn-ghost { border-color: var(--border-strong); color: var(--navy); background: var(--surface); }
.btn-ghost:hover { background: var(--surface-2); }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin: 0;
  padding-top: 28px;
  border-top: 1px solid var(--border-strong);
}
.hero-stats dt { font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.hero-stats dd { margin: 4px 0 0; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--navy); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 9vw, 96px); }
.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
  background-image: linear-gradient(rgba(14, 42, 78, 0.03) 1px, transparent 1px);
  background-size: 100% 46px;
}
.section-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin: 0 0 12px;
  position: relative;
  padding-left: 18px;
}
.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.15em;
  width: 5px;
  border-radius: 3px;
  background: linear-gradient(var(--sunset), var(--wheat));
}
.section-intro { color: var(--muted); max-width: 60ch; margin: 0 0 32px; }

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: start;
}
.two-col p:first-child { margin-top: 0; }

.pillars { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pillars li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--wheat);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}
.pillars strong { display: block; font-family: var(--font-display); color: var(--navy); margin-bottom: 2px; }
.pillars span { color: var(--muted); font-size: 0.95rem; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { border-color: var(--tech); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.96rem; }

/* ---------- Events ---------- */
.events { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 14px; }
.event {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}
.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--navy), var(--tech));
  color: #fff;
  border-radius: 10px;
  padding: 10px 0;
}
.event-month { font-family: var(--font-display); font-weight: 700; color: var(--wheat); font-size: 0.9rem; letter-spacing: 0.08em; }
.event-day { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; }
.event-body h3 { margin: 0 0 6px; font-size: 1.1rem; }
.event-body p { margin: 0 0 4px; color: var(--muted); font-size: 0.96rem; }
.event-meta { font-size: 0.85rem !important; color: var(--sunset); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }

/* ---------- Officers ---------- */
.officers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.officer {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--star-red);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.officer-avatar {
  width: 68px;
  height: 68px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--navy), var(--tech));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: inset 0 0 0 3px rgba(224, 168, 61, 0.5);
}
.officer-photo {
  object-fit: cover;
  padding: 0;
  box-shadow: 0 0 0 3px rgba(224, 168, 61, 0.6);
}
.officer h3 { margin: 0 0 2px; font-size: 1.1rem; }
.officer-role { margin: 0 0 10px; color: var(--sunset); font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.officer-bio { margin: 0 0 12px; color: var(--muted); font-size: 0.92rem; }
.officer-link { font-weight: 600; font-size: 0.9rem; color: var(--tech); }

/* ---------- Join ---------- */
.join {
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(208, 86, 31, 0.10), transparent 60%),
    var(--bg-alt);
  border-top: 1px solid var(--border);
}
.join-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.join-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 32px; }
.join-grid > div {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.join-grid h3 { margin: 0 0 6px; font-size: 1.05rem; }
.join-grid p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 3px solid var(--navy);
  padding-block: 40px 24px;
  background: var(--surface);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-inner p { margin: 8px 0 0; }
.footer-brand img { display: block; height: auto; max-width: 260px; }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: 18px; margin: 0; padding: 0; }
.footer-links a { color: var(--muted); font-size: 0.92rem; }
.muted { color: var(--muted); font-size: 0.88rem; }

.footer-affiliation {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.footer-affiliation img { display: block; flex: none; height: auto; }
.footer-affiliation p { margin: 0; max-width: 68ch; }

.copyright { text-align: center; margin: 24px 0 0; padding-top: 20px; border-top: 1px solid var(--border); }

@media (max-width: 640px) {
  .footer-affiliation { flex-direction: column; align-items: flex-start; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .cards, .officers, .join-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 16px;
    display: none;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 6px 0; }
  .nav-cta { text-align: center; margin-top: 8px; }
  .cards, .officers, .join-grid { grid-template-columns: 1fr; }
  .event { grid-template-columns: 72px 1fr; gap: 14px; padding: 16px; }
  .hero-stats { gap: 24px; }
  .hero::after { width: 300px; right: -100px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
