﻿/* ============================================
   DemoSchool Academy - Shared Stylesheet
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Open+Sans:wght@400;500;600&display=swap');

/* CSS Variables */
:root {
  --navy: #1a2e4a;
  --navy-dark: #0f1e33;
  --navy-light: #243d5e;
  --gold: #f0a500;
  --gold-dark: #d4920a;
  --light-gold: #fef3d0;
  --white: #ffffff;
  --light-gray: #f8f9fa;
  --mid-gray: #e9ecef;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --text-muted: #9ca3af;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.16);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: all 0.3s ease;
}

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.25;
  color: var(--text-dark);
}

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.85);
  padding: 9px 0;
  font-size: 0.82rem;
}
.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar-left {
  display: flex;
  gap: 20px;
  align-items: center;
}
.top-bar-left a {
  color: rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}
.top-bar-left a:hover { color: var(--gold); }
.top-bar-right {
  display: flex;
  gap: 12px;
  align-items: center;
}
.top-bar-right a {
  color: rgba(255,255,255,0.7);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: var(--transition);
}
.top-bar-right a:hover { background: var(--gold); border-color: var(--gold); color: var(--white); }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: var(--transition);
}
.navbar.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.14); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.nav-logo {
  display: flex;
  align-items: center;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 12px;
}
.nav-logo img { width:100%;max-width: 150px;margin-bottom: 10px; }
.nav-logo-text .school-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
  display: block;
  line-height: 1.1;
}
.nav-logo-text .school-sub {
  font-size: 0.68rem;
  color: var(--text-light);
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  padding: 8px 12px;
  border-radius: 4px;
  transition: var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--navy); }
.nav-links a.active::after { transform: scaleX(1); }
.nav-cta a {
  background: var(--gold);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 6px;
  transition: var(--transition);
  white-space: nowrap;
}
.nav-cta a:hover { background: var(--gold-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(240,165,0,0.35); }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px 28px;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  line-height: 1;
}
.btn-gold { background: var(--gold); color: var(--white); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(240,165,0,0.4); }
.btn-navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-dark); border-color: var(--navy-dark); transform: translateY(-2px); }
.btn-outline-white { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline-white:hover { background: var(--white); color: var(--navy); }
.btn-outline-navy { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }

/* ============================================
   SECTION UTILITIES
   ============================================ */
.section { padding: 80px 0; }
.section-sm { padding: 50px 0; }
.section-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 600px;
}
.section-header { margin-bottom: 48px; }
.section-header.centered { text-align: center; }
.section-header.centered .section-subtitle { margin: 0 auto; }

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ============================================
   PAGE HERO (inner pages)
   ============================================ */
.page-hero {
  height: 400px;
  position: relative;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 40, 0.62);
}
.page-hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
}
.page-hero-content h1 {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
}
.breadcrumb a { color: var(--gold); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb i { font-size: 0.7rem; }

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar {
  background: var(--navy);
  padding: 48px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-item { color: var(--white); }
.stat-item .stat-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--gold);
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-item .stat-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
}
.stat-item i {
  font-size: 1.8rem;
  color: rgba(255,255,255,0.3);
  margin-bottom: 10px;
  display: block;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.8);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-col h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.footer-logo-wrap img { width: 44px; height: 44px; }
.footer-logo-wrap span {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
}
.footer-col p { font-size: 0.88rem; line-height: 1.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
}
.footer-social a:hover { background: var(--gold); border-color: var(--gold); color: var(--white); }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-links a:hover { color: var(--gold); padding-left: 4px; }
.footer-links a i { font-size: 0.65rem; color: var(--gold); }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.88rem;
}
.footer-contact-item i { color: var(--gold); margin-top: 3px; min-width: 14px; }
.footer-newsletter p { font-size: 0.88rem; margin-bottom: 14px; }
.newsletter-form { display: flex; gap: 0; }
.newsletter-form input {
  flex: 1;
  padding: 10px 14px;
  border: none;
  border-radius: 6px 0 0 6px;
  font-size: 0.85rem;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  outline: none;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.45); }
.newsletter-form button {
  padding: 10px 16px;
  background: var(--gold);
  color: var(--white);
  border: none;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
  transition: var(--transition);
}
.newsletter-form button:hover { background: var(--gold-dark); }
.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}
.footer-bottom a { color: rgba(255,255,255,0.55); transition: var(--transition); }
.footer-bottom a:hover { color: var(--gold); }

/* ============================================
   ACCORDION
   ============================================ */
.accordion-item {
  border: 1px solid var(--mid-gray);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}
.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  cursor: pointer;
  background: var(--white);
  transition: var(--transition);
  user-select: none;
}
.accordion-header:hover { background: var(--light-gray); }
.accordion-header.open { background: var(--navy); color: var(--white); }
.accordion-header h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: inherit;
}
.accordion-header i { transition: transform 0.3s ease; color: var(--gold); }
.accordion-header.open i { transform: rotate(180deg); }
.accordion-body {
  display: none;
  padding: 22px;
  background: var(--light-gray);
  border-top: 1px solid var(--mid-gray);
}
.accordion-body.open { display: block; }
.accordion-body p, .accordion-body li { font-size: 0.95rem; color: var(--text-dark); line-height: 1.75; }
.accordion-body ul, .accordion-body ol { padding-left: 20px; margin-top: 8px; }
.accordion-body li { margin-bottom: 6px; }

/* ============================================
   TABLES
   ============================================ */
.styled-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.styled-table th {
  background: var(--navy);
  color: var(--white);
  padding: 14px 18px;
  text-align: left;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}
.styled-table td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--mid-gray);
  color: var(--text-dark);
}
.styled-table tr:last-child td { border-bottom: none; }
.styled-table tr:nth-child(even) td { background: var(--light-gray); }
.styled-table tr:hover td { background: var(--light-gold); }
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ============================================
   FORMS
   ============================================ */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--mid-gray);
  border-radius: 6px;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.92rem;
  color: var(--text-dark);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(26,46,74,0.1); }
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 130px; }
select.form-control { cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-success {
  display: none;
  background: #d1fae5;
  border: 1px solid #6ee7b7;
  color: #065f46;
  padding: 16px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  margin-top: 16px;
  align-items: center;
  gap: 10px;
}
.form-success.show { display: flex; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .top-bar-inner { flex-direction: column; gap: 8px; text-align: center; }
  .top-bar-left { flex-wrap: wrap; justify-content: center; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px 24px 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    gap: 2px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 12px; font-size: 0.95rem; }
  .nav-links a::after { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }
  .navbar { position: relative; }
  .page-hero { height: 280px; }
  .page-hero-content h1 { font-size: 2rem; }
  .section-title { font-size: 1.8rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .page-hero-content h1 { font-size: 1.6rem; }
  .section-title { font-size: 1.5rem; }
}

/* ============================================
   PUREDATA LOGO STYLES
   ============================================ */

/* Nav logo wrapper — stacked: logo on top, text below */
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 0;
}

.nav-logo-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

/* PureData SVG in navbar — remove black bg via mix-blend-mode */
.puredata-logo {
  width: 120px;
  height: 36px;
  object-fit: contain;
  display: block;
  mix-blend-mode: multiply;   /* black bg disappears on white navbar */
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav-logo:hover .puredata-logo {
  opacity: 0.85;
  transform: scale(1.03);
}

/* Text below the logo */
.nav-logo-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
}

.nav-logo-text .school-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.nav-logo-text .school-sub {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

/* Footer logo — white version on dark bg */
.puredata-logo-footer {
  width: 120px;
  height: 36px;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);  /* flip to white on dark footer */
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.puredata-logo-footer:hover {
  opacity: 1;
}

.footer-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.footer-logo-wrap .puredata-logo-footer {
  width: 130px;
  height: 40px;
}

/* Hide the plain text span next to footer logo — PureData SVG has text built in */
.footer-logo-wrap span {
  display: none;
}

/* ── Demo Banner ─────────────────────────────────────────────── */
.demo-banner {
  background: #f59e0b;
  color: #1a1a1a;
  text-align: center;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  position: relative;
  z-index: 999;
}

.demo-banner i {
  margin-right: 6px;
  color: #92400e;
}

.demo-banner a {
  color: #1a1a1a;
  text-decoration: underline;
  margin-left: 4px;
}

.demo-banner a:hover {
  color: #92400e;
}

/* ── Chat Widget Attention Bubble ────────────────────────────── */
#chat-bubble {
  position: fixed;
  bottom: 90px;
  right: 20px;
  background: #1a2e4a;
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 18px 18px 4px 18px;
  font-size: 0.82rem;
  font-family: 'Open Sans', sans-serif;
  font-weight: 500;
  max-width: 200px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  z-index: 9998;
  line-height: 1.4;
  animation: bubblePop 0.4s ease, bubbleFloat 3s ease-in-out 0.4s infinite;
  cursor: pointer;
}

#chat-bubble::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 18px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 0px solid transparent;
  border-top: 8px solid #1a2e4a;
}

#chat-bubble .bubble-emoji {
  margin-right: 4px;
}

#chat-bubble .bubble-close {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  background: #ffffff;
  color: #1a2e4a;
  border-radius: 50%;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 700;
  line-height: 1;
  border: 1px solid #e9ecef;
}

@keyframes bubblePop {
  0%   { transform: scale(0.5); opacity: 0; }
  80%  { transform: scale(1.05); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes bubbleFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-4px); }
}
