/* 
* Dravinta - Löpning från noll
* Styles.css
* 
* Author: Dravinta Design Team
* Version: 1.0
*/

/* ============= RESET & BASE STYLES ============= */
:root {
    --primary: #4CAF50;
    --primary-light: #81C784;
    --primary-dark: #2E7D32;
    --secondary: #FF9800;
    --dark: #333333;
    --gray: #757575;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --black: #212121;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --transition: all 0.3s ease;
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 3rem;
    text-align: center;
}

/* ============= BUTTONS ============= */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.btn-hero {
    background-color: var(--white);
    color: var(--primary);
    font-size: 1.1rem;
    padding: 15px 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.btn-hero:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 10px 22px;
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-block {
    display: block;
    width: 100%;
}

/* ============= HEADER & NAVIGATION ============= */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 15px 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

#header.scrolled {
    padding: 10px 0;
    background-color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    flex: 0 0 auto;
}

.logo img {
    height: 40px;
    transition: var(--transition);
}

.scrolled .logo img {
    height: 35px;
}

.desktop-nav {
    display: none;
}

.desktop-nav ul {
    display: flex;
    gap: 1.5rem;
}

.desktop-nav a {
    color: var(--dark);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.desktop-nav a:hover {
    color: var(--primary);
}

.desktop-nav a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: block;
    cursor: pointer;
    z-index: 1001;
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
}

.hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--dark);
    transition: var(--transition);
}

.mobile-menu-open .hamburger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-open .hamburger span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-open .hamburger span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--white);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    padding: 80px 30px 30px;
    z-index: 999;
    transition: all 0.4s ease;
    overflow-y: auto;
}

.mobile-menu-open .mobile-nav {
    right: 0;
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav a {
    color: var(--dark);
    font-size: 1.2rem;
    font-weight: 500;
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid var(--light-gray);
}

.mobile-nav a:hover {
    color: var(--primary);
}

.cta-button {
    display: none;
}

/* ============= HERO SECTION ============= */
#hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), 
                url('images/hero.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
}

.hero-content {
    max-width: 800px;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* ============= BENEFITS SECTION ============= */
#fordelar {
    padding: 5rem 0;
    background-color: var(--light-gray);
}

.benefits-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.benefit-icon {
    margin-bottom: 1.5rem;
}

.benefit-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--black);
}

.benefit-card p {
    color: var(--gray);
}

/* ============= HOW IT WORKS SECTION ============= */
#hur {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 100%);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 3rem auto 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 15px;
    width: 2px;
    background-color: var(--primary-light);
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
    padding-left: 45px;
}

.timeline-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 32px;
    height: 32px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    z-index: 2;
}

.timeline-content {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.timeline-content h3 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.timeline-content p {
    color: var(--gray);
}

/* ============= PROGRAM SECTION ============= */
#program {
    padding: 5rem 0;
    background-color: var(--white);
}

.program-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.program-card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #eaeaea;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.program-card.featured {
    border: 2px solid var(--primary);
    transform: scale(1.05);
}

.program-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.program-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 1.5rem;
    text-align: center;
}

.program-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.program-duration {
    font-size: 0.9rem;
    opacity: 0.8;
}

.program-body {
    padding: 1.5rem;
}

.program-body ul {
    margin-bottom: 1.5rem;
}

.program-body li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
}

.program-body li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.program-goal {
    background-color: rgba(76, 175, 80, 0.1);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.program-goal span {
    font-weight: 600;
    color: var(--primary-dark);
}

.program-footer {
    padding: 1.5rem;
    text-align: center;
    border-top: 1px solid #eaeaea;
}

/* ============= TRAINER SECTION ============= */
#tranaren {
    padding: 5rem 0;
    background-color: #f2f7f2;
}

.trainer-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.trainer-image {
    flex: 1;
}

.trainer-image img {
    width: 100%;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
}

.trainer-content {
    flex: 1;
}

.trainer-content h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--black);
}

.trainer-content h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.trainer-credentials {
    font-size: 1rem;
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.trainer-description {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.trainer-quote {
    font-style: italic;
    color: var(--primary-dark);
    font-size: 1.2rem;
    padding: 1rem 0;
    margin-bottom: 1.5rem;
    border-top: 1px solid rgba(76, 175, 80, 0.2);
    border-bottom: 1px solid rgba(76, 175, 80, 0.2);
}

.trainer-achievements {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
}

.achievement {
    flex: 1;
    min-width: 100px;
    text-align: center;
}

.achievement-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.achievement-text {
    color: var(--gray);
    font-size: 0.9rem;
}

/* ============= PRICING SECTION ============= */
#priser {
    padding: 5rem 0;
    background: linear-gradient(180deg, #ffffff 0%, #f9f9f9 100%);
}

.pricing-table {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.pricing-card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.pricing-tag {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--secondary);
    color: var(--white);
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-bottom-left-radius: var(--border-radius);
}

.pricing-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 2rem 1.5rem;
    text-align: center;
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.pricing-price {
    margin-bottom: 0.5rem;
}

.pricing-price .currency {
    font-size: 2.5rem;
    font-weight: 700;
    margin-right: 0.3rem;
}

.pricing-price .amount {
    font-size: 1.1rem;
}

.pricing-period {
    font-size: 0.9rem;
    opacity: 0.8;
}

.pricing-body {
    padding: 1.5rem;
}

.pricing-features {
    margin-bottom: 1.5rem;
}

.pricing-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.pricing-features i {
    margin-right: 0.8rem;
    font-size: 1rem;
}

.pricing-features .fa-check {
    color: var(--primary);
}

.pricing-features .fa-xmark {
    color: var(--gray);
}

.pricing-footer {
    padding: 1.5rem;
    text-align: center;
    border-top: 1px solid #eaeaea;
}

/* ============= FAQ SECTION ============= */
#fragor {
    padding: 5rem 0;
    background-color: var(--light-gray);
}

.faq-container {
    max-width: 800px;
    margin: 3rem auto 0;
}

.faq-item {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.faq-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    transition: var(--transition);
}

.faq-question:hover {
    background-color: rgba(76, 175, 80, 0.05);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: var(--gray);
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* ============= CONTACT SECTION ============= */
#kontakt {
    padding: 5rem 0;
    background-color: var(--white);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-form {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--black);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.form-group.checkbox {
    display: flex;
    align-items: center;
}

.form-group.checkbox input {
    width: auto;
    margin-right: 0.8rem;
}

.form-group.checkbox label {
    margin-bottom: 0;
    font-weight: 400;
    font-size: 0.9rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-item i {
    width: 40px;
    height: 40px;
    background-color: rgba(76, 175, 80, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.map-container {
    margin-top: 1.5rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* ============= NEWSLETTER SECTION ============= */
#newsletter {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.newsletter-container {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.newsletter-container h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.newsletter-container p {
    margin-bottom: 2rem;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    padding: 15px 20px;
    border-radius: 50px;
    border: none;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
}

.newsletter-form input:focus {
    outline: none;
}

/* ============= FOOTER ============= */
#footer {
    padding: 4rem 0 1rem;
    background-color: #222;
    color: #f5f5f5;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    text-align: center;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 1rem;
}

.footer-logo p {
    color: #aaa;
    font-size: 0.9rem;
}

.footer-links h3,
.footer-legal h3,
.footer-contact h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.footer-links ul,
.footer-legal ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a,
.footer-legal a {
    color: #aaa;
    transition: var(--transition);
}

.footer-links a:hover,
.footer-legal a:hover {
    color: var(--primary-light);
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    color: #aaa;
}

.footer-contact i {
    color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #777;
    font-size: 0.9rem;
}

/* ============= COOKIE CONSENT ============= */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    color: var(--white);
    padding: 1rem;
    z-index: 1000;
    display: none;
}

.cookie-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-content p {
    font-size: 0.9rem;
}

.cookie-content a {
    color: var(--primary-light);
    text-decoration: underline;
}

.cookie-accept {
    min-width: 120px;
}

/* ============= RESPONSIVE DESIGN ============= */
@media (min-width: 576px) {
    .section-title {
        font-size: 3rem;
    }
    
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .hero-content p {
        font-size: 1.5rem;
    }
    
    .newsletter-form {
        flex-direction: row;
    }
    
    .newsletter-form input {
        flex: 1;
    }
    
    .cookie-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (min-width: 768px) {
    .benefits-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .timeline::before {
        left: 50%;
    }
    
    .timeline-item {
        padding-left: 0;
        width: 50%;
    }
    
    .timeline-item:nth-child(odd) {
        padding-right: 40px;
        margin-left: auto;
        text-align: right;
    }
    
    .timeline-item:nth-child(even) {
        padding-left: 40px;
    }
    
    .timeline-number {
        left: auto;
        right: -16px;
    }
    
    .timeline-item:nth-child(even) .timeline-number {
        right: auto;
        left: -16px;
    }
    
    .program-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .trainer-container {
        flex-direction: row;
    }
    
    .pricing-table {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .contact-container {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .desktop-nav {
        display: block;
    }
    
    .mobile-menu-toggle {
        display: none;
    }
    
    .cta-button {
        display: block;
    }
    
    .benefits-container {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1200px) {
    .container {
        padding: 0;
    }
}