/*
Theme Name: brandframe
Theme URI: https://brandframe.eu
Author: Migocki
Author URI: https://brandframe.eu
Description: Motyw oparty na HTML
Version: 1.0
*/

html {
    margin: 0 !important;
}

:root {
  --fs-logo: clamp(1.8rem, 4vw, 2.2rem);
  --fs-nav-links: clamp(1rem, 2.5vw, 1.3rem);
  --fs-h2: clamp(1.4rem, 3vw, 1.5rem);
  --fs-h2-small: clamp(1.2rem, 2vw, 1.5rem);
  --fs-text: clamp(1rem, 2vw, 1.5rem);
  --fs-contact: clamp(0.9rem, 1.5vw, 1.2rem);
}

body {
    padding: 0;
    margin: 0;
    background-color: #E0E1DD;
    color: white;
    font-size: var(--fs-text);
}

h2 {
    font-size: var(--fs-h2);
}

/* NAVBAR */
nav {
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background-color: #234e80;
    height: 90px;
    transition: margin 0.4s ease, top 0.6s ease;
}

.sub-menu {
    display: none;
}

#nav-logo {
    margin-left: 30px;
    font-size: var(--fs-logo);
    color: white;
}

#nav-elements {
    margin-right: 30px;
    list-style-type: none;
    display: flex;
    flex-direction: row;
    gap: 30px;
}

.menu-item, .menu-item:visited {
    font-size: var(--fs-nav-links);
}

#dropdown-button {
    display: none;
    margin-right: 50px;
    padding: 12px 16px;
    background-color:#778DA9;
    border-radius: 15px;
    color: white;
    font-weight: bolder;
    border: none;
}

#nav-elements.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 70px;
    /* padding: 15px; */
    width: 100%;
    background-color: #234e80;
    z-index: 10;
    gap: 0;
}

.menu-item:hover {
    font-weight: bolder;
}

/* LANGUAGE MENU */

#language-menu {
    float: right;
    position: sticky;
    top: 110px;
    transition: top 0.4s ease;
    right: 0px;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    background-color: #778DA9;
    width: 400px;
    height: 70px;
    padding-left: 30px;
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 7% 100%);
}

#language-menu.hide {
    display:none;
}

.language-icons {
    height: 40px;
    margin-top: 10px;
}

nav, #language-menu, #mainphoto {
    margin: 0% 10% 0% 10%;
    transition: margin 0.4s ease;
}

#upper-navbar-area {
    position: sticky;
    top: 0;
    height: 20px;
    background-color: #E0E1DD;
    z-index: 10;
}

#mainphoto {
    height: 400px;
    background-image: url('images/license_plate_frames_diff.jpg');
    background-size: cover;
    background-position: center;
}

/* CONTENER */
.contener {
    margin: 0% 6% 0% 6%;
    transition: margin 0.4s ease;
}

.mainbox {
    background-color: #415A77;
    text-align: center;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    margin: 5% 10% 5% 10%;
    border-radius: 20px;
    min-height: 90px;
    transition: margin 0.4s ease;
}

/* PRODUCTS */
.products-select {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    margin: 5% 8% 5% 8%;
    line-height: 40px;
    gap: 6%;
    align-items: center; 
}

.product {
    text-align: center;
    background-color: #415A77;
    border-radius: 20px;
    max-width: 20%;
    padding: 20px;
    margin: 20px;
}

.product-image-select {
    margin-top: 20px;
    max-width: 90%;
    border-radius: 20px;
}

.product-information {
    background-color: #415A77;
    text-align: justify;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 50%;
    margin: 20px;
}

.product-information > div > ul {
    list-style-type: none;
}

.download {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.price-list-table {
    background-color: #415A77;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    margin: 5% 0% 5% 0%;
}

/* LICENCE PLATE FRAMES */
#licence-plate-frames-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 5% 8%;
    align-items: stretch;
}

.product-frame {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    background-color: #415A77;
    border-radius: 20px;
    padding: 20px;
    height: 100%;
    box-sizing: border-box;
}

.product-frame img {
    width: 100%;
    height: auto;
    margin: 0 auto;
}

/* FIRM */
#firm {
    display: flex;
    flex-direction: row;
    margin: 5% 8% 5% 8%;
    align-items: center;
    justify-content: space-around;
    gap: 4%;
}

#firm-logo, #firm-info {
    background-color: #415A77;
    padding: 1% 4% 1% 4%;
    border-radius: 20px;
}

#firm-text {
    font-size: var(--fs-text);
    text-align: justify;
}

#firm-info {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
}

#firm-shipment{
    display: flex;
    gap: 20px;
}

.country-icons {
    max-height: clamp(50px,8vw,200px);
}

/* CONTACT */
.download-icon {
    height: 60px;
}

#contact-info {
    line-height: 20px;
}

.contact-text {
    font-size: var(--fs-contact);
    line-height:26px;
    margin-top: 12px;
}

#contact-info > h2 {
    margin-bottom: 0;
}

.mainbox-contact {
    background-color: #415A77;
    text-align: center;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    margin: 5% 10% 5% 10%;
    border-radius: 20px;
    min-height: 90px;
    transition: margin 0.4s ease;
}

/* Links */
a {
    color: white;
    text-decoration: none;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
    nav, #language-menu, #mainphoto{
        margin: 0;
    }
    #upper-navbar-area {
        display: none;
    }
    .contener {
        margin: 0;
    }
    nav {
        top: 0;
    }
    #language-menu {
        top: 90px;
    }
    .price-list-table {
        border-radius: 0;
    }
}

@media (max-width: 1000px) {
    #firm {
        flex-direction: column;
        gap: 20px;
    }
    .products-select {
        margin: 0;
    }
    .mainbox {
        margin: 4% 0 4% 0;
        border-radius: 0;
    }
    .mainbox-contact {
        margin: 4% 0 0 0;
        border-radius: 0;
    }
}

@media (max-width: 900px) {
    .products-select {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .product {
        max-width: 90%;
    }
}

@media (max-width: 700px) {
    .mainbox-contact {
        flex-direction: column;
        padding-bottom: 8px;
    }
    h1, #nav-logo {
        font-size: var(--fs-logo);
    }
    h2 {
        font-size: var(--fs-h2-small);
    }
    #language-menu {
        justify-content: flex-start;
        align-items: stretch;
        width: auto;
        height: auto;
        background-color: transparent;
        gap: 10px;
        margin-right: 10px;
    }
    #nav-elements {
        display: none;
    }
    .menu-item {
        width: 100%;
        padding: 20px;
    }
    .menu-item:hover {
        background-color: #adabab;
    }
    .nav-menu li a {
        display: block;
        width: 100%;
        height: 100%;
        padding: 8px;
        text-decoration: none;
    }
    #dropdown-button {
        display: block;
    }
}