/* Custom CSS for "Цветы для любимых" */

/* Variables for colors */
:root {
    --primary-pink: #ec5487; /* Ярко-розовый/малиновый */
    --light-pink: #f7bab6;   /* Нежно-розовый */
    --fresh-green: #71a95b;  /* Насыщенный зеленый */
    --text-dark: #333333;
    --text-light: #666666;
    --bg-white: #FFFFFF;
    --bg-offwhite: #FDFBF8; /* Слоновая кость */
    --footer-bg: #333333; /* Темный фон для футера */
}

/* Base Styles */
html {
    scroll-behavior: smooth; /* Плавный скролл по якорям */
}

body {
    font-family: 'Open Sans', sans-serif; /* Основной шрифт для текста */
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white); /* Весь фон страницы белый */
    margin: 0;
    display: flex; /* Используем flexbox для body */
    flex-direction: column; /* Элементы внутри body располагаются колонкой */
    min-height: 100vh; /* Body занимает всю высоту viewport */
}

/* Обертка для центрирования колонки и белого фона по краям */
.body-wrapper {
    background-color: var(--bg-white); /* Фон по краям */
    flex-grow: 1; /* Растягивается, чтобы заполнить доступное пространство */
    display: flex;
    flex-direction: column;
    align-items: center; /* Центрирует .custom-container по горизонтали */
}

.custom-container {
    max-width: 1200px; /* Ограничение ширины контента */
    width: 100%; /* Занимает всю доступную ширину до max-width */
    background-color: var(--bg-offwhite); /* Фон центральной колонки - слоновая кость */
    box-shadow: 0 0 20px rgba(0,0,0,0.05); /* Легкая тень для отделения от белого фона */
    padding-left: 15px;
    padding-right: 15px;
    display: flex;
    flex-direction: column; /* Для правильного размещения header, main и footer внутри */
    flex-grow: 1; /* Позволяет контейнеру растягиваться */
}

/* Header */
.header {
    background-color: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1020; /* Выше чем модальные окна, но ниже чем navbar-toggler в Bootstrap */
    padding-top: 10px;
    padding-bottom: 10px;
}

.navbar-brand {
    font-family: 'Montserrat', sans-serif; /* Шрифт для логотипа */
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.1rem;
    color: var(--primary-pink) !important;
    text-decoration: none;
}

.navbar-brand img {
    border-radius: 50%;
    object-fit: cover;
}

.nav-link {
    font-family: 'Montserrat', sans-serif; /* Шрифт для навигационных ссылок */
    font-weight: 600;
    color: var(--text-dark) !important;
    margin: 0 10px;
    transition: color 0.3s ease;
    padding: 8px 0; /* Уменьшаем padding для ссылок */
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-pink) !important;
}

/* Navbar Toggler Icon Color */
.navbar-toggler {
    border-color: rgba(0,0,0,.1);
}
.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%28236, 84, 135, 0.7%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Main Content Area */
main {
    flex-grow: 1; /* Позволяет основной части контента растягиваться, отодвигая футер вниз */
}

/* Hero Section */
.hero-section {
    background-image: url('../pic/main_big_pic.jpg');
    background-size: cover;
    background-position: center;
    min-height: 80vh;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    padding-bottom: 80px;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3); /* Затемнение для читаемости текста */
    z-index: -1;
}

.hero-section h1 {
    font-family: 'Montserrat', sans-serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-size: 3.5rem; /* Увеличиваем размер для десктопа */
}

.hero-section p {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
    font-size: 1.25rem;
}

.btn-primary {
    background-color: var(--primary-pink);
    border-color: var(--primary-pink);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #d14a79; /* Немного темнее primary-pink */
    border-color: #d14a79;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-outline-light {
    border-radius: 30px;
    font-weight: 600;
    padding: 12px 30px;
    transition: all 0.3s ease;
    color: var(--bg-white);
    border: 2px solid var(--bg-white);
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Discount Section */
.discount-section {
    background-color: var(--light-pink);
    color: var(--text-dark);
    padding: 1.5rem 0;
}

.discount-section h2 {
    color: var(--primary-pink);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

/* Section Titles */
.section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--primary-pink);
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

/* Advantages Section */
.advantages-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}
.advantage-item {
    background-color: var(--bg-white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 220px; /* Для выравнивания по высоте */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
}

.advantage-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.text-fresh-green {
    color: var(--fresh-green);
}

.prod-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.bg-light-pink {
    background-color: var(--light-pink);
}

.prod-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    background-color: var(--bg-white);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.prod-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.prod-card img {
    height: 250px;
    object-fit: cover;
    width: 100%;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.prod-card .card-title {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-pink);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.prod-card .card-text {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* Modals */
.modal-content {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modal-header {
    background-color: var(--primary-pink);
    color: var(--bg-white);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.modal-title {
    font-family: 'Montserrat', sans-serif;
    color: var(--bg-white); /* Цвет заголовка модалки */
    font-weight: 600;
}

.btn-close {
    filter: invert(1); /* Делает крестик белым */
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5); /* Фон для стрелок карусели */
    border-radius: 50%;
    padding: 15px;
}
.carousel-control-prev, .carousel-control-next {
    width: 10%; /* Уменьшаем область клика для стрелок */
}

/* Delivery Section */
.delivery-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}
.delivery-list {
    font-size: 1.1rem;
    line-height: 2;
    padding-left: 0; /* Убираем стандартный padding для ul */
    list-style: none; /* Убираем стандартные маркеры списка */
}

.delivery-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
}

.delivery-list li .fas {
    margin-top: 4px; /* Выравнивание иконки с текстом */
}

/* What to Know Section */
.what-to-know-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}
.info-block {
    background-color: var(--bg-white);
    border-left: 5px solid var(--primary-pink);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-radius: 8px;
    padding: 2rem;
}
.info-block h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-pink);
    font-weight: 600;
}

/* Contacts Section */
.contacts-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}
.contact-card {
    background-color: var(--bg-white);
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 380px; /* Для выравнивания по высоте */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;
    border-radius: 8px;
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.contact-card img {
    border-radius: 8px;
    margin-bottom: 1rem;
}

.contact-card h5 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-pink);
    font-weight: 600;
}

.btn-outline-fresh-green {
    color: var(--fresh-green);
    border-color: var(--fresh-green);
    border-radius: 20px;
    padding: 8px 20px;
    transition: all 0.3s ease;
}

.btn-outline-fresh-green:hover {
    background-color: var(--fresh-green);
    color: var(--bg-white);
}

.text-primary-pink {
    color: var(--primary-pink);
}

/* Social/Contact Buttons */
.btn-success-light {
    background-color: var(--fresh-green); /* Цвет для звонка */
    border-color: var(--fresh-green);
    color: var(--bg-white);
    font-weight: 600;
    border-radius: 30px;
    padding: 10px 25px;
    transition: all 0.3s ease;
}
.btn-success-light:hover {
    background-color: #61974f; /* Немного темнее fresh-green */
    border-color: #61974f;
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-whatsapp {
    background-color: #25D366; /* WhatsApp green */
    border-color: #25D366;
    color: var(--bg-white);
    font-weight: 600;
    border-radius: 30px;
    padding: 10px 25px;
    transition: all 0.3s ease;
}
.btn-whatsapp:hover {
    background-color: #1ea751; /* Немного темнее WhatsApp green */
    border-color: #1ea751;
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-telegram {
    background-color: #0088CC; /* Telegram blue */
    border-color: #0088CC;
    color: var(--bg-white);
    font-weight: 600;
    border-radius: 30px;
    padding: 10px 25px;
    transition: all 0.3s ease;
}
.btn-telegram:hover {
    background-color: #006699; /* Немного темнее Telegram blue */
    border-color: #006699;
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Footer */
.footer {
    background-color: var(--footer-bg);
    color: rgba(255, 255, 255, 0.7);
    padding-top: 2rem;
    padding-bottom: 2rem;
    margin-top: auto; /* Прижимает футер к низу страницы */
}

.footer-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-pink) !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-brand img {
    border-radius: 50%;
    margin-right: 8px;
}

.footer p {
    font-size: 0.9rem;
    margin-top: 1rem;
}
/* 
.fixed_bottom {
    position:fixed;
    bottom:2rem;
    right:0;
    left:0;
}

.bbottom {
    height: 1rem;
    padding: 3rem;
}
*/

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: var(--bg-white);
        border-top: 1px solid rgba(0,0,0,0.1);
        padding: 10px 0;
    }
    .navbar-nav {
        text-align: center;
    }
    .nav-item {
        margin: 5px 0;
    }
    .navbar-brand span {
        display: inline !important; /* Показываем текст логотипа на мобильных */
    }
    .hero-section {
        min-height: 60vh;
        padding-top: 60px;
        padding-bottom: 60px;
    }
    .hero-section h1 {
        font-size: 2.5rem;
    }
    .hero-section p {
        font-size: 1rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .advantage-item, .contact-card {
        min-height: auto; /* Убираем фиксированную высоту для мобильных */
    }
    .discount-section h2 {
        font-size: 1.25rem;
    }
}

@media (max-width: 767.98px) {
    .navbar-brand span {
        font-size: 1.2rem;
    }
    .hero-section {
        min-height: 50vh;
    }
    .hero-section h1 {
        font-size: 2rem;
    }
    .hero-section p {
        font-size: 0.9rem;
    }
    .btn-primary, .btn-outline-light {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    .section-title {
        font-size: 1.75rem;
    }
    .prod-card img {
        height: 200px;
    }
    .contact-card {
        padding: 1rem;
    }
    .btn-success-light, .btn-whatsapp, .btn-telegram {
        width: 100%;
        margin-bottom: 10px;
    }
    .d-sm-flex {
        flex-direction: column;
    }
}
