/* =========================
   FOUNTAIN GROUP OF SCHOOLS
   style.css
   ========================= */

:root {
  --primary: #182857;
  --secondary: #e22726;
  --nav-bg: rgba(255,255,255,0.98);
  --text: #172756;
  --muted-opaque: rgba(23,40,87,0.06);
  --card-radius: 14px;
}

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

body {
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== NAVBAR ===== */

nav {
  background-color: #ffffff;
  border-bottom: 3px solid #e22726;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #182857;
  font-weight: 700;
  font-size: 1.2rem;
}

.logo-img {
  height: 50px;
  width: auto;
  margin-right: 10px;
  transition: transform 0.3s ease;
}

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

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

.nav-links li a {
  text-decoration: none;
  color: #182857;
  font-weight: 600;
  transition: color 0.3s ease, border-bottom 0.3s ease;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.nav-links li a:hover {
  color: #e22726;
  border-bottom: 2px solid #e22726;
}

/* ===== MOBILE MENU ===== */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #182857;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background-color: #ffffff;
    width: 100%;
    text-align: left;
    position: absolute;
    top: 70px;
    left: 0;
    padding: 20px;
    border-top: 2px solid #e22726;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  }

  .nav-links.active { display: flex; }
  .nav-links li { margin: 12px 0; }
  .mobile-menu-btn { display: block; }
}

/* ===== HERO ===== */
.hero {
  height: 80vh;
  background-image: url('public/images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-top: 72px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(24,40,87,0.75), rgba(226,39,38,0.55));
  backdrop-filter: contrast(1.02);
}

.hero-content {
  position: relative;
  color: white;
  text-align: center;
  padding: 2rem;
  max-width: 960px;
}

.hero h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.4rem;
  margin-bottom: 1rem;
  letter-spacing: .3px;
}

.hero p { opacity: .95; }

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.btn {
  padding: .9rem 1.6rem;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: var(--secondary);
  color: white;
  box-shadow: 0 6px 18px rgba(24,40,87,0.12);
}

.btn-primary:hover {
  background: #25d366; /* WhatsApp green */
  color: #fff;
}

/* ===== SECTIONS ===== */
section { padding: 4.5rem 1rem; }
.container { max-width: 1200px; margin: 0 auto; }

.section-title {
  text-align: center;
  font-family: 'Poppins', sans-serif;
  color: var(--primary);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background-color: #e22726;
  margin: 12px auto 0;
  border-radius: 2px;
}

/* ===== OUR SCHOOLS ===== */
#schools {
  padding: 80px 20px;
  background: #f9f9fc;
}

.schools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.school-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.school-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.school-image {
  width: 100%;
  height: 280px;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
  background-color: #eef1f5;
  border-bottom: 4px solid #e22726;
}

.school-content {
  padding: 1.5rem;
  text-align: center;
}

.school-content h3 {
  color: #182857;
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}

.school-content p {
  color: #555;
  margin: 0.3rem 0;
  font-size: 0.95rem;
}
/* ===== FACILITIES (Updated) ===== */
#facilities {
  padding: 80px 20px;
  background: #fff;
}

.facilities-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.facility-item {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.facility-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.facility-image {
  width: 100%;
  height: 240px;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain; /* ✅ prevents cropping */
  background-color: #eef1f5;
  border-bottom: 4px solid #e22726;
}

.facility-content {
  padding: 1.25rem;
}

.facility-content h4 {
  color: var(--primary);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.facility-content p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ===== Mobile Optimization ===== */
@media (max-width: 768px) {
  .facility-image {
    height: 180px;
    background-size: cover; /* fills mobile cards */
  }

  .facility-content h4 {
    font-size: 1rem;
  }
}

/* ===== ACTIVITIES ===== */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}

.activity-item {
  padding: 1.25rem;
  border-radius: 12px;
  background: #fff;
  border: 1px dashed rgba(23,40,87,0.1);
  text-align: center;
  transition: transform 0.3s ease, background 0.3s ease;
}

.activity-item:hover {
  background: rgba(226,39,38,0.05);
  transform: translateY(-4px);
}

.activity-item h4 {
  color: var(--primary);
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

/* ===== GALLERY ===== */
#gallery {
  padding: 80px 20px;
  background: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.gallery-item {
  width: 100%;
  height: 280px;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
  background-color: #eef1f5;
  border-bottom: 4px solid #e22726;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* ===== CONTACT ===== */
#contact {
  padding: 80px 20px;
  background: #f9f9fc;
}

.contact-content {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  text-align: left;
  margin-bottom: 1.5rem;
}

.contact-info {
  flex: 1 1 280px;
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.contact-info h3 {
  color: #182857;
  margin-bottom: 0.6rem;
}

.contact-info p {
  color: #555;
  margin: 0.3rem 0;
}

/* WhatsApp Buttons */
.whatsapp-buttons {
  text-align: center;
  margin-top: 1.25rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.whatsapp-buttons .btn {
  min-width: 240px;
  text-align: center;
}

/* ===== FOOTER ===== */
footer {
  padding: 2rem 1rem;
  background: #172756;
  color: #fff;
}

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

.footer-links ul { list-style: none; padding: 0; }
.footer-links a { color: var(--secondary); text-decoration: none; }

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

.social-icon {
  color: var(--secondary);
  font-size: 1.6rem;
  transition: color .25s, transform .25s;
}

.social-icon:hover {
  color: #e12625;
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  font-size: .9rem;
  margin-top: 1.2rem;
  border-top: 1px solid rgba(23,40,87,0.2);
  padding-top: 1rem;
}

/* Responsive Tweaks */
@media (max-width: 768px) {
  .school-image, .gallery-item { height: 200px; background-size: cover; }
  .hero h1 { font-size: 1.8rem; }
}
