/*
   Flexora - Premium Fitness Services
   Luxury Design Style CSS
*/

/* ===== VARIABLES ===== */
:root {
    /* Colors */
    --primary: #c9a86a;         /* Gold */
    --primary-dark: #a88a50;    /* Darker gold */
    --secondary: #212121;       /* Dark gray almost black */
    --light: #f8f8f8;           /* Off-white */
    --dark: #0a0a0a;            /* Deep black */
    --gray: #707070;            /* Medium gray */
    --gray-light: #e0e0e0;      /* Light gray */

    /* Fonts */
    --font-primary: 'Playfair Display', serif;
    --font-secondary: 'Montserrat', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Border radius */
    --radius-sm: 3px;
    --radius-md: 5px;
    --radius-lg: 10px;

    /* Shadows */
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%; /* 10px for easier rem calculations */
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--secondary);
    background-color: var(--light);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--secondary);
}

h1 {
    font-size: 4.8rem;
    letter-spacing: 0.5px;
}

h2 {
    font-size: 3.6rem;
    letter-spacing: 0.3px;
}

h3 {
    font-size: 2.4rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

section {
    padding: var(--spacing-xl) 0;
}

.divider {
    width: 80px;
    height: 3px;
    background-color: var(--primary);
    margin: 0 auto var(--spacing-md);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    background-color: var(--primary);
    color: var(--light);
    font-family: var(--font-secondary);
    font-size: 1.6rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--primary-dark);
    color: var(--light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--light);
}

.btn-text {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.4rem;
    display: inline-flex;
    align-items: center;
    position: relative;
}

.btn-text:after {
    content: "";
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.btn-text:hover:after {
    transform: scaleX(1);
    transform-origin: left;
}

/* ===== HEADER ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: rgba(10, 10, 10, 0.9);
    padding: 2rem 0;
    transition: all 0.3s ease;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 2.8rem;
    color: var(--primary);
    margin: 0;
    letter-spacing: 2px;
}

nav ul {
    display: flex;
    gap: var(--spacing-md);
}

nav ul li a {
    color: var(--light);
    font-size: 1.4rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

nav ul li a:after {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary);
}

nav ul li a:hover:after {
    transform: scaleX(1);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    transition: all 0.3s ease;
}

/* ===== HERO SECTION ===== */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(10, 10, 10, 0.7), rgba(10, 10, 10, 0.7)), url('https://images.unsplash.com/photo-1534438327276-14e5300c3a48?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') no-repeat center/cover;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--light);
    padding-top: 0;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 6rem;
    color: var(--light);
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.hero h2 {
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 2rem;
    font-weight: 500;
}

.hero p {
    font-size: 1.8rem;
    margin-bottom: 3rem;
    font-weight: 300;
}

/* ===== ABOUT SECTION ===== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.about-image img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.about-text h3 {
    color: var(--primary);
    margin-bottom: var(--spacing-sm);
}

/* ===== FEATURES SECTION ===== */
.features {
    background-color: var(--secondary);
    color: var(--light);
}

.features .section-header h2 {
    color: var(--light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.feature {
    text-align: center;
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    background-color: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto var(--spacing-md);
    overflow: hidden;
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature h3 {
    color: var(--primary);
    margin-bottom: var(--spacing-sm);
}

/* ===== STATS SECTION ===== */
.stats {
    background: linear-gradient(rgba(10, 10, 10, 0.8), rgba(10, 10, 10, 0.8)), url('https://images.unsplash.com/photo-1534367610401-9f5ed68180aa?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') no-repeat center/cover;
    color: var(--light);
    text-align: center;
    padding: var(--spacing-xl) 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
}

.stat h3 {
    font-size: 4.8rem;
    color: var(--primary);
    margin-bottom: var(--spacing-xs);
}

.stat p {
    font-size: 1.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== GALLERY SECTION ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-sm);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
    background-color: var(--light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.testimonial {
    background-color: white;
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial-text {
    margin-bottom: var(--spacing-md);
    position: relative;
}

.testimonial-text:before {
    content: '"';
    font-family: var(--font-primary);
    font-size: 5rem;
    color: var(--primary);
    opacity: 0.3;
    position: absolute;
    top: -2.5rem;
    left: -1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author h4 {
    margin: 0;
    font-size: 1.8rem;
}

.testimonial-author p {
    margin: 0;
    color: var(--gray);
    font-size: 1.4rem;
}

/* ===== TEAM SECTION ===== */
.team {
    background-color: var(--secondary);
    color: var(--light);
}

.team .section-header h2 {
    color: var(--light);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
}

.team-member {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-align: center;
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.team-member img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.team-member h3 {
    color: var(--primary);
    margin: var(--spacing-sm) 0 0;
    padding: 0 var(--spacing-sm);
}

.team-member p {
    color: var(--gray-light);
    margin: 0 0 var(--spacing-sm);
    font-size: 1.4rem;
}

/* ===== CASE STUDIES SECTION ===== */
.case-studies-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

.case-study {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-md);
    background-color: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.case-study-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-study-content {
    padding: var(--spacing-md);
}

.case-study-content h3 {
    color: var(--primary);
}

/* ===== PRICING SECTION ===== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.pricing-plan {
    background-color: white;
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    text-align: center;
}

.pricing-plan.featured {
    transform: scale(1.05);
    border: 2px solid var(--primary);
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-lg);
}

.pricing-plan:hover {
    transform: translateY(-10px);
}

.pricing-plan.featured:hover {
    transform: translateY(-10px) scale(1.05);
}

.plan-header {
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--gray-light);
}

.plan-header h3 {
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: var(--spacing-sm);
}

.price {
    font-family: var(--font-primary);
}

.price .currency {
    font-size: 2.4rem;
    vertical-align: top;
}

.price .amount {
    font-size: 5.2rem;
    font-weight: 700;
    line-height: 1;
}

.price .period {
    font-size: 1.6rem;
    color: var(--gray);
}

.plan-features {
    margin-bottom: var(--spacing-md);
}

.plan-features ul li {
    padding: var(--spacing-xs) 0;
    border-bottom: 1px solid var(--gray-light);
}

.plan-features ul li:last-child {
    border-bottom: none;
}

/* ===== FAQ SECTION ===== */
.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: var(--spacing-sm);
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: white;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    padding: var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.8rem;
}

.faq-toggle {
    font-size: 2.4rem;
    color: var(--primary);
}

.faq-answer {
    padding: 0 var(--spacing-md);
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 var(--spacing-md) var(--spacing-md);
    max-height: 500px;
}

/* ===== CONTACT SECTION ===== */
.contact {
    background-color: var(--secondary);
    color: var(--light);
}

.contact .section-header h2 {
    color: var(--light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

.contact-form {
    background-color: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    color: var(--secondary);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.2rem;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-sm);
    font-family: var(--font-secondary);
    font-size: 1.6rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(201, 168, 106, 0.2);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-info {
    color: var(--light);
    display: flex;
    flex-direction: column;
}

.info-item {
    margin-bottom: var(--spacing-md);
}

.info-item h3 {
    color: var(--primary);
    margin-bottom: var(--spacing-xs);
    font-size: 2rem;
}

.social-icons {
    display: flex;
    gap: var(--spacing-sm);
}

.social-icon {
    color: var(--light);
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    color: var(--primary);
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--dark);
    color: var(--light);
    padding: var(--spacing-lg) 0 var(--spacing-sm);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.footer-logo h2 {
    color: var(--primary);
    margin-bottom: var(--spacing-xs);
}

.footer-logo p {
    font-size: 1.4rem;
    opacity: 0.8;
}

.footer-nav h3,
.footer-legal h3,
.footer-contact h3 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: var(--spacing-sm);
}

.footer-nav ul li,
.footer-legal ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-nav ul li a,
.footer-legal ul li a {
    color: var(--light);
    opacity: 0.8;
    font-size: 1.4rem;
}

.footer-nav ul li a:hover,
.footer-legal ul li a:hover {
    color: var(--primary);
    opacity: 1;
}

.footer-contact p {
    font-size: 1.4rem;
    opacity: 0.8;
    margin-bottom: var(--spacing-xs);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 1.4rem;
    opacity: 0.7;
    margin: 0;
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 1024px) {
    html {
        font-size: 58%;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    html {
        font-size: 56%;
    }

    .mobile-menu-btn {
        display: flex;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--secondary);
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    nav.active {
        max-height: 300px;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
    }

    nav ul li {
        width: 100%;
    }

    nav ul li a {
        display: block;
        padding: 1.5rem var(--spacing-md);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .about-content,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .pricing-plan.featured {
        transform: scale(1);
    }

    .pricing-plan.featured:hover {
        transform: translateY(-10px);
    }

    .case-study {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        row-gap: var(--spacing-lg);
    }
}

@media (max-width: 576px) {
    html {
        font-size: 54%;
    }

    .hero h1 {
        font-size: 4rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.privacy-content {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-md);
    background-color: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.privacy-content h2 {
    color: var(--primary);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
}

.privacy-content h3 {
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.privacy-content ul, .privacy-content ol {
    margin-left: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.privacy-content ul li, .privacy-content ol li {
    margin-bottom: var(--spacing-xs);
    list-style-type: disc;
}

.privacy-content ol li {
    list-style-type: decimal;
}

.privacy-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--spacing-md);
}

.privacy-content table th, .privacy-content table td {
    border: 1px solid var(--gray-light);
    padding: var(--spacing-sm);
    text-align: left;
}

.privacy-content table th {
    background-color: var(--gray-light);
}

.privacy-hero {
    padding-top: 120px;
    padding-bottom: var(--spacing-lg);
    background-color: var(--secondary);
    color: var(--light);
    text-align: center;
}

.last-updated {
    font-style: italic;
    color: var(--gray);
    margin-bottom: var(--spacing-md);
}

.main-title {
    text-align: center;
}

.cookie-content {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-md);
    background-color: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.cookie-content h2 {
    color: var(--primary);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
}

.cookie-content h3 {
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.cookie-content ul, .cookie-content ol {
    margin-left: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.cookie-content ul li, .cookie-content ol li {
    margin-bottom: var(--spacing-xs);
    list-style-type: disc;
}

.cookie-content ol li {
    list-style-type: decimal;
}

.cookie-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--spacing-md);
}

.cookie-content table th, .cookie-content table td {
    border: 1px solid var(--gray-light);
    padding: var(--spacing-sm);
    text-align: left;
}

.cookie-content table th {
    background-color: var(--gray-light);
}

.cookie-hero {
    padding-top: 120px;
    padding-bottom: var(--spacing-lg);
    background-color: var(--secondary);
    color: var(--light);
    text-align: center;
}

.last-updated {
    font-style: italic;
    color: var(--gray);
    margin-bottom: var(--spacing-md);
}

.success-container {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-lg);
    background-color: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.success-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto var(--spacing-md);
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
}

.success-message h2 {
    color: var(--primary);
    margin-bottom: var(--spacing-sm);
}

.success-message p {
    margin-bottom: var(--spacing-md);
    font-size: 1.8rem;
}

.success-cta {
    margin-top: var(--spacing-lg);
}

.success-cta .btn {
    margin: 0 var(--spacing-xs);
}

.success-hero {
    padding-top: 120px;
    padding-bottom: var(--spacing-lg);
    background-color: var(--secondary);
    color: var(--light);
    text-align: center;
}

.contact-info {
    display: flex;
    justify-content: center;
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.contact-info-item {
    margin: 0 var(--spacing-md);
    text-align: center;
}

.contact-info-item h3 {
    color: var(--primary);
    margin-bottom: var(--spacing-xs);
    font-size: 1.8rem;
}

.contact-info-item p {
    font-size: 1.6rem;
    margin-bottom: var(--spacing-xs);
}

@media (max-width: 768px) {
    .contact-info {
        flex-direction: column;
    }

    .contact-info-item {
        margin: var(--spacing-sm) 0;
    }
}