/* =====================================================
   CSAP — Colombian Student Association at Purdue
   Global Design System
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Dancing+Script:wght@600;700&family=Playfair+Display:ital,wght@0,700;1,700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css');

/* ── CSS Variables ─────────────────────────────────── */
:root {
  --gold:         #c29a12;
  --gold-light:   #f1c232;
  --gold-dark:    #9a7600;
  --gold-bg:      #fbf8f0;
  --cream:        #f5f2ec;
  --white:        #ffffff;
  --dark:         #1a1a1a;
  --gray-700:     #3a3a3a;
  --gray-500:     #6b6b6b;
  --gray-300:     #d4d0c8;
  --gray-100:     #f0ede7;
  --border:       #e8e2d4;

  /* Colombian flag colors */
  --col-yellow:   #FCD116;
  --col-blue:     #003087;
  --col-red:      #CE1126;

  --radius:       12px;
  --radius-lg:    20px;
  --shadow:       0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg:    0 8px 40px rgba(0,0,0,0.14);
  --transition:   0.25s ease;

  --nav-height:   72px;
  --stripe-h:     6px;
}

/* ── Reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--cream);
  color: var(--dark);
  line-height: 1.6;
  min-height: 100vh;
}
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; border: none; outline: none; }

/* ── Colombian Flag Stripe ──────────────────────────── */
.flag-stripe {
  display: flex;
  height: var(--stripe-h);
  width: 100%;
}
.flag-stripe .s-yellow { flex: 2; background: var(--col-yellow); }
.flag-stripe .s-blue   { flex: 1; background: var(--col-blue); }
.flag-stripe .s-red    { flex: 1; background: var(--col-red); }

/* ── Navbar ─────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: var(--nav-height);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  white-space: nowrap;
  color: var(--dark);
}
.logo-tunjo { flex-shrink: 0; }
.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.nav-logo-name {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.5px;
  color: var(--dark);
}
.nav-logo-tagline {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--gray-500);
  letter-spacing: 0.2px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: background var(--transition), color var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-dark);
  background: var(--gold-bg);
}
/* Remove old pill login style — Login is now a plain link */

/* Dropdown */
.dropdown { position: relative; }
.dropdown > a::after { content: ' ▾'; font-size: 0.7em; opacity: 0.7; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  padding: 6px;
  z-index: 999;
}
.dropdown:hover .dropdown-menu,
.dropdown-menu:hover { display: block; }
.dropdown-menu a {
  display: block;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--gray-700);
}
.dropdown-menu a:hover { background: var(--gold-bg); color: var(--gold-dark); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 4px;
  border-radius: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Page Header (non-home pages) ───────────────────── */
.page-header {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: 56px 24px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(194,154,18,0.08) 0%, transparent 60%);
}
.page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--dark);
  position: relative;
}
.page-header h1 span { color: var(--gold); }
.page-header p {
  color: var(--gray-500);
  margin-top: 10px;
  font-size: 1rem;
  position: relative;
}

/* ── Sections ───────────────────────────────────────── */
.section { padding: 72px 24px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-alt { background: var(--white); }

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 8px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
}
.section-divider {
  width: 52px;
  height: 3px;
  background: var(--gold);
  border-radius: 999px;
  margin: 16px 0 28px;
}
.section-body {
  font-size: 1rem;
  color: var(--gray-700);
  line-height: 1.8;
  max-width: 680px;
}

/* ── Cards ──────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-body { padding: 28px; }
.card-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 8px;
}
.card-text { font-size: 0.9rem; color: var(--gray-500); line-height: 1.7; }

/* ── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-gold {
  background: var(--gold);
  color: var(--white);
}
.btn-gold:hover { background: var(--gold-dark); transform: translateY(-1px); }
.btn-outline {
  border: 2px solid var(--gold-dark);
  color: var(--gold-dark);
  background: transparent;
}
.btn-outline:hover { background: var(--gold); color: var(--white); border-color: var(--gold); }
.btn-dark {
  background: var(--dark);
  color: var(--white);
}
.btn-dark:hover { background: var(--gray-700); transform: translateY(-1px); }
.btn-outline-white {
  border: 2px solid rgba(255,255,255,0.8);
  color: var(--white);
  background: transparent;
}
.btn-outline-white:hover { background: rgba(255,255,255,0.15); }

/* ── Grid Utilities ─────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ── Officer Cards ──────────────────────────────────── */
.officer-card { text-align: center; }
.officer-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  margin: 0 auto 14px;
  object-fit: cover;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--gold);
}
.officer-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--dark);
}
.officer-title {
  font-size: 0.82rem;
  color: var(--gold-dark);
  font-weight: 500;
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── Highlight Box ──────────────────────────────────── */
.highlight-box {
  background: var(--gold-bg);
  border: 1px solid #efe5c7;
  border-radius: var(--radius-lg);
  padding: 24px 28px;
}
.highlight-box-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 8px;
}
.highlight-box-text {
  font-size: 0.95rem;
  color: var(--gray-700);
  line-height: 1.7;
}

/* ── Footer ─────────────────────────────────────────── */
footer {
  background: var(--white);
  color: var(--gray-700);
  border-top: 1px solid var(--border);
  padding: 56px 24px 28px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.footer-brand .nav-logo { color: var(--dark); margin-bottom: 14px; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; color: var(--gray-500); }
.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  font-size: 0.88rem;
  color: var(--gray-500);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--gray-500);
}
.footer-socials { display: flex; gap: 12px; }
.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  font-size: 0.9rem;
  transition: all var(--transition);
}
.footer-socials a:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-bg); }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; gap: 4px; position: absolute; top: calc(var(--nav-height) + var(--stripe-h)); left: 0; right: 0; background: var(--white); padding: 16px; box-shadow: var(--shadow-lg); border-top: 1px solid var(--border); z-index: 999; }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; width: 100%; padding: 12px 16px; }
  .dropdown-menu { position: static; box-shadow: none; border: none; background: var(--gold-bg); border-radius: var(--radius); margin-top: 4px; }
  .dropdown:hover .dropdown-menu { display: none; }
  .dropdown.open .dropdown-menu { display: block; }
  .nav-toggle { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .footer-brand .nav-logo, .footer-socials { justify-content: center; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .section { padding: 48px 20px; }
}
@media (max-width: 480px) {
  .btn { padding: 11px 22px; font-size: 0.85rem; }
}

/* ── Font Awesome Icon Helpers ──────────────────────── */
/* Region thumbnails (colombia.html) */
.region-thumb i.fa-solid,
.region-thumb i.fa-brands {
  font-size: 3rem;
  color: var(--gold);
}
/* Resource icon boxes (new-student-info.html) */
.resource-icon i.fa-solid,
.resource-icon i.fa-brands {
  font-size: 1.4rem;
  color: var(--gold-dark);
}
/* Value cards (about.html) */
.value-card .icon i.fa-solid {
  font-size: 2rem;
  color: var(--gold);
}
/* Collab cards (join.html) */
.collab-icon i.fa-solid {
  font-size: 2.2rem;
  color: var(--gold);
}
/* Event thumbs (events.html) */
.event-thumb i.fa-solid,
.event-thumb i.fa-brands {
  font-size: 2.8rem;
  color: var(--gold);
}
/* Gallery placeholders (index.html) */
.gallery-placeholder i.fa-solid {
  font-size: 2.5rem;
  color: rgba(255,255,255,0.75);
}
/* Quick-access icon cards (index.html) */
.quick-icon i.fa-solid,
.quick-icon svg { display: block; }
/* Social pills (index.html) */
.social-pill i.fa-brands { font-size: 1rem; }
/* Admin sidebar icons (members.html) */
.admin-sidebar-nav i.fa-solid { width: 18px; text-align: center; }
/* Check icons (new-student-info.html) */
.check-icon i.fa-solid { font-size: 1rem; color: var(--gold); }
