/*
Theme Name: Nobles Spring School
Theme URI: https://noblesspringschool.com
Author: Nobles Spring School Development Team
Author URI: https://noblesspringschool.com
Description: A premium, modern, responsive WordPress theme for Nobles Spring School (Creche, Nursery & Primary) in Ibeju-Lekki, Lagos. Built for seamless Elementor drag-and-drop editing while maintaining rich animations, GSAP interactions, and tailored academic typography.
Version: 1.0.0
Tested up to: 6.7
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary
License URI: https://noblesspringschool.com
Text Domain: noblespring
Tags: education, school, modern, responsive-layout, elementor, custom-menu, featured-images, full-width-template
*/

/* --- Custom Variables & Tokens --- */
:root {
  --clr-teal: #005b61;
  --clr-teal-dark: #002022;
  --clr-teal-container: #1c757b;
  --clr-orange: #ae3200;
  --clr-orange-container: #fd5f29;
  --clr-bg: #f7fafa;
  --clr-surface: #ffffff;
  --clr-surface-container: #ebeeee;
  --clr-text: #181c1d;
  --clr-text-muted: #3f4949;
  
  --font-headline: 'Crimson Pro', serif;
  --font-body: 'Atkinson Hyperlegible', sans-serif;
  --font-display: 'Playfair Display', serif;
}

/* Base resets & typography */
body {
  font-family: var(--font-body);
  color: var(--clr-text);
  background-color: var(--clr-bg);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headline);
}

.font-display {
  font-family: var(--font-display);
}

.font-headline {
  font-family: var(--font-headline);
}

.font-body {
  font-family: var(--font-body);
}

/* --- Marquee Strip Styles --- */
.marquee-container,
.noblespring-marquee-wrap {
  background-color: #005b61 !important;
  color: #ffffff !important;
  padding: 14px 0 !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  display: flex !important;
  width: 100% !important;
  position: relative !important;
  z-index: 20 !important;
  box-sizing: border-box !important;
}

.marquee-content,
.noblespring-marquee-track {
  display: flex !important;
  width: max-content !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  -webkit-animation: marquee 26s linear infinite !important;
  animation: marquee 26s linear infinite !important;
  will-change: transform;
}

.marquee-content:hover,
.noblespring-marquee-wrap:hover .noblespring-marquee-track,
.noblespring-marquee-track:hover,
.animate-marquee:hover {
  -webkit-animation-play-state: paused !important;
  animation-play-state: paused !important;
}

.marquee-content span {
  margin: 0 35px !important;
  font-weight: 500 !important;
  font-size: 0.95rem !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  color: #ffffff !important;
  flex-shrink: 0 !important;
}

.marquee-content span strong {
  color: #ffffff !important;
  letter-spacing: 0.04em;
}

.marquee-content .material-symbols-outlined {
  color: #fd5f29 !important;
  font-size: 1.25rem !important;
  display: inline-flex !important;
  align-items: center !important;
}

@-webkit-keyframes marquee {
  0% {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
  100% {
    -webkit-transform: translate3d(-50%, 0, 0);
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes marquee {
  0% {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
  100% {
    -webkit-transform: translate3d(-50%, 0, 0);
    transform: translate3d(-50%, 0, 0);
  }
}

@-webkit-keyframes marqueeScroll {
  0% {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
  100% {
    -webkit-transform: translate3d(-50%, 0, 0);
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes marqueeScroll {
  0% {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
  100% {
    -webkit-transform: translate3d(-50%, 0, 0);
    transform: translate3d(-50%, 0, 0);
  }
}

.animate-marquee {
  display: flex !important;
  width: max-content !important;
  -webkit-animation: marquee 30s linear infinite !important;
  animation: marquee 30s linear infinite !important;
}

/* Lightbox styles */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox .close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox .close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.08);
}

.lightbox .nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox .nav-btn:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-50%) scale(1.1);
}

.lightbox .nav-btn.prev { left: 24px; }
.lightbox .nav-btn.next { right: 24px; }

/* Marquee continuous scroll */
@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.animate-marquee {
  display: flex;
  width: max-content;
  animation: marqueeScroll 35s linear infinite;
}

.animate-marquee:hover {
  animation-play-state: paused;
}

/* Hero Slides */
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 32, 34, 0.88) 0%, rgba(0, 91, 97, 0.72) 50%, rgba(174, 50, 0, 0.5) 100%);
}

.slider-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.6);
  transform: scale(1.06);
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot.active {
  width: 32px;
  border-radius: 9999px;
  background: #ffffff;
}

/* Gallery Hover overlays */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0, 91, 97, 0.15);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 32, 34, 0.92) 0%, rgba(0, 91, 97, 0.4) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: #ffffff;
}

.gallery-item:hover .overlay {
  opacity: 1;
}

.gallery-item .cat-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 0.5rem;
  width: fit-content;
}

.filter-pill {
  cursor: pointer;
  transition: all 0.25s ease;
}

.filter-pill.active {
  background-color: var(--clr-teal);
  color: #ffffff;
  border-color: var(--clr-teal);
}

/* Animations support */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].revealed,
.elementor-editor-active [data-reveal],
.elementor-editor-preview [data-reveal],
body.elementor-page [data-reveal],
.elementor [data-reveal],
.elementor-section [data-reveal],
.elementor-widget [data-reveal] {
  opacity: 1 !important;
  transform: none !important;
}

body.elementor-editor-active,
body.elementor-editor-preview {
  overflow: auto !important;
}

.elementor-editor-active #navbar {
  position: relative !important;
}

.elementor-editor-active .hero-slide,
.elementor-editor-preview .hero-slide {
  opacity: 1 !important;
  position: relative !important;
}
