/* ============================================================
   VIAMOON SATURDAY ACADEMY - Master Stylesheet
   Colors: Navy #1a2a4a, Teal #2d9cdb, Gold #f4a460
   ============================================================ */

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy: #1a2a4a;
    --navy-light: #2a3a6a;
    --teal: #2d9cdb;
    --teal-light: #5bb8e8;
    --gold: #f4a460;
    --gold-light: #f8c090;
    --cream: #f9f5f0;
    --white: #ffffff;
    --dark: #1a1a2e;
    --gray: #6b7a8f;
    --shadow: 0 8px 32px rgba(26, 42, 74, 0.12);
    --shadow-hover: 0 12px 48px rgba(26, 42, 74, 0.20);
    --radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--cream);
    color: var(--dark);
    line-height: 1.7;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    text-decoration: none;
    color: var(--teal);
    transition: var(--transition);
}

a:hover {
    color: var(--gold);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--navy);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--teal);
    margin-bottom: 0.5rem;
}

.section-title {
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--gray);
    max-width: 640px;
}

.text-center { text-align: center; }
.text-center .section-subtitle { margin: 0 auto; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

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

.btn-primary:hover {
    background: var(--navy);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-gold {
    background: var(--gold);
    color: var(--navy);
}

.btn-gold:hover {
    background: var(--gold-light);
    color: var(--navy);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    background: transparent;
    color: var(--navy);
    border: 2px solid var(--navy);
}

.btn-outline:hover {
    background: var(--navy);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-small {
    padding: 10px 24px;
    font-size: 0.9rem;
}

/* ===== HEADER / NAV ===== */
header {
    background: var(--white);
    box-shadow: 0 2px 16px rgba(26, 42, 74, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 44px;
    width: auto;
}

.logo span {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--navy);
}

.logo span .accent {
    color: var(--gold);
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
    list-style: none;
}

.nav-links a {
    color: var(--navy);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--teal);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--navy);
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: var(--white);
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(45, 156, 219, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    color: var(--white);
    font-size: 3.8rem;
    margin-bottom: 0.5rem;
}

.hero-content h1 span {
    color: var(--gold);
}

.hero-content .tagline {
    font-size: 1.4rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 1.5rem;
}

.hero-content p {
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    max-width: 500px;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    width: 100%;
}

/* ===== STATS ===== */
.stats {
    background: var(--white);
    padding: 48px 0;
    border-bottom: 1px solid rgba(26, 42, 74, 0.06);
}

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

.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--teal);
}

.stat-label {
    color: var(--gray);
    font-size: 0.95rem;
}

/* ===== COURSES ===== */
.courses-section {
    padding: 80px 0;
}

.course-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 32px 0 48px;
    justify-content: center;
}

.filter-btn {
    padding: 8px 24px;
    border-radius: 50px;
    border: 2px solid var(--navy);
    background: transparent;
    color: var(--navy);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--navy);
    color: var(--white);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}

.course-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.course-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.course-card-body {
    padding: 24px;
}

.course-card .badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 8px;
}

.badge-free { background: #e8f5e9; color: #2e7d32; }
.badge-premium { background: #fff3e0; color: #e65100; }
.badge-new { background: #e3f2fd; color: #0d47a1; }

.course-card .title {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.course-card .description {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.course-card .meta {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 16px;
}

.course-card .meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.course-card .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
}

.course-card .price.free {
    color: #2e7d32;
}

.course-card .footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid rgba(26, 42, 74, 0.06);
}

/* ===== INSTRUCTOR ===== */
.instructor-section {
    padding: 80px 0;
    background: var(--white);
}

.instructor-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 48px;
    align-items: start;
}

.instructor-photo {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
}

.instructor-bio h3 {
    font-size: 1.8rem;
}

.instructor-bio .title {
    color: var(--teal);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.instructor-bio p {
    color: var(--gray);
    margin-bottom: 1rem;
}

.instructor-credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.credential {
    background: var(--cream);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--navy);
}

/* ===== TESTIMONIALS ===== */
.testimonials-section {
    padding: 80px 0;
    background: var(--cream);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 32px;
}

.testimonial-card {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.testimonial-card .stars {
    color: var(--gold);
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.testimonial-card blockquote {
    font-style: italic;
    color: var(--dark);
    margin-bottom: 16px;
}

.testimonial-card .author {
    font-weight: 600;
    color: var(--navy);
}

.testimonial-card .role {
    font-size: 0.85rem;
    color: var(--gray);
}

/* ===== CTA ===== */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: var(--white);
    text-align: center;
}

.cta-section h2 {
    color: var(--white);
}

.cta-section p {
    color: rgba(255,255,255,0.7);
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* ===== FOOTER ===== */
footer {
    background: var(--dark);
    color: rgba(255,255,255,0.6);
    padding: 48px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 32px;
}

.footer-brand p {
    margin-top: 8px;
    font-size: 0.95rem;
}

.footer h4 {
    color: var(--white);
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 24px;
    text-align: center;
    font-size: 0.85rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    h1 { font-size: 2.8rem; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-content p { margin: 0 auto 2rem; }
    .hero-buttons { justify-content: center; }
    .instructor-grid { grid-template-columns: 1fr; text-align: center; }
    .instructor-credentials { justify-content: center; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        gap: 16px;
        padding: 20px 0;
        width: 100%;
    }
    .nav-links.open { display: flex; }
    .mobile-toggle { display: block; }
    .navbar { flex-wrap: wrap; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .courses-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* ===== UTILITY ===== */
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }