@charset "UTF-8";

/* ==========================================================================
   Kumi & Korjaus - Stylesheet v1.1
   ========================================================================== */

/* 1. VARIABLES */
: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;
}

/* 2. BASE & RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body, html {
    width: 100%;
    position: relative;
    overflow-x: hidden;
}

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

.main-wrapper {
    overflow-x: hidden;
    width: 100%;
}

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

/* 3. LAYOUT & UTILITIES */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding { padding: 5rem 0; }
.bg-light { background-color: var(--color-light-gray); }
.text-center { text-align: center; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }

/* 4. COMPONENTS */

/* 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-full {
    width: 100%;
    text-align: center;
}

/* Navbar */
.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);
}

.navbar.scrolled {
    background: rgba(18, 18, 18, 0.8);
    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);
}

.navbar .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    transition: padding 0.4s ease;
    max-width: 1200px;
    margin: 0 auto;
}

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

.logo img { height: 50px; }
.nav-menu { display: flex; gap: 2rem; }
.nav-link { color: var(--color-light); font-weight: 500; text-transform: uppercase; font-size: 0.9rem; }
.nav-link:hover { color: var(--color-accent); }

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
}

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

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    color: var(--color-light);
    background: linear-gradient(rgba(18, 18, 18, 0.75), rgba(18, 18, 18, 0.75)), 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 {
    max-width: 900px;
    padding: 20px;
}

.hero h1 { margin-bottom: 1.5rem; }
.hero h1 .title-main { font-family: var(--font-display); font-size: clamp(2.5rem, 8vw, 4.5rem); color: var(--color-light); font-weight: 900; letter-spacing: 3px; line-height: 1.1; display: block; }
.hero h1 .title-sub { font-family: var(--font-heading); font-size: clamp(1.2rem, 4vw, 2.5rem); color: var(--color-light); font-weight: 400; 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 { position: relative; display: flex; justify-content: center; padding: 2rem; }
.about-image img { border-radius: 8px; }

/* Animated Logo Background */
@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; }

/* Section Titles */
.section-title { text-align: center; margin-bottom: 4rem; }
.section-title h2 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.subtitle { color: var(--color-text-light); font-weight: 500; }
.underline { height: 4px; width: 60px; background-color: var(--color-accent); margin: 0 auto; }

/* Services Grid & 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; border-top: 4px solid var(--color-dark); box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: var(--transition); }
.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; }

.service-card { transition: transform 0.3s ease, box-shadow 0.3s ease; border: 1px solid rgba(0,0,0,0.05); }
.service-card:hover { transform: translateY(-10px); box-shadow: 0 15px 40px rgba(0,0,0,0.12); }
.service-card .service-icon { font-size: 2.5rem; color: var(--color-accent); margin-bottom: 1.5rem; }
.price-tag-container p { margin-bottom: 0.2rem; }
.service-note { font-size: 0.85rem; color: var(--color-text-light); font-style: italic; }

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

/* Contact Section */
.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); }
.phone-link { font-size: 1.5rem; font-weight: 700; color: var(--color-accent); display: inline-block; margin-bottom: 1rem; }

.payment-methods h4 { margin-bottom: 1rem; font-size: 1.1rem; }
.payment-methods ul { display: flex; flex-direction: column; gap: 0.8rem; }
.payment-methods li { display: flex; align-items: center; gap: 12px; color: var(--color-text-light); font-size: 0.95rem; }
.payment-methods li i { color: var(--color-accent); width: 20px; text-align: center; font-size: 1.1rem; }

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

/* Forms */
.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); }

/* Footer */
.footer { background-color: var(--color-dark); padding: 2.5rem 0; border-top: 3px solid var(--color-accent); color: var(--color-text-light); }
.footer-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem; }
.footer-col { flex: 1; display: flex; align-items: center; }
.footer-logo-side { justify-content: flex-start; }
.footer-logo-side img { height: 45px; width: auto; }
.footer-text-side { flex-direction: column; justify-content: center; text-align: center; flex: 2; }
.footer-text-side p { margin: 0; font-size: 0.9rem; white-space: nowrap; }
.footer-address { color: var(--color-light); opacity: 0.8; }
.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); }

/* 5. 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); }

/* 6. MEDIA QUERIES */
@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(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .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; }
    
    .footer-row { flex-direction: column; text-align: center; }
    .footer-col { justify-content: center; flex: none; }
}

/* ==========================================================================
   PREMIUM TESTIMONIALS CAROUSEL
   ========================================================================== */
.testimonials {
    text-align: center;
}

.testimonials-wrapper {
    max-width: 650px;
    margin: 0 auto;
    position: relative;
    padding: 1rem;
}

.testimonial-card {
    display: none;
    background: var(--color-light);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08); /* Pehmeä, iso leijuva varjo */
    border-top: 5px solid var(--color-accent);
    position: relative;
    overflow: hidden;
    /* Pieni bounce-efekti kun kortti ilmestyy */
    animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}

.testimonial-card.active {
    display: block;
}

/* Iso vesileima-lainausmerkki taustalla */
.quote-watermark {
    position: absolute;
    top: -10px;
    right: 20px;
    font-size: 8rem;
    color: rgba(230, 57, 70, 0.05); /* Todella haalea brändin punainen */
    z-index: 0;
    transform: rotate(10deg);
}

.testimonial-content {
    position: relative;
    z-index: 1;
}

.stars {
    color: #fbbc05; /* Aito Google-tähden keltainen */
    font-size: 1.2rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--color-text);
    margin-bottom: 2rem;
    line-height: 1.8;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

/* Kirjoittajan profiili-osio */
.testimonial-author-block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 1.5rem;
    border-top: 1px solid #f0f0f0;
    padding-top: 2rem;
    position: relative;
    z-index: 1;
}

.author-avatar {
    width: 55px;
    height: 55px;
    background-color: var(--color-accent); /* Erottuva avatarin tausta */
    color: var(--color-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    box-shadow: 0 4px 10px rgba(230, 57, 70, 0.3);
}

.author-info {
    text-align: left;
}

.testimonial-author {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: var(--color-dark);
}

.review-source {
    font-size: 0.85rem;
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.review-source .fa-google {
    color: #4285F4; /* Googlen G-logon sininen */
    font-size: 1rem;
}

/* Pallerot */
.testimonial-dots {
    margin-top: 2.5rem;
}

.dot {
    height: 12px; 
    width: 12px;
    margin: 0 6px;
    background-color: #d1d5db;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--color-accent);
    transform: scale(1.3); /* Pieni suurennos aktiiviselle pallerolle */
}

@keyframes popIn {
    0% { opacity: 0; transform: scale(0.95) translateY(15px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* Mobiiliviilaus */
@media (max-width: 768px) {
    .testimonial-card {
        padding: 2rem 1rem;
    }
    .testimonial-text {
        font-size: 1.05rem;
        max-width: 100%;
    }
}
/* Kutistaa arvostelu-osion otsikkoa ja ylimääräistä tilaa ympäriltä */
.testimonials.section-padding {
    padding: 3.5rem 0; /* Alkuperäinen oli 5rem 0 */
}

.testimonials .section-title h2 {
    font-size: 1.8rem; /* Alkuperäinen oli 2.5rem */
}
