/* Keep shared SVG icons visible on both light headers and dark footers. */
img.site-icon {
    display: inline-block;
    flex-shrink: 0;
    vertical-align: middle;
    opacity: 1;
}

.social-icon-x {
    display: inline-block;
    vertical-align: -0.125em;
}

/* Use one readable text color throughout the footer. */
#footer,
#footer p,
#footer a,
#footer label,
#footer h5,
#footer li {
    color: #dcdcdc !important;
    opacity: 1;
}

#footer i,
#footer .social-icon-x {
    color: #c69d66 !important;
}

#footer a:not(.btn),
#footer a:not(.btn):hover,
#footer a:not(.btn):focus {
    color: #dcdcdc !important;
}


/* Shared logo sizing; a white silhouette stays legible on the dark footer. */
.brand-logo {
    display: block;
    max-width: 100%;
    object-fit: contain;
}
#header .header-logo .brand-logo-header {
    width: 210px;
    height: 70px;
}
#footer .brand-logo-footer {
    width: 250px;
    height: auto;
    filter: brightness(0) invert(1);
}
@media (max-width: 575px) {
    #header .header-logo .brand-logo-header {
        width: 190px;
        height: 64px;
    }
}

/* Homepage consultation section. */
#consultation { background: #f5f2ed; padding: 72px 0; }
#consultation #consultation-title { color: #292929; }
#consultation .consultation-eyebrow { color: #c69d66; font-weight: 600; letter-spacing: .15em; }
#consultation .consultation-intro { color: #4c4c4c; }
#consultation .consultation-link { color: #805a2c; text-decoration: underline; text-underline-offset: 4px; }
#consultation .consultation-card { background: #fff; border-top: 4px solid #c69d66; border-radius: 8px; padding: 32px; box-shadow: 0 8px 28px rgba(60, 45, 25, .08); }
#consultation .form-label { color: #292929; font-weight: 600; }
#consultation .form-control { background: #f7f7f7; border: 1px solid #b8b8b8; color: #212529; }
#consultation .form-control::placeholder { color: #666; opacity: 1; }
#consultation .form-control:focus { border-color: #9c713a; outline: 2px solid #c69d66; outline-offset: 2px; }
#consultation input[type="submit"] { white-space: normal; max-width: 100%; }
@media (max-width: 575px) {
    #consultation { padding: 40px 0; }
    #consultation .consultation-card { padding: 24px 18px; }
}

/* Preserve image proportions and avoid full-width grid gutters escaping the page. */
img.content-photo, img.team-photo { max-width: 100%; height: auto; }
.attorney-grid { width: 100%; max-width: 1140px; margin-inline: auto; padding-inline: 12px; }
/* Each slide has a single image layer, behind its text. */
.home-hero .owl-item .hero-slide-image {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.home-hero .owl-item > .container { position: relative; z-index: 1; }
@media (max-width: 767px) {
    img.team-photo {
        display: block;
        width: 100%;
        max-width: 340px;
        height: auto;
        object-fit: contain;
        margin-inline: auto;
    }
    img.content-photo { display: block; width: 100%; height: auto; }
    .appear-animation { opacity: 1 !important; transform: none !important; animation: none !important; }
    .home-hero { height: calc(clamp(180px, 56.25vw, 320px) + 460px) !important; }
    .home-hero .owl-item {
        background-image: none !important;
        background-color: #f5f2ed;
    }
    .home-hero .owl-item .hero-slide-image {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: clamp(180px, 56.25vw, 320px);
        object-fit: contain;
        background: #ece7df;
    }
    .home-hero .owl-item > .container {
        padding-top: calc(clamp(180px, 56.25vw, 320px) + 24px);
        padding-bottom: 40px;
    }
    .home-hero .custom-font-slider-1 { font-size: 32px !important; line-height: 1.15 !important; }
    .home-hero .custom-font-slider-2 { font-size: 14px !important; }
    .home-hero .text-light, .home-hero .text-dark, .home-hero h2, .home-hero p { color: #292929 !important; }
    .home-hero .d-flex.align-items-center { flex-wrap: wrap; gap: 12px; }
    .home-hero .btn { margin-left: 0 !important; padding-inline: 16px !important; }
    .home-hero .owl-dots { bottom: 8px; margin-bottom: 0 !important; }
}
