/* ======================= General Styles & Variables ======================= */
:root {
    --primary-color: #2c3e50; /* Tumesinine */
    --secondary-color: #3498db; /* Helesinine */
    --accent-color: #f39c12; /* Oranž/Kollane */
    --background-color: #ffffff;
    --light-gray-bg: #f4f4f4;
    --text-color: #333333;
    --white-color: #ffffff;
    --font-family: 'Roboto', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    background-color: var(--background-color);
    color: var(--text-color);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; text-align: center; margin-bottom: 2rem;}
h3 { font-size: 1.4rem; }

section {
    padding: 60px 0;
}

.subtitle {
    font-size: 1.1rem;
    color: #666;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2rem auto;
}

/* ======================= Header ======================= */
.header {
    background: var(--white-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo a {
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo a span {
    color: var(--secondary-color);
}

.navigation ul {
    list-style: none;
    display: flex;
}

.navigation ul li {
    margin-left: 25px;
}

.navigation a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.navigation a:hover {
    color: var(--secondary-color);
}

.header-contact {
    text-align: right;
}

.header-contact span {
    font-size: 0.9rem;
    color: #777;
    display: block;
}

.phone-number {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-color);
    text-decoration: none;
}

.burger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}
.burger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* ======================= Hero Section ======================= */
.hero {
    background: linear-gradient(rgba(44, 62, 80, 0.7), rgba(44, 62, 80, 0.7)), url('https://via.placeholder.com/1920x1080.png?text=Modern+Kodu+Boileriga') no-repeat center center/cover;
    color: var(--white-color);
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.hero h1 {
    color: var(--white-color);
    font-size: 3rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero .subtitle {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.cta-button, .cta-button-secondary {
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.cta-button {
    background-color: var(--accent-color);
    color: var(--white-color);
    border: 2px solid var(--accent-color);
}

.cta-button:hover {
    background-color: #e67e22;
    border-color: #e67e22;
    transform: translateY(-2px);
}

.cta-button-secondary {
    background-color: transparent;
    color: var(--white-color);
    border: 2px solid var(--white-color);
}
.cta-button-secondary:hover {
    background-color: var(--white-color);
    color: var(--primary-color);
}

/* ======================= Services Section ======================= */
.services {
    background-color: var(--light-gray-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white-color);
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.service-icon {
    max-width: 70px;
    margin-bottom: 1rem;
}

.service-card p {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.learn-more {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 700;
}

/* ======================= CTA Banner ======================= */
.cta-banner {
    background: var(--secondary-color);
    color: var(--white-color);
    text-align: center;
}

.cta-banner h2 {
    color: var(--white-color);
}

/* ======================= Why Clean Section ======================= */
.why-clean-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.why-clean-image img {
    max-width: 100%;
    border-radius: 8px;
}

.why-clean-text ul {
    list-style: none;
    padding-left: 0;
}

.why-clean-text li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.why-clean-text li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: 700;
}


/* ======================= Pricing Section ======================= */
.pricing {
    background-color: var(--light-gray-bg);
}
.price-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.price-table th, .price-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.price-table thead {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.price-table tbody tr:nth-child(even) {
    background-color: var(--white-color);
}
.price-table td:last-child {
    font-weight: 700;
    color: var(--primary-color);
}

.pricing small {
    display: block;
    text-align: center;
    margin-top: 1rem;
    color: #777;
}

/* ======================= Gallery Section ======================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}
.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.gallery-grid img:hover {
    transform: scale(1.05);
    opacity: 0.8;
}

/* ======================= Reviews Section ======================= */
.reviews {
    background-color: var(--light-gray-bg);
}

.review-slider {
    display: flex;
    gap: 30px;
    justify-content: center;
}
.review {
    background: var(--white-color);
    padding: 25px;
    border-left: 5px solid var(--secondary-color);
    border-radius: 5px;
    max-width: 350px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.review p {
    font-style: italic;
    margin-bottom: 1rem;
}
.review h4 {
    color: var(--primary-color);
    text-align: right;
}

/* ======================= FAQ Section ======================= */
.faq-item {
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 10px;
}
.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 15px 0;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--primary-color);
    cursor: pointer;
    position: relative;
    padding-right: 30px;
}
.faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
}
.faq-question.active::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}
.faq-answer p {
    padding: 0 0 15px 0;
}

/* ======================= Contact Section ======================= */
.contact {
    background-color: var(--light-gray-bg);
}

.contact-wrapper {
    display: flex;
    gap: 40px;
    background: var(--white-color);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.contact-form {
    flex: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.contact-form label {
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

.contact-form button {
    grid-column: 1 / -1;
    justify-self: start;
}

.contact-info {
    flex: 1;
    padding-left: 20px;
    border-left: 1px solid #e0e0e0;
}
.contact-info h3, .contact-info h4 {
    margin-bottom: 1rem;
}
.contact-info p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.contact-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
}
.contact-link:hover {
    text-decoration: underline;
}

/* ======================= Footer ======================= */
.footer {
    background: var(--primary-color);
    color: var(--white-color);
    text-align: center;
    padding: 20px 0;
}
.footer a {
    color: var(--white-color);
}


/* ======================= Responsive Design ======================= */
@media(max-width: 992px) {
    .header-container {
        position: relative;
    }
    .navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white-color);
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    .navigation.active {
        display: block;
    }
    .navigation ul {
        flex-direction: column;
    }
    .navigation ul li {
        margin: 0;
        text-align: center;
    }
    .navigation a {
        display: block;
        padding: 15px;
        border-bottom: 1px solid var(--light-gray-bg);
    }
    .header-contact {
        display: none; /* Hide header contact on tablet, show in hero/contact */
    }
    .burger-menu {
        display: block;
    }
    .why-clean-content {
        flex-direction: column;
    }
}


@media(max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .hero h1 { font-size: 2.5rem; }
    
    .contact-wrapper {
        flex-direction: column;
    }
    .contact-info {
        border-left: none;
        padding-left: 0;
        margin-top: 20px;
        border-top: 1px solid #e0e0e0;
        padding-top: 20px;
    }
    .contact-form {
        grid-template-columns: 1fr;
    }
    .form-group.full-width {
        grid-column: auto;
    }
    .review-slider {
        flex-direction: column;
    }
    .review {
        max-width: 100%;
    }
}