/* Üldised stiilid */
:root {
    --primary-color: #333;
    --secondary-color: #f4f4f4;
    --accent-color: #333;
    --text-color: #333;
    --light-text: #fff;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    background-color: #fff;
    line-height: 1.6;
}

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

h1, h2, h3 {
    font-weight: 700;
}

/* Päis ja navigatsioon */
.header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

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

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-link {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 400;
    padding-bottom: 1px; /* reserve space for active underline */
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active { color: var(--accent-color); }

/* Active page indicator: bold text + black underline */
.nav-link.active {
    font-weight: 700;
    border-bottom: 3px solid #000;
}

/* Hero sektsioon */
.main-hero {
    position: relative;
    height: 95vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-text);
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.6);
    z-index: 1;
}

.hero-text {
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px 40px;
    border-radius: 5px;
}

.hero-text h1 {
    font-size: 4rem;
    margin: 0;
    letter-spacing: 5px;
}

/* Teenuste sektsioon */
.services-section {
    padding: 80px 0;
    background-color: #fff;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 60px;
    color: var(--primary-color);
}

.service-feature {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 80px;
}

.service-feature.reverse {
    flex-direction: row-reverse;
}

.service-feature-text {
    flex: 1;
}

.service-feature-text-group {
    display: flex;
    flex-direction: column;
    gap: 30px;
    flex: 1;
}

.service-feature-text h3 {
    font-size: 2rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 8px;
    margin-bottom: 20px;
}

.service-feature-text h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.service-feature-text p {
    font-size: 1.1rem;
    line-height: 1.7;
}

.service-feature-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.service-feature-image img {
    width: 100%;
    display: block;
}

.service-feature:last-of-type {
    margin-bottom: 0;
}

/* Sisu sektsioon */
.content-section {
    padding: 60px 20px;
    text-align: center;
}

.content-section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
}

/* Teenuste võrgustik */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: left;
}

.service-item {
    background-color: var(--secondary-color);
    padding: 25px;
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.service-item h3 {
    margin-top: 0;
    color: var(--accent-color);
}

/* Pildigalerii */
.gallery-section {
    padding: 80px 0 40px 0;
    background: #232323;
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.image-gallery {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    height: 600px;
    overflow: hidden;
    z-index: 2;
    border-radius: 5px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent;
    color: white;
    border: none;
    font-size: 3rem;
    font-weight: 300;
    cursor: pointer;
    z-index: 10;
    padding: 0 25px;
    transition: transform 0.3s ease, color 0.3s ease;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.slider-btn:hover {
    color: #f0f0f0;
    transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev { left: 20px; }
.slider-btn.next { right: 20px; }

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: white;
}

.gallery-section .section-title {
    color: #fff;
    margin: 0;
}

/* Info sektsioon */
.info-section {
    padding: 40px 0 30px 0;
    background:
        radial-gradient(1200px 700px at 20% 0%, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.0) 60%),
        radial-gradient(900px 600px at 80% 100%, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.0) 55%),
        #2a2a2a; /* lighter graphite for clearer separation */
    position: relative;
    z-index: 1;
}

.info-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    align-items: stretch;
}

.info-column {
    position: relative;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0) 14%),
        #151515; /* raise card tone slightly for better readability */
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.04) inset;
    padding: 36px 32px 32px 32px;
    flex: 1 1 320px;
    min-width: 280px;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s, background 0.3s;
    border: 1px solid #3a3a3a; /* clearer edge on lighter section bg */
    color: #eaeaea;
}

.info-column:hover {
    box-shadow: 0 14px 36px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.06) inset;
    transform: translateY(-4px);
}

/* Accent bar instead of corner brackets */
.info-column::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    bottom: 16px;
    width: 3px;
    background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.55) 60%, rgba(255,255,255,0.25) 100%);
    border-radius: 2px;
    transform: scaleY(0.7);
    transform-origin: center;
    transition: transform 0.35s ease, filter 0.35s ease, opacity 0.35s ease;
    opacity: 0.85;
    z-index: 1;
}

.info-column:hover::before {
    transform: scaleY(1);
    filter: brightness(1.1);
    opacity: 1;
}

/* Soft spotlight glow inside card, aligned with the accent bar */
.info-column::after {
    content: '';
    position: absolute;
    inset: 10px;
    background: radial-gradient(600px 220px at 22px 50%, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.0) 70%);
    pointer-events: none;
    z-index: 0;
}

.info-column h3 {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 18px;
    letter-spacing: 1px;
    font-weight: 700;
}

.info-column p {
    font-size: 1.08rem;
    color: #ffffff;
    margin-bottom: 18px;
    line-height: 1.7;
}

.info-column ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.info-column ul li {
    margin-bottom: 7px;
    font-size: 1.05rem;
    color: #ededed;
    font-weight: 500;
    letter-spacing: 0.2px;
    padding-left: 0.5em;
    position: relative;
}

.info-column ul li:before {
    content: "•";
    color: #ffffff;
    font-size: 1.1em;
    position: absolute;
    left: 0;
    top: 0;
}

/* Kontakti sektsioon */
.contact-section {
    background: #fff;
    padding: 60px 0 60px 0;
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.contact-section .container { text-align: center; }
.contact-section h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 30px;
    color: #121212;
    position: relative;
    z-index: 2;
    display: inline-block;
    padding: 6px 12px;
}

/* Brackets like the "Vaata kõiki" button: TL and BR only */
.contact-section h2::before,
.contact-section h2::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid currentColor;
    pointer-events: none;
}

.contact-section h2::before {
    top: -7px;
    left: -7px;
    border-right: none;
    border-bottom: none;
}

.contact-section h2::after {
    bottom: -7px;
    right: -7px;
    border-left: none;
    border-top: none;
}
.contact-form {
    max-width: 100%;
    margin: 0;
    background: #292828; /* richer charcoal */
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.45);
    display: grid;
    gap: 20px;
    position: relative;
    z-index: 2;
    border: 1px solid #2a2a2a;
    color: #f0f0f0;
}

/* Restore side-by-side layout for contact form and map */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: stretch;
}
/*
.contact-form::before,
.contact-form::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border: 2px solid #121212;
    pointer-events: none;
}
*/

.contact-form::before {
    top: -9px;
    left: -9px;
    border-right: none;
    border-bottom: none;
}

.contact-form::after {
    bottom: -9px;
    right: -9px;
    border-left: none;
    border-top: none;
}

.map-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0,0,0,0.4);
    height: 100%;
    border: 1px solid #2b2b2b;
}

.map-container::before,
.map-container::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid #fff;
    pointer-events: none;
    z-index: 2;
}

.map-container::before {
    top: 10px;         /* inside the clipped box */
    right: 10px;       /* top-right */
    border-left: none; /* show top + right */
    border-bottom: none;
}

.map-container::after {
    bottom: 10px;      /* inside the clipped box */
    left: 10px;        /* bottom-left */
    border-right: none;/* show bottom + left */
    border-top: none;
}

.map-container iframe {
    display: block;
    height: 100%;
}


.form-group {
    width: 100%;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 16px;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    background-color: #f0f0f0;
    color: #333;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
    box-sizing: border-box;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9a9a9a;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e0e0e0;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.07), inset 0 1px 0 rgba(255,255,255,0.05);
}

/* submit button styled to match corner-accent language */

.btn-submit {
    background: #1e1e1e; /* solid charcoal */
    color: #ffffff;
    padding: 12px 26px;
    border: 2px solid #949393;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 700;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.1s ease, box-shadow 0.25s ease;
    justify-self: center;
    position: relative;
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

.btn-submit::before {
    top: -7px;
    left: -7px;
    border-right: none;
    border-bottom: none;
}

.btn-submit::after {
    bottom: -7px;
    right: -7px;
    border-left: none;
    border-top: none;
}

.btn-submit:hover {
    background: #ffffff;
    color: #000000;
    box-shadow: 0 12px 28px rgba(0,0,0,0.45);
}

.btn-submit:hover::before,
.btn-submit:hover::after {
    border-color: #000;
    transform: scale(1.2);
}

.btn-submit:active {
    transform: translateY(1px) scale(0.99);
}

.section-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 60px;
    position: relative;
}

.section-header .section-title {
    margin-bottom: 0;
}

.btn-view-all {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background-color: #000;
    color: #fff;
    padding: 12px 24px;
    text-decoration: none;
    font-weight: 700;
    border: 2px solid #444;
    transition: all 0.3s ease;
}

.btn-view-all span {
    position: relative;
    z-index: 1;
}

.btn-view-all::before,
.btn-view-all::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    border: 2px solid #fff;
    transition: all 0.3s ease;
}

.btn-view-all::before {
    top: -7px;
    left: -7px;
    border-right: none;
    border-bottom: none;
}

.btn-view-all::after {
    bottom: -7px;
    right: -7px;
    border-left: none;
    border-top: none;
}

.btn-view-all:hover {
    background-color: #fff;
    color: #000;
}

.btn-view-all:hover::before,
.btn-view-all:hover::after {
    border-color: #000;
    transform: scale(1.2);
}


/* Jalus */
.footer {
    background-color: var(--primary-color);
    color: var(--light-text);
    text-align: center;
    padding: 20px 0;
}

/* Reageeriv disain */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 15px 0;
    }
    .nav-links {
        margin-top: 15px;
    }
    .hero-text h1 {
        font-size: 2.5rem;
    }
    .section-header {
        justify-content: center;
    }
    .btn-view-all {
        position: static;
        transform: none;
        margin-top: 12px;
    }
    /* Stack contact form and map on small screens */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .map-container {
        height: 380px;
    }
}
