/* GENERAL */

* {
    box-sizing: border-box;
}

body {
    height: 100vh;
    width: 100vw;
    margin: 0;
    font-family: 'Poppins', sans-serif;

    /* VARIABLES */

    --page-margin: 50px;

    --white: #fff;
    --grey: #ddd;
    --grey-dark: hsl(0, 0%, 70%);

    --primary-color: hsl(214, 100%, 45%);
    --primary-color-light: hsl(214, 100%, 55%);
    --secondary-color: hsl(18, 100%, 50%);
}

h1, h2, h3, p, button, .nav-list > li > a, label {
    -moz-text-size-adjust: 200%;
    -webkit-text-size-adjust: 200%;
    -ms-text-size-adjust: 200%;
}

a {
    color: black;
    text-decoration: none;
}

h1 {
    font-size: 50px;
}

strong {
    color: var(--secondary-color);
}

p {
    line-height: 1.8;
}

.img-container {
    display: flex;
}

.outline-box-1 {
    /* https://css-tip.com/corner-only-border-image/ */

    --b: 3px;   /* thickness of the border */
    --c: var(--grey);   /* color of the border */
    --w: 80px;  /* width of border */

    border: var(--b) solid #0000; /* space for the border */
    --_g: #0000 90deg,var(--c) 0;
    --_p: var(--w) var(--w) border-box no-repeat;
    background:
        conic-gradient(from 180deg at top    var(--b) right var(--b),var(--_g)) 100% 0    / var(--_p),
        conic-gradient(from 0deg   at bottom var(--b) left  var(--b),var(--_g)) 0    100% / var(--_p);
}

.outline-box-full {
    /* https://css-tip.com/corner-only-border-image/ */

    --b: 3px;   /* thickness of the border */
    --c: var(--grey);   /* color of the border */
    --w: 80px;  /* width of border */

    border: var(--b) solid #0000; /* space for the border */
    --_g: #0000 90deg,var(--c) 0;
    --_p: var(--w) var(--w) border-box no-repeat;
    background:
    conic-gradient(from 90deg  at top    var(--b) left  var(--b),var(--_g)) 0    0    / var(--_p),
    conic-gradient(from 180deg at top    var(--b) right var(--b),var(--_g)) 100% 0    / var(--_p),
    conic-gradient(from 0deg   at bottom var(--b) left  var(--b),var(--_g)) 0    100% / var(--_p),
    conic-gradient(from -90deg at bottom var(--b) right var(--b),var(--_g)) 100% 100% / var(--_p);
}

.buffer {
    background: white;
    height: 20px;
}

/* BUTTON STYLING */

button {
    font-family: 'Poppins', sans-serif;
    background: var(--primary-color);
    color: white;
    height: fit-content;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

button:hover {
    background: var(--primary-color-light);
}

button:active {
    background: var(--primary-color);
}

.button-large {
    margin-top: 50px;
    padding: 20px;
    font-size: 24px;
    border-radius: 0;
    font-weight: 600;
}

.button-small {
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
}

/* NAV */

#nav-placeholder {
    --nav-height: 100px;

    position: fixed;
    top: 0;
    z-index: 2;
}

.nav-space {
    height: 100px;
}

/* HERO */

.hero {
    display: grid;
    grid-template-columns: 6fr 4fr;
    width: 100%;
    height: fit-content;
    background: black;
    justify-content: space-between;
    line-height: 1.2;
}

.hero-content {
    padding: 150px var(--page-margin);
}

.hero-content h1 {
    margin: 0;
}

.hero-content h1:nth-of-type(1) {
    color: white;
}

.hero-content h1:nth-of-type(2) {
    color: var(--primary-color-light);
}

.hero-img-container {
    align-items: center;
    justify-content: center;
    position: relative;
    padding-right: var(--page-margin);
}

.hero-img-container img {
    object-fit: cover;
    aspect-ratio: 5 / 6;
    max-width: min(90%, 800px);
    max-height: min(90%, 700px);
    min-width: 300px;

    outline: 3px solid rgba(255, 255, 255, 0.1);
    outline-offset: -16px;
}

/* SUBHERO */

.subhero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: white;
}

.subhero-img-container {
    align-items: center;
    justify-content: center;
    padding: 80px 0 80px var(--page-margin);
    z-index: 1;
}

.subhero-img-container img {
    object-fit: cover;
    object-position: center 0%;


    aspect-ratio: 1 / 1;
    max-width: min(80%, 600px);
    min-width: 350px;
    
    border-radius: 50%;
    outline: 3px solid rgba(255, 255, 255, 0.1);
    outline-offset: -16px;

    border: 3px solid var(--grey-dark);
}

.subhero-text-container {
    --subhero-vert-padding: 150px;

    height: fit-content;
    position: relative;
    padding: var(--subhero-vert-padding) 100px;
}

.subhero-text {
    padding: 10px 40px;
}

.subhero-text-container::before,
.subhero-text-container::after {
    --quote-vert-offset: 100px;
    --quote-hor-offset: 30px;
    --quote-size: 120px;

    content: "";
    position: absolute;
    z-index: 1;

    height: var(--quote-size);
    width: var(--quote-size);

    background-image: url("/icons/icon_quote.png");
    background-size: var(--bg-size);
    background-repeat: no-repeat;
    filter: contrast(80%);
}

.subhero-text-container::before {
    content: "";
    position: absolute;

    top: calc(var(--subhero-vert-padding) - var(--quote-vert-offset));
    left: calc(0px + var(--quote-hor-offset));

    -webkit-transform: scaleY(-1) scaleX(-1);
    transform: scaleY(-1) scaleX(-1);
}

.subhero-text-container::after {
    content: "";
    position: absolute;

    bottom: calc(var(--subhero-vert-padding) - var(--quote-vert-offset));
    right: calc(0px + var(--quote-hor-offset));
}

/* FOOTER */

.footer {
    width: 100%;
    background: var(--grey);
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 50px;

    /* https://stackoverflow.com/questions/9741701/how-can-i-extend-a-footer-to-bottom-of-page */
    box-shadow: 0 50vh 0 50vh var(--grey);
}

.footer .socials {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 18px;
}

.footer p {
    margin: 0 auto;
    text-transform: uppercase;
}

.footer-icon {
    --footer-icon-size: 50px;
    height: var(--footer-icon-size);
    width: var(--footer-icon-size);
}

/* MEDIA QUERIES */

@media screen and (max-width:1000px) {
    .hero {
        grid-template-columns: none;
        grid-template-rows: auto;
    }

    .hero-content {
        padding-top: 100px;
        padding-bottom: 0;
        text-align: center;
    }

    .hero-img-container {
        padding: 0;
    }

    .subhero {
        grid-template-columns: none;
        grid-template-rows: auto;
        order: 2;
    }

    .subhero-text-container {
        padding-bottom: 0;
    }

    .subhero-img-container {
        padding-left: 0;
        order: 1;
    }
}

@media only screen and (max-width:1200px) {
    .footer-icon {
        --footer-icon-size: 80px;
    }

    .subhero-text-container::after {
        bottom: calc(0 - var(--quote-size));
    }
}
