/* =========================================
   DESIGN SYSTEM - CSS VARIABLES
   ========================================= */
:root {
  /* Color Palette */
  --color-base: #FDFBF2; /* Pale Yellow / Warm Paper */
  --color-base-alt: #FAF8EB;
  --color-secondary: #EDF3EE; /* Light muted green for alternating sections */
  --color-primary: #1E5631; /* Deep Forest Green */
  --color-primary-dark: #0A2912; 
  --color-accent: #D4AF37; /* Warm Gold/Ochre */
  --color-text: #2C3531; /* Dark Charcoal */

  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;

  /* Shadows */
  --shadow-diffused: 0 20px 40px -10px rgba(30, 86, 49, 0.12);
  --shadow-hover: 0 25px 50px -12px rgba(30, 86, 49, 0.2);

  /* Border Radii */
  --radius-sm: 4px; /* Classic sharp/slightly rounded */
  --radius-organic-1: 60px 10px 60px 10px; /* Asymmetrical / Organic shapes */
  --radius-organic-2: 10px 60px 10px 60px;
  --radius-organic-3: 40px 15px 50px 20px;
}

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

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

/* Subtle Noise Texture Overlay */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.2; /* Very subtle */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-primary-dark);
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--color-accent);
}

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

/* Layout Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}

.bg-alt {
  background-color: var(--color-secondary);
}

.bg-primary {
  background-color: var(--color-primary-dark);
  color: var(--color-base);
}
.bg-primary h1, .bg-primary h2, .bg-primary h3 {
  color: var(--color-base);
}

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
/* Top Bar */
.top-bar {
  background-color: var(--color-primary-dark);
  color: var(--color-base);
  font-size: 0.85rem;
  padding: 0.5rem 0;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar-info {
  display: flex;
  gap: 1.5rem;
}
.top-bar-info a {
  color: var(--color-base);
}
.top-bar-info a:hover {
  color: var(--color-accent);
}
.top-bar-social a {
  color: var(--color-base);
  margin-left: 1rem;
}
.top-bar-social a:hover {
  color: var(--color-accent);
}

/* Main Header */
.main-header {
  background-color: rgba(253, 251, 242, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(30, 86, 49, 0.1);
  transition: all 0.3s ease;
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.school-shield {
  width: 50px;
  height: 60px;
  background-color: var(--color-primary);
  border-radius: 0 0 25px 25px; /* Simple shield shape placeholder */
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--color-accent);
  font-weight: bold;
  font-family: var(--font-heading);
}

.logo-text h1 {
  font-size: 1.5rem;
  margin: 0;
  color: var(--color-primary-dark);
}
.logo-text p {
  font-size: 0.8rem;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text);
  font-weight: 600;
}

.main-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.main-nav a {
  font-weight: 500;
  color: var(--color-text);
  position: relative;
}

/* Elegant Underline Hover */
.main-nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--color-accent);
  transition: width 0.3s ease;
}

.main-nav a:hover::after, .main-nav a.active::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-primary);
  cursor: pointer;
}

/* =========================================
   FOOTER
   ========================================= */
.main-footer {
  background-color: var(--color-primary-dark);
  color: var(--color-base);
  padding: 4rem 0 2rem;
  position: relative;
  overflow: hidden;
}

/* Watermark Shield */
.footer-watermark {
  position: absolute;
  top: 50%;
  right: -5%;
  transform: translateY(-50%);
  font-size: 40rem;
  color: rgba(253, 251, 242, 0.03);
  font-family: var(--font-heading);
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.footer-col h3 {
  color: var(--color-accent);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--color-base);
  opacity: 0.8;
}

.footer-links a:hover {
  color: var(--color-accent);
  opacity: 1;
}

.footer-bottom {
  text-align: center;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(253, 251, 242, 0.1);
  font-size: 0.9rem;
  opacity: 0.7;
}

/* =========================================
   RESPONSIVE DESIGN (Base)
   ========================================= */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .top-bar .container {
    flex-direction: column;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-base);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    box-shadow: var(--shadow-diffused);
  }

  .main-nav a {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    width: 100%;
  }

  .main-nav a.btn {
    margin: 1rem auto 0;
    width: max-content;
  }
  
  .main-nav.active {
    display: flex;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .top-bar .container {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .top-bar-info {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    width: 100%;
  }
  
  .top-bar-social {
    margin-top: 0.5rem;
    display: flex;
    gap: 1.5rem;
  }

  .top-bar-social a {
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    margin: 0;
  }
  
  h1 { font-size: 2.25rem; }
  h2 { font-size: 2rem; }
  
  .logo-text h1 {
    font-size: 1.25rem;
  }
}
