/*-- -------------------------- -->
<---            hero            -->
<--- -------------------------- -*/

/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
    #hero {
        padding: var(--sectionPadding);
        /* 112px - 200px */
        padding-top: clamp(7rem, 15vw, 12.5rem);
        padding-right: 0;
    }
    #hero .cs-container {
        width: 100%;
        /* changes to 100% at tablet */
        max-width: 34.375rem;
        margin: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        /* 36px - 100px */
        gap: clamp(2.25rem, 10vw, 6.25rem);
    }
    #hero .cs-content {
        max-width: 39.375rem;
        padding-right: 1rem;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        flex-wrap: wrap;
    }
    #hero .cs-title {
        /* 31px - 61px */
        font-size: clamp(1.9375rem, 4.4vw, 3.8125rem);
        font-weight: 900;
        line-height: 1.2em;
        text-align: left;
        max-width: 43.75rem;
        /* 12px - 24px */
        margin: 0 0 clamp(0.75rem, 1.5vw, 1.5rem);
        color: var(--headerColor);
        position: relative;
    }
    #hero .cs-color {
        color: var(--primary);
        display: block;
    }
    #hero .cs-text {
        /* 16px - 25px */
        font-size: clamp(1rem, 2vw, 1.5625rem);
        line-height: 1.5em;
        text-align: left;
        width: 100%;
        max-width: 40.625rem;
        margin: 0;
        /* 24px - 40px */
        margin-bottom: clamp(1.5rem, 4.2vw, 3rem);
        color: var(--bodyTextColor);
    }
    #hero .cs-button-solid {
        font-size: 1rem;
        /* 46px - 56px */
        line-height: clamp(2.875rem, 5.5vw, 3.5rem);
        text-decoration: none;
        font-weight: 700;
        text-align: center;
        margin: 0;
        margin-right: 1.5rem;
        color: #fff;
        min-width: 9.375rem;
        padding: 0 1.5rem;
        background-color: var(--primary);
        border: none;
        border-radius: 0.25rem;
        cursor: pointer;
        display: inline-block;
        position: relative;
        z-index: 1;
        /* prevents padding from adding to the width */
        box-sizing: border-box;
    }
    #hero .cs-button-solid:before {
        content: "";
        position: absolute;
        height: 100%;
        width: 0%;
        background: #000;
        opacity: 1;
        top: 0;
        left: 0;
        z-index: -1;
        border-radius: 0.25rem;
        transition: width 0.3s;
    }
    #hero .cs-button-solid:hover:before {
        width: 100%;
    }
    #hero .cs-button-transparent {
        font-size: 1rem;
        /* 46px - 56px */
        line-height: clamp(2.875rem, 5.5vw, 3.5rem);
        text-decoration: none;
        font-weight: 700;
        text-align: center;
        margin: 0;
        color: var(--primary);
        min-width: 9.375rem;
        padding: 0 1.5rem;
        background-color: transparent;
        border-radius: 0.25rem;
        display: inline-block;
        position: relative;
        z-index: 1;
        /* prevents padding from adding to the width */
        box-sizing: border-box;
        transition:
            background-color 0.3s,
            color 0.3s;
    }
    #hero .cs-button-transparent:hover {
        background-color: var(--primary);
        color: #fff;
    }
    #hero .cs-header {
        /* 14px - 20px */
        font-size: clamp(0.875rem, 1.5vw, 1.25rem);
        line-height: 1.5em;
        /* 40px - 100px */
        margin: clamp(2.5rem, 5vw, 6.25rem) 0 0.75rem 0;
        width: 100%;
        color: var(--bodyTextColor);
        display: block;
    }
    #hero .cs-logo-group {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    #hero .cs-logo {
        width: auto;
        /* 18px - 32px */
        height: clamp(1.125rem, 1.5vw, 2rem);
        filter: grayscale(1);
    }
    #hero .cs-stat-group {
        width: 100%;
        border-radius: 1.25rem 0 0 1.25rem;
        aspect-ratio: 0.92696629;
        /* clips the corners around the border radius */
        overflow: hidden;
        display: flex;
        justify-content: center;
        align-items: flex-end;
        flex-wrap: nowrap;
        position: relative;
        z-index: 1;
    }
    #hero .cs-stat-box {
        width: 50%;
        /* changes at tablet */
        height: 9.125rem;
        /* 24px - 48px */
        padding: clamp(1.5rem, 3vw, 3rem);
        /* prevents padding and border from affecting height and width */
        box-sizing: border-box;
        color: #fff;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    #hero .cs-stat-box:nth-of-type(1) {
        background-color: rgba(23, 99, 22, 0.96);
    }
    #hero .cs-stat-box:nth-of-type(2) {
        background-color: rgba(34, 149, 33, 0.96);
    }
    #hero .cs-stat {
        /* 25px - 61px */
        font-size: clamp(1.5625rem, 3.5vw, 3.8125rem);
        line-height: 1.2em;
        text-align: left;
        margin: 0;
        display: block;
    }
    #hero .cs-desc {
        /* 14px - 20px */
        font-size: clamp(0.875rem, 1.6vw, 1.25rem);
        line-height: 1.2em;
        margin: 0.25rem 0 0 0;
        display: block;
    }
    #hero .cs-background {
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        position: absolute;
        z-index: -1;
    }
    #hero .cs-background img {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        object-fit: cover;
    }
    #hero #name {
        font-size: 1.5em;
        font-weight: bold;
        color: var(--primary);
        cursor: pointer;
        position: relative;
        transition: color 0.3s ease;
        display: inline-block;
    }
    #hero #name::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background: currentColor;
        transition: width 0.3s ease;
    }
    #hero #name:hover {
        color: #000;
    }
    #hero #name:hover::after {
        width: 100%;
    }
}

/* Contact Modal */
@media only screen and (min-width: 0rem) {
    .cs-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 99999;
        display: flex;
        justify-content: center;
        align-items: center;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    .cs-modal.cs-active {
        opacity: 1;
        visibility: visible;
    }
    .cs-modal-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(4px);
    }
    .cs-modal-content {
        position: relative;
        max-width: 90%;
        max-height: 90vh;
        transform: scale(0.9) translateY(20px);
        transition: transform 0.3s ease;
    }
    .cs-modal.cs-active .cs-modal-content {
        transform: scale(1) translateY(0);
    }
    .cs-modal-close {
        position: absolute;
        top: -2.5rem;
        right: 0;
        width: 2.5rem;
        height: 2.5rem;
        background: var(--primary);
        border: none;
        border-radius: 50%;
        color: #fff;
        font-size: 1.75rem;
        line-height: 1;
        cursor: pointer;
        display: flex;
        justify-content: center;
        align-items: center;
        transition: background-color 0.3s, transform 0.3s;
        z-index: 2;
    }
    .cs-modal-close:hover {
        background: #000;
        transform: rotate(90deg);
    }
    
    /* Business Card Styles */
    .cs-business-card {
        background: linear-gradient(135deg, #fff 0%, #f5f5f5 100%);
        border-radius: 1rem;
        overflow: hidden;
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
        display: flex;
        flex-direction: column;
        max-width: 24rem;
    }
    .cs-card-image {
        width: 100%;
        aspect-ratio: 4/3;
        overflow: hidden;
    }
    .cs-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: top;
    }
    .cs-card-info {
        padding: 1.5rem;
        text-align: center;
    }
    .cs-card-name {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--primary);
        margin: 0 0 0.25rem 0;
    }
    .cs-card-title {
        font-size: 1rem;
        color: #666;
        margin: 0 0 1rem 0;
        font-style: italic;
    }
    .cs-card-divider {
        width: 3rem;
        height: 2px;
        background: var(--primary);
        margin: 0 auto 1rem;
    }
    .cs-card-contact {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }
    .cs-card-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        color: #333;
        text-decoration: none;
        font-size: 0.9375rem;
        transition: color 0.3s;
    }
    .cs-card-link:hover {
        color: var(--primary);
    }
    .cs-card-link svg {
        flex-shrink: 0;
    }
    .cs-card-location {
        font-size: 0.875rem;
        color: #666;
        margin: 0 0 1rem 0;
    }
    .cs-save-contact {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        width: 100%;
        padding: 0.75rem 1.5rem;
        background: var(--primary);
        color: #fff;
        border: none;
        border-radius: 0.25rem;
        font-size: 0.9375rem;
        font-weight: 600;
        cursor: pointer;
        transition: background-color 0.3s, transform 0.2s;
    }
    .cs-save-contact:hover {
        background: #000;
        transform: translateY(-2px);
    }
    .cs-save-contact:active {
        transform: translateY(0);
    }
    .cs-save-contact svg {
        flex-shrink: 0;
    }
}
/* Tablet - 768px */
@media only screen and (min-width: 48rem) {
    #hero {
        padding-right: 0;
    }
    #hero .cs-container {
        max-width: 100%;
        flex-direction: row;
        justify-content: flex-end;
    }
    #hero .cs-content {
        width: 45%;
        padding: 0;
    }
    #hero .cs-stat-group {
        width: 45%;
        max-height: 46.0625rem;
        aspect-ratio: 0.92647059;
        flex: none;
    }
    #hero .cs-stat-box {
        /* 126px - 221px */
        height: clamp(7.875rem, 18vw, 13.8125rem);
    }
}
/* Dark Mode */
@media only screen and (min-width: 0rem) {
    body.dark-mode #hero .cs-title,
    body.dark-mode #hero .cs-text,
    body.dark-mode #hero .cs-header,
    body.dark-mode #hero .cs-button-transparent {
        color: var(--bodyTextColorWhite);
    }

    body.dark-mode #hero .cs-color {
        color: var(--primaryLight);
    }

    body.dark-mode #hero .cs-button-solid {
        color: #000;
        background-color: var(--primaryLight);
    }
    body.dark-mode #hero .cs-logo {
        filter: grayscale(1) brightness(400%);
    }
    body.dark-mode #hero .cs-button-solid:before {
        background: var(--bodyTextColorWhite);
    }
    body.dark-mode #hero #name {
        color: var(--primaryLight);
    }
    body.dark-mode #hero #name:hover {
        color: var(--bodyTextColorWhite);
    }
    
    /* Dark mode modal adjustments */
    body.dark-mode .cs-modal-close {
        background: var(--primaryLight);
        color: #000;
    }
    body.dark-mode .cs-modal-close:hover {
        background: var(--bodyTextColorWhite);
    }
    body.dark-mode .cs-business-card {
        background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    }
    body.dark-mode .cs-card-name {
        color: var(--primaryLight);
    }
    body.dark-mode .cs-card-title {
        color: #999;
    }
    body.dark-mode .cs-card-divider {
        background: var(--primaryLight);
    }
    body.dark-mode .cs-card-link {
        color: #fff;
    }
    body.dark-mode .cs-card-link:hover {
        color: var(--primaryLight);
    }
    body.dark-mode .cs-card-location {
        color: #888;
    }
    body.dark-mode .cs-save-contact {
        background: var(--primaryLight);
        color: #000;
    }
    body.dark-mode .cs-save-contact:hover {
        background: #fff;
    }
}

                                