/*
Theme Name:     Hard Hat Rooter
Theme URI:      https://www.chrsinteractive.com/
Description:    Custom theme for Hard Hat Rooter & Plumbing, built on the CHRS starter.
Version:        1.0
Author:         CHRS Interactive
Author URI:	    https://www.chrsinteractive.com/
Text Domain:    hardhatrooter
*/

/* ---------------------------- */

/* -- @MASTERHEAD/NAVIGATION -- */
body.overflow-hidden {overflow:hidden;}

.site-header {position:sticky; top:0; width:100%; z-index:99; border-bottom:1px solid rgba(255,255,255,0.15); background:var(--color-white);}

/* Top bar: logo · tagline · license · phone — grid on mobile (text centered between logo and trigger, phone on its own row), flex from tablet up */
.site-header .header-top-row {display:grid; grid-template-columns:auto 1fr auto; grid-template-areas:"logo tagline trigger" "logo license trigger" "phone phone phone"; align-items:center; gap:5px 15px; padding:10px 30px;}
.logo {display:block; grid-area:logo; width:60px;}
.logo img {display:block; width:100%; height:auto;}
.header-tagline {grid-area:tagline; align-self:end; margin:0; text-align:center; font-size:1.5rem; font-weight:700; line-height:1.2; color:var(--color-red);}
.header-license {grid-area:license; align-self:start; text-align:center;}
.header-availability {display:flex; align-items:center; justify-content:center; gap:8px; margin:0 0 3px; font-size:1.5rem; font-weight:700; line-height:1.2; color:var(--color-navy);}
.header-availability .icon {width:20px; height:20px;}
.header-license-number {margin:0; font-size:1.3rem; font-weight:700; line-height:1.2; color:var(--color-red);}
.header-phone {display:inline-flex; grid-area:phone; justify-self:center; align-items:center; justify-content:center; gap:10px; margin:5px 0 0; height:45px; padding:0 25px; border-radius:30px; background:var(--color-red); color:var(--color-white); font-size:1.8rem; font-weight:700; line-height:1; white-space:nowrap;}
.header-phone:hover,
.header-phone:focus {background:var(--color-red-dark); color:var(--color-white);}
.header-phone .icon {width:20px; height:20px;}

/* Nav bar */
.header-nav {background:var(--color-navy);}
.mainNav-wrap {display:none;}
.mainNav {display:flex; justify-content:center; flex-wrap:wrap;}
.mainNav li {position:relative;}
.mainNav li a {display:block; padding:12px 12px; border-left:1px solid rgba(255,255,255,0.15); color:var(--color-white); font-size:1.4rem; font-weight:700; line-height:1.2;}
.mainNav li:first-child a {border-left:0;}
.mainNav li a:hover,
.mainNav li a:focus,
.mainNav li.current-menu-item > a,
.mainNav li.current-menu-ancestor > a {background:var(--color-red-dark); color:var(--color-white);}

/* Level 2 */
.mainNav li ul {display:none; position:absolute; top:100%; left:0; z-index:99; min-width:220px; padding:5px 0; background:var(--color-navy);}
.mainNav li:hover > ul,
.mainNav li:focus-within > ul {display:block;}
.mainNav li ul li a {border-left:0; font-weight:400;}

/* Mobile trigger */
.mobile-nav-trigger-outter {grid-area:trigger; width:40px; height:40px;}
.mobile-nav-trigger {display:block; position:relative; width:40px; height:40px; padding:0; border:0; background:none; cursor:pointer;}
.mobile-nav-trigger .cd-menu-icon {position:absolute; top:50%; left:50%; display:block; width:30px; height:2px; transform:translate(-50%, -50%); background:var(--color-navy); transition:background-color 0.3s;}
.mobile-nav-trigger .cd-menu-icon::before,
.mobile-nav-trigger .cd-menu-icon::after {content:''; position:absolute; top:0; left:0; width:100%; height:100%; background:var(--color-navy); transition:transform 0.3s, top 0.3s;}
.mobile-nav-trigger .cd-menu-icon::before {top:-9px;}
.mobile-nav-trigger .cd-menu-icon::after {top:9px;}
.mobile-nav-trigger .cd-menu-icon.is-clicked {background:transparent;}
.mobile-nav-trigger .cd-menu-icon.is-clicked::before {top:0; transform:rotate(135deg);}
.mobile-nav-trigger .cd-menu-icon.is-clicked::after {top:0; transform:rotate(225deg);}

/* Mobile nav overlay */
.mobile-nav {position:fixed; top:160px; left:0; z-index:98; visibility:hidden; opacity:0; width:100%; height:calc(100vh - 160px); overflow:auto; background:var(--color-navy); transition:all 0.3s ease;}
.mobile-nav.is-visible {visibility:visible; opacity:1;}
.mobile-nav-inner {padding-top:40px; padding-bottom:50px;}
.mobileNav li {display:block; margin-bottom:20px; text-align:center; font-size:2rem; font-weight:700;}
.mobileNav li a {color:var(--color-white);}
.mobileNav li a:hover,
.mobileNav li.current-menu-item > a {color:var(--color-red);}

.post-edit-link {display:block; position:fixed; top:50%; right:0; z-index:99999999; padding:10px; background:rgba(139,16,6,0.8); color:var(--color-white); font-size:1.4rem; font-weight:700; line-height:1; text-transform:uppercase;}
.post-edit-link:hover {background:rgba(139,16,6,1); color:var(--color-white);}

/* -- @CONTENT ---------------- */
.icon {display:inline-block; width:1em; height:1em; vertical-align:middle; fill:currentColor;}

.button {display:inline-block; height:40px; line-height:36px; padding:0 30px; border:2px solid var(--color-red-dark); border-radius:20px; background:var(--color-red-dark); color:var(--color-white); font-weight:700; text-align:center; box-sizing:border-box;}
.button:hover,
.button:focus {background:var(--color-red); border-color:var(--color-red); color:var(--color-white);}

/* Contact form box (parts/contact-form.php) */
.contact-box {padding:20px; background:var(--color-navy); color:var(--color-white);}
.contact-box-logo {margin-bottom:10px; text-align:center;}
.contact-box-logo img {display:inline-block; width:100px; height:auto;}
.contact-box-title {margin-bottom:15px; text-align:center; font-size:2rem; font-weight:700; line-height:1.3; color:var(--color-white);}

/* Gravity Forms inside the box */
.contact-box .gform_wrapper.gravity-theme .gform_fields {grid-row-gap:10px; grid-column-gap:20px;}
.contact-box .gform_wrapper.gravity-theme .gfield input,
.contact-box .gform_wrapper.gravity-theme .gfield textarea {width:100%; padding:6px 10px; font-family:inherit; font-size:1.5rem; color:var(--color-main); background:var(--color-white); border:1px solid var(--color-input-border); border-radius:4px; box-sizing:border-box;}
.contact-box .gform_wrapper.gravity-theme .gfield input {height:40px;}
.contact-box .gform_wrapper.gravity-theme .gfield textarea {height:100px;}
.contact-box .gform_wrapper.gravity-theme .gfield input:focus,
.contact-box .gform_wrapper.gravity-theme .gfield textarea:focus {border-color:var(--color-white); outline:2px solid var(--color-white); outline-offset:1px;}
.contact-box .gform_wrapper.gravity-theme .gfield ::placeholder {color:#666;}
.contact-box .gform_wrapper.gravity-theme .gform_footer {margin:10px 0 0; padding:0;}
.contact-box .gform_wrapper.gravity-theme .gform_footer button,
.contact-box .gform_wrapper.gravity-theme .gform_footer input[type="submit"] {width:100%; height:40px; margin:0; padding:0; border:0; border-radius:4px; background:var(--color-red-deep); color:var(--color-white); font-family:inherit; font-size:1.5rem; font-weight:700; letter-spacing:1px; text-transform:uppercase; cursor:pointer; transition:background-color 0.3s;}
.contact-box .gform_wrapper.gravity-theme .gform_footer button:hover,
.contact-box .gform_wrapper.gravity-theme .gform_footer button:focus,
.contact-box .gform_wrapper.gravity-theme .gform_footer input[type="submit"]:hover,
.contact-box .gform_wrapper.gravity-theme .gform_footer input[type="submit"]:focus {background:var(--color-red);}
.contact-box .gform_wrapper.gravity-theme .gfield_required,
.contact-box .gform_wrapper.gravity-theme .gform_required_legend {display:none;}
.contact-box .gform_wrapper.gravity-theme .gfield_validation_message,
.contact-box .gform_wrapper.gravity-theme .gform_validation_errors {margin:5px 0 0; padding:5px 10px; border:0; background:var(--color-white); color:var(--color-red); font-size:1.3rem;}
.contact-box .gform_wrapper.gravity-theme .gform_validation_errors {margin-bottom:10px;}
.contact-box .gform_wrapper.gravity-theme .gfield_error input,
.contact-box .gform_wrapper.gravity-theme .gfield_error textarea {border-color:var(--color-red);}
.contact-box .gform_confirmation_message {padding:15px; background:var(--color-white); color:var(--color-main);}

.button-white {border-color:var(--color-white); border-radius:25px; background:var(--color-white); color:var(--color-navy); height:50px; line-height:46px; padding:0 40px; font-size:1.8rem;}
.button-white:hover,
.button-white:focus {border-color:var(--color-navy); background:var(--color-navy); color:var(--color-white);}

/* Home hero — photo panel (title, text, call button, ratings) + navy form panel; stacked below 1000px, 50/50 above */
.hero-split {display:grid; grid-template-columns:1fr;}
.hero-split-media {position:relative; display:flex; align-items:center; min-height:400px; padding:30px 20px; background:var(--color-navy);}
.hero-split-media::before {content:""; position:absolute; inset:0; z-index:1; background:linear-gradient(to top, rgba(7,32,59,0.9) 0%, rgba(7,32,59,0.55) 50%, rgba(7,32,59,0.25) 100%);}
.hero-split-image {position:absolute; inset:0; z-index:0; width:100%; height:100%; object-fit:cover;}
.hero-split-content {position:relative; z-index:2; width:100%; max-width:600px; margin:0 auto; color:var(--color-white);}
.hero-split-title {margin-bottom:20px; font-size:3.2rem; color:var(--color-white);}
.hero-split-text {margin-bottom:30px; font-size:1.8rem; line-height:1.5;}
.hero-split-content .rating-badges {margin-top:40px;}
.hero-split-form {display:flex; align-items:center; background:var(--color-navy);}
.hero-split-form .contact-box {width:100%; max-width:600px; margin:0 auto; padding:25px 20px;}
.button-icon {display:inline-flex; align-items:center; gap:10px; height:50px; line-height:1; font-size:1.8rem;}
.button-icon .icon {width:20px; height:20px;}

/* Rating badges (parts/rating-badges.php) */
.rating-badges {display:flex; flex-wrap:wrap; gap:15px 30px;}
.rating-badge a {display:flex; align-items:center; gap:10px; color:var(--color-white);}
.rating-badge a:hover,
.rating-badge a:focus {color:var(--color-white); text-decoration:none;}
.rating-badge .brand-icon {display:block; width:30px; height:30px; flex:0 0 auto;}
.rating-badge-body {display:flex; flex-direction:column; gap:5px;}
.rating-stars {position:relative; display:block; width:110px; height:20px; background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 110 20'%3E%3Cdefs%3E%3Cpath id='s' d='M10 1l2.7 5.9 6.3.7-4.7 4.3 1.3 6.3L10 15l-5.6 3.2 1.3-6.3L1 7.6l6.3-.7z' fill='none' stroke='%23f5b301' stroke-width='1.5'/%3E%3C/defs%3E%3Cuse href='%23s'/%3E%3Cuse href='%23s' x='22.5'/%3E%3Cuse href='%23s' x='45'/%3E%3Cuse href='%23s' x='67.5'/%3E%3Cuse href='%23s' x='90'/%3E%3C/svg%3E") left center / 110px 20px no-repeat;}
.rating-stars-fill {position:absolute; top:0; left:0; height:100%; overflow:hidden; background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 110 20'%3E%3Cdefs%3E%3Cpath id='s' d='M10 1l2.7 5.9 6.3.7-4.7 4.3 1.3 6.3L10 15l-5.6 3.2 1.3-6.3L1 7.6l6.3-.7z' fill='%23f5b301'/%3E%3C/defs%3E%3Cuse href='%23s'/%3E%3Cuse href='%23s' x='22.5'/%3E%3Cuse href='%23s' x='45'/%3E%3Cuse href='%23s' x='67.5'/%3E%3Cuse href='%23s' x='90'/%3E%3C/svg%3E") left center / 110px 20px no-repeat;}
.rating-badge-text {font-size:1.5rem; font-weight:700; line-height:1; white-space:nowrap;}
.rating-badge-text small {font-size:1.4rem; font-weight:700;}

/* Service pill buttons */
.service-buttons {display:grid; grid-template-columns:1fr; gap:20px;}
.service-button {display:block; padding:12px 20px; border-radius:30px; background:var(--color-red-deep) linear-gradient(to bottom, var(--color-red) 0%, var(--color-red-deep) 100%); box-shadow:0 2px 4px rgba(0,0,0,0.3); color:var(--color-white); font-size:1.5rem; font-weight:700; text-align:center;}
.service-button:hover,
.service-button:focus {background-image:none; box-shadow:0 5px 10px rgba(0,0,0,0.35); color:var(--color-white);}

/* Coupons (parts/coupons.php) */
.coupons {display:grid; grid-template-columns:1fr; gap:30px;}
.coupon {padding:20px; border:2px dashed var(--color-red); text-align:center;}
.coupon img {display:block; width:100%; max-width:300px; height:auto; margin:0 auto 15px;}
.coupon-text {margin:0; font-size:1.3rem; font-weight:700; line-height:1.5; text-align:left;}

/* CTA band (parts/cta-band.php) */
.cta-band {display:grid; grid-template-columns:1fr; color:var(--color-white);}
.cta-band-half {padding:40px 20px; text-align:center;}
.cta-band-phone {background:var(--color-red-dark);}
.cta-band-contact {background:var(--color-navy);}
.cta-band-title {margin-bottom:20px; font-size:2.2rem; font-weight:400; line-height:1.25; color:var(--color-white);}
.cta-band-contact .button-white:hover,
.cta-band-contact .button-white:focus {border-color:var(--color-red-dark); background:var(--color-red-dark);}

/* Home intro */
.home-intro h2 {text-align:center; color:var(--color-red);}

/* Reviews slider */
.reviews-slider {margin:0 -10px;}
.reviews-slider .slick-slide > div {display:flex; justify-content:center;}
.reviews-slider .review {padding:0 10px;}
.reviews-slider .yelp-review {display:block; min-height:200px;}
.reviews-slider .slick-dots {display:flex; justify-content:center; gap:10px; margin:20px 0 0;}
.reviews-slider .slick-dots li {margin:0;}
.reviews-slider .slick-dots button {display:block; width:10px; height:10px; padding:0; border:0; border-radius:50%; background:#ccc; font-size:0; cursor:pointer;}
.reviews-slider .slick-dots .slick-active button {background:var(--color-grey);}

/* FAQ (parts/faq.php) */
.faq-list {border-top:1px solid var(--color-border);}
.faq-item {border-bottom:1px solid var(--color-border);}
.faq-question {display:flex; align-items:center; justify-content:space-between; gap:20px; padding:15px 0; font-weight:700; cursor:pointer; list-style:none;}
.faq-question::-webkit-details-marker {display:none;}
.faq-question::after {content:"+"; flex:0 0 auto; font-size:2.4rem; line-height:1; color:var(--color-red);}
.faq-item[open] .faq-question::after {content:"\2212";}
.faq-answer {padding:0 0 15px;}
.faq-answer > :last-child {margin-bottom:0;}

/* City list (parts/city-list.php) */
.city-list-band {padding:40px 0; background:var(--color-red-dark); color:var(--color-white);}
.city-list-band .city-list-title,
.city-list-band .city-list a {color:var(--color-white);}
.city-list-title {text-align:center;}
.city-list {display:grid; grid-template-columns:1fr 1fr; gap:10px 20px;}
.city-list li {line-height:1.4;}
.city-list a {color:var(--color-red-dark); font-weight:700; text-decoration:underline;}
.city-list a:hover,
.city-list a:focus {text-decoration:none;}

/* Page hero (parts/page-hero.php) */
.page-hero img {display:block; width:100%; height:auto;}

/* About */
.ceo {display:grid; grid-template-columns:1fr; gap:30px;}
.ceo-photo img {display:block; width:100%; height:auto;}

/* Services */
.services-top {display:grid; grid-template-columns:1fr; gap:40px;}
.services-image img {display:block; width:100%; height:auto;}
.promise {background:var(--color-grey-light);}
.promise-list {display:grid; grid-template-columns:1fr; gap:20px; margin-bottom:30px; counter-reset:promise;}
.promise-item {counter-increment:promise; padding:30px; border:1px solid var(--color-border); border-radius:10px; background:var(--color-white);}
.promise-item::before {content:counter(promise); display:flex; align-items:center; justify-content:center; width:40px; height:40px; margin-bottom:20px; border-radius:50%; background:var(--color-red-deep); color:var(--color-white); font-size:1.6rem; font-weight:700;}
.promise-item-title {margin-bottom:10px;}
.promise-item p {margin:0;}
.promise-closing {max-width:1000px; margin:0 auto;}
.services-rows {display:grid; grid-template-columns:1fr; gap:50px;}
.service-row {display:grid; grid-template-columns:1fr; gap:25px;}
.service-row-image img {display:block; width:100%; height:auto; border-radius:10px;}
.service-row-title {margin-bottom:15px;}
.service-row-title a {color:var(--color-main);}
.service-row-title a:hover,
.service-row-title a:focus {color:var(--color-red-dark);}
.service-row-list {margin:0 0 25px 20px; list-style:disc; columns:1;}
.service-row-list li {margin-bottom:5px; line-height:1.5;}

/* Contact */
.contact-info {width:100%; max-width:600px; margin:0 auto; padding:40px 20px; color:var(--color-white); text-align:center;}
.contact-info-phone {display:inline-flex; align-items:center; gap:10px; margin-bottom:25px; font-size:3rem; font-weight:700; line-height:1.1; color:var(--color-white);}
.contact-info-phone:hover,
.contact-info-phone:focus {color:var(--color-white); text-decoration:underline;}
.contact-info-phone .icon {width:24px; height:24px;}
.contact-info-address {margin:0 0 25px; font-size:1.8rem; font-style:normal; line-height:1.6;}
.contact-info-address a {color:var(--color-white);}
.contact-info-serving {margin:0; padding-top:25px; border-top:1px solid rgba(255,255,255,0.2); font-size:1.6rem;}
.review-widgets {display:grid; grid-template-columns:1fr; gap:20px; margin-top:40px;}
.review-widget {overflow:hidden; border-radius:10px; text-align:center;}
.review-widget iframe {display:block; width:100%; border:0;}

/* Service area map (parts/service-map.php) */
.service-map-intro {max-width:800px; margin:0 auto 30px;}
.service-map-canvas {width:100%; height:400px; border-radius:10px; background:var(--color-grey-light);}
.map-info {font-family:var(--font-body); font-size:1.4rem; line-height:1.5;}
.map-info a {color:var(--color-red-dark); font-weight:700;}

/* Service pages */
.service-block {display:grid; grid-template-columns:1fr; gap:20px;}
.service-block h2 {margin-bottom:15px;}
.service-block .entry > :last-child {margin-bottom:0;}
.service-block-list {margin:0 0 0 20px; list-style:disc;}
.service-block-list li {margin-bottom:8px; line-height:1.6;}

.signs-list {display:grid; grid-template-columns:1fr; gap:15px; max-width:900px; margin:0 auto;}
.signs-list li {position:relative; padding-left:35px; line-height:1.6;}
.signs-list li::before {content:""; position:absolute; top:3px; left:0; width:20px; height:20px; border-radius:50%; background:var(--color-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 14px no-repeat;}

/* Service Area (city) */
.location-intro {max-width:900px; margin:0 auto;}
.stats-strip {padding:40px 0; background:var(--color-grey-light);}
.stats {display:grid; grid-template-columns:1fr 1fr; gap:15px;}
.stat {display:flex; flex-direction:column; gap:5px; padding:25px 15px; border:1px solid var(--color-border); border-radius:10px; background:var(--color-white); text-align:center;}
.stat-value {font-size:2.8rem; font-weight:700; line-height:1; color:var(--color-red-deep);}
.stat-label {font-size:1.4rem; line-height:1.3;}
.service-cards {display:grid; grid-template-columns:1fr; gap:20px;}
.service-card {display:flex; flex-direction:column; padding:25px; border:1px solid var(--color-border); border-radius:10px;}
.service-card-title {margin-bottom:10px;}
.service-card-title a {color:var(--color-main);}
.service-card-title a:hover,
.service-card-title a:focus {color:var(--color-red-dark);}
.service-card p {margin:0;}
.service-card .service-card-link {margin-top:auto; padding-top:15px; font-weight:700;}
.reviews {background:var(--color-grey-light);}


/* -- @FOOTER ----------------- */
.site-footer {color:var(--color-white);}
.site-footer a {color:var(--color-white);}
.site-footer a:hover,
.site-footer a:focus {color:var(--color-white); text-decoration:underline;}

/* Specials band — heading + white pill button */
.footer-specials {padding:40px 0; background:var(--color-red-deep);}
.footer-specials-row {display:flex; flex-direction:column; align-items:center; gap:20px;}
.footer-specials-title {margin:0; text-align:center; font-size:2.2rem; font-weight:700; color:var(--color-white);}
.site-footer .footer-specials-link {display:inline-block; flex:0 0 auto; padding:0 30px; border-radius:10px; background:var(--color-white); color:var(--color-red-deep); font-size:1.5rem; font-weight:700; line-height:50px; text-align:center; text-transform:uppercase; white-space:nowrap;}
.site-footer .footer-specials-link:hover,
.site-footer .footer-specials-link:focus {background:var(--color-navy-dark); color:var(--color-white); text-decoration:none;}

/* Main footer */
.footer-main {padding:60px 0 40px; background:var(--color-navy-dark);}
.footer-main-row {display:grid; grid-template-columns:1fr; gap:40px; text-align:center;}
.footer-logo img,
.footer-badge img {display:inline-block; width:200px; max-width:100%; height:auto;}
.footer-badge img {width:150px;}
.footer-title {margin-bottom:15px; text-transform:uppercase; color:var(--color-white);}
.footer-phone {display:inline-flex; align-items:center; gap:10px;}
.footer-phone .icon {width:14px; height:14px;}
.footer-address {margin:15px 0 0; font-style:normal; line-height:1.6;}
.footer-serving {margin:10px 0 0; font-size:1.4rem;}
.footerNav li {margin-bottom:5px; line-height:1.6;}

/* Bottom bar */
.footer-bottom {padding:30px 0 20px; background:var(--color-black);}
.social-links {display:flex; justify-content:center; gap:20px; margin-bottom:20px;}
.social-links a {display:flex; align-items:center; justify-content:center; width:40px; height:40px; border-radius:50%; background:var(--color-red-deep);}
.social-links a:hover,
.social-links a:focus {background:var(--color-red);}
.social-links .icon {width:18px; height:18px;}
.copy {margin:0; text-align:center; font-size:1.4rem;}


/* #Clearer
================================================== */
.container:after,
.row:after,
.entry:after {content:""; display:table; clear:both;}
