/* @font-face {
    font-family: Poppins;
    src: url(../fonts/Poppins/Poppins-Regular.ttf);
} */

:root {
    --header-height: 70px;
    --header-tucked-height: 60px;
}

body {
    font-family: system-ui;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 100vh;
    color: var(--text-color);
    background-color: var(--main-content-background);
}

.modal-open {
    overflow: hidden !important;
}

body.modal-open .page-wrapper {
    transform: scale(0.95);
    filter: brightness(0.5);
    overflow: hidden !important;
    pointer-events: none;
}

/* Ensure page wrapper does not affect modal */
.page-wrapper {
    transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
    width: 100%;
    transform-origin: 50% 25%;
}

main {
    margin-top: var(--header-height);
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    background: var(--main-content-background);
    min-height: calc(100vh - var(--header-height));
    transition: filter 0.3s, margin-top 0.3s;
}

main.hidden {
    margin-top: var(--header-tucked-height);
}



.main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: calc(100% - 40px);
    max-width: 1000px;
    margin-top: 20px;
    margin-bottom: 20px;
    gap: 20px;
}


/* Black and white smooth conversioon color scheme style */
.black-white-button {
    background-color: black;
    color: white;
    border: 1px solid black;
    cursor: pointer;
    transition: background-color 0.5s ease, color 0.5s ease;
}

.black-white-button:hover {
    background-color: #ffffff;
    color: black;
}

button {
    font-family: system-ui;
    user-select: none;
    -webkit-user-drag: none;
}

.main-title {
    margin: 20px 5px;
    max-width: calc(100% - 40px);
    font-weight: lighter;
}

.light-divider {
    max-width: 600px;
    width: 50%;
    margin-bottom: 0;
    margin-top: 20px;
    background: #b3b3b3;
    border: none;
    height: 1px;
}

.main-landing-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    background-color: #f6f8f9;
}

.section-title-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    width: calc(100% - 40px);
}

.section-title-container.medium {}

.section-title-contrasting-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
    margin-bottom: 20px;
    font-size: 29px;
}

.section-title-contrasting-item.medium h2 {
    font-size: 33px;
}

.section-title-contrasting-item h2 {
    margin: 0;
    text-align: center;
}

.section-title-contrasting-item h2:nth-of-type(1) {
    color: var(--text-color);
}

.section-title-contrasting-item h2:nth-of-type(2) {
    color: var(--light-blue-accent);
}

.section-title-container span,
.complete-carbon-neutrality-description {
    font-size: 19px;
    text-align: center;
    color: rgb(104, 104, 104);
    line-height: 1.2;
}

/* End of Body */

/* ~~~~~~~~~~~~~ */

/* Header */


header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
    color: var(--text-color);
    position: fixed;
    top: 0;
    z-index: 1000;
    background: var(--header-color);
    transition: height 0.3s, box-shadow 0.3s;
    width: 100%;
    backdrop-filter: blur(7px);
}

header.hidden {
    height: var(--header-tucked-height);
    box-shadow: 0 4px 10px rgb(107 107 107 / 41%);
}


.header-logo-a {
    height: 100%;
    display: flex;
    align-items: center;
}

.header-logo-and-nav {
    display: flex;
    align-items: center;
    margin-left: 50px;
    gap: 30px;
}

.logo {
    height: calc(100% - 20px);
    transition: height 0.3s, margin-left 0.3s;
    margin-left: 10px;
}

#nav-list {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    position: absolute;
    right: 100px;
}

#nav-list-collapse {
    font-size: 25px;
    margin-left: 10px;
    top: 10px;
    position: absolute;
    color: var(--text-color);
    cursor: pointer;
}

#nav-list ul {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px;
    list-style-type: none;
    padding-left: 0;
    text-align: center;
    list-style-type: none;
    margin: 0;
}


nav ul li a {
    color: #000000;
    text-decoration: none;
    white-space: nowrap;
    border-radius: 30px;
    transition: background-color 0.5s ease, color 0.5s ease;
    position: relative;
    font-family: system-ui;
}


#nav-list ul li {
    margin: 15px 0;
}

#nav-list ul li a {
    color: var(--text-color);
    font-size: 18px;
}

#nav-list ul li a:hover {
    color: var(--light-blue-accent);
}

nav ul li a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -5px;
    width: 0;
    height: 3px;
    background: var(--light-blue-accent);
    transition: width 0.3s ease-in-out, left 0.3s ease-in-out;
}

nav ul li a:hover::after,
nav ul li a:focus::after,
nav ul li a.current::after {
    width: 100%;
    left: 0;
}

#nav-list.show {
    transform: unset;
}

.mobile-only {
    display: none;
}

.scale-on-hover {
    transition: transform 0.2s ease;
}

.scale-on-hover:hover {
    transform: scale(1.05);
}

#hamburger-icon {
    cursor: pointer;
}

.hamburger-line {
    stroke: currentColor;
    stroke-width: 2;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Default (Hamburger) State */
.hamburger-line.nav_top {
    transform-origin: center;
}

.hamburger-line.nav_middle {
    opacity: 1;
}

.hamburger-line.nav_bottom {
    transform-origin: center;
}

/* Active (X) State */
#hamburger-icon.nav_active .hamburger-line.nav_top {
    transform: translateY(6px) translateX(-6px) rotate(45deg);
}

#hamburger-icon.nav_active .hamburger-line.nav_middle {
    opacity: 0;
}

#hamburger-icon.nav_active .hamburger-line.nav_bottom {
    transform: translateY(-6px) translateX(-6px) rotate(-45deg);
}


.page-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    margin-top: 40px;
    color: var(--text-color);
}



/* Toggle switch */
.toggle-switch {
    display: flex;
    align-items: center;
    margin-right: 20px;
    gap: 10px;
    transition: margin-right 0.3s;
}

#tucked-header.hidden .toggle-switch {
    margin-right: 10px;
}

.switch-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.profile-and-cart i {
    font-size: 1.5em;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.profile-and-cart i:hover {
    transform: scale(1.2);
}

.profile-and-cart {
    display: flex;
    align-items: center;
}


.language-switcher {
    position: relative;
    display: inline-block;
}

.language-switcher img {
    width: 30px;
    height: 30px;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
    margin-top: 5px;
    margin-left: 5px;
    border-radius: 10px;
}

.language-switcher img:hover {
    transform: scale(1.20);
}

/* End of Header */

/* ~~~~~~~~~~~~~ */

/* Footer */

footer {
    background: var(--themed-gradient);
    color: var(--text-color-inverse);
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.footer-content {
    display: flex;
    padding: 20px 0;
    margin-left: 20px;
    margin-right: 20px;
    position: relative;
    width: 100%;
    max-width: 1500px;
}


/* Left Section */
.footer-logo {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 22px;
    font-weight: bold;
    flex-direction: column;
}
.empowered-by-bm {
    font-weight: 200;
    font-size: 17px;
}

.logo-icon {
}

.footer-desc {
    margin: 12px 0;
    line-height: 1.5;
    color: #e0e0e0;
}

.footer-email {
    margin: 8px 0;
    font-weight: 500;
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.social-icons a {
    color: white;
    font-size: 20px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #cce5ff;
}

.footer-column {
    flex: 1;
    margin: 0 20px;
}

.footer-column h3 {
    color: var(--text-color-inverse);
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: bold;
}

.footer-column p {
    color: var(--text-color-inverse);
    font-size: 14px;
    display: flex;
    flex-direction: row;
    gap: 5px;
    text-decoration: none;
    margin-bottom: 5px;
    max-width: 600px;
}

.footer-column a {
    color: var(--text-color-inverse);
    font-size: 14px;
    display: flex;
    flex-direction: row;
    text-decoration: none;
    margin-bottom: 10px;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-left: 20px;
    margin-right: 20px;
    width: calc(100% - 40px);
    color: white;
    position: relative;
}

.footer-bottom p,
.footer-links a {
    color: var(--text-color-inverse);
    font-size: 14px;
    text-decoration: none;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.social-media {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 0;
    margin-top: 50px;
}

.social-media a svg {
    fill: white;
    height: 35px;
    width: 35px;
}

.social-media i {
    color: var(--text-color);
    font-size: 2em;
}


.bottom-contact-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--contrast-item-background);
    width: calc(100% - 20px);
    max-width: 900px;
    border-radius: 25px;
    margin-top: 20px;
    color: white;
}

.bottom-contact-section h2 {
    margin: 0;
    margin-top: 10px;
}

.bottom-contact-icons {
    display: flex;
    width: calc(100% - 20px);
    margin-bottom: 10px;
    gap: 20px;
    justify-content: space-evenly;
}

.bottom-contact-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    transition: background-color 0.3s;
    background-color: transparent;
    cursor: pointer;
    margin: 0;
    padding: 0;
    border-radius: 15px;
    gap: 15px;
    text-decoration: none;
    color: white;
}

.bottom-contact-icon:hover {
    background-color: #3d7de1;
}

.bottom-contact-icon svg,
.custom-social-icons svg {
    fill: #ffffff;
    width: 50px;
    height: 50px;
}

.bottom-contact-icon svg {
    margin-top: 10px;
}

.bottom-contact-icon p {
    margin: 0;
}

.custom-social-icons {
    display: flex;
    gap: 20px;
    width: calc(100% - 40px);
    height: 50px;
    justify-content: center;
    margin-top: 20px;
}

@media (max-width: 1250px) {
    .mobile-only {
        display: unset;
    }


    .header-logo-and-nav {
        margin-left: 0px;
    }

    .page-title {
        font-size: 1.5em;
        margin-bottom: 20px;
    }

    .hamburger-menu {
        display: block;
    }

    /* Mobile menu */
    #nav-list {
        background: #000000;
        transition: all 0.2s ease-in-out;
        z-index: 1000;
        height: calc(100vh - 70px);
        border-radius: 0;
        transform: unset;
        position: fixed;
        top: var(--header-height);
        right: 0;
        transform: translateX(100%);
        left: unset;
    }

    #nav-list ul {
        flex-direction: column;
        margin: 0 60px;
        gap: 0;
        margin-top: 20px;
    }

    #nav-list ul li a {
        color: #ffffff;
    }

    /* Class that will be toggled by JavaScript */
    header {
        justify-content: space-between;
    }

    .main-title {
        font-size: 23px;
    }

    #tucked-header.hidden #nav-list {
        height: calc(100vh - var(--header-tucked-height));
        top: var(--header-tucked-height);
    }
}

@media (max-width: 900px) {
    .bottom-contact-icons {
        gap: 15px;
        flex-direction: column;
        align-items: flex-start;
    }

    .bottom-contact-icon {
        gap: 5px;
    }

    .footer-content,
    .footer-bottom {
        flex-direction: column;
    }
}


@media (max-width: 768px) {
    :root {
        --header-height: 65px;
        --header-tucked-height: 60px;
    }

	.section-title-contrasting-item {
		margin-top: 40px;
		font-size: 19px;
	}

	.section-title-container span, .complete-carbon-neutrality-description {
		font-size: 17px;
		line-height: 1.5;
	}


    #nav-list ul {
        margin: 0 20px;
    }

    .logo {
        max-width: 250px;
        object-fit: contain;
    }

    .cta-button {
        padding: 8px 16px;
        font-size: 1em;
    }

    .main-title {
        font-size: 19px;
    }

    .social-media {
        margin-top: auto;
        display: flex;
        width: 100%;
        justify-content: center;
        margin-bottom: 0;
    }


    #tucked-header.hidden #nav-list {
        height: calc(100vh - 60px);
        top: 60px;
    }
}

@media (max-width: 500px) {
    .logo {
		max-width: 220px;
	}
    .main-title {
        font-size: 19px;
        max-width: calc(100% - 20px);
        text-align: center;
        margin: 20px 0;
    }
}