/* Kanta-Hämeen Kumi & Korjaus - Stylesheet v1.1
   Custom Typography Update (Orbitron & Montserrat)
*/

/* VARIABLES & RESET */
:root {
    --color-dark: #121212;
    --color-dark-gray: #222222;
    --color-light: #ffffff;
    --color-light-gray: #f4f5f7;
    --color-accent: #e63946; /* Automotive modern red */
    --color-accent-hover: #d62828;
    --color-text: #333333;
    --color-text-light: #666666;
    
    /* Typography */
    --font-display: 'Orbitron', sans-serif; /* Pääotsikko (Kanta-Hämeen) */
    --font-heading: 'Montserrat', sans-serif; /* Alaotsikot & Navigaatio */
    --font-body: 'Roboto', sans-serif;    /* Leipäteksti */
    
    --transition: all 0.3s ease;
}

/* Lisää nämä styles.css tiedoston alkuun tai vastaaviin kohtiin */

body, html {
    overflow-x: hidden; /* Estää sivuttaisliikkeen koko sivulla */
    width: 100%;
    position: relative;
}

.main-wrapper {
    overflow-x: hidden; /* Lukitsee sisällön leveyden */
    width: 100%;
}

/* HERO VIDEO TYYLIT */
.hero {
    position: relative;
    overflow: hidden; /* TÄRKEÄ videon kannalta */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Täyttää koko alan venyttämättä */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Tummentaa videota, jotta teksti näkyy */
    z-index: -1;
}


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

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

body {
    font-family: var(--font-body);
    color: var(--color-text);
    line-height: 1.6;
    background-color: var(--color-light);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--color-dark);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

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;
}

.text-center { text-align: center; }
.section-padding { padding: 5rem 0; }
.bg-light { background-color: var(--color-light-gray); }

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

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

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

.btn-outline {
    background-color: transparent;
    color: var(--color-light);
    border-color: var(--color-accent);
}

.btn-outline:hover {
    background-color: var(--color-accent);
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
    text-align: center;
}

/* Alkuperäinen tila (näkymätön/läpinäkyvä) */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    border-bottom: 1px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Tila kun on skrollattu (Glassmorphism aktivoituu) */
.navbar.scrolled {
    background: rgba(18, 18, 18, 0.8); /* Tumma läpikuultava */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Kontainerin sisennys ja sen muutos */
.navbar .nav-container { /* Varmista että HTML:ssä on <div class="nav-container"> navbarin sisällä */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;@charset "UTF-8";

:root {
    --color-dark: #121212;
    --color-dark-gray: #222222;
    --color-light: #ffffff;
    --color-light-gray: #f4f5f7;
    --color-accent: #e63946; 
    --color-accent-hover: #d62828;
    --color-text: #333333;
    --color-text-light: #666666;
    
    --font-display: 'Orbitron', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;
    
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: var(--font-body); color: var(--color-text); line-height: 1.6; background-color: var(--color-light); overflow-x: hidden; }

h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-dark); text-transform: uppercase; }
a { text-decoration: none; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 5rem 0; }
.bg-light { background-color: var(--color-light-gray); }

/* BUTTONS */
.btn { display: inline-block; padding: 12px 28px; font-weight: 700; text-transform: uppercase; border-radius: 4px; cursor: pointer; border: 2px solid transparent; }
.btn-primary { background-color: var(--color-accent); color: #fff; }
.btn-primary:hover { background-color: var(--color-accent-hover); }
.btn-outline { background-color: transparent; color: #fff; border-color: var(--color-accent); }
.btn-outline:hover { background-color: var(--color-accent); }
.btn-full { width: 100%; text-align: center; }

/* NAVBAR */
.navbar { position: fixed; top: 0; width: 100%; z-index: 1000; transition: 0.4s; padding: 1.5rem 0; }
.navbar.scrolled { background: rgba(18, 18, 18, 0.9); backdrop-filter: blur(10px); padding: 0.8rem 0; box-shadow: 0 4px 20px rgba(0,0,0,0.2); }
.nav-container { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.logo img { height: 50px; }
.nav-menu { display: flex; gap: 2rem; }
.nav-link { color: #fff; font-weight: 500; text-transform: uppercase; font-size: 0.9rem; }
.nav-link:hover { color: var(--color-accent); }

/* HERO SECTION + VIDEO FALLBACK */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* TAUSTAKUVA FALLBACKINA JOS VIDEO EI TOIMI */
    background: linear-gradient(rgba(18,18,18,0.7), rgba(18,18,18,0.7)), url('image.jpg') center/cover no-repeat;
}

.video-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -2; }
.hero-video { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: -1; }

.hero-content h1 .title-main { font-family: var(--font-display); font-size: clamp(2.5rem, 8vw, 4.5rem); color: #fff; display: block; }
.hero-content h1 .title-sub { font-family: var(--font-heading); font-size: clamp(1.2rem, 4vw, 2.5rem); color: #fff; display: block; font-weight: 400; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; margin-top: 2rem; }

/* LOGON TAUSTA-ANIMAATIO (About Section) */
.about-image { position: relative; display: flex; justify-content: center; padding: 2rem; }

@keyframes backRotate {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.about-image::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 110%; height: 110%;
    background: radial-gradient(circle, rgba(230,57,70,0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    animation: backRotate 20s linear infinite;
    filter: blur(5px);
}

.brand-logo-graphic { position: relative; z-index: 2; }

/* SERVICES & PRICING */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.card { background: #fff; padding: 2rem; border-radius: 8px; border-top: 4px solid var(--color-dark); transition: 0.3s; }
.card:hover { transform: translateY(-10px); border-top-color: var(--color-accent); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }

.pricing-box { background: #fff; max-width: 800px; margin: 0 auto; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.pricing-list li { display: flex; justify-content: space-between; padding: 1rem 2rem; border-bottom: 1px solid #eee; }
.price { color: var(--color-accent); font-weight: 700; font-family: var(--font-display); }

/* FOOTER */
.footer { background: var(--color-dark); padding: 2rem 0; border-top: 3px solid var(--color-accent); color: #fff; }
.footer-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-fb-icon { color: #1877F2; font-size: 2rem; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .nav-menu { position: fixed; left: -100%; top: 80px; flex-direction: column; background: rgba(18,18,18,0.95); width: 100%; padding: 2rem; transition: 0.3s; }
    .nav-menu.active { left: 0; }
    .hamburger { display: block; color: #fff; font-size: 1.5rem; cursor: pointer; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .hero-buttons { flex-direction: column; }
}

/* ANIMATION CLASSES */
.fade-in, .slide-in-left, .slide-in-right { opacity: 0; transition: 0.8s ease-out; }
.appear { opacity: 1; transform: none; }
.slide-in-left { transform: translateX(-30px); }
.slide-in-right { transform: translateX(30px); }

    transition: padding 0.4s ease;
    max-width: 1200px;
    margin: 0 auto;
}

.navbar.scrolled .nav-container {
    padding: 0.8rem 2rem;
}


.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--color-light);
}

/* HERO SECTION */
.hero {
    min-height: 100vh;
    background: linear-gradient(rgba(18, 18, 18, 0.75), rgba(18, 18, 18, 0.75)), url('image.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}

.hero-content {
    max-width: 900px;
    padding: 20px;
}

/* Hero Typography (Based on provided image) */
.hero h1 {
    margin-bottom: 1.5rem;
}

.hero h1 .title-main {
    font-family: var(--font-display);
    color: var(--color-light);
    font-size: clamp(2.5rem, 8vw, 4.5rem); /* Responsiivinen koko */
    font-weight: 900;
    letter-spacing: 3px;
    line-height: 1.1;
    display: block;
}

.hero h1 .title-sub {
    font-family: var(--font-heading);
    color: var(--color-light);
    font-size: clamp(1.2rem, 4vw, 2.8rem);
    font-weight: 400; /* Ohuempi paino alariville kuvan mukaan */
    letter-spacing: 2px;
    display: block;
    opacity: 0.95;
}

.hero p {
    color: var(--color-light-gray);
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    text-transform: none;
    font-family: var(--font-body);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* ABOUT SECTION */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.2rem;
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--color-text-light);
    text-transform: none;
}

.service-list {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.service-list li {
    position: relative;
    padding-left: 25px;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    font-family: var(--font-heading);
}

.service-list li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: var(--color-accent);
}

.about-image img {
    border-radius: 8px;
}

/* SECTION TITLES */
.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.underline {
    height: 4px;
    width: 60px;
    background-color: var(--color-accent);
    margin: 0 auto;
}

/* SERVICES CARDS */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background-color: var(--color-light);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
    border-top: 4px solid var(--color-dark);
}

.card:hover {
    transform: translateY(-10px);
    border-top-color: var(--color-accent);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.card p {
    color: var(--color-text-light);
    text-transform: none;
}

/* PRICING */
.pricing-box {
    background-color: var(--color-light);
    max-width: 800px;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

.pricing-list li {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #eee;
    font-weight: 500;
}

.pricing-list li:last-child {
    border-bottom: none;
}

.pricing-list li:nth-child(even) {
    background-color: #fafafa;
}

.pricing-list .price {
    font-family: var(--font-display);
    color: var(--color-accent);
    font-weight: 700;
}

.pricing-note {
    background-color: var(--color-dark);
    color: var(--color-light);
    padding: 1.5rem 2rem;
    text-align: center;
}

.pricing-note a {
    color: var(--color-accent);
    text-decoration: underline;
}

/* CTA SECTION */
.cta-section {
    padding: 6rem 0;
    color: var(--color-light);
}

.cta-section h2 {
    color: var(--color-light);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* CONTACT */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.info-item {
    margin-bottom: 1rem;
}

.info-item h4 {
    margin-bottom: 0.5rem;
    color: var(--color-accent);
}

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

.payment-methods {
    margin-top: 1.5rem;
}

.payment-methods h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--color-accent);
}

.payment-methods ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column; /* Pidetään allekkain, jotta teksti on selkeä */
    gap: 0.8rem;
}

.payment-methods li {
    display: flex;
    align-items: center;
    gap: 12px; /* Väli kuvakkeen ja tekstin välillä */
    color: var(--color-text-light);
    font-size: 0.95rem;
}

.payment-methods li i {
    color: var(--color-accent); /* Kuvakkeet korostusvärillä */
    width: 20px; /* Vakioväli kuvakkeille, jotta teksti alkaa samasta linjasta */
    text-align: center;
    font-size: 1.1rem;
}



/* FORM */
.contact-form {
    background-color: var(--color-light);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--color-dark);
    text-transform: uppercase;
    font-size: 0.8rem;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 2px rgba(230, 57, 70, 0.1);
}

/* ==========================================================================
   VERSION 1.2 - HORIZONTAL FOOTER
   ========================================================================== */
.footer {
    background-color: var(--color-dark);
    padding: 2.5rem 0; /* Kompaktimpi korkeus */
    border-top: 3px solid var(--color-accent);
    color: var(--color-text-light);
}

.footer-row {
    display: flex;
    justify-content: space-between; /* Levittää osat reunoille */
    align-items: center; /* Keskittää osat pystysuunnassa toisiinsa nähden */
    flex-wrap: wrap; /* Sallii rivittymisen mobiilissa */
    gap: 1.5rem;
}

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

/* Vasen lohko */
.footer-logo-side {
    justify-content: flex-start;
}

.footer-logo-side img {
    height: 45px;
    width: auto;
}

/* Keskilohko */
.footer-text-side {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    flex: 2; /* Antaa tekstille enemmän tilaa keskellä */
}

.footer-text-side p {
    margin: 0;
    font-size: 0.9rem;
    white-space: nowrap; /* Pitää tekstin yhdellä rivillä jos mahdollista */
}

.footer-address {
    color: var(--color-light);
    opacity: 0.8;
}

/* Oikea lohko */
.footer-social-side {
    justify-content: flex-end;
}

.footer-fb-icon {
    color: #1877F2;
    font-size: 2rem;
    transition: var(--transition);
    line-height: 1;
}

.footer-fb-icon:hover {
    transform: scale(1.1);
}

/* Mobiiliasettelu - kun tila loppuu, ne pinoituvat takaisin päällekkäin */
@media (max-width: 768px) {
    .footer-row {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-col {
        justify-content: center;
        flex: none;
    }
}


/* ANIMATIONS */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.slide-in-left { opacity: 0; transform: translateX(-30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.slide-in-right { opacity: 0; transform: translateX(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.appear { opacity: 1; transform: translate(0); }

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .about-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--color-dark);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0,0,0,0.2);
        padding: 2rem 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 1rem 0;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .pricing-list li {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}
/* Varmistetaan että puhelinnumero ja varauspainike ovat selkeitä */
.phone-link {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent);
    display: inline-block;
    margin-bottom: 1rem;
}

.booking-cta .btn {
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
    text-align: center;
}
