/* FurnishFlow Info - Доставка меблів та товарів для дому */

/* Базовий стиль */
* {
    box-sizing: border-box;
}

body {
    font-family: "Open Sans", sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: #ffffff;
}

/* Змінні кольорів */
:root {
    --primary-color: #5d4a9e;
    --secondary-color: #43327e;
    --header-footer-bg: #111a24;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --gradient-purple: linear-gradient(135deg, #5d4a9e, #43327e);
}

/* Хедер */
.header {
    background-color: var(--header-footer-bg);
    padding: 15px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header .navbar-brand {
    color: var(--white) !important;
    font-size: 1.8rem;
    font-weight: 600;
    text-decoration: none;
}

.header .navbar-nav .nav-link {
    color: var(--white) !important;
    font-weight: 500;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.header .navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.header .navbar-toggler {
    border-color: var(--white);
}

.header .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    filter: invert(1);
}

/* Отступ от фиксированного хедера */
body {
    padding-top: 85px;
}

/* Hero-секція з фоновим зображенням */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.6)), url('./img/hero-delivery.webp');
    background-size: cover;
    background-position: center;
    min-height: 90vh;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-section p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Заголовки секцій */
.section-title {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gradient-purple);
    border-radius: 2px;
}

/* Картки переваг */
.advantage-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(93, 74, 158, 0.15);
}

.advantage-card .card-body {
    text-align: center;
}

.advantage-card h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Блок "О компании" з косим контейнером */
.about-section {
    padding: 4rem 0;
    background: var(--light-gray);
}

.about-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    transform: skewY(-2deg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: skewY(2deg) scale(1.1);
}

/* Картки послуг з різними кольорами */
.service-card {
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    /* min-height: 300px; */
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.service-card-1 { background: linear-gradient(135deg, #e8f4fd, #c3e7fc); }
.service-card-2 { background: linear-gradient(135deg, #fff2e8, #ffe4cc); }
.service-card-3 { background: linear-gradient(135deg, #f0f8e8, #e0f2cc); }

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--white);
    font-size: 1.5rem;
}

/* Процес роботи з таймлайном */
.process-step {
    position: relative;
    padding: 1.5rem 0;
    border-left: 3px solid var(--primary-color);
    margin-left: 30px;
    padding-left: 3rem;
}

.process-step::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 1.5rem;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 3px solid var(--white);
}

.process-step h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* FAQ Accordion */
.faq-item {
    background: var(--white);
    border: none;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.faq-item .accordion-button {
    background: var(--white);
    border: none;
    border-radius: 10px;
    color: var(--primary-color);
    font-weight: 600;
    padding: 1.5rem;
}

.faq-item .accordion-button:not(.collapsed) {
    background: var(--light-gray);
    box-shadow: none;
}

.faq-item .accordion-body {
    padding: 1.5rem;
    color: #666;
}

/* Відгуки клієнтів */
.review-card {
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: none;
    position: relative;
    overflow: hidden;
}

.review-card-1 { background: linear-gradient(135deg, #fce8f3, #f8d7e8); }
.review-card-2 { background: linear-gradient(135deg, #e8f5ff, #d1ebff); }
.review-card-3 { background: linear-gradient(135deg, #e8f8e8, #d4f1d4); }

.review-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.review-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

/* Рейтинг зірочок */
.stars {
    color: #ffc107;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* Кнопки */
.btn-primary-custom {
    background: var(--gradient-purple);
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 600;
    color: var(--white);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(93, 74, 158, 0.3);
    color: var(--white);
}

/* Заголовки сторінок */
.page-header {
    padding: 8rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

.page-header-1 { background: linear-gradient(135deg, #e8f4fd, #c3e7fc); }
.page-header-2 { background: linear-gradient(135deg, #fff2e8, #ffe4cc); }
.page-header-3 { background: linear-gradient(135deg, #f0f8e8, #e0f2cc); }
.page-header-4 { background: linear-gradient(135deg, #fce8f3, #f8d7e8); }

.page-header h1 {
    color: var(--primary-color);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0;
}

/* Форма */
.form-control {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(93, 74, 158, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Контакти */
.contact-info {
    background: var(--light-gray);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
}

/* Карта */
.map-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-top: 2rem;
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* Футер */
.footer {
    background-color: var(--header-footer-bg);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 2rem;
    margin-top: 2rem;
    text-align: center;
    color: #ccc;
}

/* Cookie popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    z-index: 9999;
    max-width: 500px;
    margin: 0 auto;
    display: none;
}

.cookie-popup.show {
    display: block;
}

.cookie-popup p {
    margin-bottom: 1rem;
    color: #666;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-buttons .btn {
    flex: 1;
    min-width: 120px;
}

/* Мобільна адаптація */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .hero-section p {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .about-image-container {
        transform: none;
        margin-top: 2rem;
    }
    
    .about-image-container img {
        transform: none;
    }
    
    .process-step {
        margin-left: 15px;
        padding-left: 2rem;
    }
    
    .cookie-popup {
        left: 10px;
        right: 10px;
        padding: 1.5rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .cookie-buttons .btn {
        min-width: auto;
    }
}
