/* ============================================================
   Myo Nyunt Private High School — site stylesheet (lively theme)
   Brand: deep green #00483C, emerald #0E8A6D, gold #E7B368
   ============================================================ */

:root {
  --green: #00483C;
  --green-dark: #012D25;
  --emerald: #0E8A6D;
  --teal: #2A9D8F;
  --coral: #E2795B;
  --gold: #E7B368;
  --gold-deep: #C98F4C;
  --gold-soft: #F7E8D0;
  --bg: #FBF7EF;
  --mint: #ECF6F0;
  --ink: #21312C;
  --muted: #64716B;
  --card: #FFFFFF;
  --line: #EAE2D4;
  --radius: 18px;
  --shadow: 0 3px 14px rgba(1, 45, 37, 0.09);
  --shadow-lg: 0 14px 38px rgba(1, 45, 37, 0.18);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', 'Noto Sans Myanmar', 'Myanmar Text', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-size: 16px;
}

/* ---------- Bilingual switching ----------
   body.lang-en shows .en, body.lang-my shows .my.
   Burmese is the default; before JS runs, Burmese is the fallback. */
body.lang-en .my { display: none !important; }
body.lang-my .en { display: none !important; }
body:not(.lang-en):not(.lang-my) .en { display: none !important; }

.my {
  font-family: 'Noto Sans Myanmar', 'Myanmar Text', 'Padauk', sans-serif;
  line-height: 1.95;
}

img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--emerald); }
ul { list-style: none; }

.container { width: min(1120px, 92%); margin: 0 auto; }

h1, h2, h3 { line-height: 1.35; color: var(--green-dark); }
h1.my, h2.my, h3.my, .my h1, .my h2, .my h3 { line-height: 1.6; }

section { padding: 72px 0; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 12px; }
.section-head h2::after {
  content: "";
  display: block;
  width: 68px;
  height: 5px;
  border-radius: 99px;
  margin: 14px auto 0;
  background: linear-gradient(90deg, var(--gold), var(--emerald));
}
.section-head p { color: var(--muted); }
.kicker {
  display: inline-block;
  color: var(--green-dark);
  background: linear-gradient(90deg, var(--gold), #F0CE96);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 999px;
  margin-bottom: 14px;
  box-shadow: 0 3px 10px rgba(201, 143, 76, 0.35);
}

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) rotate(0deg); }
  to   { transform: translate3d(3%, 4%, 0) rotate(2deg); }
}
@keyframes bob {
  from { transform: translateY(0); }
  to   { transform: translateY(-10px); }
}

/* Scroll-in reveal (class added by JS; harmless without it) */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 253, 248, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
}

.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  background: #fff;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.brand:hover img { transform: rotate(-8deg) scale(1.06); }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text strong { color: var(--green-dark); font-size: 0.98rem; line-height: 1.3; }
.brand-text small { color: var(--gold-deep); font-size: 0.72rem; letter-spacing: 0.04em; font-weight: 600; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-links a:hover { background: var(--mint); color: var(--emerald); }
.nav-links a.active {
  background: linear-gradient(120deg, var(--green), var(--emerald));
  color: #fff;
  box-shadow: 0 4px 12px rgba(14, 138, 109, 0.35);
}

.lang-toggle {
  border: 2px solid var(--gold);
  background: #fff;
  color: var(--green-dark);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
  margin-left: 8px;
  transition: all 0.15s ease;
}
.lang-toggle:hover {
  background: linear-gradient(120deg, var(--gold), #F0CE96);
  border-color: var(--gold-deep);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  border: none;
  background: none;
  font-size: 1.6rem;
  color: var(--green-dark);
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 460px at 88% -10%, rgba(231, 179, 104, 0.35), transparent 60%),
    linear-gradient(140deg, var(--green-dark) 0%, #045D4C 45%, var(--emerald) 100%);
  color: #fff;
  padding: 92px 0 140px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20%;
  pointer-events: none;
  background:
    radial-gradient(closest-side, rgba(231, 179, 104, 0.30), transparent) 10% 22% / 360px 360px no-repeat,
    radial-gradient(closest-side, rgba(255, 255, 255, 0.12), transparent) 82% 12% / 420px 420px no-repeat,
    radial-gradient(closest-side, rgba(42, 157, 143, 0.45), transparent) 68% 88% / 540px 540px no-repeat;
  animation: drift 16s ease-in-out infinite alternate;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 72px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath fill='%23FBF7EF' d='M0,64 C240,100 480,12 720,38 C960,64 1200,98 1440,44 L1440,100 L0,100 Z'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
}
.hero .container { position: relative; z-index: 2; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  color: #fff;
  font-size: clamp(1.9rem, 4vw, 3rem);
  margin-bottom: 16px;
  animation: fadeUp 0.7s 0.1s ease both;
}
.hero .motto {
  display: inline-block;
  color: var(--gold);
  background: rgba(231, 179, 104, 0.14);
  border: 1px solid rgba(231, 179, 104, 0.45);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.82rem;
  padding: 6px 18px;
  border-radius: 999px;
  margin-bottom: 20px;
  animation: fadeUp 0.7s ease both;
}
.hero p.lead {
  color: #DCEDE5;
  max-width: 34rem;
  margin-bottom: 32px;
  font-size: 1.05rem;
  animation: fadeUp 0.7s 0.2s ease both;
}
.hero .btn-row { animation: fadeUp 0.7s 0.3s ease both; }
.hero-logo { display: flex; justify-content: center; animation: bob 5s ease-in-out 1.4s infinite alternate; }
.hero-logo img {
  width: min(320px, 70vw);
  border-radius: 50%;
  border: 6px solid rgba(231, 179, 104, 0.8);
  box-shadow: 0 0 0 14px rgba(255, 255, 255, 0.07), var(--shadow-lg);
  animation: fadeUp 0.8s 0.25s ease both;
}

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-3px) scale(1.02); box-shadow: var(--shadow-lg); }
.btn-gold {
  background: linear-gradient(120deg, #F0BE6D, var(--gold-deep));
  color: var(--green-dark);
  box-shadow: 0 6px 18px rgba(201, 143, 76, 0.45);
}
.btn-gold:hover { color: var(--green-dark); }
.btn-outline { border: 2px solid rgba(255, 255, 255, 0.75); color: #fff; }
.btn-outline:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
.btn-green { background: linear-gradient(120deg, var(--green), var(--emerald)); color: #fff; }
.btn-green:hover { color: #fff; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Stats band (floats up over the hero wave) ---------- */
.stats { position: relative; z-index: 5; margin-top: -64px; padding: 0 0 24px; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat {
  background: var(--card);
  border-radius: 16px;
  padding: 24px 16px 20px;
  box-shadow: var(--shadow-lg);
  border-top: 5px solid var(--gold);
  transition: transform 0.2s ease;
}
.stat:hover { transform: translateY(-5px); }
.stat:nth-child(2) { border-top-color: var(--emerald); }
.stat:nth-child(3) { border-top-color: var(--coral); }
.stat:nth-child(4) { border-top-color: var(--teal); }
.stat b {
  display: block;
  font-size: 2.1rem;
  line-height: 1.2;
  background: linear-gradient(120deg, var(--emerald), var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.stat span { color: var(--muted); font-size: 0.9rem; }

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

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card h3 { margin-bottom: 10px; font-size: 1.15rem; }
.card p { color: var(--muted); font-size: 0.95rem; }

.icon-badge {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--emerald), var(--green));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
  box-shadow: 0 6px 16px rgba(14, 138, 109, 0.3);
  transition: transform 0.25s ease;
}
.card:nth-child(3n+2) .icon-badge {
  background: linear-gradient(135deg, #F0BE6D, var(--gold-deep));
  box-shadow: 0 6px 16px rgba(201, 143, 76, 0.35);
}
.card:nth-child(3n) .icon-badge {
  background: linear-gradient(135deg, var(--teal), #14746F);
  box-shadow: 0 6px 16px rgba(42, 157, 143, 0.35);
}
.card:hover .icon-badge { transform: rotate(-8deg) scale(1.1); }

/* Program cards */
.program-card { position: relative; overflow: hidden; }
.program-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--gold), var(--emerald));
}
.program-card .grade-tag {
  display: inline-block;
  background: var(--gold-soft);
  color: var(--green-dark);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip {
  background: #EDF7F1;
  border: 1px solid #D3E9DC;
  color: #0B4A3C;
  font-size: 0.84rem;
  padding: 5px 13px;
  border-radius: 999px;
}
.chip:nth-of-type(3n+2) { background: #FBF1DF; border-color: #EEDBB7; color: #7A5218; }
.chip:nth-of-type(3n) { background: #E9F4F3; border-color: #C8E4E1; color: #1D6A61; }

/* Checklist */
.checklist li {
  padding-left: 34px;
  position: relative;
  margin-bottom: 14px;
  color: var(--muted);
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald), var(--green));
  color: #FFE9C8;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.checklist li b { color: var(--ink); }

/* Alternate section background */
.section-alt {
  background: linear-gradient(180deg, var(--mint), #F3F9F4);
  border-top: 1px solid #DDEDE3;
  border-bottom: 1px solid #DDEDE3;
}

/* Quote / proverb */
.quote {
  position: relative;
  background:
    radial-gradient(400px 200px at 90% -20%, rgba(231, 179, 104, 0.3), transparent 70%),
    linear-gradient(135deg, var(--green-dark), var(--green) 60%, var(--emerald));
  color: #fff;
  border-radius: var(--radius);
  padding: 44px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(231, 179, 104, 0.35);
}
.quote .my-script { font-size: 1.5rem; color: var(--gold); line-height: 2; margin-bottom: 10px; font-family: 'Noto Sans Myanmar', 'Myanmar Text', sans-serif; }
.quote p { color: #DCEDE5; }

/* Principal spotlight band */
.principal-band {
  margin-top: 44px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 36px;
  align-items: center;
  background:
    radial-gradient(500px 260px at 100% 0%, rgba(231, 179, 104, 0.25), transparent 70%),
    linear-gradient(135deg, var(--green-dark), var(--green) 55%, var(--emerald));
  color: #fff;
  border-radius: var(--radius);
  padding: 40px 44px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(231, 179, 104, 0.35);
}
.principal-band .big-year {
  font-size: 3.6rem;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(120deg, #F5CE8B, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.principal-band .big-year small { display: block; font-size: 0.82rem; font-weight: 600; color: #DCEDE5; -webkit-text-fill-color: #DCEDE5; margin-top: 8px; letter-spacing: 0.06em; }
.principal-band h3 { color: #fff; font-size: 1.25rem; margin-bottom: 8px; }
.principal-band p { color: #DCEDE5; font-size: 0.97rem; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; background: var(--card); min-width: 480px; }
th, td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--line); }
th { background: linear-gradient(120deg, var(--green), var(--emerald)); color: #fff; font-weight: 600; font-size: 0.92rem; }
tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--mint); }
td { color: var(--muted); transition: background 0.15s ease; }
td:first-child { color: var(--ink); font-weight: 500; }

.note {
  margin-top: 18px;
  padding: 14px 18px;
  background: var(--gold-soft);
  border-left: 4px solid var(--gold);
  border-radius: 10px;
  color: var(--green-dark);
  font-size: 0.9rem;
}

/* Numbered steps */
.steps { counter-reset: step; display: grid; gap: 18px; }
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px 22px 76px;
  position: relative;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.step:hover { transform: translateX(6px); box-shadow: var(--shadow-lg); }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 22px;
  top: 22px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F0BE6D, var(--gold-deep));
  color: var(--green-dark);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(201, 143, 76, 0.4);
}
.step h3 { font-size: 1.05rem; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: 0.93rem; }

/* ---------- CTA strip ---------- */
.cta {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(700px 320px at 12% 110%, rgba(231, 179, 104, 0.3), transparent 65%),
    linear-gradient(120deg, var(--green-dark), var(--green) 55%, var(--emerald));
  color: #fff;
  text-align: center;
  padding: 64px 0;
}
.cta h2 { color: #fff; margin-bottom: 12px; font-size: clamp(1.5rem, 3vw, 2rem); }
.cta p { color: #DCEDE5; margin-bottom: 28px; }
.cta .btn-row { justify-content: center; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: start; }
.contact-list li {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  align-items: flex-start;
}
.contact-list .icon-badge { width: 44px; height: 44px; font-size: 1.15rem; margin: 0; flex-shrink: 0; }
.contact-list li:nth-child(2) .icon-badge { background: linear-gradient(135deg, #F0BE6D, var(--gold-deep)); }
.contact-list li:nth-child(3) .icon-badge { background: linear-gradient(135deg, var(--teal), #14746F); }
.contact-list li:nth-child(4) .icon-badge { background: linear-gradient(135deg, var(--coral), #C05B40); }
.contact-list b { display: block; color: var(--green-dark); }
.contact-list span, .contact-list a { color: var(--muted); font-size: 0.95rem; }
.contact-list a:hover { color: var(--emerald); }
.map-frame {
  border: 0;
  width: 100%;
  height: 420px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(160deg, #01221C, #003A30);
  color: #B9CCC6;
  padding: 56px 0 0;
  border-top: 4px solid var(--gold);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-grid h4 { color: var(--gold); margin-bottom: 16px; font-size: 1rem; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { width: 54px; height: 54px; border-radius: 50%; border: 2px solid var(--gold); background: #fff; }
.footer-brand strong { color: #fff; line-height: 1.35; }
.site-footer p, .site-footer li { font-size: 0.92rem; margin-bottom: 10px; }
.site-footer a { color: #B9CCC6; }
.site-footer a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 0;
  text-align: center;
  font-size: 0.85rem;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-inline: auto; }
  .btn-row { justify-content: center; }
  .hero-logo { order: -1; }
  .hero-logo img { width: min(220px, 60vw); }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .principal-band { grid-template-columns: 1fr; text-align: center; padding: 32px; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #FFFDF8;
    border-bottom: 1px solid var(--line);
    padding: 12px 4%;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; border-radius: 10px; }
  .lang-toggle { margin: 8px 0 4px; align-self: flex-start; }
  .brand-text strong { font-size: 0.85rem; }
  .stats { margin-top: -48px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  section { padding: 52px 0; }
  .hero { padding: 72px 0 120px; }
}
