/*
Theme Name: Astra Child - Mondsegel
Template: astra
Version: 2.1.1
*/

@import url('../astra/style.css');

/* ===== COLOR PALETTE ===== */
:root {
    --mondsegel-navy: #1a3a52;
    --mondsegel-slate: #475569;
    --mondsegel-accent: #d97706;
    --mondsegel-light: #f8fafc;
    --mondsegel-border: #e2e8f0;
    --mondsegel-text: #334155;
    --mondsegel-gold: #d4af37;
}

/* ===== HIDE OLD REALESTATE BRANDING ===== */
#footer-widget-1,
#footer-widget-2,
#footer-widget-4 {
    display: none !important;
}

.site-logo-img img[alt*="Real"] {
    display: none !important;
}

/* ===== CONTACT BUTTON COLOR FIX ===== */
.wp-block-button__link,
.wp-block-button a,
a.wp-block-button__link,
a.wp-element-button,
.wp-element-button,
.entry-content .wp-block-button__link,
.entry-content .wp-element-button,
.entry-content .wp-block-button a,
a[href*="contact"].wp-block-button__link,
a[href*="contact"].wp-element-button {
    background-color: #1e40af !important;
    background: #1e40af !important;
    border-color: #1e40af !important;
    color: #ffffff !important;
}

.wp-block-button__link:hover,
.wp-block-button a:hover,
a.wp-block-button__link:hover,
a.wp-element-button:hover,
.wp-element-button:hover,
.entry-content .wp-block-button__link:hover,
.entry-content .wp-element-button:hover {
    background-color: #1e3a8a !important;
    background: #1e3a8a !important;
    border-color: #1e3a8a !important;
    color: #ffffff !important;
}

/* ===== SITE TITLE - MONDSEGEL / CAPITAL HEADER ===== */
/* Force site title visible at ALL screen sizes */
.site-title,
.ast-site-title-wrap {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Site title - JS handles the DOM structure directly */
.site-title {
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.site-title a {
    border: none !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

/* Remove any ::after from other sources */
.site-title::after {
    content: none !important;
    display: none !important;
}

/* Header border */
.site-header {
    border-bottom: 1px solid var(--mondsegel-border) !important;
}

/* Logo + title alignment */
.site-header .site-branding,
.ast-site-identity {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
}

/* FORCE logo to be visible (override old mu-plugins) */
.site-header .site-logo-img {
    display: inline-block !important;
    visibility: visible !important;
}

.site-header img.custom-logo,
.ast-site-identity img.custom-logo {
    max-height: 65px !important;
    width: auto !important;
}

/* ===== RESPONSIVE HEADER ===== */
@media (max-width: 921px) {
    .site-title {
        font-size: 18px !important;
    }
    
    .site-title::after {
        font-size: 12px !important;
        margin-top: 4px !important;
    }
    
    .site-header img.custom-logo,
    .ast-site-identity img.custom-logo {
        max-height: 50px !important;
    }
}

@media (max-width: 544px) {
    /* OVERRIDE Astra's display:none on mobile */
    .site-title,
    .ast-site-title-wrap {
        display: block !important;
        visibility: visible !important;
    }
    
    .site-title {
        font-size: 16px !important;
        padding-bottom: 4px !important;
    }
    
    .site-title::after {
        font-size: 11px !important;
        margin-top: 3px !important;
    }
    
    .site-header img.custom-logo,
    .ast-site-identity img.custom-logo {
        max-height: 40px !important;
    }
}

/* ===== MOBILE MENU - JS handles toggle directly ===== */
@media (max-width: 921px) {
    .ast-mobile-header-content .menu-link {
        padding: 12px 20px !important;
        font-size: 16px !important;
        color: #1a3a52 !important;
        display: block !important;
    }
    
    .ast-mobile-header-content .menu-link:hover {
        color: #1e40af !important;
        background-color: #f0f4f8 !important;
    }
    
    /* Ensure menu items list displays properly when container is shown */
    .ast-mobile-header-content .main-header-bar-navigation,
    .ast-mobile-header-content .main-navigation,
    .ast-mobile-header-content .main-header-menu {
        display: block !important;
    }
    
    .ast-mobile-header-content .main-header-menu li {
        display: block !important;
    }
    
    /* ===== STICKY CONTACT US BUTTON IN MOBILE MENU ===== */
    .mondsegel-mobile-contact-cta {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        padding: 20px !important;
        background: #ffffff !important;
        border-top: 1px solid #e2e8f0 !important;
        z-index: 10000 !important;
    }
    
    .mondsegel-mobile-contact-cta a {
        display: block !important;
        background: #d4af37 !important;
        color: #1a3a52 !important;
        text-align: center !important;
        padding: 16px 24px !important;
        border-radius: 8px !important;
        font-size: 18px !important;
        font-weight: 600 !important;
        text-decoration: none !important;
        transition: all 0.2s ease !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    }
    
    .mondsegel-mobile-contact-cta a:hover {
        background: #c19b2f !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    }
    
    /* Add padding to mobile menu content so items don't hide behind button */
    .ast-mobile-header-content {
        padding-bottom: 100px !important;
    }
}
}

/* ===== FONT CONSISTENCY ===== */
.entry-header .entry-title {
    display: none !important;
}

h1, .h1, .wp-block-heading {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
    font-size: 40px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    color: #1a3a52 !important;
    margin-bottom: 20px !important;
}

h2 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
    font-size: 30px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    color: #1e293b !important;
    margin-top: 30px !important;
    margin-bottom: 15px !important;
}

h3 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    color: #334155 !important;
    margin-top: 20px !important;
    margin-bottom: 10px !important;
}

p, .entry-content p {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
    font-size: 17px !important;
    font-weight: 400 !important;
    line-height: 1.75 !important;
    color: #334155 !important;
}

/* Content alignment */
.site-content .ast-container,
.entry-content {
    padding-left: 30px !important;
    padding-right: 20px !important;
}

@media (max-width: 768px) {
    .site-content .ast-container,
    .entry-content {
        padding-left: 25px !important;
        padding-right: 15px !important;
    }
    
    h1, .h1, .wp-block-heading {
        font-size: 32px !important;
    }
    
    h2 {
        font-size: 24px !important;
    }
    
    h3 {
        font-size: 18px !important;
    }
}

/* ===== NAVIGATION ===== */
.main-header-menu {
    display: flex !important;
}

.main-header-menu a {
    pointer-events: auto !important;
    cursor: pointer !important;
}

.ast-builder-menu-1 {
    display: flex !important;
}

.main-header-bar {
    position: relative;
    z-index: 100;
}

/* ===== FOOTER ===== */
.site-footer,
.footer-widget-area,
#colophon {
    display: block !important;
    visibility: visible !important;
}

.footer-widget-area[data-section="section-footer-menu"] {
    display: block !important;
}

/* Footer - uniform font size, style, color */
.site-footer {
    border-top: 1px solid var(--mondsegel-border, #e2e8f0) !important;
    background-color: var(--mondsegel-light, #f8fafc) !important;
    padding: 1.5rem 0 !important;
}

.ast-footer-copyright,
.ast-footer-copyright p,
.ast-footer-copyright a,
.ast-footer-copyright .mondsegel-footer-link {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 13px !important;
    color: #64748b !important;
    text-decoration: none !important;
    line-height: 1.8 !important;
}

.ast-footer-copyright a:hover,
.ast-footer-copyright .mondsegel-footer-link:hover {
    color: #1a3a52 !important;
    text-decoration: underline !important;
}

.ast-footer-copyright p {
    text-align: center !important;
}

/* ===== NAVY CTA SECTION - Force white text ===== */
.mondsegel-cta h2,
.mondsegel-cta h3,
.mondsegel-cta p,
.mondsegel-cta strong,
.mondsegel-cta span,
.mondsegel-cta div {
    color: #ffffff !important;
}

.mondsegel-cta a {
    color: #d4af37 !important;
    text-decoration: none !important;
}

.mondsegel-cta a:hover {
    color: #f4d03f !important;
}

.mondsegel-cta a.mondsegel-cta-button {
    display: inline-block !important;
    background: transparent !important;
    border: 2px solid #d4af37 !important;
    color: #d4af37 !important;
    padding: 1rem 2.5rem !important;
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
}

.mondsegel-cta a.mondsegel-cta-button:hover {
    background: #d4af37 !important;
    color: #1a3a52 !important;
}

/* ===== SOCIAL ICONS BAR ===== */
.mondsegel-social-bar {
    background-color: #1a3a52 !important;
    text-align: center !important;
    padding: 1.25rem 1rem !important;
}

.mondsegel-social-bar a {
    color: #d4af37 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 0.75rem !important;
    transition: color 0.2s !important;
}

.mondsegel-social-bar a:hover {
    color: #f4d03f !important;
}

/* ===== CUSTOM HEADER TEXT STYLES (backup for JS injection) ===== */
.mondsegel-custom-header {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    margin-left: 15px !important;
    line-height: 1 !important;
}
