/* =============================================================================
   MASTER BRAND OVERRIDE — Navy (#0B1D3A) + Gold (#C9A84C)
   MERGED: Theme-specific dw- selectors + Nuclear generic selectors
   Apply to ALL darylwizinsky.com subdomains via Additional CSS
   ============================================================================= */

/* ── CSS Variables Override ── */
:root {
    --color-teal: #C9A84C !important;
    --dw-teal: #C9A84C !important;
    --primary: #0B1D3A !important;
    --primary-dark: #071428 !important;
    --accent: #C9A84C !important;
    --accent-hover: #D4B85E !important;
    --accent-dark: #B8963E !important;
    --teal: #C9A84C !important;
    --turquoise: #C9A84C !important;
    --coral: #C9A84C !important;
    --cta-color: #C9A84C !important;
    --link-color: #C9A84C !important;
    --button-bg: #C9A84C !important;
    --button-hover: #D4B85E !important;
}

/* ── THEME-SPECIFIC: Header / Nav (dw- classes) ── */
.has-hero .dw-link:hover,
.no-hero .dw-link:hover { color: #C9A84C !important; }
#dw-header .dw-link[style*="4899a8"],
#dw-header .dw-link[style*="background"] { background: #C9A84C !important; color: #0B1D3A !important; }
.dw-dropdown a:hover { color: #C9A84C !important; }
.dw-dropdown-county-head { border-top-color: #C9A84C !important; }
.dw-mobile-top:hover { color: #C9A84C !important; }
.dw-mobile-sub a:hover { color: #C9A84C !important; }
.dw-mobile-cta { background: #C9A84C !important; color: #0B1D3A !important; }

/* ── THEME-SPECIFIC: Announcement Bar ── */
.dw-announcement { background: linear-gradient(135deg, #C9A84C 0%, #A68A35 100%) !important; }
.dw-announcement a { color: #0B1D3A !important; }

/* ── ALL Buttons — Theme-specific + Generic ── */
.btn-primary,
.dw-btn,
.dw-cta .dw-btn,
a.btn-primary,
button.btn-primary,
input[type="submit"].btn-primary,
.btn-accent,
.btn-teal,
.btn-cta,
.button-primary,
.cta-button,
.wp-block-button__link,
.wp-element-button,
button.primary,
a.button-primary,
input[type="submit"],
.contact-btn,
.hero-cta,
.hero-btn,
.community-cta,
.search-btn,
.valuation-btn,
.get-value-btn,
.sidebar .btn,
.sidebar a.btn,
.widget a.btn,
.widget .button,
.sidebar .button { background-color: #C9A84C !important; border-color: #C9A84C !important; color: #0B1D3A !important; }

.btn-primary:hover,
.dw-btn:hover,
.dw-cta .dw-btn:hover,
a.btn-primary:hover,
.btn-accent:hover,
.btn-teal:hover,
.btn-cta:hover,
.button-primary:hover,
.cta-button:hover,
.wp-block-button__link:hover,
.wp-element-button:hover,
button.primary:hover,
a.button-primary:hover,
input[type="submit"]:hover,
.hero-cta:hover,
.hero-btn:hover { background-color: #D4B85E !important; border-color: #D4B85E !important; color: #0B1D3A !important; }

.dw-readmore:hover { background-color: #C9A84C !important; border-color: #C9A84C !important; }

/* ── THEME-SPECIFIC: Cards ── */
.dw-card-title a:hover { color: #C9A84C !important; }
.dw-cat-list li a:hover { color: #C9A84C !important; }

/* ── THEME-SPECIFIC: Pagination ── */
.dw-pagination .current { border-bottom-color: #C9A84C !important; color: #C9A84C !important; }
.dw-pagination a.page-numbers:hover { color: #C9A84C !important; }
.page-numbers.current { background: #C9A84C !important; color: #0B1D3A !important; border-color: #C9A84C !important; }

/* ── THEME-SPECIFIC: Post Content Accents ── */
.post-card-category,
.post-card-title a:hover,
.dw-breadcrumb a:hover,
.read-more-link,
.dw-read-more,
.dw-author-link:hover,
.dw-tag-link:hover,
.dw-share-btn:hover { color: #C9A84C !important; }
blockquote { border-left-color: #C9A84C !important; }

/* ── THEME-SPECIFIC: Footer ── */
.dw-footer-rule,
.dw-footer-divider { background: linear-gradient(90deg, transparent 0%, #C9A84C 20%, #C9A84C 80%, transparent 100%) !important; }
.dw-footer-heading::after { background: #C9A84C !important; }
.dw-footer-link:hover,
.dw-footer-email:hover,
.dw-footer-bottom-links a:hover { color: #C9A84C !important; }
.dw-footer-social a:hover { border-color: #C9A84C !important; color: #C9A84C !important; }
.dw-footer-cta-btn { background: #C9A84C !important; color: #0B1D3A !important; }
.dw-footer-cta-btn:hover { background: #D4B85E !important; }

/* ── THEME-SPECIFIC: Sidebar ── */
.dw-sidebar-widget a:hover,
.widget a:hover { color: #C9A84C !important; }

/* ── Sidebar Explore Communities widget inline teal ── */
div[style*="border-top:3px solid #4db8ac"] { border-top-color: #C9A84C !important; }
span[style*="color:#4db8ac"] { color: #C9A84C !important; }
span[style*="background:rgba(77,184,172"] { background: rgba(201,168,76,0.15) !important; color: #C9A84C !important; }
a[style*="color:#4db8ac"],
a[style*="border:1px solid rgba(77,184,172"] { color: #C9A84C !important; border-color: rgba(201,168,76,0.4) !important; }
div[style*="background:linear-gradient(90deg,transparent,#4db8ac,transparent)"] { background: linear-gradient(90deg,transparent,#C9A84C,transparent) !important; }

/* ── THEME-SPECIFIC: Community Pages ── */
.community-hero .btn-primary,
.community-hero-cta,
.community-stats .stat-value,
.community-highlight { color: #C9A84C !important; }

/* ── THEME-SPECIFIC: Sell Page ── */
.dw-sell-eyebrow { color: #C9A84C !important; }
.dw-sell-hero h1 span { color: #C9A84C !important; }
.dw-sell-btn-primary { background: #C9A84C !important; color: #0B1D3A !important; }
.dw-sell-btn-primary:hover { background: #D4B85E !important; }
.dw-sell-trust-stat-num { color: #C9A84C !important; }
.dw-sell-step-num { background: #C9A84C !important; color: #0B1D3A !important; }
.dw-sell-card:hover { border-color: #C9A84C !important; }
.dw-sell-faq-q:hover { color: #C9A84C !important; }
.dw-calc-field input:focus,
.dw-calc-field select:focus { border-color: #C9A84C !important; box-shadow: 0 0 0 3px rgba(201,168,76,0.15) !important; }

/* ── Outline / secondary buttons ── */
.dw-btn-outline,
.btn-outline { border-color: #C9A84C !important; color: #C9A84C !important; }
.dw-btn-outline:hover,
.btn-outline:hover { background: #C9A84C !important; color: #0B1D3A !important; }

/* ── Badges & Tags ── */
.dw-badge,
.dw-tag { background: rgba(201,168,76,0.12) !important; color: #C9A84C !important; }

/* ── School grade badges — keep navy ── */
.school-grade-badge,
span[style*="background:#1a3a6e"] { background: #0B1D3A !important; }

/* ── NUCLEAR: Override ANY element with teal/turquoise inline styles ── */
*[style*="background-color: #00BFA5"],
*[style*="background-color: #26A69A"],
*[style*="background-color: #009688"],
*[style*="background-color: #00897B"],
*[style*="background-color: #00796B"],
*[style*="background-color: #4DB6AC"],
*[style*="background-color: #80CBC4"],
*[style*="background-color: #009B8D"],
*[style*="background-color: #1A8F85"],
*[style*="background-color: #E8735A"],
*[style*="background-color: #FF6B4A"],
*[style*="background-color: rgb(0, 191, 165)"],
*[style*="background-color: rgb(38, 166, 154)"],
*[style*="background-color: rgb(0, 150, 136)"],
*[style*="background: #00BFA5"],
*[style*="background: #26A69A"],
*[style*="background: #009688"],
*[style*="background: #009B8D"],
*[style*="background-color: #1B9AAA"],
*[style*="background: #1B9AAA"],
*[style*="background-color: #4899a8"],
*[style*="background: #4899a8"],
*[style*="background-color: #4db8ac"],
*[style*="background: #4db8ac"] {
    background-color: #C9A84C !important;
    background: #C9A84C !important;
}

/* ── Top Header / Announcement Bar (generic) ── */
.top-bar,
.announcement-bar,
.header-top,
.promo-bar,
.valuation-bar {
    background-color: #C9A84C !important;
    color: #fff !important;
}

.top-bar a,
.announcement-bar a,
.header-top a,
.promo-bar a,
.valuation-bar a {
    color: #fff !important;
}

/* ── Navigation (generic) ── */
.nav-menu .contact-btn,
.main-nav .contact-btn,
nav .contact-btn,
.header .contact-btn,
a[href*="contact"].btn,
a[href*="contact"].button,
.nav-cta,
.menu-contact {
    background-color: #C9A84C !important;
    border-color: #C9A84C !important;
    color: #0B1D3A !important;
}

/* ── Community Hero (generic) ── */
.community-hero,
.hero-section,
.page-hero,
.entry-hero,
.community-header {
    background-color: #0B1D3A !important;
}

.community-hero .btn,
.community-hero a.btn,
.community-hero .button,
.community-hero a.button,
.hero-section .btn,
.hero-section a.btn,
.hero-section .button,
.page-hero .btn,
.page-hero a.btn,
.entry-hero .btn,
.entry-hero a.btn,
.community-header .btn,
.community-header a.btn {
    background-color: #C9A84C !important;
    border-color: #C9A84C !important;
    color: #0B1D3A !important;
}

.community-hero .btn:hover,
.hero-section .btn:hover,
.page-hero .btn:hover {
    background-color: #D4B85E !important;
    border-color: #D4B85E !important;
}

/* ── Sidebar (generic) ── */
.sidebar .widget,
.widget-area .widget,
aside .widget {
    border-color: #C9A84C !important;
}

.sidebar .widget-title,
.widget-area .widget-title,
aside .widget-title {
    color: #0B1D3A !important;
    border-bottom-color: #C9A84C !important;
}

.sidebar a,
.widget-area a,
aside a {
    color: #C9A84C !important;
}

.sidebar a:hover,
.widget-area a:hover,
aside a:hover {
    color: #D4B85E !important;
}

/* ── Get Your Value Button (Blog Sidebar) ── */
.sidebar a[href*="valuation"],
.sidebar a[href*="home_calc"],
.sidebar a[href*="home-value"],
.sidebar .valuation-btn,
.sidebar .get-value,
.widget a[href*="valuation"],
.widget a[href*="home_calc"],
.widget a[href*="home-value"] {
    background-color: #C9A84C !important;
    border-color: #C9A84C !important;
    color: #fff !important;
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
}

/* ── Community Cards / Grid ── */
.community-card,
.county-card,
.neighborhood-card {
    border-color: #C9A84C !important;
}

.community-card:hover,
.county-card:hover,
.neighborhood-card:hover {
    border-color: #D4B85E !important;
    box-shadow: 0 4px 20px rgba(201, 168, 76, 0.2) !important;
}

.community-card .badge,
.county-card .badge,
.county-badge {
    background-color: #0B1D3A !important;
    color: #C9A84C !important;
}

/* ── County Page Headings ── */
.county-heading,
.community-heading,
h1.page-title,
.archive-title {
    color: #0B1D3A !important;
}

/* ── Footer (generic) ── */
footer,
.site-footer,
.footer-main,
#colophon {
    background-color: #0B1D3A !important;
}

footer a,
.site-footer a,
.footer-main a {
    color: #C9A84C !important;
}

footer a:hover,
.site-footer a:hover,
.footer-main a:hover {
    color: #D4B85E !important;
}

/* ── Content Links ── */
.entry-content a,
.post-content a,
article a,
.page-content a {
    color: #C9A84C !important;
}

.entry-content a:hover,
.post-content a:hover,
article a:hover,
.page-content a:hover {
    color: #D4B85E !important;
}

/* ── Breadcrumbs ── */
.breadcrumb a,
.breadcrumbs a,
nav.breadcrumb a {
    color: #C9A84C !important;
}

/* ── Form Elements ── */
input:focus,
textarea:focus,
select:focus {
    border-color: #C9A84C !important;
    box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.2) !important;
}

/* ── Stats/Numbers ── */
.stat-number,
.stats-number,
.counter-number {
    color: #C9A84C !important;
}

/* ── Testimonial Stars ── */
.star,
.stars,
.rating {
    color: #C9A84C !important;
}

/* ── Tags / Badges (generic) ── */
.tag,
.badge,
.label-primary,
.category-badge {
    background-color: #C9A84C !important;
    color: #fff !important;
}

/* ── Selection Color ── */
::selection {
    background-color: #C9A84C !important;
    color: #fff !important;
}

/* ── Scrollbar ── */
::-webkit-scrollbar-thumb {
    background-color: #C9A84C !important;
}

/* ── CATCH-ALL: Inline style attribute selectors ── */
a[style*="#00BFA5"],
a[style*="#26A69A"],
a[style*="#009688"],
a[style*="#009B8D"],
a[style*="#1A8F85"],
a[style*="#4DB6AC"],
a[style*="#1B9AAA"],
a[style*="#4899a8"],
a[style*="#4db8ac"],
button[style*="#00BFA5"],
button[style*="#26A69A"],
button[style*="#009688"],
button[style*="#1B9AAA"],
button[style*="#4899a8"],
button[style*="#4db8ac"],
div[style*="background-color: #00BFA5"],
div[style*="background-color: #26A69A"],
div[style*="background-color: #009688"],
div[style*="background-color: #1B9AAA"],
div[style*="background-color: #4899a8"],
div[style*="background-color: #4db8ac"],
span[style*="#00BFA5"],
span[style*="#26A69A"],
span[style*="#009688"],
span[style*="#1B9AAA"],
span[style*="#4899a8"],
span[style*="#4db8ac"] {
    background-color: #C9A84C !important;
    border-color: #C9A84C !important;
    color: #fff !important;
}

/* ── Logo Background Fix ── */
.site-logo img,
.custom-logo,
.header-logo img,
.navbar-brand img,
header img[src*="Logo"],
header img[src*="logo"],
img.custom-logo-link,
a.custom-logo-link img,
img[src*="White-Daryl-LPT"] {
    background: transparent !important;
    background-color: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: none !important;
    mix-blend-mode: normal !important;
}

/* =============================================================================
   ADDITIONAL NUCLEAR OVERRIDES — v1.0.3 (Feb 2026)
   ============================================================================= */

/* ── NUCLEAR: Force gold on ANY element with color/bg matching teal ── */
[style*="color:#00BFA5"],
[style*="color:#26A69A"],
[style*="color:#009688"],
[style*="color:#009B8D"],
[style*="color:#4DB6AC"],
[style*="color:#1B9AAA"],
[style*="color:#4899a8"],
[style*="color:#4db8ac"],
[style*="color: #00BFA5"],
[style*="color: #26A69A"],
[style*="color: #009688"],
[style*="color: #009B8D"],
[style*="color: #4DB6AC"],
[style*="color: #4db8ac"] {
    color: #C9A84C !important;
}

/* ── NUCLEAR: Force navy on ANY dark background override ── */
[style*="background-color:#1a2332"],
[style*="background-color:#1a3a6e"],
[style*="background:#1a2332"],
[style*="background:#1a3a6e"],
[style*="background-color: #1a2332"],
[style*="background-color: #1a3a6e"],
[style*="background: #1a2332"],
[style*="background: #1a3a6e"],
[style*="background-color:#333"],
[style*="background-color:#222"],
[style*="background-color:#111"],
[style*="background: #333"],
[style*="background: #222"] {
    background-color: #0B1D3A !important;
    background: #0B1D3A !important;
}

/* ── Contact button in nav — extra specificity ── */
#dw-header a[href*="contact"],
nav a[href*="contact"],
.main-nav a[href*="contact"],
header a[href*="contact"],
.nav-links a[href*="contact"],
a.nav-cta,
.nav-item.nav-cta,
a[class*="contact"],
.menu-item a[href*="contact"] {
    background-color: #C9A84C !important;
    border-color: #C9A84C !important;
    color: #0B1D3A !important;
}
#dw-header a[href*="contact"]:hover,
nav a[href*="contact"]:hover,
.main-nav a[href*="contact"]:hover,
a.nav-cta:hover,
.nav-item.nav-cta:hover {
    background-color: #D4B85E !important;
    border-color: #D4B85E !important;
    color: #0B1D3A !important;
}

/* ── Get Your Value / Home Valuation buttons — extra targeting ── */
a[href*="home-value"],
a[href*="home_calc"],
a[href*="valuation"],
a[href*="home-valuation"],
button[class*="value"],
button[class*="valuation"],
.get-value-btn,
.home-value-btn,
.valuation-btn,
input[value*="value" i],
input[value*="valuation" i] {
    background-color: #C9A84C !important;
    border-color: #C9A84C !important;
    color: #0B1D3A !important;
}

/* ── Sidebar widget headers and borders ── */
.widget h2,
.widget h3,
.widget h4,
.sidebar h2,
.sidebar h3,
.sidebar h4,
aside h2,
aside h3,
aside h4,
.widget-title {
    color: #0B1D3A !important;
}
.widget,
.sidebar .widget,
aside .widget {
    border-top-color: #C9A84C !important;
}
.widget::before,
.sidebar .widget::before {
    background-color: #C9A84C !important;
}

/* ── Community card badges/tags — force navy+gold ── */
.community-card .badge,
.community-card .tag,
.community-card span[class*="badge"],
.county-card .badge,
.county-card .tag,
.dw-badge,
.community-type-badge,
.featured-badge,
span.badge,
.card-badge {
    background-color: #0B1D3A !important;
    color: #C9A84C !important;
    border-color: #0B1D3A !important;
}

/* ── Hero section backgrounds — force navy ── */
.community-hero,
.hero-section,
.page-hero,
.entry-hero,
.sell-hero,
.dw-sell-hero,
[class*="hero"] {
    background-color: #0B1D3A !important;
}

/* ── All gradient backgrounds ── */
[style*="linear-gradient"][style*="#00BFA5"],
[style*="linear-gradient"][style*="#26A69A"],
[style*="linear-gradient"][style*="#009688"],
[style*="linear-gradient"][style*="#4db8ac"],
[style*="linear-gradient"][style*="#4899a8"],
[style*="linear-gradient"][style*="#1B9AAA"] {
    background: linear-gradient(135deg, #C9A84C 0%, #A68A35 100%) !important;
}

/* ── All borders that use teal ── */
[style*="border-color:#00BFA5"],
[style*="border-color:#26A69A"],
[style*="border-color:#009688"],
[style*="border-color:#4db8ac"],
[style*="border-color:#4899a8"],
[style*="border-color: #00BFA5"],
[style*="border-color: #26A69A"],
[style*="border-color: #009688"],
[style*="border-color: #4db8ac"],
[style*="border: 1px solid #00BFA5"],
[style*="border: 1px solid #26A69A"],
[style*="border: 1px solid #009688"],
[style*="border: 1px solid #4db8ac"],
[style*="border: 2px solid #00BFA5"],
[style*="border: 2px solid #26A69A"],
[style*="border: 2px solid #4db8ac"],
[style*="border: 3px solid #4db8ac"],
[style*="border-top: 3px solid #4db8ac"],
[style*="border-top:3px solid #4db8ac"] {
    border-color: #C9A84C !important;
}

/* ── WordPress block overrides ── */
.has-vivid-cyan-blue-color,
.has-luminous-vivid-amber-color,
.has-vivid-green-cyan-color,
.has-vivid-cyan-blue-to-vivid-purple-gradient-background {
    color: #C9A84C !important;
}
.has-vivid-cyan-blue-background-color,
.has-vivid-green-cyan-background-color {
    background-color: #C9A84C !important;
}
.wp-block-button .wp-block-button__link,
.wp-block-button.is-style-outline .wp-block-button__link {
    background-color: #C9A84C !important;
    border-color: #C9A84C !important;
    color: #0B1D3A !important;
}

/* ── Events / booking elements ── */
.dw-event-badge,
.event-badge,
.booking-btn,
.book-btn,
a[href*="booking"],
a[href*="calendly"] {
    background-color: #C9A84C !important;
    border-color: #C9A84C !important;
    color: #0B1D3A !important;
}

/* ── Mobile nav CTA ── */
@media (max-width: 768px) {
    .nav-cta,
    .nav-item.nav-cta,
    a.nav-cta,
    .mobile-cta,
    .dw-mobile-cta {
        background-color: #C9A84C !important;
        color: #0B1D3A !important;
        border-color: #C9A84C !important;
    }
}

/* ── Separator / divider lines ── */
hr,
.wp-block-separator,
.divider {
    border-color: #C9A84C !important;
    background-color: #C9A84C !important;
}

/* ── Progress bars / loading ── */
progress::-webkit-progress-value,
.progress-bar,
.loading-bar {
    background-color: #C9A84C !important;
}

/* ── Tooltip arrows ── */
[class*="tooltip"]::after,
[class*="tooltip"]::before {
    border-color: #C9A84C transparent transparent transparent !important;
}

/* ── Logo transparency fallback ── */
.site-logo img, .custom-logo, header img[src*="Logo"], .dw-logo-img, a[href*="daryl"] img,
.nav-logo img, img[alt*="Daryl Wizinsky"] {
    background: transparent !important;
    mix-blend-mode: normal !important;
}

/* ── Unified logo sizing ── */
header img[src*="Logo"],
header img[src*="logo"],
.nav-logo img,
.dw-logo-img,
a[href*="daryl.darylwizinsky"] img[src*="Logo"],
header a:first-child img[src*="Logo"] {
    height: 55px !important;
    width: auto !important;
    max-height: 55px !important;
    object-fit: contain !important;
    background: transparent !important;
}
footer img[src*="Logo"],
footer img[src*="logo"],
.footer-brand img,
.footer-logo img {
    height: 40px !important;
    width: auto !important;
    max-height: 40px !important;
    object-fit: contain !important;
    background: transparent !important;
}

/* ── Force scroll-behavior auto ── */
html { scroll-behavior: auto !important; }

/* ── Footer responsive grid ── */
@media (max-width: 1024px) {
    footer > div:first-child { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 768px) {
    footer > div:first-child { grid-template-columns: 1fr !important; }
    section[style*="EXPLORE MORE"] > div,
    section > div[style*="flex-wrap"] { gap: 8px !important; }
    section[style*="EXPLORE MORE"] > div a,
    section > div[style*="flex-wrap"] > a { font-size: 13px !important; padding: 8px 14px !important; }
}
