/*****************************************************
 *  ██████╗ ██████╗ ██╗      ██████╗ ██████╗ ███████╗
 *  ██╔════╝██╔═══██╗██║     ██╔═══██╗██╔══██╗██╔════╝
 *  ██║     ██║   ██║██║     ██║   ██║██████╔╝███████╗
 *  ██║     ██║   ██║██║     ██║   ██║██╔══██╗╚════██║
 * ╚██████╗╚██████╔╝███████╗╚██████╔╝██║  ██║███████║
 *****************************************************/

:root {
    --white: #fff;
    --black: #000;
    --light-blue: #008fd9;
    --baby-blue: #f2f9fd;
    --primary-grey: #ccc;
    --secondary-grey: #001b2d;
    --coastal--llc-green-background: #effcf2;
    --coastal-llc-green-text: #26a71a;
    --coastal-blue-background: #e5f4fb;
    --coastal-blue-foreground: #008fd9;
}


/*************************************************
 * ███████╗ ██████╗ ███╗   ██╗████████╗███████╗
 * ██╔════╝██╔═══██╗████╗  ██║╚══██╔══╝██╔════╝
 * █████╗  ██║   ██║██╔██╗ ██║   ██║   ███████╗
 * ██╔══╝  ██║   ██║██║╚██╗██║   ██║   ╚════██║
 * ██║     ╚██████╔╝██║ ╚████║   ██║   ███████║
 * ╚═╝      ╚═════╝ ╚═╝  ╚═══╝   ╚═╝   ╚══════╝
*************************************************/

@font-face {
    font-family: 'Avenir-Light';
    src: url('../fonts/avenir_light.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Avenir-Book';
    src: url('../fonts/avenir_book.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Avenir-Book-Oblique';
    src: url('../fonts/avenir_book_oblique.ttf') format('truetype');
    font-weight: normal;
    font-style: oblique;
}

@font-face {
    font-family: 'Avenir-Medium';
    src: url('../fonts/avenir_regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Avenir-Roman';
    src: url('../fonts/avenir_roman.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Avenir-Medium';
    src: url('../fonts/avenir_medium.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Avenir-Oblique';
    src: url('../fonts/avenir_oblique.ttf') format('truetype');
    font-weight: normal;
    font-style: oblique;
}

@font-face {
    font-family: 'Avenir-Black';
    src: url('../fonts/avenir_black.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Avenir-Heavy';
    src: url('../fonts/avenir_heavy.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/***********************************************
 * Base Styles
 **********************************************/

html {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}


/***********************************************
 * Desktop
 **********************************************/

/** Menu */

.cu-logo-menu {
    padding: 10px 89px 10px 50px;
    width: 162px;
}

.main-nav {
    background-color: #fff;
}

.main-nav-middle {
    display: flex;
    justify-content: center;
}

.menu {
    display: flex;
    justify-content: space-between;
    list-style: none;
    margin: 0;
    padding-left: 0;
}

.nav-item a {
    color: #001b2d;
    font-family: 'Avenir-Medium', sans-serif;
    text-decoration: none;
}

.nav-item {
    text-align: left;
    line-height: 1.25;
    letter-spacing: normal;
    opacity: 0.5;
    padding: 40px 20px; /** Change to 15 PX for slightly smaller screens **/
}

.nav-item-active {
    text-align: left;
    line-height: 1.25;
    letter-spacing: normal;
    padding: 40px 20px;
}

.nav-item-active a {
    color: #000;
    font-family: 'Avenir-Medium', sans-serif;
    text-decoration: none;
}

.nav-item-last {
    text-align: left;
    line-height: 1.25;
    letter-spacing: normal;
    padding: 40px 25px 40px 25px;
}

.main-nav-right {
    padding-right: 50px;
}

/** Footer **/

.footer-container {
    background-color: #001b2d;
    padding: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: auto;
}

.footer-container p {
    margin: 0 auto;
    color: #fff;
    font-family: 'Avenir-Medium', sans-serif;
}

/** Slider **/

.slider-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.slider {
    display: flex;
    height: 100%;
    transition: transform 0.6s ease-in-out;
}

.slider-item {
    flex: 0 0 100%;
    height: 100%;
    background-image: url('../img/banner.png');
    background-size: cover;
    background-position: center;
}

.slider-link-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.slider-link-wrapper .btn-blue {
    text-align: center;
    padding: 8px;
}

.slider-heading {
    font-family: 'Avenir-Medium', sans-serif;
    text-align: center;
    color: #fff;
    font-size: 50px;
    font-weight: 500;
    padding: 120px 259px 20px 259px;
    margin: 0;
}

.slider-paragraph {
    font-family: 'Avenir-Roman', sans-serif;
    font-size: 16px;
    letter-spacing: normal;
    text-align: center;
    line-height: 1.88;
    color: #fff;
}

.slider-text {
    color: #fff;
    text-align: center;
}

/** Slider Navigation Dots **/

.dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10;
}

.dot {
    display: inline-block;
    height: 14px;
    width: 14px;
    margin: 0 8px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.dot.active {
    background-color: #fff;
    transform: scale(1.2);
}

/** Billing Section **/

.billing-container {
    padding: 100px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 0 130px;
}

.online-bill-pay-munibilling h1 {
    font-family: 'Avenir-Medium', sans-serif;
    font-weight: 500;
}

.online-bill-pay-munibilling p {
    font-family: 'Avenir-Roman', sans-serif;
    font-size: 16px;
}

.cu-logo-phone {
    width: 500px;
}

/** Main Section */

.home-page-main-container {
    background-color: var(--baby-blue);
    padding: 80px 130px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.home-page-main-container h1 {
    font-family: 'Avenir-Medium', sans-serif;
    margin-bottom: 40px;
    text-align: center;
    font-weight: 500;
}

.home-page-main-container p {
    font-family: 'Avenir-Roman', sans-serif;
    text-align: center;
    line-height: 1.88;
}

/** FAQ Section **/

.faq-container {
    margin: 0 130px;
}

.faq-h1 {
    font-family: 'Avenir-Medium', sans-serif;
    margin-top: 80px;
    text-align: center;
}

.faq-item {
    margin-bottom: 20px;
    transition: all 0.3s ease-in-out;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.faq-question h1 {
    font-family: Avenir-Regular sans-serif;
    font-size: 20px;
    margin: 0;
    flex: 1;
}

.faq-icon {
    width: 24px;
    height: 24px;
    margin-left: 20px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-closed-question {
    border-bottom: 2px solid rgba(204, 204, 204, 0.5);
    padding: 20px 0;
}

.faq-closed-question .faq-answer {
    display: none;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, max-height 0.3s ease;
}

.faq-open-question {
    width: 100%;
    padding: 30px;
    border-radius: 10px;
    background-color: #f2f9fd;
    border-bottom: none;
}

.faq-open-question .faq-question h1 {
    padding-bottom: 15px;
}

.faq-open-question .faq-answer {
    font-family: 'Avenir-Roman', sans-serif;
    font-size: 16px;
    display: block;
    opacity: 1;
    max-height: 500px;
    transition: opacity 0.3s ease, max-height 0.3s ease;
    line-height: 1.88;
}

/** Page Header **/

.page-header {
    background-image: url('../img/banner.png');
    width: 100%;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-header h1 {
    font-family: 'Avenir', sans-serif;
    font-size: 50px;
    color: #fff;
    text-align: center;
    font-weight: 500;
}

/** Billing Page Layout **/

.billing-section {
    margin-bottom: 32px;
}

.billing-section h2 {
    font-family: 'Avenir', sans-serif;
    font-size: 32px;
    font-weight: 500;
    color: #000;
    text-align: center;
}

.billing-systems {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 31px;
    max-width: 1200px;
    margin: 0 auto;
}

/** Areas We Serve Layout **/

.areas-we-serve {
    display: flex;
    justify-content: center;
    align-items: center;
}

.areas-we-serve img {
    margin: 20px 20px;
    height: 250px;
}

/** Components **/

.btn-blue {
    width: 120px;
    height: 44px;
    padding: 12px 31px;
    border-radius: 34px;
    background-color: #008fd9;
    color: #fff;
    text-decoration: none;
    font-family: 'Avenir-Medium', sans-serif;
}

.system-card {
    background-color: var(--baby-blue);
    padding: 30px 78px;
    border-radius: 10px;
    font-size: 20px;
    font-weight: 500;
    font-family: 'Avenir', sans-serif;
}

.figcaption {
    font-family: 'Avenir', sans-serif;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    color: #000;
}

/** Utils **/

.margin-bottom-30-px {
    margin-bottom: 30px;
}

/** Responsive Images **/

img {
    max-width: 100%;
    height: auto;
}

/** Mobile Navigation (Hamburger Menu) **/

.mobile-nav-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #fff;
    position: relative;
    z-index: 1002;
}

.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

.hamburger-menu {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1003;
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    width: 48px;
    height: 48px;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.hamburger-line {
    width: 28px;
    height: 3px;
    background-color: #001b2d;
    transition: all 0.3s ease;
    border-radius: 2px;
    display: block;
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

body.menu-open {
    overflow: hidden;
}

/***********************************************
 * RESPONSIVE STYLES
 **********************************************/

/** Tablet (768px - 1024px) **/
@media screen and (max-width: 1024px) {
    .cu-logo-menu {
        padding: 10px 30px 10px 30px;
        width: 140px;
    }

    .nav-item {
        padding: 40px 12px;
        font-size: 14px;
    }

    .nav-item-active {
        padding: 40px 12px;
        font-size: 14px;
    }

    .nav-item-last {
        padding: 40px 15px 40px 15px;
    }

    .main-nav-right {
        padding-right: 30px;
    }

    .slider-heading {
        font-size: 40px;
        padding: 100px 150px 20px 150px;
    }

    .slider-paragraph {
        font-size: 15px;
        padding: 0 100px;
    }

    .slider-container {
        height: 450px;
    }

    .billing-container {
        padding: 60px 40px;
        margin: 0 60px;
    }

    .cu-logo-phone {
        width: 400px;
    }

    .home-page-main-container {
        padding: 60px 80px;
    }

    .faq-container {
        margin: 0 80px;
    }

    .faq-h1 {
        margin-top: 60px;
    }

    .page-header {
        height: 250px;
    }

    .page-header h1 {
        font-size: 42px;
    }

    .billing-section {
        padding: 0 60px;
    }

    .billing-section h2 {
        font-size: 28px;
    }

    .billing-systems {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .system-card {
        padding: 25px 60px;
        font-size: 18px;
    }
}

/** Mobile (320px - 767px) **/
@media screen and (max-width: 767px) {
    /** Mobile Navigation **/
    .mobile-nav-header {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .mobile-nav-header .cu-logo-menu {
        width: 120px;
        padding: 0;
    }

    .main-nav {
        position: relative;
    }

    .menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: #fff;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 80px 0 20px 0;
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    }

    .menu.active {
        right: 0;
    }

    .main-nav-left,
    .main-nav-middle,
    .main-nav-right {
        display: flex;
        flex-direction: column;
        width: 100%;
        padding: 0;
    }

    .main-nav-left {
        display: none;
    }

    .nav-item,
    .nav-item-active,
    .nav-item-last {
        padding: 15px 25px;
        text-align: left;
        border-bottom: 1px solid rgba(204, 204, 204, 0.3);
        opacity: 1;
    }

    .nav-item a,
    .nav-item-active a,
    .nav-item-last a {
        display: block;
        width: 100%;
    }

    .nav-item-last .btn-blue {
        width: 100%;
        display: block;
        text-align: center;
        padding: 12px 20px;
    }

    /** Add spacing for fixed header **/
    body {
        padding-top: 70px;
    }

    /** Slider **/
    .slider-container {
        height: 400px;
    }

    .slider-heading {
        font-size: 28px;
        padding: 60px 20px 15px 20px;
    }

    .slider-paragraph {
        font-size: 14px;
        padding: 0 20px;
        line-height: 1.6;
    }

    .slider-link-wrapper .btn-blue {
        padding: 10px 25px;
        font-size: 14px;
    }

    .dots {
        bottom: 20px;
    }

    .dot {
        height: 10px;
        width: 10px;
        margin: 0 5px;
    }

    /** Billing Section **/
    .billing-container {
        flex-direction: column;
        padding: 40px 20px;
        margin: 0;
        text-align: center;
    }

    .cu-logo-phone {
        width: 100%;
        max-width: 350px;
        margin-bottom: 30px;
    }

    .online-bill-pay-munibilling h1 {
        font-size: 24px;
        margin-top: 0;
    }

    .online-bill-pay-munibilling p {
        font-size: 15px;
    }

    /** Main Section **/
    .home-page-main-container {
        padding: 40px 20px;
    }

    .home-page-main-container h1 {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .home-page-main-container p {
        font-size: 15px;
        line-height: 1.7;
    }

    /** FAQ Section **/
    .faq-container {
        margin: 0 20px;
    }

    .faq-h1 {
        font-size: 24px;
        margin-top: 40px;
    }

    .faq-closed-question {
        padding: 15px 0;
    }

    .faq-open-question {
        padding: 20px;
    }

    .faq-question h1 {
        font-size: 16px;
    }

    .faq-icon {
        width: 20px;
        height: 20px;
        margin-left: 15px;
    }

    .faq-open-question .faq-answer {
        font-size: 14px;
        line-height: 1.6;
    }

    /** Footer **/
    .footer-container {
        padding: 20px 15px;
    }

    .footer-container p {
        font-size: 12px;
        text-align: center;
    }

    /** Buttons **/
    .btn-blue {
        font-size: 14px;
        padding: 10px 20px;
        width: auto;
    }

    /** Billing Page **/
    .page-header {
        height: 200px;
    }

    .page-header h1 {
        font-size: 32px;
        padding: 0 20px;
    }

    .billing-section {
        padding: 0 15px;
        margin-bottom: 40px;
    }

    .billing-section h2 {
        font-size: 22px;
        padding: 0 5px;
        line-height: 1.4;
        margin-top: 40px;
        margin-bottom: 30px;
    }

    .billing-systems {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .system-card {
        padding: 20px 15px;
        font-size: 16px;
        text-align: center;
    }

}

/** Small Mobile (320px - 374px) **/
@media screen and (max-width: 374px) {
    .mobile-nav-header {
        padding: 12px 15px;
    }

    .mobile-nav-header .cu-logo-menu {
        width: 100px;
    }

    .slider-heading {
        font-size: 24px;
        padding: 50px 15px 15px 15px;
    }

    .slider-paragraph {
        font-size: 13px;
        padding: 0 15px;
    }

    .slider-container {
        height: 350px;
    }

    .cu-logo-phone {
        max-width: 280px;
    }

    .home-page-main-container h1,
    .faq-h1,
    .online-bill-pay-munibilling h1 {
        font-size: 20px;
    }
}

