/* ============================================================
   ORCHID ENGLISH SECONDARY SCHOOL — Shared Stylesheet
   Theme: Navy #0B47A6 · Golden #EDB04C · Maroon #800000
   ============================================================ */
*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;}
:root{
  --navy:#0B47A6;
  --navy-dark:#083676;
  --navy-light:#1a5fc4;
  --gold:#EDB04C;
  --gold-dark:#d99a2f;
  --gold-light:#fbeccd;
  --maroon:#800000;
  --maroon-light:#a83232;
  --tint:#eef4ff;
  --cream:#f7f9fc;
  --ink:#16243a;
  --muted:#64748b;
  --border:#e2e8f0;
  --white:#ffffff;
  --sans:'DM Sans',sans-serif;
  --serif:'Cormorant Garamond',Georgia,serif;
  --mono:'DM Mono',monospace;
  --shadow:0 12px 40px rgba(11,71,166,0.10);
  --shadow-lg:0 24px 70px rgba(11,71,166,0.18);
}
html{scroll-behavior:smooth;}
body{font-family:var(--sans);background:var(--white);color:var(--ink);overflow-x:hidden;line-height:1.65;}
img{max-width:100%;display:block;}
a{color:inherit;}

/* ===== TOP BAR ===== */
.topbar{background:var(--navy-dark);color:rgba(255,255,255,0.85);font-size:0.74rem;padding:0.45rem 4rem;display:flex;justify-content:space-between;align-items:center;letter-spacing:0.02em;}
.topbar a{color:rgba(255,255,255,0.85);text-decoration:none;}
.topbar-left{display:flex;gap:1.5rem;align-items:center;flex-wrap:wrap;}
.topbar-left span{display:flex;align-items:center;gap:0.35rem;}
.topbar-right{display:flex;gap:1.25rem;align-items:center;}
.topbar-right a:hover{color:var(--gold);}
.portal-pill{background:var(--gold);color:var(--navy-dark)!important;font-weight:700;padding:0.28rem 0.9rem;border-radius:20px;font-size:0.7rem;letter-spacing:0.05em;text-transform:uppercase;display:inline-flex;align-items:center;gap:0.35rem;}
.portal-pill:hover{background:#f5c068;color:var(--navy-dark)!important;}

/* ===== NAV ===== */
nav{background:var(--white);position:sticky;top:0;z-index:100;border-bottom:1px solid var(--border);box-shadow:0 2px 18px rgba(11,71,166,0.07);}
.nav-inner{display:flex;justify-content:space-between;align-items:center;padding:0 4rem;height:84px;}
.logo{display:flex;align-items:center;gap:0.75rem;text-decoration:none;}
.logo img{height:56px;width:auto;}
.logo-text{line-height:1.1;}
.logo-name{font-family:var(--serif);font-size:1.18rem;font-weight:700;color:var(--navy);display:block;}
.logo-tagline{font-size:0.6rem;color:var(--muted);letter-spacing:0.14em;text-transform:uppercase;font-weight:500;}
.nav-links{display:flex;gap:0;list-style:none;align-items:center;}
.nav-links>li{position:relative;}
.nav-links>li>a{display:flex;align-items:center;gap:0.3rem;padding:0 1rem;height:84px;font-size:0.85rem;font-weight:600;color:var(--ink);text-decoration:none;white-space:nowrap;transition:color 0.2s;border-bottom:3px solid transparent;}
.nav-links>li>a:hover,.nav-links>li>a.active{color:var(--navy);border-bottom-color:var(--gold);}
.arr{font-size:0.6rem;opacity:0.5;}
.dropdown{display:none;position:absolute;top:100%;left:0;background:var(--white);border:1px solid var(--border);border-radius:10px;box-shadow:var(--shadow);min-width:220px;padding:0.5rem 0;z-index:200;}
.nav-links>li:hover .dropdown{display:block;}
.dropdown a{display:block;padding:0.65rem 1.3rem;font-size:0.83rem;color:var(--muted);text-decoration:none;transition:color 0.15s,background 0.15s;}
.dropdown a:hover{color:var(--navy);background:var(--tint);}
.nav-cta{background:var(--navy);color:var(--white)!important;padding:0.6rem 1.3rem!important;border-radius:8px;height:auto!important;border-bottom:none!important;margin-left:0.75rem;font-size:0.83rem!important;transition:background 0.2s!important;}
.nav-cta:hover{background:var(--navy-light)!important;border-bottom:none!important;}
.nav-apply{background:var(--gold)!important;color:var(--navy-dark)!important;font-weight:700!important;}
.nav-apply:hover{background:var(--gold-dark)!important;}
.hamburger{display:none;flex-direction:column;gap:5px;cursor:pointer;padding:6px;}
.hamburger span{display:block;width:24px;height:2px;background:var(--ink);border-radius:2px;}

/* ===== BUTTONS ===== */
.btn-primary{background:var(--gold);color:var(--navy-dark);padding:0.9rem 2rem;border-radius:8px;font-weight:700;font-size:0.875rem;text-decoration:none;display:inline-flex;align-items:center;gap:0.5rem;transition:all 0.25s;border:none;cursor:pointer;}
.btn-primary:hover{background:var(--gold-dark);transform:translateY(-2px);}
.btn-outline{background:transparent;color:var(--white);padding:0.9rem 2rem;border-radius:8px;font-weight:600;font-size:0.875rem;text-decoration:none;display:inline-flex;align-items:center;gap:0.5rem;border:1.5px solid rgba(255,255,255,0.45);transition:all 0.25s;}
.btn-outline:hover{border-color:var(--white);background:rgba(255,255,255,0.1);}
.btn-navy{background:var(--navy);color:var(--white);padding:0.9rem 2rem;border-radius:8px;font-weight:700;font-size:0.875rem;text-decoration:none;display:inline-flex;align-items:center;gap:0.5rem;transition:all 0.25s;border:none;cursor:pointer;}
.btn-navy:hover{background:var(--navy-light);transform:translateY(-2px);}

/* ===== SECTION HELPERS ===== */
.section{padding:5rem 4rem;}
.section-badge{display:inline-block;background:var(--tint);color:var(--navy);font-size:0.7rem;font-weight:700;letter-spacing:0.12em;text-transform:uppercase;padding:0.35rem 1rem;border-radius:20px;margin-bottom:1rem;}
.section-head{text-align:center;margin-bottom:3rem;}
.section-head h2{font-family:var(--serif);font-size:clamp(2rem,3.2vw,3rem);font-weight:600;color:var(--ink);line-height:1.15;}
.section-head h2 em{font-style:italic;color:var(--navy);}
.section-head p{color:var(--muted);font-size:0.97rem;max-width:560px;margin:0.75rem auto 0;line-height:1.8;}

/* Gradient divider (replaces old page divider) */
.divider{height:auto;padding:0;background:none;display:flex;align-items:center;justify-content:center;}
.gradient-line{height:3px;width:100%;background:linear-gradient(90deg,transparent,var(--navy) 20%,var(--gold) 50%,var(--maroon) 80%,transparent);opacity:0.85;}

/* ===== PAGE HEADER (inner pages) ===== */
.page-header{background:linear-gradient(120deg,var(--navy-dark) 0%,var(--navy) 60%,var(--navy-light) 100%);color:var(--white);padding:4rem 4rem 4.5rem;position:relative;overflow:hidden;}
.page-header::before{content:'';position:absolute;top:-120px;right:-80px;width:420px;height:420px;border-radius:50%;background:rgba(237,176,76,0.12);}
.page-header::after{content:'';position:absolute;bottom:-150px;left:-60px;width:360px;height:360px;border-radius:50%;background:rgba(255,255,255,0.05);}
.page-header-inner{position:relative;z-index:2;max-width:1100px;}
.page-header .crumb{font-size:0.78rem;color:rgba(255,255,255,0.7);margin-bottom:0.85rem;letter-spacing:0.03em;}
.page-header .crumb a{color:var(--gold);text-decoration:none;}
.page-header h1{font-family:var(--serif);font-size:clamp(2.4rem,4vw,3.6rem);font-weight:600;line-height:1.1;margin-bottom:0.75rem;}
.page-header h1 em{font-style:italic;color:var(--gold);}
.page-header p{font-size:1rem;color:rgba(255,255,255,0.78);max-width:600px;line-height:1.8;}

/* ===== FOOTER ===== */
footer{background:var(--navy-dark);padding:4rem 4rem 0;color:#fff;}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:3rem;padding-bottom:3rem;border-bottom:1px solid rgba(255,255,255,0.12);}
.footer-logo{display:flex;align-items:center;gap:0.75rem;margin-bottom:1rem;}
.footer-logo img{height:48px;background:#fff;border-radius:8px;padding:4px;}
.footer-name{font-family:var(--serif);font-size:1.1rem;font-weight:700;color:var(--white);}
.footer-brand p{font-size:0.84rem;color:rgba(255,255,255,0.6);line-height:1.85;max-width:300px;margin-bottom:1.5rem;}
.footer-social{display:flex;gap:0.6rem;}
.soc-btn{width:38px;height:38px;border-radius:8px;background:rgba(255,255,255,0.1);display:flex;align-items:center;justify-content:center;color:rgba(255,255,255,0.8);font-size:0.85rem;font-weight:700;text-decoration:none;transition:all 0.2s;}
.soc-btn:hover{background:var(--gold);color:var(--navy-dark);}
.footer-col h4{font-size:0.76rem;font-weight:700;color:var(--gold);letter-spacing:0.1em;text-transform:uppercase;margin-bottom:1.25rem;}
.footer-col ul{list-style:none;display:flex;flex-direction:column;gap:0.6rem;}
.footer-col ul li a{font-size:0.84rem;color:rgba(255,255,255,0.6);text-decoration:none;transition:color 0.2s;}
.footer-col ul li a:hover{color:var(--gold);}
.footer-bottom{display:flex;justify-content:space-between;align-items:center;padding:1.25rem 0;font-size:0.76rem;color:rgba(255,255,255,0.45);flex-wrap:wrap;gap:0.5rem;}
.footer-bottom a{color:rgba(255,255,255,0.45);text-decoration:none;}
.footer-bottom a:hover{color:var(--gold);}

/* ===== FLOATING BUTTONS (right middle) ===== */
.float-stack{position:fixed;right:1.1rem;top:50%;transform:translateY(-50%);display:flex;flex-direction:column;gap:0.6rem;z-index:990;}
.float-btn{width:50px;height:50px;border-radius:50%;display:flex;align-items:center;justify-content:center;box-shadow:0 6px 20px rgba(0,0,0,0.22);text-decoration:none;font-size:1.4rem;color:#fff;transition:transform 0.22s;}
.float-btn:hover{transform:scale(1.12);}
.float-wa{background:#25d366;}
.float-fb{background:#1877f2;}
.float-mail{background:var(--maroon);}
.float-app{background:var(--navy);}
.float-btn svg{width:24px;height:24px;fill:#fff;}

/* ===== ADMISSION POPUP ===== */
.popup-overlay{position:fixed;inset:0;background:rgba(8,22,46,0.78);backdrop-filter:blur(4px);z-index:2000;display:none;align-items:center;justify-content:center;padding:1.5rem;}
.popup-overlay.show{display:flex;}
.popup-box{background:var(--white);border-radius:16px;max-width:460px;width:100%;position:relative;overflow:hidden;box-shadow:var(--shadow-lg);animation:popIn 0.35s ease;}
@keyframes popIn{from{opacity:0;transform:scale(0.92) translateY(10px);}to{opacity:1;transform:scale(1) translateY(0);}}
.popup-close{position:absolute;top:0.75rem;right:0.75rem;width:34px;height:34px;border-radius:50%;background:rgba(0,0,0,0.45);color:#fff;border:none;font-size:1.2rem;cursor:pointer;display:flex;align-items:center;justify-content:center;z-index:3;transition:background 0.2s;line-height:1;}
.popup-close:hover{background:var(--maroon);}
.popup-banner{background:linear-gradient(135deg,var(--navy) 0%,var(--navy-dark) 100%);color:#fff;padding:2.5rem 2rem;text-align:center;}
.popup-banner .tag{display:inline-block;background:var(--gold);color:var(--navy-dark);font-size:0.68rem;font-weight:700;letter-spacing:0.1em;text-transform:uppercase;padding:0.3rem 0.9rem;border-radius:20px;margin-bottom:1rem;}
.popup-banner h3{font-family:var(--serif);font-size:1.9rem;font-weight:600;margin-bottom:0.5rem;}
.popup-banner h3 em{color:var(--gold);font-style:italic;}
.popup-banner p{font-size:0.88rem;color:rgba(255,255,255,0.82);line-height:1.7;}
.popup-body{padding:1.75rem 2rem 2rem;text-align:center;}
.popup-body img.popup-graphic{border-radius:10px;margin:0 auto 1rem;}
.popup-body p{font-size:0.86rem;color:var(--muted);line-height:1.7;margin-bottom:1.25rem;}
.popup-qr{width:130px;height:130px;border-radius:10px;border:2px solid var(--border);margin:0 auto 1rem;display:flex;align-items:center;justify-content:center;background:var(--cream);color:var(--muted);font-size:0.7rem;text-align:center;padding:0.5rem;}
/* Full-graphic popup */
.popup-graphic-box{max-width:440px;background:transparent;box-shadow:var(--shadow-lg);}
.popup-graphic-link{display:block;}
.popup-graphic-link img{width:100%;height:auto;border-radius:16px;display:block;}

/* ===== CARDS GRID (reusable) ===== */
.cards-3{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem;}
.cards-2{display:grid;grid-template-columns:repeat(2,1fr);gap:2rem;}
.cards-4{display:grid;grid-template-columns:repeat(4,1fr);gap:1.25rem;}

/* ===== ANIMATIONS ===== */
.reveal{opacity:0;transform:translateY(22px);transition:opacity 0.6s ease,transform 0.6s ease;}
.reveal.in{opacity:1;transform:translateY(0);}

/* ===== RESPONSIVE ===== */
@media(max-width:1024px){
  .topbar,.nav-inner,.section,.page-header,footer{padding-left:2rem;padding-right:2rem;}
  .cards-4{grid-template-columns:repeat(2,1fr);}
}
@media(max-width:900px){
  .hamburger{display:flex;}
  .nav-links{display:none;position:absolute;top:84px;left:0;right:0;background:var(--white);border-bottom:1px solid var(--border);flex-direction:column;padding:1rem 0;gap:0;box-shadow:var(--shadow);}
  .nav-links.open{display:flex;}
  .nav-links>li{width:100%;}
  .nav-links>li>a{height:auto;padding:0.85rem 2rem;border-bottom:none;}
  .dropdown{position:static;box-shadow:none;border:none;border-radius:0;padding-left:2.5rem;}
  .nav-links>li:hover .dropdown{display:none;}
  .nav-links>li.open-sub .dropdown{display:block;}
  .nav-cta{margin:0.5rem 2rem;text-align:center;justify-content:center;}
  .topbar{flex-direction:column;gap:0.4rem;text-align:center;font-size:0.7rem;}
  .topbar-left{justify-content:center;}
  .cards-3,.cards-2{grid-template-columns:1fr;}
  .footer-grid{grid-template-columns:1fr 1fr;gap:2rem;}
}
@media(max-width:560px){
  .section{padding:3.5rem 1.25rem;}
  .topbar,.nav-inner,.page-header,footer{padding-left:1.25rem;padding-right:1.25rem;}
  .cards-4{grid-template-columns:1fr;}
  .footer-grid{grid-template-columns:1fr;}
  .logo-name{font-size:1rem;}
  .float-btn{width:44px;height:44px;}
}
