/*
 Theme Name:   UC No More
 Theme URI:    https://example.com/uc-no-more
 Description:  UC No More – Child of Astra
 Author:       Geoff Dougherty
 Author URI:   https://geoffsdougherty.com
 Template:     astra
 Version:      1.0.0
*/


/* ======================== Sitewide Styles ======================== */

html {
    scroll-behavior: smooth;
}

body {
    background-color: #FFF;
}

.flex {
    display: flex;
}

.grid {
    display: flex;
}

.flex.col {
    flex-direction: column;
}

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

.flex.ai-center {
    align-items: center;
}

.flex.jc-center {
    justify-content: center;
}

.flex.jc-sb {
    justify-content: space-between;
}

.mw-container {
    width: 90%;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
}

.narrow-container {
    width: 90%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}


/* ======================== Font Styles ======================== */

@font-face {
    font-family: 'Instrument Sans';
    src: url('/wp-content/themes/uc-no-more/fonts/InstrumentSans-VariableFont_wdth,wght.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Nunito Sans';
    src: url('/wp-content/themes/uc-no-more/fonts/NunitoSans-VariableFont_YTLC,opsz,wdth,wght.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

h1,h2,h3,h4,h5,h6 {
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 600;
    margin: 0;
}

p,ul,li,a,input,select {
    font-family: 'Nunito Sans', sans-serif;
    margin: 0;
}

ul {
    padding: 0;
    margin: 0;
    list-style-type: none;
}

h1,.h1 {
    font-size: 55px;
}

h2,.h2 {
    font-size: 45px;
}

h3,.h3 {
    font-size: 35px;
}

h4,.h4 {
    font-size: 25px;
}

h5,.h5 {
    font-size: 22px;
}

h6,.h6 {
    font-size: 20px;
}

a {
    text-decoration: none;
}

/* ======================== Header Navigation ======================== */

header .header-container {
    width: 90%;
    max-width: 1300px;
    margin: auto;
    gap: 30px;
    padding: 20px 0;
}

header .header-container .logo {
    width:240px;
}

header .header-container .logo img {
    width: 100%;
}

header .header-container nav ul {
    gap: 80px;
}

header .header-container .mobile-menu-btn {
    display: none;
}

/* ======================== Flexible Content Components ======================== */

/* Full-Width Image */

section.fw-image {
    position: relative;
}

section.fw-image h1 {
    width: 90%;
    max-width: 900px;
    text-align: center;
}

section.fw-image p {
    width: 90%;
    max-width: 900px;
    text-align: center;
    margin-top: 30px;
}

section.fw-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    object-fit: cover;
    object-position: center;
    z-index: -1;
}


/* Text Header */

section.text-header h2,
section.text-header h3 {
    width: 90%;
    text-align: center;
}

section.text-header p {
    width: 90%;
    max-width: 900px;
    text-align: center;
    margin-top: 30px;
}

/* Text Header */

section.form-embed h1,
section.form-embed h2,
section.form-embed h3 {
    width: 100%;
    text-align: center;
}

section.form-embed p {
    width: 100%;
    max-width: 900px;
    text-align: center;
    margin-top: 30px;
}

section.form-embed .form-container {
    width: 100%;
    max-width: 700px;
    margin-top: 50px;
}


/* Two-Column Text + Image */

section.two-col-text-image {
    gap: 120px;
}

section.two-col-text-image img {
    object-fit: cover;
    object-position: center;
    max-width: 50%;
}

section.two-col-text-image img,
section.two-col-text-image .text-col {
    flex: 1;
}

section.two-col-text-image .text-col h3 {
    margin-bottom: 30px;
}


/* Inline Image + Text */

section.inline-elements,
section.inline-elements .inline-body {
    gap: 20px;
}

section.inline-elements h1,
section.inline-elements h2,
section.inline-elements h3,
section.inline-elements h4 {
    margin-top: 15px;
}

section.inline-elements p {
    margin-bottom: 10px;
}

section.inline-elements img {
    width: 100%;
    object-fit: cover;
    object-position: center;
}

section.inline-elements .video-container {
    position: relative;
    padding-top: 56.25%;
}

section.inline-elements .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}


/* Resource/Link Grid */

section.resource-grid h1,
section.resource-grid h2,
section.resource-grid h3 {
    margin-bottom: 30px;
}

.resource-flex {
    margin-top: 50px;
    gap: 70px;
    gap: 5%;
}

section.resource-grid .resource {
    flex: 1;
    gap: 20px;
    align-items: flex-start;
}

section.resource-grid .resource img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}


/* Anchor Tag Menu */

section.anchor-tag-menu .nav-container {
    padding-right: 40px;
    border-right: 1px solid rgba(0,0,0,0.5);
    gap: 5px;
    align-items: flex-start;
}

section.anchor-tag-menu .text-col {
    padding-left: 40px;
    flex: 1;
    gap: 20px;
}


/* Footer */

footer {
    padding: 60px 0;
    background-color: #5A6269;
}

footer a, footer h6, footer p, footer span {
    color: #FFF;
}


footer .footer-container {
    gap: 30px;
    padding: 40px 0;
}

footer .footer-container .logo {
    max-width: 240px;
}

footer .footer-container .logo img {
    width: 100%;
}

footer .footer-container .submenu {
    max-width: 350px;
    margin-left: auto;
    gap: 5px;
}

footer .footer-container .submenu h6 {
    margin-bottom: 10px;
}

footer .lower {
    gap: 20px;
}



/* ======================== Mobile Styles ======================== */

@media screen and (max-width: 1170px) {
    /* Full-Width Image */
    .home .fw-image {
        aspect-ratio: 2 / 1;
        height: auto !important;
    }

    .home .fw-image img {
        height: auto !important;
    }

    .home .fw-image img {
        width: 130%;
        left: -15%;
    }

    .fw-image.text {
        height: auto !important;
    }

    .fw-image.text .text-container {
        padding: 40px 0;
    }

    .fw-image.text img {
        height: 100% !important;
    }
}

@media screen and (max-width: 1000px) {
    /* Header Navigation */
    header .header-container nav ul {
        gap: 55px;
    }

    /* Two-Column Text + Image */
    section.two-col-text-image {
        flex-direction: column;
        gap: 0px !important;
    }

    section.two-col-text-image img {
        width: 100%;
        max-width: 700px;
        margin: 40px 0;
    }

}


@media screen and (max-width: 800px) {
    /* Header Navigation */
    header .header-container {
        height: 80px;
        padding: 0;
    }
    
    header .header-container .logo {
        width: 160px;
    }

    header .header-container .mobile-menu-btn {
        display: inline-block;
        width: 30px;
        height: 30px;
        color: #000;
        opacity: 0.75;
        transition: 0.2s;
    }

    header .header-container .mobile-menu-btn:hover {
        opacity: 1;
        cursor: pointer;
    }

    header .header-container nav {
        position: absolute;
        left: 0;
        top: 80px;
        width: 100%;
        height: 0;
        background-color: #FFF;
        overflow: hidden;
        transition: 0.4s;
    }

    header .header-container nav.active {
        height: 100vh;
        z-index: 10;
        transition: 0.4s;
    }
    
    header .header-container nav ul {
        display: flex;
        flex-direction: column;
        gap: 40px;
        padding: 40px 25px 25px 25px;
    }
    
    /* Inline Image + Text */
    section.inline-elements img {
        height: auto !important;
    }


    /* Resource/Link Grid */
    .resource-flex {
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 50px;
    }

    .resource-flex .resource {
        min-width: 250px;
        max-width: 335px;
    }

section.resource-grid h1,
section.resource-grid h2,
section.resource-grid h3 {
    text-align: center;
}
}


@media screen and (max-width: 600px) {
    /* Headers */
    h1 {
        font-size: 40px;
    }
    
    h2 {
        font-size: 34px;
    }

    h3 {
        font-size: 28px;
    }

    /* Footer */
    footer {
        padding-top: 0px;
    }

    footer .footer-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 25px;
        row-gap: 50px;
        padding-bottom: 60px;
    }

    footer .footer-container .logo {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        max-width: none;
    }

    footer .footer-container .logo img {
        width: 160px;
    }

    footer .footer-container .submenu {
        margin-left: 0;
        flex: 1 1 40%;
    }

    footer a,
    footer p {
        font-size: 14px;
    }

    
    /* Resource/Link Grid */
    .resource-flex .resource {
        max-width: none;
    }

section.resource-grid h1,
section.resource-grid h2,
section.resource-grid h3 {
    text-align: center !important;
}



    /* Anchor Tag Menu */
    section.anchor-tag-menu {
        flex-direction: column;
    }

    section.anchor-tag-menu .nav-container {
        width: 100% !important;
        border-right: none;
        border-bottom: 1px solid rgba(0,0,0,0.3);
        margin-bottom: 30px;
        padding: 0 0 30px 0;
        gap: 7px;
    }

    section.anchor-tag-menu .nav-container a {
        text-decoration: 1px solid underline #000;
        text-underline-position: under;
    }

    section.anchor-tag-menu .text-col {
        padding: 0;
    }
}


