/* ===========================================================================
   CAMPUS CORE WEBSITE - STYLESHEET
   
   A professional, institutional-grade design system for Campus Core.
   This stylesheet uses a neutral color palette, system fonts, and generous
   spacing to create an authoritative yet accessible design.
   
   Design Philosophy:
   - Neutral colors for institutional authority
   - System fonts for instant loading and familiarity
   - Generous whitespace for clarity
   - Minimal motion for professionalism
   - WCAG 2.1 AA compliant accessibility
   
   Last Updated: January 7, 2026
   =========================================================================== */

/* ===========================================================================
   GLOBAL RESET AND BASE STYLES
   Reset browser defaults and establish base styling
   =========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box; /* Include padding and border in element width/height */
}

html {
  scroll-behavior: smooth; /* Smooth scrolling for anchor links */
}

body {
  /* System font stack for instant loading and OS consistency */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #f9f8f7; /* Warm off-white background */
  color: #3a322c; /* Charcoal text for high contrast */
  line-height: 1.6; /* Comfortable reading line height */
}

/* ===========================================================================
   HEADER & NAVIGATION
   Sticky header with responsive navigation menu
   =========================================================================== */
header {
  position: sticky; /* Stays at top when scrolling */
  top: 0;
  z-index: 50; /* Above other content */
  background-color: #f9f8f7;
  border-bottom: 1px solid #e8e5e1; /* Subtle separator */
}

header .container {
  display: flex;
  justify-content: space-between; /* Logo left, menu right */
  align-items: center;
  padding: 1rem 2rem;
  max-width: 88rem; /* Constrained width for readability */
  margin: 0 auto; /* Center container */
}

/* Logo styling - simple text-based branding */
.logo {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #3a322c;
  text-decoration: none;
}

/* Navigation menu - horizontal on desktop */
nav {
  display: flex;
  gap: 2rem; /* Space between menu items */
}

/* Navigation links styling */
nav a {
  font-size: 0.875rem;
  color: #6f6660;
  text-decoration: none;
  transition: color 0.2s;
}

nav a:hover {
  color: #3a322c;
}

/* Mobile menu button - hidden on desktop, visible on mobile */
.menu-button {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #6f6660;
}

/* ===========================================================================
   MOBILE RESPONSIVE NAVIGATION
   Hamburger menu for screens under 768px
   =========================================================================== */
@media (max-width: 768px) {
  /* Hide nav by default, show as dropdown when active */
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #f9f8f7;
    padding: 1rem 0;
    border-bottom: 1px solid #e8e5e1;
    gap: 0;
  }

  nav.active {
    display: flex;
  }

  nav a {
    padding: 0.75rem 2rem;
    border: none;
  }

  .menu-button {
    display: block;
  }

  header .container {
    padding: 1rem 1.5rem;
  }
}

/* ===========================================================================
   MAIN CONTENT LAYOUT
   Container and spacing for all page content
   =========================================================================== */
/* Centered container with max-width for readability */
.container {
  max-width: 88rem;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===========================================================================
   HERO SECTION
   Large, impactful section at top of pages
   =========================================================================== */
.hero {
  padding: 6rem 2rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  max-width: 56rem;
}

.hero p {
  font-size: 1.125rem;
  color: #6f6660;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 48rem;
}

/* ===========================================================================
   SECTION STYLES
   Reusable section containers with light/dark variants
   =========================================================================== */
section {
  padding: 4rem 2rem; /* Generous vertical and horizontal padding */
}

/* Dark variant for visual contrast */
section.dark {
  background-color: #3a322c;
  color: #f3f1ef;
}

section h2 {
  font-size: clamp(1.875rem, 4vw, 2.25rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 3rem;
}

section.dark h2 {
  color: #f3f1ef;
}

section h3 {
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

section p {
  color: inherit;
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* ===========================================================================
   GRID SYSTEM
   Responsive grid layout for content organization
   =========================================================================== */
/* Auto-responsive grid that adjusts columns based on available space */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.grid-item {
  padding: 1.5rem 0;
}

.grid-item h3 {
  color: #3a322c;
}

section.dark .grid-item h3 {
  color: #f3f1ef;
}

/* ===========================================================================
   CARDS
   Card components with borders and padding
   =========================================================================== */
.card {
  border: 1px solid #e8e5e1;
  padding: 1.5rem;
  background: white;
}

section.dark .card {
  border-color: #524a42;
  background: transparent;
}

.card h3 {
  margin-bottom: 1rem;
}

.card p {
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ===========================================================================
   BUTTONS
   Primary and secondary button styles
   =========================================================================== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #3a322c;
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
  border-radius: 0;
}

.btn:hover {
  background-color: #2a2218;
}

.btn-light {
  background-color: #f3f1ef;
  color: #3a322c;
}

.btn-light:hover {
  background-color: #e8e5e1;
}

/* ===========================================================================
   FORMS
   Form inputs, labels, and layout
   =========================================================================== */
.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.875rem;
}

input, textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d9d5ce;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s;
}

input:focus, textarea:focus {
  outline: none;
  border-color: #3a322c;
  box-shadow: inset 0 0 0 2px rgba(58, 50, 44, 0.1);
}

textarea {
  resize: vertical;
  min-height: 150px;
}

/* ===========================================================================
   FOOTER
   Site-wide footer with links and information
   =========================================================================== */
footer {
  background-color: #3a322c;
  color: #c5bfb5;
  padding: 4rem 2rem;
  margin-top: 4rem;
}

footer .footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
  max-width: 88rem;
  margin-left: auto;
  margin-right: auto;
}

footer h3 {
  color: #f3f1ef;
  margin-bottom: 1rem;
}

footer a {
  color: #c5bfb5;
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

footer a:hover {
  color: #f3f1ef;
}

.footer-divider {
  border-top: 1px solid #524a42;
  padding-top: 2rem;
  margin-top: 2rem;
  max-width: 88rem;
  margin-left: auto;
  margin-right: auto;
}

footer p {
  font-size: 0.875rem;
  color: #a8a199;
}

/* Accent List */
.accent-list {
  list-style: none;
}

.accent-list li {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}

.accent-list li:before {
  content: "▸";
  color: #1a5f7a;
  flex-shrink: 0;
}

/* ===========================================================================
   UTILITY CLASSES
   Reusable utility classes for common styling needs
   =========================================================================== */
/* Maximum width constraint */
.max-w-3xl {
  max-width: 48rem;
}

.space-y-4 > * + * {
  margin-top: 1rem;
}

.space-y-6 > * + * {
  margin-top: 1.5rem;
}

/* ===========================================================================
   RESPONSIVE DESIGN
   Mobile-specific adjustments for screens under 768px
   =========================================================================== */
@media (max-width: 768px) {
  .hero {
    padding: 3rem 1.5rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  section {
    padding: 3rem 1.5rem;
  }

  .grid {
    gap: 1.5rem;
  }

  footer .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ===========================================================================
   ACCENT COLORS
   Subtle accent colors for links and highlights
   =========================================================================== */
/* Primary accent for links and interactive elements */
.accent-blue {
  color: #1a5f7a;
}

.accent-green {
  color: #1a7a5f;
}

/* ===========================================================================
   MESSAGE ALERTS
   Success and error message styling
   =========================================================================== */
.alert {
  padding: 1rem;
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

.alert-success {
  background-color: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
}

.alert-error {
  background-color: #fef2f2;
  border: 1px solid #fca5a5;
  color: #7f1d1d;
}

/* Hidden by default */
.hidden {
  display: none;
}

/* ===========================================================================
   FLEXBOX UTILITIES
   Helper classes for flexbox layouts
   =========================================================================== */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.gap-4 {
  gap: 1rem;
}

.gap-8 {
  gap: 2rem;
}

.justify-between {
  justify-content: space-between;
}

.items-start {
  align-items: flex-start;
}

.items-center {
  align-items: center;
}
