
/*
 * CATERED COFFEE
 * Shared Website Banner Stylesheet
 *
 * File: page-banner.css
 *
 * Homepage: Larger hero banner
 * Interior pages: Consistent shorter banner
 *
 * Shared photograph:
 * mobile-cappuccino-bar.png
 *
 * No artificial black overlay.
 */

:root {
    --cc-banner-brown: #873F13;
    --cc-banner-cream: #FFF2E1;
    --cc-banner-white: #FFFFFF;
}

/* ========================================
   SHARED BANNER
======================================== */

.cc-page-banner {
    box-sizing: border-box;
    position: relative;
    isolation: isolate;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    margin: 0;
    overflow: hidden;

    background-color: var(--cc-banner-brown);
    background-image:
        url("../images/mobile-cappuccino-bar.png");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;

    text-align: center;
}

/* Prevent artificial banner overlays */

.cc-page-banner::before,
.cc-page-banner::after {
    content: none;
    display: none;
}

/* ========================================
   HOMEPAGE HERO
======================================== */

.cc-page-banner--home {
    min-height: 420px;
    padding: 165px 24px 55px;
}

/* ========================================
   INTERIOR BANNERS
======================================== */

.cc-page-banner--inner {
    min-height: 270px;
    padding: 155px 24px 40px;
}

/* ========================================
   BANNER CONTENT
======================================== */

.cc-page-banner__content {
    box-sizing: border-box;
    position: relative;
    z-index: 1;

    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.cc-page-banner__content h1 {
    color: var(--cc-banner-cream);
    font-family: Pristina, cursive;
    font-size: clamp(36px, 5vw, 62px);
    font-style: normal;
    font-weight: 400;
    line-height: 1.2;
    text-align: center;
    margin: 0 0 12px;
}

.cc-page-banner__content h2,
.cc-page-banner__content h3 {
    color: var(--cc-banner-cream);
    font-family: Georgia, serif;
    font-size: clamp(17px, 2vw, 23px);
    font-style: normal;
    font-weight: 600;
    line-height: 1.45;
    text-align: center;
    margin: 0 0 12px;
}

.cc-page-banner__content p {
    color: var(--cc-banner-cream);
    font-family: Mulish, Arial, sans-serif;
    font-size: 17px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.65;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 14px;
}

.cc-page-banner__content .section_btns {
    margin-top: 22px;
}

.cc-page-banner__content a {
    text-decoration: none;
}

.cc-page-banner__content a:focus-visible {
    outline: 3px solid var(--cc-banner-cream);
    outline-offset: 3px;
}

/* ========================================
   TABLET
======================================== */

@media (max-width: 991px) {

    .cc-page-banner--home {
        min-height: 370px;
        padding: 175px 18px 45px;
    }

    .cc-page-banner--inner {
        min-height: 250px;
        padding: 150px 18px 35px;
    }
}

/* ========================================
   START OF CORRECTION
   MOBILE BANNER HEADER OVERLAP
======================================== */

@media (max-width: 767px) {

    .cc-page-banner {
        background-position: center center;
        overflow: visible;
        align-items: flex-start;

        /* Clear the overlapping mobile header */
        margin-top: 0;
    }

   /* ========================================
   START CORRECTION #3
   MOBILE BANNER SPACING
======================================== */

.cc-page-banner--home {
    min-height: 0;
    height: auto;
    padding: 28px 16px 36px;
}

.cc-page-banner--inner {
    min-height: 0;
    height: auto;
    padding: 35px 16px 40px;
}

/* ========================================
   END CORRECTION #3
   MOBILE BANNER SPACING
======================================== */

    .cc-page-banner__content {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    .cc-page-banner__content h1 {
        font-size: clamp(32px, 8vw, 42px);
        line-height: 1.22;
        margin: 0 0 16px;
        text-shadow: 0 2px 5px rgba(0,0,0,0.65);
    }

    .cc-page-banner__content h2,
    .cc-page-banner__content h3 {
        font-size: 18px;
        line-height: 1.5;
        margin: 0 0 16px;
        text-shadow: 0 2px 4px rgba(0,0,0,0.7);
    }

    .cc-page-banner__content p {
        font-size: 15px;
        line-height: 1.7;
        max-width: 100%;
        margin: 0 auto 18px;
        text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    }

    .cc-page-banner__content .section_btns {
        margin-top: 20px;
        margin-bottom: 0;
    }
}

/* ========================================
   END OF CORRECTION
   MOBILE BANNER HEADER OVERLAP
======================================== */

/* ========================================
   SHARED MOBILE NAVIGATION COLOR
======================================== */

@media (max-width: 767px) {

    header .top_bar {
        background-color: #873F13;
    }

    header .navbar,
    header .navbar.bg-body-tertiary,
    header .navbar.logo_nav,
    header .navbar.logo_nav.bg-body-tertiary {
        background: #873F13 !important;
        background-color: #873F13 !important;
    }

}
/* END OF SHARED BANNER STYLESHEET */
