:root {
    --etm-primary: #d95726;
    --etm-primary-light: #ff7f50;
    --header-height: 6rem;
    --logo-width: 9.2rem;
    --nav-font-size: 1.1rem;
    --menu-gap: 2rem;
}

@media (max-width: 720px) {
    :root {
        --header-height: 5rem;
        --logo-width: 7rem;
    }
}

@media (max-width: 620px) {
    :root {
        --header-height: 4rem;
        --logo-width: 5rem;
        --nav-font-size: 1rem;
        --menu-gap: 1rem;
    }
}

@media (max-width: 520px) {
    :root {
        --nav-font-size: 0.9rem;
        --menu-gap: 0.75rem;
    }
}

@media (max-width: 420px) {
    :root {
        --logo-width: 17vw;
        --nav-font-size: 3.2vw;
        --menu-gap: 1.5vw;
    }

    .hideTiny {
        display: none !important;
    }
}

@media (max-width: 300px) {
    :root {
        --logo-width: 3.75rem;
        --nav-font-size: 0.7rem;
        --menu-gap: 1vw;
    }
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior: none;
    -webkit-overflow-scrolling: auto;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    font-style: normal;
    font-family: 'Libre Franklin', sans-serif;
    color: var(--etm-primary);
    hyphens: auto;
    margin-top: 3rem;
}

h1 {
    font-size: 2.5rem;
    margin: 0;
    margin-bottom: 1rem;
    margin-top: 1rem;
}

html, body {
    font-size: 16px;
    width: 100%;
    margin: 0;
    padding: 0;
}

@media (max-width: 300px) {
    html {
        font-size: 5.333vw;
    }
}

body {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    background-color: #ffffff;
    color: #000000;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: calc(var(--header-height) + 1rem);
}

a {
    color: #fff;
    text-decoration: none !important;
}

header {
    background-color: #000000;
    box-shadow: 0 0 1rem rgba(255,255,255,0.7);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    padding: 0 1rem;
}

header .logo {
    display: inline-block;
    width: var(--logo-width);
    height: calc(var(--header-height) - 2rem);
    margin-top: calc(0.05 * var(--logo-width));
    background-image: url('/res/img/logo/etm.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left center;
}

header .header-cta {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
}

@media (max-width: 520px) {
    header {
        padding-right: 0.5rem;
    }
}

.cta {
    padding: 1rem;
    padding-left: 0.5rem;
    background-color: var(--etm-primary);
    color: #fff;
    border-radius: 0.3rem;
    font-weight: bold;
    min-width: var(--logo-width);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.cta {
    padding: 0.7rem 1rem;
}

.cta i {
    margin-right: 0.5rem;
}

@media (max-width: 520px) {
    .cta {
        padding: 0.5rem;
        min-height: 2.5rem;
        min-width: 2.5rem;
    }
    .cta i {
        margin: 0;
    }
    .cta span {
        display: none;
    }
}

nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: var(--menu-gap);
}

nav a {
    color: #fff;
    font-size: var(--nav-font-size);
    text-decoration: none !important;
    padding-top: calc(0.3rem + 3px);
    padding-bottom: 0.3rem;
    border: 3px solid transparent;
    transition: border-color 0.5s;
}

nav a.active {
    border-top-color: var(--etm-primary);
}

.hero {
    width: 100%;
    max-width: 2500px;
    height: auto;
    display: block;
    margin: 0 auto;
    margin-top: -1rem;
}

main {
    padding: 2rem;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    min-height: calc(100vh - var(--header-height) - 11rem);
}

@media(max-width: 900px) {
    main {
        padding: 1rem;
    }
}

main p {
    font-size: 1rem;
    line-height: 1.5;
    color: #333;
    margin: 0;
    margin-top: 0.8rem;
}

.cta-button {
    padding: 1rem 1.5rem;
    font-size: 1rem;
    border: none;
    border-radius: 0.5rem;
    background-color: #4CAF50;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    transition: background-color 0.2s;
}

.cta-button:hover {
    background-color: #45a049;
}

.services {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    margin-top: 2rem;
}

.services.team {
    justify-content: flex-start;
}

.service-card {
    width: calc(((100% - 4rem) / 3) - 1px);
    background: #eee;
    border-radius: 0.3rem;
    padding: 1.75rem 1.25rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 14rem;
}

.team .service-card {
    width: calc(((100% - 2rem) / 2) - 1px);
}

@media(max-width: 900px) {
    .services {
        gap: 1rem;
    }

    .service-card {
        width: calc(((100% - 1rem) / 2) - 1px);
    }
}

@media(max-width: 600px) {
    .service-card {
        width: 100%;
    }
}

@media(max-width: 720px) {
    .services.team {
        gap: 2rem;
    }

    .team .service-card {
        width: 100%;
    }
}


.service-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
}

.team .service-card:hover {
    box-shadow: none;
}

.service-card * {
    hyphens: auto;
}

.service-card h3 {
    margin: 0;
    margin-top: 1rem;
    font-size: 1.25rem;
    color: #333;
}

.service-card p {
    font-size: 1rem;
    color: #333;
}

.service-card i {
    font-size: 3rem;
    color: var(--etm-primary);
}

.service-card img {
    width: 100%;
    max-width: 15rem;
    height: auto;
    border-radius: 0.3rem;
}

.service-card a {
    color: var(--etm-primary);
}

.team .service-card {
    padding: 0;
    background-color: transparent;
    border-radius: 0;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.team .service-card h3 {
    color: var(--etm-primary);
}

.team-info {
    padding: 1.5rem;
    padding-top: 0.5rem;
    background: #eee;
    border-radius: 0.3rem;
}

.team-info p {
    color: #777;
}

.team-info p.position {
    color: #333;
}


footer {
    background-color: #111;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    padding: 2rem 10rem;
}

@media (max-width: 1200px) {
    footer {
        padding: 2rem;
    }
}

@media (max-width: 900px) {
    footer {
        display: grid;
        gap: 3rem;
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "nav     links"
            "company company"
        ;
    }
}

@media (max-width: 600px) {
    footer {
        padding: 2rem 1.5rem;
        gap: 2rem;
    }
}

@media (max-width: 421px) {
    footer {
        font-size: 3.8vw;
    }
}

ul.footer-column {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.5rem;
    margin: 0;
}

ul.footer-column:nth-child(1) {
    grid-area: nav;
}

ul.footer-column:nth-child(2) {
    grid-area: company;
}

ul.footer-column:nth-child(3) {
    grid-area: links;
}

ul.footer-column:last-child {
    margin-right: 1rem;
}

ul.footer-column li {
    list-style: none;
    color: #bbb;
}

ul.footer-column li.footer-column-title {
    color: #fff;
    font-weight: bold;
    padding-bottom: 0.3rem;
}

ul.footer-column li a {
    color: var(--etm-primary-light);
}

ul.footer-column li a i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.2rem;
    margin-right: 0.2rem;
}

.footer-info {
    color: #fff;
}

.flex-center {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.mt-medium {
    margin-top: 2rem;
}

.huge-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
}

.huge-icon i {
    font-size: 10rem;
    color: #777;
    margin: 2rem 0;
}

.nowrap {
    white-space: nowrap;
    hyphens: none;
}