/* Enhanced Header Styles - Rutero Model School */

/* CSS Variables - Enhanced Blue and Ash Color Palette */
:root {
  /* Primary Blue Palette */
  --primary-blue: #87ceeb;
  --primary-blue-dark: #4682b4;
  --primary-blue-light: #b0e0e6;
  --primary-blue-alpha: rgba(135, 206, 235, 0.1);

  /* Ash/Gray Palette */
  --ash-light: #f8f9fa;
  --ash-medium: #e9ecef;
  --ash-dark: #6c757d;
  --ash-darker: #495057;

  /* Text Colors */
  --text-primary: #2c3e50;
  --text-secondary: #5a6c7d;
  --text-light: #8b9dc3;
  --text-white: #ffffff;

  /* Background Colors */
  --bg-white: #ffffff;
  --bg-light: #fafbfc;
  --bg-overlay: rgba(255, 255, 255, 0.95);

  /* Shadows and Effects */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.1);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
  --gradient-ash: linear-gradient(135deg, var(--ash-light) 0%, var(--ash-medium) 100%);

  /* Transitions */
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Spacing */
  --header-height: 80px;
  --header-height-scrolled: 60px;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 50px;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-white);
  overflow-x: hidden;
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--bg-overlay);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(135, 206, 235, 0.1);
  z-index: 1000;
  transition: var(--transition-smooth);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  position: relative;
}

/* Brand Section */
.logo-container {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 0.75rem;
  transition: var(--transition-smooth);
}

.logo {
  width: 60px;
  height: auto;
  object-fit: contain;
  transition: var(--transition-smooth);
}

.brand-line {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Navigation Styles */
.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-header {
  display: none;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: var(--radius-full);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  transition: var(--transition-smooth);
  z-index: -1;
}

.nav-link:hover::before,
.nav-link.active::before {
  left: 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-white) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.nav-icon {
  font-size: 0.9rem;
  opacity: 0.8;
  transition: var(--transition-smooth);
}

.nav-link:hover .nav-icon,
.nav-link.active .nav-icon {
  opacity: 1;
  transform: scale(1.1);
}

.header-toggle {
    display: none; /* Hidden on desktop */
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .header-container {
    padding: 0 1.5rem;
  }

  .nav-list {
    gap: 0.25rem;
  }

  .nav-link {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  .header-container {
    padding: 0 1rem;
  }

  .header-toggle {
    display: flex; /* Show on mobile */
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background: var(--bg-white);
    box-shadow: var(--shadow-xl);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav.show-menu {
    right: 0;
  }

  .nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid var(--ash-light);
  }

  .nav-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
  }

  .nav-close {
    width: 36px;
    height: 36px;
    background: var(--ash-light);
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-close:hover {
    background: var(--primary-blue-alpha);
    color: var(--primary-blue-dark);
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    flex: 1;
  }

  .nav-link {
    padding: 1rem 1.5rem;
    border-radius: 0;
    justify-content: flex-start;
    font-size: 1rem;
    border-bottom: 1px solid var(--ash-light);
  }

  .nav-link::before {
    display: none;
  }

  .nav-link:hover,
  .nav-link.active {
    background: var(--primary-blue-alpha);
    color: var(--primary-blue-dark) !important;
    transform: none;
    box-shadow: none;
  }

  .nav-icon {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  :root {
    --header-height: 65px;
  }

  .header-container {
    padding: 0 0.75rem;
  }

  .logo-container {
    gap: 0.5rem;
  }

  .brand-line {
    font-size: 1rem;
  }

  .nav {
    width: 280px;
  }

  .logo {
    width: 50px;
  }
}

/* FOOTER STYLES - Enhanced Original Design */
.modern-footer {
  background: linear-gradient(135deg, #fefefe 0%, #f8f6f0 100%);
  color: #2c3e50;
  margin-top: 4rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 999; /* Add z-index to the footer */
}

.modern-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-blue-alpha), transparent);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.footer-brand {
  max-width: 500px;
}

.brand-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.footer-logo {
  width: 60px;
  height: auto;
  transition: var(--transition-fast);
}

.footer-logo:hover {
  transform: scale(1.05);
}

.footer-brand h3 {
  font-size: 1.875rem;
  font-weight: 700;
  margin: 0;
  color: #2c3e50;
  line-height: 1.2;
}

.footer-brand p {
  color: #7f8c8d;
  line-height: 1.7;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg-gray-100);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-fast);
}

.social-link:hover {
  background: var(--primary-blue);
  color: var(--text-white);
  transform: translateY(-2px);
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.link-footer {
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    word-break: break-all;
    font-size: 0.9rem;
}

.link-footer:hover {
    color: var(--primary-blue);
    transform: translateY(-2px);
}


.footer-column h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #2c3e50;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-column h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--primary-blue);
  border-radius: 2px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

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

.footer-column ul li a {
  color: #7f8c8d;
  text-decoration: none;
  transition: var(--transition-fast);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-column ul li a:hover {
  color: var(--primary-blue);
  transform: translateX(5px);
}

.footer-column ul li a i {
  font-size: 0.875rem;
  width: 16px;
  opacity: 0.7;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.contact-item .contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--primary-blue-alpha);
  border-radius: var(--radius-md);
  color: var(--primary-blue);
  font-size: 1.125rem;
  flex-shrink: 0;
}

.contact-item .contact-info {
  flex: 1;
}

.contact-item .contact-info h5 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-item .contact-info p {
  color: #7f8c8d;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
}

.footer-bottom {
  background: rgba(0, 0, 0, 0.03);
  padding: 2rem;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
}

.footer-bottom::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 1px;
  background: var(--primary-blue);
}

.footer-bottom-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: #7f8c8d;
  margin: 0;
  font-size: 0.9rem;
}

.footer-bottom-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-bottom-links a {
  color: #7f8c8d;
  text-decoration: none;
  font-size: 0.875rem;
  transition: var(--transition-fast);
}

.footer-bottom-links a:hover {
  color: var(--primary-blue);
}

@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    padding: 3rem 1.5rem 1.5rem;
  }

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

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2.5rem 1rem 1.5rem;
    text-align: center;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .footer-bottom-links {
    justify-content: center;
  }

  .contact-item {
    padding: 1rem;
    justify-content: center;
  }

  .brand-header {
    justify-content: center;
    text-align: center;
  }

  .footer-brand {
    margin: 0 auto;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-column h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-column ul li a {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .footer-content {
    padding: 2rem 0.75rem 1rem;
    text-align: center;
  }

  .footer-brand h3 {
    font-size: 1.5rem;
  }

  .footer-column h4 {
    font-size: 1.125rem;
  }

  .contact-item {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
    align-items: center;
  }

  .footer-bottom {
    padding: 1.5rem 0.75rem;
  }

  .footer-bottom-links {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (prefers-color-scheme: dark) {
  .modern-footer {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    color: #e2e8f0;
  }

  .footer-brand h3 {
    color: #e2e8f0;
  }

  .footer-column h4 {
    color: #e2e8f0;
  }

  .contact-item {
    background: rgba(255, 255, 255, 0.05);
  }

  .contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  .footer-logo {
    background-color: #fff;
    border-radius: 50%;
    padding: 5px;
  }
}
/* END FOOTER STYLES */
