/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2C3E50;
    --secondary-color: #E74C3C;
    --accent-color: #3498DB;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --max-width: 1200px;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* Header and Navigation */
.main-header {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--secondary-color);
}

.cta-button {
    background-color: var(--secondary-color);
    color: var(--white) !important;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #c0392b;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: 60px;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-buttons {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.primary-button, .secondary-button {
    padding: 1rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease;
}

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

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

.primary-button:hover, .secondary-button:hover {
    transform: translateY(-2px);
}

/* Features Section */
.features {
    max-width: var(--max-width);
    margin: 4rem auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    background-color: var(--light-gray);
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Slideshow Section */
.slideshow-section {
    background-color: var(--white);
    padding: 4rem 1rem;
}

.slideshow-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.slideshow-container h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 2rem;
}

.slideshow-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.slideshow {
    position: relative;
    width: 100%;
    height: 700px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    background-color: #2C3E50;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #2C3E50;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.slideshow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.slideshow-btn:hover {
    background-color: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.slideshow-btn.prev-btn {
    left: 20px;
}

.slideshow-btn.next-btn {
    right: 20px;
}

.slideshow-btn i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.slideshow-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    pointer-events: auto;
}

.slideshow-play-pause {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary-color);
    font-size: 1.2rem;
    padding: 0.5rem;
    transition: transform 0.3s ease;
}

.slideshow-play-pause:hover {
    transform: scale(1.1);
}

.slideshow-indicators {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    max-width: 400px;
    justify-content: center;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(44, 62, 80, 0.4);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.indicator:hover {
    transform: scale(1.2);
}

.indicator.active {
    background-color: var(--primary-color);
    transform: scale(1.3);
}

/* Upcoming Events Section */
.upcoming-events {
    background-color: var(--light-gray);
    padding: 4rem 1rem;
}

.upcoming-events h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.events-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

/* Newsletter Section */
.newsletter {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 4rem 1rem;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem;
    border: none;
    border-radius: 4px;
}

.newsletter-form button {
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
    background-color: #c0392b;
}

/* Footer */
.main-footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 4rem 1rem 1rem;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--secondary-color);
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: 0.3s;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

/* Welcome Section (Home Page) */
.welcome-section {
    max-width: var(--max-width);
    margin: 4rem auto;
    padding: 3rem 1rem;
    text-align: center;
    background-color: var(--light-gray);
    border-radius: 8px;
}

.welcome-content h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.welcome-content p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.welcome-content .emphasis {
    color: var(--secondary-color);
    font-size: 1.15rem;
    margin: 1.5rem 0;
}

.welcome-content a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.welcome-content a:hover {
    text-decoration: underline;
}

/* Page Hero Sections */
.page-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    padding: 4rem 1rem;
    text-align: center;
    color: var(--white);
    margin-top: 60px;
}

.page-hero-content h1 {
    font-size: 2.5rem;
    margin: 0;
}

/* Content Container */
.content-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3rem 1rem;
}

/* Coach Bio Section */
.coach-bio {
    background-color: var(--white);
}

.coach-bio h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

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

.bio-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.bio-content h4 {
    color: var(--secondary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.bio-content ul {
    list-style: disc;
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.bio-content ul li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Membership Sections */
.membership-intro {
    background-color: var(--light-gray);
    padding: 2rem 1rem;
    text-align: center;
}

.free-week-callout {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.membership-details {
    background-color: var(--white);
}

.membership-details h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 2rem;
}

.membership-plan {
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 3rem;
}

.membership-plan h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.membership-plan ul {
    list-style: disc;
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.membership-plan ul li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.pricing-tiers {
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: var(--white);
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
}

.pricing-tiers p {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.prorated-note {
    color: var(--accent-color);
    margin: 1.5rem 0;
}

.specialized-training {
    padding: 2rem;
    background-color: var(--light-gray);
    border-radius: 8px;
}

.specialized-training h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.specialized-training p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.specialized-training a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.specialized-training a:hover {
    text-decoration: underline;
}

/* Race Results Section */
.race-results-section {
    background-color: var(--white);
}

.years-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.year-item {
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.year-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.year-item h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.year-item p {
    color: var(--text-color);
}

/* Sponsors Section */
.sponsors-section {
    background-color: var(--white);
    text-align: center;
}

.sponsor-intro {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.sponsor-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
    margin-top: 2rem;
}

.sponsor-logo {
    max-width: 300px;
    height: auto;
    transition: transform 0.3s ease;
}

.sponsor-logo:hover {
    transform: scale(1.05);
}

/* Calendar Section */
.calendar-section {
    background-color: var(--white);
    text-align: center;
}

.calendar-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.no-events {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.calendar-section a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.calendar-section a:hover {
    text-decoration: underline;
}

/* Workout Items */
.workouts-list {
    text-align: left;
}

.workout-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid #ddd;
}

.workout-item:last-child {
    border-bottom: none;
}

.workout-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.workout-item p {
    margin-bottom: 0.5rem;
}

.location-address {
    color: #666;
    font-size: 0.9rem;
}

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

.contact-section > .content-container > p {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.contact-info {
    max-width: 600px;
    margin: 0 auto 3rem;
    padding: 2rem;
    background-color: var(--light-gray);
    border-radius: 8px;
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.contact-info p {
    margin-bottom: 0.8rem;
    line-height: 1.8;
}

.contact-info a {
    color: var(--accent-color);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.contact-callout {
    text-align: center;
    padding: 2rem;
    background-color: var(--secondary-color);
    color: var(--white);
    border-radius: 8px;
    font-size: 1.2rem;
}

/* Contact Form Styles */
.contact-form-container {
    max-width: 600px;
    margin: 0 auto 3rem;
    padding: 2rem;
    background-color: var(--light-gray);
    border-radius: 8px;
}

.contact-form-container h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.8rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.required {
    color: var(--secondary-color);
}

.form-group input,
.form-group textarea {
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

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

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

.error-message {
    color: var(--secondary-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.error-message.show {
    display: block;
}

.form-group input.error,
.form-group textarea.error {
    border-color: var(--secondary-color);
}

.form-messages {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    display: none;
}

.form-messages.show {
    display: block;
}

.form-messages.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-messages.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.submit-button {
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    align-self: center;
    min-width: 150px;
}

.submit-button:hover:not(:disabled) {
    background-color: #c0392b;
    transform: translateY(-2px);
}

.submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.spinner {
    display: inline-block;
}

.spinner i {
    margin-right: 0.5rem;
}

/* reCAPTCHA styling */
.g-recaptcha {
    margin: 1rem 0;
    display: flex;
    justify-content: center;
}

@media (max-width: 768px) {
    .g-recaptcha {
        transform: scale(0.85);
        transform-origin: 0 0;
    }
}

/* Responsive adjustments for new sections */
@media (max-width: 768px) {
    .page-hero-content h1 {
        font-size: 2rem;
    }
    
    .welcome-content h2 {
        font-size: 1.5rem;
    }
    
    .coach-bio h2,
    .membership-details h2 {
        font-size: 1.8rem;
    }
    
    .years-list {
        grid-template-columns: 1fr;
    }
    
    .sponsor-logo {
        max-width: 200px;
    }

    .slideshow {
        height: 500px;
    }

    .slideshow-btn {
        width: 40px;
        height: 40px;
    }

    .slideshow-btn.prev-btn {
        left: 10px;
    }

    .slideshow-btn.next-btn {
        right: 10px;
    }

    .slideshow-indicators {
        max-width: 300px;
        gap: 0.3rem;
    }

    .indicator {
        width: 6px;
        height: 6px;
    }

    .slideshow-container h2 {
        font-size: 1.5rem;
    }
    
    .contact-form-container {
        padding: 1.5rem;
    }
    
    .contact-form-container h3 {
        font-size: 1.5rem;
    }
}

/* Coach Section */
.coach-section {
    background-color: var(--white);
}

.coach-profile {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
}

.coach-image {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.coach-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.coach-bio h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.coach-bio p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.coach-bio ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.coach-bio li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.coach-contact {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Race Results Gallery */
.results-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.result-card {
    background-color: var(--light-gray);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

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

.result-info {
    padding: 1.5rem;
}

.result-info h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.result-info p {
    color: var(--text-color);
    font-size: 0.95rem;
}

.results-cta {
    text-align: center;
    margin-top: 3rem;
    padding: 3rem;
    background-color: var(--light-gray);
    border-radius: 8px;
}

.results-cta h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.results-cta p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.intro-text {
    font-size: 1.1rem;
    text-align: center;
    color: var(--text-color);
    margin-bottom: 2rem;
}

/* Race Results Tabs */
.race-results-tabs {
    margin: 3rem 0;
}

.tab-navigation {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--light-gray);
    padding-bottom: 1rem;
}

.tab-button {
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid var(--light-gray);
    padding: 0.8rem 2rem;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
}

.tab-button:hover {
    background-color: var(--light-gray);
    transform: translateY(-2px);
}

.tab-button.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.tab-content {
    display: none;
    padding: 2rem;
    background-color: var(--light-gray);
    border-radius: 8px;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

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

.tab-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
    font-size: 0.95rem;
}

.tab-content strong {
    color: var(--primary-color);
    font-weight: 700;
    display: block;
    margin-bottom: 0.3rem;
    font-size: 1.05rem;
}

/* Responsive adjustments for new sections */
@media (max-width: 768px) {
    .coach-profile {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .coach-image img {
        max-width: 100%;
    }
    
    .coach-contact {
        flex-direction: column;
    }
    
    .results-gallery {
        grid-template-columns: 1fr;
    }
    
    .result-card img {
        height: 300px;
    }
    
    .tab-button {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .tab-content {
        padding: 1.5rem;
    }
    
    .tab-content p {
        font-size: 0.9rem;
    }
} 