/* 
Theme Name:		 rid-it
Theme URI:		 http://childtheme-generator.com/
Description:	 rid-it is a child theme of GeneratePress, created by ChildTheme-Generator.com
Author:			 cyberwink
Author URI:		 http://childtheme-generator.com/
Template:		 generatepress
Version:		 1.0.0
Text Domain:	 rid-it
*/

/* ==========================================
   1. SIDEBAR & CONTENT LAYOUT (325px Fix)
   ========================================== */
@media (min-width: 769px) {
    #right-sidebar {
        width: 325px !important;
        float: right !important;
        display: block !important;
    }
    .right-sidebar #primary {
        width: calc(100% - 325px) !important;
        float: left !important;
    }
}

/* ==========================================
   2. SIDEBAR WIDGETS & TEXT BLOCKS (Expanded)
   ========================================== */
#right-sidebar .inside-right-sidebar { 
    display: block !important; 
}

/* Force the main widget box to be full width */
#right-sidebar .widget, 
#right-sidebar .widget_block {
    width: 100% !important;
    display: block !important;
    clear: both !important;
    float: none !important;
    box-sizing: border-box !important;
    padding: 20px !important; /* Breathing room inside the box */
}

/* FORCE Paragraphs to stop shrinking into a 'smaller box' */
#right-sidebar .widget p, 
#right-sidebar .widget .wp-block-paragraph,
#right-sidebar .widget .inner-padding {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}


/* ==========================================
   3. FEATURED IMAGE (Edge-to-Edge)
   ========================================== */
.sidebar-featured-image.widget { padding: 0 !important; margin-bottom: 25px !important; }
.sidebar-featured-image img { width: 100% !important; height: auto !important; display: block !important; border-radius: 4px; }

/* ==========================================
   4. CONTACT WIDGETS (With Hover Effect)
   ========================================== */
#right-sidebar .widget_block h2 {
    /*background-color: #f7f7f7;*/
    border-left: 5px solid #c50; /* Pest control orange */
    padding: 20px !important;
    margin-bottom: 15px !important;
    border-radius: 0 4px 4px 0;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.05);
    transition: 0.3s;
}

#right-sidebar .widget_block h2:hover {
    background-color: #c50;
    border-left-color: #000000;
}

/* ==========================================
   5. NAVIGATION MENU (Large & Fixed Dropdowns)
   ========================================== */
/* Main Menu Size */
#site-navigation .main-nav > ul > li > a {
    font-size: 22px !important;
    font-weight: 700 !important;
}

/* Desktop Only Menu Settings */
@media (min-width: 769px) {
    .main-navigation .main-nav ul li a {
        line-height: 80px !important;
    }
    /* Hide arrow on desktop for equal spacing */
    .menu-item-has-children .dropdown-menu-toggle { display: none !important; }
    .main-navigation .main-nav ul li.menu-item-has-children > a { padding-right: 25px !important; }
    
    /* Sub-menu bridge & positioning */
    .main-navigation ul ul { top: 80px !important; width: 250px !important; }
    .main-navigation .main-nav ul li.menu-item-has-children { padding-bottom: 15px; margin-bottom: -15px; }
}

/* Dropdown Item Reset */
.main-navigation .main-nav ul ul li a { 
    line-height: 40px !important; 
    font-size: 17px !important; 
    padding: 10px 20px !important; 
}

/* Mobile Menu Fix (Restore Dropdown Access) */
@media (max-width: 768px) {
    .main-navigation .dropdown-menu-toggle { display: inline-block !important; }
    .main-navigation .main-nav ul li a { line-height: 50px !important; font-size: 18px !important; }
    .main-navigation ul ul { top: auto !important; }
}

/* ==========================================
   6. GLOBAL BODY TYPOGRAPHY (Large Font)
   ========================================== */
body, p {
    font-size: 19px !important;
    line-height: 1.6 !important;
    /*color: #333333;*/
}

/* Custom Headline Color */
h1 { color: #c50; }
h2 { line-height: 1.2em;font-size: 25px; }
.site-info { padding-top: 2%; padding-bottom: 2%; }
