/* --- ÜLDINE JA MUUTUJAD --- */
:root {
    --primary-color: #1a1a1a; /* Tume taust */
    --secondary-color: #2c2c2c; /* Veidi heledam tume */
    --accent-color: #FFD700; /* Ehituskollane */
    --text-color-light: #f5f5f5;
    --text-color-dark: #333;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    font-family: var(--font-body);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-color-light);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 50px; text-transform: uppercase; }
h3 { font-size: 1.5rem; }

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover { color: #fff; }

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 15px 30px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.cta-button:hover {
    transform: translateY(-3px);
    background-color: #fff;
}

.content-section { padding: 80px 0; background: var(--primary-color); }
.content-section-dark { padding: 80px 0; background: var(--secondary-color); }

/* --- PÄIS --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: background-color 0.3s ease, padding 0.3s ease;
}
.header.scrolled {
    background-color: rgba(26, 26, 26, 0.9);
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
}
.logo span { color: var(--accent-color); }
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}
.main-nav a {
    color: var(--text-color-light);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
}
.header-cta { display: block; }
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
}

/* --- KANGELASE SEKTSIOON --- */
.hero-section {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}
.video-background {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}
.video-background video {
    width: 100%; height: 100%;
    object-fit: cover;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}
.hero-content {
    position: relative;
    z-index: 2;
}
.hero-content h1 {
    margin-bottom: 20px;
}
.hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px auto;
}
.hero-main-cta {
    padding: 20px 40px;
    font-size: 1.1rem;
}

/* --- TEENUSED --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.service-item {
    background-color: var(--secondary-color);
    padding: 40px 30px;
    text-align: center;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.service-item i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}
.service-item h3 {
    margin-bottom: 15px;
}

/* --- PROTSESS --- */
.process-timeline {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    position: relative;
}
.process-timeline::before { /* Ajajoon */
    content: '';
    position: absolute;
    top: 30px;
    left: 50px;
    right: 50px;
    height: 2px;
    background-color: var(--accent-color);
    z-index: 0;
}
.process-step {
    flex: 1;
    text-align: center;
    position: relative;
    padding-top: 60px;
}
.step-number {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background-color: var(--accent-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    border: 5px solid var(--secondary-color);
}
.process-step h3 {
    margin-bottom: 15px;
    color: var(--accent-color);
}

/* --- GALERII --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 8px;
}
.gallery-item img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}
.gallery-item:hover .after-image {
    opacity: 1;
}
.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 40px 20px 20px;
    color: #fff;
    z-index: 2;
    transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-overlay {
    opacity: 0;
}
.after-image {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* --- KONTAKT --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    background: var(--secondary-color);
    padding: 50px;
    border-radius: 8px;
}
.contact-info h3, .contact-form h3 { margin-bottom: 20px; }
.contact-info p { margin-bottom: 15px; }
.contact-info i {
    color: var(--accent-color);
    margin-right: 10px;
    width: 20px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    border: 1px solid #444;
    border-radius: 5px;
    color: var(--text-color-light);
    font-family: var(--font-body);
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}
.form-success { text-align: center; color: #28a745; background: rgba(40, 167, 69, 0.1); padding: 15px; border-radius: 5px; margin-bottom: 20px; }
.form-error { text-align: center; color: #dc3545; background: rgba(220, 53, 69, 0.1); padding: 15px; border-radius: 5px; margin-bottom: 20px; }

/* --- JALUS --- */
.footer {
    background: var(--secondary-color);
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
    color: #888;
}

/* --- ANIMATSIOONID --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}


/* --- MEDIA QUERIES (RESPONSIIVSUS) --- */
@media (max-width: 992px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .contact-wrapper { grid-template-columns: 1fr; }
    .process-timeline { flex-direction: column; }
    .process-timeline::before {
        left: 30px; top: 50px; bottom: 50px; width: 2px; height: auto; right: auto;
    }
    .process-step { text-align: left; padding-left: 80px; padding-top: 0;}
    .step-number { left: 0; transform: none;}
}

@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%; /* Alguses peidus */
        width: 100%;
        height: 100vh;
        background-color: var(--primary-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.5s ease-in-out;
        display: flex;
    }
    .main-nav.active {
        right: 0;
    }
    .main-nav ul {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    .main-nav a { font-size: 1.5rem; }
    .mobile-nav-toggle { display: block; z-index: 1001; }
    .mobile-nav-toggle .fa-times { display: none; }
    .mobile-nav-toggle.active .fa-bars { display: none; }
    .mobile-nav-toggle.active .fa-times { display: block; }
    .header-cta { display: none; }
    .gallery-grid { grid-template-columns: 1fr; }
}

/* Lisastiilid Hinnakirja ja KKK jaoks */
.pricing-factors {
    list-style: none;
    padding-left: 0;
    max-width: 800px;
    margin: 0 auto;
}
.pricing-factors li {
    background-color: var(--secondary-color);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-left: 4px solid var(--accent-color);
    border-radius: 4px;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    background-color: var(--primary-color);
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 15px;
}
.faq-item h4 {
    color: var(--accent-color);
    margin-bottom: 10px;
}