/* 
* Карпатські Зруби - Custom CSS
* Custom styles for log house construction company website
*/

/* Global Styles */
:root {
    --wood-dark: #5D4037;
    --wood-medium: #795548;
    --wood-light: #A1887F;
    --forest-green: #2E7D32;
    --mountain-blue: #1565C0;
    --sky-blue: #42A5F5;
    --earth-brown: #8D6E63;
    --cream: #EFEBE9;
}

body {
    font-family: 'Roboto', 'Open Sans', sans-serif;
    color: #212121;
    background-color: #FFFFFF;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto Slab', 'Roboto', serif;
    font-weight: 700;
}

.btn-primary {
    background-color: var(--wood-dark);
    border-color: var(--wood-dark);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--wood-medium);
    border-color: var(--wood-medium);
}

.btn-outline-primary {
    color: var(--wood-dark);
    border-color: var(--wood-dark);
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
    background-color: var(--wood-dark);
    border-color: var(--wood-dark);
}

.text-primary {
    color: var(--wood-dark) !important;
}

.bg-primary {
    background-color: var(--wood-dark) !important;
}

.border-primary {
    border-color: var(--wood-dark) !important;
}

/* Navigation */
.navbar-dark {
    background-color: var(--wood-dark) !important;
}

.navbar-brand img {
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
}

.navbar .phone-link {
    transition: all 0.3s ease;
}

.navbar .phone-link:hover {
    color: var(--wood-light) !important;
}

#feedback-btn {
    border-color: var(--wood-light);
    transition: all 0.3s ease;
}

#feedback-btn:hover {
    background-color: var(--wood-light);
    border-color: var(--wood-light);
    transform: translateY(-2px);
}

/* Footer */
footer {
    background-color: var(--wood-dark) !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 85vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/img_17.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: slowZoom 30s infinite alternate;
}

@keyframes slowZoom {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.hero-content {
    z-index: 10;
    position: relative;
    width: 100%;
    padding: 0 20px;
    text-align: center;
    max-width: 1000px;
}

.hero-content h1 {
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    text-align: center;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    font-size: 3.5rem;
    line-height: 1.2;
}

.hero-content .lead {
    font-size: 1.3rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 2rem;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.8);
}

.hero-content .lead p {
    margin-bottom: 0.7rem;
}

.hero-content .btn {
    font-size: 1.1rem;
    padding: 0.8rem 1.8rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-content .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* Featured Projects */
.project-img-container {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.project-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.project-img:hover {
    transform: scale(1.05);
}

.project-img-1 {
    background-image: url('../photos/karpatian_dream_01.jpeg');
}

.project-img-2 {
    background-image: url('../photos/zatyshok_02.jpeg');
}

.project-img-3 {
    background-image: url('../photos/karpat_sadyba_03.jpeg');
}

/* Benefits Section */
.benefits-section {
    padding: 5rem 0;
    background-color: #fff;
}

.benefits-section .card {
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.benefits-section .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.benefits-section .card-body {
    padding: 2rem;
}

.benefits-section .feature-icon {
    margin-bottom: 1.5rem;
    height: 80px;
    width: 80px;
    border-radius: 50%;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.benefits-section h3 {
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: var(--wood-dark);
}

.benefits-section p {
    color: #555;
    line-height: 1.6;
}

@media (max-width: 992px) {
    .benefits-section .card {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 768px) {
    .benefits-section {
        padding: 4rem 0;
    }
}

@media (max-width: 576px) {
    .benefits-section {
        padding: 3rem 0;
    }
    
    .benefits-section .card-body {
        padding: 1.5rem;
    }

    .navbar > .container {
        display: flex;
        justify-content: center;
    }
}

.benefit-img {
    height: 250px;
    background-size: cover;
    background-position: center;
    background-image: url('../img/img_10.jpg');
}

/* Testimonials */
.testimonial-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-image: url('../img/img_25.jpg');
    background-size: cover;
    background-position: center;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Price Page */
.price-header {
    background-color: var(--cream);
    padding: 80px 0;
}

.card-highlight {
    transform: scale(1.05);
    border: 2px solid var(--wood-dark) !important;
    z-index: 1;
}

.package-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--wood-dark);
}

.price-tag {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--wood-dark);
}

.price-project-img-container {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.price-project-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.price-project-img:hover {
    transform: scale(1.05);
}

.price-project-img-1 {
    background-image: url('../img/img_30.jpg');
}

.price-project-img-2 {
    background-image: url('../img/img_31.jpg');
}

.price-project-img-3 {
    background-image: url('../img/img_32.jpg');
}

.price-project-img-4 {
    background-image: url('../img/img_33.jpg');
}

.price-project-img-5 {
    background-image: url('../img/img_34.jpg');
}

.price-project-img-6 {
    background-image: url('../img/img_35.jpg');
}

/* About Page */
.about-header {
    background-color: var(--cream);
    padding: 80px 0;
}

.about-img {
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: 5px;
}

.about-story-img {
    height: 400px;
    background-image: url('../img/img_11.jpg');
    background-size: cover;
    background-position: center;
}

.team-img-container {
    height: 250px;
    overflow: hidden;
    border-top-left-radius: 0.375rem;
    border-top-right-radius: 0.375rem;
}

.team-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center top;
}

.team-img-1 {
    background-image: url('../img/img_21.jpg');
}

.team-img-2 {
    background-image: url('../img/img_23.jpg');
}

.team-img-3 {
    background-image: url('../img/img_19.jpg');
}

.team-img-4 {
    background-image: url('../img/img_25.jpg');
}

.process-timeline {
    position: relative;
    padding-left: 50px;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    height: 100%;
    width: 2px;
    background-color: var(--wood-medium);
}

.process-item {
    position: relative;
    margin-bottom: 40px;
}

.process-item:last-child {
    margin-bottom: 0;
}

.process-icon {
    position: absolute;
    left: -50px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--wood-dark);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.process-content {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Gallery Page */
.gallery-header {
    background-color: var(--cream);
    padding: 80px 0;
}

.filter-buttons {
    margin-bottom: 20px;
}

.gallery-img-container {
    height: 250px;
    overflow: hidden;
    position: relative;
    border-top-left-radius: 0.375rem;
    border-top-right-radius: 0.375rem;
}

.gallery-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

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

.gallery-img-1 {
    background-image: url('../img/img_02.jpg');
}

.gallery-img-2 {
    background-image: url('../img/img_03.jpg');
}

.gallery-img-3 {
    background-image: url('../img/img_04.jpg');
}

.gallery-img-4 {
    background-image: url('../img/img_05.jpg');
}

.gallery-img-5 {
    background-image: url('../img/img_06.jpg');
}

.gallery-img-6 {
    background-image: url('../img/img_07.jpg');
}

.gallery-img-7 {
    background-image: url('../img/img_12.jpg');
}

.gallery-img-8 {
    background-image: url('../img/img_13.jpg');
}

.gallery-img-9 {
    background-image: url('../img/img_14.jpg');
}

.gallery-img-10 {
    background-image: url('../img/img_15.jpg');
}

.gallery-img-11 {
    background-image: url('../img/img_16.jpg');
}

.gallery-img-12 {
    background-image: url('../img/img_17.jpg');
}

.process-img-container {
    height: 200px;
    overflow: hidden;
    position: relative;
    border-top-left-radius: 0.375rem;
    border-top-right-radius: 0.375rem;
}

.process-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.process-img:hover {
    transform: scale(1.05);
}

.process-img-1 {
    background-image: url('../img/img_40.jpg');
}

.process-img-2 {
    background-image: url('../img/img_42.jpg');
}

.process-img-3 {
    background-image: url('../img/img_43.jpg');
}

.process-img-4 {
    background-image: url('../img/img_44.jpg');
}

.video-placeholder {
    border-top-left-radius: 0.375rem;
    border-top-right-radius: 0.375rem;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .card-highlight {
        transform: none;
    }

    .process-timeline {
        padding-left: 40px;
    }

    .process-timeline::before {
        left: 15px;
    }

    .process-icon {
        left: -40px;
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .hero-content {
        width: 100%;
        max-width: 100%;
        padding: 0 15px;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-content .lead {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 70vh;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        width: 100%;
        text-align: center;
    }
    
    .hero-content .lead {
        font-size: 1.1rem;
    }
    
    .hero-content .btn {
        font-size: 1rem;
        padding: 0.7rem 1.5rem;
    }

    .about-img {
        height: 300px;
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        height: 90vh;
        min-height: 550px;
    }

    .hero-content h1 {
        font-size: 2rem;
        width: 100%;
    }
    
    .hero-content .lead {
        font-size: 1rem;
    }
    
    .hero-content .lead p {
        margin-bottom: 1rem;
    }
    
    .hero-content .d-flex {
        flex-direction: column;
    }
    
    .hero-content .btn {
        margin-bottom: 0.5rem;
    }

    .project-img-container,
    .price-project-img-container,
    .team-img-container,
    .gallery-img-container,
    .process-img-container {
        height: 200px;
    }
}

/* Nature Harmony Section */
.nature-harmony {
    padding: 5rem 0;
    background-color: #f9f7f5;
    position: relative;
}

.nature-harmony:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://source.unsplash.com/random/1600x900/?forest,leaves,pattern');
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    z-index: 0;
}

.nature-harmony .container {
    position: relative;
    z-index: 1;
}

.nature-harmony h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--wood-dark);
}

.nature-harmony h3 {
    color: var(--forest-green);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.nature-harmony .lead {
    color: #333;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .nature-harmony h2 {
        font-size: 2.5rem;
    }
    
    .nature-harmony .lead {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .nature-harmony {
        padding: 3rem 0;
    }
    
    .nature-harmony h2 {
        font-size: 2rem;
    }
    
    .nature-harmony h3 {
        font-size: 1.3rem;
    }
    
    .nature-harmony .lead {
        font-size: 1rem;
    }
}
