/* =========================================================
   OLA SENIOR HIGH SCHOOL, HO - MAIN STYLESHEET
   Purpose: Professional, responsive school website design
   Author: Customized template for OLA SHS, Ho
   ========================================================= */

:root {
  --primary: #062b70;
  --primary-dark: #031942;
  --primary-soft: #eef5ff;
  --accent: #c9a646;
  --accent-light: #fff5d6;
  --bg: #f6f9ff;
  --white: #ffffff;
  --text: #102033;
  --muted: #667085;
  --line: rgba(6, 43, 112, 0.12);
  --shadow: 0 24px 70px rgba(6, 43, 112, 0.14);
  --radius-sm: 14px;
  --radius-md: 24px;
  --radius-lg: 36px;
  --transition: 0.28s ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: min(1440px, 90%);
  margin: 0 auto;
}

/* TOP STRIP */
.top-strip {
  background: var(--primary-dark);
  color: var(--white);
  font-size: 0.9rem;
  height:60px;
}

.top-strip a {
  color: var(--white);
  font-weight: 700;
}

.top-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
}

/* HEADER & NAVIGATION */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 4px solid var(--accent);
  box-shadow: 0 10px 28px rgba(6, 43, 112, 0.06);
}

.navbar {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 260px;
}

.brand img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.brand strong {
  display: block;
  color: var(--primary);
  font-size: 26px;
  line-height: 1.15;
  text-transform: uppercase;
}

.brand small {
  display: block;
  color: var(--muted);
  font-weight: 700;
  margin-top: 0.15rem;
  font-size: 16px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  font-weight: 800;
  color: #344054;
}

.nav-links a:not(.btn) {
  position: relative;
  padding: 0.55rem 0;
}

.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  background: var(--accent);
  border-radius: 999px;
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  border: 0;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.95rem;
  font-size: 1.2rem;
  cursor: pointer;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.9rem 1.35rem;
  font-weight: 900;
  border: 1px solid transparent;
  transition: var(--transition);
  box-shadow: 0 16px 34px rgba(6, 43, 112, 0.18);
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #0b4ab3);
  color: var(--white);
}

.btn-light {
  background: rgba(255, 255, 255, 0.88);
  color: var(--primary);
  border-color: rgba(255, 255, 255, 0.75);
}

/* HERO SECTIONS */
.hero {
  position: relative;
  min-height: 690px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  animation: heroZoom 18s ease-in-out infinite alternate;
  transition: all 0.5s ease;
}

.hero-home {
  background-image: url('../images/campus1.png');
}

.hero-admission {
  background-image: url('../images/campus 5.png');
}

.hero-contact {
  background-image: url('../images/campus4.png');
}

@keyframes heroZoom {
  0% {
    background-size: 100%;
    background-position: center center;
  }

  25% {
    background-size: 105%;
    background-position: center top;
  }

  50% {
    background-size: 110%;
    background-position: center center;
  }

  75% {
    background-size: 115%;
    background-position: center bottom;
  }

  100% {
    background-size: 120%;
    background-position: center center;
  }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    95deg,
    rgba(0, 0, 0, 0.52),
    rgba(0, 0, 0, 0.42),
    rgba(0, 0, 0, 0.32)
  );
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.2rem;
  align-items: center;
  padding: 6rem 0;
}

.hero__content {
  color: var(--white);
  max-width: 760px;
  animation: heroContentFade 1.4s ease;
}

.hero h1 {
  margin: 1rem 0 1.1rem;
  font-size: clamp(1.2rem, 3vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.hero .lead {
  max-width: 650px;
  font-size: 1.18rem;
  color: rgba(255, 255, 255, 0.88);
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.hero-card {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  animation: floatingCard 5s ease-in-out infinite;
}

.hero-card h2 {
  color: var(--primary);
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0.5rem 0 0.8rem;
}

@keyframes heroZoom {
  0% {
    background-size: 100%;
    background-position: center center;
  }

  50% {
    background-size: 125%;
    background-position: center center;
  }

  100% {
    background-size: 100%;
    background-position: center center;
  }
}

.value-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.3rem;
}

.value-list span {
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  font-weight: 800;
}

/* TYPOGRAPHY HELPERS */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--accent-light);
  color: var(--primary);
  border: 1px solid rgba(201, 166, 70, 0.32);
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.eyebrow-soft {
  background: rgba(255, 245, 214, 0.9);
}

.section {
  padding: 5.6rem 0;
}

.section-white {
  background: var(--white);
}

.section-soft {
  background: linear-gradient(180deg, var(--bg), #ffffff);
}

.section-heading {
  max-width: 780px;
  margin: 0 auto 2.2rem;
  text-align: center;
}

.section-heading h2,
.split-grid h2,
.cta h2 {
  color: var(--primary);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin: 0.9rem 0 0.85rem;
}

/* STATS SECTION */
.stats-section {
  position: relative;
  z-index: 3;
  margin-top: -4rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

#stats-bg {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #eef3fb 0%, #dfe9fb 45%, #9fbdf5 75%, #2f63c7 100%);
}

#stats-bg::before {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -55%;
  height: 85%;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 50% 50% 0 0;
  transform: rotate(-4deg);
}

#stats-bg::after {
  content: "";
  position: absolute;
  left: -15%;
  right: -15%;
  bottom: -68%;
  height: 90%;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50% 50% 0 0;
  transform: rotate(5deg);
}

#stats-bg > * {
  position: relative;
  z-index: 2;
}

.stat-card {
  padding: 1.6rem;
  text-align: center;
  border-right: 1px solid var(--line);
}

.stat-card:last-child {
  border-right: 0;
}

.stat-card strong {
  display: block;
  color: var(--primary);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.1;
}

.stat-card span {
  color: var(--muted);
  font-weight: 800;
}

/* CARDS, GRIDS & IMAGE PANELS */
.cards {
  display: grid;
  gap: 1.35rem;
}

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

.program-grid {
  grid-template-columns: repeat(5, 1fr);
}

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

.card,
.contact-card,
.step-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  box-shadow: 0 18px 48px rgba(6, 43, 112, 0.08);
  transition: var(--transition);
}

.card:hover,
.news-card:hover,
.contact-card:hover,
.step-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow);
}

.icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 18px;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), #0b4ab3);
  font-weight: 900;
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.image-panel {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  min-height: 420px;
}

.image-panel img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

/* NEWS CARDS */
.news-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 48px rgba(6, 43, 112, 0.08);
  transition: var(--transition);
}

.news-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.news-card div {
  padding: 1.3rem;
}

/* ADMISSION STEPS */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.step-card span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  color: var(--white);
  background: var(--primary);
  border-radius: 16px;
  font-weight: 950;
}

/* CALL TO ACTION */
.cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: 3rem;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), #0b4ab3);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.cta h2,
.cta p {
  color: var(--white);
}

/* CONTACT PAGE */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.35rem;
}

.contact-card a {
  color: var(--primary);
  font-weight: 800;
}

.map-card {
  position: relative;
  min-height: 430px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.35)),
    url('../images/campus 1.jpg') center/cover;
}

.map-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(320px, 86%);
  transform: translate(-50%, -50%);
  padding: 1.4rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.map-pin h3 {
  color: var(--primary);
  margin-top: 0;
}

/* FOOTER */
.site-footer {
  background: var(--primary-dark);
  color: var(--white);
  padding: 3.5rem 0 1.3rem;
}

.site-footer h3 {
  color: var(--white);
  margin-top: 0;
}

.site-footer p,
.site-footer a {
  display: block;
  color: #dbe7ff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 2rem;
}

.copyright {
  margin-top: 2rem;
  padding-top: 1rem;
  text-align: center;
  color: #dbe7ff;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.floating-call {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: var(--white);
  background: #20b857;
  border-radius: 50%;
  font-weight: 900;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.25);
}

/* SCROLL REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: 0.75s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE DESIGN */
@media (max-width: 1040px) {
  .program-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 860px) {
  .top-strip__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .top-strip {
    display: none;
  }

  .navbar {
    min-height: 78px;
  }

  .brand img {
    width: 54px;
    height: 54px;
  }

  .brand strong {
    font-size: 0.9rem;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    left: 4%;
    right: 4%;
    top: 92px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.2rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .hero {
    min-height: 520px;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    animation: none !important;
  }

  .hero-card {
    animation: none !important;
  }

  .hero__grid,
  .split-grid,
  .cta,
  .footer-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero__grid {
    padding: 5rem 0;
  }

  .stats-section {
    margin-top: 0;
  }

  .stats-grid,
  .three-columns,
  .program-grid,
  .news-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stat-card:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 4.2rem 0;
  }

  .cta {
    padding: 2rem;
  }
}

@media (max-width: 520px) {
  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: 560px;
  }

  .hero h1 {
    font-size: 2.45rem;
  }

  .hero-card {
    padding: 1.4rem;
  }
}