:root {
    --primary-color: #2b6bec;
    --primary-color-transparent: #2b6bec90; 
    --primary-color-very-transparent: #2b6bec80;

    --accent-color: #FF4B33;
    --accent-color-darker: #e61b00;
    --accent-color-darkest: #b31500;
}

@font-face {
    font-family: 'Montserrat';
    src: url('Resources/Fonts/subset-Montserrat-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('Resources/Fonts/subset-Montserrat-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('Resources/Fonts/subset-Montserrat-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: bold;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('Resources/Fonts/subset-Montserrat-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face { /* For Reducing CLS */
    font-family: "Adjusted Verdana Fallback";
    src: local(Verdana);
    size-adjust: 93%;
    ascent-override: normal;
    descent-override: normal;
    line-gap-override: normal;
}

* {
    font-family: "montserrat", "Adjusted Verdana Fallback";
}

html {
    scrollbar-gutter: stable; /* Reserve Space for the ScrollBar fixing layout shifts */
}

body {
    margin: 0;
    padding: 0;
}

/* #region Common */
.section-header-container {
    padding-inline: 1vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
@media only screen and (max-width:  1156px) {
    .section-header-container {
        margin-block: 5vw;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.25rem;
        text-align: center;
    }
}

.section-header {
    font-size: clamp(2rem, 3vw, 3rem);
}
@media only screen and (max-width:  1156px) {
    .section-header {
        margin: 0;
    }
}

.page-header-container {
    display: flex;
    justify-content: center;
}
@media only screen and (max-width:  1156px) {
    .page-header-container {
        text-align: center;
    }
}
.page-header {
    padding-inline: 2vw;
    font-size: clamp(1.4rem,3vw, 3rem);
}
/* #endregion */

/* #region NavBar */
.nav-bar {
    z-index: 3;
    position: fixed;
    top: 0;
    width: 100%;
    padding-top: 1svh;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    justify-items: center;
    transition: .25s ease-out;

    &.sticky {
        background-color: white;
        box-shadow: 0px 2px 4px rgb(0, 0, 0, 0.1);
        transition: .25s ease-out;
    }

    &.sticky .nav-link {
        font-size: clamp(1rem, 1.2vw, 2rem);
        color: black;
    }
    &.sticky .nav-link:hover {
        color: white;
    }
    &.sticky .hamburger {
        transform: scale(0.9);
    }
    &.sticky .nav-brand-text {
        transform: scale(0.9);
        color: black;
    }
    &.sticky .nav-contact-svg {
        transform: scale(0.9);
    }
    &.sticky .nav-contact-button {
        font-size: clamp(0.5rem, 1.2vw, 2rem);
    }

    &.non-home {
        position: sticky;
        background-color: white;
    }
    &.non-home .nav-link {
        color: black;
    }
    &.non-home .nav-link:hover {
        color: white;
    }
    &.non-home .nav-brand-text {
        color: black;
    }
}
@media only screen and (max-width:  1156px) {
    .nav-bar {
        grid-template-columns: 1fr auto auto;
    }
}

.nav-brand-container {
    margin-left: 1vw;
    margin-block: 0;
    justify-self: start;
}
.nav-brand-text {
    margin: 0;
    align-self: center;
    display: inline-flex;
    align-items: center;
    font-size: clamp(1.4rem, 2vw, 3rem);
    font-weight: 600;
    color: white;
    transition: .25s ease-out;
}
@media only screen and (max-width:  1156px) {
    .nav-brand-text {
        margin-left: 2vw;
    }
}
.nav-brand-logo {
    height: clamp(3.3rem, 4vw, 6rem);
    width: clamp(3.3rem, 4vw, 6rem);
    transition: .25s ease-out;
}

.nav-contact-button {
    height: max-content;
    padding: 10px;
    align-self: center;
    display: inline-flex;
    align-items: center;
    gap: clamp(0.3rem, 1vw, 0.5rem);
    border: 1px solid red;
    border-radius: 10px;
    font-size: clamp(0.5rem, 1.4vw, 2rem);
    font-weight: 500;
    color: var(--accent-color);
    background-color: transparent;
    cursor: pointer;
    transition: .25s;

    &:hover {
        background-color: var(--accent-color-darker);
        border-color: var(--accent-color-darker);
        color: white;
        transform: scale(0.99);
    }

    &:hover .nav-contact-svg{
        fill: white;
        transform: scale(0.99);
    }
}
@media only screen and (max-width:  1156px) {
    .nav-contact-button {
        height: max-content;
        padding: 10px;
        align-self: center;
        display: inline-flex;
        align-items: center;
        border: none;
        border-radius: 10px;
        color: var(--accent-color);
        background-color: transparent;
        cursor: pointer;
        transition: .25s;

        & .nav-contact-svg {
            height: auto;
            width: 1.7rem;
        }

        & .nav-contact-text {
            display: none;
        }
    }
}
.nav-contact-svg {
    fill: var(--accent-color);
    height: auto;
    width: clamp(1.2rem, 1.5vw, 1.9rem);
    transition: .25s ease-out;
}

.nav-links {
    margin-right: 1vw;
    display: flex;
    justify-self: end;
    align-items: center;
    gap: 0.2vw;
    transition: .25s ease-out;
}
@media only screen and (max-width:  1156px) {
    .nav-links {
        z-index: 2;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        row-gap: 1rem;
        height: 100vh;
        width: 100%;
        position: absolute;
        top: 0;
        left: -100vw;
        background: white;
        overflow: hidden;
        touch-action: none;
        transition: .25s ease;

        &.active {
            left: 0px;
        }

        &.active .nav-link {
            color: black;
            font-size: 2rem;
        }
    }
}
.nav-link {
    padding: 0.5vw;
    font-size: clamp(0.9rem, 1.3vw, 1.6rem);
    font-weight: 500;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    transition: .25s ease-out;
    text-decoration: none;
    text-align: center;

    &:hover {
        background-color: var(--accent-color-darker);
    }

    &.active {
        opacity: 50%;
        cursor: default;
        pointer-events: none;
    }

    &.active:hover {
        background-color: unset;
    }
}
@media only screen and (max-width:  1156px) {
    .nav-link:hover {
        background-color: white;
    }
}

.hamburger {
    display: none;
    z-index: 3;
    height: 40px;
    width: 40px;
    position: relative;
    margin-right: 2vw;
    align-self: center;
    justify-items: center;
    cursor: pointer;
    transition: .25s ease-out;

    & .bar {
        height:  3px;
        width: 90%;
        position: absolute;
        top: 50%;
        left: 50%;
        display: block;
        background-color: var(--accent-color);
        transform: translate(-50%, -50%);
        transition: .25s ease-out;
    }
    & .bar:nth-child(1) {
        top: 25%;
    }
    & .bar:nth-child(3) {
        top: 75%;
    }

    &.active .bar:nth-child(1) {
        top: 50%;
        transform: translate(-50%, -50%) rotate(45deg);
    }
    &.active .bar:nth-child(2) {
        opacity: 0%;
    }
    &.active .bar:nth-child(3) {
        top: 50%;
        transform: translate(-50%, -50%) rotate(-45deg);
    }
}
@media only screen and (max-width:  1156px) {
    .hamburger {
        display: block;
    }
}
/* #endregion */

/* #region Hero */
.hero-section {
    position: relative; /* For Nav And Gradient */
    min-height: 100svh;
    display: flex;
    flex-direction: column;
}

.scroll-watcher {
    position: absolute;
    top: 2;
    left: 0;
    height: 5px;
    width: 100%;
}

.hero-background {
    z-index: -2;
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color); /* For Fallback */
    background-image: url("Resources/Images/Hero.webp");
    background-image: image-set(
        url("Resources/Images/Hero.avif") type("image/avif"),
        url("Resources/Images/Hero.webp") type("image/webp")
    );
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    background-attachment: fixed;

    &::before {
        z-index: -1;
        width: 100%;
        height: 100%;
        position: absolute;
        content: '';
        background-color: var(--primary-color-transparent);
        filter: brightness(60%);
        backdrop-filter: blur(10px); /* Apply a Blur */
        mask-image: linear-gradient(to right, black 30%, transparent); /* Make the Gradient End at the End of the First Gradient Element*/
    }
}
@media only screen and (max-width:  1156px) {
  .hero-background {
    background-position: 83% center;
    background-attachment: local; /* Remove Paralax Effet for Phones */

    &::before {
      filter: brightness(60%);
      backdrop-filter: blur(0px);
      mask-image: none; /* Make the Gradient End at the End of the First Gradient Element for Safari*/

      background-color: var(--primary-color-very-transparent);
    }
  }
}

.hero-content {
    margin-left: 1vw;
    display: flex;
    flex-grow: 1;
    flex-direction: column;
    justify-content: center;
}
/* For Normal and Large Phones */
@media only screen and (max-width:  1156px) {
    .hero-content {
        margin-left: 0px;
        padding-top: 40svh;
        justify-content: center;
        align-items: center;
    }
}
/* For Normal and Large Phones in Landscape */
@media only screen and (max-width:  1156px) and (orientation: landscape) {
    .hero-content {
        margin-left: 0px;
        padding-top: 15svh;
        justify-content: center;
        align-items: center;
    }
}
/* For Small Phones */
@media only screen and (max-width:  375px) and (max-height: 693px) {
    .hero-content {
        margin-left: 0px;
        padding-top: 30svh;
        justify-content: center;
        align-items: center;
    }
}
/* For Small Phones in Landscape */
@media only screen and (max-width:  693px) and (max-height: 375px) and (orientation: landscape) {
    .hero-content {
        margin-left: 0px;
        padding: 10svh;
        justify-content: center;
        align-items: center;
    }
}

.hero-title {
    max-width: 50%;
    margin-bottom: 2rem;
    font-size: 2em; /* To Stop a Warning */
    font-size: clamp(2.5rem, 3.3vw, 4.1rem);
    font-weight: 700;
    color: white;
    font-family: "montserrat";
}
@media only screen and (max-width:  1156px) {
    .hero-title {
        max-width: 80%;
        padding-inline: 5vw;
        text-align: center;
    }
}

.hero-subtitle {
    max-width: 35%;
    margin-bottom: 2rem;
    margin-top: 0;
    font-size: clamp(1.3em, 1.583vw, 1.9em);
    font-weight: 500;
    color: white;
}
@media only screen and (max-width:  1156px) {
    .hero-subtitle {
        max-width: 100%;
        padding-inline: 5vw;
        text-align: center;
    }
}

.hero-button {
    max-width: fit-content;
    padding: clamp(1rem, 1.25vw, 1.5rem);
    font-size: clamp(1.3rem, 2vw, 2.5rem);
    font-weight: 600;
    text-decoration: none;
    color: white;
    background-color: var(--accent-color-darker);
    border: solid var(--accent-color-darker) 2px;
    border-radius: 10px;
    cursor: pointer;
    will-change: transform;
    transition: .25s ease-in;

    &:hover {
        scale: 0.99;
        background-color: var(--accent-color-darkest);
        border-color: var(--accent-color-darkest);
    }
}
@media only screen and (max-width:  1156px) {
    .hero-button {
        margin-top: auto;
        margin-bottom: 2rem;
        align-self: center;
    }
}

.hero-button-svg {
    height: auto;
    width: clamp(1.6rem, 2vw, 3rem);
    vertical-align: middle;
    fill: white;
    pointer-events: none;
}
/* #endregion */

/* #region ACs */
.more-acs-link {
    padding: .5rem;
    font-size: clamp(1rem, 2vw, 2.5rem);
    color: black;
    border-bottom: 5px solid var(--accent-color);
    text-decoration: none;
    transition: .25s ease-out;

    &:hover {
        background-color: var(--accent-color-darker);
        border-radius: 10px;
        color: white;
        cursor: pointer;
    }
}
@media only screen and (max-width:  1156px) {
    .more-acs-link {
        margin: 0;
        padding: 0.7rem;
        transition: .1s ease-out;
    }
}

.air-conditioners {
    padding-inline: 1vw;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-column-gap: 4vw;
    grid-row-gap: 4vw;
}
@media only screen and (max-width:  1156px) {
    .air-conditioners {
        grid-template-columns: 1fr 1fr;
    }
}
@media only screen and (max-width:  768px) {
    .air-conditioners {
        grid-template-columns: 1fr;
        row-gap: 3vw;
    }
}

.ac-card {
    display: flex; 
    flex-direction: column;
    border-radius: 10px;
    overflow: hidden; /* Hides Border being Cut Off*/
    box-shadow: 0px 1px 5px rgba(0, 0, 0, 0.35);

    &.hidden {
        display: none;
    }
}
@media only screen and (max-width:  1156px) {
    .ac-card {
        margin: 3vw;
    }
}

.ac-image {
    width: auto;
    height: 12vw;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
@media only screen and (max-width:  1156px) {
    .ac-image {
        height: 20vw;
    }
}
@media only screen and (max-width:  768px) {
    .ac-image {
        height: 35vw;
    }
}

.ac-image.vertical {
    object-fit: contain;
}

.ac-title {
    margin-bottom: 1.5vw;
    margin-top: 0;
    text-align: center;
    font-size: clamp(1.7rem, 1.5vw, 2.5rem);
}
/* For Small Phones */
@media only screen and (max-width:  375px) and (max-height: 693px) {
    .ac-title {
        font-size: clamp(1.5rem, 1.5vw, 2rem);
    }
}

.ac-brand {
    margin-bottom: .5vw;
    margin-top: 0;
    text-align: center;
    font-size: clamp(1rem, 1.5vw, 1.7rem);
    font-weight: 600;
}
/* For Small Phones */
@media only screen and (max-width:  375px) and (max-height: 693px) {
    .ac-brand {
        font-size: clamp(0.9rem, 1.5vw, 1.7rem);
    }
}

.ac-hot-cold-cards {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.ac-hot-cold-card {
    width: fit-content;
    position: relative;
    margin-block: 10px;
    padding: 15px;
    font-size: .9rem;
    border: 2px solid;
    border-radius: 10px;
}
/* For Small Phones */
@media only screen and (max-width:  375px) and (max-height: 693px) {
    .ac-hot-cold-card {
        font-size: clamp(0.8rem, 0.8vw, 1.2rem);
    }
}
.ac-hot-cold-card-sun {
    border-color: var(--accent-color);
}
.ac-hot-cold-card-snow {
    border-color: var(--primary-color);
}

.ac-svg {
    position: absolute;
    top: 0%;
    left:50%;
    transform:translate(-50%, -55%);
    background-color: white;
    padding-inline: 0.5rem;
}
.ac-svg-snow {
    fill: var(--primary-color);
}
.ac-svg-sun {
    fill: var(--accent-color);
}

.ac-body {
    text-align: left;
    font-size: 0.9rem;
}
/* For Small Phones */
@media only screen and (max-width:  375px) and (max-height: 693px) {
    .ac-body {
        font-size: 0.8rem;
    }
}

.ac-body-container {
    display: flex;
    justify-items: center;
    align-items: center;
    flex-direction: column;
}

.ac-price {
    margin-bottom: 0;
    margin-top: 0;
    text-align: center;
    font-size: clamp(1.7rem, 2vw, 2.7rem);
}
/* For Small Phones */
@media only screen and (max-width:  375px) and (max-height: 693px) {
    .ac-price {
        font-size: clamp(1.5rem, 2vw, 2.7rem);
    }
}

.ac-price-sub {
    margin-bottom: .5vw;
    margin-top: 0;
    text-align: center;
    font-size: clamp(1rem, 2vw, 1.4rem);
}
/* For Small Phones */
@media only screen and (max-width:  375px) and (max-height: 693px) {
    .ac-price-sub {
        font-size: clamp(0.9rem, 2vw, 1.5rem);
    }
}

.ac-price-sup {
    margin-bottom: 0;
    margin-top: 0;
    text-align: center;
    font-size: clamp(1.3rem, 2vw, 1.5rem);
    text-decoration: line-through;
    text-decoration-color: var(--accent-color);
}
/* For Small Phones */
@media only screen and (max-width:  375px) and (max-height: 693px) {
    .ac-price-sub {
        font-size: clamp(1rem, 2vw, 1.5rem);
    }
}

.ac-buttons {
    margin-bottom: 0.5vw;
    display: flex;
    justify-content: space-evenly;
}
.ac-button {
    padding: 9px;
    display: inline-flex;
    align-items: center;
    gap: clamp(0.3rem, 1vw, 0.5rem);
    background-color: var(--accent-color-darker);
    border-radius: 10px;
    border: 1px solid var(--accent-color-darker);
    font-size: clamp(1.2rem, 1.5vw, 1.6rem);
    color: white;
    text-decoration: none;
    cursor: pointer;
    will-change: transform;
    transition: .25s ease-out;

    &:hover {
        background-color: var(--accent-color-darkest);
        border-color: var(--accent-color-darkest);
        scale: 0.95;
    }
}
@media only screen and (max-width:  1156px) {   
    .ac-button {     
        margin-block: 3vw;
        padding: 1.5vw;
    }
}
/* For Small Phones */
@media only screen and (max-width:  375px) and (max-height: 693px) {
    .ac-button {
        margin-block: 2vw;
        font-size: clamp(1rem, 1.5vw, 1.9rem);
    }
}

.ac-button-svg {
    height: auto;
    width: clamp(1.2rem, 1.5vw, 1.9rem);
    fill: white;
}
/* For Small Phones */
@media only screen and (max-width:  375px) and (max-height: 693px) {
    .ac-button-svg {
        height: auto;
        width: 1rem;
    }
}
/* #endregion ACs */

/* #region Modal */
.order-modal {
    border-radius: 10px;
    border-color: white;
    transition: display 0.25s allow-discrete, overlay 0.25s allow-discrete, opacity 0.25s;
    animation: modal-close 0.25s forwards;
    
    &[open] {
        animation: modal-open 0.25s forwards;
    }

    &::backdrop {
        background-color: var(--primary-color-transparent);
        animation: backdrop-close 0.25s forwards;
    }

    &[open]::backdrop {
        animation: backdrop-open 0.25s forwards;
    }
}
@keyframes modal-open {
    from {
      opacity: 0;
      display: none;
    }
    to {
      opacity: 1;
      display: block;
    }
}
@keyframes modal-close {
    from {
      opacity: 1;
      display: block;
    }
    to {
      opacity: 0;
      display: none;
    }
}
@keyframes backdrop-open {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
      display: block;
    }
}
@keyframes backdrop-close {
    from {
      opacity: 1;
      display: block;
    }
    to {
      opacity: 0;
    }
}

.modal-container {
    display: flex;
    flex-direction: column;
}

.modal-title {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    font-size: clamp(1.3rem, 2vw, 1.5rem);
    padding: .5rem;
    margin: 0;
}

.modal-links {
    margin-bottom: 1vw;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2vw;
}

.modal-links .ac-button {
    margin: 0;
}

.modal-close-button {
    padding-inline: .3rem;
    margin: 0;
    background-color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: .25s ease-out;
    align-content: center;

    &:hover {
        transform: scale(0.9);
    }
}
.modal-close-button-svg {
    width: clamp(1.5rem, 2vw, 2rem);
    fill: var(--accent-color);
    transition: .25s ease-out;
}

.ac-button-viber {
    background-color: #7360f2;
    border-color: #7360f2;

    &:hover {
        background-color: #4e4879;
        border-color: #4e4879;
    }
}
.ac-button-whatsapp {
    background-color: #25D366;
    border-color: #25D366;

    &:hover {
        background-color: #128c7e;
        border-color: #128c7e;
    }
}
.ac-button-facebook {
    background-color: #1877F2;
    border-color: #1877F2;

    &:hover {
        background-color: #3B5998;
        border-color: #3B5998;
    }
}
.ac-button-instagram {
    background: linear-gradient(to right,#833ab4,#fd1d1d,#fcb045);
    border-color: unset;

    &:hover {
        background-color: none;
        border-color: unset;
        overflow: hidden;
    }
}
/* #endregion Modal */

/* #region WhyUs */
.why-us-section {
    padding-inline: 1vw;
    margin-block: 5vw;
}

.why-us-cards {
    margin-bottom: 5vw;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-column-gap: 5vw;
}
@media only screen and (max-width:  1156px) {        
    .why-us-cards {
        grid-template-columns: 1fr 1fr;
    }
}
@media only screen and (max-width:  768px) {
    .why-us-cards {
        grid-template-columns: auto;
    }
}

.why-us-card {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 10px;
    box-shadow: 0px 1px 5px rgba(0, 0, 0, 0.35);
}
@media only screen and (max-width:  1156px) {        
    .why-us-card {
        margin: 3vw;
        padding: 1rem;

        &:nth-last-child(1) {
            grid-column: span 2;
        }
    }
}
@media only screen and (max-width:  768px) {
    .why-us-card:nth-last-child(1) {
        grid-column: 1;
    }
}

.why-us-title {
    font-size: clamp(1.5rem, 2vw, 2rem);
    margin-top: 0;
    text-align: center;
}
/* #endregion */