*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    padding: 0;
    margin: 0;
    font: inherit;
}

:root {
    --dark-navy: #142850;
    --navy: #27496D;
    --accent: #DB8F1D;
    --light: #cccccc;
}

body {
    min-height: 100svh;
    background-color: var(--light);
}

html {
    hanging-punctuation: first last;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    text-wrap: balance;
    overflow-wrap: break-word;
}

img,
picture,
svg,
video {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: var(--light);
    font-size: 1rem;
}

p,
li,
a,
input {
    max-width: 75ch;
    text-wrap: pretty;
    list-style: none;
    overflow-wrap: break-word;
}

@media (prefers-reduced-motion: no-preference) {
    :has(:target) {
        scroll-behavior: smooth;
        scroll-padding: 3rem;
    }
}

body {
    /* background-color: #e5e3ee; */
    min-height: 100svh;
    -webkit-font-smoothing: antialiased;
    font-optical-sizing: auto;
    font-style: normal;
    font-variation-settings: "wdth" 100;

    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

.debug {
    border: dotted 1px red;
}

.cta-btn {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-navy);
    background-color: var(--accent);
    padding: 10px;
    border-radius: 10px;
    box-shadow: 2px 3px 15px var(--navy);
    text-shadow: 2px 1px 2px var(--light);
}

header {
    position: fixed;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #142850EE;
    box-shadow: 1px 1px 20px var(--navy);
    padding: 5px 25px;
    z-index: 1000;
}

header picture {
    width: auto;
}


header nav a {
    margin: 15px;
    font-size: 1rem;
    color: var(--light);
}

header .toggle-btn {
    display: none;
    color: var(--light);
}

header .dropdown-menu {
    display: none;
    height: 0;
    position: absolute;
    right: 2rem;
    top: 125px;
    width: 400px;
    background: linear-gradient(135deg, rgba(var(--navy), .3), rgba(var(--navy), .1));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid #06D00118;
    overflow: hidden;
    box-shadow: 0 8px 32px #ababab44;
    /* Animate when appear on screen */
    transition: height .2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: 700;
}

header .dropdown-menu a {
    color: var(--light);
    font-weight: 700;

    &:last-child {
        padding-top: auto;
    }
}

section.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100dvh;
    width: 100%;
    background-position: center;
    background-attachment: fixed;
    background-size: cover;
}

section.hero-image {
    background-image: linear-gradient(#142850, #000000de),
        url(../images/backgrounds-desktop/masters-of-towing-backgroung-hero.webp);
}

section.hero.hero-image>picture>img {
    height: auto;
    margin-top: -100px;
}

section.hero.hero-image>hgroup {
    color: var(--light);
    text-align: center;
    line-height: 1.6;
}

section.hero.hero-image>hgroup h1 {
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 4px 4px #000;
}

section.hero.hero-image>hgroup h2 {
    font-weight: 500;
    margin-bottom: 30px;
}


/* ================= About =================== */
section.about {
    height: 100%;
    width: 100%;
    background-color: #f9fcff;
    background-image: linear-gradient(135deg, #f9fcff 0%, #dee4ea 74%);
    padding: 75px 15px;
}

section.about h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark-navy);
    text-shadow: 1px 1px 2px var(--navy);
}

section.about .cta-btn {
    margin-top: 35px;
}


section.about>.about-container {
    width: 100%;
    max-width: 1080px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

section.about>.about-container picture {
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: 40%;
    margin-right: 25px;
}

section.about>.about-container picture img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 0.75rem var(--dark-navy)) grayscale(25%);
}


section.about>.about-container>.content-col>.about-text {
    border-left: solid 2px var(--accent);
    padding-left: 15px;
    color: var(--dark-navy);
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: 50px;
    text-align: left;
}

section.about>.about-container>.content-col>.about-text p {
    margin: 10px;
}

section.about>.about-container>.content-col>.about-text p>span {
    color: var(--accent);
    font-weight: 600;
    font-size: 1.25rem;
}

section.services {
    height: 75dvh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    padding: 50px 15px;
}

section.services h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--light);
    text-shadow: 3px 3px 1px var(--dark-navy);
}

section.service-image {
    background-image: linear-gradient(#142850, #27496D44),
        url(../images/backgrounds-desktop/services-background.webp);
}




section.services>.cards-container {
    width: 100%;
    max-width: 1024px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    margin-top: 35px;
}

section.services>.cards-container .card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 2px solid #DB8F1D;
    border-radius: 5px;
    height: 150px;
    width: auto;
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: 30%;
    text-transform: capitalize;
    color: var(--light);
    text-shadow: 2px 2px 1px var(--navy);
    box-shadow: 1px 1px 10px var(--accent);
    background-color: transparent;
}

section.services>.cards-container h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

section.services>.cards-container svg {
    width: 64px;
    height: auto;
    fill: var(--accent);
    filter: drop-shadow(20px 20px 100px var(--accent));
}

section.why-masters {
    height: 100%;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: center;
    padding: 75px 0;
    color: var(--dark-navy);


    background-color: var(--light);
}

section.why-masters>.col:first-child {
    padding: 25px 10px;
    flex-grow: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

section.why-masters>.col:first-child h2 {
    text-align: center;
    margin-bottom: 25px;
    font-weight: 700;
    font-size: 1.75rem;
}

section.why-masters>.col:first-child p {
    margin-bottom: 15px;
    text-align: center;
    line-height: 1.5;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--navy);
}

section.why-masters>.col:first-child>.why-container-bottom {
    display: flex;
    justify-content: space-evenly;
    gap: 25px;
    margin-top: 35px;
}

section.why-masters>.col:first-child>.why-container-bottom>div {
    text-align: center;
    border-radius: 5px;
    flex: 1 1 0px;
    padding: 10px 0;
}

section.why-masters>.col:first-child>.why-container-bottom>div h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 5px;
}

section.why-masters>.col:first-child>.why-container-bottom>div p {
    color: var(--navy);
    font-weight: 900;
    text-align: center;
}

section.why-masters>.col:last-child {
    height: 100%;
}

section.why-masters>.col:last-child ul {
    margin-bottom: 50px;
}

section.why-masters>.col:last-child ul>li {
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 2;
}

section.why-masters>.col:last-child ul>li>.material-symbols-outlined {
    color: var(--accent);
    padding-right: 10px;
    font-variation-settings: 'FILL' 0, 'wght' 900, 'GRAD' 0, 'opsz' 48;
}

section.contact {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 15px;
    height: 50dvh;
    width: 100%;
    background-position: center;
    background-attachment: fixed;
    background-size: cover;
}

section.contact-image {
    background-image: linear-gradient(#142850, #27496D99),
        url(../images/backgrounds-desktop/contact-image.webp);
}

section.contact>.contact-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

section.contact>.contact-container .cta-btn {
    text-align: center;
    max-width: 100%;
    margin: auto;
}

section.contact>.contact-container>.contact-text {
    color: var(--light);
    padding: 25px;
    width: 75%;
}

section.contact>.contact-container>.contact-text h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 25px auto;
}

section.contact>.contact-container>.contact-text p {
    font-weight: 500;
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 25px;
}

footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 50px 0;
    background-color: var(--dark-navy);
    color: var(--light);
}

footer>.col:first-child {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
}

footer>.col:first-child picture>img {
    width: 128px;
    height: auto;

}

footer>.col:first-child h3 {
    font-size: 1.5rem;
    font-weight: 500;
    text-shadow: 1px 0 2px #000;
    text-transform: capitalize;
}

footer>.col:first-child p {
    font-size: 1.1rem;
    margin-top: 10px;
}

footer>.col:last-child {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
}

footer>.col:last-child h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

footer>.col:last-child ul {
    margin-top: 10px;
}

footer>.col:last-child ul>li {
    margin: 10px 0;
}

footer>.col:last-child ul>li>a {
    flex-direction: row;
    justify-content: start;
    font-weight: 500;
    font-size: 1.15rem;
}

footer>.col:last-child span.material-symbols-outlined {
    color: var(--accent);
    margin-right: 10px;
}

div.copy-right {
    background-color: var(--dark-navy);
    color: var(--light);
    display: flex;
    padding: 10px 0;
    justify-content: center;
    font-weight: 500;
    text-align: center;
}


/* =========================================================== */
/* =========================================================== */
/*                           TABLET                            */
/* =========================================================== */
/* =========================================================== */
@media screen and (max-width: 992px) {

    /* =================== */
    /*        HEADER       */
    /* =================== */
    header {
        justify-content: unset;
    }

    header nav,
    a {
        display: none;
    }

    header .toggle-btn {
        display: flex;
        margin-left: auto;
    }

    header .toggle-btn span {
        font-size: 3rem;
    }

    header .dropdown-menu>nav,
    a {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        text-shadow: 2px 2px 2px var(--dark-navy);
    }


    header .dropdown-menu.open {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: auto;
        padding: 15px 0;
    }

    /* ========== ABOUT =========== */
    main>section.about>.about-container>.content-col>h2 {
        margin: 25px;
    }

    main>section.about>.about-container {
        flex-direction: column;
    }

    main>section.about>.about-container picture {
        margin: 0;
    }

    main>section.about>.about-container>.content-col>.about-text {
        margin: 25px 25px 50px 25px;
    }

    main>section.about>.about-container>.content-col>a {
        margin-left: 25px;
    }

    /* ========= FOOTER ========= */
    footer {
        flex-direction: column;
        padding-left: 15px;
        gap: 25px;
    }
}


/* =========================================================== */
/* =========================================================== */
/*                           MOBILE                            */
/* =========================================================== */
/* =========================================================== */
@media screen and (max-width: 576px) {

    header {
        padding: 0 5px;
    }

    header picture>img {
        height: 82px;
    }

    header .toggle-btn>span {
        font-size: 2rem;
    }

    header .dropdown-menu {
        width: 90%;
        height: auto;
        top: 100px;
        right: unset;
    }

    section.hero.hero-image>picture>img {
        margin: 0;
    }

    section.hero-image {
        background-image: linear-gradient(#142850, #000000de),
            url(../images/backgrounds-mobile/masters-of-towing-backgroung-hero.webp);
    }

    section.hero.hero-image>hgroup {
        line-height: 1;
        margin-top: -35px;
    }

    section.hero.hero-image>hgroup h1 {
        font-size: 2rem;
        margin-bottom: 50px;
    }

    section.services {
        height: 100%;
    }

    section.service-image {
        background-image: none;
        background-color: #142850;
        /* background-image: linear-gradient(#142850, #27496D44),
            url(../images/backgrounds-mobile/services-background.jpg);
        background-size: cover;
        background-position: center bottom;
        background-origin: border-box; */
    }

    section.services h2 {
        font-size: 1.5rem;
    }

    section.services .cards-container {
        flex-direction: column;
        flex-wrap: nowrap;
    }

    section.services>.cards-container>.card {
        width: 100%;
        max-width: 350px;
        padding: 15px;
    }

    section.why-masters>.col:first-child h2 {
        text-align: left;
    }

    section.why-masters>.col:first-child p {
        font-size: 1rem;
        text-align: left;
    }

    section.why-masters>.col:first-child>.why-container-bottom {
        display: flex;
        flex-direction: column;
        margin-top: 16px;
        gap: 16px;
    }

    section.contact {
        height: 100%;
    }

    section.contact>.contact-container {
        justify-content: center;
    }

    section.contact-image {
        background-image: linear-gradient(#142850, #27496D99),
            url(../images/backgrounds-mobile/contact-image.webp);
        background-position: center;
        background-size: cover;
    }

    section.contact>.contact-container .cta-btn {
        margin-bottom: 50px;
    }

    section.contact>.contact-container>.contact-text {
        width: 100%;
        padding: 25px 0;
    }

    div.copy-right>p {
        max-width: 70cqw;

    }
}