/* ================================================================
   PHONICS UNIVERSITY — GLOBAL STYLESHEET
   File: css/global.css
   Includes: Variables, Reset, Topbar, Navbar, Footer, Utilities
================================================================ */

/* ── GOOGLE FONTS are loaded in header.php via <link> ─────── */

/* ── CSS VARIABLES ─────────────────────────────────────────── */
:root {
  --primary:    #c8102e;
  --primary-dk: #9b0d22;
  --primary-lt: #e8193b;
  --gold:       #d4a017;
  --gold-lt:    #f0bc2e;
  --dark:       #0f0f0f;
  --charcoal:   #1a1a1a;
  --grey-dk:    #2a2a2a;
  --grey-md:    #555;
  --grey-lt:    #999;
  --light:      #f5f5f5;
  --white:      #ffffff;
  --border:     rgba(255,255,255,0.1);
  --shadow-sm:  0 2px 12px rgba(0,0,0,0.08);
  --shadow-md:  0 8px 32px rgba(0,0,0,0.14);
  --shadow-lg:  0 20px 60px rgba(0,0,0,0.22);
  --radius:     10px;
  --transition: all 0.3s ease;
}

/* ── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 400;
  color: #222;
  background: #fff;
  /* overflow-x:hidden on html/body BREAKS position:sticky — removed */
}
/* Clip horizontal overflow without creating a new scroll container */
.page-wrapper { overflow-x: clip; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }
ul { list-style: none; padding: 0; margin: 0; }

/* ── SCROLL REVEAL CLASSES ─────────────────────────────────── */
/* These classes are toggled by scroll.js, no AOS dependency */
[data-reveal] {
  opacity: 0;
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
[data-reveal="up"]    { transform: translateY(40px); }
[data-reveal="down"]  { transform: translateY(-40px); }
[data-reveal="left"]  { transform: translateX(-50px); }
[data-reveal="right"] { transform: translateX(50px); }
[data-reveal="scale"] { transform: scale(0.88); }
[data-reveal="fade"]  { transform: none; }

[data-reveal].revealed {
  opacity: 1;
  transform: none;
}

/* Stagger delays */
[data-delay="1"] { transition-delay: 0.08s !important; }
[data-delay="2"] { transition-delay: 0.16s !important; }
[data-delay="3"] { transition-delay: 0.24s !important; }
[data-delay="4"] { transition-delay: 0.32s !important; }
[data-delay="5"] { transition-delay: 0.40s !important; }
[data-delay="6"] { transition-delay: 0.48s !important; }
[data-delay="7"] { transition-delay: 0.56s !important; }
[data-delay="8"] { transition-delay: 0.64s !important; }

/* ── COMMON SECTION ELEMENTS ───────────────────────────────── */
.section-tag {
  display: inline-block;
  background: #fff0f2;
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.section-tag.light {
  background: rgba(200,16,46,0.15);
  color: #ff8fa0;
}

.section-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: #111;
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-title span  { color: var(--primary); }
.section-title.light { color: #fff; }

.section-desc {
  font-size: 0.97rem;
  color: #555;
  line-height: 1.85;
  margin-bottom: 18px;
}
.section-desc.light { color: rgba(255,255,255,0.65); }

/* ── SHARED BUTTONS ────────────────────────────────────────── */
.btn-red {
  background: var(--primary);
  color: #fff;
  padding: 13px 30px;
  border-radius: 6px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--primary);
  transition: var(--transition);
  cursor: pointer;
}
.btn-red:hover {
  background: var(--primary-lt);
  border-color: var(--primary-lt);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200,16,46,0.35);
}

.btn-outline-red {
  background: transparent;
  color: var(--primary);
  padding: 12px 28px;
  border-radius: 6px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--primary);
  transition: var(--transition);
}
.btn-outline-red:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-white {
  background: #fff;
  color: var(--primary);
  padding: 13px 30px;
  border-radius: 6px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid #fff;
  transition: var(--transition);
}
.btn-white:hover {
  background: transparent;
  color: #fff;
  transform: translateY(-2px);
}

/* ── BREADCRUMB — shared across ALL page heroes ─────────────── */
.breadcrumb-wrap {
  display: flex; align-items: center; gap: 6px;
  flex-wrap: wrap; margin-top: 14px;
}
.breadcrumb-wrap a,
.breadcrumb-wrap span {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
  transition: color 0.2s;
}
.breadcrumb-wrap a:hover   { color: var(--gold-lt); }
.breadcrumb-wrap .sep      { color: rgba(255,255,255,0.3); }
.breadcrumb-wrap .current  { color: rgba(255,255,255,0.92); font-weight: 600; }

/* ── SECTION TAGS & TITLES — shared across ALL pages ────────── */
.section-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff0f2; color: var(--primary);
  font-size: 0.68rem; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 4px 14px; border-radius: 4px;
  border-left: 3px solid var(--primary);
  margin-bottom: 10px;
}
.section-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 800; color: #111; line-height: 1.2;
  margin-bottom: 14px;
}
.section-title span { color: var(--primary); }

/* ── TOPBAR ────────────────────────────────────────────────── */
.pu-topbar {
  background: var(--dark);
  padding: 8px 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.72);
  border-bottom: 2px solid var(--primary);
  position: relative;
  z-index: 2;
}
/* ── STICKY SITE HEADER WRAPPER ────────────────────────────── */
.pu-site-header {
  position: sticky;
  top: 0;
  z-index: 1001;
  /* Crucial: no overflow hidden or transform on this element */
}
.pu-topbar .top-info a {
  color: rgba(255,255,255,0.72);
  margin-right: 22px;
  transition: color 0.2s;
}
.pu-topbar .top-info a:hover { color: var(--gold-lt); }
.pu-topbar .top-info i { color: var(--primary-lt); margin-right: 6px; }
.pu-topbar .top-right { display: flex; align-items: center; gap: 8px; }
.pu-topbar .top-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.65);
  font-size: 0.7rem;
  transition: var(--transition);
  margin-left: 4px;
}
.pu-topbar .top-social a:hover { background: var(--primary); color: #fff; }
.btn-apply-top {
  background: var(--primary);
  color: #fff !important;
  padding: 5px 18px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: var(--transition);
}
.btn-apply-top:hover { background: var(--primary-lt); transform: translateY(-1px); }
.btn-erp-top {
  background: transparent;
  color: rgba(255,255,255,0.72) !important;
  padding: 4px 14px;
  border-radius: 4px;
  font-size: 0.78rem;
  border: 1px solid rgba(255,255,255,0.22);
  transition: var(--transition);
}
.btn-erp-top:hover { border-color: var(--gold); color: var(--gold-lt) !important; }

/* ── NAVBAR ────────────────────────────────────────────────── */
.pu-navbar {
  background: #fff;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  position: relative;
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}
.pu-navbar.scrolled { box-shadow: 0 4px 28px rgba(0,0,0,0.14); }
.pu-navbar .navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.pu-logo img { height: 56px; transition: var(--transition); display: block; }
.pu-logo:hover img { opacity: 0.82; }

/* Desktop nav list */
.pu-nav {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  height: 100%;
}
.pu-nav > li {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}
.pu-nav > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #222;
  padding: 0 11px;
  height: 100%;
  position: relative;
  transition: color 0.25s;
  white-space: nowrap;
}
.pu-nav > li > a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
.pu-nav > li:hover > a,
.pu-nav > li.active > a { color: var(--primary); }
.pu-nav > li:hover > a::after { transform: scaleX(1); }
.pu-nav > li > a .chevron {
  font-size: 0.58em;
  opacity: 0.55;
  transition: transform 0.25s;
}
.pu-nav > li:hover > a .chevron { transform: rotate(180deg); }

/* Dropdown */
.pu-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #fff;
  border-top: 3px solid var(--primary);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  z-index: 999;
  padding: 8px 0;
}
.pu-nav > li:hover .pu-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.pu-dropdown a {
  display: block;
  padding: 9px 20px;
  font-size: 0.79rem;
  color: #333;
  font-weight: 600;
  border-left: 3px solid transparent;
  transition: all 0.18s;
}
.pu-dropdown a:hover {
  background: #fff5f6;
  color: var(--primary);
  border-left-color: var(--primary);
  padding-left: 24px;
}

/* Nav CTA */
.nav-apply-btn {
  background: var(--primary) !important;
  color: #fff !important;
  padding: 10px 20px !important;
  border-radius: 6px !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  height: auto !important;
  margin-left: 8px;
  transition: var(--transition) !important;
  white-space: nowrap;
}
.nav-apply-btn::after { display: none !important; }
.nav-apply-btn:hover {
  background: var(--primary-lt) !important;
  color: #fff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(200,16,46,0.35);
}

/* Mobile toggler */
.pu-toggler {
  display: none;
  background: transparent;
  border: 1.5px solid rgba(200,16,46,0.4);
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  color: var(--primary);
  font-size: 1.2rem;
}

/* Offcanvas */
.pu-offcanvas {
  position: fixed;
  top: 0; left: -100%;
  width: 300px; height: 100%;
  background: #fff;
  z-index: 9999;
  overflow-y: auto;
  transition: left 0.35s cubic-bezier(0.22,1,0.36,1);
  box-shadow: 4px 0 30px rgba(0,0,0,0.2);
}
.pu-offcanvas.open { left: 0; }
.pu-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9998;
  backdrop-filter: blur(2px);
}
.pu-overlay.open { display: block; }
.pu-offcanvas-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--dark);
  border-bottom: 2px solid var(--primary);
}
.pu-offcanvas-head img { height: 38px; }
.pu-close-btn {
  background: transparent; border: none;
  color: #fff; font-size: 1.4rem; cursor: pointer;
  line-height: 1;
}
.pu-mobile-nav {}
.pu-mobile-nav > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #222;
  border-bottom: 1px solid #f0f0f0;
  transition: var(--transition);
}
.pu-mobile-nav > a:hover,
.pu-mobile-nav > a.active { color: var(--primary); background: #fff8f8; }
.pu-mobile-sub { background: #fafafa; display: none; }
.pu-mobile-sub a {
  padding: 9px 20px 9px 34px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: #555;
  display: block;
  border-bottom: 1px solid #eee;
  transition: color 0.2s;
}
.pu-mobile-sub a:last-child { border-bottom: none; }
.pu-mobile-sub a:hover { color: var(--primary); }
.pu-mobile-apply {
  padding: 16px 20px;
  display: flex; gap: 10px;
  border-bottom: 1px solid #f0f0f0;
}
.pu-mobile-apply a {
  flex: 1;
  text-align: center;
  padding: 11px 10px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
}
.btn-apply-mob { background: var(--primary); color: #fff; }
.btn-erp-mob   { background: var(--dark); color: #fff; }
.pu-mobile-socials {
  padding: 16px 20px;
  display: flex; gap: 14px; flex-wrap: wrap;
  border-top: 1px solid #f0f0f0;
}
.pu-mobile-socials a { font-size: 1.2rem; }
.pu-mobile-contact {
  padding: 0 20px 20px;
  font-size: 0.78rem;
  color: #888;
  line-height: 1.9;
}
.pu-mobile-contact i { color: var(--primary); margin-right: 6px; }

/* ── FOOTER ────────────────────────────────────────────────── */
.pu-footer {
  font-family: 'Nunito Sans', sans-serif;
  background: #111;
  color: rgba(255,255,255,0.72);
}

/* Footer top CTA bar */
.footer-top-bar {
  background: var(--primary);
  padding: 22px 0;
}
.footer-bar-icon {
  width: 52px; height: 52px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: #fff; flex-shrink: 0;
}
.footer-bar-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem; font-weight: 700; color: #fff;
}
.footer-bar-sub { font-size: 0.8rem; color: rgba(255,255,255,0.8); margin-top: 2px; }
.footer-bar-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.btn-footer-apply {
  background: #fff;
  color: var(--primary) !important;
  padding: 10px 22px;
  border-radius: 6px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem; font-weight: 700;
  display: inline-flex; align-items: center; gap: 6px;
  transition: var(--transition);
}
.btn-footer-apply:hover { background: var(--dark); color: #fff !important; }
.btn-footer-fees,
.btn-footer-call {
  background: rgba(255,255,255,0.15);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 0.82rem; font-weight: 600;
  border: 1px solid rgba(255,255,255,0.28);
  transition: var(--transition);
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-footer-fees:hover,
.btn-footer-call:hover { background: rgba(255,255,255,0.28); }

/* Footer body */
.footer-body {
  padding: 70px 0 50px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-logo {
  max-height: 46px;
  margin-bottom: 18px;
  display: block;
}
.footer-about-text {
  font-size: 0.84rem;
  line-height: 1.88;
  color: rgba(255,255,255,0.5);
  margin-bottom: 22px;
}
.footer-contact-list { margin-bottom: 22px; }
.footer-contact-row {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.82rem; color: rgba(255,255,255,0.55);
  margin-bottom: 10px; line-height: 1.55;
}
.footer-contact-row i { color: var(--primary); margin-top: 3px; flex-shrink: 0; width: 14px; }
.footer-contact-row a { color: rgba(255,255,255,0.55); transition: color 0.2s; }
.footer-contact-row a:hover { color: var(--gold-lt); }
.footer-social { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6); font-size: 0.85rem;
  transition: var(--transition);
}
.footer-social a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-3px);
}
.footer-heading {
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem; font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 7px; }
.footer-links li a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  display: flex; align-items: center; gap: 7px;
  transition: all 0.2s;
}
.footer-links li a i { font-size: 0.52rem; color: var(--primary); transition: transform 0.2s; }
.footer-links li a:hover { color: #fff; padding-left: 4px; }
.footer-links li a:hover i { transform: translateX(3px); }

/* Footer bottom */
.footer-bottom {
  padding: 18px 0;
  background: #0a0a0a;
}
.footer-copy { font-size: 0.77rem; color: rgba(255,255,255,0.35); margin: 0; }
.footer-bottom-links { display: flex; gap: 16px; flex-wrap: wrap; justify-content: flex-end; }
.footer-bottom-links a { font-size: 0.77rem; color: rgba(255,255,255,0.35); transition: color 0.2s; }
.footer-bottom-links a:hover { color: var(--primary); }

/* ── BACK TO TOP ────────────────────────────────────────────── */
.back-to-top-btn {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 44px; height: 44px;
  background: var(--primary);
  color: #fff;
  border: none; border-radius: 8px;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(200,16,46,0.4);
  opacity: 0; visibility: hidden;
  transform: translateY(12px);
  transition: var(--transition);
  z-index: 999;
}
.back-to-top-btn.show {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.back-to-top-btn:hover {
  background: var(--primary-lt);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(200,16,46,0.5);
}

/* ── SWIPER OVERRIDES ───────────────────────────────────────── */
.swiper-pagination-bullet { background: rgba(255,255,255,0.45); opacity: 1; }
.swiper-pagination-bullet-active { background: var(--primary); }
.swiper-button-prev,
.swiper-button-next {
  color: #fff;
  background: rgba(200,16,46,0.82);
  width: 42px; height: 42px;
  border-radius: 50%;
}
.swiper-button-prev::after,
.swiper-button-next::after { font-size: 0.95rem; font-weight: 700; }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1199px) {
  .pu-nav { display: none; }
  .pu-toggler { display: flex; align-items: center; }
}
@media (max-width: 767px) {
  .pu-topbar .top-info { display: none; }
  /* Topbar shrinks on mobile — recalculate navbar sticky top */
  .footer-bar-actions { justify-content: flex-start; }
  .footer-bottom-links { justify-content: flex-start; }
  .footer-body { padding: 48px 0 36px; }
}
