/* Base Styles */
:root {
    --primary: #4e7a51;
    --primary-light: #6a9c6d;
    --primary-dark: #3c5c3e;
    --secondary: #c27f4e;
    --light: #f5f0e6;
    --dark: #222;
    --text: #333;
    --gray: #777;
    --border: #ddd;
    --font-heading: 'Roboto Slab', serif;
    --font-body: 'Roboto', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    line-height: 1.6;
    background-color: var(--light);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
}

h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 80px;
    height: 3px;
    background-color: var(--primary);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

section {
    padding: 5rem 0;
    position: relative;
}

.section-description {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
    color: var(--gray);
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    border: 2px solid var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 200px;
    height: 200px;
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: rgba(78, 122, 81, 0.1);
    transition: height 0.3s ease;
    z-index: -1;
}

.btn-secondary:hover::before {
    height: 100%;
}

/* Header & Navigation */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary);
    font-size: 1.2rem;
}

.logo-svg {
    margin-right: 0.5rem;
}

.main-nav ul {
    display: flex;
}

.main-nav li {
    margin-left: 1.5rem;
    position: relative;
}

.main-nav a {
    color: var(--text);
    font-weight: 500;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.main-nav a[data-tooltip]:hover::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 1;
}

/* Hero Section */
.hero {
    background-color: var(--light);
    padding: 5rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero h1 {
    margin-bottom: 1rem;
    font-size: 3rem;
    line-height: 1.2;
    color: var(--dark);
}

.hero .subtitle {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-image {
    flex: 1;
    max-width: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.wave-divider.inverted {
    transform: rotate(180deg);
    bottom: auto;
    top: 0;
}

/* Testimonials Section */
.testimonials {
    background-color: var(--primary);
    color: white;
    padding: 5rem 0;
    position: relative;
}

.testimonials h2 {
    color: white;
    text-align: center;
}

.testimonials h2::after {
    background-color: white;
    left: 50%;
    transform: translateX(-50%);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--light);
    margin-bottom: 1rem;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 1rem;
    position: relative;
}

.testimonial-content p::before {
    content: '"';
    font-size: 3rem;
    position: absolute;
    left: -1rem;
    top: -1rem;
    opacity: 0.3;
}

.testimonial-position {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* About Section */
.about {
    background-color: white;
    position: relative;
}

.about .container {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.about-content {
    flex: 1;
    min-width: 300px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    background-color: var(--light);
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature-icon {
    margin-bottom: 1rem;
}

.feature h3 {
    margin-bottom: 0.5rem;
}

/* Programs Section */
.programs {
    background-color: var(--light);
    position: relative;
}

.programs-table-container {
    overflow-x: auto;
    margin-bottom: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.programs-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
}

.programs-table th,
.programs-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.programs-table th {
    background-color: var(--primary);
    color: white;
}

.programs-table tr:last-child td {
    border-bottom: none;
}

.programs-table tr:hover td {
    background-color: rgba(78, 122, 81, 0.05);
}

.program-cta {
    text-align: center;
    margin-top: 2rem;
}

.program-cta p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* Trainers Section */
.trainers {
    background-color: white;
    position: relative;
}

.trainers-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.trainer-card {
    background-color: var(--light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.trainer-card:hover {
    transform: translateY(-10px);
}

.trainer-image {
    height: 250px;
    overflow: hidden;
}

.trainer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.trainer-card:hover .trainer-image img {
    transform: scale(1.05);
}

.trainer-info {
    padding: 1.5rem;
}

.trainer-position {
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 1rem;
}

.trainer-qualifications {
    list-style: disc;
    padding-left: 1.2rem;
    margin-top: 1rem;
}

.trainer-qualifications li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* Nutrition Section */
.nutrition {
    background-color: var(--light);
    position: relative;
}

.nutrition-content {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: center;
}

.nutrition-text {
    flex: 1;
    min-width: 300px;
}

.nutrition-recommendation {
    display: flex;
    margin-bottom: 2rem;
    background-color: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.nutrition-recommendation:hover {
    transform: translateY(-5px);
}

.nutrition-icon {
    margin-right: 1rem;
    flex-shrink: 0;
}

.recommendation-text h4 {
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.nutrition-infographic {
    flex: 1;
    min-width: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.nutrition-note {
    text-align: center;
    font-size: 0.9rem;
    color: var(--gray);
    margin-top: 2rem;
}

/* Benefits Section */
.benefits {
    background-color: white;
    position: relative;
}

.benefits-infographic {
    max-width: 800px;
    margin: 0 auto 3rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.benefits-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.benefit-item {
    display: flex;
    background-color: var(--light);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
}

.benefit-icon {
    margin-right: 1rem;
    flex-shrink: 0;
}

.benefit-text h3 {
    margin-bottom: 0.5rem;
    color: var(--primary);
}

/* Locations Section */
.locations {
    background-color: var(--light);
    position: relative;
}

.map-container {
    max-width: 800px;
    margin: 0 auto 3rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.locations-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.location-item {
    display: flex;
    align-items: center;
    background-color: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.location-item:hover {
    transform: translateY(-5px);
}

.location-icon {
    margin-right: 1rem;
    flex-shrink: 0;
}

.location-text h3 {
    margin-bottom: 0.5rem;
    color: var(--primary);
}

/* Contact Section */
.contact {
    background-color: white;
    position: relative;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-item {
    display: flex;
    margin-bottom: 2rem;
    background-color: var(--light);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
}

.contact-icon {
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-text h3 {
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.contact-form-container {
    flex: 1;
    min-width: 300px;
}

.contact-form {
    background-color: var(--light);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border);
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
}

.form-checkbox {
    display: flex;
    align-items: center;
}

.form-checkbox input {
    width: auto;
    margin-right: 0.5rem;
}

.form-checkbox label {
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 4rem 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 2rem;
}

.footer-item {
    padding: 1rem;
}

.footer-item h3 {
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-item h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary);
}

.footer-item.logo-area {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
}

.footer-item.quick-links {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

.footer-item.footer-contact {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
}

.footer-item.legal-links {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}

.footer-item .logo {
    margin-bottom: 1rem;
}

.footer-item ul li {
    margin-bottom: 0.8rem;
}

.footer-item ul li a {
    color: var(--light);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-item ul li a:hover {
    opacity: 1;
    color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin-bottom: 0;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Responsive Styles */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content, .hero-image {
        max-width: 100%;
    }
    
    .about .container {
        flex-direction: column;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .footer-item {
        grid-column: 1 / 2 !important;
        grid-row: auto !important;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main-nav li {
        margin: 0 0.5rem;
    }
    
    .testimonials-grid,
    .about-features,
    .trainers-gallery,
    .benefits-list,
    .locations-list {
        grid-template-columns: 1fr;
    }
    
    .nutrition-content {
        flex-direction: column;
    }
    
    .contact-container {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    section {
        padding: 3rem 0;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
    }
}

@media (max-width: 375px) {
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .main-nav li {
        margin: 0;
    }
    
    .hero {
        padding: 3rem 0 2rem;
    }
    
    h1 {
        font-size: 1.6rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
}