/*
Theme Name: The Oxfordian School
Theme URI: https://www.oxfordian.edu.pk
Author: Oxfordian Digital
Author URI: https://www.oxfordian.edu.pk
Description: A world-class, futuristic, premium school website theme for The Oxfordian School Pakistan. Elementor-first, Apple-level UI, Tesla-level minimalism, Harvard-level credibility.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: oxfordian
Tags: education, elementor, premium, school, responsive, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============================================================
   OXFORDIAN DESIGN TOKENS — GLOBAL CSS VARIABLES
   ============================================================ */
:root {
  /* Brand Colors — Exact from Logo */
  --ox-red:          #C0272C;
  --ox-red-deep:     #961E22;
  --ox-red-light:    #D63338;
  --ox-red-glow:     rgba(192, 39, 44, 0.12);
  --ox-navy:         #0A172A;
  --ox-navy-mid:     #0F2040;
  --ox-navy-light:   #162E56;
  --ox-gold:         #B8922A;
  --ox-gold-light:   #D4A83A;
  --ox-white:        #FFFFFF;
  --ox-off-white:    #F8F7F5;
  --ox-cream:        #FAF9F7;
  --ox-gray-100:     #F5F4F2;
  --ox-gray-200:     #E8E6E3;
  --ox-gray-300:     #D1CEC9;
  --ox-gray-500:     #8C8984;
  --ox-gray-700:     #4A4845;
  --ox-gray-900:     #1C1B1A;

  /* Typography Scale */
  --font-display:    'Playfair Display', 'Georgia', serif;
  --font-heading:    'Montserrat', 'Helvetica Neue', sans-serif;
  --font-body:       'DM Sans', 'Helvetica Neue', sans-serif;
  --font-mono:       'JetBrains Mono', monospace;

  /* Type Scale */
  --text-xs:    0.75rem;
  --text-sm:    0.875rem;
  --text-base:  1rem;
  --text-lg:    1.125rem;
  --text-xl:    1.25rem;
  --text-2xl:   1.5rem;
  --text-3xl:   1.875rem;
  --text-4xl:   2.25rem;
  --text-5xl:   3rem;
  --text-6xl:   3.75rem;
  --text-7xl:   4.5rem;
  --text-8xl:   6rem;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radii */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-2xl:  32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(10,22,40,0.08), 0 1px 2px rgba(10,22,40,0.06);
  --shadow-md:   0 4px 16px rgba(10,22,40,0.10), 0 2px 6px rgba(10,22,40,0.06);
  --shadow-lg:   0 10px 40px rgba(10,22,40,0.14), 0 4px 12px rgba(10,22,40,0.08);
  --shadow-xl:   0 24px 64px rgba(10,22,40,0.18), 0 8px 24px rgba(10,22,40,0.10);
  --shadow-red:  0 8px 32px rgba(192,39,44,0.28);
  --shadow-gold: 0 8px 32px rgba(184,146,42,0.22);

  /* Transitions */
  --ease-smooth:  cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-expo:    cubic-bezier(0.87, 0, 0.13, 1);
  --duration-fast: 150ms;
  --duration-base: 300ms;
  --duration-slow: 600ms;
  --duration-slower: 900ms;

  /* Layout */
  --container-max: 1320px;
  --container-wide: 1520px;
  --header-height: 80px;
  --section-pad: clamp(4rem, 8vw, 8rem);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--ox-gray-900);
  background-color: var(--ox-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-base) var(--ease-smooth);
}

ul, ol { list-style: none; }

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

/* ============================================================
   TYPOGRAPHY SYSTEM
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ox-navy);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, var(--text-7xl)); }
h2 { font-size: clamp(2rem, 3.5vw, var(--text-5xl)); }
h3 { font-size: clamp(1.5rem, 2.5vw, var(--text-3xl)); }
h4 { font-size: clamp(1.25rem, 2vw, var(--text-2xl)); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
  color: var(--ox-gray-700);
  line-height: 1.8;
}

.display-heading {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.overline {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ox-red);
}

/* ============================================================
   CONTAINER SYSTEM
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem);
}

.container--wide {
  max-width: var(--container-wide);
}

.container--narrow {
  max-width: 860px;
}

/* ============================================================
   BUTTON SYSTEM
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.875rem 2rem;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-smooth);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  text-decoration: none;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  transform: translateX(-100%) skewX(-10deg);
  transition: transform var(--duration-slow) var(--ease-expo);
}

.btn:hover::before {
  transform: translateX(100%) skewX(-10deg);
}

.btn--primary {
  background: var(--ox-red);
  color: var(--ox-white);
  box-shadow: var(--shadow-red);
}

.btn--primary:hover {
  background: var(--ox-red-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(192,39,45,0.35);
  color: var(--ox-white);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--outline {
  background: transparent;
  color: var(--ox-navy);
  border-color: var(--ox-navy);
}

.btn--outline:hover {
  background: var(--ox-navy);
  color: var(--ox-white);
  transform: translateY(-2px);
}

.btn--outline-white {
  background: transparent;
  color: var(--ox-white);
  border-color: rgba(255,255,255,0.5);
}

.btn--outline-white:hover {
  background: var(--ox-white);
  color: var(--ox-navy);
  border-color: var(--ox-white);
}

.btn--gold {
  background: var(--ox-gold);
  color: var(--ox-navy);
}

.btn--gold:hover {
  background: var(--ox-gold-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
  color: var(--ox-navy);
}

.btn--lg {
  padding: 1.125rem 2.5rem;
  font-size: var(--text-base);
}

.btn--sm {
  padding: 0.625rem 1.5rem;
  font-size: var(--text-xs);
}

.btn svg, .btn .btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform var(--duration-base) var(--ease-spring);
}

.btn:hover svg, .btn:hover .btn-icon {
  transform: translateX(3px);
}

/* ============================================================
   CARD SYSTEM (GLASSMORPHISM + ELEVATION)
   ============================================================ */
.card {
  background: var(--ox-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: all var(--duration-slow) var(--ease-smooth);
  border: 1px solid rgba(255,255,255,0.8);
  position: relative;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.card--glass {
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.4);
}

.card--dark {
  background: var(--ox-navy-mid);
  border-color: rgba(255,255,255,0.08);
  color: var(--ox-white);
}

.card--dark h3, .card--dark h4 {
  color: var(--ox-white);
}

.card--dark p {
  color: rgba(255,255,255,0.7);
}

.card--red {
  background: var(--ox-red);
  color: var(--ox-white);
}

.card--featured {
  border: 2px solid var(--ox-red);
  box-shadow: var(--shadow-red), var(--shadow-lg);
}

/* ============================================================
   BENTO GRID SYSTEM
   ============================================================ */
.bento-grid {
  display: grid;
  gap: var(--space-4);
}

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

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

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

.bento-item {
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
}

.bento-item--span2 { grid-column: span 2; }
.bento-item--span3 { grid-column: span 3; }
.bento-item--tall  { grid-row: span 2; }

/* ============================================================
   SECTION SYSTEM
   ============================================================ */
.section {
  padding: var(--section-pad) 0;
  position: relative;
}

.section--dark {
  background: var(--ox-navy);
  color: var(--ox-white);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--ox-white);
}

.section--dark p {
  color: rgba(255,255,255,0.75);
}

.section--gray {
  background: var(--ox-gray-100);
}

.section--cream {
  background: var(--ox-cream);
}

.section-header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-header--centered {
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.875rem, 3.5vw, var(--text-5xl));
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-top: var(--space-3);
  margin-bottom: var(--space-5);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--ox-gray-700);
  max-width: 600px;
  line-height: 1.7;
}

/* ============================================================
   BADGE / TAG SYSTEM
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.375rem 1rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge--red {
  background: var(--ox-red-glow);
  color: var(--ox-red);
  border: 1px solid rgba(192,39,45,0.2);
}

.badge--navy {
  background: rgba(10,22,40,0.08);
  color: var(--ox-navy);
  border: 1px solid rgba(10,22,40,0.12);
}

.badge--gold {
  background: rgba(201,168,76,0.12);
  color: var(--ox-gold);
  border: 1px solid rgba(201,168,76,0.25);
}

.badge--white {
  background: rgba(255,255,255,0.15);
  color: var(--ox-white);
  border: 1px solid rgba(255,255,255,0.25);
}

.badge--pulse::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

/* ============================================================
   DIVIDER / DECORATIVE ELEMENTS
   ============================================================ */
.divider {
  width: 60px;
  height: 4px;
  background: var(--ox-red);
  border-radius: var(--radius-full);
  margin: var(--space-5) 0;
}

.divider--centered { margin: var(--space-5) auto; }
.divider--gold { background: var(--ox-gold); }
.divider--wide { width: 100px; }

/* Decorative dots pattern */
.dots-pattern {
  background-image: radial-gradient(circle, rgba(10,22,40,0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Gradient overlays */
.gradient-overlay {
  background: linear-gradient(135deg, var(--ox-navy) 0%, var(--ox-navy-mid) 50%, var(--ox-red-deep) 100%);
}

.gradient-red-navy {
  background: linear-gradient(135deg, var(--ox-red) 0%, var(--ox-navy) 100%);
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-red   { color: var(--ox-red) !important; }
.text-navy  { color: var(--ox-navy) !important; }
.text-gold  { color: var(--ox-gold) !important; }
.text-white { color: var(--ox-white) !important; }
.text-muted { color: var(--ox-gray-500) !important; }

.bg-red   { background-color: var(--ox-red) !important; }
.bg-navy  { background-color: var(--ox-navy) !important; }
.bg-white { background-color: var(--ox-white) !important; }
.bg-cream { background-color: var(--ox-cream) !important; }

.fw-400 { font-weight: 400; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.fw-900 { font-weight: 900; }

.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.relative { position: relative; }
.overflow-hidden { overflow: hidden; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* ============================================================
   GRID LAYOUTS
   ============================================================ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-6); }

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .bento-grid--4col { grid-template-columns: repeat(2, 1fr); }
  .bento-item--span2,
  .bento-item--span3 { grid-column: span 1; }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --header-height: 70px;
    --section-pad: clamp(3rem, 8vw, 5rem);
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .bento-grid--3col,
  .bento-grid--4col {
    grid-template-columns: 1fr;
  }

  .bento-item--span2,
  .bento-item--span3,
  .bento-item--tall {
    grid-column: span 1;
    grid-row: span 1;
  }

  .btn--lg {
    padding: 1rem 2rem;
    font-size: var(--text-sm);
  }

  .section-title {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
  }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .ox-header, .ox-footer, .whatsapp-float, .btn { display: none !important; }
}
