/*
Theme Name: Roofing Pro
Theme URI: https://mahbubmasum.com/roofing-pro
Author: Mahbub Masum
Author URI: https://mahbubmasum.com
Description: A professional, fully responsive Elementor-based WordPress theme for roofing and construction businesses. Includes custom Elementor widgets for Hero, Services, Gallery, Testimonials, Blog, Video+Content, CTA, Image+Content, and Google Map sections. Features a comprehensive theme options panel, demo import functionality, and mobile-first design.
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: roofing-pro
Tags: custom-colors, custom-logo, custom-menu, featured-images, footer-widgets, full-width-template, sticky-post, theme-options, threaded-comments, translation-ready, block-patterns, wide-blocks
*/

/* ========================================================
   BASE RESET & TYPOGRAPHY
   ======================================================== */

:root {
    --rp-primary: #f20404;
    --rp-primary-dark: #c00000;
    --rp-secondary: #2b2b2b;
    --rp-dark: #1a1a1a;
    --rp-light: #f5f4f4;
    --rp-white: #ffffff;
    --rp-font-primary: 'Open Sans', sans-serif;
    --rp-font-heading: 'Roboto Condensed', serif;
    --rp-font-body-size: 18px;
    --rp-border-radius: 4px;
    --rp-transition: all 0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--rp-font-primary);
    font-size: var(--rp-font-body-size);
    color: #373741;
    line-height: 1.6;
    background: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--rp-font-heading);
    line-height: 1.2;
    margin-bottom: 0.75em;
}

a { color: var(--rp-primary); text-decoration: none; transition: var(--rp-transition); }
a:hover { color: var(--rp-primary-dark); text-decoration: none; }

img { max-width: 100%; height: auto; }

.container { max-width: 1300px; margin: 0 auto; padding: 0 15px; }

/* ========================================================
   TOP BAR
   ======================================================== */

.rp-top-bar {
    background-color: var(--rp-primary);
    color: #fff;
    text-align: center;
    padding: 10px 0;
    font-family: var(--rp-font-heading);
    font-size: 1rem;
}

.rp-top-bar h4,
.rp-top-bar p {
    margin: 0;
    color: #fff;
    font-size: 1rem;
}

/* ========================================================
   HEADER
   ======================================================== */

.rp-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: var(--rp-transition);
}

.rp-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    padding-bottom: 10px;
}

.rp-logo img { max-width: 250px; height: auto; }

.rp-nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.rp-nav ul li a {
    
    font-family: "Roboto Condensed", serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: #333;
    text-transform: uppercase;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: var(--rp-transition);
	
    
}

.rp-nav ul li a:hover,
.rp-nav ul li.current-menu-item a {
    color: var(--rp-primary);
    border-bottom-color: var(--rp-primary);
}

/* Dropdown */
.rp-nav ul li.menu-item-has-children { position: relative; }
.rp-nav ul li .sub-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 255px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
    border-top: 2px solid var(--rp-primary);
    list-style: none;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--rp-transition);
    z-index: 999;
	   display: block;
    width: 100%;
    float: none;
    margin: 0;
}
.rp-nav ul li:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.rp-nav ul li .sub-menu li a {
    display: block;
    padding: 8px 20px;
    font-size: 0.95rem;
    border-bottom: none;
    text-transform: none;
	font-family: "Roboto Condensed", serif;
    font-size: 1.5rem;
    font-weight: 500;
}
.rp-nav ul li .sub-menu li a:hover { background: var(--rp-light); color: var(--rp-primary); }

/* Call Button */
.rp-header-cta { position: relative; }

.rp-call-btn {
    display: flex;
    align-items: center;
    border: 2px solid var(--rp-primary);
    border-radius: 20px;
    padding: 7px 10px 7px 33px;
    font-family: var(--rp-font-heading);
    font-size: 1.2rem;
    font-weight: 900;
    color: #000;
    position: relative;
    min-width: 170px;
    text-decoration: none;
}

.rp-call-btn:hover { color: #000; background: rgba(242,4,4,0.05); }

.rp-call-icon {
    position: absolute;
    top: -15px;
    left: 0;
    border: 1px solid var(--rp-primary);
    border-radius: 50%;
    font-size: 2rem;
    padding: 3px;
    background: var(--rp-primary);
    color: #fff;
    line-height: 0;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rp-call-label {
    position: absolute;
    top: -22px;
    right: 15px;
    background: var(--rp-primary);
    color: #fff;
    font-family: var(--rp-font-heading);
    border-radius: 10px;
    padding: 2px 5px;
    line-height: 1;
    font-size: 0.75rem;
}

/* ── Hamburger button wrapper ──────────────────────────────── */
.rp-menu-toggle {
    display: none;           /* shown only on mobile via @media */
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    width: 46px;
    height: 40px;
    align-items: center;
    justify-content: center;
}

/* ── Hamburger base (from hamburgers.min.css) ──────────────── */
.hamburger {
    font: inherit;
    display: inline-block;
    overflow: visible;
    margin: 0;
    padding: 0;
    cursor: pointer;
    transition-timing-function: linear;
    transition-duration: .15s;
    transition-property: opacity, filter;
    text-transform: none;
    color: inherit;
    background-color: transparent;
    border: 0;
}
.hamburger-box {
    position: relative;
    display: inline-block;
    width: 30px;
    height: 22px;
}
.hamburger-inner {
    top: 50%;
    display: block;
    margin-top: -2px;
}
.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    position: absolute;
    width: 30px;
    height: 3px;
    transition-timing-function: ease;
    transition-duration: .15s;
    transition-property: transform;
    border-radius: 4px;
    background-color: #333;
}
.hamburger-inner::before,
.hamburger-inner::after {
    display: block;
    content: '';
}
.hamburger-inner::before { top: -9px; }
.hamburger-inner::after  { bottom: -9px; }

/* ── Slider variant (hamburger--slider) ────────────────────── */
.hamburger--slider .hamburger-inner           { top: 2px; }
.hamburger--slider .hamburger-inner::before   {
    top: 9px;
    transition-timing-function: ease;
    transition-duration: .15s;
    transition-property: transform, opacity;
}
.hamburger--slider .hamburger-inner::after    { top: 18px; }

/* Active / X state */
.hamburger--slider.is-active .hamburger-inner {
    transform: translate3d(0, 9px, 0) rotate(45deg);
}
.hamburger--slider.is-active .hamburger-inner::before {
    transform: rotate(-45deg) translate3d(-4.28571px, -6px, 0);
    opacity: 0;
}
.hamburger--slider.is-active .hamburger-inner::after {
    transform: translate3d(0, -18px, 0) rotate(-90deg);
}

/* ========================================================
   MAIN CONTENT
   ======================================================== */

.rp-main-content { min-height: 60vh; }

/* ========================================================
   PAGE HERO (non-Elementor fallback)
   ======================================================== */

.rp-page-hero {
    background: var(--rp-secondary);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.rp-page-hero h1 { color: #fff; font-size: 3rem; margin-bottom: 10px; }
.rp-breadcrumb { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.rp-breadcrumb a { color: var(--rp-primary); }

/* ========================================================
   FOOTER
   ======================================================== */

.rp-footer {
    background: rgba(0,0,0,0.92);
    color: rgba(255,255,255,0.8);
    padding: 50px 0 25px;
}

.rp-footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
}

.rp-footer-logo img { max-width: 255px; margin-bottom: 20px; }

.rp-footer-heading {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 10px;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.rp-footer-links { list-style: none; padding: 0; margin: 0; }
.rp-footer-links li { border-bottom: 1px solid rgba(255,255,255,0.1); padding: 8px 0; }
.rp-footer-links li a {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--rp-transition);
}
.rp-footer-links li a:hover { color: var(--rp-primary); padding-left: 5px; }

.rp-footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.rp-footer-contact .rp-contact-icon {
    width: 32px;
    height: 32px;
    background: rgb(255 0 0 / 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rp-footer-contact a { color: rgba(255,255,255,0.8); }
.rp-footer-contact a:hover { color: var(--rp-primary); }

.rp-footer-bottom {
    background: #111;
    color: rgba(255,255,255,0.6);
    padding: 15px 0;
}

.rp-footer-bottom .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.rp-footer-bottom small { font-size: 0.85rem; }

.rp-social-links { display: flex; gap: 15px; }
.rp-social-links a {
    color: rgba(255,255,255,0.5);
    font-size: 1.1rem;
    transition: var(--rp-transition);
}
.rp-social-links a:hover { color: #fff; }

/* ========================================================
   FLOATING WIDGETS (mobile footer bar + review sidebar)
   ======================================================== */

.rp-mobile-bar {
    background: var(--rp-primary);
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: none;
    z-index: 99999;
}

.rp-mobile-bar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.rp-mobile-bar ul li {
    width: 100%;
    border-left: 1px solid rgba(0,0,0,0.2);
    height: 100%;
}

.rp-mobile-bar ul li:first-child { border: 0; }

.rp-mobile-bar ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    line-height: 1.3;
    gap: 3px;
}

.rp-mobile-bar ul li a svg { font-size: 26px; fill: #fff; width: 26px; height: 26px; }
.rp-mobile-bar ul li a:hover,
.rp-mobile-bar ul li a.active { background: #2b2b2b; }

/* Review floating badge */
.rp-review-badge {
    position: fixed;
    right: 7px;
    top: 42%;
    width: 75px;
    height: 75px;
    background: #fff;
    border-radius: 50%;
    z-index: 9998;
    overflow: hidden;
    border: 2px solid #fff;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: var(--rp-transition);
}
.rp-review-badge:hover { transform: scale(1.05); }
.rp-review-badge img { width: 100%; }

/* Review Sidebar */
.rp-review-sidebar {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 999999;
    top: 0;
    right: 0;
    background: #fff;
    overflow-x: hidden;
    transition: 0.4s;
    box-shadow: -3px 0 15px rgba(0,0,0,0.15);
}

.rp-review-sidebar .rp-sidebar-head {
    padding: 30px 15px 15px;
    text-align: center;
    position: relative;
    border-bottom: 1px solid #eee;
}

.rp-review-sidebar .rp-sidebar-head img { max-width: 180px; }

.rp-sidebar-close {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--rp-primary);
    border: none;
    width: 30px;
    height: 30px;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rp-review-sidebar ul {
    list-style: none;
    margin: 0;
    padding: 10px;
    height: calc(100vh - 130px);
    overflow-y: auto;
}

.rp-review-sidebar ul li {
    display: flex;
    gap: 12px;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    align-items: flex-start;
}

.rp-review-icon {
    width: 45px;
    min-width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    background: #f0f0f0;
}

.rp-review-icon img { width: 100%; }

.rp-review-text { font-size: 13px; color: #555; margin-bottom: 5px; }
.rp-review-author { font-weight: bold; color: #000; font-size: 13px; }
.rp-review-stars { display: flex; gap: 2px; margin-top: 4px; }
.rp-review-stars img { width: 16px; }

/* Back to top */
.rp-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--rp-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9990;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--rp-transition);
    font-size: 1.2rem;
}
.rp-back-to-top.visible { opacity: 1; transform: translateY(0); }
.rp-back-to-top:hover { background: var(--rp-primary-dark); color: #fff; }

/* Form popup overlay */
.rp-form-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 9999999;
    overflow-y: auto;
    padding: 20px 15px 80px;
    align-items: flex-start;
    justify-content: center;
}
.rp-form-overlay.active { display: flex; }
.rp-form-overlay-inner { max-width: 500px; width: 100%; margin: 60px auto 0; }
.rp-form-close {
    background: none; border: none;
    color: #fff; font-size: 3rem;
    position: absolute; top: 10px; right: 20px;
    cursor: pointer; line-height: 1;
}

/* ========================================================
   RESPONSIVE
   ======================================================== */

@media (max-width: 991px) {
    .rp-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
    .rp-nav { display: none; }
    .rp-nav.open { display: block; }
    .rp-nav ul { flex-direction: column; gap: 0; }
    .rp-nav ul li a { padding: 12px 20px; display: block; border-bottom: 1px solid #eee; border-radius: 0; }
    .rp-nav ul li .sub-menu {
        position: static;
        box-shadow: none;
        border-top: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding-left: 0;
        display: none;
    }
    .rp-nav ul li .sub-menu.open { display: block; }
    .rp-menu-toggle { display: inline-flex; }
    .rp-header-cta { display: none; }
    .rp-mobile-bar { display: block; }
    .rp-footer-grid { grid-template-columns: 1fr; }
    .rp-footer-bottom .container { flex-direction: column; text-align: center; }
}

@media (min-width: 1350px) {
    .container { max-width: 1300px; }
}
