@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700;800&display=swap');

:root {
    --primary-green: #9ab83a;
    --text-dark: #333333;
    --text-muted: #777777;
    --bg-white: #ffffff;
    --bg-offwhite: #fdfdfd;
    --border-green: #9ab83a;
    --border-blue: #069cd4;
    --border-dark: #0f2f1d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 130px;
}

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

/* Header */
.top-bar {
    background: var(--bg-white);
    padding: 10px 40px;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
}
.top-bar a {
    color: var(--text-dark);
    text-decoration: none;
    margin-right: 20px;
}
.top-bar a:hover {
    color: var(--primary-green);
}
.top-bar-right {
    text-align: right;
}

.main-header {
    background: var(--primary-green);
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo img {
    height: 45px;
    display: block;
}

.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #000000;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: opacity 0.2s;
}

.nav-links a:hover {
    opacity: 0.7;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #000;
}

/* Hero Video Section */
.hero-video-section {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -2;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-video-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.65); /* Vaalea peitto videon päällä, jotta musta teksti erottuu */
    z-index: -1;
}

/* Hero Content */
.hero-content {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 40px;
    gap: 40px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 42px;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 16px;
    margin-bottom: 20px;
}

.hero-graphic {
    flex: 1;
    text-align: right;
}

.hero-graphic img {
    max-width: 80%;
}

/* Goals */
.goals-section {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 40px;
    display: flex;
    gap: 30px;
    text-align: center;
}

.goal-card {
    flex: 1;
}

.goal-icon {
    margin-bottom: 20px;
}

.goal-icon img {
    height: 60px;
}

.goal-card h3 {
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-dark);
}

/* Services (Overlapping Background) */
.services-bg-section {
    background: url('../assets/images/seinan-maalaus_suti_frontpage.jpg') center/cover no-repeat;
    position: relative;
    padding: 100px 20px;
}

.services-bg-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.85);
}

.services-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.service-box {
    background: rgba(255, 255, 255, 0.95);
    border: 3px solid;
    padding: 50px 30px;
    width: 320px;
    text-align: center;
    transition: transform 0.2s;
}

.service-box:hover {
    transform: translateY(-5px);
}

.service-box.green { border-color: var(--border-green); }
.service-box.blue { border-color: var(--border-blue); }
.service-box.dark { border-color: var(--border-dark); }

.service-icon img {
    height: 60px;
    margin-bottom: 25px;
}

.service-box h3 {
    font-size: 18px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 15px;
}

.service-box p {
    font-size: 14px;
    color: var(--text-muted);
}

/* Testimonial */
.testimonial-section {
    padding: 80px 20px;
}

.testimonial-box {
    max-width: 900px;
    margin: 0 auto;
    border: 4px solid var(--primary-green);
    padding: 60px 40px;
    text-align: center;
    background: var(--bg-white);
}

.testimonial-text {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 25px;
}

.testimonial-author {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-green);
}

.testimonial-company {
    font-size: 16px;
    color: var(--text-dark);
}

/* Gallery */
.gallery-section {
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 40px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
}

/* Footer */
footer {
    background: #000000;
    color: #ffffff;
    padding: 60px 40px 30px;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-col h4 {
    color: var(--primary-green);
    margin-bottom: 20px;
    text-transform: uppercase;
}

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

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #cccccc;
    text-decoration: none;
}

.footer-col a:hover {
    color: #ffffff;
}

.footer-logos img {
    display: block;
    max-height: 60px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 20px;
    color: #666;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    .hero-graphic {
        text-align: center;
    }
    .goals-section {
        flex-direction: column;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary-green);
        flex-direction: column;
        padding: 20px;
        text-align: center;
    }
    .nav-links.active {
        display: flex;
    }
    .mobile-menu-btn {
        display: block;
    }
    .top-bar {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    .top-bar-right {
        text-align: center;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-logos img {
        margin: 0 auto 20px;
    }
}
