/* 
* Polyzenih Pilates Studio - Main Stylesheet
* Author: Claude
* Version: 1.0
* Date: May 2025
*/

/* ---------- Table of Contents ----------
1. Base Styles
2. Typography
3. Layout & Grid
4. Header & Navigation
5. Footer
6. Hero Section
7. About Section
8. Services Section
9. Instructors Section
10. Schedule Section
11. Pricing Section
12. Testimonials Section
13. FAQ Section
14. Contact Section
15. Legal Pages
16. Success Page
17. Buttons & CTAs
18. Forms
19. Utility Classes
20. Animations
21. Media Queries
---------------------------------------- */

/* ---------- 1. Base Styles ---------- */
:root {
    --bg-color: #FAFAFA;
    --primary-color: #B4D2C1;
    --secondary-color: #D9CAB3;
    --text-color: #2E2E2E;
    --light-gray: #F0F0F0;
    --medium-gray: #D1D1D1;
    --dark-gray: #6B6B6B;
    --white: #FFFFFF;
    --black: #000000;
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --container-width: 1200px;
    --header-height: 80px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

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

a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

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

ul, ol {
    list-style: none;
}

/* ---------- 2. Typography ---------- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-color);
}

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

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
}

h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-divider {
    height: 3px;
    width: 80px;
    background-color: var(--primary-color);
    margin: 0 auto;
}

/* ---------- 3. Layout & Grid ---------- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    padding: 0 15px;
    flex: 1;
}

/* ---------- 4. Header & Navigation ---------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    z-index: 100;
    transition: var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.logo img {
    height: 50px;
}

.logo span {
    text-transform: uppercase;
    font-weight: 700;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
}

.nav-list li {
    margin-left: 30px;
}

.nav-list a {
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    bottom: -5px;
    left: 0;
    transition: var(--transition);
}

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

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 30px;
    position: relative;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    margin: 6px 0;
    transition: var(--transition);
}

/* Header scroll state */
.header.scrolled {
    box-shadow: var(--shadow-md);
    background-color: rgba(255, 255, 255, 0.95);
}

/* ---------- 5. Footer ---------- */
.footer {
    background-color: var(--text-color);
    color: var(--bg-color);
    padding: 60px 0 20px;
}

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

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

.footer-content {
   display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    margin-bottom: 40px;
}

.footer-logo, .footer-links, .footer-legal, .footer-newsletter, .footer-contact {
    width: 100%;
    margin-bottom: 30px;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 15px;
}

.footer-logo p {
    max-width: 250px;
}

.footer h3 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 20px;
    position: relative;
}

.footer h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

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

.footer-newsletter p {
    margin-bottom: 20px;
}

.newsletter-form .form-group {
    display: flex;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: var(--border-radius-sm) 0 0 var(--border-radius-sm);
}

.newsletter-form button {
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
    padding: 0 20px;
    background-color: var(--primary-color);
    border: none;
    color: var(--white);
    cursor: pointer;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ---------- 6. Hero Section ---------- */
.hero {
    padding: 150px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 550px;
}

.hero h1 {
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-image {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 50%;
    height: 100%;
    z-index: -1;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 0 0 var(--border-radius-lg);
}

/* ---------- 7. About Section ---------- */
.about {
    background-color: var(--white);
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 50px;
}

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

.about-image {
    flex: 1;
    min-width: 300px;
}

.about-image img {
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
}

.about-features {
    margin-top: 30px;
}

.feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.feature-icon {
    margin-right: 15px;
    flex-shrink: 0;
}

.feature-text h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.feature-text p {
    margin-bottom: 0;
}

/* ---------- 8. Services Section ---------- */
.services {
    background-color: var(--bg-color);
}

.services-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    border-radius: var(--border-radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
}

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

.service-icon {
    margin-bottom: 20px;
}

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

.service-card p {
    margin-bottom: 0;
}

/* ---------- 9. Instructors Section ---------- */
.instructors {
    background-color: var(--white);
}

.instructors-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.instructors-slider {
    position: relative;
    overflow: hidden;
}

.instructor-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
}

.instructor-image {
    flex: 1;
    min-width: 300px;
}

.instructor-image img {
    border-radius: var(--border-radius-md);
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.instructor-info {
    flex: 1;
    min-width: 300px;
}

.instructor-info h4 {
    color: var(--dark-gray);
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-style: italic;
    margin-bottom: 15px;
}

.instructors-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
}

.slider-dots {
    display: flex;
    gap: 10px;
    margin: 0 20px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--medium-gray);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--primary-color);
}

.prev-btn, .next-btn {
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.prev-btn:hover, .next-btn:hover {
    transform: scale(1.1);
}

/* ---------- 10. Schedule Section ---------- */
.schedule {
    background-color: var(--bg-color);
}

.schedule-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px;
}

.schedule-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.filter-btn {
    padding: 8px 16px;
    background-color: var(--white);
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.schedule-table-wrapper {
    overflow-x: auto;
    margin-bottom: 20px;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

.schedule-table th, .schedule-table td {
    padding: 15px;
    text-align: center;
    border: 1px solid var(--medium-gray);
}

.schedule-table th {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 600;
}

.schedule-table td {
    background-color: var(--white);
}

.schedule-table td.class-mat {
    background-color: rgba(180, 210, 193, 0.2);
}

.schedule-table td.class-reformer {
    background-color: rgba(217, 202, 179, 0.2);
}

.schedule-table td.class-prenatal {
    background-color: rgba(180, 210, 193, 0.4);
}

.schedule-table td.class-rehab {
    background-color: rgba(217, 202, 179, 0.4);
}

.schedule-table td span {
    display: block;
    font-size: 0.85rem;
    color: var(--dark-gray);
}

.schedule-note {
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.schedule-note p {
    margin-bottom: 5px;
}

/* ---------- 11. Pricing Section ---------- */
.pricing {
    background-color: var(--white);
}

.pricing-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

.toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
    margin: 0 15px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--medium-gray);
    transition: var(--transition);
    border-radius: 30px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: var(--white);
    transition: var(--transition);
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(30px);
}

.pricing-plans {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 60px;
}

.pricing-card {
    background-color: var(--bg-color);
    border-radius: var(--border-radius-md);
    padding: 40px 30px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    flex: 1;
    min-width: 300px;
    max-width: 350px;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.pricing-card.popular {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-10px);
}

.popular-tag {
    position: absolute;
    top: 0;
    right: 30px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 0 0 var(--border-radius-sm) var(--border-radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    margin-bottom: 30px;
}

.pricing-header h3 {
    margin-bottom: 15px;
}

.price {
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: baseline;
    justify-content: center;
}

.amount {
    display: none;
}

.amount.monthly {
    display: inline;
}

.period {
    font-size: 1rem;
    color: var(--dark-gray);
    font-weight: 400;
    margin-left: 5px;
}

/* When annual pricing is active */
.pricing-toggle input:checked ~ .pricing-plans .amount.monthly {
    display: none;
}

.pricing-toggle input:checked ~ .pricing-plans .amount.annual {
    display: inline;
}

.pricing-features {
    margin-bottom: 30px;
}

.pricing-features ul {
    padding: 0;
}

.pricing-features li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.pricing-features li svg {
    margin-right: 10px;
    flex-shrink: 0;
}

.pricing-features li.unavailable {
    color: var(--dark-gray);
}

.pricing-card .btn {
    width: 100%;
    text-align: center;
}

.single-classes {
    max-width: 900px;
    margin: 0 auto;
}

.single-classes h3 {
    text-align: center;
    margin-bottom: 30px;
}

.single-classes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.single-class-item {
    background-color: var(--bg-color);
    border-radius: var(--border-radius-sm);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.single-class-item h4 {
    margin-bottom: 10px;
}

.price {
    font-weight: 600;
    color: var(--dark-gray);
}

/* ---------- 12. Testimonials Section ---------- */
.testimonials {
    background-color: var(--bg-color);
    position: relative;
}

.testimonials-slider {
    position: relative;
    overflow: hidden;
}

.testimonial-card {
    background-color: var(--white);
    border-radius: var(--border-radius-md);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
    position: relative;
}

.testimonial-quote {
    margin-bottom: 20px;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 30px;
    position: relative;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 20px;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: 5px;
}

.author-info p {
    color: var(--dark-gray);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.testimonials-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
}

/* ---------- 13. FAQ Section ---------- */
.faq {
    background-color: var(--white);
}

.faq-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--medium-gray);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    cursor: pointer;
}

.faq-question h3 {
    margin-bottom: 0;
    font-size: 1.25rem;
    flex: 1;
    padding-right: 20px;
}

.toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.active .faq-answer {
    padding: 0 0 20px;
    max-height: 1000px;
}

.faq-item.active .toggle-btn svg {
    transform: rotate(180deg);
}

/* ---------- 14. Contact Section ---------- */
.contact {
    background-color: var(--bg-color);
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
}

.contact-info, .contact-form-container {
    flex: 1;
    min-width: 300px;
}

.contact-info h3, .contact-form-container h3 {
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.info-icon {
    margin-right: 15px;
    flex-shrink: 0;
}

.info-text h4 {
    margin-bottom: 5px;
}

.info-text p {
    margin-bottom: 5px;
}

.map-container {
    margin-top: 30px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    height: 300px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input, .form-group textarea {
    padding: 12px 15px;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius-sm);
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
}

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

.checkbox-container {
    display: flex;
    align-items: flex-start;
}

.checkbox-container input {
    margin-right: 10px;
    margin-top: 5px;
}

.checkbox-container label {
    font-size: 0.9rem;
}

/* ---------- 15. Legal Pages ---------- */
.legal-section {
    padding-top: 140px;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
}

.last-updated {
    text-align: right;
    margin-bottom: 30px;
    color: var(--dark-gray);
    font-size: 0.9rem;
}

.intro-text {
    margin-bottom: 40px;
}

.policy-section, .terms-section, .cookie-section {
    margin-bottom: 40px;
}

.policy-section h2, .terms-section h2, .cookie-section h2 {
    border-bottom: 1px solid var(--medium-gray);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.policy-section h3, .terms-section h3, .cookie-section h3 {
    margin-top: 25px;
    margin-bottom: 15px;
}

.policy-section ul, .terms-section ul, .cookie-section ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.policy-section ul li, .terms-section ul li, .cookie-section ul li {
    margin-bottom: 10px;
}

.contact-list {
    list-style-type: none !important;
    padding-left: 0 !important;
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.cookie-table th, .cookie-table td {
    padding: 12px 15px;
    text-align: left;
    border: 1px solid var(--medium-gray);
}

.cookie-table th {
    background-color: var(--light-gray);
    font-weight: 600;
}

/* ---------- 16. Success Page ---------- */
.success-message {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--header-height) - 400px);
    text-align: center;
    padding: 140px 0 80px;
}

.success-content {
    margin: 0 auto;
    max-width: 700px;
}

.success-icon {
    margin-bottom: 30px;
}

.success-content h1 {
    margin-bottom: 20px;
}

.success-content p {
    margin-bottom: 30px;
}

.success-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* ---------- 17. Buttons & CTAs ---------- */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
}

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

.primary-btn:hover {
    background-color: #a3c1b0;
    color: var(--white);
}

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

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    border: none;
    z-index: 99;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    background-color: #a3c1b0;
}

/* ---------- 18. Forms ---------- */
input, textarea, select, button {
    outline: none;
}

/* ---------- 19. Utility Classes ---------- */
.text-center {
    text-align: center;
}

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

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

.mt-0 {
    margin-top: 0;
}

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

.hidden {
    display: none;
}

.visible {
    display: block;
}

/* ---------- 20. Animations ---------- */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 1s ease;
}

.slide-in-up {
    animation: slideInUp 1s ease;
}

/* ---------- 21. Media Queries ---------- */
@media (max-width: 1200px) {
    .hero {
        padding: 140px 0 60px;
    }
    
    .hero-image {
        width: 45%;
    }
    
    .instructor-card {
        flex-direction: column;
    }
    
    .instructor-image, .instructor-info {
        width: 100%;
    }
}

@media (max-width: 992px) {
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    .hero {
        padding: 120px 0 50px;
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
        margin-bottom: 50px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image {
        position: relative;
        width: 100%;
        height: 400px;
        transform: none;
        top: auto;
    }
    
    .hero-image img {
        border-radius: var(--border-radius-md);
    }
    
    .about-content, .contact-content {
        flex-direction: column;
    }
    
    .about-image {
        order: -1;
    }
    
    .about-text, .about-image, .contact-info, .contact-form-container {
        width: 100%;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-logo, .footer-links, .footer-legal, .footer-newsletter, .footer-contact {
        width: 100%;
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .nav-list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: var(--shadow-md);
        padding: 20px;
    }
    
    .nav-list.active {
        display: flex;
    }
    
    .nav-list li {
        margin: 10px 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card {
        max-width: 100%;
    }
    
    .pricing-card.popular {
        transform: none;
    }
    
    .pricing-card.popular:hover {
        transform: translateY(-10px);
    }
    
    .single-classes-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-card {
        padding: 30px 20px;
    }
    
    .faq-question h3 {
        font-size: 1.1rem;
    }
    
    .success-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    #back-to-top {
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero {
        padding: 100px 0 40px;
    }
    
    .hero-image {
        height: 300px;
    }
    
    .logo img {
        height: 40px;
    }
    
    .about-features, .info-item {
        flex-direction: column;
    }
    
    .feature-icon, .info-icon {
        margin-bottom: 15px;
        margin-right: 0;
    }
    
    .feature, .info-item {
        text-align: center;
    }
    
    .instructor-image img {
        aspect-ratio: 16/9;
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }
    
    .author-image {
        margin-right: 0;
        margin-bottom: 15px;
    }
}