/**
 * Header Banner Seamless Connection
 * Removes rounded corners and connects header with banner
 */

/* Remove all rounded corners from header */
.site-header,
.site-header *,
#masthead,
#masthead *,
.header-wrapper,
.header-wrapper *,
.header-top,
.header-top * {
    border-radius: 0 !important;
}

/* Header styling without rounded corners */
.site-header {
    border-radius: 0 !important;
    border: none !important;
}

.header-wrapper {
    border-radius: 0 !important;
    border: none !important;
    background: #fff !important;
}

/* Remove rounded corners from banner */
.hero-banner-wrapper,
.hero-banner-wrapper *,
.hero-banner-container,
.hero-banner-container *,
.banner-image,
.banner-slider,
.banner-slider * {
    border-radius: 0 !important;
}

/* Banner wrapper adjustments */
.hero-banner-wrapper {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
}

.hero-banner-container {
    border-radius: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Banner images without rounded corners */
.banner-image,
.banner-link img,
.slide-item img {
    border-radius: 0 !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
}

/* Quick menu bar without rounded corners */
.quick-menu-bar,
.quick-menu-bar *,
.quick-menu,
.quick-menu * {
    border-radius: 0 !important;
}

/* Mobile specific adjustments */
@media (max-width: 767px) {
    /* Header on mobile - Static position */
    html body .site-header,
    body .site-header,
    .site-header {
        position: relative !important; /* Static, not fixed */
        width: 100% !important;
        background: linear-gradient(135deg, #c8232c 0%, #e74c3c 100%) !important;
        box-shadow: none !important;
        height: 50px !important;
        padding: 0 !important;
        margin: 0 !important;
        border-radius: 0 !important;
        border: none !important;
    }
    
    /* Header wrapper - No padding, transparent background */
    html body .site-header .header-wrapper,
    body .site-header .header-wrapper,
    .site-header .header-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        height: 50px !important;
        background: transparent !important; /* Let parent gradient show through */
    }
    
    /* Container inside header - No padding, transparent background */
    html body .site-header .container,
    body .site-header .container,
    .site-header .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        background: transparent !important; /* Let parent gradient show through */
    }
    
    /* Header top - Only 8px vertical padding, 10px horizontal, transparent background */
    html body .site-header .header-top,
    body .site-header .header-top,
    .site-header .header-top {
        padding: 8px 10px !important;
        margin: 0 !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        background: transparent !important; /* Let parent gradient show through */
    }
    
    /* Quick menu bar on mobile - Static position */
    html body .quick-menu-bar,
    body .quick-menu-bar,
    .quick-menu-bar {
        position: relative !important; /* Static, not fixed */
        width: 100% !important;
        background: #ffffff !important;
        padding: 0 !important;
        margin: 0 !important;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
        border: none !important;
        border-radius: 0 !important;
    }
    
    /* Banner position for mobile - After header and quick menu */
    html body .hero-banner-wrapper,
    body .hero-banner-wrapper,
    .hero-banner-wrapper {
        position: relative !important;
        z-index: 1 !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        border-radius: 0 !important;
    }
    
    html body .hero-banner-container,
    body .hero-banner-container,
    .hero-banner-container {
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }
    
    /* Body padding adjustment */
    html body,
    body {
        padding-top: 0 !important;
        margin: 0 !important;
    }
    
    /* Remove any rounded corners from mobile menu button */
    .mobile-menu-toggle {
        border-radius: 5px !important; /* Slightly rounded for better look */
        background: #009688 !important;
        border: none !important;
        padding: 8px 12px !important;
    }
    
    /* Quick menu items - Keep rounded as per design */
    .quick-menu-item {
        border-radius: 20px !important; /* Rounded pills */
    }
}

/* Desktop specific adjustments */
@media (min-width: 768px) {
    /* Header on desktop - No border-radius */
    html body .site-header,
    body .site-header,
    .site-header,
    html body #masthead,
    body #masthead,
    #masthead {
        border-radius: 0 !important;
        margin-bottom: 0 !important;
        box-shadow: none !important;
        border: none !important;
    }
    
    /* Header top padding - Only 8px vertical */
    html body .site-header .header-top,
    body .site-header .header-top,
    .site-header .header-top,
    html body #masthead .header-top,
    body #masthead .header-top,
    #masthead .header-top {
        padding: 8px 0 !important;
        background: transparent !important; /* Let parent gradient show through */
        margin: 0 !important;
    }
    
    /* Header wrapper needs background too */
    html body .site-header .header-wrapper,
    body .site-header .header-wrapper,
    .site-header .header-wrapper,
    html body #masthead .header-wrapper,
    body #masthead .header-wrapper,
    #masthead .header-wrapper {
        background: transparent !important; /* Let parent gradient show through */
    }
    
    /* Banner right after header - No border-radius */
    html body .hero-banner-wrapper,
    body .hero-banner-wrapper,
    .hero-banner-wrapper {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding: 0 !important;
        border-radius: 0 !important;
    }
    
    html body .hero-banner-container,
    body .hero-banner-container,
    .hero-banner-container {
        border-radius: 0 !important;
    }
    
    html body .banner-image,
    body .banner-image,
    .banner-image,
    html body .slide-item,
    body .slide-item,
    .slide-item,
    html body .slide-item img,
    body .slide-item img,
    .slide-item img {
        border-radius: 0 !important;
    }
    
    /* Quick menu bar - No border-radius */
    html body .quick-menu-bar,
    body .quick-menu-bar,
    .quick-menu-bar {
        border-radius: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
    
    /* Main navigation - No border-radius */
    html body .main-navigation,
    body .main-navigation,
    .main-navigation,
    html body .nav-wrapper,
    body .nav-wrapper,
    .nav-wrapper {
        border-radius: 0 !important;
    }
    
    /* Quick menu items keep rounded for desktop */
    .quick-menu-item {
        border-radius: 25px !important;
    }
}

/* Ultra high priority overrides */
* {
    --border-radius: 0 !important;
}

/* Specific overrides for stubborn elements */
.hero-banner-wrapper::before,
.hero-banner-wrapper::after,
.hero-banner-container::before,
.hero-banner-container::after {
    border-radius: 0 !important;
    display: none !important;
}

/* Seamless transition between sections */
.site-header + .quick-menu-bar {
    margin-top: 0 !important;
}

.quick-menu-bar + .hero-banner-wrapper {
    margin-top: 0 !important;
}

/* Remove gaps between elements */
#page {
    padding-top: 0 !important;
}

.site {
    margin-top: 0 !important;
}

/* Ensure banner images fill width */
.banner-slider,
.slider-wrapper {
    width: 100% !important;
    border-radius: 0 !important;
}

.slide-item {
    width: 100% !important;
    border-radius: 0 !important;
}

/* Remove any padding that creates gaps */
@media (max-width: 767px) {
    .header-wrapper .container {
        padding: 0 !important;
    }
    
    .hero-banner-wrapper {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* Landscape mode adjustments */
@media (max-width: 767px) and (orientation: landscape) {
    /* Banner stays at natural position */
    html body .hero-banner-wrapper,
    body .hero-banner-wrapper,
    .hero-banner-wrapper {
        margin: 0 !important;
    }
}

/* Fix for any custom border radius variables */
:root {
    --radius: 0 !important;
    --rounded: 0 !important;
    --border-radius: 0 !important;
    --corner-radius: 0 !important;
}