/*
Theme Name: ivtheme
Author: IVTech
Description: Home of Ceramic theme
Version: 1.0
*/

body {
    font-family: 'Heebo', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Heebo', sans-serif;
    margin: 0;
    padding: 0;
}

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

/* Header styles */

header {
    position: sticky;
    /* WP sets --wp-admin--admin-bar--height only while the admin bar is shown;
       falls back to 0 for logged-out visitors, so no gap opens above the header. */
    top: var(--wp-admin--admin-bar--height, 0px);
    z-index: 1000;
}

/* Under 600px WP un-fixes the admin bar (it scrolls away) but keeps the var set. */
@media screen and (max-width: 600px) {
    header {
        top: 0;
    }
}

.header-container {
    background-color: white;
    padding: 0.3rem 6.25rem;
}
.header-wrapper {
    display: flex;
    /* justify-content: center; */
    align-items: center;
    position: relative;
}

.header-logo {
    position: absolute;
    right: 0;
}   

.header-logo img {
    height: 2.375rem;
}

.header-nav {
    margin: 0 auto;
}
.header-nav ul {
    list-style: none;
    display: flex;
    gap: 7.5rem;
    padding: 0;
    direction: rtl;
}

.header-nav ul li {
    transition: transform 0.5s ease;
}

.header-nav ul .catalog {

}

/* headerl ul li on hover to scale 1.1 */
.header-nav ul li:hover {
    transform: scale(1.1);
    transition: transform 0.5s ease;
}

.sub-header {
    background-color: #e7e8e7;
    display: flex;
    justify-content: center;
    padding: 0 6.25rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease, padding 0.4s ease;
}

.sub-header.show {
    max-height: 200px;
    opacity: 1;
    padding: 1.1rem 6.25rem;
}

.sub-header .categories {
    display: flex;
    gap: 2rem;
}
.sub-header .categories a {
    transition: transform 0.3s ease;
}

.sub-header .categories a:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.sub-header .categories .active {
    font-weight: 600;
}

/* Mobile Header Styles */
.mobile-header {
    display: none;
    padding: 0.5rem 1rem;
    position: relative;
}

.header-wrapper-mobile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.mobile-logo img {
    height: 2.375rem;
}

/* Hamburger Menu Styles */
.hamburger-menu {
    position: relative;
    width: 1.625rem;
    height: 1rem; /* 3 hairlines + 2 gaps of ~0.3rem */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

/* Invisible 44x44 tap target - does not shift the lines */
.hamburger-menu::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2.75rem;
    height: 2.75rem;
    transform: translate(-50%, -50%);
}

.hamburger-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1.5px; /* hairline - intentionally not rem, must not scale */
    background-color: #2A2A2A;
    border-radius: 1px;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.15s ease,
                width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                top 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                bottom 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger-line:nth-child(1) { top: 0; }
.hamburger-line:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger-line:nth-child(3) { bottom: 0; }

.hamburger-menu.active .hamburger-line:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateY(-50%) scaleX(0.3);
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    bottom: auto;
    top: 50%;
    width: 100%;
    transform: translateY(-50%) rotate(-45deg);
}

/* Mobile Navigation Menu */
.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    padding: 1rem;
    border-top: 1px solid rgba(42, 42, 42, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    z-index: 999;
}

.mobile-nav.show {
    display: block;
}

.mobile-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0;
    direction: rtl;
}

.mobile-nav ul li {
    padding: 0.5rem 0;
    text-align: right;
    border-bottom: 1px solid rgba(42, 42, 42, 0.1);
}

.mobile-nav ul li:last-child {
    border-bottom: none;
}

.mobile-nav ul li a {
    font-size: 1rem;
    color: #2A2A2A;
}

/* Desktop Header - Hidden on Mobile */
.desktop-header {
    display: block;
}

/* Responsive Media Queries */
@media (max-width: 768px) {
    /* Hide desktop header on mobile */
    .desktop-header {
        display: none;
    }

    /* Show mobile header on mobile */
    .mobile-header {
        display: block;
    }

    .header-container {
        padding: 0 1rem;
    }

    /* Hide sub-header on mobile */
    .sub-header {
        display: none;
    }

}

/* Mobile catalog sub-nav */
.mobile-nav .mobile-catalog > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-nav .mobile-catalog .catalog-arrow {
    font-size: 1.4rem;
    line-height: 1;
    transition: transform 0.3s ease;
    display: inline-block;
    transform: rotate(0deg);
}

.mobile-nav .mobile-catalog.open .catalog-arrow {
    transform: rotate(90deg);
}

.mobile-sub-nav {
    display: flex;
    flex-direction: column;
    background-color: #e7e8e7;
    margin: 0.5rem -1rem 0 -1rem;
    padding: 0 1rem;
    gap: 0.75rem;
    direction: rtl;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s ease, padding 0.45s ease;
}

.mobile-sub-nav.show {
    max-height: 300px;
    padding: 0.75rem 1rem;
}

.mobile-sub-nav a {
    font-size: 0.95rem;
    color: #2A2A2A;
    padding: 0.25rem 0;
}

.mobile-sub-nav a.active {
    font-weight: 600;
}

@media (max-width: 480px) {
    .hamburger-menu {
        width: 1.5rem;
        height: 0.9375rem;
    }

    .mobile-logo img {
        height: 2rem;
    }
}

/* Footer styles */
.footer-container {
    border-top: 1.5px solid rgba(42, 42, 42, 0.2);
    width: 100%;
    padding: 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-container .copyright {
    padding: 0.5rem 0 0.5rem 0;
    margin: 0;
    text-align: center;
}

.footer-container .copyright p {
    font-size: 14px;
    font-weight: 400;
    color: #2A2A2A;
}

.footer-container .copyright .accessibility-statement {
    display: inline-block;
    margin-top: 0.25rem;
    font-size: 14px;
    font-weight: 400;
    color: #2A2A2A;
    text-decoration: underline;
}

.footer-container .copyright .legal-links {
    display: flex;
    justify-content: center;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0 1rem;
}

.footer-container .copyright .cookie-settings-button {
    margin-top: 0.25rem;
    color: #2A2A2A;
}

.footer-wrapper {
    border-bottom: 1px solid rgba(42, 42, 42, 0.2);
    width: 70%;
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 6.75rem 1.5rem 6.75rem;
}

.footer-wrapper .contact-info {
    padding: 0;
    margin: 0;
    text-align: right;
}

.footer-wrapper .contact-info h3 {
    font-size: 18px;
    color: #2A2A2A;
    font-weight: 500;
}

.footer-wrapper .contact-info .line {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 1.5rem;
}

.footer-wrapper .contact-info .line p {
    margin: 0.5rem 0 0 0;
}

.footer-wrapper .contact-info .label {
    font-size: 14px;
    color: #2A2A2A;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    direction: rtl;
}

.footer-wrapper .contact-info .label img {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.footer-wrapper .contact-info .value {
    font-size: 14px;
    color: #2A2A2A;
    font-weight: 500;
}

.footer-wrapper .social-media {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
}

.footer-wrapper .social-media a img {
    width: auto;
    height: 1.125rem;
    cursor: pointer;
}

.footer-wrapper .shortcuts-wrapper {
    display: flex;
    flex-direction: row;
    gap: 4.5rem;
    justify-content: space-between;
}

.footer-wrapper .shortcuts-wrapper .col {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-wrapper .shortcuts-wrapper .col a {
    font-size: 14px;
    font-weight: 400;
    color: #2A2A2A;
    text-align: right;
}

.for-mobile {
    display: none !important;
}

/* .not-for-mobile {
    display: initial !important;
} */

.for-mobile-flex {
    display: none !important;
}

@media (max-width: 768px) {
    .for-mobile {
        display: initial !important;
    }

    .for-mobile-flex {
        display: flex !important;
    }

    .not-for-mobile {
        display: none !important;
    }

    .footer-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
        padding: 1.5rem 1rem 1.5rem 1rem;
    }

    .footer-wrapper .social-media {
        order: 3;
    }

    .footer-wrapper .shortcuts-wrapper {
        order: 1;
        display: grid;
        grid-template-columns: repeat(4, auto);
        direction: rtl;
        gap: 0.5rem 1.5rem;
        justify-content: center;
    }

    .footer-wrapper .shortcuts-wrapper .col {
        display: contents;
    }

    .footer-wrapper .shortcuts-wrapper .col a {
        white-space: nowrap;
    }

    .footer-wrapper .contact-info {
        order: 2;
    }
}