/* Custom Properties - Vibrant & Clean School Aesthetic */
:root {
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --primary-navy: #1e3a8a;
  --school-blue: #2563eb;
  --soft-yellow: #fef08a;
  --bright-amber: #f59e0b;
  --bright-red: #ef4444;
  --playful-green: #10b981;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --border-light: #e2e8f0;
  --card-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Nunito', 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.6;
}

/* Friendly School Header & Top Bar */
.top-bar {
  background-color: var(--primary-navy);
  color: #ffffff;
  padding: 10px 0;
  font-size: 0.9rem;
  border-bottom: 4px solid var(--bright-amber);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.top-bar-info {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.top-bar-info span, .top-bar-info a {
  color: #e2e8f0;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.top-bar-info a:hover {
  color: var(--soft-yellow);
}

/* Navigation Bar */
.navbar {
  background: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.logo-container img {
  height: 55px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo-container img:hover {
  transform: scale(1.03);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 20px;
}

.nav-links a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  padding: 8px 18px;
  border-radius: 20px;
  transition: all 0.2s ease;
}

.nav-links a:hover, .nav-links a.active {
  background-color: #eff6ff;
  color: var(--school-blue);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}

/* Layout Container */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Playful Hero Banner */
.hero {
  padding: 50px 0;
  background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
  text-align: center;
  border-bottom: 2px dashed #cbd5e1;
}

.hero img {
  max-width: 100%;
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  margin-bottom: 25px;
  border: 4px solid #ffffff;
}

h1 {
  color: var(--primary-navy);
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 15px;
}

h2 {
  color: var(--school-blue);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 20px;
}

h3 {
  color: var(--primary-navy);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.btn-school {
  display: inline-block;
  padding: 12px 28px;
  background-color: var(--school-blue);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  border-radius: 25px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  transition: all 0.2s ease;
}

.btn-school:hover {
  background-color: var(--primary-navy);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(30, 58, 138, 0.3);
}

.content-section {
  padding: 60px 0;
}

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

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

/* School Cards */
.card {
  background: var(--bg-card);
  border: 2px solid var(--border-light);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--school-blue);
}

.card img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 18px;
  border: 1px solid var(--border-light);
}

/* Spam Protection for Email */
.email-protected::before {
  content: "admin" "@" "mmschoolwear.co.za";
}

/* Map Embed Container */
.map-container {
  width: 100%;
  height: 380px;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid var(--border-light);
  margin-top: 20px;
}

/* Footer (3-Column Black) */
.site-footer {
  background-color: #0b0f19;
  color: #94a3b8;
  padding: 50px 0 20px;
  font-size: 0.88rem;
  border-top: 5px solid var(--school-blue);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-col h4 {
  color: #ffffff;
  margin-bottom: 15px;
  font-size: 1.05rem;
  font-weight: 700;
}

.footer-col a {
  color: #cbd5e1;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--soft-yellow);
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #1e293b;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
  .top-bar .container {
    flex-direction: column;
    text-align: center;
  }
  .navbar .container {
    flex-direction: column;
    gap: 15px;
  }
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}