/* Custom CSS for Cornerstone BJJ Website */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500;600;700&family=Open+Sans:wght@300;400;600;700&display=swap');

/* Root Variables */
:root {
    --primary-color: #22c55e;
    --secondary-color: #16a34a;
    --accent-color: #fbbf24;
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
    --text-dark: #333333;
    --text-light: #666666;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

.section-title {
    position: relative;
    margin-bottom: 3rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Custom Button Styles */
.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.btn-primary:hover {
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(34, 197, 94, 0.3);
}

.btn-outline-light {
    border: 2px solid #fff;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.btn-outline-light:hover {
    background: #fff;
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Navigation Styles */
.navbar {
    padding: 1rem 0;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    background-color: rgba(26, 26, 26, 0.95) !important;
}

.navbar-brand {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.navbar-nav .nav-link {
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 16px !important;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover {
    color: var(--accent-color) !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
                url('/static/images/hero-bg2.png') center/cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.8), rgba(251, 191, 36, 0.6));
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem 0;
}

.hero-content h1 {
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-buttons {
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-stats {
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-stats h3 {
    color: var(--accent-color);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Class Cards */
.class-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.class-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(34, 197, 94, 0.8), rgba(251, 191, 36, 0.6));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.class-card:hover .card-overlay {
    opacity: 1;
}

.card-overlay h5 {
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Benefits Section */
.benefit-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    font-size: 1.1rem;
    transition: var(--transition);
}

.benefit-item:hover {
    color: var(--primary-color);
    transform: translateX(10px);
}

.benefit-item i {
    font-size: 1.3rem;
}

/* Testimonials */
.testimonial-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.stars i {
    font-size: 1.2rem;
    margin-right: 2px;
}

.testimonial-author strong {
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Business Hours */
.business-hours-card {
    border: none;
    border-radius: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.schedule-item {
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.schedule-item:last-child {
    border-bottom: none;
}

.day-time {
    font-size: 1.1rem;
}

.day-time strong {
    color: var(--primary-color);
    font-weight: 600;
}

.day-time span {
    color: var(--text-dark);
    text-align: right;
}

/* Class Schedule */
.class-schedule-card {
    border: none;
    border-radius: 15px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.schedule-day {
    background: #ffffff;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 100%;
    border-left: 4px solid var(--primary-color);
}

.day-header {
    font-weight: 700;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.class-time {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    border-left: 3px solid var(--accent-color);
}

.time-badge {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.class-name {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.95rem;
}

/* Gallery Section */
.gallery-grid {
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.gallery-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(34, 197, 94, 0.8), rgba(251, 191, 36, 0.6));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 2rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

/* Gallery Modal */
.modal-content {
    background: rgba(0, 0, 0, 0.9) !important;
    border: none;
}

.modal-body img {
    max-height: 80vh;
    width: auto;
    object-fit: contain;
}

.btn-outline-light:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Contact Section */
.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-item i {
    font-size: 1.3rem;
    margin-top: 5px;
}

.contact-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.form-control, .form-select {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 10px;
    padding: 12px 15px;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    background: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(34, 197, 94, 0.25);
}

/* Footer */
footer {
    background: var(--dark-color) !important;
}

.footer-brand h5 {
    color: var(--accent-color);
    font-weight: 700;
}

/* Social Media Icons */
.social-icons a {
    font-size: 1.5rem;
    transition: var(--transition);
    text-decoration: none;
    color: white !important;
}

.social-icons a:hover {
    color: var(--accent-color) !important;
    transform: translateY(-2px);
}

.social-icons a i {
    color: white !important;
}

.social-media h6 {
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 991px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .navbar-brand img {
        height: 35px;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1rem;
    }
    
    .navbar-brand img {
        height: 30px;
        margin-right: 5px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
        line-height: 1.1;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin-bottom: 1rem;
        padding: 15px;
        font-size: 1.1rem;
    }
    
    .hero-stats {
        margin-top: 2rem;
    }
    
    .hero-stats h3 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .contact-form {
        margin-top: 2rem;
        padding: 1.5rem;
    }
    
    .contact-method {
        text-align: center;
    }
    
    .social-icons {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .social-icons a {
        margin: 0 !important;
        font-size: 1.8rem;
    }
    
    .footer-brand h5 {
        text-align: center;
        margin-bottom: 15px;
    }
    
    .footer-brand h5 img {
        height: 25px;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 0.9rem;
        line-height: 1.2;
    }
    
    .navbar-brand img {
        height: 25px;
        margin-right: 3px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
        line-height: 1.1;
        margin-bottom: 1rem;
    }
    
    .hero-content .lead {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons .btn {
        font-size: 1rem;
        padding: 12px;
    }
    
    .hero-stats h3 {
        font-size: 1.2rem;
    }
    
    .hero-stats small {
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .benefit-item {
        font-size: 0.9rem;
        padding: 8px 0;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .contact-item i {
        margin-bottom: 10px;
        margin-right: 0;
        font-size: 1.5rem;
    }
    
    .testimonial-card {
        margin-bottom: 2rem;
    }
    
    .card-text {
        font-size: 0.9rem;
    }
    
    .social-icons a {
        font-size: 1.5rem;
    }
    
    .contact-form {
        padding: 1rem;
    }
    
    .contact-method h5 {
        font-size: 1.1rem;
    }
    
    .contact-method p {
        font-size: 0.9rem;
    }
    
    /* Footer adjustments */
    footer .row {
        text-align: center;
    }
    
    footer .col-md-4 {
        margin-bottom: 1rem;
    }
    
    footer .small {
        font-size: 0.8rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Additional mobile-specific improvements */
@media (max-width: 480px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .hero-section {
        min-height: 80vh;
        padding: 1rem 0;
    }
    
    .hero-content {
        padding: 1rem 0;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-toggler {
        padding: 0.25rem 0.5rem;
        font-size: 1rem;
    }
    
    .class-card img {
        height: 200px;
    }
    
    .about-image,
    .programs-image,
    .trial-image {
        margin-top: 2rem;
    }
    
    .testimonial-card .card-body {
        padding: 1rem;
    }
    
    .contact-method .btn {
        font-size: 0.9rem;
        padding: 10px 15px;
    }
}

/* Tablet-specific adjustments */
@media (min-width: 768px) and (max-width: 991px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .hero-stats h3 {
        font-size: 1.8rem;
    }
    
    .class-card {
        margin-bottom: 2rem;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
    }
}

/* Loading animation for images */
img {
    transition: opacity 0.3s ease;
}

img:not([src]) {
    opacity: 0;
}

/* Accessibility improvements */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .navbar,
    .hero-section,
    footer {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
}
