/* GSMS Tenant Static Website Stylesheet */
:root {
  --brand: #20bc22;
  --accent: #D4AF37;
  --ink: #0B1220;
  --ink-raised: #111C33;
  --surface: #F8FAFC;
  --card: #FFFFFF;
  --text: #0F172A;
  --muted: #475569;
  --border: #E2E8F0;
  --max-w: 1200px;
}
html[data-theme="dark"] {
  --surface: #0B1220;
  --card: #111C33;
  --text: #F8FAFC;
  --muted: #94A3B8;
  --border: rgba(255,255,255,0.10);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  max-width: 100%;
  overflow-x: hidden !important;
  position: relative;
  width: 100%;
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--surface);
  color: var(--text);
  line-height: 1.6;
}
img, svg, video {
  max-width: 100%;
  height: auto;
}
h1, h2, h3, h4, .brand-font {
  font-family: 'Outfit', 'Inter', -apple-system, sans-serif;
  letter-spacing: -0.02em;
}
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; box-sizing: border-box; }

/* Sticky Top Navigation */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 18, 32, 0.90);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.10);
  height: 60px;
  display: flex; align-items: center;
  width: 100%;
}
.header-inner {
  width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  box-sizing: border-box;
}
.brand-link { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 15px; min-width: 0; }
.brand-logo {
  width: 32px; height: 32px; border-radius: 50%; object-fit: cover;
  border: 1.5px solid var(--accent); background: #fff; flex-shrink: 0;
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  color: #E2E8F0; padding: 5px 11px; border-radius: 999px; font-size: 13px; font-weight: 500;
  transition: background 0.18s, color 0.18s;
}
.nav-link:hover, .nav-link.active { background: rgba(255,255,255,0.12); color: #fff; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.btn-chip {
  background: rgba(255,255,255,0.10); color: var(--accent); border: 1px solid rgba(255,255,255,0.16);
  padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; height: 32px; box-sizing: border-box;
  transition: background 0.18s;
}
.btn-chip:hover { background: rgba(255,255,255,0.16); }
.btn-portal {
  background: var(--accent); color: #0B1220; padding: 6px 14px; border-radius: 999px;
  font-weight: 600; font-size: 12.5px; display: inline-flex; align-items: center; gap: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.22); cursor: pointer; border: none; height: 32px; box-sizing: border-box;
  transition: opacity 0.18s, transform 0.15s;
}
.btn-portal:hover { opacity: 0.92; transform: translateY(-1px); }

/* Reactive Sun/Moon Theme Toggle Button */
.theme-toggle-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.20);
  color: #F8FAFC; cursor: pointer; transition: background 0.2s, transform 0.15s;
  flex-shrink: 0; padding: 0; box-sizing: border-box;
}
.theme-toggle-btn:hover {
  background: rgba(255,255,255,0.18); transform: scale(1.05);
}
/* In Dark Mode: Show gold sun to switch to light mode */
html[data-theme="dark"] .theme-icon-moon { display: none; }
html[data-theme="dark"] .theme-icon-sun { display: inline-flex; align-items: center; justify-content: center; color: #FBBF24; }
/* In Light Mode: Show moon to switch to dark mode */
html[data-theme="light"] .theme-icon-sun { display: none; }
html[data-theme="light"] .theme-icon-moon { display: inline-flex; align-items: center; justify-content: center; color: #E2E8F0; }

/* Mobile Header Controls */
.mobile-menu-btn {
  display: none; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.20);
  color: #fff; width: 34px; height: 34px; border-radius: 9px; cursor: pointer; flex-shrink: 0; padding: 0;
}
.mobile-actions { display: none; align-items: center; gap: 8px; flex-shrink: 0; }

/* Android-Style Left-Side Mobile Slide-Over Drawer */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(6, 12, 26, 0.68); backdrop-filter: blur(4px);
  z-index: 300; opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.mobile-drawer {
  position: fixed; top: 0; left: 0; bottom: 0; width: min(340px, 84vw); max-width: 100vw;
  background: #0B1220; color: #F8FAFC; z-index: 301;
  transform: translateX(-100%); transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex; flex-direction: column; border-right: 1px solid rgba(255,255,255,0.12);
  box-shadow: 16px 0 40px rgba(0,0,0,0.45); box-sizing: border-box;
}
.mobile-drawer.open { transform: translateX(0); }
.drawer-header {
  padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.drawer-body { flex: 1; overflow-y: auto; padding: 12px 14px 24px; }
.drawer-section-label {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; color: #64748B;
  margin: 14px 8px 6px; text-transform: uppercase;
}
.drawer-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px;
  color: #F1F5F9; font-size: 13.5px; font-weight: 600; cursor: pointer;
  background: transparent; border: none; width: 100%; text-align: left;
  transition: background 0.18s; box-sizing: border-box;
}
.drawer-item:hover, .drawer-item.active { background: rgba(255,255,255,0.08); }
.drawer-item-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 8px;
  background: rgba(255,255,255,0.06); color: var(--accent); flex-shrink: 0;
}
.drawer-item-sub { display: block; font-size: 11px; color: #94A3B8; font-weight: 400; margin-top: 2px; }
.drawer-app-banner {
  background: linear-gradient(135deg, rgba(56,189,248,0.16), rgba(37,99,235,0.20));
  border: 1px solid rgba(56,189,248,0.36); border-radius: 14px; padding: 12px;
  margin-bottom: 10px; cursor: pointer; display: flex; align-items: center; gap: 10px;
}
.drawer-footer {
  padding: 12px 14px; border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.25); font-size: 11px; color: #64748B; text-align: center;
}

/* Get Android App Modal Elements */
.app-id-box {
  background: rgba(37,99,235,0.08); border: 1px solid rgba(37,99,235,0.28);
  border-radius: 14px; padding: 12px 16px; display: flex; align-items: center;
  justify-content: space-between; gap: 12px; margin: 14px 0;
}
.qr-frame {
  background: #FFFFFF; border: 2px solid #E2E8F0; border-radius: 18px;
  padding: 14px; display: inline-flex; flex-direction: column; align-items: center;
  margin: 8px auto 14px; box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}
.app-action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }

/* Sticky Mobile Bottom Contact & Portal Dock */
.mobile-contact-dock {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  background: rgba(11, 18, 32, 0.96); backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
  align-items: center; justify-content: space-between; gap: 8px;
  box-shadow: 0 -6px 24px rgba(0,0,0,0.35);
}
.dock-actions { display: flex; align-items: center; gap: 8px; }
.dock-circle-btn {
  width: 36px; height: 36px; border-radius: 50%; display: inline-flex;
  align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.08); color: #fff; cursor: pointer;
  transition: background 0.18s; flex-shrink: 0;
}
.dock-circle-btn:hover { background: rgba(255,255,255,0.16); }
.dock-circle-btn svg { width: 16px; height: 16px; }
.mobile-icon-btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 12px; border-radius: 999px;
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.38);
  color: #38BDF8; font-size: 12px; font-weight: 600;
  cursor: pointer; transition: all 0.18s ease;
  white-space: nowrap; font-family: inherit;
}
.mobile-icon-btn:hover, .mobile-icon-btn:active {
  background: rgba(56, 189, 248, 0.28);
  border-color: rgba(56, 189, 248, 0.6);
  transform: translateY(-1px);
}
.mobile-icon-btn svg { width: 14px; height: 14px; }

/* Hero Section */
.hero {
  background: radial-gradient(circle at 85% 20%, var(--brand) 0%, #0B1220 70%);
  color: #fff; padding: 72px 0 110px; position: relative; overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
}
.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.20);
  padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; margin-bottom: 18px;
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #10B981; display: inline-block; }
.hero-title { font-size: clamp(32px, 4.5vw, 52px); font-weight: 800; line-height: 1.12; margin-bottom: 14px; }
.hero-motto { font-size: clamp(16px, 2vw, 21px); color: #CBD5E1; margin-bottom: 28px; max-width: 640px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-primary {
  background: var(--accent); color: #0B1220; padding: 14px 26px; border-radius: 999px;
  font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; border: none; cursor: pointer;
}
.btn-outline-light {
  background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.35);
  padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 8px;
}
.glass-card {
  background: rgba(255,255,255,0.10); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.18); border-radius: 20px; padding: 24px;
}
.today-row { padding: 10px 0; border-top: 1px solid rgba(255,255,255,0.12); display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.today-row:first-of-type { border-top: none; }

/* Overlapping Portal Launcher */
.portal-launcher { margin-top: -54px; position: relative; z-index: 10; margin-bottom: 56px; }
.launcher-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.portal-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 20px;
  padding: 22px; min-height: 155px; display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 12px 28px rgba(0,0,0,0.07); transition: transform 0.2s, border-color 0.2s; cursor: pointer;
}
.portal-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.portal-card.highlight { border: 2px solid var(--accent); }
.portal-icon {
  width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(26,35,126,0.08); color: var(--brand); font-size: 20px; font-weight: 700;
}
html[data-theme="dark"] .portal-icon { background: rgba(255,255,255,0.10); color: var(--accent); }
.portal-card h3 { font-size: 17px; font-weight: 700; margin-top: 14px; }
.portal-card p { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* Generic Sections & Cards */
.section { padding: 64px 0; }
.section-alt { background: rgba(15,23,42,0.03); }
html[data-theme="dark"] .section-alt { background: rgba(255,255,255,0.02); }
.section-header { margin-bottom: 36px; max-width: 720px; }
.section-title { font-size: clamp(24px, 3vw, 34px); font-weight: 800; margin-bottom: 8px; }
.section-subtitle { font-size: 16px; color: var(--muted); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; align-items: center; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 24px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.04); box-sizing: border-box; overflow-wrap: break-word; word-break: break-word;
}
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip {
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  padding: 5px 11px; font-size: 13px; font-weight: 600;
}
.badge-active {
  background: rgba(16,185,129,0.15); color: #10B981; padding: 4px 10px;
  border-radius: 999px; font-size: 12px; font-weight: 700;
}
.block-img {
  width: 100%; border-radius: 16px; object-fit: cover; max-height: 360px;
  border: 1px solid var(--border); margin-bottom: 16px;
}
.principal-wrap { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; box-sizing: border-box; }
.principal-img {
  width: 140px; height: 140px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--accent); flex-shrink: 0;
}

/* Contact & Inquiry Form */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-size: 14px; font-family: inherit;
  box-sizing: border-box;
}
.form-textarea { min-height: 120px; resize: vertical; }
.cat-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.cat-pill {
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer;
}
.cat-pill.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.hp-field { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.alert-success {
  background: rgba(16,185,129,0.12); border: 1px solid #10B981; color: #065F46;
  padding: 20px; border-radius: 16px; margin-top: 16px;
}
html[data-theme="dark"] .alert-success { color: #6EE7B7; }

/* Footer */
.site-footer { background: #0B1220; color: #94A3B8; padding: 64px 0 36px; margin-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1.5fr 1fr; gap: 36px; margin-bottom: 40px; }
.footer-title { color: #fff; font-size: 16px; font-weight: 700; margin-bottom: 14px; }
.footer-list { list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.10); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; }

/* Modal Overlay */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.65); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; z-index: 200; padding: 16px;
}
.modal-backdrop.open { display: flex; }
.modal-card {
  background: var(--card); color: var(--text); border: 1px solid var(--border);
  border-radius: 24px; max-width: min(480px, calc(100vw - 32px)); width: 100%; padding: 26px; position: relative;
  box-sizing: border-box; max-height: 90vh; overflow-y: auto;
}

/* Student ID Verification Modal & State Theming */
.verify-result-wrap {
  margin-top: 18px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: background 0.2s, border-color 0.2s;
}
.verify-badge-valid {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(34,197,94,0.12);
  color: #16A34A;
  border: 1px solid rgba(34,197,94,0.3);
}
html[data-theme="dark"] .verify-badge-valid {
  color: #4ADE80;
}
.verify-badge-expired {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(245,158,11,0.12);
  color: #D97706;
  border: 1px solid rgba(245,158,11,0.3);
}
html[data-theme="dark"] .verify-badge-expired {
  color: #FBBF24;
}
.verify-error-box {
  margin-top: 18px;
  padding: 16px;
  background: rgba(239,68,68,0.10);
  border: 1px solid rgba(239,68,68,0.25);
  border-radius: 14px;
  color: #DC2626;
  font-size: 13.5px;
  line-height: 1.5;
}
html[data-theme="dark"] .verify-error-box {
  color: #F87171;
}
.verify-loading-box {
  margin-top: 18px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 14px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.verify-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: verify-spin 0.8s linear infinite;
  flex-shrink: 0;
}
@keyframes verify-spin {
  to { transform: rotate(360deg); }
}
.verify-student-avatar {
  width: 68px;
  height: 68px;
  border-radius: 14px;
  object-fit: cover;
  border: 2px solid var(--brand);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  flex-shrink: 0;
}
.verify-student-avatar-placeholder {
  width: 68px;
  height: 68px;
  border-radius: 14px;
  background: var(--brand);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  flex-shrink: 0;
}
.verify-detail-row {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero-grid, .footer-grid { grid-template-columns: 1fr !important; }
  .grid-2, .grid-3 { grid-template-columns: 1fr !important; gap: 16px; }
  .launcher-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links, .header-actions { display: none !important; }
  .mobile-menu-btn, .mobile-actions { display: inline-flex !important; }
  .site-header { height: 64px; }
  .header-inner { padding: 0 16px; gap: 10px; }
  .brand-link { min-width: 0; flex: 1; gap: 10px; }
  .brand-link span { max-width: calc(100vw - 140px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 15px; }
  .brand-logo { width: 36px; height: 36px; flex-shrink: 0; }
  .hero { padding: 48px 0 88px; }
}
@media (max-width: 640px) {
  body { padding-bottom: 68px; }
  .container { padding: 0 16px; }
  .card, .glass-card { padding: 18px 16px; }
  .principal-wrap { flex-direction: column; text-align: center; gap: 16px; }
  .principal-wrap div { min-width: 0 !important; width: 100%; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .launcher-grid { grid-template-columns: 1fr !important; gap: 12px; }
  .mobile-contact-dock { display: flex; }
  .hero-ctas { flex-direction: column; width: 100%; gap: 10px; }
  .hero-ctas a, .hero-ctas button { width: 100%; justify-content: center; }
  .form-input, .form-select, .form-textarea { font-size: 16px; }
  .app-action-grid { grid-template-columns: 1fr; }
  .modal-card { padding: 22px 16px; }
}
@media (max-width: 520px) {
  .launcher-grid { grid-template-columns: 1fr !important; }
}
