/*
Theme Name:        OK Model School
Theme URI:         https://okmodelschool.in
Description:       Custom child theme for OK Model School website. Built on Hello Elementor.
Author:            OK Model School
Author URI:        https://okmodelschool.in
Template:          hello-elementor
Version:           1.0.0
Text Domain:       ok-model-school
Tags:              education, school, cbse, custom, child-theme
*/

/* ============================================
   GLOBAL RESET & VARIABLES
   ============================================ */
:root {
  --navy: #0B1F3A;
  --gold: #C8952A;
  --gold-light: #E8B84B;
  --cream: #FDF8F0;
  --white: #FFFFFF;
  --gray: #6B7280;
  --light-gray: #F3F4F6;
  --dark: #0D0D0D;
  --red: #C0392B;
  --font-display: 'Playfair Display', serif;
  --font-body: 'DM Sans', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--navy);
  overflow-x: hidden;
}

/* Remove Hello Elementor default padding */
.elementor-section-wrap,
.e-con-inner { padding: 0 !important; }

/* Ensure full-width pages */
.site-main, .page-content, article.page { padding: 0; margin: 0; }

img { max-width: 100%; height: auto; }
a { text-decoration: none; }
ul { list-style: none; }

/* ============================================
   TYPOGRAPHY UTILITIES
   ============================================ */
.ok-label {
  display: inline-block;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.ok-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 16px;
}

.ok-title-white { color: white; }
.ok-desc { font-size: 16px; line-height: 1.8; color: var(--gray); }

/* ============================================
   BUTTON UTILITIES
   ============================================ */
.btn-primary {
  display: inline-block;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: white;
  border: none;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(200,149,42,0.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(200,149,42,0.5); color: white; }

.btn-secondary {
  display: inline-block;
  padding: 14px 32px;
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: white; color: white; }

.btn-white {
  display: inline-block;
  padding: 14px 36px;
  background: white;
  color: var(--gold);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.btn-white:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,0.2); color: var(--gold); }

/* ============================================
   NAVBAR
   ============================================ */
.ok-navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9990;
  padding: 0 48px;
  /* Always show a dark gradient so links are always visible */
  background: linear-gradient(to bottom, rgba(11,31,58,0.92) 0%, rgba(11,31,58,0.6) 70%, transparent 100%);
  transition: background 0.35s, box-shadow 0.35s;
}
.ok-navbar.scrolled {
  background: var(--navy) !important;
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
.ok-navbar.solid {
  background: var(--navy) !important;
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.ok-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  height: 80px;
}

/* ── LOGO ── */
.ok-logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }

.ok-logo-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 22px; font-weight: 900; color: white;
  box-shadow: 0 4px 15px rgba(200,149,42,0.4);
  flex-shrink: 0;
  letter-spacing: -1px;
}

/* School name — always white & fully visible */
.ok-logo-text span:first-child {
  display: block;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}
.ok-logo-text span:last-child {
  display: block;
  font-size: 10px;
  color: var(--gold-light);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ── NAV LINKS ── */
.ok-nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.ok-nav-links > li > a {
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  font-size: 14px; font-weight: 500;
  padding: 8px 14px; border-radius: 6px;
  transition: background 0.2s, color 0.2s;
  display: block;
}
.ok-nav-links > li > a:hover { background: rgba(255,255,255,0.1); color: var(--gold-light); }
.ok-nav-links .ok-nav-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-light)) !important;
  color: white !important; font-weight: 600 !important;
  box-shadow: 0 4px 15px rgba(200,149,42,0.35);
  border-radius: 8px !important;
}
.ok-nav-links .ok-nav-cta:hover { box-shadow: 0 6px 20px rgba(200,149,42,0.5) !important; transform: translateY(-1px); }

/* Dropdown */
.ok-nav-dropdown { position: relative; }
.ok-dropdown-menu {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: white; border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  padding: 8px; min-width: 200px;
  opacity: 0; visibility: hidden;
  transition: all 0.2s;
  list-style: none;
}
.ok-nav-dropdown:hover .ok-dropdown-menu {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.ok-dropdown-menu a {
  display: block; padding: 10px 16px; color: var(--navy) !important;
  text-decoration: none; border-radius: 8px; font-size: 13px;
  transition: background 0.2s;
}
.ok-dropdown-menu a:hover { background: var(--light-gray); color: var(--gold) !important; }

/* Mobile hamburger */
.ok-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.ok-hamburger span { width: 24px; height: 2px; background: white; border-radius: 2px; transition: all 0.3s; display: block; }
.ok-mobile-menu {
  display: none; flex-direction: column;
  background: var(--navy); padding: 16px;
  position: absolute; top: 80px; left: 0; right: 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.ok-mobile-menu.open { display: flex; }
.ok-mobile-menu a { color: rgba(255,255,255,0.85); padding: 12px 16px; font-size: 15px; border-bottom: 1px solid rgba(255,255,255,0.07); text-decoration: none; }
.ok-mobile-menu a:hover { color: var(--gold-light); }

/* ============================================
   PAGE HERO (inner pages)
   ============================================ */
.ok-page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a6b 100%);
  padding: 140px 48px 80px;
  text-align: center;
}
.ok-breadcrumb { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 18px; }
.ok-breadcrumb a, .ok-breadcrumb span { font-size: 13px; color: rgba(255,255,255,0.6); text-decoration: none; }
.ok-breadcrumb a:hover { color: var(--gold-light); }
.ok-breadcrumb .sep { color: rgba(255,255,255,0.3); }
.ok-page-hero h1 { font-family: var(--font-display); font-size: clamp(36px,5vw,64px); color: white; margin-bottom: 14px; }
.ok-page-hero p { color: rgba(255,255,255,0.75); font-size: 17px; max-width: 580px; margin: 0 auto; }

/* ============================================
   TICKER
   ============================================ */
.ok-ticker { background: var(--gold); padding: 11px 0; overflow: hidden; }
.ok-ticker-inner { display: flex; gap: 80px; animation: ok-ticker 30s linear infinite; white-space: nowrap; }
.ok-ticker-item { font-size: 12px; font-weight: 700; color: white; letter-spacing: 1.5px; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.ok-ticker-item::before { content: '★'; font-size: 9px; }
@keyframes ok-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================
   POPUP
   ============================================ */
.ok-popup-overlay {
  position: fixed; inset: 0;
  background: rgba(11,31,58,0.85);
  z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
  animation: ok-fadeIn 0.4s ease;
}
.ok-popup-overlay.ok-hidden { display: none; }
@keyframes ok-fadeIn { from { opacity: 0; } to { opacity: 1; } }
.ok-popup-box {
  background: white; border-radius: 20px;
  max-width: 540px; width: 100%;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.4);
  animation: ok-slideUp 0.45s cubic-bezier(0.16,1,0.3,1);
}
@keyframes ok-slideUp { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.ok-popup-head {
  background: linear-gradient(135deg, var(--navy), #1a3a6b);
  padding: 30px 32px; text-align: center; position: relative;
}
.ok-popup-head::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg,var(--gold),var(--gold-light),var(--gold)); }
.ok-popup-badge { display: inline-block; background: var(--gold); color: white; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; padding: 4px 14px; border-radius: 20px; margin-bottom: 10px; }
.ok-popup-head h2 { font-family: var(--font-display); color: white; font-size: 24px; margin-bottom: 6px; }
.ok-popup-head p { color: rgba(255,255,255,0.7); font-size: 13px; }
.ok-popup-close { position: absolute; top: 14px; right: 14px; background: rgba(255,255,255,0.15); border: none; color: white; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.ok-popup-close:hover { background: rgba(255,255,255,0.3); }
.ok-popup-body { padding: 28px 32px; }
.ok-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ok-form-group { margin-bottom: 14px; }
.ok-form-group label { display: block; font-size: 11px; font-weight: 700; color: var(--navy); margin-bottom: 5px; letter-spacing: 0.5px; text-transform: uppercase; }
.ok-form-group input, .ok-form-group select, .ok-form-group textarea {
  width: 100%; padding: 11px 14px;
  border: 2px solid #E5E7EB; border-radius: 8px;
  font-family: var(--font-body); font-size: 14px; color: var(--navy);
  background: var(--cream); transition: border-color 0.2s, box-shadow 0.2s;
}
.ok-form-group input:focus, .ok-form-group select:focus, .ok-form-group textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,149,42,0.12); }
.ok-form-submit {
  width: 100%; padding: 14px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: white; border: none; border-radius: 10px;
  font-family: var(--font-body); font-size: 15px; font-weight: 700;
  cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; margin-top: 6px;
}
.ok-form-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(200,149,42,0.4); }

/* ============================================
   FOOTER
   ============================================ */
.ok-footer { background: var(--dark); padding: 64px 48px 28px; }
.ok-footer-inner { max-width: 1400px; margin: 0 auto; }
.ok-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.ok-footer-brand h3 { font-family: var(--font-display); color: white; font-size: 22px; margin-bottom: 12px; }
.ok-footer-brand p { color: rgba(255,255,255,0.45); font-size: 14px; line-height: 1.8; }
.ok-footer-socials { display: flex; gap: 10px; margin-top: 20px; }
.ok-social-btn { width: 36px; height: 36px; background: rgba(255,255,255,0.07); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.5); font-size: 14px; text-decoration: none; transition: all 0.2s; font-weight: 700; }
.ok-social-btn:hover { background: var(--gold); color: white; }
.ok-footer-col h4 { color: var(--gold-light); font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; margin-bottom: 18px; font-weight: 700; }
.ok-footer-col ul { list-style: none; }
.ok-footer-col li { margin-bottom: 10px; }
.ok-footer-col a { color: rgba(255,255,255,0.45); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.ok-footer-col a:hover { color: var(--gold-light); }
.ok-footer-bottom { border-top: 1px solid rgba(255,255,255,0.07); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.ok-footer-bottom p { color: rgba(255,255,255,0.3); font-size: 13px; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .ok-navbar { padding: 0 20px; }
  .ok-nav-links { display: none; }
  .ok-hamburger { display: flex; }
  .ok-page-hero { padding: 110px 20px 60px; }
  .ok-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .ok-footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .ok-footer { padding: 48px 20px 24px; }
}
