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

/* =========================================================
   1. DESIGN TOKENS / GLOBAL VARIABLES
   Change these values to update the theme quickly.
   ========================================================= */
: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;
}

/* =========================================================
   2. BASE RESET
   Keeps spacing and sizing consistent across browsers.
   ========================================================= */
* {
  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);
}

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

/* =========================================================
   3. TOP STRIP
   Small bar above the navigation for motto and contact.
   ========================================================= */
.top-strip {
  background: var(--primary-dark);
  color: var(--white);
  font-size: 0.9rem;
}

.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.55rem 0;
}

/* =========================================================
   4. HEADER & NAVIGATION
   Sticky navigation with logo, menu links and CTA button.
   ========================================================= */
.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: 1.03rem;*/
  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;
  text-decoration: none;
}

.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;
}

/* =========================================================
   5. BUTTONS
   Shared button styles used across all pages.
   ========================================================= */
.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);
}

/* =========================================================
   6. HERO SECTIONS
   Large opening banners for home, admission and contact pages.
   ========================================================= */
.hero {
  position: relative;
  min-height: 690px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

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

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

.hero-contact {
  background-image: url('../images/campus 4.jpg');
}

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

.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;
}

.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);
}

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

.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;
}

/* =========================================================
   7. TYPOGRAPHY HELPERS
   Section labels, headings and common layouts.
   ========================================================= */
.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;
}

/* =========================================================
   8. STATS SECTION
   Confidence-building row placed under the hero 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);
}

.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;
}

/* =========================================================
   9. CARDS, GRIDS & IMAGE PANELS
   Reusable blocks for programs, values, news and content.
   ========================================================= */
.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;
}

/* =========================================================
   10. NEWS CARDS
   Image-based cards for campus updates.
   ========================================================= */
.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;
}

/* =========================================================
   11. ADMISSION STEPS
   Numbered admission journey cards.
   ========================================================= */
.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;
}

/* =========================================================
   12. CALL TO ACTION
   Strong admission-focused content block.
   ========================================================= */
.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);
}

/* =========================================================
   13. CONTACT PAGE & MAP PLACEHOLDER
   Contact details and styled map placeholder.
   ========================================================= */
.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;
}

/* =========================================================
   14. FOOTER
   Shared footer across all pages.
   ========================================================= */
.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 button */
.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);
}

/* =========================================================
   15. SCROLL REVEAL ANIMATION
   Elements become visible when they enter the viewport.
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: 0.75s ease;
}

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

/* =========================================================
   16. RESPONSIVE DESIGN
   Adjusts layout for tablets and mobile devices.
   ========================================================= */
@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: auto;
  }

  .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 h1 {
    font-size: 2.45rem;
  }

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