/*
Theme Name: StoryClass
Theme URI: https://bookwall.shop
Author: StoryClass Team
Description: Interactive English Learning Platform for Schools
Version: 1.0.0
Text Domain: storyclass
*/

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #fbf7ef;
    color: #172133;
    line-height: 1.6;
}

/* Header */
.site-header {
    background: white;
    border-bottom: 1px solid #eadfcd;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    text-decoration: none;
    color: #172133;
}

.nav { display: flex; gap: 1.5rem; }
.nav a {
    text-decoration: none;
    color: #4b5870;
    font-weight: 700;
    font-size: 0.85rem;
    transition: color 0.2s;
}
.nav a:hover, .nav a.active { color: #ef5a3c; }

/* Hero */
.hero {
    padding: 4rem 2rem;
    text-align: center;
    background: white;
    border-bottom: 1px solid #eadfcd;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.1;
    max-width: 800px;
    margin: 0 auto;
}

.hero p {
    font-size: 1.1rem;
    color: #5c667a;
    max-width: 600px;
    margin: 1rem auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 9999px;
    font-weight: 900;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary { background: #ef5a3c; color: white; }
.btn-primary:hover { background: #d94a30; }
.btn-secondary { border: 2px solid #172133; color: #172133; }
.btn-secondary:hover { background: #172133; color: white; }

/* Sections */
.section { padding: 4rem 2rem; }
.section-alt { background: white; }
.container { max-width: 1200px; margin: 0 auto; }

.section-title { text-align: center; margin-bottom: 3rem; }
.section-title .eyebrow {
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #ef5a3c;
}
.section-title h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-top: 0.5rem;
}

/* Grid */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Cards */
.card {
    background: white;
    border: 1px solid #eadfcd;
    border-radius: 1.5rem;
    padding: 1.5rem;
}

.card h3 {
    font-size: 1.2rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.card p {
    color: #5c667a;
    font-size: 0.9rem;
    line-height: 1.6;
}

.badge {
    display: inline-block;
    background: #ffce3a;
    padding: 0.2rem 0.8rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 900;
}

/* Stats */
.stat-num { font-size: 2rem; font-weight: 900; }
.stat-label { font-size: 0.8rem; color: #5c667a; }

/* Footer */
.footer {
    background: #172133;
    color: white;
    padding: 3rem 2rem;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer h3 { font-weight: 900; margin-bottom: 1rem; }

.footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.footer a:hover { color: white; }

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    font-weight: 900;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.3rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #d8ccb8;
    border-radius: 1rem;
    font-size: 1rem;
    outline: none;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #ef5a3c;
}

/* Grid variants */
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* Tables */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 0.8rem; }
th { font-weight: 900; font-size: 0.85rem; text-transform: uppercase; color: #5c667a; }
td { font-size: 0.9rem; }

/* Tabs */
.tab-btn { cursor: pointer; }

/* Responsive */
@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4, .footer-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2rem; }
    .nav { display: none; }
    table { font-size: 0.8rem; }
    th, td { padding: 0.5rem 0.3rem; }
}
