/* 
* WavelisTrain - Home Fitness Website
* Main Stylesheet
*/

/* ---------- GLOBAL STYLES ---------- */
:root {
    --primary: #0E6BA8;
    --primary-light: #2a8dd1;
    --primary-dark: #0a5183;
    --accent: #F4A261;
    --accent-light: #f7bf8e;
    --accent-dark: #e48335;
    --background: #F0F9FF;
    --white: #FFFFFF;
    --text: #2A2A2A;
    --text-light: #5A5A5A;
    --text-xlight: #8A8A8A;
    --border: #E0E0E0;
    --success: #4CAF50;
    --error: #F44336;
    --gray-100: #F5F5F5;
    --gray-200: #EEEEEE;
    --gray-300: #E0E0E0;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-xxl: 32px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
    position: relative;
}

.section-alternate {
    background-color: var(--background);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--text);
}

h1 {
    font-size: 3rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 16px;
}

.section-heading {
    text-align: center;
    margin-bottom: 50px;
}

.section-heading h2 {
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-heading h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

.section-heading p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(14, 107, 168, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(14, 107, 168, 0.4);
}

.btn-secondary {
    background-color: var(--accent);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(244, 162, 97, 0.3);
}

.btn-secondary:hover {
    background-color: var(--accent-dark);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(244, 162, 97, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

/* ---------- HEADER & NAVIGATION ---------- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    padding: 15px 0;
    transition: var(--transition);
}

header.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-md);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-height: 50px;
    border-radius: 0;
}

nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-menu a {
    color: var(--text);
    font-weight: 500;
    position: relative;
}

.nav-menu a:not(.btn)::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-menu a:not(.btn):hover {
    color: var(--primary);
}

.nav-menu a:not(.btn):hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text);
    position: absolute;
    left: 0;
    transition: var(--transition);
}

.mobile-menu-btn span:first-child {
    top: 0;
}

.mobile-menu-btn span:nth-child(2) {
    top: 9px;
}

.mobile-menu-btn span:last-child {
    bottom: 0;
}

.mobile-menu-btn.active span:first-child {
    transform: rotate(45deg);
    top: 9px;
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:last-child {
    transform: rotate(-45deg);
    bottom: 9px;
}

/* ---------- HERO SECTION ---------- */
#hero {
    padding: 160px 0 100px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e6f4ff 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 1;
    max-width: 550px;
}

.hero-text h1 {
    margin-bottom: 20px;
    position: relative;
}

.hero-text h1::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.hero-image {
    flex: 1;
    position: relative;
}

.hero-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.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: 100px;
}

/* ---------- BENEFITS SECTION ---------- */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.benefit-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--background);
    border-radius: 50%;
}

.benefit-card h3 {
    margin-bottom: 15px;
    color: var(--primary);
}

/* ---------- HOW IT WORKS SECTION ---------- */
.steps-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto 60px;
}

.step-line {
    position: absolute;
    top: 40px;
    left: 40px;
    width: 1px;
    height: calc(100% - 80px);
    background-color: var(--primary);
}

.step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 50px;
    position: relative;
}

.step:last-child {
    margin-bottom: 0;
}

.step-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin-right: 30px;
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 2;
}

.step-content {
    flex: 1;
    padding-top: 10px;
}

.step-content h3 {
    margin-bottom: 10px;
    color: var(--primary);
}

.how-it-works-image {
    text-align: center;
    margin-top: 40px;
}

.how-it-works-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    margin: 0 auto;
}

/* ---------- PROGRAMS SECTION ---------- */
.programs-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.program-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    width: 100%;
    max-width: 350px;
    transition: var(--transition);
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.program-image {
    height: 200px;
    overflow: hidden;
}

.program-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.program-card:hover .program-image img {
    transform: scale(1.05);
}

.program-content {
    padding: 25px;
    text-align: center;
}

.program-time {
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 15px;
    display: block;
}

.program-content p {
    margin-bottom: 20px;
}

/* ---------- WHO IS IT FOR SECTION ---------- */
.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.audience-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.audience-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.audience-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.audience-card h3 {
    padding: 20px 20px 10px;
    color: var(--primary);
}

.audience-card p {
    padding: 0 20px 20px;
}

/* ---------- REVIEWS SECTION ---------- */
.reviews-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.review-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
    width: 100%;
    max-width: 500px;
    transition: var(--transition);
}

.review-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.review-profile {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.review-profile img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-right: 20px;
    object-fit: cover;
}

.stars {
    color: var(--accent);
    font-size: 1.2rem;
    margin-top: 5px;
}

.review-text {
    font-style: italic;
    position: relative;
    padding: 0 20px;
}

.review-text::before,
.review-text::after {
    content: "";
    font-family: Georgia, serif;
    font-size: 4rem;
    position: absolute;
    color: var(--primary-light);
    opacity: 0.2;
}

.review-text::before {
    top: -20px;
    left: -10px;
}

.review-text::after {
    content: "";
    bottom: -60px;
    right: -10px;
}

/* ---------- FAQ SECTION ---------- */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.faq-question h3 {
    margin: 0;
    font-size: 1.2rem;
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--primary);
    transition: var(--transition);
}

.faq-question.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 500px;
}

/* ---------- PRICING SECTION ---------- */
.pricing-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 40px;
}

.pricing-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    width: 100%;
    max-width: 350px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    transition: var(--transition);
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    transform: scale(1.05);
    border: 2px solid var(--primary);
    z-index: 2;
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.pricing-badge {
    position: absolute;
    top: -15px;
    right: 30px;
    background-color: var(--accent);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.9rem;
}

.pricing-header {
    margin-bottom: 30px;
}

.pricing-header h3 {
    margin-bottom: 15px;
    color: var(--primary);
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}

.period {
    font-size: 1rem;
    color: var(--text-light);
    margin-top: 5px;
}

.pricing-features {
    margin-bottom: 30px;
}

.pricing-features ul {
    text-align: left;
    padding-left: 20px;
}

.pricing-features li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.pricing-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* ---------- CONTACT SECTION ---------- */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 40px;
}

.contact-form, 
.contact-map {
    flex: 1;
    min-width: 300px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(14, 107, 168, 0.2);
}

.checkbox {
    display: flex;
    align-items: flex-start;
}

.checkbox input {
    width: auto;
    margin-right: 10px;
    margin-top: 5px;
}

.checkbox label {
    margin-bottom: 0;
    font-weight: 400;
}

.terms a {
    text-decoration: underline;
}

.contact-map h3 {
    margin-bottom: 20px;
}

.map-container {
    height: 300px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 10px;
}

/* ---------- ABOUT US SECTION ---------- */
.about-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.about-image, 
.about-content {
    flex: 1;
    min-width: 300px;
}

.about-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.about-content h2 {
    margin-bottom: 30px;
    position: relative;
}

.about-content h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

/* ---------- NEWSLETTER SECTION ---------- */
#newsletter {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 60px 0;
}

.newsletter-container {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.newsletter-container h2 {
    color: var(--white);
    margin-bottom: 15px;
}

.newsletter-container p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto 20px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 30px 0 0 30px;
    font-size: 1rem;
}

.newsletter-form input:focus {
    outline: none;
}

.newsletter-form button {
    border-radius: 0 30px 30px 0;
    padding: 0 30px;
}

.newsletter-disclaimer {
    font-size: 0.9rem;
    opacity: 0.8;
}

.newsletter-disclaimer a {
    color: var(--white);
    text-decoration: underline;
}

/* ---------- FOOTER ---------- */
footer {
    background-color: #2A2A2A;
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo, 
.footer-links, 
.footer-legal, 
.footer-contact {
    flex: 1;
    min-width: 200px;
}

.footer-logo p {
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-links h3, 
.footer-legal h3, 
.footer-contact h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links ul, 
.footer-legal ul {
    list-style: none;
}

.footer-links li, 
.footer-legal li {
    margin-bottom: 10px;
}

.footer-links a, 
.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover, 
.footer-legal a:hover {
    color: var(--white);
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-contact a:hover {
    color: var(--white);
}

.language-selector {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin: 0;
}

/* ---------- 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;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
}

/* ---------- COOKIE CONSENT ---------- */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(42, 42, 42, 0.95);
    padding: 15px 20px;
    color: var(--white);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.5s ease;
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-content p {
    margin: 0;
}

.cookie-content a {
    color: var(--accent);
    text-decoration: underline;
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* ---------- MEDIA QUERIES ---------- */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .step-line {
        left: 35px;
    }
    
    .step-number {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    section {
        padding: 50px 0;
    }
    
    #hero {
        padding: 130px 0 80px;
    }
    
    .hero-content {
        flex-direction: column;
    }
    
    .hero-text, 
    .hero-image {
        max-width: 100%;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 270px;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        justify-content: center;
        box-shadow: var(--shadow-lg);
        transition: 0.4s;
        z-index: 1000;
        padding: 50px 0;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .step-line {
        display: none;
    }
    
    .step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .step-number {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-10px);
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 15px;
    }
    
    .newsletter-form input,
    .newsletter-form button {
        border-radius: 30px;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .section-heading {
        margin-bottom: 30px;
    }
    
    .review-profile {
        flex-direction: column;
        text-align: center;
    }
    
    .review-profile img {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .cookie-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}