/*
* Step&Flow Dance Studio CSS
* -------------------------
* Fonts: Josefin Sans / Nunito
* Colors: Cool Gray Palette
*/

/* ------------------- */
/* ROOT & GLOBAL STYLES */
/* ------------------- */
:root {
    --primary: #F5F7F8;
    --secondary: #91A0A8;
    --accent: #68787D;
    --dark: #3C4548;
    --text: #323A3D;
    --light: #FFFFFF;
    --font-primary: 'Josefin Sans', sans-serif;
    --font-secondary: 'Nunito', sans-serif;
    --header-height: 80px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    background-color: var(--primary);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
}

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

h1, h2, h3, h4 {
    font-family: var(--font-primary);
    color: var(--dark);
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

ul {
    list-style: none;
}

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

section {
    padding: 60px 0;
}

/* ------------------- */
/* HEADER & NAVIGATION */
/* ------------------- */
.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
    padding: 15px 0;
}

.header.sticky {
    position: fixed;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

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

.logo {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
}

.header nav ul {
    display: flex;
    gap: 30px;
}

.header nav a {
    font-family: var(--font-secondary);
    font-weight: 700;
    font-size: 1rem;
    color: var(--dark);
    position: relative;
    padding-bottom: 5px;
}

.header nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.header nav a:hover::after,
.header nav a.active::after {
    width: 100%;
}

/* ------------------- */
/* BUTTONS             */
/* ------------------- */
.btn {
    display: inline-block;
    background-color: var(--accent);
    color: var(--light);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--dark);
    color: var(--light);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background-color: var(--accent);
    color: var(--light);
    border-color: var(--accent);
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.8rem;
}

/* ------------------- */
/* HERO SECTION        */
/* ------------------- */
.hero {
    position: relative;
    height: 90vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(245, 247, 248, 0.9) 0%, rgba(245, 247, 248, 0.8) 40%, rgba(245, 247, 248, 0) 70%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-text {
    max-width: 50%;
}

.hero h1 {
    color: var(--dark);
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text);
    margin-bottom: 2rem;
    max-width: 500px;
}

/* ------------------- */
/* CLASSES SECTION     */
/* ------------------- */
.classes-section {
    background-color: var(--light);
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card {
    background-color: var(--primary);
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(60, 69, 72, 0.1);
}

.card-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card-body {
    padding: 25px;
}

.card h3 {
    color: var(--dark);
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.card-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--accent);
    color: var(--light);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 2;
}

.card-tag.best-seller {
    background-color: var(--dark);
}

/* ------------------- */
/* TESTIMONIALS        */
/* ------------------- */
.testimonials-section {
    background-color: var(--primary);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.testimonial-card {
    background-color: var(--light);
    padding: 30px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--secondary);
}

.testimonial-text {
    font-style: italic;
    color: var(--text);
    margin-bottom: 15px;
    flex-grow: 1;
}

.testimonial-author {
    font-weight: bold;
    color: var(--accent);
}

/* ------------------- */
/* FOOTER              */
/* ------------------- */
.footer {
    background-color: var(--dark);
    color: var(--light);
    padding: 60px 0 20px;
}

.footer a {
    color: var(--secondary);
}

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

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

.footer-column .logo {
    color: var(--light);
    margin-bottom: 1rem;
    display: inline-block;
}

.footer-column p {
    color: var(--secondary);
    max-width: 300px;
}

.footer-column h4 {
    color: var(--light);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a img {
    width: 24px;
    height: 24px;
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover img {
    opacity: 1;
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--accent);
    color: var(--secondary);
    font-size: 0.9rem;
}

/* ------------------- */
/* PAGE STYLES         */
/* ------------------- */
.page-main {
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 60px;
}

.page-main h1 {
    text-align: center;
}

/* ABOUT PAGE */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.about-image img {
    border-radius: 12px;
}

.about-text-content h2 {
    text-align: left;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

/* CONTACT PAGE */
.contact-section .subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--secondary);
    max-width: 600px;
    margin: -1rem auto 3rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--secondary);
    border-radius: 8px;
    background-color: var(--light);
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(104, 120, 125, 0.2);
}

.contact-info-container h3 {
    margin-bottom: 1.5rem;
}

.info-block {
    margin-bottom: 2rem;
}

.info-block h4 {
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.info-block ul li {
    color: var(--text);
}

/* FAQ PAGE */
.faq-container {
    max-width: 800px;
    margin: 40px auto 0;
}

.faq-container details {
    background: var(--light);
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
}

.faq-container summary {
    padding: 20px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    list-style: none;
    position: relative;
    color: var(--dark);
}

.faq-container summary::-webkit-details-marker {
    display: none;
}

.faq-container summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 1.5rem;
    color: var(--accent);
    transition: transform 0.3s ease;
}

.faq-container details[open] summary::after {
    transform: rotate(45deg);
}

.faq-container details p {
    padding: 0 20px 20px;
    margin: 0;
    color: var(--text);
}

/* LEGAL PAGES */
.legal-page .container {
    max-width: 800px;
}
.legal-page h1 {
    text-align: left;
    font-size: 2.8rem;
}
.legal-page h2 {
    text-align: left;
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.legal-page p, .legal-page ul {
    margin-bottom: 1rem;
}
.legal-page ul {
    padding-left: 20px;
    list-style: disc;
}

/* ------------------- */
/* MODAL               */
/* ------------------- */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: var(--light);
    margin: 15% auto;
    padding: 30px;
    border-radius: 12px;
    max-width: 500px;
    text-align: center;
    position: relative;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from {opacity: 0; transform: scale(0.9);}
    to {opacity: 1; transform: scale(1);}
}

.close-button {
    color: var(--secondary);
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover {
    color: var(--dark);
}

/* ------------------- */
/* COOKIE BANNER       */
/* ------------------- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--dark);
    color: var(--light);
    padding: 15px 20px;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 20px;
    z-index: 2000;
    flex-wrap: wrap;
}

.cookie-banner p {
    margin: 0;
    font-size: 0.9rem;
}

.cookie-banner a {
    color: var(--light);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}


/* ------------------- */
/* RESPONSIVE DESIGN   */
/* ------------------- */
@media (max-width: 992px) {
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2rem; }

    .hero-text { max-width: 70%; }
    .items-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr 1fr; }
    .about-content { grid-template-columns: 1fr; }
    .contact-content { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .header {
        position: static;
        background-color: var(--light);
    }
    .page-main { padding-top: 20px; }

    .hero { height: 70vh; }
    .hero-text { max-width: 100%; text-align: center; }
    .hero::after { background: rgba(245, 247, 248, 0.8); }
    h1 { font-size: 2.5rem; }
    .items-grid { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .footer-column p { max-width: 100%; }
    .social-icons { justify-content: center; }
    .cookie-banner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .header nav ul { gap: 15px; }
    .header nav a { font-size: 0.9rem; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    .btn { padding: 10px 24px; }
}
