/* Custom CSS for Vinyl-installer Homepage */

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Override Bootstrap bg-black class */
.bg-black {
    --bs-bg-opacity: 1;
    background-color: rgb(29, 27, 24) !important;
}

.custom-dark {
    background-color: rgb(29, 27, 24) !important;
}

/* Header Styles */
header {
    background-color: rgb(29, 27, 24) !important;
    z-index: 1030;
}

.logo {
    max-height: 50px;
    width: auto;
}

.navbar-brand {
    padding: 0;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-subtitle {
    font-size: 10px;
    color: #ccc;
    font-weight: 300;
    margin-top: -3px;
    letter-spacing: 0.5px;
    text-transform: lowercase;
    line-height: 1;
}

.navbar-nav .nav-link {
    font-weight: 500;
   
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #ccc !important;
}

.language-switcher a {
    font-size: 14px;
    transition: color 0.3s ease;
}

.language-switcher a:hover {
    color: #ccc !important;
}

.phone-number {
    font-weight: 500;
}

.phone-number a {
    transition: color 0.3s ease;
}

.phone-number a:hover {
    color: #ccc !important;
}

/* Hero Section */
.hero-section {
    padding-top: 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.hero-content {
    padding: 4rem 3rem;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #000;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-subtitle {
    font-size: 1.6rem;
    margin-bottom: 3rem;
    color: #495057;
    line-height: 1.6;
    font-weight: 400;
}

.hero-buttons {
    margin-top: 3rem;
}

.hero-buttons .btn {
    margin-bottom: 15px;
    padding: 15px 35px;
    font-weight: 600;
    border-radius: 8px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

.hero-buttons .btn-dark {
    background: linear-gradient(45deg, rgb(29, 27, 24), #333);
    border: none;
}

.hero-buttons .btn-outline-dark {
    border: 2px solid rgb(29, 27, 24);
    color: rgb(29, 27, 24);
    font-weight: 600;
}

.hero-buttons .btn-outline-dark:hover {
    background: rgb(29, 27, 24);
    border-color: rgb(29, 27, 24);
}

/* Desktop Video */
.hero-video-desktop {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-video-desktop iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* 16:9 aspect ratio */
    min-height: 100vh;
    min-width: 177.77vh; /* 16:9 aspect ratio */
    transform: translate(-50%, -50%);
    border: none;
}

/* Mobile Video */
.hero-video-mobile {
    position: relative;
    width: 100%;
    margin-top: 80px; /* Account for fixed header */
    margin-bottom: 0;
}

.video-wrapper-mobile {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-wrapper-mobile iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Mobile hero content adjustments */
@media (max-width: 991px) {
    .hero-section {
        padding-top: 0;
    }
    
    .hero-content {
        padding: 3rem 2rem 2rem 2rem;
        text-align: center;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        min-height: auto;
    }
}

/* Remove old video styles */
.hero-video,
.video-wrapper {
    display: none;
}

/* Advantages Section */
.advantage-card {
    padding: 2rem 1rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.advantage-icon {
    margin-bottom: 1rem;
}

.advantage-card h4 {
    color: #000;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Stats Section */
#stats {
    background-color: rgb(29, 27, 24) !important;
}

.stat-item {
    padding: 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}

.stat-item p {
    font-size: 1.1rem;
    color: #ccc;
    margin: 0;
}

/* Portfolio Section */
.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    height: 300px; /* ДОДАНО - фіксована висота */
}

.portfolio-item a {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%; /* ДОДАНО */
}

.portfolio-item img {
    width: 100%; /* ДОДАНО */
    height: 100%; /* ДОДАНО */
    object-fit: cover; /* ДОДАНО - обрізає зображення пропорційно */
    object-position: center; /* ДОДАНО - центрує зображення */
}

.portfolio-item:hover {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #fff;
    text-align: center;
    padding: 1rem;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h5 {
    margin-bottom: 1rem;
    font-weight: 600;
}

.portfolio-overlay i {
    margin-bottom: 1rem;
    color: #fff;
}

/* ДОДАЙТЕ ці нові стилі для кнопки з оком */
.portfolio-overlay .btn {
    background-color: #000 !important;
    border: 2px solid #fff !important;
    color: #fff !important;
    padding: 10px 20px !important;
    border-radius: 10px !important;
    transition: all 0.3s ease;
}

.portfolio-overlay .btn:hover {
    background-color: #fff !important;
    color: #000 !important;
    transform: scale(1.1);
}

.portfolio-overlay .btn i {
    margin: 0 !important;
    font-size: 1.2rem;
}


.portfolio-overlay .btn:hover i {
    color: #000 !important;
}

/* GLightbox custom styles */
.glightbox-clean .gslide-description {
    background: rgba(29, 27, 24, 0.95);
    color: #fff;
}

/* Адаптивність для мобільних */
@media (max-width: 768px) {
    .portfolio-item {
        height: 250px; /* ДОДАНО - менша висота на мобільних */
    }
}



/* CTA Section */
#cta {
    background-color: rgb(29, 27, 24) !important;
}

#cta .lead {
    color: #ccc;
}

/* Reviews Section */
.review-card {
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.stars {
    font-size: 1.2rem;
}

.review-text {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    color: #555;
}

.reviewer-name {
    font-weight: 600;
    color: #000;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    color: #000;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: #000;
    border-radius: 50%;
    padding: 20px;
}

/* Contact Form Section */
.contact-form {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-form .form-label {
    font-weight: 600;
    color: #000;
    margin-bottom: 0.5rem;
}

.contact-form .form-control,
.contact-form .form-select {
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    transition: border-color 0.3s ease;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: #000;
    box-shadow: 0 0 0 0.2rem rgba(0,0,0,0.25);
}

/* Footer Styles */
footer {
    background-color: rgb(29, 27, 24) !important;
}

.footer-logo {
    max-height: 40px;
    width: auto;
}

footer h5 {
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 600;
}

footer ul li {
    margin-bottom: 0.5rem;
}

footer ul li a:hover {
    color: #fff !important;
}

.contact-info p {
    margin-bottom: 0.5rem;
    color: #ccc;
}

.social-links a {
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #ccc !important;
}

/* Modal Styles */
.modal-content {
    border-radius: 10px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    border-radius: 10px 10px 0 0;
}

.modal-title {
    font-weight: 600;
    color: #000;
}

.modal-body .form-label {
    font-weight: 600;
    color: #000;
}

.modal-body .form-control,
.modal-body .form-select {
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    transition: border-color 0.3s ease;
}

.modal-body .form-control:focus,
.modal-body .form-select:focus {
    border-color: #000;
    box-shadow: 0 0 0 0.2rem rgba(0,0,0,0.25);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 0;
        padding-bottom: 0;
    }
    
    .hero-video-mobile {
        margin-top: 70px; /* Fixed header height */
        margin-bottom: 0;
        order: -1; /* Ensure video comes first */
    }
    
    .hero-content {
        padding: 0 1.5rem 1.5rem 1.5rem;
        text-align: center;
        order: 2;
    }
    
    .hero-title {
        font-size: 2.4rem;
        margin-bottom: 1.5rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        margin-top: 2rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 15px;
        margin-right: 0 !important;
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .video-wrapper-mobile {
        border-radius: 0;
        overflow: hidden;
    }
    
    .video-wrapper-mobile iframe {
        border-radius: 0;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .advantage-card {
        margin-bottom: 2rem;
    }
    
    .portfolio-item {
        margin-bottom: 2rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .phone-number {
        margin-top: 10px;
    }
    
    .language-switcher {
        margin-bottom: 10px;
    }
}

@media (min-width: 769px) and (max-width: 991px) {
    .hero-content {
        padding: 3rem 2rem;
    }
    
    .hero-title {
        font-size: 3.6rem;
        margin-bottom: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
        margin-bottom: 2.5rem;
    }
    
    .hero-buttons .btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

    
    .logo {
        max-height: 40px;
    }
    
.logo-subtitle {
    font-size: 10px;
    color: #ccc;
    font-weight: 300;
    margin-top: 3px;
    letter-spacing: 0.5px;
    text-transform: lowercase;
    line-height: 1;
}

.logo-subtitle a,
.logo-subtitle .logo-link {
    color: #ccc !important;
    text-decoration: none !important;
    transition: color 0.3s ease;
    font-size: 10px !important;
    font-weight: 300 !important;
    letter-spacing: 0.5px !important;
}

.logo-subtitle a:hover,
.logo-subtitle .logo-link:hover {
    color: #fff !important;
    text-decoration: none !important;
}

a.logo-link {
    color: #ccc !important;
    text-decoration: none !important;
    font-size: 10px !important;
    font-weight: 300 !important;
    letter-spacing: 0.5px !important;
}

a.logo-link:hover {
    color: #fff !important;
}

.navbar-nav .nav-link {
        margin: 5px 0;
    }
    
    .review-card {
        padding: 1.5rem;
    }
    
    .advantage-card {
        padding: 1.5rem 1rem;
    }
}

/* Animation for counter */
@keyframes countUp {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.stat-number.animated {
    animation: countUp 0.5s ease-in-out;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Button hover effects */
.btn-dark:hover {
    background-color: #333;
    border-color: #333;
}

.btn-outline-dark:hover {
    background-color: #000;
    border-color: #000;
}

/* Loading animation */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Success message styles */
.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
    border-radius: 5px;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
    border-radius: 5px;
}





























@media (max-width: 991px) {
    /* Скасовуємо space-between від Bootstrap */
    header .navbar .container-fluid {
        justify-content: flex-start !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* Логотип зліва без відступів */
    header .navbar-brand {
        margin-right: 0 !important;
        padding-left: 0 !important;
    }
    
    /* Кнопка меню справа з авто-відступом */
    header .navbar-toggler {
        margin-left: auto !important;
    }
    
    /* Логотип з написом в один рядок */
    .logo-container {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 8px !important;
    }
    
    .logo-container .logo {
        display: block !important;
    }
    
    .logo-container .logo-subtitle {
        margin-top: 0 !important;
        margin-left: 0 !important;
        white-space: nowrap;
    }
    
    /* Меню на новий рядок */
    header .navbar-collapse {
        width: 100%;
        margin-top: 10px;
    }
    
    /* Відео під хедером */
    .hero-video-mobile {
        margin-top: 70px !important;
    }
}

/* Десктоп - напис під логотипом */
@media (min-width: 992px) {
    .logo-container {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .logo-subtitle {
        margin-top: -3px;
        margin-left: 0;
    }

	.navbar-nav .nav-link {
        margin: 0 12px !important;
        padding: 0.5rem 0.5rem !important;
    }
}




.review-author {
    margin-top: 1rem;
}

.review-date {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    margin-bottom: 0;
    color: #6c757d;
}

.review-date i {
    opacity: 0.7;
}

/* Стилі для незаповнених зірочок */
.stars .far {
    color: #ffc107;
    opacity: 0.3;
}






@media (max-width: 991px) {
    .phone-mobile-full {
        flex-basis: 100%;
    }
}