/* ========================================
   CHINESE LEARNING PARADISE
   Custom Styles
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; -webkit-font-smoothing: antialiased; }

/* --- Nav --- */
.nav-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
  padding: 0.5rem 0;
}
.nav-fixed.scrolled {
  background: rgba(254, 253, 248, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0,0,0,0.08);
}
.nav-link {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  color: rgba(17, 24, 39, 0.7);
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover {
  color: #d4522a;
  background: rgba(212, 82, 42, 0.06);
}
.nav-fixed.scrolled .nav-link { color: rgba(17,24,39,0.7); }
.nav-fixed:not(.scrolled) .nav-link { color: rgba(255,255,255,0.8); }
.nav-fixed:not(.scrolled) .nav-link:hover { color: #fdebd0; background: rgba(255,255,255,0.1); }
.nav-fixed.scrolled .font-display { color: #111827; }

/* Mobile menu */
.mobile-menu {
  animation: slideDown 0.3s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.mobile-link { transition: background 0.2s, color 0.2s; }
.nav-toggle .nav-line { transition: transform 0.3s, opacity 0.3s; }
.nav-toggle.active .nav-line:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.nav-toggle.active .nav-line:nth-child(2) { opacity: 0; }
.nav-toggle.active .nav-line:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); width: 20px; margin-left: 2px; }

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, #6a2216 0%, #a12f19 30%, #d4522a 60%, #e06b4a 100%);
  position: relative;
}
.hero-grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, transparent 0%, rgba(0,0,0,0.15) 100%);
}

/* Hero shapes */
.hero-shapes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.shape { position: absolute; opacity: 0.1; }
.shape-circle-1 {
  width: 500px; height: 500px;
  border-radius: 50%;
  background: #fdebd0;
  top: -150px; right: -100px;
  animation: float1 20s ease-in-out infinite;
}
.shape-circle-2 {
  width: 300px; height: 300px;
  border-radius: 50%;
  background: #f9edc8;
  bottom: -80px; left: -60px;
  animation: float2 16s ease-in-out infinite;
}
.shape-square-1 {
  width: 120px; height: 120px;
  background: rgba(255,255,255,0.15);
  top: 20%; left: 8%;
  border-radius: 24px;
  transform: rotate(30deg);
  animation: float3 14s ease-in-out infinite;
}
.shape-triangle {
  width: 0; height: 0;
  border-left: 60px solid transparent;
  border-right: 60px solid transparent;
  border-bottom: 104px solid rgba(255,255,255,0.08);
  top: 30%; right: 10%;
  animation: float1 18s ease-in-out infinite reverse;
}
.shape-dots {
  width: 80px; height: 80px;
  background-image: radial-gradient(circle, rgba(255,255,255,0.3) 2px, transparent 2px);
  background-size: 16px 16px;
  bottom: 25%; right: 20%;
  animation: float2 12s ease-in-out infinite;
}
.shape-ring {
  width: 200px; height: 200px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.1);
  top: 60%; left: 15%;
  animation: float3 22s ease-in-out infinite;
}
@keyframes float1 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(20px, -30px) rotate(5deg); }
}
@keyframes float2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-15px, 20px); }
}
@keyframes float3 {
  0%, 100% { transform: rotate(30deg) translate(0, 0); }
  50% { transform: rotate(45deg) translate(10px, -15px); }
}

.hero-title {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  text-shadow: 0 4px 40px rgba(0,0,0,0.2);
  line-height: 1.05;
}
.hero-subtitle {
  text-shadow: 0 2px 20px rgba(0,0,0,0.1);
}
.hero-buttons { gap: 1rem; }

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fefdf8;
  color: #d4522a;
  font-weight: 800;
  font-size: 1rem;
  padding: 1rem 2rem;
  border-radius: 60px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
.btn-hero-primary svg { transition: transform 0.2s; }
.btn-hero-primary:hover svg { transform: translateY(3px); }

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.4);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  padding: 1rem 2rem;
  border-radius: 60px;
  backdrop-filter: blur(8px);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  text-decoration: none;
}
.btn-hero-secondary:hover {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.7);
  transform: translateY(-2px);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
}
.scroll-mouse {
  display: block;
  width: 28px;
  height: 44px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 14px;
  position: relative;
}
.scroll-wheel {
  display: block;
  width: 4px;
  height: 8px;
  background: rgba(255,255,255,0.7);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollAnim 2s ease-in-out infinite;
}
@keyframes scrollAnim {
  0% { opacity: 1; top: 8px; }
  100% { opacity: 0; top: 24px; }
}

/* --- Badges --- */
.badge-terra {
  color: #d4522a;
}
.badge-terra span:first-child { background: #f5c0b0; }

/* --- About --- */
.about-img-wrap {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,0.12);
}
.about-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
}
.about-img-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background: #f9edc8;
  border-radius: 20px;
  z-index: -1;
}
.about-floating-card {
  position: absolute;
  bottom: -30px;
  left: -20px;
  background: #fff;
  border-radius: 16px;
  padding: 1rem 1.25rem;
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 2;
}
.afc-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #d4522a, #e06b4a);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.about-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  border: 1px solid #f5c0b0;
  border-radius: 50px;
  padding: 0.5rem 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* --- Class Cards --- */
.class-card { perspective: 800px; }
.class-card-inner {
  background: #fff;
  border-radius: 24px;
  padding: 2rem;
  border: 1px solid #f5c0b0;
  height: 100%;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}
.class-card:hover .class-card-inner {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(212,82,42,0.12);
  border-color: #e06b4a;
}
.class-card-featured .class-card-inner {
  border-color: #f9edc8;
  border-width: 2px;
}
.class-card-featured:hover .class-card-inner {
  border-color: #e5ad45;
  box-shadow: 0 20px 50px rgba(229,173,69,0.15);
}
.class-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.class-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.class-icon-1 { background: linear-gradient(135deg, #fdebd0, #f5c0b0); color: #a12f19; }
.class-icon-2 { background: linear-gradient(135deg, #fdf8e8, #f9edc8); color: #82531c; }
.class-icon-3 { background: linear-gradient(135deg, #fdebd0, #f5c0b0); color: #a12f19; }
.class-tag {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  background: #fdebd0;
  color: #a12f19;
}
.class-tag-gold {
  background: #fdf8e8;
  color: #82531c;
}
.btn-class {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: linear-gradient(135deg, #d4522a, #c23d1e);
  color: #fff;
  font-weight: 800;
  border-radius: 14px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-class:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212,82,42,0.3);
}
.btn-class-featured {
  background: linear-gradient(135deg, #e5ad45, #d4952e);
}
.btn-class-featured:hover {
  box-shadow: 0 8px 25px rgba(229,173,69,0.3);
}

/* --- Driving --- */
.driving-img-wrap {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,0.2);
}
.driving-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
}
.driving-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.driving-feature {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  padding: 1rem;
  backdrop-filter: blur(4px);
}
.btn-driving {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fefdf8;
  color: #a12f19;
  font-weight: 800;
  padding: 1rem 2rem;
  border-radius: 60px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.btn-driving:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.2);
}

/* --- Why Cards --- */
.why-card {
  background: #fff;
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid #f5c0b0;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.why-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #d4522a, #e5ad45);
  opacity: 0;
  transition: opacity 0.3s;
}
.why-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(212,82,42,0.1);
}
.why-card:hover::before { opacity: 1; }
.why-card-num {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 3rem;
  line-height: 1;
  background: linear-gradient(135deg, #fdebd0, #f5c0b0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.why-card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #fdebd0, #f5c0b0);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a12f19;
}

/* --- Testimonials --- */
.testimonial-card {
  background: #fff;
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid #f5c0b0;
  transition: transform 0.3s, box-shadow 0.3s;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(212,82,42,0.08);
}
.testimonial-stars { display: flex; gap: 0.25rem; }
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #f5c0b0;
}
.testimonial-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #d4522a, #e06b4a);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* --- CTA --- */
.btn-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #d4522a, #c23d1e);
  color: #fff;
  font-weight: 800;
  padding: 1rem 2rem;
  border-radius: 60px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 25px rgba(212,82,42,0.25);
}
.btn-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(212,82,42,0.35);
}
.btn-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  color: #d4522a;
  font-weight: 800;
  padding: 1rem 2rem;
  border-radius: 60px;
  text-decoration: none;
  border: 2px solid #f5c0b0;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn-cta-secondary:hover {
  transform: translateY(-2px);
  border-color: #d4522a;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

/* --- Contact --- */
.contact-form-wrap {
  background: #fff;
  border-radius: 24px;
  padding: 2.5rem;
  border: 1px solid #f5c0b0;
  box-shadow: 0 15px 50px rgba(0,0,0,0.06);
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contact-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #fdebd0, #f5c0b0);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a12f19;
  flex-shrink: 0;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1rem; }
.form-label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  color: #374151;
  margin-bottom: 0.4rem;
}
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #f5c0b0;
  border-radius: 12px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  color: #111827;
  background: #fefdf8;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-input:focus {
  border-color: #d4522a;
  box-shadow: 0 0 0 3px rgba(212,82,42,0.1);
}
.form-input::placeholder { color: #d1d5db; }
.form-select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23d4522a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.form-textarea { resize: vertical; min-height: 100px; }
.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #d4522a, #c23d1e);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  font-family: 'Nunito', sans-serif;
}
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212,82,42,0.3);
}
.form-success {
  text-align: center;
  padding: 2rem;
}
.fs-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #d4522a, #e06b4a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  color: #fff;
}
.btn-reset { background: none; border: none; cursor: pointer; font-family: 'Nunito', sans-serif; }

/* --- Geometric Accents --- */
.geo-accent {
  position: absolute;
  pointer-events: none;
  opacity: 0.06;
}
.geo-accent-1 {
  width: 300px; height: 300px;
  background: #d4522a;
  border-radius: 50%;
  top: -100px; right: -80px;
}
.geo-accent-2 {
  width: 150px; height: 150px;
  background: #e5ad45;
  border-radius: 24px;
  bottom: 50px; left: -40px;
  transform: rotate(30deg);
}
.geo-accent-3 {
  width: 200px; height: 200px;
  background: #d4522a;
  border-radius: 50%;
  bottom: -60px; right: -60px;
}
.geo-accent-4 {
  width: 400px; height: 400px;
  background: #fdebd0;
  border-radius: 50%;
  top: -150px; left: -150px;
  opacity: 0.15;
}
.geo-accent-5 {
  width: 180px; height: 180px;
  background: #f9edc8;
  border-radius: 32px;
  bottom: -40px; right: 10%;
  transform: rotate(20deg);
  opacity: 0.2;
}
.geo-accent-6 {
  width: 250px; height: 250px;
  background: #e5ad45;
  border-radius: 50%;
  top: -80px; left: -80px;
}
.geo-accent-7 {
  width: 200px; height: 200px;
  background: #d4522a;
  border-radius: 50%;
  bottom: -60px; right: -60px;
  opacity: 0.05;
}
.geo-accent-8 {
  width: 300px; height: 300px;
  background: #d4522a;
  border-radius: 50%;
  top: -100px; right: -100px;
  opacity: 0.04;
}
.geo-accent-9 {
  width: 200px; height: 200px;
  background: #e5ad45;
  border-radius: 50%;
  bottom: -80px; left: 10%;
  opacity: 0.05;
}

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #d4522a, #c23d1e);
  color: #fff;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(212,82,42,0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
  z-index: 999;
  text-decoration: none;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(212,82,42,0.4);
}

/* --- Scroll Reveal --- */
.reveal-up, .reveal-left, .reveal-right {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
@media (prefers-reduced-motion: no-preference) {
  .reveal-up { opacity: 0; transform: translateY(30px); }
  .reveal-left { opacity: 0; transform: translateX(-30px); }
  .reveal-right { opacity: 0; transform: translateX(30px); }
  .revealed { opacity: 1; transform: none; }
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 1rem; }
  .about-floating-card { position: relative; bottom: auto; left: auto; margin-top: 1rem; }
  .contact-form-wrap { padding: 1.5rem; }
}
