/* ============================================================
   GLOBALSCIENCETUTOR — Main Stylesheet
   Colors: #001F28 | #9CAF78 | #F8F7F3
   ============================================================ */

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

:root {
  --dark:    #001F28;
  --green:   #9CAF78;
  --light:   #F8F7F3;
  --dark-2:  #002D3A;
  --green-2: #7D9660;
  --muted:   #5a7a88;
  --border:  rgba(156, 175, 120, 0.2);
  --shadow:  0 4px 32px rgba(0,31,40,0.10);
  --radius:  14px;
  --radius-sm: 8px;
  --ff-head: 'Playfair Display', serif;
  --ff-body: 'Inter', sans-serif;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-body);
  background: var(--light);
  color: var(--dark);
  line-height: 1.65;
  overflow-x: hidden;
}

/* ---- UTILITY ---- */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-header { text-align: center; max-width: 600px; margin: 0 auto 64px; }
.section-header p { color: var(--muted); font-size: 1.05rem; margin-top: 12px; }

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-2);
  background: rgba(156,175,120,0.12);
  border: 1px solid var(--border);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

h1,h2,h3,h4 { font-family: var(--ff-head); line-height: 1.2; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: 1.25rem; }
em { color: var(--green); font-style: normal; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--green);
  color: var(--dark);
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 11px 24px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}
.btn:hover { background: var(--green-2); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(156,175,120,0.35); }
.btn-lg { padding: 15px 34px; font-size: 1rem; }
.btn-sm { padding: 8px 18px; font-size: 0.82rem; }
.btn-full { width: 100%; }
.btn-ghost {
  background: transparent;
  color: var(--light);
  border: 1.5px solid rgba(248,247,243,0.4);
}
.btn-ghost:hover { background: rgba(248,247,243,0.1); box-shadow: none; }

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0;
  transition: background var(--transition), box-shadow var(--transition);
}
.nav.scrolled {
  background: rgba(0,31,40,0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(0,0,0,0.2);
}
.nav-inner {
  width: 100%;
  padding: 18px 32px 18px 20px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo {
  font-family: var(--ff-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--light);
  text-decoration: none;
  letter-spacing: -0.01em;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo span { color: var(--green); }
.logo-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: block;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 8px;
  margin-left: auto;
}
.nav-links a {
  color: rgba(248,247,243,0.75);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  transition: var(--transition);
}
.nav-links a:hover { color: var(--light); background: rgba(248,247,243,0.08); }
.nav .btn { margin-left: 8px; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--light);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 20px;
  background: rgba(0,31,40,0.97);
  backdrop-filter: blur(12px);
}
.mobile-menu a {
  color: rgba(248,247,243,0.8);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.mobile-menu .btn { margin-top: 12px; align-self: flex-start; }
.mobile-menu.open { display: flex; }

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  background: var(--dark);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 24px 80px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 70% 50%, rgba(156,175,120,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(156,175,120,0.05) 0%, transparent 60%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-content > :not(.hero-visual) { grid-column: 1; }
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(156,175,120,0.1);
  border: 1px solid rgba(156,175,120,0.25);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.hero h1 { color: var(--light); margin-bottom: 20px; text-align: justify; }
.hero p { color: rgba(248,247,243,0.7); font-size: 1.15rem; max-width: 480px; margin-bottom: 36px; text-align: justify; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}
.stat strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green);
  font-family: var(--ff-head);
}
.stat span { font-size: 0.8rem; color: rgba(248,247,243,0.5); }
.stat-divider { width: 1px; height: 36px; background: rgba(248,247,243,0.15); }

/* Hero visual — animated atom */
.hero-visual {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-left: -60px;
}
.hero-card {
  width: 340px;
  height: 340px;
  background: rgba(156,175,120,0.06);
  border: 1px solid rgba(156,175,120,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-logo-svg {
  width: 420px;
  height: 420px;
  filter: drop-shadow(0 0 32px rgba(156,175,120,0.4));
}

/* ---- ABOUT ---- */
.about { background: var(--light); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 72px;
  align-items: center;
}
.about-img-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.about-photo {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center 65%;
  border-radius: var(--radius);
  display: block;
}
.about-badge {
  position: absolute;
  bottom: 20px;
  right: 0;
  background: var(--dark);
  color: var(--light);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow);
}
.badge-icon { font-size: 1.5rem; }
.about-badge strong { display: block; font-size: 0.9rem; }
.about-badge small { color: var(--green); font-size: 0.75rem; }

.about-text .section-tag { display: inline-block; margin-bottom: 16px; }
.about-text h2 { margin-bottom: 20px; }
.about-text p { color: var(--muted); margin-bottom: 16px; text-align: justify; }

.about-distinction {
  font-style: italic;
  color: var(--dark) !important;
  font-weight: 500;
  border-left: 3px solid var(--green);
  padding-left: 14px;
  margin: 20px 0 8px !important;
}
.about-sub-label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-2) !important;
  margin-bottom: 4px !important;
}
.about-list { list-style: none; margin: 8px 0 32px; display: flex; flex-direction: column; gap: 10px; }
.about-list li { display: flex; align-items: center; gap: 12px; font-size: 0.95rem; }
.check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  background: rgba(156,175,120,0.2);
  color: var(--green-2);
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ---- SUBJECTS ---- */
.subjects { background: var(--dark); }
.subjects .section-tag { color: var(--green); }
.subjects h2 { color: var(--light); }
.subjects .section-header p { color: rgba(248,247,243,0.5); }

.subjects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.subject-card {
  background: rgba(248,247,243,0.04);
  border: 1px solid rgba(248,247,243,0.08);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
}
.subject-card:hover {
  background: rgba(156,175,120,0.08);
  border-color: rgba(156,175,120,0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}
.subject-icon { font-size: 2rem; margin-bottom: 16px; display: block; }
.subject-card h3 { color: var(--light); margin-bottom: 10px; }
.subject-card > p { color: rgba(248,247,243,0.55); font-size: 0.88rem; margin-bottom: 16px; line-height: 1.6; }
.subject-card ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.subject-card li { font-size: 0.8rem; color: var(--green); }
.subject-card li::before { content: "→ "; opacity: 0.6; }

/* ---- HOW IT WORKS ---- */
.how { background: var(--light); }
.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.step {
  flex: 1;
  min-width: 220px;
  max-width: 280px;
  text-align: center;
  padding: 36px 24px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,31,40,0.06);
}
.step-num {
  font-family: var(--ff-head);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--green);
  opacity: 0.5;
  margin-bottom: 12px;
}
.step h3 { margin-bottom: 10px; font-size: 1.1rem; }
.step p { font-size: 0.88rem; color: var(--muted); }
.step-arrow { font-size: 1.5rem; color: var(--green); opacity: 0.5; flex-shrink: 0; }

/* ---- REVIEWS ---- */
.reviews { background: linear-gradient(180deg, #f0efe9 0%, var(--light) 100%); }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.review-card {
  background: white;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,31,40,0.05);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: var(--transition);
}
.review-card:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,31,40,0.12); }
.review-card--featured {
  background: var(--dark);
  border-color: rgba(156,175,120,0.25);
}
.review-card--featured p { color: rgba(248,247,243,0.75); }
.review-card--featured .reviewer strong { color: var(--light); }
.review-card--featured .reviewer small { color: var(--green); }

.stars { color: #f5c842; font-size: 0.9rem; letter-spacing: 2px; }
.review-card p { font-size: 0.92rem; color: var(--muted); font-style: italic; flex: 1; line-height: 1.7; }
.reviewer { display: flex; align-items: center; gap: 12px; }
.reviewer-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--dark), var(--dark-2));
  color: var(--green);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.review-card--featured .reviewer-avatar { background: rgba(156,175,120,0.2); }
.reviewer strong { display: block; font-size: 0.88rem; color: var(--dark); }
.reviewer small { font-size: 0.78rem; color: var(--muted); }

/* ---- CONTACT ---- */
.contact { background: var(--dark); }
.contact .section-tag { color: var(--green); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 72px;
  align-items: start;
}
.contact-info h2 { color: var(--light); margin: 16px 0 16px; }
.contact-info > p { color: rgba(248,247,243,0.6); font-size: 0.95rem; margin-bottom: 36px; }

.contact-items { display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; align-items: flex-start; gap: 14px; }
.contact-icon { font-size: 1.3rem; margin-top: 2px; flex-shrink: 0; }
.contact-item strong { display: block; color: var(--light); font-size: 0.85rem; margin-bottom: 2px; }
.contact-item span, .contact-item a {
  color: rgba(248,247,243,0.55);
  font-size: 0.85rem;
  text-decoration: none;
}
.contact-item a:hover { color: var(--green); }

.contact-form {
  background: rgba(248,247,243,0.04);
  border: 1px solid rgba(248,247,243,0.08);
  border-radius: var(--radius);
  padding: 36px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: rgba(248,247,243,0.6); letter-spacing: 0.03em; }
.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(248,247,243,0.06);
  border: 1px solid rgba(248,247,243,0.12);
  border-radius: var(--radius-sm);
  color: var(--light);
  font-family: var(--ff-body);
  font-size: 0.9rem;
  padding: 11px 14px;
  outline: none;
  transition: var(--transition);
  width: 100%;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(248,247,243,0.25); }
.form-group select option { background: var(--dark-2); color: var(--light); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green);
  background: rgba(156,175,120,0.06);
  box-shadow: 0 0 0 3px rgba(156,175,120,0.1);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-note { margin-top: 12px; text-align: center; font-size: 0.78rem; color: rgba(248,247,243,0.35); }

/* Google Form embed */
.gform-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(248,247,243,0.08);
  background: white;
}
.gform-iframe {
  width: 100%;
  height: 680px;
  display: block;
  border: none;
}

/* Success message */
.form-success {
  display: none;
  text-align: center;
  padding: 40px 24px;
  color: var(--green);
}
.form-success.show { display: block; }
.form-success h3 { font-size: 1.4rem; margin-bottom: 8px; }
.form-success p { color: rgba(248,247,243,0.5); font-size: 0.9rem; }

/* ---- FOOTER ---- */
.footer {
  background: #000f14;
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-nav { display: flex; gap: 24px; }
.footer-nav a { color: rgba(248,247,243,0.4); text-decoration: none; font-size: 0.85rem; transition: var(--transition); }
.footer-nav a:hover { color: var(--green); }
.footer-copy { font-size: 0.8rem; color: rgba(248,247,243,0.3); }

/* ---- WHATSAPP BUTTON ---- */
.wa-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: white;
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  padding: 10px 18px 10px 10px;
  border-radius: 100px;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: var(--transition);
}
.wa-btn:hover {
  background: #1ebe5d;
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(37,211,102,0.5);
}
.wa-btn svg {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

/* ---- ANIMATIONS ---- */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: none; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .subjects-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-content { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero p { max-width: 100%; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .nav-links, .nav > .btn { display: none; }
  .burger { display: flex; }
  .about-grid { grid-template-columns: 1fr; }
  .about-img-wrapper { order: -1; max-width: 280px; margin: 0 auto; }
  .about-placeholder { aspect-ratio: 1; }
  .reviews-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .steps { flex-direction: column; align-items: stretch; }
  .step { max-width: 100%; }
  .step-arrow { transform: rotate(90deg); text-align: center; }
  .hero-stats { flex-direction: column; align-items: flex-start; gap: 12px; }
  .stat-divider { display: none; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-nav { justify-content: center; }
}

@media (max-width: 480px) {
  .subjects-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: flex-start; }
  .contact-form { padding: 24px; }
}
