/* ==========================================================================
   Kwanjangdo Martial Arts Academy - Main Stylesheet
   ========================================================================== */

:root {
    --primary-color: #e63946;
    --bg-dark: #121212;
    --bg-card: #1a1a1a;
    --text-light: #f1f1f1;
    --text-muted: #aaa;
    --border-color: #2a2a2a;
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

.section-padding {
    padding: 5rem 0;
}

.section-divider {
    border-bottom: 1px solid var(--border-color);
}

.badge {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: opacity 0.3s ease;
}

.btn:hover {
    opacity: 0.9;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
    margin-left: 10px;
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(18, 18, 18, 0.95);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.4rem;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
}

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

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

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

/* Hero Section */
.hero {
    height: 85vh;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.8)), url('../images/hero-bg.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 60px;
}

.hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: var(--text-muted);
}

/* Content Wrappers */
.content-box {
    max-width: 900px;
    margin: 0 auto;
}

/* Grid Layouts */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.card-accent {
    border-top: 3px solid var(--primary-color);
}

/* Form Styles */
.form-group {
    display: grid;
    gap: 1rem;
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    background: #111;
    border: 1px solid var(--border-color);
    color: #fff;
    border-radius: 4px;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-15 {
    margin-bottom: 1.5rem;
}

.mb-075 {
    margin-bottom: 0.75rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.text-muted {
    color: var(--text-muted);
}

.section-subtitle {
    margin: 2rem 0 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.quote-block {
    background: var(--bg-card);
    padding: 1.5rem;
    border-left: 4px solid var(--primary-color);
    font-style: italic;
    margin-bottom: 2rem;
}

.text-primary {
    color: var(--primary-color);
}

.list-square {
    list-style: square;
    padding-left: 1.5rem;
}

.mb-08 {
    margin-bottom: 0.8rem;
}

.card-body strong {
    display: block;
}

.card-body small {
    color: var(--text-muted);
}

.section-heading-alt {
    margin: 2rem 0 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.gallery-card {
    padding: 0;
    overflow: hidden;
}

.gallery-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.card-body {
    padding: 1rem;
}

.form-grid {
    display: grid;
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.btn-action {
    border: none;
    cursor: pointer;
    justify-self: start;
}

.box-space {
    padding: 2.5rem;
}

.link-primary {
    color: var(--primary-color);
    text-decoration: underline;
}

.text-strong {
    font-weight: 600;
    color: #fff;
}

/* Footer */
footer {
    background-color: #0a0a0a;
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    text-align: center;
    color: var(--text-muted);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .btn-secondary {
        margin-left: 0;
        margin-top: 10px;
    }
}