/* ========================================
   COMPONENTS.CSS
   Reusable UI components used across pages
   ======================================== */

/* ========== INFO BANNER ========== */
.info-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background-color: var(--black);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-banner-content {
    text-align: center;
}

/* ========== HEADER & NAVIGATION ========== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 900;
    padding: 20px 40px;
    transition: all 0.3s ease;
    background: transparent;
}

/* Default to 0, or adjust based on banner presence */
.homepage .site-header {
    top: 0;
}

/* Only push down if info-banner exists */
body:has(.info-banner) .homepage .site-header,
.homepage:has(.info-banner) .site-header {
    top: 30px;
}

.site-header.scrolled {
    background: rgba(242, 242, 242, 0.8);
    backdrop-filter: blur(10px);
    padding: 10px 40px;
}

.menu-inner {
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-logo img {
    width: 80px;
    transition: transform 0.3s;
}

@media(min-width: 768px) {
    .menu-logo img {
        width: 80px;
    }
}

.menu-logo img:hover {
    transform: scale(1.05);
}

.logo-mobile {
    display: block;
}

.logo-desktop {
    display: none;
}

@media(min-width: 768px) {
    .logo-mobile {
        display: none;
    }

    .logo-desktop {
        display: block;
    }
}

.nav-links {
    display: none;
    align-items: center;
    gap: 1.25rem;
}

@media(min-width: 1100px) {
    .nav-links {
        display: flex;
    }
}

.nav-link {
    font-size: 11px;
    font-weight: 500;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link img {
    width: 13px;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-orange);
    transition: width 0.3s ease-in-out;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary-orange);
    font-weight: 600;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 2.5rem;
}

.btn-schowek {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1.25rem;
    border: 2px solid var(--black);
    border-radius: 0.75rem;
    background-color: var(--white);
    color: var(--black);
    font-size: 0.7rem;
    font-weight: 700;
    box-shadow: 3px 3px 0px 0px rgba(0, 0, 0, 1);
    transition: all 0.3s;
}

.btn-schowek:hover {
    background-color: #f9fafb;
    transform: translate(2px, 2px);
    box-shadow: none;
}

.btn-schowek img {
    width: 16px;
}

.language-switcher {
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    gap: 0.5rem;
}

.lang-active {
    color: var(--primary-orange);
}

.lang-sep {
    color: var(--black);
}

.lang-link {
    color: var(--black);
    transition: color 0.3s;
}

.lang-link:hover {
    color: var(--gray-dark);
}

/* ========== MOBILE MENU ========== */
.mobile-menu-toggle {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

@media(min-width: 1100px) {

    .mobile-menu-toggle,
    .header-mobile-actions {
        display: none;
    }
}

.header-mobile-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-catalog-btn {
    width: 45px;
    height: 45px;
    background-color: var(--white);
    border: 2px solid var(--black);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 4px 4px 0px 0px var(--black);
    transition: all 0.2s;
}

.mobile-catalog-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 0px 0px 0px 0px var(--black);
}

.mobile-catalog-btn img {
    width: 20px;
    height: 20px;
}

.burger-bar {
    width: 2rem;
    height: 0.125rem;
    background-color: var(--black);
    transition: all 0.3s ease;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    background-color: #fff;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100%);
    /* Closing: 0.8s match opening, opacity synced */
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease, visibility 0s 0.8s;
    overflow-y: auto;
}

body.menu-open .mobile-menu-overlay {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    /* Slower open: 0.8s transform */
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, visibility 0s;
}

/* Staggered text animation */
.mobile-menu-link,
.mobile-menu-lang>*,
.mobile-menu-footer>* {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

body.menu-open .mobile-menu-link,
body.menu-open .mobile-menu-lang>*,
body.menu-open .mobile-menu-footer>* {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays */
body.menu-open .mobile-menu-link:nth-child(1) {
    transition-delay: 0.1s;
}

body.menu-open .mobile-menu-link:nth-child(2) {
    transition-delay: 0.15s;
}

body.menu-open .mobile-menu-link:nth-child(3) {
    transition-delay: 0.2s;
}

body.menu-open .mobile-menu-link:nth-child(4) {
    transition-delay: 0.25s;
}

body.menu-open .mobile-menu-link:nth-child(5) {
    transition-delay: 0.3s;
}

body.menu-open .mobile-menu-link:nth-child(6) {
    transition-delay: 0.35s;
}

body.menu-open .mobile-menu-link:nth-child(7) {
    transition-delay: 0.4s;
}

/* Language items (inside flex container) */
body.menu-open .mobile-menu-lang>*:nth-child(1) {
    transition-delay: 0.45s;
}

/* PL */
body.menu-open .mobile-menu-lang>*:nth-child(2) {
    transition-delay: 0.5s;
}

/* | */
body.menu-open .mobile-menu-lang>*:nth-child(3) {
    transition-delay: 0.55s;
}

/* EN */

/* Footer items */
body.menu-open .mobile-menu-footer>*:nth-child(1) {
    transition-delay: 0.6s;
}

/* Email */
body.menu-open .mobile-menu-footer>*:nth-child(2) {
    transition-delay: 0.65s;
}

/* Phone */
body.menu-open .mobile-menu-footer>*:nth-child(3) {
    transition-delay: 0.7s;
}

/* Address */

body.menu-open .burger-bar:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

body.menu-open .burger-bar:nth-child(2) {
    opacity: 0;
}

body.menu-open .burger-bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-menu-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10001;
}

.mobile-menu-close svg {
    width: 2rem;
    height: 2rem;
    stroke: var(--black);
}

.mobile-menu-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 4rem 2rem 2rem;
    gap: 0.5rem;
}

.mobile-menu-link {
    display: block;
    font-size: 2rem;
    font-weight: 400;
    color: var(--black);
    text-decoration: none;
    line-height: 1.3;
    /* Merge transitions: Color (hover) + Opacity/Transform (entry animation) */
    transition: color 0.2s ease, opacity 0.5s ease, transform 0.5s ease;
}

.mobile-menu-link.active {
    color: #f07c00 !important;
}

@media (hover: hover) {
    .mobile-menu-link:hover {
        color: #f07c00 !important;
    }
}

.mobile-menu-link:focus {
    color: var(--black);
}

.mobile-menu-link.active:focus {
    color: #f07c00 !important;
}

.mobile-menu-lang {
    margin-top: 2rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-lang-active {
    color: var(--primary-orange);
    font-weight: 600;
}

.mobile-lang-sep {
    color: var(--black);
}

.mobile-lang-link {
    color: var(--black);
    text-decoration: none;
}

.mobile-menu-footer {
    background-color: var(--primary-orange);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-menu-footer a,
.mobile-menu-footer p {
    color: #fff;
    font-size: 1rem;
    text-decoration: none;
    margin: 0;
    line-height: 1.5;
}

.mobile-menu-footer a:hover {
    text-decoration: underline;
}

@media(min-width: 1100px) {
    .mobile-menu-overlay {
        display: none;
    }
}

/* ========== HEADER DROPDOWN ========== */
.nav-item-dropdown {
    position: relative;
}

.header-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, -10px);
    margin-top: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.nav-item-dropdown:hover .header-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.header-dropdown-inner {
    background-color: var(--white);
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 2rem;
    display: flex;
    gap: 2rem;
    min-width: 600px;
}

.dropdown-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
}

.dropdown-link {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--black);
    text-decoration: none;
    transition: color 0.2s;
}

.dropdown-link:hover,
.dropdown-link.active {
    color: var(--primary-orange);
}

.dropdown-preview {
    flex: 1;
    border-radius: 0.75rem;
    overflow: hidden;
}

.dropdown-preview img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

/* ========== BUTTONS ========== */
.btn-hero {
    padding: 0.6rem 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 0.75rem;
    border: 2px solid var(--black);
    font-size: 0.7rem;
    letter-spacing: 0.025em;
    box-shadow: 4px 4px 0px 0px rgba(0, 0, 0, 1);
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
}

.btn-hero:hover {
    transform: translate(2px, 2px);
    box-shadow: none;
}

.btn-hero-primary {
    background-color: var(--primary-orange);
    color: var(--black);
}

.btn-hero-primary:hover {
    background-color: var(--primary-orange-hover);
}

.btn-hero-secondary {
    background-color: var(--white);
    color: var(--black);
}

.btn-hero-secondary:hover {
    background-color: #f9fafb;
}

/* ========== FOOTER ========== */
.site-footer-custom {
    color: var(--black);
    padding: 0;
}

.footer-container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    padding: 0;
}

@media(min-width: 1100px) {
    .footer-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: stretch;
    }
}

.footer-left {
    display: contents;
    /* Unwrap for mobile reordering */
}

.footer-brand-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    margin-top: 0;
    order: 1;
    /* Brand first */
    padding: 2rem 2rem 4rem 2rem;
    width: 100%;
}

.footer-logo {
    width: 120px;
    height: auto;
}

.footer-brand-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.footer-brand-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    color: var(--black);
    text-transform: uppercase;
    white-space: normal;
}

@media (max-width: 1200px) {
    .footer-brand-name {
        font-size: 1rem;
    }
}

.footer-brand-desc {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--black);
    margin: 0;
    max-width: 250px;
    line-height: 1.4;
}

.footer-socials-new {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-socials-new a img {
    width: 20px;
    height: 20px;
    transition: opacity 0.3s;
    filter: brightness(0);
}

.footer-socials-new a:hover img {
    opacity: 0.7;
}

.footer-legal-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    font-size: 0.7rem;
    color: var(--black);
    margin-top: 0;
    font-weight: 500;
    order: 3;
    /* Legal last */
    padding: 2rem 2rem 4rem 2rem;
    width: 100%;
    justify-content: center;
    /* Center align for consistency on mob */
}

.footer-legal-row a {
    color: var(--black);
    transition: color 0.3s;
    text-decoration: none;
}

.footer-legal-row a:hover {
    color: var(--primary-orange);
}

.footer-right {
    flex: 0 0 auto;
    width: 100%;
    background-color: var(--black);
    color: var(--white);
    padding: 4rem 2rem;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    order: 2;
    /* Links middle */
}

@media(min-width: 1100px) {
    .footer-left {
        display: flex;
        flex-direction: column;
        flex: 1;
        /* Fluid width */
        padding: 2rem;
        border-top-right-radius: 0;
        width: auto;
    }

    .footer-brand-group {
        flex-direction: row;
        align-items: center;
        order: 0;
        padding: 0;
        width: auto;
        margin-top: auto;
    }

    .footer-logo {
        width: 60px;
    }

    .footer-legal-row {
        order: 0;
        padding: 0;
        width: auto;
        margin-top: auto;
        display: flex;
        justify-content: flex-start;
    }

    .footer-right {
        order: 0;
        flex: 1.5;
        /* Slightly wider than left but fluid */
        padding: 4rem 2rem;
        /* Reduced horizontal padding */
        border-top-left-radius: 20px;
        border-top-right-radius: 0;
    }
}

.footer-links-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media(min-width: 768px) {
    .footer-links-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-col h4 {
    font-size: 0.9rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--white);
    text-transform: capitalize;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-col li {
    font-size: 0.75rem;
    line-height: 1.5;
}

.footer-col a {
    color: #e5e5e5;
    transition: color 0.3s;
    text-decoration: none;
    font-weight: 500;
}

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

.footer-contact-list li {
    color: #e5e5e5;
    font-weight: 500;
}

/* ========== SECTION HEADERS ========== */
.section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    letter-spacing: 0.025em;
}

.section-desc {
    color: var(--black);
    font-weight: 500;
    font-size: 0.75rem;
}

@media(min-width: 768px) {
    .section-desc {
        font-size: 0.75rem;
    }
}

/* ========== MAIN CONTENT ========== */
main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.main-wrapper {
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
    padding-top: calc(8rem + 30px);
    padding-bottom: 2.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.content-wrapper {
    width: 100%;
}