/* BurmaUni static site – brand #1B51FF, responsive */

:root {
  --primary: #1b51ff;
  --primary-dark: #1440d9;
  --primary-light: #4d7aff;
  --text: #1a1a2e;
  --text-muted: #5c5c6d;
  --bg: #ffffff;
  --bg-alt: #f6f8fc;
  --border: #e8ecf4;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(27, 81, 255, 0.08);
  --font-sans: "Plus Jakarta Sans", "Noto Sans Myanmar", system-ui, sans-serif;
  --font-myanmar:
    "Noto Sans Myanmar", "Plus Jakarta Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.25rem;
  font-family: var(--font-myanmar);
}

.logo-link:hover {
  text-decoration: none;
  color: var(--primary);
}

.logo-img {
  width: 44px;
  height: 44px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition:
    transform 0.2s,
    opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.5rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-myanmar);
}

.nav-list a {
  color: var(--text);
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
}

.nav-list a:hover {
  background: var(--bg-alt);
  color: var(--primary);
  text-decoration: none;
}

.lang-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #f9fbff;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  color: var(--text-muted);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
  transition:
    box-shadow 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease,
    transform 0.1s ease;
}

.lang-toggle:hover {
  background: #ffffff;
  border-color: var(--primary-light);
  box-shadow: 0 4px 16px rgba(27, 81, 255, 0.14);
  transform: translateY(-1px);
}

.lang-toggle-pill {
  position: absolute;
  inset: 2px;
  width: 50%;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
  transform: translateX(0%);
  transition: transform 0.2s ease;
  z-index: 0;
}

.lang-toggle[data-lang="en"] .lang-toggle-pill {
  transform: translateX(100%);
}

.lang-option {
  position: relative;
  z-index: 1;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.lang-option--my {
  font-family: var(--font-myanmar);
}

.lang-option--en {
  font-family: var(--font-sans);
}

.lang-toggle[data-lang="my"] .lang-option--my,
.lang-toggle:not([data-lang]) .lang-option--my {
  color: var(--primary);
}

.lang-toggle[data-lang="my"] .lang-option--en,
.lang-toggle:not([data-lang]) .lang-option--en {
  color: var(--text-muted);
}

.lang-toggle[data-lang="en"] .lang-option--en {
  color: var(--primary);
}

.lang-toggle[data-lang="en"] .lang-option--my {
  color: var(--text-muted);
}

.lang-divider {
  position: relative;
  z-index: 1;
  width: 1px;
  height: 18px;
  background: rgba(148, 163, 184, 0.4);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .header-right {
    gap: 0.5rem;
  }

  .lang-toggle {
    padding-inline: 0.6rem;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav.is-open {
    max-height: 280px;
  }

  .nav-list {
    flex-direction: column;
    padding: 1rem;
    gap: 0.25rem;
  }

  .nav-list a {
    display: block;
    padding: 0.75rem 1rem;
  }
}

@media (min-width: 769px) {
  .nav {
    max-height: none;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 50%, #dce5ff 100%);
  z-index: 0;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.85) 0%,
    rgba(248, 250, 255, 0.9) 50%,
    rgba(240, 244, 255, 0.95) 100%
  );
  pointer-events: none;
}

.hero-bg::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 150%;
  background: radial-gradient(
    ellipse,
    rgba(27, 81, 255, 0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-logo {
  margin: 0 auto 1.5rem;
  opacity: 0.95;
}

.hero-title {
  font-family: var(--font-myanmar);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  margin: 0 0 1rem;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-myanmar);
  border-radius: var(--radius);
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.15s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border: none;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: #fff;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section:nth-child(even) {
  background: var(--bg-alt);
}

.section-title {
  font-family: var(--font-myanmar);
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.5rem;
  text-align: center;
}

.section-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.about-card {
  background: var(--bg);
  padding: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
}

.about-card-img-wrap {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-alt);
}

.about-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-card h3 {
  padding: 1.25rem 1.75rem 0;
}

.about-card p {
  padding: 0 1.75rem 1.75rem;
}

.about-card h3 {
  font-family: var(--font-myanmar);
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.about-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.about-card-img-wrap + h3 {
  padding-top: 1.25rem;
}

/* Services */
.services-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 640px;
  margin: 0 auto;
}

.service-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-myanmar);
}

.service-item:last-child {
  border-bottom: none;
}

.service-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
}

.service-item h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: var(--text);
}

.service-item p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* Contact */
.contact-box {
  max-width: 480px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.contact-text {
  font-size: 1.125rem;
  margin: 0 0 0.5rem;
}

.contact-text a {
  font-weight: 600;
}

.contact-address {
  font-size: 1.125rem;
  margin: 0 0 0.5rem;
}

.contact-note {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 1rem 0 0;
}

/* Footer */
.footer {
  padding: 1.5rem 0;
  background: var(--text);
  color: #e8ecf4;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-family: var(--font-myanmar);
}

.footer-brand img {
  opacity: 0.95;
}

.footer-copy {
  margin: 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer a {
  color: #a8b8ff;
}

@media (max-width: 600px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* Legal pages (Privacy Policy, Terms & Conditions) */
.legal-page {
  padding: 2.5rem 0 4rem;
  min-height: 60vh;
}

.legal-page .legal-header {
  margin-bottom: 2rem;
}

.legal-page .legal-meta {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
  line-height: 1.5;
}

.legal-prose {
  max-width: 42rem;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
}

.legal-prose h1 {
  font-size: clamp(1.5rem, 4vw, 1.75rem);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.75rem;
  line-height: 1.3;
}

.legal-prose h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin: 2rem 0 0.75rem;
  line-height: 1.35;
}

.legal-prose h2:first-of-type {
  margin-top: 1.5rem;
}

.legal-prose h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
  margin: 1.25rem 0 0.5rem;
  line-height: 1.4;
}

.legal-prose p {
  margin: 0 0 0.875rem;
  color: var(--text-muted);
}

.legal-prose ul,
.legal-prose ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
  color: var(--text-muted);
}

.legal-prose li {
  margin-bottom: 0.35rem;
}

.legal-prose li:last-child {
  margin-bottom: 0;
}

.legal-prose a {
  color: var(--primary);
  font-weight: 500;
}

.legal-prose strong {
  color: var(--text);
  font-weight: 600;
}

.legal-footer-note {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-muted);
}
