/* ============================================
   JUPITER ACADEMY — STANDARD SITE STYLESHEET
   Palette: Blue Primary + Orange Accent + White/Grey
   Headings: Poppins | Body: Inter
   ============================================ */

:root{
  --primary:      #2563EB;
  --primary-dark: #1D4ED8;
  --primary-light:#EFF4FF;
  --accent:       #F97316;
  --accent-dark:  #EA580C;
  --dark:         #111827;
  --dark-soft:    #1F2937;
  --grey-bg:      #F9FAFB;
  --grey-border:  #E5E7EB;
  --white:        #FFFFFF;
  --text:         #1F2937;
  --text-muted:   #6B7280;

  --font-heading: "Poppins", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --radius: 8px;
  --radius-lg: 14px;
  --container: 1180px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 6px 20px rgba(17,24,39,0.08);
  --shadow-lg: 0 16px 40px rgba(17,24,39,0.14);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ font-family: var(--font-heading); margin:0 0 .5em; line-height:1.25; font-weight:700; color: var(--dark); }
p{ margin:0 0 1em; }
.container{ max-width: var(--container); margin: 0 auto; padding: 0 24px; }

:focus-visible{ outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- Eyebrow labels ---------- */
.eyebrow{
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--primary);
  display:inline-block;
  padding: 5px 14px;
  background: var(--primary-light);
  border-radius: 999px;
  margin-bottom: 16px;
}
.on-dark .eyebrow{ color: var(--accent); background: rgba(249,115,22,0.14); }

/* ---------- Header / Nav ---------- */
.site-header{
  position: sticky; top:0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--grey-border);
  box-shadow: var(--shadow-sm);
}
.nav-wrap{
  display:flex; align-items:center; justify-content:space-between;
  padding: 14px 24px;
  max-width: var(--container); margin:0 auto;
}
.brand{
  display:flex; align-items:center; gap:10px;
  font-family: var(--font-heading);
  font-size: 21px; font-weight:700; color: var(--dark);
}
.brand .mark{
  width:40px; height:40px; border-radius: 10px;
  background: var(--primary);
  display:flex; align-items:center; justify-content:center;
  font-family: var(--font-heading); font-weight:800; color: var(--white); font-size:15px;
}
.brand small{
  display:block; font-family: var(--font-body); font-size:11px; letter-spacing:.03em;
  color: var(--text-muted); font-weight:500; margin-top:1px;
}
nav.main-nav{ display:flex; align-items:center; gap: 4px; }
nav.main-nav > ul{ display:flex; align-items:center; gap: 2px; }
nav.main-nav > ul > li{ position:relative; }
nav.main-nav > ul > li > a, .nav-btn{
  display:inline-flex; align-items:center; gap:6px;
  color: var(--text); font-size:15px; font-weight:600;
  padding: 10px 14px; border-radius: var(--radius);
  transition: color .15s ease, background .15s ease;
  cursor:pointer; background:none; border:none; font-family: var(--font-body);
}
nav.main-nav > ul > li > a:hover, .nav-btn:hover{ color: var(--primary); background: var(--primary-light); }
.caret{ font-size:10px; transform: translateY(1px); }
.dropdown{
  position:absolute; top: calc(100% + 10px); left:0;
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); min-width: 230px; padding: 10px;
  opacity:0; visibility:hidden; transform: translateY(6px);
  transition: all .18s ease; border: 1px solid var(--grey-border);
}
li.has-dropdown:hover .dropdown, li.has-dropdown:focus-within .dropdown{
  opacity:1; visibility:visible; transform: translateY(0);
}
.dropdown a{
  display:block; padding:10px 12px; border-radius:6px; color: var(--text);
  font-size:14.5px; font-weight:500;
}
.dropdown a:hover{ background: var(--grey-bg); color: var(--primary); }
.dropdown .dd-view-all{
  border-top:1px solid var(--grey-border); margin-top:6px; padding-top:10px;
  color: var(--primary); font-weight:700; font-size:13px;
}
.cta-header{
  background: var(--accent); color: var(--white) !important; font-weight:700 !important;
  padding: 10px 20px !important; border-radius: 999px !important;
  margin-left: 8px;
}
.cta-header:hover{ background: var(--accent-dark) !important; color: var(--white) !important; }
.menu-toggle{ display:none; background:none; border:none; cursor:pointer; padding:8px; }
.menu-toggle span{ display:block; width:24px; height:2px; background:var(--dark); margin:5px 0; }

/* ---------- Hero ---------- */
.hero{
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
  padding: 80px 0 88px;
}
.hero-grid{ display:grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items:center; }
.hero h1{ color: var(--white); font-size: clamp(30px, 4vw, 48px); margin-bottom: 18px; }
.hero .lede{ font-size:17.5px; color: rgba(255,255,255,0.9); max-width: 540px; margin-bottom: 30px; }
.hero-ctas{ display:flex; gap:14px; flex-wrap:wrap; }

.btn{
  display:inline-flex; align-items:center; gap:8px;
  padding: 13px 26px; border-radius: 8px; font-weight:700; font-size:15px;
  border: 2px solid transparent; cursor:pointer; transition: all .15s ease;
  font-family: var(--font-heading);
}
.btn-gold, .btn-accent{ background: var(--accent); color: var(--white); }
.btn-gold:hover, .btn-accent:hover{ background: var(--accent-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline{ border-color: rgba(255,255,255,0.6); color: var(--white); background: transparent; }
.btn-outline:hover{ border-color: var(--white); background: rgba(255,255,255,0.1); }
.btn-teal{ background: var(--primary); color: var(--white); }
.btn-teal:hover{ background: var(--primary-dark); }

/* Simple hero stat card (was ticket motif — simplified to a standard card) */
.id-card{
  background: var(--white); color: var(--text); border-radius: var(--radius-lg);
  padding: 32px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--grey-border);
}
.id-card .id-name{ font-family: var(--font-heading); font-size:20px; font-weight:700; margin-bottom: 6px; color: var(--dark); }
.id-card .id-role{ font-size:13px; color: var(--primary); font-weight:600; margin-bottom:22px; }
.id-card .id-stats{ display:grid; grid-template-columns: 1fr 1fr; gap:20px; }
.id-card .id-stat{ padding: 16px; background: var(--grey-bg); border-radius: var(--radius); text-align:center; }
.id-card .id-stat b{ display:block; font-family: var(--font-heading); font-size:26px; color: var(--primary); font-weight:800; }
.id-card .id-stat span{ font-size:12.5px; color: var(--text-muted); font-weight:500; }

/* ---------- Sections ---------- */
section{ padding: 76px 0; }
section.tight{ padding: 50px 0; }
.section-head{ max-width: 640px; margin-bottom: 44px; }
.section-head h2{ font-size: clamp(26px,3vw,34px); }
.section-head p{ color: var(--text-muted); font-size:16.5px; }
.on-dark{ background: var(--dark); color: rgba(255,255,255,0.85); }
.on-dark h2, .on-dark h3, .on-dark h4{ color: var(--white); }
.on-dark p{ color: rgba(255,255,255,0.7); }
.alt{ background: var(--grey-bg); }

/* ---------- Grids / Cards ---------- */
.grid{ display:grid; gap: 24px; }
.grid-2{ grid-template-columns: repeat(2,1fr); }
.grid-3{ grid-template-columns: repeat(3,1fr); }
.grid-4{ grid-template-columns: repeat(4,1fr); }

.feature-card{
  background: var(--white); border: 1px solid var(--grey-border); border-radius: var(--radius-lg);
  padding: 28px; transition: transform .15s ease, box-shadow .15s ease;
}
.feature-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.feature-card .icon{
  width:46px; height:46px; border-radius: 10px; background: var(--primary-light);
  display:flex; align-items:center; justify-content:center; margin-bottom:16px;
  color: var(--primary); font-family: var(--font-heading); font-weight:800; font-size:14px;
}
.feature-card h3{ font-size:18px; margin-bottom:8px; }
.feature-card p{ color: var(--text-muted); font-size:14.5px; margin:0; }

/* Course card — standard layout */
.course-card{
  background: var(--white); border-radius: var(--radius-lg); overflow:hidden;
  border:1px solid var(--grey-border); box-shadow: var(--shadow-sm);
  display:flex; flex-direction:column; transition: box-shadow .2s ease, transform .2s ease;
}
.course-card:hover{ box-shadow: var(--shadow-md); transform: translateY(-3px); }
.course-card .cc-top{
  background: var(--primary); color: var(--white); padding: 16px 22px;
  display:flex; justify-content:space-between; align-items:center;
}
.course-card .cc-code{ font-family: var(--font-heading); font-size:12.5px; font-weight:700; letter-spacing:.02em; }
.course-card .cc-body{ padding: 22px; flex:1; display:flex; flex-direction:column; }
.course-card h3{ font-size:20px; margin-bottom:10px; }
.course-card p{ color: var(--text-muted); font-size:14.5px; flex:1; }
.course-card .cc-tags{ display:flex; flex-wrap:wrap; gap:8px; margin: 14px 0; }
.course-card .cc-tags span{
  font-size: 12px; font-weight:600; background: var(--grey-bg); color: var(--primary);
  padding: 5px 12px; border-radius: 999px; border:1px solid var(--grey-border);
}
.course-card .cc-foot{ display:flex; justify-content:space-between; align-items:center; margin-top:10px; }
.course-card .cc-link{ color: var(--primary); font-weight:700; font-size:14.5px; }
.course-card .cc-link:hover{ color: var(--primary-dark); }

/* Area card */
.area-card{
  position:relative; border-radius: var(--radius-lg); overflow:hidden; min-height: 210px;
  display:flex; align-items:flex-end; padding: 26px;
  background: linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.area-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-md); }
.area-card .ac-content{ position:relative; z-index:2; }
.area-card .eyebrow{ background: rgba(255,255,255,0.18); color: var(--white); }
.area-card h3{ color: var(--white); margin-bottom:6px; font-size:21px; }
.area-card p{ color: rgba(255,255,255,0.85); font-size:13.5px; margin-bottom:12px; }
.area-card a.area-link{ color: var(--white); font-weight:700; font-size:13.5px; text-decoration: underline; text-underline-offset: 3px; }

/* Steps */
.steps{ counter-reset: step; }
.step{ display:flex; gap:18px; padding: 22px 0; border-bottom:1px solid var(--grey-border); }
.step:last-child{ border-bottom:none; }
.step .num{
  counter-increment: step; font-family: var(--font-heading); font-weight:800; font-size:15px; color: var(--white);
  min-width:36px; height:36px; border-radius:50%; background: var(--primary);
  display:flex; align-items:center; justify-content:center;
}
.step .num::before{ content: counter(step); }
.step h4{ margin-bottom:6px; font-size:17px; }
.step p{ color: var(--text-muted); margin:0; font-size:14.5px; }

/* Stats strip */
.stats-strip{ display:flex; flex-wrap:wrap; gap:0; border:1px solid rgba(255,255,255,0.15); border-radius: var(--radius-lg); overflow:hidden; }
.stats-strip .stat{ flex:1; min-width: 140px; text-align:center; padding: 28px 16px; border-right:1px solid rgba(255,255,255,0.15); }
.stats-strip .stat:last-child{ border-right:none; }
.stats-strip .stat b{ display:block; font-family: var(--font-heading); font-size: 32px; color: var(--accent); font-weight:800; }
.stats-strip .stat span{ font-size:12.5px; font-weight:600; letter-spacing:.03em; color: rgba(255,255,255,0.7); }

/* Testimonial */
.quote-card{ background: var(--white); border-radius: var(--radius-lg); padding: 28px; border:1px solid var(--grey-border); box-shadow: var(--shadow-sm); }
.quote-card p{ font-size:17px; color: var(--dark); margin-bottom:16px; font-weight: 500; }
.quote-card .who{ font-size:13px; color: var(--primary); font-weight:700; }

/* FAQ accordion */
.accordion .qa{ border-bottom:1px solid var(--grey-border); }
.accordion .qa summary{
  cursor:pointer; list-style:none; padding: 20px 0; display:flex; justify-content:space-between; align-items:center;
  font-family: var(--font-heading); font-size:17px; color: var(--dark); font-weight:600;
}
.accordion .qa summary::-webkit-details-marker{ display:none; }
.accordion .qa summary::after{ content:"+"; font-size:22px; color: var(--primary); font-weight:700; }
.accordion .qa[open] summary::after{ content:"\\2212"; }
.accordion .qa .qa-a{ padding: 0 0 20px; color: var(--text-muted); font-size:14.5px; max-width: 700px; }

/* CTA band */
.cta-band{
  background: linear-gradient(120deg, var(--primary), var(--primary-dark));
  color: var(--white); border-radius: var(--radius-lg); padding: 50px; text-align:center;
}
.cta-band h2{ color: var(--white); }
.cta-band p{ color: rgba(255,255,255,0.9); max-width: 520px; margin:0 auto 26px; }
.cta-band .hero-ctas{ justify-content:center; }
.cta-band .btn-outline{ border-color: rgba(255,255,255,0.6); }

/* Breadcrumb */
.breadcrumb{ font-size:13px; color: rgba(255,255,255,0.7); padding: 18px 0 0; }
.breadcrumb a{ color: var(--white); font-weight: 600; }

/* Page header (inner pages) */
.page-hero{ background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color:var(--white); padding: 54px 0 60px; }
.page-hero h1{ color: var(--white); font-size: clamp(28px,3.6vw,42px); margin-bottom:12px; }
.page-hero p{ color: rgba(255,255,255,0.88); max-width: 620px; font-size:16px; }

/* Table */
table.simple{ width:100%; border-collapse: collapse; }
table.simple th, table.simple td{ text-align:left; padding: 14px 16px; border-bottom:1px solid var(--grey-border); font-size:14.5px; }
table.simple th{ font-family: var(--font-heading); font-size:13px; font-weight:700; color: var(--primary); text-transform:uppercase; }

/* Contact */
.contact-grid{ display:grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items:start; }
.contact-info-card{ background: var(--white); border:1px solid var(--grey-border); border-radius: var(--radius-lg); padding:28px; box-shadow: var(--shadow-sm); }
.contact-info-card .row{ display:flex; gap:14px; padding: 14px 0; border-bottom:1px solid var(--grey-border); }
.contact-info-card .row:last-child{ border-bottom:none; }
.contact-info-card .row .ic{ width:38px; height:38px; border-radius:8px; background:var(--primary-light); display:flex; align-items:center; justify-content:center; color:var(--primary); font-size:16px; flex-shrink:0; }
.contact-info-card .row h4{ font-size:14.5px; margin-bottom:2px; }
.contact-info-card .row p{ margin:0; font-size:14px; color: var(--text-muted); }
.contact-info-card .row a{ color: var(--primary); font-weight:600; }

form.enquiry{ background: var(--white); border:1px solid var(--grey-border); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); }
.form-row{ display:grid; grid-template-columns: 1fr 1fr; gap:16px; margin-bottom:16px; }
.field{ display:flex; flex-direction:column; gap:6px; }
.field label{ font-size:13.5px; font-weight:600; color: var(--dark); }
.field input, .field select, .field textarea{
  padding: 12px 14px; border:1px solid var(--grey-border); border-radius: var(--radius);
  font-family: var(--font-body); font-size:14.5px; background: var(--grey-bg);
}
.field input:focus, .field select:focus, .field textarea:focus{ outline:none; border-color: var(--primary); background: var(--white); }
.form-note{ font-size:12.5px; color: var(--text-muted); margin-top:10px; }
.map-embed{ border-radius: var(--radius-lg); overflow:hidden; border:1px solid var(--grey-border); margin-top:24px; }
.map-embed iframe{ width:100%; height:320px; border:0; display:block; }

/* Footer */
.site-footer{ background: var(--dark); color: rgba(255,255,255,0.75); padding: 60px 0 26px; }
.footer-grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; margin-bottom: 44px; }
.footer-grid h4{ color: var(--white); font-family: var(--font-heading); font-size:14px; font-weight:700; margin-bottom:16px; }
.footer-grid ul li{ margin-bottom:10px; }
.footer-grid ul li a:hover{ color: var(--accent); }
.footer-brand p{ color: rgba(255,255,255,0.6); font-size:14px; max-width:280px; }
.footer-bottom{
  border-top:1px solid rgba(255,255,255,0.15); padding-top:22px;
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px;
  font-size:13px;
}
.footer-bottom a{ color: rgba(255,255,255,0.6); }
.footer-bottom a:hover{ color: var(--accent); }
.wa-float{
  position:fixed; right:22px; bottom:22px; z-index:200;
  width:56px; height:56px; border-radius:50%; background:#25D366;
  display:flex; align-items:center; justify-content:center; box-shadow: 0 10px 24px rgba(0,0,0,0.25);
  color:#fff; font-size:26px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px){
  .hero-grid{ grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4{ grid-template-columns: repeat(2,1fr); }
  .footer-grid{ grid-template-columns: repeat(2,1fr); }
  .contact-grid{ grid-template-columns: 1fr; }
}
@media (max-width: 720px){
  nav.main-nav{ position:fixed; top:70px; left:0; right:0; bottom:0; background: var(--white);
    flex-direction:column; align-items:stretch; padding: 12px 20px; transform: translateX(100%);
    transition: transform .25s ease; overflow-y:auto; border-top: 1px solid var(--grey-border); }
  nav.main-nav.open{ transform: translateX(0); }
  nav.main-nav > ul{ flex-direction:column; align-items:stretch; gap:0; }
  .dropdown{ position:static; opacity:1; visibility:visible; transform:none; box-shadow:none; background:transparent; border:none; display:none; padding-left:12px; }
  li.has-dropdown.open .dropdown{ display:block; }
  .cta-header{ margin: 10px 0 0; text-align:center; justify-content:center; }
  .menu-toggle{ display:block; }
  .grid-2, .grid-3, .grid-4{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; }
  .form-row{ grid-template-columns: 1fr; }
  section{ padding: 54px 0; }
}
