/**
 * Boon Automotive Custom Styles
 * Styling corrections to match the original Boon Automotive website
 *
 * Categories:
 * 1. Button Styling - White background with black text
 * 2. Heading Colors - White on hero sections
 * 3. Typography - Font sizes and spacing
 * 4. Layout - Alignment and positioning
 * 5. Header & Footer - Transparency and border radius
 */

/* ============================================
   1. BUTTON STYLING - Match Original
   ============================================ */

/* Primary buttons - Blue background with white text */
.wp-block-button__link,
.kb-button,
button[type="submit"],
.button,
a.button,
.wp-block-button a,
.kadence-blocks-btn {
    background-color: rgb(10, 110, 168) !important;
    color: rgb(255, 255, 255) !important;
    border: none !important;
    border-radius: 6px !important;
}

/* Button hover state - Slightly darker blue */
.wp-block-button__link:hover,
.kb-button:hover,
button[type="submit"]:hover,
.button:hover,
a.button:hover,
.wp-block-button a:hover,
.kadence-blocks-btn:hover {
    background-color: rgb(8, 90, 140) !important;
    color: rgb(255, 255, 255) !important;
}

/* ============================================
   2. HEADING COLORS - White on Hero
   ============================================ */

/* White headings on hero/cover sections */
.hero-section h1,
.hero-section h2,
.hero-section h3,
.entry-hero h1,
.entry-hero h2,
.entry-hero h3,
.wp-block-cover h1,
.wp-block-cover h2,
.wp-block-cover h3,
.entry-hero-container-inner h1,
.entry-hero-container-inner h2,
.entry-hero-container-inner h3 {
    color: rgb(255, 255, 255) !important;
}

/* Ensure content headings use appropriate colors */
.content-bg h2,
.content-bg h3,
.entry-content h2,
.entry-content h3 {
    color: rgb(67, 67, 67);
}

/* ============================================
   3. TYPOGRAPHY - Font Sizes & Spacing
   ============================================ */

/* H1 Size - 40px on desktop */
h1 {
    font-size: 40px !important;
    line-height: 1.2 !important;
}

/* H2 Margins - Minimal */
h2 {
    margin: 0px !important;
    margin-bottom: 1rem !important;
}

/* H3 adjustments */
h3 {
    margin-top: 0 !important;
}

/* Mobile responsive typography */
@media (max-width: 767px) {
    h1 {
        font-size: 32px !important;
    }
}

@media (max-width: 544px) {
    h1 {
        font-size: 28px !important;
    }
}

/* ============================================
   4. LAYOUT - Alignment & Positioning
   ============================================ */

/* Hero Title Alignment - Left */
.hero-section h1,
.entry-hero h1,
.wp-block-cover h1,
.entry-hero-container-inner h1 {
    text-align: left !important;
}

/* Button Alignment - Left */
.wp-block-buttons {
    justify-content: flex-start !important;
}

/* Hero section text alignment */
.hero-section,
.entry-hero,
.entry-hero-container-inner {
    text-align: left !important;
}

/* Override any centered content in hero sections */
.wp-block-cover .wp-block-cover__inner-container {
    text-align: left !important;
}

/* ============================================
   5. HEADER & FOOTER - Transparency & Radius
   ============================================ */

/* Header Transparency */
.site-header-wrap,
#masthead,
.site-header {
    background-color: transparent !important;
    background: transparent !important;
}

/* Remove header background on scroll */
.site-header-wrap.scrolled-header,
.site-header-wrap.item-is-fixed {
    background-color: rgba(0, 0, 0, 0) !important;
}

/* Footer Rounded Top Corners */
.site-footer,
#colophon,
footer.site-footer {
    border-radius: 30px 30px 0px 0px !important;
    overflow: hidden;
}

/* ============================================
   6. ADDITIONAL REFINEMENTS
   ============================================ */

/* Ensure proper contrast for links in hero */
.hero-section a,
.entry-hero a,
.wp-block-cover a {
    color: rgb(255, 255, 255);
}

/* Remove excessive padding/margins from sections */
.wp-block-group {
    margin-top: 0 !important;
}

/* Fix button container spacing */
.wp-block-buttons.alignleft {
    margin-left: 0 !important;
}

/* Ensure images in content maintain proper spacing */
.entry-content img {
    max-width: 100%;
    height: auto;
}

/* Fix hero section padding */
.entry-hero-container-inner {
    padding-left: 0 !important;
}

/* ============================================
   7. KADENCE THEME SPECIFIC OVERRIDES
   ============================================ */

/* Override Kadence button defaults */
.kb-btn,
.kadence-button {
    background: rgb(10, 110, 168) !important;
    color: rgb(255, 255, 255) !important;
}

/* Override Kadence header sticky background */
.site-header-wrap.item-is-fixed:not(.item-at-start) {
    background: transparent !important;
}

/* Fix Kadence hero section alignment */
.entry-hero-layout-standard .entry-hero-container-inner {
    text-align: left !important;
}

/* ============================================
   8. RESPONSIVE ADJUSTMENTS
   ============================================ */

/* Tablet adjustments */
@media (max-width: 1024px) {
    h1 {
        font-size: 36px !important;
    }

    .site-footer,
    #colophon,
    footer.site-footer {
        border-radius: 30px 30px 0px 0px !important;
    }
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .site-footer,
    #colophon,
    footer.site-footer {
        border-radius: 20px 20px 0px 0px !important;
    }

    /* Ensure buttons remain visible on mobile */
    .wp-block-button__link {
        padding: 12px 24px !important;
        font-size: 16px !important;
    }
}

/* ============================================
   9. UTILITY CLASSES
   ============================================ */

/* Force left alignment when needed */
.align-left-force {
    text-align: left !important;
}

/* Transparent background utility */
.bg-transparent {
    background-color: transparent !important;
}

/* White text utility */
.text-white {
    color: rgb(255, 255, 255) !important;
}

/* Dark text utility */
.text-dark {
    color: rgb(67, 67, 67) !important;
}

/* ============================================
   10. FOOTER REFINEMENTS - Color & Spacing
   ============================================ */

/* Footer text colors - White/light text on dark background */
.site-footer,
.site-footer p,
.site-footer .widget,
.site-footer .widget-area,
.site-footer .footer-widget {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Footer headings - Bright white */
.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer .widget-title,
.site-footer .widgettitle {
    color: rgb(255, 255, 255) !important;
}

/* Footer links - White with slight transparency */
.site-footer a {
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none !important;
}

/* Footer link hover - Full white */
.site-footer a:hover {
    color: rgb(255, 255, 255) !important;
}

/* Footer spacing adjustments - Match original site exactly */
.site-footer,
#colophon {
    padding-top: 0px !important;
    padding-bottom: 0px !important;
    padding-left: 0px !important;
    padding-right: 0px !important;
}

/* Footer inner container spacing */
.site-footer .footer-inner-wrap,
.site-footer .footer-widget-area {
    margin-bottom: 0px !important;
    gap: 30px !important;
}

/* Footer columns spacing */
.site-footer .footer-widget,
.site-footer .widget {
    margin-bottom: 30px !important;
}

/* Footer border radius refinement - 30px to match original */
.site-footer,
#colophon,
footer.site-footer {
    border-radius: 30px 30px 0px 0px !important;
}

/* Mobile footer spacing */
@media (max-width: 767px) {
    .site-footer {
        padding-top: 0px !important;
        padding-bottom: 20px !important;
        padding-left: 0px !important;
        padding-right: 0px !important;
        border-radius: 20px 20px 0px 0px !important;
    }
}

/* ============================================
   11. HOMEPAGE SPECIFIC STYLES
   ============================================ */

/* Center "Bekijk ons aanbod" button on homepage only */
.home .wp-block-buttons {
    justify-content: center !important;
}

.home .wp-block-buttons .wp-block-button {
    margin: 0 auto !important;
}

/* Override left alignment for homepage hero buttons */
.home .hero-section .wp-block-buttons,
.home .entry-hero .wp-block-buttons,
.home .wp-block-cover .wp-block-buttons {
    justify-content: center !important;
}

/* ============================================
   12. LOGO SIZE REDUCTION
   ============================================ */

/* Logo size - Reduced to match original site */
.site-branding img,
.custom-logo,
.site-brand img,
.site-logo img {
    max-width: 160px !important;
    max-height: 60px !important;
    width: auto !important;
    height: auto !important;
}

/* Mobile logo size */
@media (max-width: 767px) {
    .site-branding img,
    .custom-logo,
    .site-brand img,
    .site-logo img {
        max-width: 140px !important;
        max-height: 50px !important;
    }
}

/* Tablet logo size */
@media (max-width: 1024px) and (min-width: 768px) {
    .site-branding img,
    .custom-logo,
    .site-brand img,
    .site-logo img {
        max-width: 150px !important;
        max-height: 55px !important;
    }
}

/* ============================================
   13. MENU ICON UNDERLINE REMOVAL
   ============================================ */

/* Remove underlines from contact icons (mail, phone, WhatsApp) */
.site-header a[href^="mailto:"],
.site-header a[href^="tel:"],
.site-header a[href*="whatsapp"],
.site-header a[href*="wa.me"],
.header-navigation a.icon-link,
.header-contact-icons a,
.site-header-item a[href^="mailto:"],
.site-header-item a[href^="tel:"],
.site-header-item a[href*="whatsapp"] {
    text-decoration: none !important;
    border-bottom: none !important;
}

/* Remove underlines on hover */
.site-header a[href^="mailto:"]:hover,
.site-header a[href^="tel:"]:hover,
.site-header a[href*="whatsapp"]:hover,
.site-header a[href*="wa.me"]:hover {
    text-decoration: none !important;
    border-bottom: none !important;
}

/* Remove underlines from icon pseudo-elements */
.site-header .icon::before,
.site-header .icon::after,
.site-header-item .icon::before,
.site-header-item .icon::after {
    text-decoration: none !important;
}

/* Additional icon link styling - ensure no underline */
.site-header svg,
.site-header i,
.site-header .fa,
.site-header .fab,
.site-header .fas {
    text-decoration: none !important;
}

/* Icon container links */
.site-header a:has(svg),
.site-header a:has(i),
.site-header a:has(.icon) {
    text-decoration: none !important;
    border-bottom: none !important;
}

/* ============================================
   14. HIDE USP BAR IN FOOTER
   ============================================ */

/* Hide the USP bar row layout in footer */
#colophon .kb-row-layout-id-usp-bar-1,
.site-footer .kb-row-layout-id-usp-bar-1 {
    display: none !important;
}
