/* ===================================================================
   CONCEPT SCHOOLS JALALPUR CAMPUS - OFFICIAL WEBSITE STYLESHEET
   Core Design System & Global Styles
   =================================================================== */

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

:root {
  /* Brand Identity Colors */
  --primary-red: #D3232A;
  --primary-dark-red: #9B111E;
  --primary-deep-maroon: #7A0C14;
  --primary-light-red: #FFF1F2;
  --primary-hover-red: #B91C22;

  /* Neutral & Slate Palette */
  --text-dark: #1E293B;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --bg-white: #FFFFFF;
  --bg-light: #F8FAFC;
  --bg-light-alt: #F1F5F9;
  --border-color: #E2E8F0;
  --border-light: #F1F5F9;

  /* Accent Colors */
  --accent-gold: #F59E0B;
  --accent-gold-dark: #D97706;
  --accent-green: #10B981;
  --accent-blue: #0284C7;

  /* Shadows & Elevations */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-red: 0 10px 25px -5px rgba(211, 35, 42, 0.25);

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-urdu: 'Amiri', 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', serif;

  /* Transitions */
  --transition-fast: 0.18s ease;
  --transition-normal: 0.28s ease;
  --transition-slow: 0.45s cubic-bezier(0.16, 1, 0.3, 1);

  /* Container */
  --max-width: 1240px;
  --border-radius: 12px;
  --border-radius-lg: 18px;
  --border-radius-pill: 9999px;
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.65;
  overflow-x: hidden;
}

img, picture, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

ul, ol {
  list-style: none;
}

/* Typography Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.25;
}

h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.85rem); }
h4 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); }

p {
  color: var(--text-muted);
}

.urdu-text {
  font-family: var(--font-urdu);
  direction: rtl;
  letter-spacing: 0;
  line-height: 1.8;
}

/* Containers */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-narrow {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Section Spacing */
.section {
  padding: 5rem 0;
}

.section-sm {
  padding: 3rem 0;
}

.section-light {
  background-color: var(--bg-light);
}

.section-dark {
  background-color: #0F172A;
  color: #F8FAFC;
}

.section-dark p {
  color: #94A3B8;
}

.section-dark h2, .section-dark h3 {
  color: #FFFFFF;
}

.section-red {
  background: linear-gradient(135deg, var(--primary-deep-maroon) 0%, var(--primary-dark-red) 60%, var(--primary-red) 100%);
  color: #FFFFFF;
}

.section-red h2, .section-red h3, .section-red p {
  color: #FFFFFF;
}

/* Section Header Component */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-light-red);
  color: var(--primary-red);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.4rem 1rem;
  border-radius: var(--border-radius-pill);
  margin-bottom: 0.85rem;
  border: 1px solid rgba(211, 35, 42, 0.15);
}

.section-tag.light {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.25);
}

.section-title {
  margin-bottom: 1rem;
}

.section-title span {
  color: var(--primary-red);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-red { color: var(--primary-red) !important; }
.text-gold { color: var(--accent-gold) !important; }
.text-white { color: #FFFFFF !important; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Responsive Values Grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1200px) {
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 4rem 0; }
}

@media (max-width: 768px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; gap: 1.5rem; }
  .values-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .section { padding: 3rem 0; }
  .section-sm { padding: 2rem 0; }
  .container, .container-narrow {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }
}

@media (max-width: 480px) {
  .values-grid { grid-template-columns: 1fr; }
  .section-header { margin-bottom: 2.2rem; }
  .section-title { font-size: 1.65rem; }
}
