/* Global style */
html, body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background-color: black;
}

h2, h3, h4, h5, h6 {
    font-family: "Libre Franklin", sans-serif;
}

p {
    font-size: 2.5vmin;
    font-family: "Libre Franklin", sans-serif;
}


/* Homepage style */
#home-body {
    background-image: url("images/background-desktop\ copy.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

#home {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
}

#main-section {
    display: flex;
    flex-direction: column;
    flex: 1.55;
    padding: 5vmin 5vmin 5vmin 5vmin;
    justify-content: space-between;
    /* background-image: url("images/background.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: right;
    background-color: #ffffff; */
}

#background-image {
    flex: 0.6;
    height: 100%;
    width: auto;
    overflow-x: hidden;
}

#side-section {
    flex: 1;
    padding: 5vmin 5vmin 5vmin 10vmin;
    /* background-color: #000000; */
}

.title-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}

.home-title {
    font-family: "Anton", sans-serif;
    font-weight: 400;
    color: #009933;
    font-size: 8.3vmin;
    line-height: 9vmin;
    margin: 0px;
    text-transform: uppercase;
    text-wrap: nowrap;
}

.text-section {
    display: flex;
    flex-direction: column;
    padding-top: 20px;
    /* gap: 10px; */
}

.home-subtitle {
    font-family: "Libre Franklin", sans-serif;
    font-weight: 700;
    font-style: italic;
    font-size: 5.5vmin;
    line-height: 5.5vmin;
    margin: 0px;
    text-shadow: -1px 0 white, 0 1px white, 1px 0 white, 0 -1px white;
    text-wrap: nowrap;
}

.home-text {
    width: 95%;
    font-family: "Libre Franklin", sans-serif;
    font-weight: 300;
    font-style: normal;
    font-size: 2.8vmin;
    line-height: 4vmin;
    margin: 0px;
    text-shadow: -1px 0 white, 0 1px white, 1px 0 white, 0 -1px white;
}

.buttons-section {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    /* padding-top: 20px; */
    flex-wrap: wrap;
}

.button-cta {
    height: auto; 
    width: 25vw;
}

.button-contact {
    height: auto; 
    width: 11vw; 
    border: 1px white solid; 
    border-radius: 12px;
}

#side-section {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.side-section-content {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    flex-wrap: nowrap;
}

.side-section-content:nth-child(1) {
  transform: translateX(-5vmin);
}

.side-section-content:nth-child(2) {
  transform: translateX(2vmin);
}

.side-section-content:nth-child(3) {
  transform: translateX(2vmin);
}

.side-section-content:nth-child(4) {
  transform: translateX(-5vmin);
}


.side-div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
}

.circles {
    height: 20vh;
}

.side-title {
    font-size: 4vmin;
    line-height: 4vmin;
    font-weight: 900;
    text-transform: uppercase;
    margin: 0px;
}

#side-1-text {
    color: #ffd83a;
}

#side-2-text {
    color: #cc3333;
}

#side-3-text {
    color: #34ccfe;
}

#side-4-text {
    color: #a1e22b;
}

/* Energy page */
#energy-body {
    background-color: white;
    width: 100vw;
    overflow-x: hidden;
}

.energy-title-div {
    position: absolute;
    width: 30vw;
    top: 20px;
    left: 10px;
}

.energy-title {
    width: 100%;
}

.energy-image {
    width: 101%;
    height: auto;
    /* position: relative; */
    display: block;
}

.priscilla-story {
    position: absolute;
    /* left: 50%;
    bottom: 0; */
    width: 20vw;
    transform: translate(38vw, -15vh);
}

.story-button {
    width: 100%;
}

.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.video-modal.active {
  display: flex;
}

.video-content {
  position: relative;
  max-width: 800px;
  width: 90%;
}

.video-content video {
  width: 100%;
  border-radius: 12px;
}

.close-modal {
  position: absolute;
  top: -40px;
  right: 0;
  font-size: 32px;
  color: #fff;
  cursor: pointer;
}

.top-footer {
    background-color: #d1d3d4;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-div {
    width: 30%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* vertical line */
.nav-div::after {
    content: "";
    position: absolute;
    right: 0;
    height: 50px;          /* line height */
    width: 1px;
    background-color: #666;
}

/* remove line after last item */
.nav-div:last-child::after {
    display: none;
}

.nav-text {
    height: 3.6vmin;
    padding: 10px;
}

.bottom-footer {
    background-color: #ffd83a;
    height: 15px;
}

/* Flood page */
.susan-doug-story {
    position: absolute;
    /* left: 50%;
    bottom: 0; */
    width: 20vw;
    transform: translate(38vw, -15vh);
}

.flood-bottom-footer {
    background-color: #34ccfe;
    height: 15px;
}

/* Heat page */
.harold-story {
    position: absolute;
    /* left: 50%;
    bottom: 0; */
    width: 20vw;
    transform: translate(40vw, -15vh);
}

.heat-bottom-footer {
    background-color: #cc3333;
    height: 15px;
}

/* Solutions page */
.solutions-bottom-footer {
    background-color: #a1e22b;
    height: 15px;
}

/* Small tablets and mobile */
@media (min-width: 751px) and (max-width: 1100px) and (orientation:portrait){
    /* Global style */
    html, body {
        margin: 0;
        padding: 0;
        min-height: 100vh;
    }

    /* Homepage style */
    #home-body { 
        background-image: url("images/background-mobile.png");
        background-size: contain;
        background-repeat: no-repeat;
        background-position: bottom;
        background-color: #ffffff;
    }

    #home {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-height: none !important; 
    }

    #main-section {
        display: flex;
        flex-direction: column;
        flex: 1.8;
        padding: 8vmin;
        align-items: center;
        /* gap: 4vmin; */
    }

    #side-section {
        flex: 1;
        padding: 8vmin;
    }

    .title-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 30px;
    }

    .home-title {
        font-family: "Anton", sans-serif;
        font-weight: 400;
        color: #009933;
        font-size: 10vmin;
        line-height: 10vmin;
        margin: 0px;
        text-transform: uppercase;
        text-align: center;
    }

    #logo-image {
        position: absolute;
        transform: translate(-30vmin, -10vmin);
    }

    .text-section {
        display: flex;
        flex-direction: column;
        /* gap: 20px; */
        align-items: center;
        justify-content: center;
        padding-top: 20px;
    }

    .home-subtitle {
        font-family: "Libre Franklin", sans-serif;
        font-weight: 700;
        font-style: italic;
        font-size: 7vmin;
        line-height: 7vmin;
        margin: 0px;
        text-shadow: -1px 0 white, 0 1px white, 1px 0 white, 0 -1px white;
        text-align: center;
    }

    .home-text {
        font-family: "Libre Franklin", sans-serif;
        font-weight: 300;
        font-style: normal;
        font-size: 3.5vmin;
        line-height: 4.5vmin;
        margin: 0px;
        text-shadow: -1px 0 white, 0 1px white, 1px 0 white, 0 -1px white;
        text-align: center;
    }

    .buttons-section {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }

    .button-cta {
        height: auto; 
        width: 70vw;
    }

    .button-contact {
        height: auto; 
        width: 30vw; 
        border: 1px white solid; 
        border-radius: 12px;
    }

    #side-section {
        display: flex;
        flex-direction: row;
        gap: 5vmin;
        flex-wrap: wrap;
        justify-content: center;
    }

    .side-section-content {
        display: flex;
        flex-direction: row;
        /* gap: 1rem; */
        width: 75vw;
        justify-content: center;
    }

    .side-section-content:nth-child(1) {
    transform: none;
    }

    .side-section-content:nth-child(2) {
    transform: none;
    }

    .side-section-content:nth-child(3) {
    transform: none;
    }

    .side-section-content:nth-child(4) {
    transform: none;
    }


    .side-div {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 0.5rem;
        width: 40vw;
    }

    .circles {
        height: 22vw;
    }

    .side-title {
        font-size: 6vmin;
        line-height: 6vmin;
    }

    /* Energy page */
    #energy-body {
        background-color: white;
    }

    /* .energy-title-div {
        position: static;
        width: 100%;
        padding: 20px 0;
        text-align: center;
    }

    .energy-title {
        width: 90%;
    } */

    .priscilla-story {
        position: absolute;
        /* left: 50%;
        bottom: 0; */
        width: 200px;
        transform: translate(48vw, -10vw);
    }

    .top-footer {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .nav-div {
        width: 50%;
        height: 80px;
    }

    /* Vertical divider — left column only */
    .nav-div:nth-child(odd)::after {
        content: "";
        position: absolute;
        right: 0;
        top: 20%;
        height: 60%;
        width: 1px;
        background-color: #666;
    }

    /* Remove vertical divider from right column */
    .nav-div:nth-child(even)::after {
        display: none;
    }

    /* Horizontal divider — top row only */
    .nav-div:nth-child(-n+2)::before {
        content: "";
        position: absolute;
        bottom: 0;
        left: 15%;
        width: 70%;
        height: 1px;
        background-color: #666;
    }

    .nav-text {
        padding: 8px;
        text-align: center;
        height: 4.5vmin;
    }

    /* Flood page */
    .susan-doug-story {
        position: absolute;
        /* left: 50%;
        bottom: 0; */
        width: 200px;
        transform: translate(48vw, -10vw);
    }

    /* Heat page */
    .harold-story {
        position: absolute;
        /* left: 50%;
        bottom: 0; */
        width: 200px;
        transform: translate(48vw, -10vw);
    }

}


/* Small tablets and mobile */
@media (max-width: 750px){
/* (min-width: 751px) and (max-width: 1100px){ */
    /* Global style */
    html, body {
        margin: 0;
        padding: 0;
        min-height: 100vh;
    }

    /* Homepage style */
    #home-body { 
        background-image: url("images/background-mobile.png");
        background-size: contain;
        background-repeat: no-repeat;
        background-position: bottom;
        background-color: #ffffff;
    }

    #home {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-height: none !important; 
    }

    #main-section {
        display: flex;
        flex-direction: column;
        flex: 1.8;
        padding: 8vmin;
        align-items: center;
        /* gap: 4vmin; */
    }

    #side-section {
        flex: 1;
        padding: 8vmin;
    }

    .title-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 30px;
    }

    .home-title {
        font-family: "Anton", sans-serif;
        font-weight: 400;
        color: #009933;
        font-size: 10vmin;
        line-height: 10vmin;
        margin: 0px;
        text-transform: uppercase;
        text-align: center;
    }

    #logo-image {
        position: absolute;
        transform: translate(-30vmin, -10vmin);
    }

    .text-section {
        display: flex;
        flex-direction: column;
        /* gap: 20px; */
        align-items: center;
        justify-content: center;
        padding-top: 20px;
    }

    .home-subtitle {
        font-family: "Libre Franklin", sans-serif;
        font-weight: 700;
        font-style: italic;
        font-size: 7vmin;
        line-height: 7vmin;
        margin: 0px;
        text-shadow: -1px 0 white, 0 1px white, 1px 0 white, 0 -1px white;
        text-align: center;
    }

    .home-text {
        font-family: "Libre Franklin", sans-serif;
        font-weight: 300;
        font-style: normal;
        font-size: 3.5vmin;
        line-height: 4.5vmin;
        margin: 0px;
        text-shadow: -1px 0 white, 0 1px white, 1px 0 white, 0 -1px white;
        text-align: center;
    }

    .buttons-section {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }

    .button-cta {
        height: auto; 
        width: 70vw;
    }

    .button-contact {
        height: auto; 
        width: 30vw; 
        border: 1px white solid; 
        border-radius: 12px;
    }

    #side-section {
        display: flex;
        flex-direction: row;
        gap: 5vmin;
        flex-wrap: wrap;
        justify-content: center;
    }

    .side-section-content {
        display: flex;
        flex-direction: row;
        /* gap: 1rem; */
        width: 75vw;
        justify-content: center;
    }

    .side-section-content:nth-child(1) {
    transform: none;
    }

    .side-section-content:nth-child(2) {
    transform: none;
    }

    .side-section-content:nth-child(3) {
    transform: none;
    }

    .side-section-content:nth-child(4) {
    transform: none;
    }


    .side-div {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 0.5rem;
        width: 40vw;
    }

    .circles {
        height: 22vw;
    }

    .side-title {
        font-size: 6vmin;
        line-height: 6vmin;
    }

    /* Energy page */
    #energy-body {
        background-color: white;
    }

    .energy-title-div {
        position: static;
        width: 100%;
        padding: 20px 0;
        text-align: center;
    }

    .energy-title {
        width: 90%;
    }

    .priscilla-story {
        position: absolute;
        /* left: 50%;
        bottom: 0; */
        width: 200px;
        transform: translate(48vw, -20vw);
    }

    .top-footer {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .nav-div {
        width: 50%;
        height: 80px;
    }

    /* Vertical divider — left column only */
    .nav-div:nth-child(odd)::after {
        content: "";
        position: absolute;
        right: 0;
        top: 20%;
        height: 60%;
        width: 1px;
        background-color: #666;
    }

    /* Remove vertical divider from right column */
    .nav-div:nth-child(even)::after {
        display: none;
    }

    /* Horizontal divider — top row only */
    .nav-div:nth-child(-n+2)::before {
        content: "";
        position: absolute;
        bottom: 0;
        left: 15%;
        width: 70%;
        height: 1px;
        background-color: #666;
    }

    .nav-text {
        padding: 8px;
        text-align: center;
        height: 4.5vmin;
    }

    /* Flood page */
    .susan-doug-story {
        position: absolute;
        /* left: 50%;
        bottom: 0; */
        width: 200px;
        transform: translate(48vw, -20vw);
    }

    /* Heat page */
    .harold-story {
        position: absolute;
        /* left: 50%;
        bottom: 0; */
        width: 200px;
        transform: translate(48vw, -20vw);
    }

}
