﻿/* 

    Archtype Structures

    NOTE: All font scaling assumes 1rem = 16px.

*/

:root {
    /* Standard font sizes. */
    --text-xs: clamp(0.79rem, calc(0.73vw + 0.44rem), 0.99rem);
    --text-sm: clamp(0.89rem, calc(0.82vw + 0.49rem), 1.11rem);
    --text-md: clamp(1rem, calc(0.93vw + 0.56rem), 1.25rem);
    --text-lg: clamp(1.13rem, calc(1.04vw + 0.63rem), 1.41rem);
    --text-xl: clamp(1.27rem, calc(1.17vw + 0.7rem), 1.58rem);
    --text-2xl: clamp(1.42rem, calc(1.32vw + 0.79rem), 1.78rem);
    /* Heading font sizes. */
    --heading-xs: clamp(0.72rem, calc(0.59vw + 0.44rem), 0.88rem);
    --heading-sm: clamp(0.9rem, calc(0.74vw + 0.54rem), 1.1rem);
    --heading-md: clamp(1.13rem, calc(0.93vw + 0.68rem), 1.38rem);
    --heading-lg: clamp(1.41rem, calc(1.16vw + 0.85rem), 1.72rem);
    --heading-xl: clamp(1.76rem, calc(1.45vw + 1.06rem), 2.15rem);
    --heading-2xl: clamp(2.2rem, calc(1.81vw + 1.33rem), 2.69rem);
    /* Board Radius */
    --radius-xs: clamp(0.3125rem, 0.2014rem + 0.2315vw, 0.375rem);
    --radius-sm: clamp(0.375rem, 0.1528rem + 0.463vw, 0.5rem);
    --radius-md: clamp(0.5rem, 0.2778rem + 0.463vw, 0.625rem);
    --radius-lg: clamp(0.625rem, 0.2917rem + 0.6944vw, 0.8125rem);
    --radius-xl: clamp(0.8125rem, 0.4792rem + 0.6944vw, 1rem);
    --radius-2xl: clamp(1rem, 0.5556rem + 0.9259vw, 1.25rem);
    /* Spacing */
    --space-xs: clamp(0.64rem, calc(0.41vw + 0.44rem), 0.75rem);
    --space-sm: clamp(0.8rem, calc(0.97vw + 0.34rem), 1.06rem);
    --space-md: clamp(1rem, calc(1.85vw + 0.11rem), 1.5rem);
    --space-lg: clamp(1.25rem, calc(3.23vw + -0.3rem), 2.12rem);
    --space-xl: clamp(1.56rem, calc(5.32vw + -0.99rem), 3rem);
    --space-2xl: clamp(1.95rem, calc(8.47vw + -2.11rem), 4.24rem);
    /* Other Stuff */
    --navbar-icon-size: 40px;
}

html {
    height: 100%;
    min-height: 100%;
    min-height: 100vh;
    font-size: 16px;
    line-height: 1.6;
}

body {
    height: 100%;
    min-height: 100%;
    min-height: 100vh;
    margin: 0 0;
    padding: 0 0;
    font-family: 'Open Sans', Arial, Helvetica, sans-serif;
    font-size: var(--text-md);
    font-weight: normal;
    line-height: 1.6;
    color: #FFFFFF;
    background-color: #05222B;
}

#frmMaster {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 100%;
    min-height: 100vh;
}

/* Some Bootstrap Fixes */

hr {
    opacity: 1;
}

.modal {
    z-index: 99999;
    background-color: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(10px) !important;
}

textarea {
    resize: none;
}

.btn {
    border-radius: var(--radius-sm);
}

/* ADA Skip Links */

.skip_links {
    text-align: left;
    position: fixed;
    z-index: 99999;
}

.skip_links a {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip_links a:focus, .skip_links a:active {
    position: static;
    left: 5px;
    top: 5px;
    width: auto;
    height: auto;
    padding: 10px 10px;
    overflow: visible;
    text-decoration: none;
    color: #000000;
    border: 1px solid #FFFFFF;
    background-color: #FCFCFC;
}

/* Header */

header {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    z-index: 9999;
    color: #002604;
    background-color: #cbdff2;
}

    header a:not(.btn),
    header a:not(.btn):visited {
        color: #002604;
        text-decoration: none;
    }

        header a:not(.btn):hover {
            color: #002604;
        }

    header ul.contact-info {
        font-size: var(--text-sm);
        font-weight: bold;
        line-height: 1.6;
    }

    header ul.contact-info li {
        padding-bottom: 0.25rem;
    }

    header ul.contact-info li:last-child {
        padding-bottom: 0;
    }

/* Navbar */

nav {
    z-index: 9999;
    color: #FFFFFF;
    background-color: #008000;
    box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.33);
}

/* Main */

main {
    color: #000000;
    background-color: #FFFFFF;
}

/* Footer */

footer {
    font-size: var(--text-sm);
    line-height: 1.6;
    color: #FFFFFF;
    background-color: #05222B;
}

    footer a:not(.btn),
    footer a:visited:not(.btn) {
        color: #FFFFFF;
        text-decoration: none;
    }

    footer a:hover:not(.btn) {
        color: #FFFF00;
        text-decoration: none;
    }

    footer .footer-top {
        padding-top: var(--space-2xl);
        padding-bottom: var(--space-lg);
    }

    footer .footer-top h2 {
        margin-bottom: 0;
        font-size: var(--text-lg);
        font-weight: bold;
        line-height: 1.5;
    }

    footer .footer-top hr {
        margin-top: 0;
        margin-bottom: var(--space-sm);
        border-width: 2px;
        border-color: rgba(255,255,255,0.66);
    }

    footer .footer-top ul.fa-ul {
        margin-left: 2rem;
        margin-bottom: 0;
    }

    footer .footer-top ul.fa-ul li {
        padding-left: 0;
    }

        footer .footer-top ul.fa-ul span.fa-li {
            width: 2rem;
        }

    footer .copyright {
        padding-top: var(--space-lg);
        padding-bottom: var(--space-lg);
        text-align: center;
        background-color: #05222B;
        border-top: 1px solid transparent;
        border-image-source: linear-gradient(to right, rgba(255,255,255,0.0) 0%, rgba(255,255,255,0.33) 50%, rgba(255,255,255,0.0) 100%);
        border-image-slice: 5;
    }

    footer .copyright ul {
        margin-bottom: 0;
        list-style-type: none;
        text-align: center;
    }

    footer .copyright ul li {
        display: inline-block;
        margin-right: 1ch;
    }

    footer .copyright ul li:last-child {
        margin-right: 0;
    }

/* Back to Top Button */

.back-to-top {
    z-index: 99999;
    position: fixed;
    bottom: var(--space-md);
    right: var(--space-md);
    display: none;
    -webkit-box-shadow: 0px 1px 3px 0px rgba(0,0,0,0.33);
    -moz-box-shadow: 0px 1px 3px 0px rgba(0,0,0,0.33);
    box-shadow: 0px 1px 3px 0px rgba(0,0,0,0.33);
}

/* Content Sections */

section {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
}

    section h1, section h2, section h3, section h4, section h5, section h6,
    section .h1, section .h2, section .h3, section .h4, section .h5, section .h6 {
        margin-bottom: var(--space-md);
        font-family: 'Roboto', Arial, Helvetica, sans-serif;
        font-weight: normal;
        color: #3C833A;
        text-wrap: balance;
    }

    section h1,
    section .h1 {
        font-size: var(--heading-2xl);
        line-height: 1.1;
    }

    section h2,
    section .h2 {
        font-size: var(--heading-xl);
        line-height: 1.2;
    }

    section h3,
    section .h3 {
        font-size: var(--heading-lg);
        line-height: 1.3;
    }

    section h4,
    section .h4 {
        font-size: var(--heading-md);
        line-height: 1.4;
    }

    section h5,
    section .h5 {
        font-size: var(--heading-sm);
        line-height: 1.5
    }

    section h6,
    section .h6 {
        font-size: var(--heading-xs);
        line-height: 1.6;
    }

    section p,
    section ul,
    section ol {
        margin-bottom: var(--space-md);
    }

    section ul {
        padding-left: var(--space-lg);
    }

    section strong {
        font-weight: bold;
    }

section a:not(.btn),
section a:not(.btn):visited {
    text-decoration: none;
}

section.hero {
    color: #FFFFFF;
    background-color: #003300;
    background-image: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('/images/home/hero-bg.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

section.hero h1 {
    font-weight: bold;
    color: #FFFFFF;
    margin-bottom: var(--space-2xl);
}

section.hero .btn-primary,
section.hero .btn-primary:visited {
    color: #003300;
    font-size: var(--text-m);
    font-weight: bold;
    background-color: #FFFFFF;
    border-color: #FFFFFF;
    border-width: 3px;
}

section.hero .btn-primary:hover {
    color: #FFFFFF;
    background-color: transparent;
    border-color: #FFFFFF;
}

/* Utility Classes */

.text-xs {
    font-size: var(--text-xs);
}

.text-sm {
    font-size: var(--text-sm);
}

.text-md {
    font-size: var(--text-md);
}

.text-lg {
    font-size: var(--text-lg);
}

.text-xl {
    font-size: var(--text-xl);
}

.text-2xl {
    font-size: var(--text-2xl);
}

.radius-xs {
    border-radius: var(--radius-xs);
}

.radius-sm {
    border-radius: var(--radius-sm);
}

.radius-md {
    border-radius: var(--radius-md);
}

.radius-lg {
    border-radius: var(--radius-lg);
}

.radius-xl {
    border-radius: var(--radius-xl);
}

.radius-2xl {
    border-radius: var(--radius-2xl);
}

/* CSS Columns for things like lists, etc. */

.columns {
    column-gap: var(--space-md);
}

.columns.c2 {
    columns: 2;
}

.columns.c3 {
    columns: 3;
}

.columns.c4 {
    columns: 4;
}

@media (max-width: 991px) {

    columns.c2,
    .columns.c3,
    .columns.c4 {
        columns: 2;
    }

}

@media (max-width: 767px) {

    columns.c2,
    .columns.c3,
    .columns.c4 {
        columns: 1;
    }

}

/* Photo Gallery */

.gallery-titles {
    display: flex;
    flex-direction: column;
}

.gallery-titles h1 {
    text-align: center;
}

.gallery-titles h2 {
    margin-bottom: 0;
    text-align: center;
    order: -1;
}

.gallery {
    margin-top: var(--space-lg);
    display: grid;
    gap: var(--space-lg);
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
}

/* Floor plans have a different layout. */
.gallery.floor-plans {
    margin-top: var(--space-lg);
    display: grid;
    gap: var(--space-lg);
    grid-template-columns: repeat(auto-fill, minmax(600px, 1fr));
}

.gallery figure {
    position: relative;
    max-width: 100%;
    height: auto;
    overflow: hidden;
    margin: 0 0;
    padding: 0 0;
    border: 1px solid #CCCCCC;
    border-radius: var(--radius-lg);
    transition: box-shadow ease-in-out 200ms;
}

.gallery.thumb-16x9 figure {
    aspect-ratio: 16/9;
}

.gallery.thumb-4x3 figure {
    aspect-ratio: 4/3;
}

.gallery.thumb-3x2 figure {
    aspect-ratio: 3/2;
}

gallery.thumb-1x1 figure {
    aspect-ratio: 1/1;
}

.gallery figure figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding-top: var(--space-xs);
    padding-bottom: var(--space-xs);
    font-size: var(--text-sm);
    color: #FFFFFF;
    font-weight: bold;
    text-align: center;
    background-color: rgba(0,0,0,0.66);
    opacity: 0.0;
    transition: opacity ease-in-out 200ms;
}

.gallery figure:hover {
    border: 1px solid #BBBBBB;
    box-shadow: 0px 5px 5px -2px rgba(0,0,0,0.25);
}

.gallery figure:hover figcaption {
    opacity: 1.0;
}

.gallery figure img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    transition: transform ease-in-out 200ms;
}

.gallery figure:hover img {
    transform: scale(1.05);
}

.gallery.cover figure img {
    object-fit: cover;
    object-position: center center;
}

.gallery figure.cover img {
    object-fit: cover;
    object-position: center center;
}

@media (max-width: 767px) {

    .gallery,
    .gallery.floor-plans {
        display: grid;
        gap: var(--space-lg);
        grid-template-columns: 1fr;
    }

}

/* Fancybox Popup Fixes */

.fancybox-overlay {
    z-index: 99995;
}

.fancybox-wrap {
    z-index: 99999 !important;
}

.fancybox-nav {
    width: 60px;
}

.fancybox-nav span {
    visibility: visible;
    opacity: 0.5;
}

.fancybox-nav:hover span {
    opacity: 1;
}

/* Contact Us Page */

.contact-form .form-group {
    margin-bottom: var(--space-sm);
}