/*
Theme Name: Blading School Málaga
Theme URI: https://bladingschoolmalaga.com
Author: Antigravity AI
Description: A custom theme for Blading School Málaga
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/
:root {
    --color-bg: #F5F5F5;
    /* White Smoke */
    --color-bg-alt: #E0E0E0;
    /* Light Concrete Grey */

    /* Logo Accent Colors */
    --color-accent-yellow: #FFB800;
    --color-accent-pink: #FF007F;
    --color-accent-teal: #00CC99;
    --color-accent-blue: #00AEEF;

    --color-accent: var(--color-accent-yellow);
    /* Primary stay yellow but allow switching */

    --color-text: #1A1A1A;
    /* Matte Black */
    --color-text-light: #F9F9F9;
    --color-white: #FFFFFF;

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Nunito', sans-serif;

    --border-radius: 15px;
    --spacing-section: 80px;
    --spacing-container: 20px;

    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.1);
}

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

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
    border-radius: var(--border-radius);
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-container);
}

.section-padding {
    padding: var(--spacing-section) 0;
}

.text-center {
    text-align: center;
}

.highlight {
    background: linear-gradient(120deg, var(--color-accent-yellow), var(--color-accent-pink), var(--color-accent-teal), var(--color-accent-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 30px;
    font-family: var(--font-heading);
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 50px;
    /* Pill shape for buttons contrasts nicely with blocky layout */
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.3);
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-text);
    border: 2px solid var(--color-accent);
}

.btn-secondary {
    background-color: var(--color-text);
    color: var(--color-accent);
    border: 2px solid var(--color-text);
}

.btn-secondary:hover {
    background-color: transparent;
    color: var(--color-text);
}

/* Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    height: 80px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}


.logo {
    display: flex;
    align-items: center;
    border: none;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.logo-img {
    height: 60px;
    /* Adjust as needed */
    width: auto;
    border-radius: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links li a {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 3px;
    /* Multicolored underline on hover could be cool, but keep it simple for now, maybe cycle colors */
    background-color: var(--color-accent-pink);
    transition: width 0.3s;
}

.nav-links li:nth-child(1) a::after {
    background-color: var(--color-accent-yellow);
}

.nav-links li:nth-child(2) a::after {
    background-color: var(--color-accent-pink);
}

.nav-links li:nth-child(3) a::after {
    background-color: var(--color-accent-teal);
}

.nav-links li:nth-child(4) a::after {
    background-color: var(--color-accent-blue);
}

.nav-links li a:hover::after {
    width: 100%;
}

.btn-nav {
    background: var(--color-text);
    color: var(--color-white) !important;
    padding: 10px 20px;
    border-radius: 4px;
    border: 2px solid var(--color-text);
}

.btn-nav:hover {
    background: transparent;
    color: var(--color-text) !important;
    border-color: var(--color-accent-blue) !important;
}

.burger {
    display: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 90vh;
    /* Almost full screen */
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('assets/hero.png');
    /* We will generate this */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
    color: var(--color-white);
    text-align: center;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
    /* Gradient overlay */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-tagline {
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: block;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 30px;
    text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.5);
}

/* About Section */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-header h2 {
    font-size: 2.5rem;
    display: inline-block;
    position: relative;
    z-index: 2;
}

/* Paint Splatter Simulation behind title */
.section-header h2::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-5deg);
    width: 120%;
    height: 140%;
    background-color: #E0E0E0;
    /* Subtle grey splatter */
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    /* Organic shape */
    z-index: -1;
    opacity: 0.5;
}

/* Colored splatters for specific sections if needed */
#sobre-nosotros .section-header h2::before {
    background-color: rgba(255, 184, 0, 0.2);
}

#galeria .section-header h2::before {
    background-color: rgba(0, 204, 153, 0.2);
}

#contacto .section-header h2::before {
    background-color: rgba(255, 0, 127, 0.1);
}


.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    background: var(--color-white);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s;
    box-shadow: var(--shadow-card);
}

.feature-card:nth-child(1):hover {
    border-color: var(--color-accent-yellow);
    box-shadow: 0 15px 40px rgba(255, 184, 0, 0.2);
}

.feature-card:nth-child(2):hover {
    border-color: var(--color-accent-pink);
    box-shadow: 0 15px 40px rgba(255, 0, 127, 0.2);
}

.feature-card:nth-child(3):hover {
    border-color: var(--color-accent-teal);
    box-shadow: 0 15px 40px rgba(0, 204, 153, 0.2);
}

.feature-card:hover {
    transform: translateY(-10px);
}

.icon-wrapper {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.feature-card:hover .icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.feature-icon {
    max-width: 100%;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* Gallery Section (Mosaic) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Asymmetric Grid Layout for Gallery */
.item-1 {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}

/* Large featured */
.item-2 {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
}

.item-3 {
    grid-column: 4 / 5;
    grid-row: 1 / 2;
}

.item-4 {
    grid-column: 3 / 5;
    grid-row: 2 / 3;
}

/* Wide low */
.item-5 {
    display: none;
}

/* Hidden on large screens or add more rows */

/* Parents CTA */
.parents-cta {
    background-color: var(--color-accent);
    color: var(--color-text);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.parents-cta h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.parents-cta p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    font-weight: 700;
}

/* Contact Form */
.contact-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: var(--color-white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--color-text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

.contact-form button {
    width: 100%;
    margin-top: 10px;
}

/* --- New Sections Styles --- */

/* Levels & Methodology */
.level-card {
    text-align: left;
    position: relative;
    overflow: hidden;
}

.level-desc {
    font-weight: 800;
    text-transform: uppercase;
    color: #777;
    margin-bottom: 15px;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.level-list {
    margin-top: 20px;
    list-style: none;
    /* Already set globally but explicit here */
}

.level-list li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    font-family: var(--font-body);
}

.level-list li::before {
    content: '•';
    color: var(--color-accent);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.level-card:nth-child(1) .level-list li::before {
    color: var(--color-accent-teal);
}

.level-card:nth-child(2) .level-list li::before {
    color: var(--color-accent-yellow);
}

.level-card:nth-child(3) .level-list li::before {
    color: var(--color-accent-pink);
}

/* Schedule Table */
.schedule-container {
    margin-top: 60px;
    text-align: center;
}

.schedule-container h3 {
    margin-bottom: 30px;
    font-size: 2rem;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.schedule-table th,
.schedule-table td {
    padding: 15px 20px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.schedule-table th {
    background-color: var(--color-text);
    color: var(--color-white);
    text-transform: uppercase;
    font-size: 0.9rem;
}

.schedule-table tr:last-child td {
    border-bottom: none;
}

.schedule-table tr:hover {
    background-color: #f9f9f9;
}

/* Security Section */
.bg-light {
    background-color: var(--color-white);
}

.section-row {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    align-items: center;
}

.text-content {
    flex: 1;
    min-width: 300px;
}

.safety-item {
    margin-bottom: 30px;
}

.safety-item h4 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--color-text);
}

/* Instructors Grid */
.instructors-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    min-width: 300px;
}

.instructor-card {
    background: var(--color-bg);
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: transform 0.3s;
}

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

.instructor-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 15px;
    object-fit: cover;
    border: 3px solid var(--color-accent-blue);
}

/* Events Section */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.event-card {
    background: var(--color-bg);
    /* Contrast with white section bg */
    padding: 30px;
    border-radius: var(--border-radius);
    border-left: 5px solid var(--color-text);
    transition: all 0.3s;
}

.event-card:hover {
    background: var(--color-white);
    box-shadow: var(--shadow-card);
    border-left-color: var(--color-accent-pink);
}

.event-card h3 {
    margin-bottom: 15px;
}

.event-card ul {
    margin: 15px 0;
    padding-left: 20px;
}

.event-card ul li {
    list-style: disc;
    margin-bottom: 5px;
}

.btn-text {
    font-weight: 700;
    color: var(--color-accent-blue);
    margin-top: 10px;
    display: inline-block;
}

/* Blog Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--color-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s;
    border: 1px solid #eee;
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent-yellow);
}

.blog-content {
    padding: 25px;
}

.blog-content h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.read-more {
    color: var(--color-accent-pink);
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: 15px;
    display: block;
}

/* Testimonials / Social */
.testimonials-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
}

.review-card {
    background: var(--color-white);
    padding: 20px;
    border-radius: var(--border-radius);
    max-width: 400px;
    box-shadow: var(--shadow-card);
    text-align: left;
}

.stars {
    margin-bottom: 10px;
}

.review-card cite {
    display: block;
    margin-top: 10px;
    font-size: 0.85rem;
    color: #666;
    font-style: normal;
    font-weight: 700;
}

.mt-50 {
    margin-top: 50px;
}

.social-prompt {
    margin-top: 30px;
    font-weight: 700;
}

/* Footer style logic ... */
/* Footer */
.footer {
    background-color: #111;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info h3 {
    color: var(--color-accent);
    margin-bottom: 20px;
}

.footer h4 {
    margin-bottom: 20px;
    border-bottom: 2px solid var(--color-accent);
    display: inline-block;
    padding-bottom: 5px;
}

.social-links a {
    display: block;
    margin-top: 10px;
    color: #ccc;
}

.social-links a:hover {
    color: var(--color-accent);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 0.9rem;
    color: #777;
}

/* Responsive */
@media (max-width: 900px) {
    .hero h1 {
        font-size: 3rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .item-1,
    .item-2,
    .item-3,
    .item-4 {
        grid-column: span 1;
        grid-row: span 1;
    }

    .item-1 {
        grid-column: 1 / -1;
        height: 300px;
    }
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .nav-links {
        position: absolute;
        right: 0px;
        height: 92vh;
        top: 80px;
        background-color: var(--color-bg);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 50%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        box-shadow: -2px 5px 10px rgba(0, 0, 0, 0.1);
        padding-top: 50px;
    }

    .nav-links li {
        opacity: 0;
        margin-bottom: 30px;
    }

    .burger {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .parents-cta h2 {
        font-size: 2rem;
    }
}

.nav-active {
    transform: translateX(0%);
}

@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--color-text);
    margin: 5px;
    transition: all 0.3s ease;
}

/* Reveal Animations */
/* Reveal Animations */
.feature-card,
.gallery-item,
.section-header,
.contact-form-wrapper {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.feature-card.active,
.gallery-item.active,
.section-header.active,
.contact-form-wrapper.active {
    opacity: 1;
    transform: translateY(0);
}