/* CSS VARIABLES - Color Palette & Settings */
:root {
    /* Colors */
    --dark-brown: #4A332D;
    --leather-brown: #8B5E3C;
    --sand: #C9A86A;
    --cream: #F5F1E8;
    --anthracite: #2B2B2B;
    --brass: #C7A25A;
    --white: #FFFFFF;
    
    /* Typography */
    --font-heading: 'Merriweather', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing & Utilities */
    --section-padding: 100px 20px;
    --border-radius: 4px; /* Minimal border radius for industrial feel */
    --transition: all 0.3s ease-in-out;
    --shadow-soft: 0 10px 30px rgba(43, 43, 43, 0.08);
    --shadow-hard: 0 4px 6px rgba(0, 0, 0, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--dark-brown);
    margin-bottom: 1rem;
    line-height: 1.2;
}

p {
    margin-bottom: 1.5rem;
    color: #444;
}

a {
    text-decoration: none;
    color: var(--leather-brown);
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: left;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 15px;
    display: block;
    width: fit-content; /* Koonduvad täpselt teksti pikkuseks, et joon ei läheks üle ekraani */
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    transform: none;
    width: 100%;
    height: 3px;
    background-color: var(--brass);
}

.section-subtitle {
    text-align: left;
    max-width: 700px;
    margin: 0 0 4rem 0;
    font-size: 1.1rem;
    color: #555;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-transform: uppercase;
}

.btn-primary {
    background-color: var(--dark-brown);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--anthracite);
    color: var(--brass);
    box-shadow: var(--shadow-hard);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--brass);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--brass);
    color: var(--dark-brown);
}

/* NAVIGATION */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
}

nav.scrolled {
    background-color: rgba(74, 51, 45, 0.98);
    padding: 10px 0;
    box-shadow: var(--shadow-hard);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    height: 50px;
}

.logo img {
    height: 100%;
    width: auto;
    background-color: transparent !important;
}

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

.nav-links a {
    color: var(--white);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--brass);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    border: none;
    background: none;
    color: var(--white);
    font-size: 1.5rem;
}

/* LANGUAGE SWITCHER */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-switch a {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    position: relative;
}

.lang-switch a.active,
.lang-switch a:hover {
    color: var(--brass);
}

.lang-switch span {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
}

/* HERO SECTION */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    background-color: var(--anthracite);
    background-image: linear-gradient(rgba(43, 43, 43, 0.85), rgba(74, 51, 45, 0.85)), url('data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221920%22%20height%3D%221080%22%20viewBox%3D%220%200%201920%201080%22%3E%3Crect%20fill%3D%22%232b2b2b%22%20width%3D%221920%22%20height%3D%221080%22%2F%3E%3C%2Fsvg%3E');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    text-align: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    color: var(--white);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 2.5rem;
    letter-spacing: -1px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* ABOUT SECTION */
.about {
    padding: var(--section-padding);
    background-color: var(--cream);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: clamp(2rem, 3vw, 2.5rem);
}

.about-text p {
    font-size: 1.1rem;
}

.about-image {
    position: relative;
}

.about-image img {
    position: relative;
    z-index: 1;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
}

/* SERVICES SECTION */
.services {
    padding: var(--section-padding);
    background-color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

/* Kuvab arvutiekraanil 5 kasti kenasti ühes reas kõrvuti */
@media (min-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.service-card {
    background-color: var(--cream);
    padding: 40px 20px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(201, 168, 106, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-soft);
    background-color: var(--dark-brown);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--brass);
    margin-bottom: 20px;
}

.service-card:hover .service-icon {
    color: var(--sand);
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    transition: var(--transition);
}

.service-card:hover h3, 
.service-card:hover p {
    color: var(--white);
}

/* WHY US SECTION */
.why-us {
    padding: var(--section-padding);
    background-color: var(--anthracite);
    color: var(--white);
}

.why-us .section-title {
    color: var(--white);
}

.why-us .section-subtitle {
    color: #bbb;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: var(--border-radius);
    border-left: 3px solid var(--brass);
    transition: var(--transition);
}

.feature-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(10px);
}

.feature-icon {
    color: var(--brass);
    font-size: 1.5rem;
}

.feature-item h4 {
    color: var(--white);
    margin-bottom: 0;
    font-family: var(--font-body);
    font-weight: 500;
}

/* GALLERY SECTION */
.gallery {
    padding: var(--section-padding);
    background-color: var(--cream);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    cursor: pointer;
    aspect-ratio: 4/3;
    background-color: #e5e0d8;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(74, 51, 45, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-overlay i {
    color: var(--white);
    font-size: 2rem;
    transform: scale(0.5);
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

/* CAPABILITY (B2B) SECTION */
.capability {
    padding: var(--section-padding);
    background-color: var(--white);
    border-top: 1px solid #E5E0D8;
}

/* FAQ / KKK */
.faq {
    padding: var(--section-padding);
    background-color: var(--cream);
}

.faq-list {
    max-width: 820px;
    margin: 40px 0 0;
}

.faq-item {
    border-bottom: 1px solid #E0D8C8;
}

.faq-item summary {
    cursor: pointer;
    padding: 22px 0;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark-brown);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.6rem;
    line-height: 1;
    color: var(--brass);
    transition: var(--transition);
    flex-shrink: 0;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 0 22px;
}

.faq-answer p {
    margin-bottom: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
    margin-top: 40px;
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--brass);
    margin-bottom: 10px;
    font-family: var(--font-body);
    font-weight: 700;
}

.stat-item p {
    font-weight: 600;
    color: var(--dark-brown);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* CONTACT SECTION */
.contact {
    padding: var(--section-padding);
    background-color: var(--cream);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    background-color: var(--white);
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
}

.contact-info h3 {
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.info-item i {
    color: var(--brass);
    font-size: 1.2rem;
    margin-top: 5px;
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 1rem;
    background-color: var(--cream);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--brass);
    background-color: var(--white);
}

textarea.form-control {
    height: 150px;
    resize: vertical;
}

.form-submit {
    width: 100%;
    border: none;
}

#form-message {
    margin-top: 15px;
    font-weight: 600;
    display: none;
}

.success-msg { color: #28a745; }
.error-msg { color: #dc3545; }

/* FOOTER */
footer {
    background-color: var(--anthracite);
    color: #aaa;
    padding: 60px 20px 20px;
    text-align: center;
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 20px;
    background-color: transparent !important;
}

.footer-links {
    margin: 30px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #aaa;
}

.footer-links a:hover {
    color: var(--brass);
}

.copyright {
    margin-top: 40px;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
}

/* LIGHTBOX */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border: 4px solid var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--brass);
    transform: scale(1.1);
}

/* BACK TO TOP */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--dark-brown);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-hard);
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    background-color: var(--brass);
    color: var(--dark-brown);
}

/* SCROLL REVEAL ANIMATIONS */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
    .about-content {
        grid-template-columns: 1fr;
    }
    .about-image {
        order: -1;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .nav-right {
        gap: 18px;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(74, 51, 45, 0.98);
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }

    .nav-links.active {
        max-height: 400px;
    }

    .nav-links li {
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .nav-links a {
        display: block;
        padding: 15px 0;
    }

    .hamburger {
        display: block;
    }

    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .contact-container {
        padding: 30px 20px;
    }
}
