/* Sound Benefits - Custom CSS */
/* Color Palette:
   Teal:     #2B6B6B (headings)
   Maroon:   #8B2332 (CTAs, accents)
   Gold:     #D4A843 (accents, from logo)
   Cream:    #F5F0EB (warm backgrounds)
   Tan:      #EDE5DA (alternate sections)
   Dark:     #2C2C2C (footer, overlays)
   Body:     #3D3D3D (text)
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Open+Sans:wght@300;400;600;700&display=swap');

body {
    font-family: 'Open Sans', sans-serif;
    color: #3D3D3D;
    font-size: 16px;
    line-height: 1.6;
}

h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', serif;
    color: #2B6B6B;
}

/* === HEADER OVERRIDES === */
header {
    background-color: transparent !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    border-bottom: none !important;
    height: 80px !important;
}

/* Interior pages: dark header so white nav is visible */
body:not(.home) header {
    background: linear-gradient(to bottom right, #c6b077, #9a7d3a) !important;
}

body.scroll header {
    height: 70px !important;
    background: linear-gradient(to bottom right, #c6b077, #9a7d3a) !important;
}

div.logo {
    top: 5px !important;
    left: 20px !important;
}

div.logo img {
    max-height: 65px !important;
}

body.scroll div.logo img {
    max-height: 55px !important;
}

/* Nav */
nav {
    margin-top: 25px !important;
}

body.scroll nav {
    margin-top: 20px !important;
}

nav ul li a:link, nav ul li a:visited {
    color: #FFFFFF !important;
}

nav ul > li:hover > a:link, nav ul > li:hover > a:visited,
nav ul > li.nav_active > a:link, nav ul > li.nav_active > a:visited {
    color: #FFFFFF !important;
    text-decoration: underline !important;
    text-underline-offset: 4px !important;
    text-decoration-color: #D4A843 !important;
}

nav ul li a span {
    border-right-color: rgba(255,255,255,0.2) !important;
}

nav ul ul {
    background-color: #2C2C2C !important;
    border-top-color: #D4A843 !important;
}

nav > ul > li > a[aria-haspopup="true"]::after {
    border-top-color: #D4A843 !important;
}

/* Mobile nav */
.top-bar, .middle-bar, .bottom-bar {
    background-color: #FFFFFF !important;
}

.toggle-name {
    color: #FFFFFF !important;
}

#mobile_phone a {
    color: #FFFFFF !important;
}

#cssmenu {
    background-color: rgba(44, 44, 44, 0.95) !important;
}

#cssmenu > ul > li > a {
    color: #FFFFFF !important;
}

#content_container {
    margin-top: 80px !important;
}

body.announcements #content_container {
    margin-top: 80px !important;
}

/* === INTERIOR PAGES === */
body:not(.home) #content {
    padding: 40px 30px !important;
    max-width: 1100px;
    margin: 0 auto;
}

/* Interior page banner */
.sb-page-banner {
    text-align: center;
    padding: 10px 20px 30px;
    margin: 0 0 30px;
    border-bottom: 3px solid #D4A843;
}

.sb-page-banner h1 {
    font-family: 'Playfair Display', serif;
    color: #2B6B6B;
    font-size: 2.4em;
    margin: 0;
}

/* === HOME PAGE === */
body.home #content {
    padding: 0 !important;
}

/* Hero Section */
.sb-hero {
    position: relative;
    background: linear-gradient(to bottom right, #c6b077, #563c15);
    color: #FFFFFF;
    text-align: center;
    margin-top: -80px;
    padding: 200px 20px 120px;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Full-width photo break between sections */
.sb-photo-break {
    width: 100%;
    line-height: 0;
}

.sb-photo-break img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 500px;
}

.sb-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3em;
    color: #FFFFFF;
    margin-bottom: 30px;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.sb-hero .sb-btn {
    margin-top: 10px;
}

/* Buttons */
.sb-btn {
    display: inline-block;
    background-color: #8B2332;
    color: #FFFFFF !important;
    padding: 14px 32px;
    font-size: 0.95em;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none !important;
    letter-spacing: 1.5px;
    border: 2px solid #8B2332;
    transition: all 0.3s ease;
}

.sb-btn:hover {
    background-color: #6E1B28;
    border-color: #6E1B28;
    text-decoration: none !important;
}

.sb-btn-outline {
    background-color: transparent;
    border: 2px solid #8B2332;
    color: #8B2332 !important;
}

.sb-btn-outline:hover {
    background-color: #8B2332;
    color: #FFFFFF !important;
}

/* Sections */
.sb-section {
    padding: 70px 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.sb-section-full {
    padding: 70px 20px;
    width: 100%;
}

.sb-section-cream {
    background-color: #F5F0EB;
}

.sb-section-tan {
    background-color: #EDE5DA;
}

.sb-section-dark {
    background-color: #2C2C2C;
    color: #FFFFFF;
}

.sb-section-gold {
    background: linear-gradient(to bottom right, #c6b077, #563c15);
    color: #FFFFFF;
}

.sb-section-title {
    text-align: center;
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #999;
    margin-bottom: 5px;
    font-family: 'Open Sans', sans-serif;
}

.sb-section h2 {
    text-align: center;
    font-size: 2.2em;
    margin-bottom: 10px;
}

.sb-section-full h2 {
    text-align: center;
    font-size: 2.2em;
    margin-bottom: 10px;
}

.sb-section h3 {
    font-size: 1.4em;
    margin-bottom: 8px;
}

.sb-section-subtitle {
    text-align: center;
    font-style: italic;
    color: #777;
    margin-bottom: 30px;
    font-size: 1.05em;
}

.sb-section p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.sb-divider {
    width: 60px;
    height: 3px;
    background-color: #D4A843;
    margin: 15px auto 30px;
}

.sb-learn-more {
    color: #D4A843;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 0.95em;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.sb-learn-more:hover {
    color: #B8922E;
    text-decoration: none !important;
}

/* Two Column Grid */
.sb-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1000px;
    margin: 30px auto 0;
}

.sb-col-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    margin-bottom: 20px;
}

.sb-two-col h3 {
    color: #2B6B6B;
    font-size: 1.3em;
    margin-bottom: 10px;
}

.sb-two-col ul {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0;
}

.sb-two-col ul li {
    padding: 4px 0;
    padding-left: 20px;
    position: relative;
}

.sb-two-col ul li::before {
    content: "\2022";
    color: #D4A843;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Agency Cards */
.sb-agencies {
    max-width: 1100px;
    margin: 0 auto;
}

.sb-agency-card {
    background: #FFFFFF;
    border: 1px solid #E8E2DA;
    padding: 30px;
    margin-bottom: 25px;
    border-left: 4px solid #D4A843;
}

.sb-agency-card h3 {
    color: #2B6B6B;
    font-size: 1.3em;
    margin-bottom: 5px;
}

.sb-agency-card .sb-agency-founded {
    font-size: 0.85em;
    color: #999;
    margin-bottom: 12px;
}

.sb-agency-card p {
    max-width: none;
    margin: 0;
}

/* Vision Quote (inside gold section) */
.sb-vision-quote {
    text-align: center;
    padding: 60px 40px 50px;
}

.sb-vision-quote blockquote {
    font-family: 'Playfair Display', serif;
    font-size: 1.8em;
    font-weight: 400;
    line-height: 1.5;
    max-width: 900px;
    margin: 0 auto;
    border: none;
    color: #FFFFFF;
    padding: 0;
}

.sb-vision-quote blockquote::before,
.sb-vision-quote blockquote::after {
    display: none;
}

/* Office List */
.sb-office-list {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 20px;
}

.sb-office-item {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 40px;
}

.sb-office-item:last-child {
    margin-bottom: 0;
}

.sb-office-item img {
    width: 280px;
    height: 200px;
    object-fit: cover;
    flex-shrink: 0;
}

.sb-office-info {
    flex: 1;
}

.sb-office-info h3 {
    color: #FFFFFF;
    font-size: 1.2em;
    margin-bottom: 5px;
}

.sb-office-info p {
    margin: 2px 0;
    font-size: 0.95em;
    color: rgba(255,255,255,0.9);
    max-width: none;
}

.sb-office-info .sb-phone {
    margin-top: 8px;
}

.sb-office-info .sb-phone a {
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 600;
}

.sb-office-info .sb-hours {
    font-size: 0.85em;
    color: rgba(255,255,255,0.7);
    margin-top: 3px;
}

/* Location Cards (contact page) */
.sb-locations {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 30px auto 0;
}

.sb-location-card {
    text-align: center;
    padding: 25px;
    background: #F5F0EB;
}

.sb-location-card h3 {
    color: #2B6B6B;
    font-size: 1.2em;
    margin-bottom: 10px;
}

.sb-location-card p {
    margin: 3px auto;
    font-size: 0.95em;
    color: #555;
    max-width: none;
}

.sb-location-card .sb-phone {
    margin-top: 10px;
}

.sb-location-card .sb-phone a {
    color: #2B6B6B;
    text-decoration: none;
    font-weight: 600;
}

.sb-location-card .sb-hours {
    font-size: 0.85em;
    color: #888;
    margin-top: 5px;
}

/* Contact Form Area */
.sb-contact-form {
    max-width: 700px;
    margin: 30px auto 0;
    text-align: center;
}

.sb-contact-form input[type="text"],
.sb-contact-form input[type="email"],
.sb-contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #D5CFC7;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95em;
    margin-bottom: 15px;
    background: #FAFAF8;
}

.sb-contact-form .sb-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.sb-contact-form textarea {
    height: 120px;
    resize: vertical;
}

/* Footer Override */
#footer-logo {
    text-align: center;
    margin-bottom: 20px;
}
#footer-logo img {
    max-width: 240px;
    height: auto;
}
footer {
    background-color: #2C2C2C !important;
    color: #AAAAAA !important;
    padding: 50px 30px 30px !important;
}

footer #company_name span {
    color: #FFFFFF !important;
    font-family: 'Playfair Display', serif;
    font-size: 1.2em;
}

footer #company_address span {
    color: #AAAAAA !important;
}

footer a:link, footer a:visited {
    color: #AAAAAA !important;
}

footer a:hover {
    color: #D4A843 !important;
}

#social-footer a {
    color: #AAAAAA !important;
}

#social-footer a:hover {
    color: #D4A843 !important;
}

#copyright {
    color: #777 !important;
    margin-top: 15px;
}

/* Back to top */
#back-top span {
    color: #8B2332 !important;
}

/* === WHO WE ARE (Interior) === */
.sb-interior {
    padding: 20px 0;
}

.sb-interior h2 {
    text-align: left;
    font-size: 1.8em;
    margin-top: 40px;
}

.sb-interior h2:first-child {
    margin-top: 0;
}

.sb-values-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin: 20px 0;
}

.sb-value-item h4 {
    color: #2B6B6B;
    font-family: 'Playfair Display', serif;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.sb-value-item p {
    max-width: none;
    margin: 0;
    font-size: 0.95em;
}

/* Advisor Cards */
.sb-advisor {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #E8E2DA;
}

.sb-advisor:last-child {
    border-bottom: none;
}

.sb-advisor h4 {
    color: #2B6B6B;
    font-family: 'Playfair Display', serif;
    font-size: 1.2em;
    margin-bottom: 3px;
}

.sb-advisor .sb-advisor-title {
    font-style: italic;
    color: #888;
    font-size: 0.9em;
    margin-bottom: 10px;
}

/* === SERVICES (Interior) === */
.sb-service-block {
    margin-bottom: 40px;
}

.sb-service-block h3 {
    color: #2B6B6B;
    border-bottom: 2px solid #D4A843;
    padding-bottom: 8px;
    display: inline-block;
}

.sb-service-block ul {
    list-style: none !important;
    padding-left: 0 !important;
}

.sb-service-block ul li {
    padding: 5px 0 5px 22px;
    position: relative;
}

.sb-service-block ul li::before {
    content: "\2713";
    color: #2B6B6B;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* CTA Section */
.sb-cta {
    text-align: center;
    padding: 50px 20px;
}

.sb-cta h2 {
    margin-bottom: 5px;
}

.sb-cta p {
    margin-bottom: 25px;
}

/* === RESPONSIVE === */
@media screen and (max-width: 960px) {
    header {
        height: 70px !important;
    }

    div.logo img, body.scroll div.logo img {
        max-height: 50px !important;
    }

    #content_container {
        margin-top: 70px !important;
    }

    .sb-hero h1 {
        font-size: 2.2em;
    }

    .sb-hero {
        padding: 80px 20px;
        min-height: 400px;
    }

    .sb-two-col {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .sb-vision-quote {
        padding: 40px 20px 30px;
    }

    .sb-vision-quote blockquote {
        font-size: 1.3em;
    }

    .sb-office-item {
        flex-direction: column;
    }

    .sb-office-item img {
        width: 100%;
        height: 200px;
    }

    .sb-values-grid {
        grid-template-columns: 1fr;
    }

    .sb-locations {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    body:not(.home) #content {
        padding: 20px 15px !important;
    }

    .sb-page-banner {
        margin: -20px -15px 30px;
    }

    .sb-contact-form .sb-form-row {
        grid-template-columns: 1fr;
    }

    #cssmenu {
        top: 70px !important;
    }
}

@media screen and (max-width: 600px) {
    .sb-hero h1 {
        font-size: 1.8em;
    }

    .sb-hero {
        padding: 60px 15px;
        min-height: 350px;
    }

    .sb-section, .sb-section-full {
        padding: 40px 15px;
    }

    .sb-vision-quote {
        padding: 30px 15px 20px;
    }

    .sb-vision-quote blockquote {
        font-size: 1.1em;
    }
}
