/* ================================================
   MannaField International Language School
   Main Stylesheet
   ================================================ */

:root {
  --navy:       #1A3C6E;
  --navy-dark:  #0F2448;
  --navy-mid:   #243F72;
  --gold:       #C98A2E;
  --gold-light: #E0A040;
  --white:      #FFFFFF;
  --gray-50:    #F8FAFC;
  --gray-100:   #F1F5F9;
  --gray-200:   #E2E8F0;
  --gray-500:   #64748B;
  --gray-600:   #475569;
  --gray-700:   #334155;
  --gray-900:   #0F172A;
  --font:       'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-en:    'Inter', sans-serif;
  --r:          12px;
  --r-lg:       20px;
  --sh:         0 4px 24px rgba(26,60,110,.08);
  --sh-md:      0 8px 40px rgba(26,60,110,.13);
  --sh-lg:      0 20px 60px rgba(26,60,110,.18);
  --ease:       0.3s cubic-bezier(.4,0,.2,1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--gray-700);
  line-height: 1.75;
  overflow-x: hidden;
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }
input, select, textarea { font-family: var(--font); }
textarea { resize: vertical; }

/* ================================================
   NAVIGATION
   ================================================ */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow var(--ease);
}
.navbar.scrolled { box-shadow: var(--sh); }

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.logo-img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 50%;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-zh  { font-size: 15px; font-weight: 700; color: var(--navy); letter-spacing: .04em; }
.logo-en  { font-size: 9.5px; font-family: var(--font-en); color: var(--gray-500); letter-spacing: .06em; white-space: nowrap; }

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--gray-600);
  position: relative;
  transition: color var(--ease);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--ease);
}
.nav-links a:hover { color: var(--navy); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.btn-nav-cta {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  padding: 9px 22px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  transition: var(--ease);
  white-space: nowrap;
}
.btn-nav-cta:hover {
  background: var(--navy-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(26,60,110,.3);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--ease);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--gray-200);
  padding: 12px 20px 20px;
  gap: 2px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 11px 14px;
  font-size: 15px;
  color: var(--gray-700);
  border-radius: 8px;
  transition: var(--ease);
}
.mobile-menu a:hover { background: var(--gray-50); color: var(--navy); }
.mobile-menu .mobile-cta {
  margin-top: 8px;
  background: var(--navy);
  color: var(--white);
  text-align: center;
  font-weight: 600;
}

/* ================================================
   HERO
   ================================================ */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(145deg, #091929 0%, #1A3C6E 55%, #1E4A82 100%);
  padding: 120px 24px 100px;
  text-align: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 15% 50%, rgba(201,138,46,.14) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 20%, rgba(255,255,255,.04) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; max-width: 820px; }

.hero-badge {
  display: inline-block;
  border: 1px solid rgba(201,138,46,.45);
  background: rgba(201,138,46,.12);
  color: #E8B45A;
  padding: 8px 22px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .06em;
  margin-bottom: 30px;
}

.hero-title {
  font-size: clamp(38px, 6.5vw, 68px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.25;
  letter-spacing: .03em;
  margin-bottom: 24px;
}
.hero-highlight {
  color: var(--gold-light);
  display: inline-block;
}

.hero-subtitle {
  font-size: clamp(15px, 2.2vw, 19px);
  color: rgba(255,255,255,.78);
  margin-bottom: 52px;
  line-height: 1.9;
}
.hero-subtitle strong { color: var(--white); }

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  padding: 24px 48px;
  margin-bottom: 48px;
  gap: 0;
  backdrop-filter: blur(8px);
}
.stat { display: flex; flex-direction: column; align-items: center; padding: 0 36px; }
.stat-num {
  font-family: var(--font-en);
  font-size: 38px;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label { font-size: 12.5px; color: rgba(255,255,255,.65); white-space: nowrap; }
.stat-div { width: 1px; height: 52px; background: rgba(255,255,255,.18); }

.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  padding: 14px 34px;
  border-radius: 10px;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: .04em;
  transition: var(--ease);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201,138,46,.45);
}

.btn-ghost {
  display: inline-block;
  background: rgba(255,255,255,.1);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 15.5px;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,.28);
  transition: var(--ease);
}
.btn-ghost:hover { background: rgba(255,255,255,.18); transform: translateY(-2px); }

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
}
.scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,.5), transparent);
  margin: 0 auto;
  animation: scrollPulse 2s infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50%       { opacity: .4; transform: scaleY(.7); }
}

/* ================================================
   SHARED SECTION STYLES
   ================================================ */
.section        { padding: 100px 24px; }
.section--gray  { background: var(--gray-50); }
.section--navy  { background: linear-gradient(145deg, #091929 0%, #1A3C6E 100%); }

.container { max-width: 1200px; margin: 0 auto; }

.section-header { text-align: center; margin-bottom: 64px; }
.tag {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--gold);
  background: rgba(201,138,46,.1);
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.tag--light { color: #E8B45A; background: rgba(201,138,46,.18); }

.section-title {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: .03em;
  margin-bottom: 14px;
}
.section-title.light { color: var(--white); }

.section-desc { font-size: 15.5px; color: var(--gray-500); max-width: 540px; margin: 0 auto; }
.section-desc.light { color: rgba(255,255,255,.65); }

/* ================================================
   COURSES
   ================================================ */
.courses-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

.course-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 42px 38px;
  border: 2px solid var(--gray-200);
  position: relative;
  transition: var(--ease);
  box-shadow: var(--sh);
}
.course-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-lg);
  border-color: rgba(26,60,110,.3);
}
.course-card--featured {
  border-color: var(--navy);
  background: linear-gradient(160deg, #EEF4FF 0%, #FAFCFF 100%);
}

.featured-pill {
  position: absolute;
  top: 20px; right: 20px;
  background: var(--gold);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: .06em;
}

.course-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.course-icon svg { width: 26px; height: 26px; }
.igcse { background: rgba(26,60,110,.1); color: var(--navy); }
.ielts { background: rgba(201,138,46,.13); color: var(--gold); }

.course-badge {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.course-card h3 {
  font-size: 26px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 14px;
}
.course-desc {
  font-size: 14.5px;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 26px;
}

.course-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}
.course-features li {
  font-size: 14px;
  color: var(--gray-700);
  display: flex;
  align-items: center;
  gap: 10px;
}
.feat-dot {
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

.course-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--navy);
  font-weight: 700;
  font-size: 14.5px;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
  transition: var(--ease);
}
.course-link:hover { color: var(--gold); gap: 8px; }

/* Mode cards */
.mode-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 0;
}
.mode-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r);
  padding: 28px 30px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: var(--ease);
  box-shadow: var(--sh);
}
.mode-card:hover { box-shadow: var(--sh-md); transform: translateY(-3px); }
.mode-emoji { font-size: 30px; flex-shrink: 0; line-height: 1; margin-top: 2px; }
.mode-card h4 { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.mode-card p  { font-size: 13.5px; color: var(--gray-600); line-height: 1.8; }

/* ================================================
   WHY US
   ================================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.why-card {
  background: var(--white);
  border-radius: var(--r);
  padding: 32px 28px;
  box-shadow: var(--sh);
  border-bottom: 3px solid transparent;
  transition: var(--ease);
}
.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
  border-bottom-color: var(--gold);
}
.why-icon { font-size: 34px; margin-bottom: 16px; }
.why-card h4 { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.why-card p  { font-size: 13.5px; color: var(--gray-600); line-height: 1.85; }

/* ================================================
   RESULTS
   ================================================ */
.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 40px;
}
.result-card {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--sh);
  transition: var(--ease);
}
.result-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
  border-color: rgba(26,60,110,.25);
}
.result-card--gold { border-color: var(--gold); background: linear-gradient(160deg,#FFF8EC,#FFFDF7); }

.result-score-wrap { margin-bottom: 20px; }
.result-score {
  display: block;
  font-family: var(--font-en);
  font-size: 60px;
  font-weight: 900;
  color: var(--navy);
  line-height: 1;
}
.result-exam {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  margin-top: 6px;
  letter-spacing: .06em;
}
.result-name   { font-weight: 700; font-size: 16px; color: var(--navy); margin-bottom: 6px; }
.result-detail { font-size: 13.5px; color: var(--gray-600); margin-bottom: 6px; }
.result-goal   { font-size: 13px; color: var(--gray-500); font-style: italic; }

.results-cta {
  text-align: center;
  padding: 44px 32px;
  background: var(--gray-50);
  border-radius: var(--r-lg);
  border: 2px dashed var(--gray-200);
}
.results-cta p { font-size: 17px; color: var(--gray-600); margin-bottom: 22px; }

/* ================================================
   CONTACT
   ================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 390px;
  gap: 44px;
  align-items: start;
}

.form-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-lg);
  padding: 42px;
  backdrop-filter: blur(10px);
}
.form-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 28px;
}

.form-group { margin-bottom: 20px; }
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.65);
  margin-bottom: 8px;
  letter-spacing: .04em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  color: var(--white);
  font-size: 14.5px;
  outline: none;
  transition: border-color var(--ease), background var(--ease);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,.35); }
.form-group select option { background: var(--navy-dark); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  background: rgba(255,255,255,.13);
}
.form-group textarea { min-height: 100px; }

.btn-submit {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--gold);
  color: var(--white);
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .06em;
  font-family: var(--font);
  transition: var(--ease);
}
.btn-submit:hover:not(:disabled) {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,138,46,.45);
}
.btn-submit:disabled { opacity: .7; cursor: not-allowed; }
.form-hint {
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,.45);
  margin-top: 12px;
}

/* Contact side */
.contact-side { display: flex; flex-direction: column; gap: 24px; }

.wechat-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  text-align: center;
  backdrop-filter: blur(10px);
}
.wechat-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
}
.qr-box {
  width: 168px; height: 168px;
  background: var(--white);
  border-radius: 12px;
  padding: 10px;
  margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
}
.qr-box img { width: 100%; height: 100%; object-fit: contain; }
.wechat-card p { font-size: 13px; color: rgba(255,255,255,.55); }

.info-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-lg);
  padding: 28px 30px;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.info-item { display: flex; align-items: flex-start; gap: 14px; }
.info-icon { font-size: 18px; flex-shrink: 0; margin-top: 2px; }
.info-item label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-bottom: 3px;
}
.info-item a,
.info-item span {
  font-size: 14px;
  color: rgba(255,255,255,.9);
  transition: color var(--ease);
  line-height: 1.5;
}
.info-item a:hover { color: var(--gold-light); }

/* ================================================
   FOOTER
   ================================================ */
.footer {
  background: var(--gray-900);
  padding: 48px 24px 24px;
}
.footer .container { max-width: 1200px; margin: 0 auto; }

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 22px;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 44px; height: 44px; object-fit: contain; border-radius: 50%; }
.footer-zh { font-size: 14px; font-weight: 700; color: var(--white); margin-bottom: 2px; }
.footer-en { font-size: 10.5px; font-family: var(--font-en); color: rgba(255,255,255,.4); letter-spacing: .05em; }

.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a { font-size: 13.5px; color: rgba(255,255,255,.5); transition: color var(--ease); }
.footer-nav a:hover { color: var(--white); }

.footer-bottom { text-align: center; }
.footer-bottom p { font-size: 11.5px; color: rgba(255,255,255,.25); line-height: 2; }

/* ================================================
   FLOATING ELEMENTS
   ================================================ */
.float-wechat {
  position: fixed;
  bottom: 88px;
  right: 24px;
  background: #07C160;
  color: var(--white);
  border-radius: 50px;
  padding: 10px 18px 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(7,193,96,.4);
  z-index: 500;
  transition: var(--ease);
  font-size: 13.5px;
  font-weight: 600;
}
.float-wechat:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(7,193,96,.5); }
.float-wechat svg { width: 20px; height: 20px; }

.back-top {
  position: fixed;
  bottom: 28px;
  right: 24px;
  width: 42px; height: 42px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  font-size: 17px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--sh-md);
  opacity: 0;
  transform: translateY(16px);
  transition: var(--ease);
  z-index: 499;
}
.back-top.show { opacity: 1; transform: translateY(0); }
.back-top:hover { background: var(--gold); }

/* ================================================
   ANIMATIONS
   ================================================ */
[data-anim] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
[data-anim].in {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1024px) {
  .why-grid      { grid-template-columns: repeat(2, 1fr); }
  .contact-grid  { grid-template-columns: 1fr; }
  .contact-side  { flex-direction: row; flex-wrap: wrap; }
  .wechat-card, .info-card { flex: 1; min-width: 260px; }
}

@media (max-width: 768px) {
  .nav-links, .btn-nav-cta { display: none; }
  .hamburger { display: flex; }

  .section { padding: 72px 20px; }
  .section-header { margin-bottom: 44px; }

  .hero-stats { flex-direction: column; gap: 18px; padding: 24px 20px; }
  .stat { padding: 0; }
  .stat-div { width: 50%; height: 1px; }

  .courses-grid { grid-template-columns: 1fr; }
  .mode-cards   { grid-template-columns: 1fr; }
  .why-grid     { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: 1fr; }
  .form-row     { grid-template-columns: 1fr; }

  .footer-top { flex-direction: column; align-items: flex-start; }

  .float-wechat span { display: none; }
  .float-wechat { padding: 11px; border-radius: 50%; }
  .float-wechat svg { width: 22px; height: 22px; }
}

@media (max-width: 480px) {
  .logo-en   { display: none; }
  .hero-cta  { flex-direction: column; }
  .btn-primary, .btn-ghost { text-align: center; }
  .form-card { padding: 28px 20px; }
}
