/* ============================================================
   MusicOfEveryone — Main Stylesheet
   Color scheme: Green (#1a7a4a primary, #25a06a accent)
   ============================================================ */

/* --- Reset & Base ---------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green-dark:   #0f5c35;
  --green:        #1a7a4a;
  --green-light:  #25a06a;
  --green-pale:   #e8f7ef;
  --gold:         #f5a623;
  --text-dark:    #1a1a2e;
  --text-mid:     #4a4a6a;
  --text-light:   #7a7a9a;
  --white:        #ffffff;
  --gray-bg:      #f8f9fa;
  --border:       #e0e0e8;
  --shadow:       0 4px 20px rgba(0,0,0,.08);
  --shadow-hover: 0 8px 32px rgba(26,122,74,.18);
  --radius:       12px;
  --radius-sm:    8px;
  --font-main:    'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; transition: color .2s; }
a:hover { color: var(--green-light); }
ul { list-style: none; }

/* --- Typography ------------------------------------------ */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-dark);
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

.section-title {
  text-align: center;
  margin-bottom: .75rem;
}
.section-subtitle {
  text-align: center;
  color: var(--text-mid);
  max-width: 600px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
}
.text-green { color: var(--green); }
.text-gold  { color: var(--gold); }

/* --- Buttons --------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .25s;
  text-align: center;
}
.btn-primary {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--green);
}
.btn-gold {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: #e09210;
  border-color: #e09210;
  color: var(--white);
  transform: translateY(-2px);
}
.btn-sm { padding: .5rem 1.25rem; font-size: .85rem; }

/* --- Container & Layout ---------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
section { padding: 5rem 0; }
.section-alt { background: var(--gray-bg); }

/* --- Header / Navigation --------------------------------- */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  transition: all .3s;
}
#header.scrolled {
  background: var(--white);
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--green-dark);
}
.logo span { color: var(--green-light); }
.logo-icon {
  width: 40px; height: 40px;
  background: var(--green);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
nav ul {
  display: flex;
  align-items: center;
  gap: 2rem;
}
nav a {
  font-weight: 500;
  color: var(--text-dark);
  position: relative;
  padding-bottom: 4px;
}
nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--green);
  transition: width .25s;
}
nav a:hover::after, nav a.active::after { width: 100%; }
nav a:hover { color: var(--green); }
.nav-cta { margin-left: 1rem; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text-dark);
  transition: all .3s;
}

/* --- Hero ------------------------------------------------ */
#hero {
  padding: 0;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 50%, var(--green-light) 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.05) 0%, transparent 40%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding: 8rem 0 6rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,.3);
  padding: .4rem 1rem;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(4px);
}
.hero-content h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
  line-height: 1.15;
}
.hero-content h1 em {
  font-style: normal;
  color: var(--gold);
}
.hero-content p {
  color: rgba(255,255,255,.88);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  max-width: 480px;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.2);
}
.hero-stat strong {
  display: block;
  font-size: 1.8rem;
  color: var(--white);
  font-weight: 800;
}
.hero-stat span {
  font-size: .85rem;
  color: rgba(255,255,255,.7);
}
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-end;
}
.hero-card {
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius);
  padding: 1.5rem;
  width: 100%;
  max-width: 380px;
  color: var(--white);
}
.hero-card-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.hero-card-icon {
  width: 48px; height: 48px;
  background: rgba(255,255,255,.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.hero-card-info h4 { color: #fff; margin-bottom: .2rem; }
.hero-card-info p { font-size: .85rem; opacity: .8; }
.hero-card-progress { height: 6px; background: rgba(255,255,255,.2); border-radius: 3px; overflow: hidden; }
.hero-card-progress span { display: block; height: 100%; background: var(--gold); border-radius: 3px; }

/* --- Learning Path --------------------------------------- */
#levels { background: var(--green-pale); }
.levels-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.level-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
  position: relative;
  overflow: hidden;
}
.level-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}
.level-card.green::before  { background: var(--green); }
.level-card.blue::before   { background: #2563eb; }
.level-card.orange::before { background: #f97316; }
.level-card.purple::before { background: #7c3aed; }
.level-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.level-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 1.25rem;
}
.level-card.green  .level-icon { background: #d1fae5; }
.level-card.blue   .level-icon { background: #dbeafe; }
.level-card.orange .level-icon { background: #ffedd5; }
.level-card.purple .level-icon { background: #ede9fe; }
.level-card h3 { margin-bottom: .5rem; }
.level-card p { color: var(--text-mid); font-size: .9rem; margin-bottom: 1rem; }
.level-tag {
  display: inline-block;
  padding: .25rem .75rem;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 600;
}
.level-card.green  .level-tag { background: #d1fae5; color: var(--green-dark); }
.level-card.blue   .level-tag { background: #dbeafe; color: #1d4ed8; }
.level-card.orange .level-tag { background: #ffedd5; color: #c2410c; }
.level-card.purple .level-tag { background: #ede9fe; color: #5b21b6; }

/* --- Features -------------------------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.feature-card {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.feature-icon {
  width: 56px; height: 56px;
  background: var(--green-pale);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}
.feature-text h3 { margin-bottom: .5rem; }
.feature-text p { color: var(--text-mid); font-size: .95rem; }

/* --- Courses --------------------------------------------- */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}
.course-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
}
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.course-thumb {
  height: 200px;
  background: linear-gradient(135deg, var(--green-dark), var(--green-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
}
.course-level-badge {
  position: absolute;
  top: 1rem; left: 1rem;
  padding: .25rem .75rem;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 700;
  color: #fff;
}
.badge-green  { background: var(--green); }
.badge-blue   { background: #2563eb; }
.badge-orange { background: #f97316; }
.badge-purple { background: #7c3aed; }
.course-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.course-title { font-size: 1.1rem; margin-bottom: .5rem; color: var(--text-dark); }
.course-desc  { color: var(--text-mid); font-size: .9rem; flex: 1; margin-bottom: 1rem; }
.course-meta  {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.course-teacher { font-size: .85rem; color: var(--text-mid); }
.course-price   { font-weight: 700; color: var(--green); font-size: 1rem; }
.course-price.free { color: var(--green-light); }
.courses-cta { text-align: center; }

/* --- Testimonial / Numbers ------------------------------- */
#numbers {
  background: var(--green);
  color: var(--white);
  padding: 4rem 0;
}
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.number-item strong {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.number-item span {
  font-size: .95rem;
  color: rgba(255,255,255,.8);
  margin-top: .5rem;
  display: block;
}

/* --- Footer ---------------------------------------------- */
#footer {
  background: var(--text-dark);
  color: rgba(255,255,255,.8);
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding: 5rem 0 3rem;
}
.footer-brand .logo { color: var(--white); margin-bottom: 1rem; }
.footer-brand .logo span { color: var(--green-light); }
.footer-brand p { font-size: .9rem; line-height: 1.7; margin-bottom: 1.5rem; }
.footer-socials { display: flex; gap: .75rem; }
.footer-socials a {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: rgba(255,255,255,.8);
  transition: background .2s, color .2s;
}
.footer-socials a:hover { background: var(--green); color: #fff; }
.footer-col h4 {
  color: var(--white);
  margin-bottom: 1.25rem;
  font-size: 1rem;
  position: relative;
  padding-bottom: .75rem;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 30px; height: 2px;
  background: var(--green);
}
.footer-col ul li { margin-bottom: .6rem; }
.footer-col ul li a { color: rgba(255,255,255,.7); font-size: .9rem; }
.footer-col ul li a:hover { color: var(--green-light); }
.footer-contact li {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  margin-bottom: .75rem;
  font-size: .9rem;
  color: rgba(255,255,255,.7);
}
.footer-contact li span:first-child { font-size: 1rem; flex-shrink: 0; margin-top: 2px; }
.footer-map {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 2rem 0;
}
.footer-map h4 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 1rem;
}
.footer-map iframe, .footer-map .map-embed {
  width: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .85rem;
  color: rgba(255,255,255,.5);
}
.footer-bottom a { color: rgba(255,255,255,.6); }
.footer-bottom a:hover { color: var(--green-light); }

/* --- Scroll to top --------------------------------------- */
#scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px; height: 44px;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(26,122,74,.4);
  transition: background .2s, transform .2s;
  z-index: 999;
}
#scroll-top:hover { background: var(--green-dark); transform: translateY(-3px); }
#scroll-top.visible { display: flex; }

/* --- Alert ----------------------------------------------- */
.alert {
  padding: .85rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .95rem;
}
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-danger   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.alert-warning  { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.alert-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: .6;
  line-height: 1;
}
.alert-close:hover { opacity: 1; }

/* --- Responsive ------------------------------------------ */
@media (max-width: 1024px) {
  .levels-grid { grid-template-columns: repeat(2, 1fr); }
  .courses-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .numbers-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  nav ul { display: none; }
  .hamburger { display: flex; }
  nav.open ul {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--white);
    padding: 1.5rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    gap: 1.25rem;
  }
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 2rem; padding: 7rem 0 4rem; }
  .hero-content p { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { align-items: center; }
  .features-grid { grid-template-columns: 1fr; }
  .courses-grid { grid-template-columns: 1fr; }
  .levels-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: .75rem; text-align: center; }
}

@media (max-width: 480px) {
  .levels-grid { grid-template-columns: 1fr; }
  .numbers-grid { grid-template-columns: 1fr 1fr; }
  section { padding: 3.5rem 0; }
}
