/**
 * Ardatiev-Next - Homepage Styles
 */

/* ---------------- HERO SECTION ---------------- */
.hero-section {
    position: relative;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    margin-top: -70px; /* Pull up behind the glass-header */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding-top: 50px;
}

.hero-glass-box {
    background: rgba(51, 51, 51, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 60px 40px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    color: #fff;
    text-shadow: 0 4px 12px rgba(0,0,0,0.3);
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    margin-bottom: 40px;
    color: #fff;
    opacity: 0.95;
}

.hero-actions {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
}

.glass-btn {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.1);
    color: var(--color-white);
    border-color: rgba(255,255,255,0.5);
}

.glass-btn:hover {
    background: rgba(255,255,255,0.2);
    color: var(--color-white);
    border-color: var(--color-white);
}

/* ---------------- CATEGORIES SECTION ---------------- */
.section-padding {
    padding: var(--space-xl) 0;
}

.section-title {
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-md);
    position: relative;
    display: inline-block;
}

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

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.category-card {
    display: block;
    text-align: center;
    padding: var(--space-xl) var(--space-md);
    text-decoration: none;
    color: var(--color-dark);
}

.category-card h3 {
    margin-bottom: var(--space-xs);
    font-size: 1.2rem;
}

.category-card span {
    font-size: 0.85rem;
    color: var(--color-primary);
    font-weight: 600;
}

.category-card:hover h3 {
    color: var(--color-primary);
}

/* ---------------- GENERAL GRIDS ---------------- */
.bg-light {
    background-color: #f5f7fa;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: var(--space-xl);
}

.view-all-link {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: var(--space-sm); /* Align with title baseline */
}

/* ---------------- BRAND SECTION ---------------- */
.home-brand {
    background: url('https://vykroyka.com.ua/wp-content/uploads/2021/11/logo_p-e1635882583526.png') center right no-repeat;
    background-size: contain;
    min-height: 400px;
    display: flex;
    align-items: center;
}

.brand-box {
    max-width: 600px;
}

.brand-text h2 {
    color: var(--color-dark);
}

.brand-text p {
    margin-bottom: var(--space-lg);
    font-size: 1.1rem;
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .home-brand {
        background-position: center;
        background-size: cover;
    }
    
    .brand-box {
        background: rgba(255, 255, 255, 0.9); /* Opaque for readability on mobile */
    }
}
