:root {
    --navy: #000080;
}

@font-face {
    font-family: "Selawik";
    src: url("../fonts/selawk.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Selawik";
    src: url("../fonts/selawkb.ttf") format("truetype");
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

body.coming-soon {
    background-color: var(--navy);
    margin: 0;
    color: black;
    font-family: "Selawik", system-ui, sans-serif;
    text-align: center;
}

p, a span, span {
    font-size: clamp(1rem, 1.5vw, 3rem);
}

/*SECTION 1*/
.section_1 {
    display: flex;
    flex-direction: column;
    background-color: #f4f4f4;
    min-width: 0;
}

.section_1 div:first-of-type {
    border-top: var(--navy) 2.9555rem solid;
    border-bottom: black 0.45rem solid;
}

.section_1 img {
    display: none;
}

.section_1 h1 {
    margin: 5px 0;
    line-height: 1;
    font-size: clamp(1.7rem, 3.5vw, 5rem);
}

.section_1 h2 {
    margin: -5px 0 5px 0;
    color: #003052;
    line-height: 1;
    font-size: clamp(1rem, 2cqi, 2.25rem);
}

.section_1 div:last-of-type {
    display: none;
}


/*SECTION 2*/
.section_2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f4f4f4;
}

.section_2 div {
    font-weight: bold;
}

.section_2 img {
    width: 15rem;
    height: auto;
    margin: 1rem 0;
}

.section_2 div p {
    margin: 0.5rem;
}

.section_2 div p:nth-of-type(2) {
    color: #003052;
}

.section_2 div p:nth-of-type(4) {
    color: #003052;
}


/*SECTION 3*/
.section_3 {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #6393df;
    padding: 10px 0;
    font-weight: bold;
    border-bottom: var(--navy) 30px solid;
}

.section_3 div p {
    margin: 0.5rem;
}
.get_in_touch_text {
    display: block;
    color: #003052;
    font-size: clamp(1.8rem, 2.5cqi, 4rem) !important;
    text-align: center;
}
.one_team_text {
    font-size: clamp(1.8rem, 2.5cqi, 4rem);
}

.get_in_touch_container p:first-of-type {
    color: white;
    text-align: start;
    margin-bottom: 0;
}
a:has(.whatsapp) {
    color: black;
    text-decoration: none;
}
div.whatsapp > span {
    font-size: clamp(2.7rem, 4cqi, 4.8125rem);
}
div.facebook > span, div.instagram > span {
    font-size: clamp(1rem, 2.5cqi, 3rem);
}
.get_in_touch_container .icon_container {
    grid-template-columns: 40px 1fr;
}

.van-2 {
    width: clamp(18.75rem, 15.493rem + 10.423vi, 28rem);
    height: auto;
    margin: 1rem 0;
}

.one_team_container p:nth-of-type(1) {
    color: #003052;
}
.one_team_container p:nth-of-type(2) {
    color: white;
    line-height: 1.2;
}
a:has(.facebook), a:has(.instagram) {
    color: black;
    text-decoration: none;
}
.one_team_container .icon_container {
    grid-template-columns: 30px 1fr;
}


/*Making the icons and corresponding in-line texts neatly*/
.icon_container {
    display: grid;
    row-gap: 12px;
    column-gap: 12px;
    align-items: center;
    width: fit-content; 
    margin: 0 auto;
}
/* Flatten BOTH direct div children AND anchor-wrapped rows */
.icon_container > div,
.icon_container > a {
    display: contents;
}
/* Flatten the div sitting inside the anchor too */
.icon_container > a > div {
    display: contents;
}
.icon_container .dph_icon {
    grid-column: 1;
    width: 3rem;
    height: auto;
    justify-self: center;
    padding-left: 0.3125rem;
}
.one_team_container .icon_container > div:first-child .dph_icon {
    width: 2.5rem;
}
.icon_container span {
    grid-column: 2;
    justify-self: center;
}


/*LARGER SCREENS*/
@media (min-width: 900px) {
    .section_1, .section_2, .section_3 {
        display: flex;
        flex-direction: row;
        justify-content: center;
    }
    .section_2 {
        justify-content: space-between;
        padding: 0 1rem;
    }

    /*SECTION 1*/
    .section_1 {
        display: grid;
        grid-template-columns: auto 1fr auto;
    }

    .section_1 img, .section_1 div:last-of-type {
        display: inline-block;
        width: 25rem;
        height: auto;
    }

    .section_1 div:first-of-type {
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 100%;
        border-top: var(--navy) 2.45rem solid;
        border-bottom: black 0.5rem solid;
    }

    .section_1 div:last-of-type {
        width: 6vw;
        height: auto;
        border-top: var(--navy) 2.45rem solid;
        background-image: linear-gradient(90deg, black 87%, transparent 0%);
        background-size: 3rem 0.5rem;
        background-repeat: repeat-x;
        background-position: bottom right;
    }
    

    /*SECTION 2*/
    .section_2 img {
        margin: 1rem 2rem;
    }


    /*SECTION 3*/
    .section_3 {
        align-items: stretch;
        justify-content: space-evenly;
        line-height: 1.2;
        padding: 2rem 0;
        border-bottom: var(--navy) 50px solid;
    }
    .section_3 p, .section_3 span {
        font-size: 1.2cqi;
    }

    .icon_container {
        display: grid;
        row-gap: 0;
        column-gap: 12px;
        align-items: center;
        width: fit-content; 
        margin: 0 auto;
    }

    .get_in_touch_text {
        display: block;
        padding-left: 4.5cqi;
    }

    div.whatsapp > span {
        font-size: clamp(2.7rem, 4cqi, 4.8125rem);
    }
    .instagram span {
        margin-top: -1rem;
    }

    .get_in_touch_container {
        display: flex;
        flex-direction: column;
        max-width: 50%;
    }
    .get_in_touch_container .icon_container {
        grid-template-columns: 4cqi 1fr;
        margin-top: -0.5rem;
        margin-bottom: -1rem;
        flex-grow: 1;
        align-content: space-around;
    }
    .get_in_touch_container .icon_container .dph_icon {
        width: 3.5cqi;
        height: auto;
    }
    
    .van-2 {
        align-self: flex-end;
        height: auto;
        margin: 0 clamp(0.5rem, -1.167rem + 3.472vi, 3rem);
    }

    .one_team_container {
        display: flex;
        flex-direction: column;
        max-width: 25%;
        white-space: nowrap;
    }
    .one_team_container .icon_container {
        grid-template-columns: 3cqi 1fr;
        flex-grow: 1;
        align-content: space-around;
        margin-bottom: -1rem;
    }
    div.one_team_container p {
        margin-bottom: 0;
    }
}


/*PREVENTS WRAPPING OF PARAGRAPH: AS ALWAYS, THANKS TO OUR CUSTOMERS...*/
@media (min-width: 1476px) {
    .section_3 div:first-of-type p {
        font-size: 1.6cqi;
    }
}