* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--mainFont);
}
:root {
    /* fonts */
    --mainFont: "Archivo";
    --accentFont: "Archivo Black";
    /* heights & widths */
    --fullHeight: 100%;
    --fullWidth: 100%;
    --tfWidth: 75%;
    /* margins */
    --halfMargin: .5rem;
    --mainMargin: 1rem;
    --accentMargin: .5rem;
    --halfSideMargin: 0 .5rem;
    --sideMargin: 0 1rem;
    --centerMargin: 0 auto;
    --topSideMargin: .5rem auto;
    /* paddings */
    --mainPadding: 1em;
    --tfPadding: .75em;
    --accentPadding: .5em;
    --dPadding: 2em;
    --sidePadding: 0 1em;
    --topSidePadding: .75em 1.5em;
    /* gaps */
    --halfGap: .5rem;
    --gap: 1rem;
    --dGap: 2rem;
    /* sizings */
    --oneRem: 1rem;
    --twoRem: 2rem;
    --threm: 3rem;
    /* colors */
    --white: white;
    --black: black;
    --mainColor: #9e9e9e; /* medium gray */
    --accentColor: #333333; /* dark gray */
    --tertiaryColor: #dedede; /* light gray */
    --compColor: none;
    --testColor: red;
    /* misc */
    --minBox: 300px;
    --testBorder: 2px solid var(--testColor);
}
html {
    width: var(--fullWidth);
}
body {
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: 100vh;  
}
main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--dGapRem);
    margin: 70px 3rem 2rem 3rem;
}
p {
    text-indent: 3ch;
}
input, textarea {
    box-sizing: content-box;
    padding: var(--accentPadding);
    font-family: inherit;
}
textarea {
    resize: vertical;
    min-height: 3lh;
}
label {
    font-weight: bold;
    text-transform: uppercase;
}

/* text styles */

h1:not(header h1) {
    font-family: var(--accentFont);
    text-align: center;
    /* text-transform: uppercase; */
    letter-spacing: 1.25px;
}
h2 {
    font-family: var(--accentFont);
    text-align: center;
    /* text-transform: uppercase; */
}
h3 {
    font-family: var(--accentFont);
    text-align: center;
}
a {
    text-decoration: none;
}
a:active:not(.headerLogo>a) {
    text-decoration: underline;
}
.archblk {
    font-family: var(--accentFont);
}
.bold {
    font-weight: bold;
}
.bolder {
    font-weight: bolder;
}
.letterSpacing {
    letter-spacing: 1.25px;
}
.center {
    margin-inline: auto;
}
.onerem {
    font-size: var(--oneRem);
}
.ofrem {
    font-size: var(--ofRem);
}
.tworem {
    font-size: var(--twoRem);
}
.threm {
    font-size: var(--threm);
}
.smallCaps {
    font-variant: small-caps;
}
.uppercase {
    text-transform: uppercase;
}
.wht {
    color: var(--white);
}
.red {
    color: var(--testColor);
}

/* boxes */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    z-index: 11;
    padding: var(--sidePadding);
    height: 60px;
    width: var(--fullWidth);
    background-color: var(--accentColor);
}
.headerLogo {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin: var(--halfSideMargin);
    height: var(--fullHeight);
    width:  500px;
    /* border: var(--testBorder); */
}
.headerNav {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: var(--sideMargin);
    height: var(--fullHeight);
    width: max-content;
    /* border: var(--testBorder); */
}
.headerContact {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin: var(--halfSideMargin);
    height: var(--fullHeight);
    width: min(500px,33%);
    /* border: var(--testBorder); */
}
.menuPopover {
    position: relative;
}
&:popover-open {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--dGap);
}
#headerLinks {
    position-area: bottom;
    inset: auto;
    background-color: var(--accentColor);
    border: none;
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
}
#headerLinks a {
    /* margin-top: var(--halfMargin); */
    padding: var(--accentPadding);
    height: var(--fullHeight);
    width: var(--fullWidth);
}
#hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(var(--minBox),1fr));
    justify-content: space-between;
    align-content: center;
    gap: var(--dGap);
    height: auto;
    /* border: var(--testBorder); */
}
.heroIMG {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    height: 300px;
    width: var(--fullWidth);
    background-image: url(images/NGD_logo.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    /* border: var(--testBorder); */
}
.heroText {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: space-between;
    padding: var(--mainPadding);
    height: 300px;
    width: var(--fullWidth);
    /* border: var(--testBorder); */
}
#pricing {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px,1fr));
    justify-content: center;
    align-items: center;
    gap: var(--dGap);
    padding: var(--mainPadding);
    height: auto;
    width: var(--fullWidth);
    /* border: var(--testBorder); */
}
.pricingBox {
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: var(--halfGap);
    padding: var(--mainPadding);
    height: 300px;
    width: var(--fullWidth);
    background-color: var(--tertiaryColor);
    /* border: 2px solid green; */
    border-radius: 2rem;
}
.pricingBox:hover {
    transform: scale(1.05);
    background-color: var(--mainColor);
    transition: 1s ease;
}
.pricingList {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--gap);
    height: var(--fullHeight);
    width: var(--fullWidth);
}
#contactForm {
    margin-inline: auto;
    padding: var(--dPadding);
    width: 700px;
    background-color: var(--tertiaryColor);
    border-radius: 2rem;
}

footer {
    display: flex;
    flex-direction: column; 
    padding: var(--sidePadding);
    height: auto;
    width: var(--fullWidth);
    background-color: #555555;
}

.footTopBox {
    display: grid;
    grid-template-columns: repeat(2, minmax(min(var(--minBox), 100%), 1fr));
    justify-content: center;
    align-items: center;
    gap: var(--gap);
    /* position: absolute;
    bottom: 0; */
}
.footerAbout {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--halfGap);
    padding: var(--mainPadding);
    height: 120px;
    width: var(--fullWidth);
    /* border: var(--testBorder); */
}
.footerNav {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--halfGap);
    padding: var(--tfPadding);
    height: 120px;
    width: var(--fullWidth);
    /* border: var(--testBorder); */
}
.footerContact {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--halfGap);
    padding: var(--tfPadding);
    height: 120px;
    width: var(--fullWidth);
    /* border: var(--testBorder); */
}
.footerSocials {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--halfGap);
    padding: var(--tfPadding);
    height: 120px;
    width: var(--fullWidth);
    /* border: var(--testBorder); */
}

/* header */

header a:hover:not(.headerLogo>a) {
    border-bottom: 3px solid var(--white);
    background-color: var(--black);
    transition: 1s ease;
}
.headerNav a {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--sidePadding);
    height: var(--fullHeight);
}
.headerContact a {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--sidePadding);
    height: var(--fullHeight);
}
.menuPopover {
    display: none;
    position: relative;
}
.menuPopover button {
    background-color: transparent;
    border: none;
}

/* hero section */

#hero p {
    padding: var(--mainPadding);
    font-size: 1.25rem;
    font-weight: bold;
    text-align: justify;
}
#hero .cta {
    margin: var(--topSideMargin);
    padding: var(--topSidePadding);
    height: max-content;
    width: max-content;
    text-align: center;
    background-color: #555555;
    border: none;
    border-radius: 1rem;
}
#hero .cta:hover {
    background-color: #000000;
    transform: scale(1.05);
    transition: 1s ease;
    /* text-decoration: underline; */
}

/* pricing section */

.pricingList h3 {
    font-size: 1.5rem;
}
.pricingList ul {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    list-style: none;
}

/* contact form */

#contactForm h1 {
    margin-bottom: var(--mainMargin);
}
form {
    display: grid;
    /* grid-template-rows: repeat(3, 1fr); */
    gap: var(--gap);
}
.formGroup {
    display: grid;
}
.spanAll {
    grid-column: 1 / -1;
}

input:has([required])::after {
    content: ' *';
    
}
.contactButton {
    padding: var(--mainPadding);
    text-align: center;
}
#contactForm .cta {
    margin: var(--topSideMargin);
    padding: var(--topSidePadding);
    height: max-content;
    width: max-content;
    text-align: center;
    background-color: #555555;
    border: none;
    border-radius: 1rem;
}
#contactForm .cta:hover {
    background-color: #000000;
    transform: scale(1.05);
    transition: 1s ease;
    /* text-decoration: underline; */
}
#contactForm .cta:active {
    text-decoration: underline;
}

/* sent form */

#sentForm p {
    text-align: center;
    margin: auto;
}

/* footer */

.footerSocials .socialIcons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: var(--gap);
}
.copyLine {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

/* media quieries */

@media (max-width:1163px) {
    /* boxes */
    .footerTopBox {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(500px, 100%), 1fr));
    justify-content: center;
    align-items: center;
    gap: var(--gap);
    /* position: absolute;
    bottom: 0; */
    padding: var(--sidePadding);
    height: auto;
    width: var(--fullWidth);
    background-color: #555555;
    }
    /* header */
    .headerNav, #headerContact {
        display: none;
    }
    .menuPopover {
        display: flex;
        justify-content: center;
        align-items: center;
        /* border: var(--testBorder); */
    }
    #pricing {
    display: grid;
    grid-template-columns: .75fr;
    justify-content: center;
    align-items: center;
    gap: var(--dGap);
    padding: var(--mainPadding);
    height: auto;
    width: var(--fullWidth);
    }
}
@media (min-width:1440px) {
    .footerTopBox {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(var(--minBox), 100%), 1fr));
    justify-content: center;
    align-items: center;
    gap: var(--gap);
    /* position: absolute;
    bottom: 0; */
    padding: var(--sidePadding);
    height: auto;
    width: var(--fullWidth);
    background-color: #555555;
    }
}
@media (min-width: 500px) {
    .formBox {
        grid-template-columns: repeat(2, 1fr);;
    }
}
@media (max-width: 500px) {
    
}