/* ============================================================
   SCHOOL COMPANION ERP — Award-Winning Shared Styles
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@700;800;900&display=swap');

:root {
  --navy:    #191970;
  --navy2:   #0d1045;
  --indigo:  #3f48cc;
  --purple:  #ac00e6;
  --gold:    #f5a623;
  --gold2:   #ffd166;
  --green:   #16a34a;
  --white:   #ffffff;
  --light:   #f4f6ff;
  --light2:  #eef0fb;
  --text:    #0f172a;
  --muted:   #64748b;
  --border:  #e2e8f0;
  --radius:  18px;
  --shadow:  0 4px 24px rgba(25,25,112,0.10);
  --shadow-lg: 0 16px 56px rgba(25,25,112,0.18);
  --shadow-xl: 0 32px 80px rgba(25,25,112,0.22);
  --grad-main: linear-gradient(135deg, var(--navy2) 0%, var(--navy) 30%, var(--indigo) 65%, var(--purple) 100%);
  --grad-gold: linear-gradient(135deg, #f5a623, #ffd166);
  --grad-card: linear-gradient(145deg, #ffffff 0%, #f8f9ff 100%);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a   { text-decoration: none; color: inherit; }

/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
  padding: 0;
}
.navbar.transparent { background: rgba(255,255,255,0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(63,72,204,0.06); }
.navbar.scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(63,72,204,0.1);
  box-shadow: 0 4px 32px rgba(25,25,112,0.10);
}
.navbar-inner {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 32px;
  height: 76px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 1;
  min-width: 0;
}
.navbar-brand img {
  height: 52px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(25,25,112,0.2));
  transition: transform 0.3s, height 0.3s;
  flex-shrink: 0;
}
.navbar-brand:hover img { transform: scale(1.05); }
.brand-text { line-height: 1.15; min-width: 0; overflow: hidden; }
.brand-name {
  font-size: 19px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.4px;
  transition: color 0.3s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-sub {
  font-size: 10px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.navbar.transparent .brand-name { color: var(--navy); }
.navbar.transparent .brand-sub  { color: var(--muted); }

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}
.nav-link {
  padding: 9px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  transition: all 0.2s;
  white-space: nowrap;
  position: relative;
}
.navbar.transparent .nav-link { color: var(--muted); }
.nav-link:hover  { color: var(--navy); background: var(--light); }
.nav-link.active { color: var(--indigo); background: rgba(63,72,204,0.08); }

.navbar-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.btn-login {
  background: var(--grad-main);
  color: #fff;
  padding: 10px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(63,72,204,0.3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-login:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(63,72,204,0.4); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
  border-radius: 10px;
  transition: background 0.2s;
  flex-shrink: 0;
}
.nav-toggle:hover { background: rgba(255,255,255,0.1); }
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--navy);
  transition: all 0.3s;
}
.navbar.scrolled  .nav-toggle span  { background: var(--navy); }

/* ── MARQUEE ── */
.marquee-bar {
  background: var(--grad-main);
  padding: 16px 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}
.marquee-bar::before, .marquee-bar::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
}
.marquee-bar::before { left: 0;  background: linear-gradient(90deg, rgba(13,16,69,0.8), transparent); }
.marquee-bar::after  { right: 0; background: linear-gradient(-90deg, rgba(172,0,230,0.8), transparent); }
.marquee-track {
  display: inline-flex;
  animation: marquee-roll 160s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 0 48px;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(245,166,35,0.3);
}
.marquee-item .star {
  color: var(--gold2);
  font-size: 10px;
  opacity: 0.8;
}
@keyframes marquee-roll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── FOOTER ── */
.footer {
  background: linear-gradient(180deg, #0d1045 0%, #070825 100%);
  color: rgba(255,255,255,0.75);
  padding: 72px 32px 0;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(172,0,230,0.08) 0%, transparent 70%);
}
.footer-inner {
  max-width: 1260px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1.2fr;
  gap: 56px;
  padding-bottom: 56px;
  position: relative;
}
.footer-brand img { height: 64px; width: auto; margin-bottom: 20px; filter: drop-shadow(0 4px 16px rgba(255,255,255,0.1)); }
.footer-brand p { font-size: 13px; line-height: 1.8; color: rgba(255,255,255,0.5); max-width: 300px; }
.footer-social { display: flex; gap: 10px; margin-top: 24px; }
.social-btn {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  transition: all 0.2s;
  cursor: pointer;
}
.social-btn:hover { background: var(--indigo); border-color: var(--indigo); transform: translateY(-2px); }
.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 20px;
}
.footer-col a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 12px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--gold); }
.footer-col a::before { content: '→'; font-size: 11px; color: var(--indigo); opacity: 0.7; }
.contact-row { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: rgba(255,255,255,0.6); margin-bottom: 14px; }
.contact-icon { width: 16px; height: 16px; margin-top: 1px; flex-shrink: 0; color: var(--gold); }
.footer-divider { max-width: 1260px; margin: 0 auto; height: 1px; background: rgba(255,255,255,0.07); }
.footer-bottom {
  max-width: 1260px;
  margin: 0 auto;
  padding: 22px 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.25); }
.footer-tagline {
  font-size: 12px;
  font-weight: 700;
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--gold);
  letter-spacing: 0.06em;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--grad-main);
  color: #fff;
  padding: 15px 36px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 6px 24px rgba(63,72,204,0.35);
  letter-spacing: 0.01em;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 36px rgba(63,72,204,0.45); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  padding: 15px 36px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  border: 2px solid rgba(255,255,255,0.25);
  cursor: pointer;
  transition: all 0.25s;
  backdrop-filter: blur(8px);
  letter-spacing: 0.01em;
}
.btn-ghost:hover { background: rgba(255,255,255,0.22); transform: translateY(-3px); border-color: rgba(255,255,255,0.4); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--indigo);
  padding: 13px 30px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  border: 2px solid var(--indigo);
  cursor: pointer;
  transition: all 0.2s;
}
.btn-outline:hover { background: var(--indigo); color: #fff; transform: translateY(-2px); }

/* ── HELPERS ── */
.section { padding: 96px 32px; }
.section-inner { max-width: 1260px; margin: 0 auto; }
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--indigo);
  background: rgba(63,72,204,0.08);
  padding: 7px 18px;
  border-radius: 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(63,72,204,0.15);
}
.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.18;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}
.section-subtitle {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.75;
}

/* ── ICON SYSTEM ── */
.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.15em; flex-shrink: 0; }
.icon-box {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px; flex-shrink: 0;
}
.section-label .icon { width: 13px; height: 13px; }
.pill .icon { width: 14px; height: 14px; }

/* ── TESTIMONIALS ── */
.testimonials { padding: 100px 32px; background: #fff; }
.tm-inner { max-width: 1260px; margin: 0 auto; }
.tm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.tm-card {
  background: var(--grad-card); border: 1px solid var(--border); border-radius: 22px;
  padding: 34px 30px; box-shadow: var(--shadow); position: relative; display: flex; flex-direction: column;
}
.tm-quote-ic { width: 40px; height: 40px; border-radius: 12px; background: rgba(63,72,204,0.08); color: var(--indigo);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.tm-quote-ic .icon { width: 20px; height: 20px; }
.tm-stars { display: flex; gap: 3px; margin-bottom: 14px; color: var(--gold); }
.tm-stars svg { width: 15px; height: 15px; }
.tm-text { font-size: 14.5px; color: var(--text); line-height: 1.8; margin-bottom: 24px; flex: 1; }
.tm-person { display: flex; align-items: center; gap: 12px; padding-top: 20px; border-top: 1px solid var(--border); }
.tm-avatar {
  width: 44px; height: 44px; border-radius: 12px; background: var(--grad-main); color: #fff;
  display: flex; align-items: center; justify-content: center; font-family: 'Playfair Display', serif;
  font-weight: 800; font-size: 16px; flex-shrink: 0;
}
.tm-name { font-size: 13.5px; font-weight: 800; color: var(--navy); }
.tm-role { font-size: 12px; color: var(--muted); }
@media (max-width: 900px) { .tm-grid { grid-template-columns: 1fr; } }

/* ── TRUST BAR ── */
.trust-bar { background: var(--navy2); padding: 40px 32px; }
.tb-inner { max-width: 1260px; margin: 0 auto; display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: rgba(255,255,255,0.06); border-radius: 20px; overflow: hidden; }
.tb-item { background: rgba(255,255,255,0.03); padding: 26px 20px; text-align: center; }
.tb-item .n { font-family: 'Playfair Display', serif; font-size: 32px; font-weight: 900; color: var(--gold); line-height: 1; }
.tb-item .l { font-size: 11.5px; color: rgba(255,255,255,0.55); margin-top: 6px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
@media (max-width: 700px) { .tb-inner { grid-template-columns: 1fr 1fr; } }

/* ── FAQ ── */
.faq { padding: 100px 32px; background: var(--light); }
.faq-inner { max-width: 860px; margin: 0 auto; }
.faq-list { margin-top: 48px; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: #fff; border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
  transition: box-shadow 0.25s, border-color 0.25s;
}
.faq-item.open { box-shadow: var(--shadow); border-color: rgba(63,72,204,0.18); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 26px; cursor: pointer; font-size: 15.5px; font-weight: 700; color: var(--navy);
  font-family: 'Playfair Display', serif; user-select: none;
}
.faq-q .icon-box { width: 30px; height: 30px; background: rgba(63,72,204,0.08); color: var(--indigo); transition: transform 0.3s, background 0.3s, color 0.3s; }
.faq-q .icon-box .icon { width: 15px; height: 15px; }
.faq-item.open .faq-q .icon-box { transform: rotate(45deg); background: var(--grad-main); color: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-a-in { padding: 0 26px 24px; font-size: 14px; color: var(--muted); line-height: 1.8; max-width: 680px; }
.faq-item.open .faq-a { max-height: 260px; }

/* ── RESPONSIVE ── */
@media (max-width: 1180px) and (min-width: 769px) {
  .navbar-inner { gap: 16px; padding: 0 20px; }
  .nav-link { padding: 9px 12px; font-size: 13.5px; }
  .btn-login { padding: 10px 18px; font-size: 13.5px; }
  .brand-sub { display: none; }
}
@media (max-width: 1024px) { .footer-inner { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 768px)  {
  .navbar-nav, .navbar-actions .btn-login { display: none; }
  .nav-toggle { display: flex; }
  .navbar-inner { padding: 0 16px; gap: 12px; height: 68px; }
  .navbar-brand img { height: 40px; }
  .brand-name { font-size: 16px; }
  .brand-sub { display: none; }
  .navbar-brand { max-width: calc(100% - 60px); }
  .section { padding: 64px 20px; }
  .footer { padding: 56px 20px 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}
.navbar.mobile-open .navbar-nav {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 68px; left: 0; right: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  padding: 20px 24px 32px;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
  gap: 4px;
  align-items: flex-start;
}
.navbar.mobile-open .navbar-nav .nav-link { color: var(--muted); }
.navbar.mobile-open .navbar-nav .nav-link.active { color: var(--indigo); }
.navbar.mobile-open .navbar-actions .btn-login { display: inline-flex; margin: 12px 0 0 0; }
