﻿/* ============================================================
   DESIGN MASTER — Main Stylesheet
   ============================================================ */

/* ============================================================
   CSS Custom Properties (Design Tokens)
   ============================================================ */
:root {
    /* Red (default accent) */
    --accent-darkest: #5a0000;
    --accent-darker: #870000;
    --accent-dark: #b40000;
    --accent: #E10000;
    --accent-light: #e41a1a;
    --accent-lighter: #ea4d4d;
    --accent-lightest: #f39999;
    /* Grays */
    --gray-darkest: #171717;
    --gray-darker: #393939;
    --gray-dark: #5a5a5a;
    --gray: #717171;
    --gray-light: #8d8d8d;
    --gray-lighter: #c6c6c6;
    --gray-lightest: #f1f1f1;
}

/* Page-specific accent overrides */
#hvacPage {
    --accent-darkest: #0d161b;
    --accent-darker: #264152;
    --accent-dark: #32566e;
    --accent: #3f6c89;
    --accent-light: #6589a1;
    --accent-lighter: #8ca7b8;
    --accent-lightest: #ecf0f3;
}

#elecPage {
    --accent-darkest: #261526;
    --accent-darker: #4d2a4d;
    --accent-dark: #663866;
    --accent: #804680;
    --accent-light: #8d598d;
    --accent-lighter: #B89CB8;
    --accent-lightest: #f2edf2;
}

#ebimPage {
    --accent-darkest: #431803;
    --accent-darker: #702806;
    --accent-dark: #b33f09;
    --accent: #E04F0B;
    --accent-light: #e6723c;
    --accent-lighter: #ec956d;
    --accent-lightest: #f9dcce;
}

#fbimPage {
    --accent-darkest: #4b2d2d;
    --accent-darker: #4b2d2d;
    --accent-dark: #693e3e;
    --accent: #772727;
    --accent-light: #965959;
    --accent-lighter: #b68b8b;
    --accent-lightest: #cbacac;
}

#dbimPage {
    --accent-darkest: #2a3c28;
    --accent-darker: #2a3c28;
    --accent-dark: #354b32;
    --accent: #3d7535;
    --accent-light: #6a9564;
    --accent-lighter: #98b593;
    --accent-lightest: #b5cab2;
}


/* ============================================================
   Base
   ============================================================ */
body {
    color: var(--gray-darker);
    font-family: Sen, sans-serif;
}

strong {
    color: var(--accent-light);
}


/* ============================================================
   Strips (full-width section backgrounds)
   ============================================================ */
.strip,
.strip-gray,
.strip-accent {
    width: 100%;
    padding: 40px 0;
    background-color: white;
    text-align: center;
}

.strip-gray {
    background-color: var(--gray-lighter);
}

.strip-accent {
    background-color: var(--accent-lighter);
}

/* ============================================================
   Navigation
   ============================================================ */
nav {
    display: flex;
    align-items: flex-end;
    color: var(--gray-dark);
}

    nav a {
        position: relative;
        padding: 15px;
        text-decoration: none;
        color: var(--gray-dark);
        border-right: 1px solid var(--gray-dark);
    }

/* Animated hover background */
.hover-box {
    position: absolute;
    inset: 0;
    background-color: var(--gray-lighter);
    z-index: -1;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.3s, transform 0.3s;
}

nav a:hover .hover-box {
    opacity: 1;
    transform: translateY(0);
}

/* Dropdown */
.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: inherit;
    font-family: inherit;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

    .dropdown a {
        display: block;
        padding: 10px;
        color: black;
    }

/* ============================================================
   Pricing
   ============================================================ */
.pricing-container {
    display: flex;
    max-width: 1000px;
    margin: 0 auto;
}

    .pricing-container .text {
        flex: 1;
        padding: 20px;
    }

    .pricing-container .pricing {
        flex: 2;
        display: flex;
        justify-content: space-between;
        align-items: stretch;
    }

.pricing-card {
    position: relative;
    padding: 20px;
    background-color: var(--gray-lightest);
    margin-bottom: 15px;
    text-align: center;
    min-height: 560px;
    width: 200px;
    border-bottom-left-radius: 40px 50px;
    border-bottom-right-radius: 40px 50px;
}

    .pricing-card h3 {
        font-size: 20px;
    }

    .pricing-card h4 {
        font-size: 16px;
        font-weight: bold;
        border-bottom: 2px solid;
        margin: 10px 0 0;
    }

/* Pin buttons to the bottom of the card */
.pricing-btn-container {
    position: absolute;
    bottom: 20px;
    width: 80%;
}

.pricing .pricing-btn {
    display: block;
    width: 100%;
    height: 60px;
    padding: 0 10px;
    background-color: var(--accent-light);
    color: var(--gray-lightest);
    text-decoration: none;
    font-weight: bold;
    font-size: 25px;
    border: none;
    border-bottom-left-radius: 30px 40px;
    border-bottom-right-radius: 30px 40px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
    align-self: end;
}

.pricing-btn:hover {
    background-color: var(--accent);
}

/* Slider */
.slider {
    margin: 20px 0 10px;
}

    .slider input {
        -webkit-appearance: none;
        appearance: none;
        width: 100%;
        height: 10px;
        border-radius: 5px;
        background: #ddd;
        outline: none;
        opacity: 0.7;
        transition: opacity 0.2s;
    }

        .slider input::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: var(--accent-light);
            cursor: pointer;
        }


/* ============================================================
   Support / Options Buttons
   ============================================================ */
.options {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    max-width: 980px;
    margin: 0 auto;
    padding: 20px 0;
}

    .options a {
        display: inline-block;
        background-color: var(--accent-light);
        color: var(--gray-lightest);
        text-decoration: none;
        padding: 10px 20px;
        border-radius: 5px;
        font-weight: bold;
        text-align: center;
        white-space: nowrap;
        filter: grayscale(100%);
        transition: filter 0.3s, background-color 0.3s;
        cursor: pointer;
    }

        .options a:hover {
            filter: grayscale(0%);
        }

/* Wide top button */
#trial {
    width: 100%;
    max-width: 500px;
    font-size: clamp(14px, 5vw, 20px);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 3px;
    padding: 20px 10px;
    box-sizing: border-box;
}

/* Side-by-side bottom buttons */
.options-row {
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 500px;
}

    .options-row a {
        flex: 1;
        font-size: clamp(14px, 5vw, 20px);
        font-weight: bold;
        text-transform: uppercase;
        letter-spacing: 3px;
        padding: 20px 10px;
        box-sizing: border-box;
    }

#trial-strip {
    padding: 0;
    margin: 0;
    background-color: var(--accent-light);
}

#manage {
    margin-right: 10px;
    padding: 10px 20px;
}

#button {
    width: 100%;
    min-width: 400px;
    height: 100px;
    font-size: clamp(14px, 5vw, 20px);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 3px;
}


/* ============================================================
   Split Container (text + image/gif pairs)
   ============================================================ */
.split-container {
    display: flex;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    min-height: 400px;
    color: var(--gray-darker);
}

.text-side,
.gif-side,
.contact {
    flex: 1;
    display: flex;
    align-items: flex-start;
    padding: 40px;
    text-align: left;
    max-width: 500px;
    min-width: 400px;
    margin: auto;
}

.text-side,
.contact {
    flex-direction: column;
    border-radius: 10px;
    box-shadow: 1px 1px 10px 4px var(--gray-lighter);
}

#hvacPage .text-side {
    padding: 20px 100px;
}

#hero .text-side {
    box-shadow: none;
}

.gif-side {
    align-items: center;
    justify-content: center;
}

    .gif-side img {
        width: 100%;
    }

.text-side h2 {
    text-align: left;
    color: var(--accent-light);
}

.text-side a {
    background-color: white;
    border: 3px solid var(--accent-light);
    border-radius: 5px;
    text-decoration: none;
    margin: 0 auto 20px;
    padding: 5px 20px;
    transition: background-color 0.3s;
}

    .text-side a:hover {
        background-color: var(--accent-light);
        color: white;
    }

/* Contact card */
.contact {
    max-width: 23%;
    min-width: 230px;
    height: 350px;
    color: var(--gray-lightest);
    padding: 20px;
}

#contact-but {
    border: 3px solid var(--gray-lightest);
    border-radius: 5px;
    text-decoration: none;
    margin: 0 auto 20px;
    padding: 5px 20px;
    font-weight: bold;
    transition: background-color 0.3s;
}

    #contact-but:hover {
        background-color: var(--gray-lightest);
        color: var(--accent);
    }

/* Reverse layout for even sections */
.even {
    flex-direction: row-reverse;
}

.video-div {
    width: 400px;
    height: 224px;
    margin: 0 auto;
}


/* ============================================================
   Slideshow
   ============================================================ */
.slide {
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    box-shadow: 1px 1px 10px 4px var(--gray-lighter);
    max-width: 1000px;
    min-width: 450px;
    padding: 40px;
    text-align: left;
}

    .slide h2 {
        text-align: center;
        color: var(--accent-light);
    }

    .slide a {
        background-color: white;
        border: 3px solid var(--accent-light);
        border-radius: 5px;
        text-decoration: none;
        padding: 5px 20px;
        text-align: center;
        transition: background-color 0.3s;
    }

        .slide a:hover {
            background-color: var(--accent-light);
            color: white;
        }

/* Dot navigation */
.dot-container {
    display: block;
    text-align: center;
    margin-top: 20px;
}

.dot {
    display: inline-block;
    width: 15px;
    height: 15px;
    margin: 0 5px;
    background-color: var(--accent-light);
    border-radius: 50%;
    filter: grayscale(100%);
    cursor: pointer;
    transition: filter 0.6s ease;
}

    .dot:hover {
        filter: grayscale(0%);
    }

    .dot.active {
        background-color: var(--gray);
    }

/* Arrow buttons */
.prev,
.next {
    font-size: 22px;
    font-weight: bold;
    color: var(--gray-light);
    cursor: pointer;
    transition: color 0.3s;
}

.prev {
    left: 30px;
}

.next {
    right: 30px;
}

    .prev:hover,
    .next:hover {
        color: var(--accent);
    }


/* ============================================================
   Customer Cards (flip effect)
   ============================================================ */
.customer-container {
    width: 80%;
    margin: 20px auto;
    display: flex;
    justify-content: space-between;
    perspective: 1000px;
}

.customer-card {
    width: 300px;
    height: 240px;
    margin: 0 20px;
    position: relative;
    transform-style: preserve-3d;
    cursor: pointer;
    transition: transform 0.5s ease-in-out;
}

    .customer-card:hover {
        transform: rotateY(180deg);
    }

    .customer-card img {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        filter: grayscale(100%);
        backface-visibility: hidden;
    }

.customer-card-back {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: inherit;
    backface-visibility: hidden;
    transform: rotateY(180deg);
}

.customer-card p {
    margin-bottom: 15px;
}


/* ============================================================
   Accordion / Feature List
   ============================================================ */
.accordion {
    max-width: 800px;
    margin: 50px auto;
}

.feature-list {
    margin-bottom: 10px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

    .feature-list .feature {
        padding: 15px;
        font-weight: bold;
        border-bottom: 1px solid var(--gray-darkest);
        background-color: var(--gray-lighter);
        color: var(--gray-darkest);
        text-align: left;
        cursor: pointer;
    }

    .feature-list .info {
        padding: 15px;
        display: none;
    }


/* ============================================================
   Contact / Bio
   ============================================================ */
.bio img {
    width: 150px;
    height: 150px;
    border-radius: 80px;
    float: right;
    margin: 20px;
}


/* ============================================================
   Responsive — Desktop (≥ 1000px)
   ============================================================ */
@media (min-width: 1000px) {
    .pricing-container {
        flex-direction: row;
    }

        .pricing-container .text {
            flex: 1;
        }

        .pricing-container .pricing {
            flex: 2;
            flex-direction: row;
        }

        .pricing-container .pricing-card {
            margin-right: 15px;
            margin-bottom: 0;
        }
}


/* ============================================================
   Responsive — Mobile (≤ 1000px)
   ============================================================ */
@media screen and (max-width: 1000px) {
    .split-container {
        flex-direction: column-reverse;
    }

    .pricing-container {
        flex-direction: column;
        max-width: 600px;
    }

        .pricing-container .pricing {
            flex-direction: column;
        }

    .pricing-card {
        width: 90%;
        min-height: 500px;
        margin: 0 auto 10px;
    }

    .pricing-btn-container {
        width: 90%;
        margin: 0 auto 5px;
    }

    .options a {
        margin: 5px auto;
        width: fit-content;
    }

    .options-row {
        flex-direction: column;
    }
}