/* ===== CSA Western — shared styles ===== */

:root {
  --primary: #fd631b;
  --primary-dark: #d94f10;
  --secondary: #fdf2d3;
  --secondary-light: #fffaeb;
  --accent: #54bbff;
  --white: #ffffff;
  --ink: #2b1810;
  --ink-muted: #8a7860;
  --border: #ecdfb8;
  --radius-lg: 18px;
  --radius-md: 10px;
  --max-width: 1100px;
  --nav-height: 76px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Poppins', -apple-system, sans-serif;
  color: var(--ink);
  background: var(--secondary);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Nav ---------- */
.nav {
  background: var(--primary);
  height: var(--nav-height);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  width: 38px;
  height: auto;
  flex-shrink: 0;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 34px;
  margin: 0;
  padding: 0;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  color: var(--secondary);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  opacity: 0.9;
  transition: opacity 0.15s ease, color 0.15s ease;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
  color: var(--white);
  border-bottom-color: var(--accent);
}

.btn-contact {
  background: var(--secondary);
  color: var(--primary-dark);
  padding: 10px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-contact:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--secondary);
  font-size: 1.6rem;
  cursor: pointer;
}

@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--primary-dark);
    padding: 20px 32px;
    gap: 18px;
  }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--primary);
  color: var(--secondary);
  text-align: center;
  padding: 64px 24px 60px;
  position: relative;
  overflow: visible;
}

.hero-eyebrow {
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0.85;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.hero-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: clamp(3rem, 9vw, 5.6rem);
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1;
}

.hero-est {
  margin: 18px 0 0;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  opacity: 0.9;
}

.hero-mascot-wrap {
  position: absolute;
  left: 6%;
  bottom: -28px;
  z-index: 4;
}

.mascot {
  width: 190px;
  display: block;
}

/* scalloped divider under hero, drawn with a radial-gradient repeat */
.scallop-strip {
  height: 60px;
  background-image: radial-gradient(circle at 60px 0, var(--primary) 60px, transparent 61px);
  background-repeat: repeat-x;
  background-size: 120px 60px;
  position: relative;
  z-index: 1;
}

/* ---------- Page hero (non-home pages) ---------- */
.page-hero {
  background: var(--primary);
  color: var(--secondary);
  padding: 56px 24px 70px;
  text-align: center;
}

.page-hero h1 {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  margin: 0;
  letter-spacing: -0.01em;
}

/* ---------- Sections ---------- */
section {
  padding: 70px 0;
}

.section-label {
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
  text-transform: uppercase;
  margin: 0 0 14px;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.about-photos {
  position: relative;
  aspect-ratio: 4 / 3;
}

.about-photos img {
  position: absolute;
  border-radius: var(--radius-md);
  border: 4px solid var(--white);
  box-shadow: 0 10px 30px rgba(43,24,16,0.15);
  object-fit: cover;
}

.about-photos .photo-back {
  width: 62%;
  top: 0;
  right: 4%;
  transform: rotate(6deg);
}

.about-photos .photo-front {
  width: 66%;
  bottom: 0;
  left: 0;
  transform: rotate(-3deg);
  border-color: var(--primary);
}

.about-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--primary);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-style: italic;
  line-height: 1.12;
  margin: 0 0 18px;
}

.about-copy {
  color: var(--ink);
  line-height: 1.65;
  margin: 0 0 26px;
  max-width: 44ch;
}

.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.15s ease, background 0.15s ease;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

@media (max-width: 780px) {
  .about-grid { grid-template-columns: 1fr; gap: 60px; }
  .about-photos { margin-bottom: 10px; }
}

/* ---------- Past events strip (scrollable) ---------- */
.gallery {
  display: flex;
  gap: 20px;
  margin-top: 28px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 12px;
  -webkit-overflow-scrolling: touch;
}

.gallery img {
  flex: 0 0 auto;
  width: 260px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
  scroll-snap-align: start;
}

.gallery::-webkit-scrollbar { height: 8px; }
.gallery::-webkit-scrollbar-track { background: transparent; }
.gallery::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }

@media (max-width: 700px) {
  .gallery img { width: 210px; }
}

/* ---------- Team page ---------- */
.team-dept {
  margin-bottom: 40px;
}

.team-dept h2 {
  color: var(--primary);
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 18px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.member {
  text-align: left;
}

.member-photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: var(--secondary-light);
  border: 1.5px dashed var(--border);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
}

.member-photo svg { width: 34%; opacity: 0.55; }

.member-photo-img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  object-fit: cover;
  margin-bottom: 10px;
  display: block;
}

.member-name {
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0 0 2px;
}

.member-role {
  color: var(--primary);
  font-style: italic;
  font-weight: 600;
  font-size: 0.88rem;
  margin: 0;
}

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

/* ---------- Alumni page ---------- */
.alumni-year {
  margin-bottom: 46px;
}

.alumni-year h2 {
  color: var(--ink-muted);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin: 0 0 20px;
}

.alumni-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.alumni-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--secondary-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px;
  min-height: 78px;
}

.alumni-card.empty {
  background: transparent;
  border-style: dashed;
}

.alumni-photo {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--secondary);
  border: 1.5px dashed var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.alumni-photo svg { width: 46%; opacity: 0.5; color: var(--ink-muted); }

img.alumni-photo {
  border: none;
  background: none;
}

.alumni-name {
  font-weight: 600;
  font-size: 0.92rem;
  margin: 0 0 2px;
}

.alumni-role {
  color: var(--primary);
  font-style: italic;
  font-weight: 600;
  font-size: 0.82rem;
  margin: 0;
}

.alumni-divider {
  border: none;
  border-top: 1px solid var(--primary);
  opacity: 0.25;
  margin: 40px 0;
}

@media (max-width: 600px) {
  .alumni-grid { grid-template-columns: 1fr; }
}

/* ---------- Events page ---------- */
.event-card {
  background: var(--primary);
  border-radius: var(--radius-lg);
  color: var(--secondary);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  margin-bottom: 30px;
  min-height: 220px;
}

.event-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 40px;
}

.event-date-label {
  font-size: 0.85rem;
  opacity: 0.85;
  letter-spacing: 0.08em;
  margin: 0 0 8px;
}

.event-date {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.05;
  margin: 0;
}

.event-poster {
  background: var(--accent);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-weight: 700;
  text-align: center;
  padding: 20px;
}

.event-heading {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  margin: 0 0 14px;
}

@media (max-width: 700px) {
  .event-card { grid-template-columns: 1fr; }
  .event-poster { min-height: 160px; }
}

/* ---------- Events archive ---------- */
.archive-list {
  border-top: 1px solid var(--border);
}

.archive-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--border);
}

.archive-row:hover { background: var(--secondary-light); }

.archive-name {
  font-weight: 600;
  font-size: 1rem;
}

.archive-date {
  color: var(--ink-muted);
  font-size: 0.88rem;
  white-space: nowrap;
}

/* ---------- Sponsors grid ---------- */
.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 30px;
}

.sponsor-slot {
  aspect-ratio: 16 / 9;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-md);
  background: var(--secondary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
  font-size: 0.8rem;
  font-weight: 500;
  text-align: center;
  padding: 10px;
}

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

/* ---------- Simple page (sponsorships / contact) ---------- */
.simple-body {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.simple-body p {
  color: var(--ink-muted);
  line-height: 1.7;
  font-size: 1.05rem;
}

.contact-form {
  display: grid;
  gap: 16px;
  max-width: 480px;
  margin: 36px auto 0;
  text-align: left;
}

.contact-form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
  display: block;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--white);
}

.contact-form button {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.form-note {
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin-top: 10px;
}

/* ---------- Footer ---------- */
footer {
  background: var(--primary-dark);
  color: var(--secondary);
  text-align: center;
  padding: 30px 24px;
  font-size: 0.85rem;
  opacity: 0.9;
}
