/* ==========================================================================
   Hu Software Tuition — shared design system
   ========================================================================== */

:root {
  --navy-950: #070c1f;
  --navy-900: #0b1533;
  --navy-800: #121f4a;
  --navy-700: #1b2c62;
  --indigo-500: #5b6cff;
  --indigo-600: #4a58e6;
  --teal-400: #22d3c9;
  --teal-300: #7fe3db;
  --ink: #0e1428;
  --ink-soft: #4a5170;
  --paper: #ffffff;
  --paper-soft: #f6f7fc;
  --paper-tint: #eef0ff;
  --paper-tint-teal: #e7fbf9;
  --border: #e3e6f5;
  --amber: #f5a524;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(11, 21, 51, 0.06), 0 1px 1px rgba(11, 21, 51, 0.04);
  --shadow-md: 0 8px 24px rgba(11, 21, 51, 0.08);
  --shadow-lg: 0 24px 60px rgba(11, 21, 51, 0.14);
  --container: 1160px;
  --font-head: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy-900);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; color: var(--ink-soft); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--indigo-600);
  background: var(--paper-tint);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.eyebrow.on-dark {
  color: var(--teal-300);
  background: rgba(255,255,255,0.08);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--indigo-500), var(--teal-400));
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { box-shadow: var(--shadow-lg); }

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--navy-900);
}
.btn-outline:hover { border-color: var(--indigo-500); color: var(--indigo-600); }

.btn-outline-light {
  background: transparent;
  border-color: rgba(255,255,255,0.35);
  color: #fff;
}
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

.btn-block { width: 100%; }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 24px;
}
.brand img { height: 40px; width: auto; flex-shrink: 0; }
.nav-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  gap: 28px;
  min-width: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: color 0.15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--indigo-600); }
.nav-cta { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-toggle {
  display: none;
  flex-shrink: 0;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy-900);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

@media (max-width: 1080px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: none;
    gap: 20px;
  }
  .nav-menu.open { display: flex; }
  .nav-links { flex-direction: column; align-items: flex-start; gap: 16px; }
  .nav-cta { flex-direction: column; align-items: stretch; gap: 10px; }
}

@media (max-width: 600px) {
  .site-header .container { padding-left: 32px; padding-right: 32px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(1100px 520px at 15% -10%, #17245c 0%, var(--navy-900) 55%, var(--navy-950) 100%);
  color: #fff;
  overflow: hidden;
  padding: 84px 0 96px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(700px 400px at 20% 20%, black, transparent 75%);
  opacity: 0.6;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { color: #fff; }
.hero p.lead { color: rgba(255,255,255,0.78); font-size: 1.1rem; max-width: 540px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 40px;
  max-width: 520px;
}
.hero-stat {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 14px 12px;
}
.hero-stat strong { display: block; font-family: var(--font-head); font-size: 1.35rem; color: var(--teal-300); }
.hero-stat span { font-size: 0.78rem; color: rgba(255,255,255,0.7); }

.hero-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(6px);
}
.hero-card h3 { color: #fff; margin-bottom: 14px; }
.hero-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.hero-card li { display: flex; gap: 10px; align-items: flex-start; color: rgba(255,255,255,0.85); font-size: 0.94rem; }
.hero-card li svg { flex-shrink: 0; margin-top: 3px; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); max-width: none; }
}

/* ---------- Enrolment banner ---------- */
.enrol-banner {
  background: linear-gradient(100deg, var(--indigo-500), var(--teal-400));
}
.enrol-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 24px;
}
.enrol-banner-eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(255,255,255,0.2);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
  margin-right: 8px;
}
.enrol-banner-urgent {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  background: #e0233a;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
  box-shadow: 0 2px 10px rgba(224,35,58,0.5);
}
.enrol-banner h2 {
  color: #ffffff;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  margin-bottom: 4px;
}
.enrol-banner p {
  color: rgba(255,255,255,0.92);
  margin: 0 0 14px;
  font-size: 0.98rem;
}
.countdown {
  display: flex;
  gap: 10px;
}
.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(11,21,51,0.25);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-md);
  padding: 6px 12px;
  min-width: 52px;
}
.countdown-num {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
}
.countdown-label {
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
}
.enrol-banner-btn {
  background: #ffffff;
  color: var(--navy-900);
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(11,21,51,0.18);
}
.enrol-banner-btn:hover { background: #ffffff; box-shadow: 0 10px 26px rgba(11,21,51,0.24); }

/* ---------- Accolades marquee ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  background: var(--paper-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.marquee::before, .marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 90px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--paper-soft), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--paper-soft), transparent); }
.marquee-track {
  display: flex;
  width: max-content;
  gap: 40px;
  padding-left: 40px;
  animation: marquee-scroll 26s linear infinite;
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy-800);
  white-space: nowrap;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; overflow-x: auto; }
}

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--paper-soft); }
.section-navy { background: var(--navy-900); color: #fff; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy p { color: rgba(255,255,255,0.72); }

.section-head { max-width: 640px; margin: 0 0 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

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

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.icon-tile {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--paper-tint), var(--paper-tint-teal));
  color: var(--indigo-600);
  margin-bottom: 16px;
}

/* ---------- Pills / badges ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--paper-tint);
  color: var(--indigo-600);
}
.pill-teal { background: var(--paper-tint-teal); color: #0b8f85; }
.pill-amber { background: #fef3e2; color: #b5730a; }

/* ---------- Timeline (curriculum) ---------- */
.term-block {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
}
.term-block-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px dashed var(--border);
}
.week-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.week-table th, .week-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.week-table th {
  font-family: var(--font-head);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  background: var(--paper-soft);
}
.week-table td.wk-num { font-family: var(--font-head); font-weight: 700; color: var(--indigo-600); white-space: nowrap; }
.week-table tr:last-child td { border-bottom: none; }
.week-table-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--border); }

/* ---------- Pricing ---------- */
.price-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  border: 2px solid var(--indigo-500);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.price-card .price {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--navy-900);
  margin: 10px 0 4px;
}
.price-card .price span { font-size: 1rem; font-weight: 600; color: var(--ink-soft); }
.price-card ul { list-style: none; margin: 20px 0; padding: 0; display: grid; gap: 12px; }
.price-card ul li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.94rem; color: var(--ink-soft); }
.price-card ul li svg { flex-shrink: 0; margin-top: 3px; color: var(--teal-400); }
.price-badge {
  position: absolute;
  top: -14px;
  left: 28px;
  background: linear-gradient(135deg, var(--indigo-500), var(--teal-400));
  color: #fff;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
}

/* ---------- Testimonial / quote-style trust block ---------- */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--paper-soft);
}
.trust-item { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.9rem; color: var(--navy-800); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 20px; }
.step { display: flex; gap: 18px; }
.step-num {
  counter-increment: step;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy-900);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
}
.step-num::before { content: counter(step); }

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.faq-item summary {
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy-900);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--indigo-500);
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin-top: 12px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 16px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .form-row-2 { grid-template-columns: 1fr; } }
label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; color: var(--navy-800); }
input, select, textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--indigo-500);
  box-shadow: 0 0 0 3px rgba(91,108,255,0.15);
}
textarea { resize: vertical; min-height: 120px; }

/* ---------- Contact blocks ---------- */
.contact-tile {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: #fff;
}
.contact-tile .icon-tile { margin-bottom: 0; }
.contact-tile p { margin-bottom: 0; }

/* ---------- Download cards ---------- */
.download-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.download-card .doc-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--indigo-500), var(--teal-400));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Photo frame ---------- */
.photo-frame {
  width: 152px;
  height: 152px;
  border-radius: 22px;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: var(--shadow-lg);
  background: var(--paper-tint);
  flex-shrink: 0;
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 10%; transform: scale(0.95); }
.photo-frame-lg { width: 168px; height: 168px; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  color: #fff;
}
.cta-banner h2, .cta-banner p { color: #fff; }
.cta-banner p { color: rgba(255,255,255,0.75); margin: 0; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950);
  color: rgba(255,255,255,0.65);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-grid h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { text-decoration: none; color: rgba(255,255,255,0.65); font-size: 0.92rem; }
.footer-grid a:hover { color: var(--teal-300); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  font-size: 0.82rem;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Page header (inner pages) ---------- */
.page-header {
  background: radial-gradient(900px 420px at 85% -20%, #17245c 0%, var(--navy-900) 55%, var(--navy-950) 100%);
  color: #fff;
  padding: 64px 0 56px;
}
.page-header h1 { color: #fff; margin-bottom: 12px; }
.page-header p { color: rgba(255,255,255,0.75); max-width: 620px; }
.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.5); margin-bottom: 14px; }
.breadcrumb a { color: rgba(255,255,255,0.75); text-decoration: none; }

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.text-sm { font-size: 0.85rem; }
.muted { color: var(--ink-soft); }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-12 { gap: 12px; }
.items-center { align-items: center; }
.divider { height: 1px; background: var(--border); border: none; margin: 32px 0; }
