/* =============================================
   Envirapack — layout.css
   Utility bar, header, hero, footer, mobilmeny, breadcrumb
   ============================================= */

/* --- Utility bar --- */
.utility-bar {
    background: var(--primary-dark);
    color: var(--text-on-dark-muted);
    font-size: 13px;
    padding: 6px 0;
}
.utility-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.utility-links {
    display: flex;
    gap: 24px;
    list-style: none;
}
.utility-links a {
    color: var(--text-on-dark-muted);
    font-size: 13px;
    transition: color 0.2s;
}
.utility-links a:hover {
    color: #fff;
}

.lang-switch {
    display: flex;
    gap: 8px;
    align-items: center;
}
.lang-switch a {
    color: var(--text-on-dark-muted);
    font-size: 13px;
    padding: 2px 6px;
    border-radius: 3px;
    transition: all 0.2s;
}
.lang-switch a.active {
    color: #fff;
    background: rgba(255,255,255,0.15);
}

/* --- Header --- */
.site-header {
    background: var(--primary);
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
    box-shadow: var(--shadow-md);
}
.site-header .container {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 24px;
}

.logo {
    flex-shrink: 0;
}
.logo img {
    height: 40px;
    width: auto;
}
.logo-text {
    color: var(--text-on-dark);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.search-bar {
    flex: 1;
    max-width: 560px;
    position: relative;
}
.search-bar input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 24px;
    background: rgba(255,255,255,0.1);
    color: var(--text-on-dark);
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
}
.search-bar input::placeholder {
    color: var(--text-on-dark-muted);
}
.search-bar input:focus {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.35);
}
.search-bar svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-on-dark-muted);
    pointer-events: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.header-btn {
    color: var(--text-on-dark);
    padding: 8px 12px;
    border-radius: var(--radius);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}
.header-btn:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}
.header-btn svg {
    width: 20px;
    height: 20px;
}

.cart-count {
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.menu-toggle {
    display: none;
    color: var(--text-on-dark);
    padding: 8px;
}
.menu-toggle svg {
    width: 24px;
    height: 24px;
}

/* --- Hero --- */
.hero {
    background: var(--primary);
    padding: 64px 0 72px;
    position: relative;
    overflow: hidden;
}
.hero .container {
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.hero-row {
    display: flex;
    align-items: center;
    gap: 48px;
}
.hero-content {
    flex: 1;
    max-width: 520px;
}
.hero h1 {
    font-size: 36px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-on-dark);
}
.hero p {
    color: var(--text-on-dark-muted);
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 28px;
}
.hero-image {
    flex: 0 0 auto;
    max-width: 380px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16/9;
    background: var(--primary-light);
}
.hero-image img,
.hero-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* --- Breadcrumb --- */
.breadcrumb {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    font-size: 13px;
}
.breadcrumb a {
    color: var(--text-light);
}
.breadcrumb a:hover {
    color: var(--primary);
}
.breadcrumb-sep {
    margin: 0 8px;
    color: var(--text-light);
}
.breadcrumb span:last-child {
    color: var(--text);
    font-weight: 500;
}

/* --- Page header --- */
.page-header {
    padding: 32px 0 24px;
}
.page-header h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 4px;
}
.page-header p {
    font-size: 15px;
    color: var(--text-light);
}

/* --- Mobilmeny overlay --- */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-dark);
    z-index: 200;
    padding: 80px 24px 24px;
    flex-direction: column;
    gap: 0;
    overflow-y: auto;
}
.mobile-nav.open {
    display: flex;
}
.mobile-nav-close {
    position: absolute;
    top: 16px;
    right: 24px;
    color: #fff;
    padding: 8px;
}
.mobile-nav-close svg {
    width: 28px;
    height: 28px;
}
.mobile-nav a {
    color: var(--text-on-dark);
    font-size: 20px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: block;
}
.mobile-nav a:hover {
    color: var(--accent);
}

/* --- Footer --- */
.site-footer {
    background: var(--primary-dark);
    color: var(--text-on-dark-muted);
    padding: 48px 0 24px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 32px;
}
.footer-brand p {
    font-size: 14px;
    line-height: 1.6;
    margin-top: 12px;
}
.footer-col h4 {
    color: var(--text-on-dark);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.footer-col ul {
    list-style: none;
}
.footer-col li {
    margin-bottom: 8px;
}
.footer-col a {
    color: var(--text-on-dark-muted);
    font-size: 14px;
    transition: color 0.2s;
}
.footer-col a:hover {
    color: #fff;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}
.footer-bottom a {
    color: var(--text-on-dark-muted);
}

/* =============================================
   Responsiv — layout
   ============================================= */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .utility-bar,
    .search-bar {
        display: none;
    }

    .logo-text {
        font-size: 19px;
    }

    .header-btn span {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    /* Hero */
    .hero {
        padding: 48px 0 56px;
    }
    .hero .container,
    .hero-row {
        flex-direction: column;
        text-align: center;
        gap: 28px;
    }
    .hero h1 {
        font-size: clamp(28px, 7vw, 36px);
        line-height: 1.15;
    }
    .hero p {
        font-size: 16.5px;
        margin-bottom: 24px;
    }
    .hero-image {
        max-width: 100%;
        aspect-ratio: 16 / 10;
    }
    .hero-buttons {
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: clamp(24px, 8vw, 30px);
    }
}

@media (max-width: 360px) {
    .hero {
        padding: 40px 0 48px;
    }
}