/**
 * Theme Name:        J&W General Construction
 * Description:       A custom WordPress theme for a construction. Designed by Cowlick studios..
 * Version:           1.0.0
 * Author:            Christian Moloci
 * Author URI:        https://christianmoloci.com
 */

/* Resets */
* {
    overflow-wrap: break-word;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-size: var(--paragraph-size);
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: "DM Sans", sans-serif;
}

a {
    color: var(--text-color);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

:is(h1, h2, h3, h4, h5, h6, p) > img {
    display: inline-block;
    vertical-align: middle;
    width: 1em;
}


/* vars */
:root {
    /* Colors */
    --background-color: #ffffff;
    --text-color: #141a18;
    --text-color-light: #74787c;
    --primary-color: #ff6a2a;

    /* Font sizes */
    --title-size: 114.44px;
    --header-1-size: 37.12px;
    --paragraph-size: 16.5px;
}

/* Fonts */
@font-face {
    font-family: "DM Sans";
    src: url("assets/fonts/DMSans-VariableFont_opsz,wght.ttf") format("truetype");
    font-display: swap;
}
@font-face {
    font-family: "Jost";
    src: url("assets/fonts/Jost-VariableFont_wght.ttf") format("truetype");
    font-display: swap;
}
@font-face {
    font-family: "Kumbh Sans";
    src: url("assets/fonts/KumbhSans-VariableFont_YOPQ,wght.ttf") format("truetype");
    font-display: swap;
}
@font-face {
    font-family: "Rubik";
    src: url("assets/fonts/Rubik-VariableFont_wght.ttf") format("truetype");
    font-display: swap;
}
@font-face {
    font-family: "Poppins";
    src: url("assets/fonts/Poppins-Regular.ttf") format("truetype");
    font-display: swap;
}

/* Global styles */
.link-button {
    display: block;
    background-color: var(--primary-color) !important;
    border: 1px solid var(--primary-color);
    border-radius: 0 !important;
    padding: 24px;
    color: white !important;
    width: fit-content;
    cursor: pointer;
    height: fit-content;
    font-family: "DM Sans", sans-serif !important;
}

h2.section-subtitle {
    font-size: var(--paragraph-size);
    font-family: "Jost", sans-serif;
    font-weight: 500;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

h1.section-title {
    margin-top: 10px;
    font-size: var(--header-1-size);
    font-family: "Jost", sans-serif;
    font-weight: 400;
    color: var(--text-color);
}

p {
    color: var(--text-color-light);
    font-family: "Kumbh Sans", sans-serif;
    line-height: 1.8em;
}

/* -- Logo Container -- */
.logo-link:hover {
    display: block;
    text-decoration: none;
}
.logo-container {
    max-width: 100%;
    /*min-width: fit-content;*/
    /*width: 100%;*/
    display: flex;
    justify-content: start;
    align-items: center;
    gap: 20px;
    overflow: hidden;
}
.logo-container .logo {
    width: 95px;
}
.logo-container .logo-text {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.logo-container .logo-text p {
    display: block;
    overflow-wrap: break-word;
    color: black;
}
.logo-container .logo-text p:first-of-type {
    --size: 40.39px;
    font-family: "DM Sans", sans-serif;
    font-size: var(--size);
    line-height: var(--size);
    letter-spacing: 0.1em;
    font-weight: 600;
}
.logo-container .logo-text p:last-of-type {
    --size: 27.5px;
    font-family: "DM Sans", sans-serif;
    font-size: var(--size);
    line-height: var(--size);
    letter-spacing: 9px;
    font-weight: 600;
}

@media screen and (max-width: 750px) {
    :root {
        /* Font sizes */
        --title-size: 4em;
        --header-1-size: 37.12px;
        --paragraph-size: 16.5px;
    }
    .logo-container .logo {
        width: 50px;
    }
}

@media screen and (max-width: 1310px) {
    .logo-container .logo-text p:first-of-type {
        font-size: 2em;
    }
    .logo-container .logo-text p:last-of-type {
        font-size: 1em;
    }
}