/*
Theme Name: Mazen Schools Sargodha
Theme URI: https://mazenschools.edu.pk
Author: Mazen Schools
Author URI: https://mazenschools.edu.pk
Description: Modern, warm-gradient WordPress theme for Mazen Schools Sargodha Campus. Features Turkish-standard education branding, floating navigation, smooth animations, and a coral/orange palette inspired by jeton.com.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mazen-schools
Tags: education, school, custom-menu, custom-logo, featured-images, full-width-template, threaded-comments, translation-ready
*/

:root {
  --background: hsl(30, 30%, 98%);
  --foreground: hsl(15, 25%, 12%);
  --card: hsl(0, 0%, 100%);
  --primary: hsl(354, 82%, 46%);
  --primary-foreground: hsl(0, 0%, 100%);
  --secondary: hsl(42, 92%, 55%);
  --muted: hsl(42, 40%, 96%);
  --muted-foreground: hsl(15, 10%, 40%);
  --border: hsl(42, 30%, 88%);
  --radius: 0.75rem;
  --gradient-warm: linear-gradient(135deg, hsl(354,82%,46%), hsl(354,75%,52%), hsl(42,92%,55%));
  --gradient-hero: linear-gradient(160deg, hsl(354,85%,42%), hsl(354,78%,50%), hsl(20,80%,50%));
  --gradient-cta: linear-gradient(135deg, hsl(42,92%,55%), hsl(354,82%,46%));
}

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4,h5,h6 { font-family: 'Space Grotesk', sans-serif; font-weight: 700; line-height: 1.2; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .8; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* Floating Nav */
.floating-nav {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  background: hsla(0,0%,100%,.85); backdrop-filter: blur(20px);
  border: 1px solid hsla(0,0%,100%,.3); border-radius: 999px;
  padding: .6rem 1rem; display: flex; gap: .25rem; z-index: 100;
  box-shadow: 0 10px 40px hsla(15,25%,12%,.15);
}
.floating-nav a {
  padding: .55rem 1.1rem; border-radius: 999px; color: var(--foreground);
  font-weight: 500; font-size: .9rem; transition: all .2s;
}
.floating-nav a:hover, .floating-nav a.active { background: var(--gradient-warm); color: #fff; opacity: 1; }

/* Hero */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  justify-content: center; overflow: hidden; color: #fff; text-align: center;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: var(--gradient-hero); opacity: .85; }
.hero-content { position: relative; z-index: 2; padding: 0 1.5rem; max-width: 800px; }
.hero-logo { width: 110px; height: 110px; margin: 0 auto 1.5rem; filter: drop-shadow(0 10px 30px rgba(0,0,0,.3)); }
.hero-badge {
  display: inline-block; padding: .5rem 1.2rem; border-radius: 999px;
  background: hsla(0,0%,100%,.15); backdrop-filter: blur(10px);
  font-size: .9rem; font-weight: 500; margin-bottom: 1.5rem;
}
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); margin-bottom: 1rem; }
.hero h1 span { display: block; font-size: .6em; font-weight: 500; opacity: .9; margin-top: .5rem; }
.hero p { font-size: 1.15rem; opacity: .9; margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 2rem; border-radius: 999px; font-weight: 600;
  font-size: 1rem; cursor: pointer; border: none; transition: all .25s;
}
.btn-primary { background: #fff; color: var(--foreground); box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.btn-primary:hover { transform: translateY(-2px); opacity: 1; }
.btn-outline { background: transparent; color: #fff; border: 1px solid hsla(0,0%,100%,.3); }
.btn-warm { background: var(--gradient-warm); color: #fff; }

/* Stats */
.stats {
  margin: -4rem auto 0; max-width: 1100px; position: relative; z-index: 5;
  background: hsla(0,0%,100%,.9); backdrop-filter: blur(20px);
  border-radius: 1.5rem; padding: 2rem; box-shadow: 0 20px 60px rgba(0,0,0,.15);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}
.stat { text-align: center; }
.stat-num { font-family: 'Space Grotesk', sans-serif; font-size: 2.25rem; font-weight: 700; color: var(--foreground); }
.stat-label { font-size: .9rem; color: var(--muted-foreground); }

/* Sections */
section.block { padding: 6rem 0; }
section.block.muted { background: var(--muted); }
.section-eyebrow { color: var(--primary); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.section-title { font-size: clamp(2rem, 4vw, 3rem); margin: .75rem 0 3rem; }
.section-head { text-align: center; margin-bottom: 3rem; }

/* Feature grid */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem; transition: all .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,.08); border-color: hsla(354,82%,46%,.2); }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--gradient-warm);
  display: flex; align-items: center; justify-content: center; color: #fff;
  font-size: 1.5rem; margin-bottom: 1rem;
}
.card h3 { font-size: 1.25rem; margin-bottom: .75rem; }
.card p { color: var(--muted-foreground); }

/* CTA */
.cta-banner {
  background: var(--gradient-cta); border-radius: 2rem; padding: 4rem 2rem;
  text-align: center; color: #fff; margin: 4rem auto; max-width: 1100px;
}
.cta-banner h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
.cta-banner p { opacity: .9; margin-bottom: 2rem; }

/* Footer */
.site-footer { background: hsl(15,20%,8%); color: hsl(30,20%,95%); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.site-footer h4 { color: #fff; margin-bottom: 1rem; font-size: 1.1rem; }
.site-footer a { color: hsl(30,10%,70%); display: block; padding: .25rem 0; }
.site-footer a:hover { color: var(--secondary); }
.footer-bottom { border-top: 1px solid hsla(0,0%,100%,.1); padding-top: 1.5rem; text-align: center; color: hsl(30,10%,60%); font-size: .9rem; }

/* Forms */
.form-row { margin-bottom: 1.25rem; }
.form-row label { display: block; margin-bottom: .5rem; font-weight: 500; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: .85rem 1rem; border: 1px solid var(--border);
  border-radius: var(--radius); font-family: inherit; font-size: 1rem;
  background: var(--card); color: var(--foreground);
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px hsla(354,82%,46%,.1);
}

/* Responsive */
@media (max-width: 768px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .floating-nav { padding: .4rem .5rem; gap: 0; bottom: 1rem; max-width: calc(100% - 2rem); overflow-x: auto; }
  .floating-nav a { padding: .5rem .75rem; font-size: .8rem; white-space: nowrap; }
  section.block { padding: 4rem 0; }
}

/* Animations */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp .8s ease-out forwards; }

/* Page header (inner pages) */
.page-hero {
  background: var(--gradient-hero); color: #fff; padding: 8rem 0 5rem;
  text-align: center;
}
.page-hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 1rem; }
.page-hero p { opacity: .9; font-size: 1.1rem; max-width: 600px; margin: 0 auto; }
