/* Global Styles */
:root {
    --primary: #a67c52;
    --primary-light: #d4b594;
    --primary-dark: #7d5a3b;
    --secondary: #2c3e50;
    --background: #f8f5f0;
    --text: #333;
    --text-light: #666;
    --white: #ffffff;
    --black: #1a1a1a;
    --gray: #f1ece4;
    --gray-dark: #d1c9be;
    --shadow: rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease-in-out;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--background);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 2.8rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 1.5rem;
}

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

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

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

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

.section-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
}

section {
    padding: 100px 0;
    position: relative;
}

section:nth-child(even) {
    background-color: var(--white);
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

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

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

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

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

.btn-nav {
    padding: 8px 20px;
    border-radius: 25px;
    background-color: var(--primary);
    color: white !important;
}

.btn-nav:hover {
    background-color: var(--primary-dark);
    color: white !important;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 20px 0;
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.97);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--primary);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--secondary);
    font-weight: 400;
    position: relative;
}

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

nav ul li a:hover:after,
nav ul li a:focus:after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 700px;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://cdn.pixabay.com/photo/2017/07/31/20/45/pilates-2560934_1280.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    padding: 0 30px;
    color: var(--white);
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-in-out;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    animation: fadeInUp 1s ease-in-out 0.2s;
    animation-fill-mode: both;
}

.hero .btn-primary {
    animation: fadeInUp 1s ease-in-out 0.4s;
    animation-fill-mode: both;
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
    position: relative;
    height: 500px;
    background: url('https://cdn.pixabay.com/photo/2017/06/30/21/02/pilates-2459611_1280.jpg') no-repeat center center;
    background-size: cover;
    border-radius: 10px;
}

.image-frame {
    position: absolute;
    top: 20px;
    right: -20px;
    bottom: -20px;
    left: 20px;
    border: 3px solid var(--primary);
    border-radius: 10px;
    z-index: -1;
}

.about-text {
    flex: 1;
}

.about-text .subtitle {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.stats {
    display: flex;
    justify-content: space-between;
    margin-top: 2.5rem;
}

.stat {
    text-align: center;
}

.number {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary);
}

.label {
    font-size: 0.9rem;
    color: var(--text-light);
}

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

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

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

.icon-wrapper {
    width: 70px;
    height: 70px;
    background-color: var(--gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.icon-wrapper i {
    font-size: 1.8rem;
    color: var(--primary);
}

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

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

.class-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow);
    transition: var(--transition);
}

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

.class-image {
    height: 220px;
    background-size: cover;
    background-position: center;
}

.class-1 {
    background-image: url('https://cdn.pixabay.com/photo/2017/08/07/14/10/pilates-2604341_1280.jpg');
}

.class-2 {
    background-image: url('https://cdn.pixabay.com/photo/2017/03/15/23/29/pilates-2147301_1280.jpg');
}

.class-3 {
    background-image: url('https://cdn.pixabay.com/photo/2017/04/27/08/28/sport-2264825_1280.jpg');
}

.class-4 {
    background-image: url('https://cdn.pixabay.com/photo/2017/08/02/20/24/woman-2573507_1280.jpg');
}

.class-content {
    padding: 25px;
}

.class-content h3 {
    margin-bottom: 10px;
}

.level {
    color: var(--primary);
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: block;
}

.class-content p {
    margin-bottom: 20px;
}

/* Schedule Section */
.schedule-container {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 10px 30px var(--shadow);
    overflow: hidden;
}

.schedule-row {
    display: grid;
    grid-template-columns: 1fr repeat(4, 1.5fr);
    border-bottom: 1px solid var(--gray);
}

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

.schedule-row.header {
    background-color: var(--primary);
    color: var(--white);
    font-weight: 500;
}

.schedule-row > div {
    padding: 15px;
    display: flex;
    align-items: center;
}

.day {
    font-weight: 500;
}

.class-name {
    color: var(--primary);
    font-weight: 500;
    margin-right: 8px;
}

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

.pricing-card {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 10px 30px var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

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

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

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

.pricing-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 500;
}

.pricing-header {
    padding: 30px;
    text-align: center;
    border-bottom: 1px solid var(--gray);
}

.price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 500;
    color: var(--primary);
    margin: 10px 0 0;
}

.period {
    color: var(--text-light);
    font-size: 0.9rem;
}

.pricing-body {
    padding: 30px;
}

.pricing-body ul {
    list-style: none;
    margin-bottom: 25px;
}

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

.pricing-body ul li i {
    color: var(--primary);
    margin-right: 10px;
}

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

.team-member {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-10px);
}

.member-image {
    height: 300px;
    background-size: cover;
    background-position: center top;
}

.member-1 {
    background-image: url('https://cdn.pixabay.com/photo/2017/08/06/20/11/woman-2595831_1280.jpg');
}

.member-2 {
    background-image: url('https://cdn.pixabay.com/photo/2017/11/02/14/27/model-2911332_1280.jpg');
}

.member-3 {
    background-image: url('https://cdn.pixabay.com/photo/2017/08/06/12/52/woman-2592247_1280.jpg');
}

.team-member h3 {
    margin-top: 25px;
    margin-bottom: 5px;
}

.position {
    color: var(--primary);
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: block;
}

.team-member p {
    padding: 0 20px 25px;
}

/* Testimonials Section */
.testimonials {
    background-color: var(--secondary);
    color: var(--white);
}

.testimonials h2 {
    color: var(--white);
    text-align: center;
    margin-bottom: 3rem;
}

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

.testimonial {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    position: relative;
}

.quote {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 15px;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
}

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

.testimonial-author .name {
    font-weight: 500;
    margin-bottom: 0;
}

.testimonial-author .title {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.contact-info {
    padding-right: 20px;
}

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

.info-item i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-right: 15px;
    margin-top: 5px;
}

.info-item h3 {
    margin-bottom: 5px;
}

.info-item p {
    margin-bottom: 0;
}

.opening-hours {
    margin-bottom: 30px;
}

.opening-hours h3 {
    margin-bottom: 15px;
}

.opening-hours ul {
    list-style: none;
}

.opening-hours li {
    margin-bottom: 10px;
}

.opening-hours li span {
    font-weight: 500;
    margin-right: 10px;
}

.social-links {
    display: flex;
    margin-top: 30px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: var(--gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary);
    color: var(--white);
}

.social-links i {
    font-size: 1.2rem;
}

/* Form Styles */
.contact-form {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px var(--shadow);
}

.contact-form h3 {
    margin-bottom: 30px;
    text-align: center;
}

.form-group {
    position: relative;
    margin-bottom: 25px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 0;
    border: none;
    border-bottom: 1px solid var(--gray-dark);
    background-color: transparent;
    outline: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-group label {
    position: absolute;
    top: 10px;
    left: 0;
    pointer-events: none;
    transition: var(--transition);
    color: var(--text-light);
}

.form-group.focused label,
.form-group input:focus ~ label,
.form-group textarea:focus ~ label,
.form-group select:focus ~ label {
    top: -15px;
    font-size: 0.8rem;
    color: var(--primary);
}

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

.form-group.checkbox input {
    width: auto;
    margin-right: 10px;
    margin-top: 5px;
}

.form-group.checkbox label {
    position: relative;
    top: 0;
    font-size: 0.9rem;
}

.contact-form button {
    width: 100%;
}

/* Map */
.map-container {
    height: 450px;
    overflow: hidden;
}

/* Footer */
footer {
    background-color: var(--secondary);
    color: var(--white);
    padding: 80px 0 20px;
}

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

.footer-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.footer-column h4 {
    color: var(--white);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-column ul {
    list-style: none;
}

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

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

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

.footer-column p {
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
}

.footer-column p i {
    color: var(--primary);
    margin-right: 10px;
    width: 20px;
}

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

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

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

.back-to-top:hover {
    background-color: var(--primary-dark);
}

.back-to-top i {
    font-size: 1.2rem;
}

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

/* Media Queries */
@media (max-width: 1200px) {
    h1 {
        font-size: 3rem;
    }
    h2 {
        font-size: A2.5rem;
    }
}

@media (max-width: 991px) {
    section {
        padding: 80px 0;
    }
    .about-content {
        flex-direction: column;
    }
    .about-image {
        width: 100%;
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    h2 {
        font-size: 2rem;
    }
    .hero {
        min-height: 600px;
    }
    .header-container {
        flex-direction: column;
    }
    nav ul {
        margin-top: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    nav ul li {
        margin: 5px 10px;
    }
    .schedule-row {
        grid-template-columns: 1fr;
    }
    .schedule-row > div {
        border-bottom: 1px solid var(--gray);
    }
    .schedule-row > div:last-child {
        border-bottom: none;
    }
    .schedule-row.header {
        display: none;
    }
    .day {
        background-color: var(--primary);
        color: var(--white);
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    .stats {
        flex-direction: column;
        gap: 20px;
    }
}
