:root{
    --primary-color:#202a44;
    --secondary-color:#8dffcc;
    --white:#ffffff;
    --max-width: 1600px;
}

*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    min-height: 50vh;
    font-family: "Montserrat", sans-serif;
    background-image: radial-gradient(rgba(255,255,255,0), var(--primary-color) 100%),
        url("/wp-content/themes/kprmarketing/assets/images/maryland-bg-3-grdnt.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.nav__container{
    max-width: var(--max-width);
    margin: 0 auto;
}

nav{
    padding: 1.5rem 1rem 0;
    overflow: visible;
}

.main__nav{
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    width: min(100%, var(--max-width));
    margin: 0 auto;
    padding: 1.5rem 2rem;
    border-radius: 999px;
    z-index: 1000;
}

.main__nav.slidedown {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}

.main__nav .nav__links{
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    width: 100%;
    margin: 0;
    padding: 0;
}

.main__nav .nav__links img{
    display: block;
    width: min(250px, 100%);
    height: auto;
}

.main__nav .nav__links a{
    position: relative;
    isolation: isolate;
    padding-bottom: 10px;
    text-decoration: none;
    font-weight: 500;
    color: var(--white);
}

.main__nav .nav__links a::after{
    position:absolute;
    content: "";
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0;
    background-color: var(--secondary-color);
    transition: 0.3s;
}

.main__nav .logo{
    margin-right: auto;
    flex-shrink: 0;
}

.main__nav .nav__cta{
    margin-left: auto;
}

.main__nav .nav__links a:hover::after{
    width: 100%; 
}

.main__nav .logo a {
    padding-bottom: 0;
    display: block;
}

.main__nav .logo a::after{
    display: none;
}

.main__nav .logo img {
    flex-shrink: 0;
}

/* Hero Section */

.section__container{
    flex: 1;
    width: 100%;
    margin:4rem auto;
    position: relative;
    isolation: isolate;
    padding: 5rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.section__container h5{
    margin-bottom: 1rem;
    font-size: 1rem;
    letter-spacing: 0.2rem;
    font-weight: 500;
    color: var(--white);
    text-align: center;
}

.section__container .lg{
    font-family: "DM Serif Display", serif;
    font-size: clamp(3.75rem, 9vw, 8rem);
    font-weight: 400;
    color: var(--white);
    line-height: 0.95;
    text-align: center;
}

.section__container .lg span {
    display: inline-block;
}

.section__container .lg .frst-trans{
    display: block;
}

.section__container .lg .scnd-trans{
    display: block;
}

.section__container .lg .cyan{
    color: var(--secondary-color);
}

.section__container h2{
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--white);
    line-height: 1.5rem;
    text-align: center;
}

.section__container button{
    max-width: fit-content;
    margin-block: 3rem;
    padding: 1rem;
    letter-spacing: 0.3rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: transparent;
    outline: none;
    border: 1px solid var(--white);
    border-radius: 8px;
    cursor: pointer;
}

.section__container button {
    transition: background-color 0.5s, color 0.5s;
}

.section__container button:hover {
    background-color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    color: var(--primary-color);
}

/* About Section */

.about {
    background: linear-gradient(transparent, var(--primary-color) 100%);
    color: var(--white);
}

.about__wrapper {
    max-width: 1700px;
    margin: 0 auto;
    padding: 0 2rem;
}

.about__container {
    max-width: 1700px;
    margin: 0;
    padding: 4rem 0 4rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about__quote {
    font-family: DM Serif Display, serif;
    width: 100%;
    text-align: left;
}

.about__quote .xl-qt {
    margin: 0;
    font-family: "DM Serif Display", serif;
    font-size: clamp(4rem, 9vw, 6rem);
    font-weight: 400;
    line-height: 0.95;
    max-width: 33ch;
    text-shadow: rgba(0,0,0,0.35) 0px 18px 36px, rgba(0,0,0,0.35) 0px 18px 36px;
}

.about__quote .xl-qt .cyan {
    color: var(--secondary-color);
}

.about__quote .xl-qt span {
    display: inline-block;
}

.about__quote .xl-qt .btm-trns-frst {
    display: block;
}

.about__quote .xl-qt .btm-trns-scnd {
    display: block;
}

.about__quote .xl-qt .btm-trns-thrd {
    display: block;
}

.about__quote .xl-qt .btm-trns-frth {
    display: block;
}

/* Footer */

.site-footer {
    padding: 4rem 1.5rem 2rem;
    background: rgba(8, 14, 27, 0.92);
    color: var(--white);
}

.footer__container {
    max-width: 1800px;
    margin: 0 auto;
}

.footer__inner {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(140px, 1fr));
    gap: 2rem;
    align-items: start;
}

.footer__brand img {
    display: block;
    width: min(190px, 100%);
    height: auto;
    margin-bottom: 1rem;
}

.footer__column h3,
.footer__brand p,
.footer__meta p {
    margin: 0;
}

.footer__column h3 {
    margin-bottom: 1rem;
    font-size: 1rem;
    letter-spacing: 0.08rem;
}

.footer__column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer__column li + li {
    margin-top: 0.7rem;
}

.footer__column a {
    color: var(--white);
    text-decoration: none;
}

.footer__column a:hover {
    color: var(--secondary-color);
}

.sm-txt-ftr {
    max-width: 26ch;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.footer__meta {
    grid-column: 1 / -1;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.7);
}

footer{
    background-color: var(--primary-color);
    padding: 3rem 2rem;
    color: var(--white);
}

footer ul li{
    list-style: none;
    text-decoration: none;
    margin-bottom: 0.5rem;
}

footer a{
    text-decoration: none;
    color: var(--white);
}

/* Animations */

@keyframes slidedown {
    from{
        top: -250px;
    }
    to{
        top: 0;
        box-shadow: 0 2px 8px 0 rgba(0,0,0,0.2);
    }
}

@keyframes scroll-down {
    0% {
        transform: translate(-50%, -5rem) rotate(-90deg);
    }
    50% {
        transform: translate(-50%, -3rem) rotate(-90deg);
    } 
    100% {
        transform: translate(-50%, -5rem) rotate(-90deg);
    }
}

/* Responsive Styles */

@media (width > 768px) {
    .nav__links {
        display: flex;
        align-items: center;
        gap: 2rem;
    }

    .section__container .lg .frst-trans{
        display: block;
    }

    .section__container .lg .scnd-trans{
        display: block;
    }
}

@media (max-width: 768px) {
    .main__nav {
        padding: 1.1rem 1.35rem;
    }

    .main__nav .nav__links {
        gap: 1rem;
    }

    .main__nav .nav__links a {
        font-size: 0.9rem;
    }

    .main__nav .nav__links img {
        width: 240px;
        max-width: none;
    }
}

@media (max-width: 700px) {
    nav {
        padding-inline: 0.75rem;
    }

    .main__nav {
        padding: 0.9rem 1.1rem;
        width: calc(100% - 1.5rem);
    }

    .main__nav .nav__links {
        justify-content: center;
    }

    .main__nav .nav__links li:not(.logo) {
        display: none;
    }

    .main__nav .logo {
        margin-right: 0;
    }

    .main__nav .nav__links img {
        width: min(210px, 100%);
    }
}

@media (max-width: 576px) {
    .main__nav {
        padding: 0.85rem 1rem;
    }

    .main__nav .nav__links {
        justify-content: space-between;
        gap: 0.75rem;
    }

    .main__nav .nav__links li:not(.logo):not(.nav__cta) {
        display: none;
    }

    .main__nav .logo {
        margin-right: auto;
    }

    .main__nav .nav__cta {
        display: block;
        margin-left: auto;
    }

    .main__nav .nav__cta a {
        font-size: 0.75rem;
        white-space: nowrap;
    }

    .main__nav .nav__links img {
        width: min(185px, 100%);
    }
}

@media (max-width: 900px) {
    .footer__inner {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }
}

@media (max-width: 576px) {
    .site-footer {
        padding-inline: 1rem;
    }

    .footer__inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (width > 540px) {
    .section__container .lg .frst-trans {
    display: block;
}

.section__container .lg .scnd-trans {
    display: block;
}

.scroll__button {
    position:absolute;
    bottom: 0;
    left: 1rem;
    transform: translate(-50%, -5rem) rotate(-90deg);
    animation: scroll-down 2s linear infinite;
}

.scroll__button a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
}

.scroll__button a span{
    display: block;
    font-size: 1.2rem;
    transform: rotate(90deg);
}
}
