/*
 * St. Clair County Chamber of Commerce
 * Custom theme styles
 *
 * BRAND PALETTE (from logo):
 *   Teal:        #0BC1DF  — "St" circle, "ST CLAIR" text
 *   Orange:      #FF741F  — "C" circle, "COUNTY" text
 *   Tan:         #D8C3A4  — "cc" circle
 *   Slate:       #757376  — "Chamber of Commerce" text
 *
 * DERIVED FOR ACCESSIBILITY (WCAG AA on white/light backgrounds):
 *   Heading dark teal:  #0A4D5E  — 9.4:1 on white (AAA)
 *   Link teal:          #067080  — 5.8:1 on white (AA)
 *   Label teal:         #077D90  — 4.8:1 on white (AA)
 *   Body text:          #2D2B2E  — 14:1 on white (AAA)
 *   Secondary text:     #5E5C5F  — 6.6:1 on white (AA)
 *   CTA button bg:      #C25209  — 4.7:1 white-on (AA)
 *   Warm section bg:    #F5F0EA  — light tan tint
 */

body {
    color: #2D2B2E;
    background: #FEFEFE;
    font-family: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body.menu-open {
    overflow-y: hidden;
}

/* --- Navigation --- */

.primary_nav {
    padding: 15px;
    background: #fefefe;
    border-bottom: 1px solid #E8E3DD;
}

.logo img {
    height: 110px;
    width: auto;
    position: relative;
    z-index: 12;
}

@media (max-width: 991px) {
    .logo img {
        height: 70px;
        width: auto;
    }
}

a h1.logo {
    font-family: 'Inter', 'Roboto Condensed', sans-serif;
    text-transform: uppercase;
    font-size: 20px;
    font-weight: 700;
    color: #0A4D5E;
    position: relative;
    z-index: 12;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.primary_nav a:hover {
    text-decoration: none !important;
}

.nav-link {
    display: block;
    padding: 0 1rem;
}

a.nav-link {
    font-size: 15px;
    font-weight: 600;
    color: #2D2B2E;
}

a.nav-link:hover {
    color: #067080;
}

/* Mobile menu */
.mobile_menu {
    display: none;
    background: #0A4D5E;
    position: absolute;
    width: 100%;
    z-index: 100;
}

.mobile_menu.active {
    display: block;
}

.mobile_menu a {
    color: #fefefe;
    font-family: 'Inter', 'Roboto Condensed', sans-serif;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 600;
}

/* --- Typography --- */

h1 {
    font-family: 'Inter', 'Roboto', sans-serif;
    color: #0A4D5E;
}

.header h1 {
    font-size: 36px;
    margin-bottom: 30px;
}

h2 {
    font-family: 'Inter', 'Roboto', sans-serif;
    letter-spacing: 0.5px;
    font-size: 36px;
    color: #0A4D5E;
}

h1 span.sub_heading, h2 span.sub_heading {
    font-family: 'Inter', 'Roboto Condensed', sans-serif;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1.5px;
    color: #077D90;
    margin-bottom: 10px;
    display: block;
    font-weight: 600;
}

h2.small {
    font-size: 24px;
}

h2 span.underline {
    text-decoration: none;
    position: relative;
    padding-bottom: 27px;
}

h2 span.underline:after {
    position: absolute;
    content: '';
    height: 3px;
    bottom: 0;
    margin: 0 auto;
    left: 0;
    right: 0;
    width: 175px;
    background: #FF741F;
}

h2 span.underline.left {
    text-decoration: none;
    position: relative;
    padding-bottom: 27px;
}

h2 span.underline.left:after {
    position: absolute;
    content: '';
    height: 3px;
    bottom: 0;
    margin-left: 0;
    left: 0;
    width: 175px;
    background: #FF741F;
}

h2 span.underline_top {
    text-decoration: none;
    position: relative;
    padding-top: 27px;
}

h2 span.underline_top:after {
    position: absolute;
    content: '';
    height: 3px;
    top: 0;
    margin: 0 auto;
    left: 0;
    right: 0;
    width: 175px;
    background: #FF741F;
}

h2.small span.underline.left {
    text-decoration: none;
    position: relative;
    padding-bottom: 15px;
    line-height: 1.2;
}

h2.small span.underline.left:after {
    height: 3px;
    width: 125px;
}

h2.underline_pad {
    padding-bottom: 50px;
}

h2.small.underline_pad {
    padding-bottom: 30px;
}

h3 {
    font-family: 'Inter', 'Roboto Condensed', sans-serif;
    text-transform: uppercase;
    font-size: 15px;
    margin-bottom: 15px;
    color: #0A4D5E;
    font-weight: 700;
    letter-spacing: 0.5px;
}

p {
    font-size: 16px;
    line-height: 28px;
    color: #2D2B2E;
}

a {
    font-family: 'Inter', 'Roboto', sans-serif;
    color: #067080;
    font-weight: 600;
}

a:hover {
    color: #0A4D5E;
}

a.small {
    font-weight: bold;
}

.lead {
    font-size: 1.15rem;
    line-height: 1.7;
}

/* --- Layout helpers --- */

.normal_pad {
    padding: 65px 0;
}

.large_pad {
    padding: 125px 0 75px;
}

.bottom_pad {
    padding-bottom: 65px;
}

.grey_bg {
    background: #F5F0EA;
}

/* --- Hero banner (Home) --- */

.hero_banner {
    background: linear-gradient(135deg, #0A4D5E 0%, #0BC1DF 100%);
    padding: 100px 0 80px;
    position: relative;
}

.hero_banner .hero_content_container {
    position: relative;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

.hero_banner h1 {
    font-size: 44px;
    line-height: 1.15;
    color: #fefefe;
    margin-bottom: 20px;
}

.hero_banner .tagline {
    font-size: 20px;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    margin-bottom: 8px;
    font-style: italic;
}

.hero_banner .sub_line {
    font-size: 16px;
    color: rgba(255,255,255,0.75);
    margin-bottom: 30px;
}

.hero_ctas .btn {
    margin-bottom: 10px;
}

@media (max-width: 767px) {
    .hero_banner {
        padding: 60px 0 50px;
    }

    .hero_banner h1 {
        font-size: 32px;
    }

    .hero_banner .tagline {
        font-size: 17px;
    }
}

/* --- Owl Carousel hero slider (restored from MDNA) --- */

.hero {
    height: 550px;
    position: relative;
}

.hero_content_container {
    position: absolute;
    width: 45%;
    bottom: 0;
    left: 0;
    background: #fefefe;
    padding: 40px 80px 40px 40px;
}

.owl-carousel .owl-dots.disabled, .owl-carousel .owl-nav.disabled {
    margin-top: -68px;
    z-index: 5;
    position: absolute;
    left: 40%;
    display: block;
}

.owl-theme .owl-nav button.owl-prev, .owl-theme .owl-nav button.owl-next {
    padding: 9px 24px 15px 24px!important;
    background: #F5F0EA;
    border-radius: 0;
    font-size: 40px;
    color: #757376;
    line-height: 1;
}

.owl-theme .owl-nav button.owl-prev {
    margin-right: 0;
    margin-left: -10%;
}

.owl-theme .owl-nav button.owl-next {
    margin-left: 0;
}

.owl-theme .owl-nav [class*=owl-]:hover {
    background: #C25209;
    color: #fff;
    text-decoration: none;
}

@media (max-width: 991px) {
    .hero_content_container {
        width: 70%;
        max-width: 600px;
    }

    .owl-carousel .owl-dots.disabled, .owl-carousel .owl-nav.disabled {
        left: 60%;
    }
}

@media (max-width: 767px) {
    .hero_content_container {
        width: 90%;
        max-width: unset;
        margin-left: auto;
        margin-right: auto;
        left: calc(50% - 45%);
    }

    .owl-carousel .owl-dots.disabled, .owl-carousel .owl-nav.disabled {
        left: 65%;
    }
}

span.hero_content_label {
    position: absolute;
    top: -15px;
    background: #C25209;
    padding: 5px 13px;
    font-size: 12px;
    color: #fefefe;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero_content_container h1 {
    font-size: 34px;
    line-height: 40px;
}

a.hero_link {
    color: #067080;
    font-size: 14px;
}

a.hero_link:hover {
    color: #0A4D5E;
}

.owl-theme .owl-nav {
    margin-top: -69px;
    position: relative;
}

@media (max-width: 991px) {
    .owl-theme .owl-nav {
        margin-top: -69px;
        position: relative;
        margin-left: 46%;
    }
}

@media (max-width: 767px) {
    .owl-theme .owl-nav {
        display: none;
    }
}

/* --- Why Join icons (Home) --- */

.why_join_icon {
    color: #0BC1DF;
    margin-bottom: 20px;
}

.hp_segmentation {
    padding: 50px 50px 0;
}

@media (max-width: 767px) {
    .hp_segmentation {
        padding: 30px 15px 0;
    }
}

/* --- Membership hero header --- */

.membership_header {
    min-height: 400px;
    margin-bottom: 100px;
}

.grey_box {
    padding: 50px;
    background: #F5F0EA;
    margin-top: 100px;
    position: absolute;
}

p.small.cta {
    font-family: 'Inter', 'Roboto Condensed', sans-serif;
    font-size: 12px;
    font-weight: normal;
}

.teal {
    color: #0BC1DF;
}

.orange {
    color: #FF741F;
}

@media (max-width: 767px) {
    .grey_box {
        margin-top: 300px;
        position: relative;
    }

    .membership_header {
        margin-bottom: 320px;
    }
}

/* --- Launch banner --- */

.launch_banner {
    background: #0A4D5E;
    padding: 60px 0;
    color: #fefefe;
}

.launch_banner h2 {
    color: #fefefe;
    margin-bottom: 10px;
}

.launch_banner p {
    color: rgba(255,255,255,0.85);
    margin-bottom: 25px;
}

/* --- Buttons --- */

.btn-primary {
    color: #fff;
    background-color: #0A4D5E;
    border-color: #0A4D5E;
    font-family: 'Inter', 'Roboto Condensed', sans-serif;
    text-transform: uppercase;
    border-radius: 0;
    padding: 10px 50px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background-color: #067080;
    border-color: #067080;
}

.btn-secondary {
    color: #fefefe;
    background-color: #C25209;
    border-color: #C25209;
    border-radius: 0px;
    padding: 10px 30px;
    font-family: 'Inter', 'Roboto Condensed', sans-serif;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btn-secondary:hover {
    background-color: #A8470A;
    border-color: #A8470A;
    color: #fefefe;
}

.btn-secondary.btn-sm {
    color: #fefefe;
    background-color: #C25209;
    border-color: #C25209;
    border-radius: 0px;
    padding: 8px 20px;
    display: inline-block;
}

.btn-secondary.btn-sm:hover {
    background-color: #A8470A;
    border-color: #A8470A;
}

/* --- Blue box (membership CTA) --- */

.blue_box {
    background: #0A4D5E;
    padding: 60px 50px;
    color: #fefefe !important;
    border-radius: 2px;
}

.blue_box h2 {
    color: #fefefe;
}

.blue_box h2 span.sub_heading {
    color: #0BC1DF;
}

.blue_box p {
    color: rgba(255,255,255,0.9);
}

.blue_box .btn-primary {
    color: #fefefe;
    background-color: #C25209;
    border-color: #C25209;
}

.blue_box .btn-primary:hover {
    background-color: #A8470A;
    border-color: #A8470A;
}

/* --- Footer --- */

.footer {
    background: #0b4b5d;
    color: #fefefe;
    padding-left: 15px;
    padding-right: 15px;
}

.footer h3 {
    color: #F5F0EA;
}

.footer p {
    font-family: 'Inter', 'Roboto Condensed', sans-serif;
    font-size: 13px;
    font-weight: normal !important;
    margin-bottom: 10px;
    color: #fefefe;
}

.footer p a {
    color: rgba(255,255,255,0.8);
}

.footer p a:hover {
    color: #0BC1DF;
}

.footer_links a {
    display: block;
    font-family: 'Inter', 'Roboto Condensed', sans-serif;
    font-size: 13px;
    text-transform: uppercase;
    font-weight: normal !important;
    margin-bottom: 10px;
    color: #fefefe;
}

.footer_links a:hover {
    color: #0BC1DF;
}

.footer_links ul.nav li.nav-item a.nav-link {
    font-size: 20px;
    color: #0BC1DF;
    padding: 0px 7px;
}

.footer_links ul.nav li.nav-item a.nav-link:hover {
    color: #FF741F;
}

.footer .form-control {
    display: block;
    width: 100%;
    height: calc(1.5em + .75rem + 2px);
    padding: .375rem .75rem;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.5;
    color: #fefefe;
    background-color: transparent;
    background-clip: padding-box;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.25);
    border-radius: 0;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
    font-family: 'Inter', 'Roboto Condensed', sans-serif;
}

.footer .form-control:focus {
    color: #fefefe;
    background-color: transparent !important;
    border-color: #0BC1DF;
    outline: 0;
    box-shadow: none;
}

.footer .form-control::placeholder {
    color: rgba(255,255,255,0.4);
}

.footer .btn-primary {
    color: #fefefe;
    background-color: #C25209;
    border-color: #C25209;
}

.footer .btn-primary:hover {
    background-color: #A8470A;
    border-color: #A8470A;
}

.credits {
    padding: 20px 15px;
    background: #0b313b;
    color: #F5F0EA !important;
    font-size: 13px;
}

.credits p {
    color: #F5F0EA !important;
}

.credits a {
    color: #0BC1DF;
}

.credits a:hover {
    color: #0BC1DF;
}

/* --- Forms --- */

.site_form label {
    display: inline-block;
    margin-bottom: .5rem;
    width: 100%;
    font-family: 'Inter', 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #2D2B2E;
}

.site_form .form-control {
    display: block;
    width: 100%;
    height: calc(1.5em + .75rem + 2px);
    padding: .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #2D2B2E;
    background-color: #fefefe;
    border: 1px solid #D8C3A4;
    border-radius: 0;
    margin-top: 5px;
}

.site_form .form-control:focus {
    border-color: #0BC1DF;
    box-shadow: 0 0 0 2px rgba(11, 193, 223, 0.15);
}

.site_form .form-group {
    margin-bottom: 15px;
}

.site_form textarea.form-control {
    height: auto;
}

/* --- Newsletter signup --- */

.newsletter_signup .form-control {
    border: 1px solid #D8C3A4;
    border-radius: 0;
    height: calc(1.5em + .75rem + 2px);
    font-size: 15px;
}

.newsletter_signup .form-control:focus {
    border-color: #0BC1DF;
    box-shadow: 0 0 0 2px rgba(11, 193, 223, 0.15);
}

/* --- Social links --- */

.social_links a.nav-link {
    color: #067080;
}

.social_links a.nav-link:hover {
    color: #0A4D5E;
}

/* --- Misc --- */

.small, small {
    font-size: 90%;
    font-weight: 400;
    line-height: 22px;
}

img.footer_logo {
    max-height: 27px;
}

/* --- Event card styles --- */

p.event_date {
    font-family: 'Inter', 'Roboto', sans-serif;
    color: #C25209;
    font-size: 13px;
    text-transform: uppercase;
    font-weight: bold;
    line-height: 16px;
}

p.event_title {
    margin-bottom: 5px;
}

p.event_title a {
    font-family: 'Inter', 'Roboto Condensed', sans-serif;
    font-size: 18px;
    text-transform: uppercase;
    font-weight: normal;
    line-height: 1;
}

p.event_time {
    font-family: 'Inter', 'Roboto', sans-serif;
    color: #757376;
    font-size: 12px;
    line-height: 16px;
    margin-bottom: 2px;
}

p.event_location {
    font-family: 'Inter', 'Roboto', sans-serif;
    color: #757376;
    font-size: 12px;
    line-height: 16px;
}

img.hp_event_thumb {
    width: 125px;
    height: auto;
}

@media (max-width: 767px) {
    img.hp_event_thumb {
        width: 100%;
        height: auto;
    }
}

/* --- Member Directory --- */

.member_card {
    border: 1px solid #e5e5e5;
    padding: 25px;
    height: 100%;
    border-radius: 2px;
    display: flex;
    flex-direction: column;
}

.member_logo {
    height: 80px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.member_logo img {
    max-height: 80px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
}

.member_details {
    margin-top: auto;
}

h3.member_company {
    font-family: 'Inter', 'Roboto Condensed', sans-serif;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 3px;
}

p.member_industry {
    font-family: 'Inter', 'Roboto', sans-serif;
    color: #C25209;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 10px;
}

.member_details i {
    width: 16px;
    text-align: center;
    color: #757376;
    margin-right: 4px;
}

/* --- Homepage News & Events side-by-side --- */

.hp_news_events {
    padding: 0 50px;
}

.hp_news_events p {
    font-size: 80%;
}

.news_border {
    border-right: 1px solid #D8C3A4;
}

@media (max-width: 991px) {
    .news_border {
        border-right: none;
        padding-bottom: 65px;
    }

    .hp_news_events {
        padding: 0 15px;
    }
}

p.news_date {
    font-family: 'Inter', 'Roboto', sans-serif;
    color: #C25209;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
}

h3.news_title {
    font-family: 'Inter', 'Roboto', sans-serif;
    text-transform: none;
    font-size: 22px;
    font-weight: normal;
    line-height: 28px;
    color: #0A4D5E;
}

h3.news_title a {
    font-weight: normal !important;
    color: #0A4D5E;
}

h3.news_title a:hover {
    text-decoration: none;
    color: #067080;
}

p.news_byline {
    font-family: 'Inter', 'Roboto', sans-serif;
    color: #757376;
    font-size: 12px;
    line-height: 16px;
}

.news_list_item {
    border-bottom: 1px solid #E8E3DD;
}

a.news_list_image {
    display: block;
    margin-bottom: 20px;
}

a.news_list_image img {
    width: 100%;
    height: auto;
    border-radius: 2px;
}

h2.news_list_title {
    font-size: 24px;
    font-weight: normal;
    line-height: 30px;
}

h2.news_list_title a {
    font-weight: normal !important;
    color: #0A4D5E;
}

h2.news_list_title a:hover {
    text-decoration: none;
    color: #067080;
}

.hp_news_item {
    border-bottom: 1px solid #E8E3DD;
    margin-bottom: 20px;
}

.hp_news_item:last-child {
    border-bottom: none;
}

/* --- Empty state (news/events) --- */

.hp_empty_state {
    padding: 30px 0;
    text-align: center;
}

.hp_empty_state p {
    color: #5E5C5F;
    font-size: 15px;
}

.hp_empty_state i {
    color: #0BC1DF;
}

/* --- About page: mission pillars (reused from MDNA mission_list) --- */

.mission_list {
    border-left: 3px solid #0BC1DF;
    padding-left: 20px;
}

.mission_list h4 {
    font-size: 16px;
    font-family: 'Inter', 'Roboto', sans-serif;
    font-weight: 400;
    color: #2D2B2E;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* --- About page: numbered items (reused from MDNA ethics_list / ethics_code) --- */

h3.ethics_list {
    color: #0A4D5E;
    text-transform: none;
    font-family: 'Inter', 'Roboto', sans-serif;
    margin: 15px 0 30px;
    position: relative;
    font-size: 16px;
    font-weight: 700;
}

h3.ethics_list span:after {
    position: absolute;
    content: '';
    height: 1px;
    bottom: -12px;
    margin-left: 0;
    left: 0;
    width: 175px;
    background: #D8C3A4;
}

.ethics_code {
    margin-top: 15px;
}

/* --- About page: offset image block (reused from MDNA offset_img) --- */

.offset_img {
    position: relative;
    display: block;
}

.offset_img img {
    padding-left: 10%;
}

.offset_img:after {
    position: absolute;
    top: -25%;
    left: 0;
    width: 85%;
    height: 100%;
    background: #F5F0EA;
    content: '';
    z-index: -1;
}

/* --- Utility --- */

.grey {
    color: #5E5C5F !important;
}

/* --- Overlay animation (preserved from MDNA) --- */

.overlaymenu.active {
    animation: fadeintop 400ms cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
    -webkit-animation: fadeintop 400ms cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
}

@-webkit-keyframes fadeintop {
    0% { -webkit-transform: translateY(-10px); transform: translateY(-10px); opacity: 0; }
    100% { -webkit-transform: translateY(0); transform: translateY(0); opacity: 1; }
}

@keyframes fadeintop {
    0% { -webkit-transform: translateY(-10px); transform: translateY(-10px); opacity: 0; }
    100% { -webkit-transform: translateY(0); transform: translateY(0); opacity: 1; }
}

.blue_box .site_form label {
    color: #fefefe !important;
}
