/* ═══════════════════════════════════════
   DESIRE PUBLIC SCHOOL — SHARED STYLES
   Mobile-First, Fully Responsive · 2026
═══════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,700;0,9..144,900;1,9..144,400;1,9..144,700&family=Manrope:wght@300;400;500;600;700&display=swap');

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;}
html{scroll-behavior:smooth;}
body{font-family:'Manrope',sans-serif;background:#fff;color:#0B1220;overflow-x:hidden;}
img{max-width:100%;display:block;}
a{text-decoration:none;}

:root{
  --ink:#0B1220; --ink-600:#1F3255; --ink-400:#4A5E82; --ink-200:#9DAAC5;
  --ink-100:#D6DCE8; --ink-50:#F0F2F7;
  --flame:#C4531A; --flame-l:#E0722E; --flame-xl:#FAD5BC;
  --sage:#2D5A4E; --sand:#F7F1E8; --sand-d:#EDE4D5; --white:#fff;
  --radius:12px; --radius-l:20px;
  --shadow:0 4px 24px rgba(0,0,0,0.07);
  --shadow-l:0 12px 48px rgba(0,0,0,0.1);
}

h1,h2,h3,h4{font-family:'Fraunces',Georgia,serif;line-height:1.1;}
p{line-height:1.8;}

/* ANN BAR */
.ann-bar{background:var(--flame);overflow:hidden;height:36px;display:flex;align-items:center;}
.ann-track{display:flex;gap:3rem;animation:marquee 30s linear infinite;white-space:nowrap;flex-shrink:0;}
@keyframes marquee{from{transform:translateX(0)}to{transform:translateX(-50%)}}
.ann-track span{font-size:12px;font-weight:500;color:#fff;letter-spacing:0.3px;}
.ann-track strong{font-weight:700;}

/* ═══════════════════════════
   NAVIGATION — ALL DEVICES
═══════════════════════════ */
#nav {
  position: sticky; top: 0; z-index: 900;
  background: rgba(11,18,32,0.98);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(196,83,26,0.2);
  box-shadow: 0 2px 20px rgba(0,0,0,0.35);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; padding: 0 1.5rem;
}

/* Logo */
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0; text-decoration: none;
  min-width: 0; /* allow truncation */
}
.nav-logo-circle {
  width: 40px; height: 40px; border-radius: 50%;
  background: #fff; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding: 3px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.nav-logo-circle img { width:100%; height:100%; object-fit:contain; border-radius:50%; }
.nav-logo-text { min-width: 0; }
.nav-brand-name {
  font-family: 'Fraunces', serif; font-size: 15px;
  font-weight: 700; color: #fff; line-height: 1.15;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nav-brand-sub {
  font-size: 9px; color: rgba(255,255,255,0.4);
  letter-spacing: 1.5px; text-transform: uppercase; margin-top: 1px;
  display: block; white-space: nowrap;
}

/* Desktop links */
.nav-links { display: flex; align-items: center; gap: 1.25rem; list-style: none; }
.nav-links a {
  font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.65);
  position: relative; padding: 4px 0; text-decoration: none;
  transition: color 0.2s; white-space: nowrap;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 1.5px;
  background: var(--flame-l); transition: width 0.3s ease;
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* CTA button */
.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--flame); color: #fff !important;
  padding: 9px 18px; border-radius: 100px;
  font-size: 13px; font-weight: 600; white-space: nowrap;
  box-shadow: 0 4px 16px rgba(196,83,26,0.35);
  transition: background 0.2s, transform 0.2s;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--flame-l) !important; transform: translateY(-1px); }

/* ─── HAMBURGER ─── */
.hamburger {
  display: none;
  /* 44×44 touch target — Apple/Google accessibility standard */
  width: 44px; height: 44px;
  background: none; border: none; color: #fff;
  border-radius: 8px;
  align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.hamburger:hover { background: rgba(255,255,255,0.08); }
.hamburger:active { background: rgba(255,255,255,0.15); }
.hamburger svg { display: block; pointer-events: none; }

/* ═══════════════════════════
   FULL-SCREEN MOBILE NAV
═══════════════════════════ */
#mnav {
  position: fixed; inset: 0; z-index: 9999;
  background: #0B1220;
  display: flex; flex-direction: column;
  /* Hidden state */
  opacity: 0; visibility: hidden;
  transform: translateX(100%);
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.4,0,0.2,1), visibility 0.3s;
  /* Prevent body scroll bleed */
  overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}
#mnav.open {
  opacity: 1; visibility: visible; transform: translateX(0);
}

/* Header row inside mobile nav */
.mnav-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.mnav-logo { display: flex; align-items: center; gap: 10px; }
.mnav-logo img { width: 36px; height: 36px; border-radius: 50%; background: #fff; padding: 2px; object-fit: contain; flex-shrink: 0; }
.mnav-logo-name { font-family: 'Fraunces', serif; font-size: 15px; font-weight: 700; color: #fff; }

/* Close button */
.mnav-close {
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.07); border: none; border-radius: 8px;
  color: rgba(255,255,255,0.7); cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.mnav-close:hover { background: rgba(255,255,255,0.12); }

/* Nav links inside mobile nav */
.mnav-links {
  flex: 1; display: flex; flex-direction: column;
  justify-content: center; padding: 1.5rem 1.5rem;
  gap: 0; overflow-y: auto;
}
.mnav-links a {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.6rem, 6vw, 2.4rem);
  font-weight: 700;
  color: rgba(255,255,255,0.75);
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  text-decoration: none;
  transition: color 0.2s, padding-left 0.2s;
  display: block;
  /* min touch target height */
  min-height: 52px; display: flex; align-items: center;
  -webkit-tap-highlight-color: transparent;
}
.mnav-links a:last-child { border-bottom: none; }
.mnav-links a:hover, .mnav-links a:active { color: var(--flame-l); padding-left: 8px; }
.mnav-links a.active { color: var(--flame-l); }

/* Footer inside mobile nav */
.mnav-foot {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
  display: flex; flex-direction: column; gap: 0.75rem;
}
.mnav-contact {
  font-size: 12px; color: rgba(255,255,255,0.35);
  text-align: center;
}
.mnav-contact a { color: rgba(255,255,255,0.5); text-decoration: none; }

/* ─── LANDSCAPE MOBILE: compress nav links ─── */
@media (max-height: 600px) and (orientation: landscape) {
  .mnav-links { padding: 0.5rem 1.5rem; justify-content: flex-start; }
  .mnav-links a { font-size: 1.2rem; padding: 0.35rem 0; min-height: 40px; }
  .mnav-header { padding: 0.75rem 1.25rem; }
  .mnav-foot { padding: 0.75rem 1.5rem; }
}

/* BUTTONS */
.btn{display:inline-flex;align-items:center;gap:8px;font-family:'Manrope',sans-serif;font-weight:600;font-size:14px;border-radius:100px;transition:all 0.25s;border:none;cursor:pointer;text-decoration:none;white-space:nowrap;}
.btn-flame{background:var(--flame);color:#fff;padding:13px 28px;box-shadow:0 4px 18px rgba(196,83,26,0.3);}
.btn-flame:hover{background:var(--flame-l);transform:translateY(-2px);box-shadow:0 8px 28px rgba(196,83,26,0.4);color:#fff;}
.btn-outline{background:transparent;color:var(--ink);padding:12px 24px;border:1.5px solid var(--ink-100);}
.btn-outline:hover{border-color:var(--flame);color:var(--flame);}
.btn-white{background:#fff;color:var(--ink);padding:13px 28px;box-shadow:0 4px 18px rgba(0,0,0,0.12);}
.btn-white:hover{transform:translateY(-2px);box-shadow:0 8px 28px rgba(0,0,0,0.15);color:var(--ink);}
.btn svg{flex-shrink:0;transition:transform 0.2s;}
.btn:hover svg{transform:translateX(3px);}
.btn-full{width:100%;justify-content:center;}

/* LAYOUT */
.section{padding:5rem 1.25rem;}
.section-sm{padding:3rem 1.25rem;}
.container{max-width:1280px;margin:0 auto;width:100%;}
.container-sm{max-width:900px;margin:0 auto;width:100%;}

/* SECTION LABELS */
.section-tag{font-size:11px;font-weight:700;color:var(--flame);text-transform:uppercase;letter-spacing:3px;display:block;margin-bottom:0.75rem;}
.section-h2{font-size:clamp(1.8rem,3.5vw,3rem);font-weight:900;color:var(--ink);letter-spacing:-1px;}
.section-h2-white{color:#fff;}
.section-desc{font-size:15px;color:var(--ink-400);line-height:1.8;font-weight:300;}

/* REVEAL */
.reveal{opacity:0;transform:translateY(28px);transition:opacity 0.7s cubic-bezier(0.16,1,0.3,1),transform 0.7s cubic-bezier(0.16,1,0.3,1);}
.reveal.in{opacity:1;transform:translateY(0);}
.d1{transition-delay:0.08s!important}.d2{transition-delay:0.16s!important}.d3{transition-delay:0.24s!important}
.d4{transition-delay:0.32s!important}.d5{transition-delay:0.40s!important}.d6{transition-delay:0.48s!important}

/* BREADCRUMB */
.breadcrumb{padding:0.875rem 1.25rem;background:var(--sand);border-bottom:1px solid var(--sand-d);}
.breadcrumb-inner{max-width:1280px;margin:0 auto;display:flex;align-items:center;gap:8px;font-size:13px;color:var(--ink-200);flex-wrap:wrap;}
.breadcrumb-inner a{color:var(--flame);}

/* PAGE HERO */
.page-hero{background:linear-gradient(135deg,var(--ink) 0%,#112647 60%,var(--ink) 100%);padding:4rem 1.25rem 3.5rem;position:relative;overflow:hidden;}
.page-hero::before{content:'';position:absolute;inset:0;background:radial-gradient(ellipse 70% 80% at 70% 50%,rgba(196,83,26,0.1) 0%,transparent 60%);pointer-events:none;}
.page-hero .container{position:relative;z-index:2;}
.page-hero h1{font-size:clamp(2rem,5vw,3.8rem);font-weight:900;color:#fff;letter-spacing:-1.5px;margin-bottom:1rem;line-height:1.1;}
.page-hero p{font-size:15px;color:rgba(255,255,255,0.55);max-width:600px;font-weight:300;line-height:1.8;}

/* CARDS */
.card{background:#fff;border-radius:var(--radius-l);border:1px solid var(--sand-d);box-shadow:var(--shadow);transition:all 0.3s cubic-bezier(0.16,1,0.3,1);}
.card:hover{transform:translateY(-5px);box-shadow:var(--shadow-l);border-color:rgba(196,83,26,0.2);}
.card-dark{background:rgba(255,255,255,0.04);border:1px solid rgba(255,255,255,0.08);border-radius:var(--radius-l);transition:all 0.3s;}
.card-dark:hover{background:rgba(196,83,26,0.06);border-color:rgba(196,83,26,0.25);}

/* PROGRESS */
#progress{position:fixed;top:0;left:0;height:3px;z-index:9999;background:linear-gradient(90deg,var(--flame),var(--flame-l));width:0;transition:width 0.1s;}

/* PULSE DOT */
.pulse-dot{width:7px;height:7px;border-radius:50%;background:var(--flame);animation:pulse-anim 2s infinite;display:inline-block;flex-shrink:0;}
@keyframes pulse-anim{0%,100%{transform:scale(1);opacity:1}50%{transform:scale(0.7);opacity:0.5}}

/* WHATSAPP FLOAT */
.wa-float{position:fixed;bottom:1.25rem;right:1.25rem;z-index:800;width:54px;height:54px;border-radius:50%;background:#25D366;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 20px rgba(37,211,102,0.4);transition:all 0.25s;}
.wa-float:hover{transform:scale(1.1);}

/* FOOTER */
footer{background:#05090F;border-top:1px solid rgba(255,255,255,0.06);}
.footer-top{padding:3.5rem 1.25rem 2.5rem;}
.footer-grid{max-width:1280px;margin:0 auto;display:grid;grid-template-columns:1fr 1fr 1fr 1fr;gap:2.5rem;}
.footer-brand-name{font-family:'Fraunces',serif;font-size:15px;font-weight:700;color:#fff;}
.footer-brand-sub{font-size:9px;color:rgba(255,255,255,0.3);letter-spacing:1.8px;text-transform:uppercase;margin-top:2px;}
.footer-desc{font-size:12px;color:rgba(255,255,255,0.3);line-height:1.8;margin-top:0.75rem;font-weight:300;}
.footer-col-title{font-size:10px;color:rgba(255,255,255,0.3);text-transform:uppercase;letter-spacing:2px;font-weight:700;margin-bottom:1rem;}
.footer-links{display:flex;flex-direction:column;gap:0.5rem;}
.footer-links a{font-size:13px;color:rgba(255,255,255,0.4);transition:color 0.2s;}
.footer-links a:hover{color:var(--flame-l);}
.footer-bottom{max-width:1280px;margin:0 auto;padding:1.25rem;border-top:1px solid rgba(255,255,255,0.06);display:flex;justify-content:space-between;flex-wrap:wrap;gap:0.5rem;}
.footer-copy{font-size:11px;color:rgba(255,255,255,0.2);}

/* ════════════════════════
   RESPONSIVE BREAKPOINTS
════════════════════════ */

@media(max-width:1200px){
  .footer-grid{grid-template-columns:1fr 1fr;gap:2rem;}
}

/* ═══════════════════════════════════════
   RESPONSIVE BREAKPOINTS
═══════════════════════════════════════ */

/* ── 1280px+ Desktop: full nav visible ── */

/* ── 1024px Tablet: switch to hamburger ── */
@media(max-width:1024px){
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .section { padding: 4rem 1.25rem; }
}

/* ── 768px Mobile ── */
@media(max-width:768px){
  .nav-inner    { height: 58px; padding: 0 1rem; }
  .nav-brand-sub { display: none; }
  .nav-brand-name { font-size: 14px; }
  .nav-logo-circle { width: 38px; height: 38px; }
  .section      { padding: 3rem 1rem; }
  .section-sm   { padding: 2rem 1rem; }
  .page-hero    { padding: 2.5rem 1rem 2rem; }
  .page-hero h1 { font-size: clamp(1.6rem,7vw,2.5rem); letter-spacing:-0.5px; }
  .page-hero p  { font-size: 14px; }
  .breadcrumb   { padding: 0.6rem 1rem; }
  .footer-top   { padding: 2.5rem 1rem 2rem; }
  .footer-grid  { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .footer-bottom{ flex-direction: column; gap: 0.25rem; padding: 1rem; }
  .btn          { font-size: 13px; }
  .ann-bar      { height: 32px; }
  .ann-track span { font-size: 11px; }
}

/* ── 480px Small mobile ── */
@media(max-width:480px){
  .nav-inner    { padding: 0 0.875rem; height: 56px; }
  .nav-brand-name { font-size: 13px; }
  .nav-logo-circle{ width: 34px; height: 34px; }
  .nav-logo     { gap: 8px; }
  .footer-grid  { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom{ padding: 0.875rem; }
  .section-h2   { letter-spacing: -0.5px; }
  .hamburger    { width: 40px; height: 40px; }
}

/* ── 360px Very small phones (Galaxy A series etc) ── */
@media(max-width:360px){
  .nav-brand-name { font-size: 12px; }
  .nav-logo-circle{ width: 30px; height: 30px; }
  .hamburger    { width: 38px; height: 38px; }
}

/* ─── TWO-COL GRID UTILITY ─── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.two-col-center { align-items: center; }
.two-col-6 { gap: 6rem; }

@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; gap: 2.5rem; }
  .two-col-6 { gap: 2.5rem; }
}
@media (max-width: 768px) {
  .two-col { gap: 2rem; }
}
