/* 
 Проект: СИ ФРУКТ 2020 - официален уебсайт
 Автор: Алексей Спирин 
 Контакт: alekseysp18@gmail.com / +359 877 19 5819
 Технологии: HTML, CSS, JavaScript
 Завършен 2.09.2026
*/
:root {
    --primary: #4a7c34;
    --primary-dark: #386226;
    --accent: #f4a824;
    --dark: #2f2f2f;
    --light: #f7f7f2;
    --white: #ffffff;
    --text: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--white);
}

main {
    flex: 1 0 auto;
}

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

h1, h2, h3 {
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Header */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

/* offset content below the fixed header */
main {
    margin-top: var(--header-h, 88px);
}

.hero,
.page-hero {
    margin-top: calc(-1 * var(--header-h, 88px));
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 55px;
    width: auto;
    flex-shrink: 0;
}

.logo-text-wrap {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.logo-text {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: 1px;
    line-height: 1;
}

.logo-year {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 2px;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-nav li a {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 1px;
    transition: color 0.3s;
    border-bottom: 2px solid transparent;
    padding-bottom: 5px;
}

.main-nav li a:hover,
.main-nav li a.active {
    color: var(--primary);
    border-bottom-color: var(--accent);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--primary);
}

/* Hero */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
                url('https://images.unsplash.com/photo-1610832958506-aa56368176cf?w=1600') center/cover no-repeat;
    color: var(--white);
    text-align: center;
    padding: calc(var(--header-h, 88px) + 120px) 20px 120px;
}

.hero h1 {
    font-size: 44px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 20px;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 30px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.hero-contact {
    margin-bottom: 35px;
}

.hero-contact p {
    font-size: 20px;
    margin-bottom: 8px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.hero-contact a {
    color: var(--white);
    transition: color 0.3s;
}

.hero-contact a:hover {
    color: var(--accent);
}

/* Social links (hero) */
.social-links {
    margin-bottom: 35px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #1877f2;
    color: var(--white) !important;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    text-shadow: none !important;
    transition: background 0.3s;
}

.social-link:hover {
    background: #145dbf;
    color: var(--white) !important;
}

.social-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

/* Sections */
section {
    padding: 80px 20px;
}

section h2 {
    text-align: center;
    font-size: 34px;
    color: var(--primary-dark);
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
    color: #555;
    font-size: 17px;
}

/* About */
.about {
    background: var(--light);
}

.about p {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 17px;
    color: #444;
}

/* Products */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    display: block;
    text-decoration: none;
    background: var(--white);
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.product-icon {
    font-size: 55px;
    margin-bottom: 15px;
}

.product-card h3 {
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-size: 20px;
}

.product-card p {
    color: #555;
    font-size: 15px;
}

/* Price list */
.price-list {
    background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)),
                url('https://images.unsplash.com/photo-1542838132-92c53300491e?w=1600') center/cover no-repeat;
    color: var(--white);
}

.price-list h2 {
    color: var(--white);
}

.price-list .section-intro {
    color: #ddd;
}

.price-form {
    max-width: 440px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
}

.price-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 4px;
    font-size: 15px;
}

.form-message {
    text-align: center;
    margin-top: 20px;
    font-size: 16px;
    color: var(--accent);
}

/* Contact */
.contact {
    background: var(--light);
    text-align: center;
}

.contact p {
    font-size: 18px;
    margin-bottom: 12px;
}

.contact a:hover {
    color: var(--primary);
}

/* Footer */
.site-footer {
    background: var(--dark);
    color: #ccc;
    text-align: center;
    padding: 30px 20px;
    font-size: 14px;
}

.site-footer p {
    margin-bottom: 5px;
}

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

.site-footer .facebook a {
    color: #b3d4ff;
}

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

/* Page hero (inner pages) */
.page-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
                url('https://images.unsplash.com/photo-1610832958506-aa56368176cf?w=1600') center/cover no-repeat;
    color: var(--white);
    text-align: center;
    padding: calc(var(--header-h, 88px) + 80px) 20px 80px;
}

.page-hero h1 {
    font-size: 40px;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.page-hero p {
    font-size: 18px;
    color: var(--accent);
    margin-top: 10px;
}

/* About page */
.about-page p {
    max-width: 800px;
    margin: 0 auto 20px;
    text-align: left;
    font-size: 17px;
    color: #444;
}

.about-cta {
    text-align: center;
    margin-top: 30px;
}

/* Products page */
.offer-list {
    max-width: 600px;
    margin: 0 auto 50px;
    padding: 20px 30px;
    background: var(--light);
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.offer-list li {
    font-size: 18px;
    color: #444;
    margin-bottom: 10px;
}

.offer-list li:last-child {
    margin-bottom: 0;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.gallery-item {
    background: var(--white);
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 0 0 20px;
    text-align: center;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.gallery-img {
    display: block;
    width: 100%;
    height: 160px;
    object-fit: cover;
    margin-bottom: 12px;
}

.gallery-item span {
    display: block;
    font-size: 15px;
    color: #555;
    font-weight: 600;
}

.gallery-category {
    color: var(--primary-dark);
    text-transform: uppercase;
    font-size: 20px;
    letter-spacing: 1px;
    margin: 40px 0 20px;
}

.gallery-category:first-child {
    margin-top: 20px;
}

/* Contact page */
.contact-page {
    background: var(--light);
    padding: 60px 20px;
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.contact-item {
    background: var(--white);
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    display: block;
    text-decoration: none;
    color: inherit;
}

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

.contact-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.contact-item h3 {
    color: var(--primary-dark);
    margin-bottom: 10px;
    text-transform: uppercase;
    font-size: 16px;
    letter-spacing: 1px;
}

.contact-item p {
    font-size: 16px;
    color: #555;
}

.contact-item a:hover {
    color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .main-nav.open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav li {
        width: 100%;
    }

    .main-nav li a {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
    }

    .hero h1 {
        font-size: 30px;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .price-form {
        flex-direction: column;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-details {
        grid-template-columns: 1fr;
    }
}
