:root {
    --t-title-font-family: 'AdobeCaslon', Didot, serif;
    --t-title-font-weight: 600;
    --t-text-font-weight: 100;
    --t-title-font-color: #D4AF37;
    --t-title-font-size: 64px;
    --t-title-span-font-size: 54px;
    --t-title-letter-spacing: 5px;
    --t-title-line-height: 72px;
    --t-footer-font-size: 14px;
    --t-footer-letter-spacing: 2px;
    --subheader-margin-top: 15px;
    --subheader-font-size: 20px;
    --card-header-font-size: 46px;
    --image-opacity: 75%;
    --color-gold: #C6A667;
    --color-black: #1C1C1C;
    --color-white: #E3E3E3;
    --color-transparent: transparent;
    --shadow: 3px 3px 3px rgba(0,0,0,.25);
}

* { margin: 0; padding: 0; }

body { 
    overflow-x: hidden; 
    background: #000;
}

section > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: var(--image-opacity);
}

section {
    position: relative;
    overflow: hidden;
    scroll-snap-align: start;
    height: 100vh;
    width: 100%;
}

section .kw-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1; /* Lowest layer */
    opacity: var(--image-opacity);
}

.main-btn {
    position: relative;
    padding-left: 25px;
    padding-right: 25px;
    padding-top: 15px;
    padding-bottom: 15px;
    box-shadow: var(--shadow);
}

.scroll-snap {
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    height: 100vh;
}

/* ------------------------------ */
/*             HERO               */
/* ------------------------------ */

.hero video {
    position: absolute;
    display: flex;
    justify-content: center;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    z-index: 0;
    opacity: var(--image-opacity);
}

.hero-image {
    display: none;
    z-index: 0;
}
    
.overlay-content {
    position: relative;
    z-index: 3; /* above video */
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

h1 {
    text-align: center;
    max-width: 90%;
    font-family: var(--t-title-font-family);
    font-weight: var(--t-title-font-weight);
    font-size: var(--t-title-font-size);
    color: var(--color-white);
    letter-spacing: var(--t-title-letter-spacing);
    line-height: var(--t-title-line-height);
    text-shadow: var(--shadow);
}

h1 span {
    font-size: var(--t-title-span-font-size);
}
        
p {
    position: relative;
    margin-top: var(--subheader-margin-top);
    text-align: center;
    line-height: 32px;
    font-family: var(--t-title-font-family);
    font-weight: var(--t-text-font-weightt);
    font-size: var(--subheader-font-size);
    color: var(--color-white);
    font-style: italic;
    letter-spacing: var(--t-title-letter-spacing);
    text-shadow: var(--shadow);
}
        
a {
    text-decoration: none;
}
        
.btn-container {
    position: relative;
    margin-top: 35px;
    display: flex;
    flex-direction: row;
}

.main-btn {
    font-size: 18px;
    letter-spacing: 2px;
    font-family: var(--t-title-font-family);
    font-weight: 600;
    display: block;
    transition: 0.5s ease all;
    cursor: pointer;
    margin-left: 12.5px;
    margin-right: 12.5px;
    box-shadow: var(--shadow);
}

.gold-btn {
    color: var(--color-black);
    background: var(--color-gold);
    border: 1px solid var(--color-gold);
}

.gold-btn:hover {
    background: var(--color-transparent);
    color: var(--color-white);
}

.white-btn {
    color: var(--color-white);
    background: var(--color-transparent);
    border: 1px solid var(--color-white);
}
                
.white-btn:hover {
    background: var(--color-white);
    color: var(--color-black);
}

.hero .kw-logo {
    position: absolute;
    bottom: 50px;
    right: 50px;
    width: 150px;
    top: auto;
    left: auto;
    height: 50px;
    object-fit: contain;
}

.gold-line-break {
    margin-top: 15px;
    margin-bottom: 15px;
    width: 50px;
    height: 3px;
    background: var(--color-gold);
}

.overlay-gradient {
    position: absolute;
    height: 100vh;
    width: 100%;
    background: linear-gradient(rgba(0,0,0,1), transparent);
    opacity: 25%;
    z-index: 2;
}

.markets,
.mission {
    background: #000;
}

.markets h1 {
    font-size: 48px;
    line-height: 54px;
}

.markets h1 span {
    font-size: 36px;
}

.card-container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: 80%;
    margin-top: 25px;
}

.card {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Horizontal */
    align-items: center;
    flex-wrap: nowrap;
    background: rgba(255,255,255,.8);
    width: calc(33.33% - 25px);
    margin-left: 12.5px;
    margin-right: 12.5px;
    border-radius: 10px;
    border: 1px solid var(--color-gold);
    box-shadow: 5px 5px 5px rgba(0,0,0,.5);
}

.card h2 {
    position: relative;
    text-align: center;
    width: 100%;
    margin-top: 5px;
    font-family: var(--t-title-font-family);
    font-weight: var(--t-title-font-weight);
    font-size: 38px;
    color: var(--color-black);
    letter-spacing: var(--t-title-letter-spacing);
    line-height: var(--t-title-line-height);
}

.card p {
    font-size: 20px;
    color: var(--color-black);
    width: 90%;
    text-shadow: none;
    letter-spacing: 2px;
    font-style: normal;
}

.card img {
    position: relative;
    margin-top: 10px;
    width: 85%;
    height: auto;
    object-fit: contain;
    opacity: 100%;
}

.card .card-btn {
    position: relative;
    margin-top: 15px;
    margin-bottom: 15px;
    text-align: center;
    width: auto;
    height: auto;
    padding-left: 25px;
    padding-right: 25px;
    padding-top: 15px;
    padding-bottom: 15px;
    font-size: 18px;
    letter-spacing: 2px;
    font-family: var(--t-title-font-family);
    font-weight: 600;
    display: block;
    transition: 0.5s ease all;
}

.card .card-btn:hover {
    color: var(--color-black);
}

.contact {
    background: var(--color-black);
    color: var(--color-white);
}

.contact-wrapper {
    padding: 120px 80px;
    max-width: 1400px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-left h1 {
    font-size: 48px;
    margin-bottom: 10px;
}

.contact-sub {
    margin-bottom: 30px;
    color: #d2d2d2;
}

/* FORM */

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-form input,
.contact-form textarea {
    background: transparent;
    border: 1px solid #fff;
    padding: 16px;
    color: white;
    font-size: 16px;
    font-family: var(--t-title-font-family);
}

.contact-form textarea {
    resize: none;
}

.contact-form button {
    background: #c6a25a;
    color: black;
    border: none;
    padding: 18px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}

.contact-form button:hover {
    background: #d4b46f;
}

/* CONTACT INFO */

.contact-info {
    margin-top: 25px;
    display: flex;
    gap: 25px;
    font-size: 15px;
    justify-content: center;
}

.contact-info span {
    font-family: var(--t-title-font-family);
    letter-spacing: 2px;
    font-size: var(--subheader-font-size);
}

.contact-info span + span::before {
    content: "";
    display: inline-block;
    width: 1px;
    height: 20px;
    background: #c6a25a; /* gold */
    margin: 0 15px;
    position: relative;
    top: 2px;
}

/* MAP */

.contact-map {
    width: 100%;
    height: 520px;
    border-radius: 6px;
    overflow: hidden;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 6px;
}

.footer {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 125px;
    background: var(--color-gold);
    z-index: 999;
}

.footer-container {
    margin-top: 10px;
}

.footer p {
    font-style: normal;
    font-weight: 600;
    line-height: 16px;
    letter-spacing: var(--t-footer-letter-spacing);
    font-size: var(--t-footer-font-size);
    color: var(--color-black);
    text-shadow: none;
}

.footer a {
    color: var(--color-black);
    text-decoration: none;
    text-underline-offset: 8px;
}

.footer a:hover {
    text-decoration: underline;
}

/* -------------------------------------- */
/* RESPONSIVE DESIGN                      */
/* -------------------------------------- */

/* Tablet & Smaller Desktop (below 1100px) */
@media screen and (max-width: 1100px) {
    :root {
        --t-title-font-size: 48px;
        --t-title-span-font-size: 38px;
        --t-title-line-height: 56px;
    }

    .card-container {
        width: 95%;
    }

    .contact-container {
        width: 100%;
        position: relative;
        margin-top: 0;
        padding-top: 80px;
    }

    iframe {
        position: relative;
        width: 90%;
        height: 300px;
        right: auto;
        margin-top: 30px;
    }

    .contact .overlay-content {
        flex-direction: column;
        justify-content: flex-start;
        overflow-y: auto;
    }
}

/* Mobile Devices (below 810px) */
@media screen and (max-width: 810px) {
    :root {
        --t-title-font-size: 36px;
        --t-title-span-font-size: 28px;
        --t-title-line-height: 42px;
        --subheader-font-size: 16px;
        --t-title-letter-spacing: 2px;
    }

    section {
        /* Allow sections to grow if content is tall */
        height: auto;
        min-height: 100vh;
        padding: 60px 0;
    }

    /* Fix for the video hero on mobile */
    .hero {
        min-height: auto;
        height: 500px;
    }
    
    .hero h1 {
        line-height: 40px;
    }
    
    .hero p {
        font-size: 14px;
        line-height: 20px;
    }
    
    .hero video {
        display: none;
    }
    
    .hero .hero-image {
        display: block;
        position: absolute;
        width: auto;
        margin-left: -100%;
        height: 100%;
        opacity: 50%;
    }
    
    .hero .kw-logo {
        opacity: 35%;
    }
    
    .mission {
        height: 250px;
        min-height: auto;
    }

    .btn-container {
        margin-top: 20px;
        flex-direction: column;
        width: 80%;
    }

    .main-btn {
        margin: 5px 0px;
        text-align: center;
        font-size: 14px;
    }

    .card-container {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 100%;
        margin: 15px 0;
    }

    .contact-top-row {
        flex-direction: column;
    }

    .hero .kw-logo {
        bottom: 20px;
        right: 50%;
        transform: translateX(50%);
        width: 120px;
    }

    .footer {
        height: auto;
        padding: 20px 10px;
    }

    .footer p {
        font-size: 11px;
        margin-bottom: 10px;
    }
    
    /* Disable snap on mobile for better scrolling of long content */
    .scroll-snap {
        scroll-snap-type: none;
    }
}
