/* ===== ZPlusEdu - Global Styles ===== */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap');

:root {
  --primary: #1290CB;
  --primary-dark: #0e6fa0;
  --dark: #212121;
  --light-bg: #f5f7fa;
  --white: #ffffff;
  --gray: #666666;
  --border: #e0e0e0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  color: var(--dark);
  background: var(--white);
  line-height: 1.7;
}

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

a:hover {
  color: var(--primary-dark);
}

/* ===== NAVBAR ===== */
.navbar {
  background: var(--dark);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.navbar-brand {
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.navbar-brand span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: #ccc;
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: 0.3s;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #0e6fa0 0%, #1290CB 50%, #17a2d8 100%);
  color: var(--white);
  text-align: center;
  padding: 80px 2rem;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  font-weight: 300;
  max-width: 600px;
  margin: 0 auto 2rem;
  opacity: 0.9;
}

.hero-tagline {
  font-size: 1.05rem;
  font-weight: 400;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 4px;
  display: inline-block;
  padding: 0.6rem 1.4rem;
  margin: 0 auto 2rem;
  max-width: 620px;
  color: var(--white);
  opacity: 0.95;
  line-height: 1.6;
}

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

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.7);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border-color: var(--white);
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 700;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-white {
  background: var(--white);
  color: var(--primary);
}

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

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

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
}

/* ===== SECTIONS ===== */
.section {
  padding: 64px 2rem;
}

.section-alt {
  background: var(--light-bg);
}

.container {
  max-width: 900px;
  margin: 0 auto;
}

.section-label {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.5rem;
}

.section h2 {
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--dark);
}

.section p {
  color: var(--gray);
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
}

/* ===== STEPS ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.step-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
}

.step-card:hover {
  box-shadow: 0 8px 24px rgba(18,144,203,0.12);
  transform: translateY(-3px);
}

.step-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.step-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--dark);
}

.step-card p {
  font-size: 0.92rem;
  color: var(--gray);
  margin: 0;
}

.btn-card-action {
  display: inline-block;
  margin-top: 1.2rem;
  font-size: 0.9rem;
  padding: 0.65rem 1.4rem;
  min-height: 44px;
  line-height: 1.2;
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: var(--dark);
  color: var(--white);
  text-align: center;
  padding: 64px 2rem;
}

.cta-section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.1rem;
  font-weight: 300;
  opacity: 0.8;
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== STATS ===== */
.stats-section {
  background: var(--primary);
  padding: 48px 2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  font-weight: 400;
  letter-spacing: 0.3px;
}

@media (max-width: 600px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-number {
    font-size: 2rem;
  }
}

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.8rem;
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
}

.testimonial-card:hover {
  box-shadow: 0 8px 24px rgba(18,144,203,0.10);
  transform: translateY(-2px);
}

.testimonial-quote {
  font-size: 4rem;
  line-height: 1;
  color: var(--primary);
  opacity: 0.2;
  font-family: Georgia, serif;
  margin-bottom: -1rem;
}

.testimonial-card > p {
  font-size: 0.95rem;
  color: var(--gray);
  font-style: italic;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.testimonial-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testimonial-meta strong {
  display: block;
  font-size: 0.9rem;
  color: var(--dark);
}

.testimonial-meta span {
  font-size: 0.82rem;
  color: var(--gray);
}

/* ===== TEAM CARDS ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.team-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  transition: box-shadow 0.2s;
}

.team-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.team-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: 1.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.team-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.team-card blockquote {
  font-style: italic;
  color: var(--primary);
  font-size: 0.95rem;
  border-left: 3px solid var(--primary);
  padding-left: 1rem;
  margin: 1rem 0;
}

.team-card p {
  font-size: 0.95rem;
  color: var(--gray);
}

/* ===== CONTACT PAGE ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-item p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--gray);
}

.contact-item a {
  font-weight: 700;
  display: block;
}

.contact-form {
  background: var(--light-bg);
  padding: 2rem;
  border-radius: 8px;
}

.contact-form h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  color: var(--dark);
  background: var(--white);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: linear-gradient(135deg, #0e6fa0 0%, #1290CB 100%);
  color: var(--white);
  padding: 56px 2rem;
  text-align: center;
}

.page-hero h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.page-hero p {
  font-weight: 300;
  opacity: 0.85;
  font-size: 1.05rem;
}

/* ===== FOOTER ===== */
footer {
  background: var(--dark);
  color: #aaa;
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
}

footer a {
  color: var(--primary);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.social-links a {
  color: #aaa;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.social-links a:hover {
  color: var(--white);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 767px) {
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .hero-buttons { flex-direction: column; align-items: center; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: var(--dark);
    padding: 1rem 2rem 2rem;
    gap: 1.2rem;
  }

  .nav-links.open {
    display: flex;
  }

  .hamburger { display: flex; }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 479px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 { font-size: 1.7rem; }
}
