/* ═══════════════════════════════════════════════════════════
   StudyZoom International — Static Pages Shell CSS
   Colors matched to Flutter app (colors.dart)
   ═══════════════════════════════════════════════════════════ */

/* ── 1. Design Tokens ─────────────────────────────────── */
:root {
  /* Primary palette — from Flutter colors.dart */
  --sz-primary: #e67e22;
  --sz-primary-light: #ffba81;
  --sz-primary-dark: #c56a10;
  --sz-secondary: #00938D;
  --sz-accent: #2fda00;

  /* Neutrals */
  --sz-bg: #fcfcfc;
  --sz-bg-alt: #f5f0eb;
  --sz-surface: #ffffff;
  --sz-border: #eaeaea;
  --sz-text: #131313;
  --sz-text-2: #555555;
  --sz-text-3: #999999;

  /* Dark surface (for navbar/footer) */
  --sz-dark: #1a1510;
  --sz-dark-2: #2a2218;

  /* Sizing */
  --sz-max-w: 1080px;
  --sz-nav-h: 64px;
  --sz-radius: 12px;
  --sz-radius-sm: 8px;

  /* Font */
  --sz-font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Transitions */
  --sz-dur: 0.25s;
}

/* ── 2. Reset & Base ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sz-font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--sz-text);
  background: var(--sz-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--sz-primary);
  text-decoration: none;
  transition: color var(--sz-dur);
}
a:hover { color: var(--sz-primary-dark); }

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

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--sz-text);
}
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.85rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.2rem; }

p { margin-bottom: 1rem; }
ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: 0.35rem; }

/* ── 3. Layout Utilities ──────────────────────────────── */
.sz-container {
  width: 100%;
  max-width: var(--sz-max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.sz-section {
  padding: 64px 0;
}

.sz-section-alt {
  padding: 64px 0;
  background: var(--sz-bg-alt);
}

.sz-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.sz-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.sz-text-center { text-align: center; }

/* ── 4. NAVBAR ────────────────────────────────────────── */
.sz-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--sz-dark);
  height: var(--sz-nav-h);
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.sz-nav-inner {
  max-width: var(--sz-max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sz-nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.sz-nav-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--sz-primary);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 20px;
  color: #fff;
  font-weight: 800;
}

.sz-nav-logo-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}
.sz-nav-logo-text span {
  color: var(--sz-primary);
}

.sz-nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.sz-nav-links a {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--sz-radius-sm);
  transition: all var(--sz-dur);
  text-decoration: none;
}
.sz-nav-links a:hover,
.sz-nav-links a.active {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.sz-nav-cta {
  background: var(--sz-primary) !important;
  color: #fff !important;
  font-weight: 600 !important;
  padding: 8px 20px !important;
  border-radius: 50px !important;
}
.sz-nav-cta:hover {
  background: var(--sz-primary-dark) !important;
  transform: translateY(-1px);
}

/* Mobile hamburger */
.sz-nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.sz-nav-hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: #fff;
  border-radius: 2px;
  transition: all var(--sz-dur);
}

/* Mobile menu */
.sz-mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--sz-dark);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.sz-mobile-menu.active { display: flex; }
.sz-mobile-menu a {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 500;
  padding: 12px 24px;
  text-decoration: none;
}
.sz-mobile-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

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

/* ── 5. PAGE HERO ─────────────────────────────────────── */
.sz-hero {
  background: linear-gradient(135deg, var(--sz-primary) 0%, var(--sz-primary-dark) 100%);
  color: #fff;
  padding: 72px 0 56px;
  position: relative;
  overflow: hidden;
}
.sz-hero::after {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}
.sz-hero h1 {
  color: #fff;
  margin-bottom: 12px;
}
.sz-hero p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  max-width: 650px;
}
.sz-hero-subtitle {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  font-weight: 400;
  margin-bottom: 4px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Hero stats */
.sz-hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.sz-hero-stat {
  text-align: center;
}
.sz-hero-stat .num {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.sz-hero-stat .lbl {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
}

/* ── 6. CARDS ─────────────────────────────────────────── */
.sz-card {
  background: var(--sz-surface);
  border: 1px solid var(--sz-border);
  border-radius: var(--sz-radius);
  padding: 28px;
  transition: all var(--sz-dur);
}
.sz-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}

.sz-card-icon {
  width: 52px;
  height: 52px;
  background: var(--sz-bg-alt);
  border-radius: var(--sz-radius-sm);
  display: grid;
  place-items: center;
  font-size: 24px;
  margin-bottom: 16px;
}

.sz-card h3 { margin-bottom: 8px; }
.sz-card p { color: var(--sz-text-2); font-size: 0.95rem; }

/* ── 7. BUTTONS ───────────────────────────────────────── */
.sz-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: var(--sz-font);
  border: none;
  cursor: pointer;
  transition: all var(--sz-dur);
  text-decoration: none;
}

.sz-btn-primary {
  background: var(--sz-primary);
  color: #fff;
}
.sz-btn-primary:hover {
  background: var(--sz-primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230,126,34,0.3);
}

.sz-btn-outline {
  background: transparent;
  color: var(--sz-primary);
  border: 2px solid var(--sz-primary);
}
.sz-btn-outline:hover {
  background: var(--sz-primary);
  color: #fff;
}

.sz-btn-white {
  background: #fff;
  color: var(--sz-primary-dark);
}
.sz-btn-white:hover {
  background: rgba(255,255,255,0.9);
  transform: translateY(-2px);
}

/* ── 8. BREADCRUMB ────────────────────────────────────── */
.sz-breadcrumb {
  padding: 12px 0;
  font-size: 0.85rem;
  color: var(--sz-text-3);
}
.sz-breadcrumb a {
  color: var(--sz-text-2);
}
.sz-breadcrumb a:hover {
  color: var(--sz-primary);
}
.sz-breadcrumb span {
  margin: 0 6px;
}

/* ── 9. SECTION HEADERS ──────────────────────────────── */
.sz-section-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sz-primary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.sz-section-title {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.sz-section-desc {
  color: var(--sz-text-2);
  font-size: 1.05rem;
  max-width: 640px;
  line-height: 1.7;
}

/* Accent underline */
.sz-accent-bar {
  width: 60px;
  height: 4px;
  background: var(--sz-primary);
  border-radius: 2px;
  margin: 16px 0 24px;
}

/* ── 10. FOOTER ───────────────────────────────────────── */
.sz-footer {
  background: var(--sz-dark);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 0;
}

.sz-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.sz-footer-brand p {
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  margin-top: 12px;
  line-height: 1.6;
}

.sz-footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.sz-footer-links {
  list-style: none;
  padding: 0;
}
.sz-footer-links li { margin-bottom: 8px; }
.sz-footer-links a {
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
  transition: color var(--sz-dur);
  text-decoration: none;
}
.sz-footer-links a:hover {
  color: var(--sz-primary-light);
}

.sz-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.sz-footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  margin: 0;
}
.sz-footer-bottom-links {
  display: flex;
  gap: 20px;
}
.sz-footer-bottom-links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
}
.sz-footer-bottom-links a:hover {
  color: var(--sz-primary-light);
}

/* Social links */
.sz-social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.sz-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: grid;
  place-items: center;
  font-size: 16px;
  text-decoration: none;
  transition: all var(--sz-dur);
}
.sz-social a:hover {
  background: var(--sz-primary);
  transform: translateY(-2px);
}

/* ── 11. FORM ELEMENTS ────────────────────────────────── */
.sz-form-group {
  margin-bottom: 20px;
}
.sz-form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--sz-text);
}
.sz-input, .sz-textarea, .sz-select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--sz-border);
  border-radius: var(--sz-radius-sm);
  font-family: var(--sz-font);
  font-size: 0.95rem;
  color: var(--sz-text);
  background: var(--sz-surface);
  transition: border-color var(--sz-dur);
}
.sz-input:focus, .sz-textarea:focus, .sz-select:focus {
  outline: none;
  border-color: var(--sz-primary);
  box-shadow: 0 0 0 3px rgba(230,126,34,0.12);
}
.sz-textarea {
  resize: vertical;
  min-height: 130px;
}

/* ── 12. UTILITY ──────────────────────────────────────── */
.sz-chip {
  display: inline-block;
  padding: 6px 16px;
  background: var(--sz-bg-alt);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--sz-text-2);
  margin: 4px;
}

.sz-divider {
  height: 1px;
  background: var(--sz-border);
  margin: 40px 0;
}

.sz-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(230,126,34,0.1);
  color: var(--sz-primary);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* ── 13. RESPONSIVE ───────────────────────────────────── */
@media (max-width: 900px) {
  .sz-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .sz-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 600px) {
  .sz-grid-2, .sz-grid-3 { grid-template-columns: 1fr; }
  .sz-footer-grid { grid-template-columns: 1fr; }
  .sz-hero { padding: 48px 0 40px; }
  .sz-section { padding: 40px 0; }
  .sz-hero-stats { gap: 20px; }
}
