/*
  Terve Selkä - Healthy Back Landing Page Styles
  A clean, medical-focused design with a compact layout
*/

/* Base Variables */
:root {
    --primary-color: #2E5077; /* Deep blue */
    --primary-light: #4B7CB2; /* Lighter blue */
    --secondary-color: #39A9DB; /* Sky blue */
    --accent-color: #16DB93; /* Mint green */
    --text-color: #333333;
    --text-light: #666666;
    --background-light: #F8F9FA;
    --background-white: #FFFFFF;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.08);
    --border-radius: 8px;
    --transition: all 0.3s ease;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Fira Sans', sans-serif;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--background-light);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 15px;
    color: var(--primary-color);
}

p {
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary-color);
    display: block;
    margin-bottom: 10px;
}

.section-title {
    font-size: 36px;
    margin-bottom: 30px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin-top: 15px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header .section-title::after {
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
    text-align: center;
    cursor: pointer;
    border: none;
}

.primary-btn {
    background-color: var(--accent-color);
    color: var(--background-white);
}

.primary-btn:hover {
    background-color: #14c583;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(22, 219, 147, 0.3);
}

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

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: var(--background-white);
    transform: translateY(-3px);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--background-white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-icon {
    width: 40px;
    height: 40px;
    color: var(--primary-color);
    margin-right: 10px;
}

.spine-svg {
    width: 100%;
    height: 100%;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 500;
    color: var(--primary-color);
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-color);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    background-color: var(--background-white);
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.subtitle {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary-color);
    display: block;
    margin-bottom: 15px;
}

.hero h1 {
    font-size: 44px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--text-light);
}

.hero-cta {
    display: flex;
    gap: 15px;
}

.hero-image {
    flex: 1;
    position: relative;
    z-index: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.hero-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.hero-accent {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-color: rgba(59, 130, 246, 0.05);
    z-index: 0;
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
}

/* Features Section */
.features {
    padding: 60px 0;
    background-color: var(--background-light);
    margin-top: -40px;
    position: relative;
    z-index: 2;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--background-white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(57, 169, 219, 0.1);
    color: var(--secondary-color);
    font-size: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-light);
    font-size: 15px;
}

/* About Section */
.about {
    padding: 100px 0;
    background-color: var(--background-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
}

.check-list {
    margin: 20px 0;
}

.check-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
}

.check-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.about-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.about-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: var(--transition);
}

.about-image:hover img {
    transform: scale(1.05);
}

/* Benefits Section */
.benefits {
    padding: 100px 0;
    background-color: var(--background-light);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.benefit-card {
    background-color: var(--background-white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(22, 219, 147, 0.1);
    color: var(--accent-color);
    font-size: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.benefit-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.benefit-card p {
    color: var(--text-light);
    font-size: 15px;
}

.benefits-testimonial {
    background-color: var(--background-white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--accent-color);
}

.testimonial-text {
    position: relative;
    padding-left: 40px;
    margin-bottom: 20px;
}

.testimonial-text i {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 24px;
    color: var(--accent-color);
    opacity: 0.5;
}

.testimonial-text p {
    font-style: italic;
    font-size: 18px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.testimonial-author p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 0;
}

/* Exercises Section */
.exercises {
    padding: 100px 0;
    background-color: var(--background-white);
}

.exercises-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 18px;
    color: var(--text-light);
}

.exercises-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 30px;
}

.exercise-card {
    display: flex;
    gap: 30px;
    background-color: var(--background-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}

.exercise-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.exercise-number {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 36px;
    height: 36px;
    background-color: var(--accent-color);
    color: var(--background-white);
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.exercise-image {
    flex: 1;
    height: 230px;
    overflow: hidden;
}

.exercise-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.exercise-card:hover .exercise-image img {
    transform: scale(1.05);
}

.exercise-content {
    flex: 1;
    padding: 20px;
}

.exercise-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.exercise-content p {
    color: var(--text-light);
    font-size: 15px;
    margin-bottom: 15px;
}

.exercise-steps {
    display: flex;
    gap: 20px;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
}

.exercise-steps i {
    margin-right: 5px;
}

.exercises-note {
    background-color: rgba(57, 169, 219, 0.1);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-top: 40px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.exercises-note i {
    color: var(--secondary-color);
    font-size: 20px;
    margin-top: 3px;
}

.exercises-note p {
    font-size: 14px;
    margin-bottom: 0;
}

/* Team Section */
.team {
    padding: 100px 0;
    background-color: var(--background-light);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.team-card {
    background-color: var(--background-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.team-image {
    height: 250px;
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.team-card:hover .team-image img {
    transform: scale(1.05);
}

.team-info {
    padding: 20px;
    text-align: center;
}

.team-info h3 {
    font-size: 20px;
    margin-bottom: 5px;
}

.team-title {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 15px;
    font-size: 14px;
}

.team-bio {
    color: var(--text-light);
    font-size: 15px;
    margin-bottom: 0;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background-color: var(--background-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(46, 80, 119, 0.1);
    color: var(--primary-color);
    font-size: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-item h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.info-item p {
    color: var(--text-light);
    margin-bottom: 0;
}

.contact-map {
    margin-top: 20px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.contact-form-container {
    background-color: var(--background-light);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--primary-color);
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 15px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(57, 169, 219, 0.1);
}

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.form-check input {
    width: 20px;
    height: 20px;
}

.form-check label {
    font-size: 14px;
}

.form-check a {
    color: var(--primary-color);
    text-decoration: underline;
}

.form-check a:hover {
    color: var(--secondary-color);
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 50px 0 20px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo .logo-icon {
    color: white;
}

.footer-logo .logo-text {
    color: white;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-links a:hover {
    color: white;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 0;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .section-title {
        font-size: 32px;
    }
    
    .hero-container {
        flex-direction: column;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .exercises-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-top {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .header-container {
        height: 70px;
    }
    
    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--background-white);
        box-shadow: var(--shadow-sm);
        padding: 20px;
        height: 0;
        overflow: hidden;
        transition: var(--transition);
        visibility: hidden;
        opacity: 0;
    }
    
    .nav.active {
        height: auto;
        visibility: visible;
        opacity: 1;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 15px;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .exercise-card {
        flex-direction: column;
        gap: 0;
    }
    
    .exercise-number {
        top: 15px;
        left: 15px;
    }
    
    .features-grid,
    .benefits-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 28px;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .benefits-testimonial {
        padding: 25px;
    }
    
    .testimonial-text p {
        font-size: 16px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}
