/*!
Theme Name: Roofsie Child theme
Theme URI: https://layerdrops.com/roofsiewp/
Template: roofsie
Author: Layerdrops
Author URI: https://themeforest.net/user/Layerdrops
Description: This is a Child theme for Roofsie WordPress theme.
Version: 1.1
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: roofsie-child
*/

/* ==========================================================
   Legal pages (Privacy, Cookies, Terms): Elementor text block
   ========================================================== */
.rr-legal-text h2 { margin: 2em 0 .6em; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.3; }
.rr-legal-text h3 { margin: 1.5em 0 .5em; font-size: 19px; line-height: 1.35; }
.rr-legal-text p { margin: 0 0 1em; }
.rr-legal-text ul { margin: 0 0 1.2em; padding-left: 1.3em; }
.rr-legal-text li { margin-bottom: .5em; }
.rr-legal-text a { color: var(--roofsie-base, #873031); text-decoration: underline; }
.rr-legal-text > .elementor-widget-container > p:first-child { margin-top: 0; }
.rr-legal-text *:last-child { margin-bottom: 0; }

/* ==========================================================
   Footer legal links (Privacy / Cookies / Terms)
   ========================================================== */
.site-footer__bottom-text .rr-legal {
	display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 0;
	margin-top: 8px;
}
.site-footer__bottom-text .rr-legal a {
	color: rgba(255, 255, 255, .82);   /* ≥ 7:1 on the dark footer */
	text-decoration: none; padding: 4px 0;
}
.site-footer__bottom-text .rr-legal a + a::before {
	content: "·"; display: inline-block; margin: 0 12px; color: rgba(255, 255, 255, .45);
}
.site-footer__bottom-text .rr-legal a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.site-footer__bottom-text .rr-legal a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 2px; }


/* ==========================================================
   Heading variants (opt-in classes set in Elementor > Advanced > CSS Classes)
   Higher specificity than the global .elementor-heading-title rule in Additional CSS
   ========================================================== */
.rr-eyebrow .elementor-heading-title {
	color: var(--roofsie-base, #873031) !important; font-size: 15px !important; font-weight: 700 !important;
	letter-spacing: .1em; text-transform: uppercase; line-height: 1.5;
}
/* Eyebrow on dark sections: brand-red badge, white text (8.4:1) — plain #873031 text on #201f1f is only 1.96:1 */
.rr-eyebrow--light .elementor-heading-title {
	display: inline-block; color: #fff !important; background: var(--roofsie-base, #873031);
	padding: 6px 14px; border-radius: 4px; font-size: 13px !important;
}
.rr-h2 .elementor-heading-title { font-size: clamp(30px, 3.6vw, 44px) !important; line-height: 1.2; }
.rr-light .elementor-heading-title { color: #fff !important; }
.rr-h3 .elementor-heading-title { font-size: 22px !important; line-height: 1.3; }
.rr-num .elementor-heading-title { color: var(--roofsie-base, #873031) !important; font-size: 44px !important; line-height: 1; }

/* Body text on dark / brand backgrounds (theme forces p color) */
.rr-light-text, .rr-light-text p { color: rgba(255, 255, 255, .88) !important; }


/* ==========================================================
   Home: RR Serum before/after image inside the benefits block
   (section 47974b6 = benefits widget 976be60 + image 15e2bdd)
   ========================================================== */
.elementor-element-47974b6 { background-color: var(--roofsie-primary, #f4f1ee); padding-bottom: 90px; }
.elementor-element-47974b6 .why-choose-one { padding-bottom: 40px; }
.elementor-element-47974b6 img[data-interaction-id="15e2bdd"] {
	display: block; width: calc(100% - 30px); max-width: 100%; height: auto; margin: 0 auto; border-radius: 12px;
}
@media (min-width: 576px)  { .elementor-element-47974b6 img[data-interaction-id="15e2bdd"] { max-width: 510px; } }
@media (min-width: 768px)  { .elementor-element-47974b6 img[data-interaction-id="15e2bdd"] { max-width: 690px; } }
@media (min-width: 992px)  { .elementor-element-47974b6 img[data-interaction-id="15e2bdd"] { max-width: 930px; } }
@media (min-width: 1200px) { .elementor-element-47974b6 img[data-interaction-id="15e2bdd"] { max-width: 1170px; } }
@media (max-width: 767px)  {
	.elementor-element-47974b6 { padding-bottom: 60px; }
	.elementor-element-47974b6 .why-choose-one { padding-bottom: 30px; }
}


/* ==========================================================
   Header: search icon spacing (1200–1399px)
   The theme hides the search icon in this range and removes the button's left margin;
   Additional CSS shows the icon again, so restore the gap before "Free Quote".
   ========================================================== */
@media (min-width: 1200px) and (max-width: 1399px) {
	.main-menu__right .main-menu__btn-box { margin-left: 30px; }
}


/* ==========================================================
   Sticky header (CSS only, no JS clone)
   #page had overflow:hidden, which breaks position:sticky.
   overflow-x:clip keeps horizontal overflow hidden without creating a scroll container.
   ========================================================== */
#page.page-wrapper { overflow: visible; overflow-x: clip; }
.elementor-486 {
	position: sticky; top: 0; z-index: 991;
	background: #fff; box-shadow: 0 2px 14px rgba(32, 31, 31, .08);
}
.admin-bar .elementor-486 { top: 32px; }
@media (max-width: 782px) { .admin-bar .elementor-486 { top: 46px; } }
@media (max-width: 600px) { .admin-bar .elementor-486 { top: 0; } }
html { scroll-padding-top: 110px; } /* anchor links (#about, #services) land below the sticky header */

/* ==========================================================
   Mobile header: less height above the hero + bigger menu icon
   ========================================================== */
@media (max-width: 767px) {
	.main-menu__wrapper-inner { min-height: 72px !important; }
	.main-header .main-header__logo { height: 72px !important; min-height: 0 !important; padding: 0 !important; display: flex !important; align-items: center !important; }
	.main-header__logo img { width: auto !important; height: 56px !important; }
	.mobile-nav__toggler { font-size: 28px !important; padding: 22px 4px !important; min-height: 0 !important; }
	html { scroll-padding-top: 80px; }
}


/* Content the client still has to confirm (remove the span when replaced) */
.rr-placeholder { background: #fff3cd; color: #5c4400; outline: 2px dashed #b8860b; outline-offset: 1px; padding: 1px 6px; border-radius: 3px; font-weight: 600; }


/* ==========================================================
   Hero title wraps (theme forces white-space:nowrap → long H1s overflow on mobile)
   ========================================================== */
.main-slider__title { white-space: normal !important; overflow-wrap: break-word; }
@media (max-width: 767px) {
	.main-slider__title { line-height: 1.2 !important; }
}
/* Desktop: wider title column so short titles stay on one line; description keeps a reading width */
@media (min-width: 1200px) {
	.main-slider .row > [class*="col-xl-7"] { flex: 0 0 auto; width: 85%; }
	.main-slider__text { max-width: 640px; }
}

/* ==========================================================
   Mobile menu: white logo on the dark panel + Book Now button
   ========================================================== */
.mobile-nav__content #mobile-thm-logo { filter: brightness(0) invert(1); }
.mobile-nav__book { margin: 28px 0 8px; }
.mobile-nav__content .mobile-nav__book-btn {
	display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
	padding: 16px 24px; border-radius: 5px; background: var(--roofsie-base, #873031); color: #fff;
	font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}
.mobile-nav__content .mobile-nav__book-btn:hover,
.mobile-nav__content .mobile-nav__book-btn:focus-visible { background: #fff; color: var(--roofsie-black, #201f1f); }
.mobile-nav__content .mobile-nav__book-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }


/* CTA "Book Your Roof Care": center on large screens (>1740px the theme reserves 370px for an empty image box + black triangle) */
.cta-one__img-box{display:none!important}
.cta-one__inner{padding-left:0!important}


/* Theme's own scroll header (clone without logo) is redundant: we use the sticky .elementor-486 header. Visible only for logged-out visitors. */
.stricky-header{display:none!important}
/* Search removed for now (small site; results page showed too much) */
html body .main-menu__right .main-menu__search-box,html body .search-popup{display:none!important}
