/*
Theme Name: Wpihub Plumber
Theme URI: https://wpihub.com/themes/wpihub-plumber
Author: WPIHUB
Author URI: https://wpihub.com
Description: A professional, modern, lightweight and fully responsive WordPress theme built for plumbers, plumbing companies, emergency plumbers and local plumbing businesses. Includes Services, Service Areas and Testimonials custom post types, a full Customizer-based theme options panel, local SEO features (schema markup, breadcrumbs, service+location landing pages), click-to-call, WhatsApp integration and a fast, no-jQuery front end.
Version: 1.1.0
Requires at least: 6.0
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: wpihub-plumber
Tags: business, blog, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, one-column, two-columns, right-sidebar, theme-options
*/

/* =============================================================
   TABLE OF CONTENTS
   1. Custom Properties / Design Tokens
   2. Reset & Base
   3. Layout & Containers
   4. Typography
   5. Buttons
   6. Header
   7. Hero
   8. Trust / Features
   9. About
   10. Services
   11. Why Choose Us
   12. How It Works
   13. Areas We Serve
   14. Emergency
   15. Testimonials
   16. FAQ
   17. Blog
   18. Contact
   19. Footer
   20. Floating Buttons
   21. Breadcrumb
   22. Single Service / Area
   23. Utilities
   24. Responsive
============================================================= */

/* 1. Custom Properties -------------------------------------- */
:root{
  --wpihub-primary:#1462d1;
  --wpihub-secondary:#4fa3ff;
  --wpihub-accent:#0e9f6e;
  --wpihub-text:#28303f;
  --wpihub-bg:#ffffff;
  --wpihub-muted:#64748b;
  --wpihub-border:#e6e9ef;
  --wpihub-soft-bg:#f5f8fc;
  --wpihub-radius:14px;
  --wpihub-shadow:0 10px 30px rgba(20,98,209,.08);
  --wpihub-container:1200px;
  --wpihub-font-body:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --wpihub-font-heading:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
}

/* 2. Reset & Base --------------------------------------------*/
*,*::before,*::after{box-sizing:border-box;}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;}
body{
  margin:0;
  font-family:var(--wpihub-font-body);
  color:var(--wpihub-text);
  background:var(--wpihub-bg);
  line-height:1.65;
  font-size:16px;
}
img{max-width:100%;height:auto;display:block;}
a{color:var(--wpihub-primary);text-decoration:none;}
a:hover{color:var(--wpihub-secondary);}
ul{margin:0;padding:0;list-style:none;}
figure{margin:0;}
input,textarea,select,button{font-family:inherit;font-size:1rem;}
:focus-visible{outline:3px solid var(--wpihub-secondary);outline-offset:2px;}
.skip-link{position:absolute;left:-9999px;top:0;background:#000;color:#fff;padding:10px 16px;z-index:9999;}
.skip-link:focus{left:10px;top:10px;}

/* 3. Layout ----------------------------------------------------*/
.wpihub-container{max-width:var(--wpihub-container);margin:0 auto;padding:0 20px;}
.wpihub-section{padding:64px 0;}
.wpihub-section-soft{background:var(--wpihub-soft-bg);}
.wpihub-section-head{max-width:720px;margin:0 auto 40px;text-align:center;}
.wpihub-eyebrow{display:inline-block;color:var(--wpihub-primary);font-weight:700;letter-spacing:.04em;text-transform:uppercase;font-size:.8rem;margin-bottom:10px;}
.wpihub-grid{display:grid;gap:24px;}
.wpihub-grid-2{grid-template-columns:repeat(2,1fr);}
.wpihub-grid-3{grid-template-columns:repeat(3,1fr);}
.wpihub-grid-4{grid-template-columns:repeat(4,1fr);}
.wpihub-card{background:#fff;border:1px solid var(--wpihub-border);border-radius:var(--wpihub-radius);box-shadow:var(--wpihub-shadow);padding:28px;}

/* 4. Typography -------------------------------------------------*/
h1,h2,h3,h4,h5,h6{font-family:var(--wpihub-font-heading);line-height:1.25;font-weight:800;margin:0 0 16px;color:var(--wpihub-text);}
h1{font-size:clamp(2rem,4vw,3rem);}
h2{font-size:clamp(1.6rem,3vw,2.2rem);}
h3{font-size:1.25rem;}
p{margin:0 0 16px;color:var(--wpihub-muted);}

/* 5. Buttons ------------------------------------------------------*/
.wpihub-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:14px 26px;border-radius:999px;font-weight:700;border:2px solid transparent;cursor:pointer;transition:transform .15s ease,box-shadow .15s ease;}
.wpihub-btn-primary{background:var(--wpihub-primary);color:#fff;}
.wpihub-btn-primary:hover{color:#fff;transform:translateY(-2px);box-shadow:0 10px 20px rgba(20,98,209,.25);}
.wpihub-btn-outline{background:transparent;border-color:currentColor;color:var(--wpihub-primary);}
.wpihub-btn-outline:hover{background:var(--wpihub-primary);color:#fff;}
.wpihub-btn-whatsapp{background:#25D366;color:#fff;}
.wpihub-btn-whatsapp:hover{color:#fff;filter:brightness(0.95);}
.wpihub-btn-sm{padding:8px 16px;font-size:.85rem;}
.wpihub-btn-block{width:100%;}

/* 6. Header ---------------------------------------------------------*/
.wpihub-header{border-bottom:1px solid var(--wpihub-border);background:#fff;z-index:999;}
.wpihub-header.is-sticky{position:sticky;top:0;}
.wpihub-header-inner{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px 0;}
.wpihub-branding{display:flex;align-items:center;gap:12px;min-width:0;flex:1 1 auto;overflow:hidden;}
.wpihub-branding-link{display:flex;align-items:center;flex-wrap:nowrap;gap:12px;text-decoration:none;min-width:0;color:inherit;line-height:1;}
.wpihub-branding-link:hover{color:inherit;}
.wpihub-branding-logo{height:40px!important;width:40px!important;max-height:40px!important;max-width:40px!important;min-width:40px;border-radius:50%;object-fit:cover;flex-shrink:0;display:block;margin:0;}
.wpihub-branding-name{display:block;font-size:1.15rem;font-weight:800;line-height:1.2;color:var(--wpihub-text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.wpihub-footer .wpihub-branding-name{color:#fff;font-size:1.1rem;}
.wpihub-footer .wpihub-branding{margin-bottom:14px;}
.wpihub-primary-nav{display:flex;}
.wpihub-primary-nav ul{display:flex;gap:26px;align-items:center;}
.wpihub-primary-nav a{color:var(--wpihub-text);font-weight:600;}
.wpihub-primary-nav a:hover{color:var(--wpihub-primary);}
.wpihub-header-actions{display:flex;align-items:center;gap:10px;}
.wpihub-menu-toggle{display:none;background:none;border:none;cursor:pointer;padding:8px;}
.wpihub-menu-toggle span{display:block;width:24px;height:2px;background:var(--wpihub-text);margin:5px 0;}
.wpihub-mobile-nav{display:none;}
.wpihub-mobile-nav.is-open{display:block;padding:10px 0 20px;}
.wpihub-mobile-nav ul{display:flex;flex-direction:column;gap:4px;}
.wpihub-mobile-nav a{display:block;padding:10px 4px;border-bottom:1px solid var(--wpihub-border);font-weight:600;color:var(--wpihub-text);}
.wpihub-mobile-actions{display:flex;gap:10px;padding-top:14px;}

/* 7. Hero ----------------------------------------------------------*/
.wpihub-hero{position:relative;color:#fff;background:linear-gradient(120deg,var(--wpihub-primary),var(--wpihub-secondary));padding:90px 0;overflow:hidden;}
.wpihub-hero.has-image{background-size:cover;background-position:center;}
.wpihub-hero::before{content:"";position:absolute;inset:0;background:rgba(10,20,40,.45);z-index:0;}
.wpihub-hero.no-overlay::before{content:none;}
.wpihub-hero-inner{position:relative;z-index:1;display:grid;grid-template-columns:1.1fr .9fr;gap:40px;align-items:center;}
.wpihub-hero-content h1{color:#fff;}
.wpihub-hero-content p{color:rgba(255,255,255,.9);font-size:1.1rem;}
.wpihub-hero-actions{display:flex;gap:14px;flex-wrap:wrap;margin-top:24px;}
.wpihub-hero-form{background:#fff;color:var(--wpihub-text);border-radius:var(--wpihub-radius);padding:28px;box-shadow:var(--wpihub-shadow);}
.wpihub-hero-form h3{margin-bottom:6px;}
.wpihub-form-row{margin-bottom:14px;}
.wpihub-form-row label{display:block;font-weight:600;font-size:.85rem;margin-bottom:6px;}
.wpihub-form-row input,.wpihub-form-row select,.wpihub-form-row textarea{width:100%;padding:12px 14px;border:1px solid var(--wpihub-border);border-radius:8px;background:#fbfcfe;}
.wpihub-form-note{font-size:.8rem;color:var(--wpihub-muted);margin-top:10px;}

/* 8. Trust ------------------------------------------------------*/
.wpihub-trust-list{display:flex;flex-wrap:wrap;justify-content:center;gap:14px 28px;}
.wpihub-trust-item{display:flex;align-items:center;gap:10px;font-weight:700;}
.wpihub-trust-item .dashicons{color:var(--wpihub-accent);}

/* 9. About ---------------------------------------------------------*/
.wpihub-about-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:48px;align-items:center;}
.wpihub-about-media img{border-radius:var(--wpihub-radius);box-shadow:var(--wpihub-shadow);}
.wpihub-about-experience{display:inline-flex;flex-direction:column;background:var(--wpihub-primary);color:#fff;padding:16px 22px;border-radius:12px;margin:14px 0;}
.wpihub-about-experience strong{font-size:1.8rem;line-height:1;}
.wpihub-about-role{color:var(--wpihub-primary);font-weight:700;margin-top:-8px;margin-bottom:10px;}

/* 10. Services ------------------------------------------------------*/
.wpihub-service-card{text-align:left;transition:transform .15s ease;}
.wpihub-service-card:hover{transform:translateY(-4px);}
.wpihub-service-icon{width:56px;height:56px;border-radius:14px;background:var(--wpihub-soft-bg);display:flex;align-items:center;justify-content:center;margin-bottom:16px;color:var(--wpihub-primary);}
.wpihub-service-icon img{width:32px;height:32px;object-fit:contain;}
.wpihub-service-card h3 a{color:inherit;}

/* 11. Why choose ----------------------------------------------------*/
.wpihub-why-card{text-align:center;}
.wpihub-why-card .wpihub-service-icon{margin:0 auto 16px;}

/* 12. How it works ----------------------------------------------------*/
.wpihub-steps{display:flex;flex-wrap:wrap;gap:24px;counter-reset:step;}
.wpihub-step{flex:1 1 220px;text-align:center;position:relative;padding-top:10px;}
.wpihub-step-number{width:46px;height:46px;border-radius:50%;background:var(--wpihub-primary);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800;margin:0 auto 14px;}

/* 13. Areas -------------------------------------------------------*/
.wpihub-area-card{text-align:center;}
.wpihub-area-card a{color:inherit;font-weight:700;}
.wpihub-area-card .dashicons{color:var(--wpihub-primary);}

/* 14. Emergency ---------------------------------------------------*/
.wpihub-emergency{background:#c0261e;color:#fff;text-align:center;}
.wpihub-emergency h2{color:#fff;}
.wpihub-emergency p{color:rgba(255,255,255,.9);}
.wpihub-emergency .wpihub-btn-primary{background:#fff;color:#c0261e;}
.wpihub-emergency .wpihub-btn-whatsapp{background:#128C41;}

/* 15. Testimonials --------------------------------------------------*/
.wpihub-testimonial-card{position:relative;}
.wpihub-testimonial-stars{color:#f5a524;margin-bottom:10px;letter-spacing:2px;}
.wpihub-testimonial-person{display:flex;align-items:center;gap:12px;margin-top:16px;}
.wpihub-testimonial-person img{width:44px;height:44px;border-radius:50%;object-fit:cover;}
.wpihub-testimonial-person span{display:block;font-size:.8rem;color:var(--wpihub-muted);}
.wpihub-rating-badge{display:inline-flex;align-items:center;gap:6px;font-size:.9rem;color:var(--wpihub-text);}
.wpihub-rating-badge .wpihub-rating{color:#f5a524;letter-spacing:1px;}
.wpihub-rating-badge .wpihub-rating-count{color:var(--wpihub-muted);}
.wpihub-verified-badge{display:block;font-size:.72rem;font-weight:700;color:var(--wpihub-accent);}
.wpihub-review-form-wrap summary{outline:none;}
.wpihub-review-form-wrap summary::-webkit-details-marker{display:none;}
.wpihub-review-form-wrap summary::marker{content:"";}

/* 16. FAQ -----------------------------------------------------------*/
.wpihub-faq-item{border:1px solid var(--wpihub-border);border-radius:12px;margin-bottom:12px;overflow:hidden;background:#fff;}
.wpihub-faq-question{width:100%;text-align:left;background:none;border:none;padding:18px 20px;font-weight:700;display:flex;justify-content:space-between;align-items:center;cursor:pointer;}
.wpihub-faq-answer{padding:0 20px;max-height:0;overflow:hidden;transition:max-height .25s ease,padding .25s ease;}
.wpihub-faq-item.is-open .wpihub-faq-answer{padding:0 20px 18px;max-height:600px;}
.wpihub-faq-icon{transition:transform .2s ease;}
.wpihub-faq-item.is-open .wpihub-faq-icon{transform:rotate(45deg);}

/* 17. Blog -----------------------------------------------------------*/
.wpihub-blog-card img{border-radius:var(--wpihub-radius) var(--wpihub-radius) 0 0;aspect-ratio:16/10;object-fit:cover;}
.wpihub-blog-card{padding:0;overflow:hidden;}
.wpihub-blog-card-body{padding:22px;}
.wpihub-blog-meta{font-size:.8rem;color:var(--wpihub-muted);text-transform:uppercase;letter-spacing:.03em;margin-bottom:8px;}
.wpihub-blog-card h3 a{color:inherit;}

/* 18. Contact ---------------------------------------------------------*/
.wpihub-contact-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:40px;}
.wpihub-contact-info-item{display:flex;gap:14px;margin-bottom:20px;}
.wpihub-contact-info-item .dashicons{color:var(--wpihub-primary);font-size:26px;width:26px;height:26px;}
.wpihub-contact-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px;}
.wpihub-map-wrap{border-radius:var(--wpihub-radius);overflow:hidden;box-shadow:var(--wpihub-shadow);margin-top:24px;}
.wpihub-map-wrap iframe{width:100%;height:320px;border:0;display:block;}

/* 19. Footer -----------------------------------------------------------*/
.wpihub-footer{background:#101827;color:#cbd5e1;padding:60px 0 0;}
.wpihub-footer h4{color:#fff;font-size:1rem;margin-bottom:18px;}
.wpihub-footer a{color:#cbd5e1;}
.wpihub-footer a:hover{color:#fff;}
.wpihub-footer-grid{display:grid;grid-template-columns:1.3fr 1fr 1fr 1fr;gap:32px;padding-bottom:40px;}
.wpihub-footer-grid li{margin-bottom:10px;}
.wpihub-footer-social{display:flex;gap:10px;margin-top:16px;}
.wpihub-footer-social a{width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,.08);display:flex;align-items:center;justify-content:center;}
.wpihub-footer-bottom{border-top:1px solid rgba(255,255,255,.1);padding:20px 0;display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;font-size:.85rem;}
.wpihub-footer-bottom-links{display:flex;gap:16px;}

/* 20. Floating buttons ----------------------------------------------------*/
.wpihub-floating-buttons{position:fixed;bottom:20px;z-index:9999;display:flex;flex-direction:column;gap:12px;}
.wpihub-floating-buttons.pos-right{right:20px;}
.wpihub-floating-buttons.pos-left{left:20px;}
.wpihub-floating-btn{width:56px;height:56px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;box-shadow:0 8px 20px rgba(0,0,0,.25);font-size:24px;}
.wpihub-floating-btn.call{background:var(--wpihub-primary);}
.wpihub-floating-btn.whatsapp{background:#25D366;}

/* 21. Breadcrumb -----------------------------------------------------------*/
.wpihub-breadcrumb{padding:16px 0;font-size:.9rem;color:var(--wpihub-muted);background:var(--wpihub-soft-bg);}
.wpihub-breadcrumb a{color:var(--wpihub-muted);}
.wpihub-breadcrumb .sep{margin:0 6px;}
.wpihub-breadcrumb .current{color:var(--wpihub-text);font-weight:600;}

/* 22. Single service / area --------------------------------------------------*/
.wpihub-single-hero{background:var(--wpihub-soft-bg);padding:48px 0;}
.wpihub-single-layout{display:grid;grid-template-columns:2fr 1fr;gap:40px;align-items:start;}
.wpihub-cta-box{background:var(--wpihub-primary);color:#fff;border-radius:var(--wpihub-radius);padding:28px;}
.wpihub-cta-box h3{color:#fff;}
.wpihub-cta-box .wpihub-btn-primary{background:#fff;color:var(--wpihub-primary);}
.wpihub-related-list a{display:block;padding:10px 0;border-bottom:1px solid var(--wpihub-border);font-weight:600;}
.wpihub-meta-list{list-style:none;margin:0 0 20px;}
.wpihub-meta-list li{padding:8px 0;border-bottom:1px dashed var(--wpihub-border);}
.wpihub-icon-heading{display:flex;align-items:center;gap:12px;margin:0 0 16px;}
.wpihub-icon-heading-badge{width:38px;height:38px;min-width:38px;border-radius:50%;background:var(--wpihub-soft-bg);color:var(--wpihub-primary);display:flex;align-items:center;justify-content:center;}
.wpihub-icon-heading-badge .dashicons{font-size:20px;width:20px;height:20px;}
.wpihub-content-block{background:#fff;border:1px solid var(--wpihub-border);border-radius:var(--wpihub-radius);padding:26px 28px;margin-bottom:22px;}
.wpihub-content-block:last-child{margin-bottom:0;}
.wpihub-content-block .wpihub-icon-heading{margin-bottom:12px;}
.wpihub-content-block p:last-child{margin-bottom:0;}
/* Plumber Profile block (Title -> Icon -> Photo -> About -> FAQ) */
.wpihub-profile-card{background:#fff;border:1px solid var(--wpihub-border);border-radius:var(--wpihub-radius);box-shadow:var(--wpihub-shadow);padding:32px;margin-bottom:28px;text-align:center;}
.wpihub-profile-title{margin-bottom:18px;}
.wpihub-profile-icon{width:56px;height:56px;border-radius:50%;background:var(--wpihub-soft-bg);color:var(--wpihub-primary);display:flex;align-items:center;justify-content:center;margin:0 auto 20px;font-size:26px;}
.wpihub-profile-icon .dashicons{font-size:26px;width:26px;height:26px;}
.wpihub-profile-body{display:flex;align-items:center;gap:24px;text-align:left;}
.wpihub-profile-photo{flex-shrink:0;}
.wpihub-profile-photo img{width:110px;height:110px;border-radius:50%;object-fit:cover;border:3px solid var(--wpihub-soft-bg);}
.wpihub-profile-photo .dashicons{width:110px;height:110px;font-size:110px;color:var(--wpihub-border);}
.wpihub-profile-details{min-width:0;}
.wpihub-profile-name{margin-bottom:2px;}
.wpihub-profile-role{color:var(--wpihub-primary);font-weight:700;margin-bottom:10px;}
.wpihub-profile-about{margin:10px 0 0;}
.wpihub-profile-address{margin:8px 0 0;font-size:.9rem;color:var(--wpihub-muted);display:flex;align-items:center;gap:6px;}
.wpihub-profile-address .dashicons{color:var(--wpihub-primary);}
.wpihub-profile-faq{margin-top:24px;text-align:left;}
@media (max-width:600px){
	.wpihub-profile-body{flex-direction:column;text-align:center;}
	.wpihub-profile-details{text-align:center;}
}

/* 23. Utilities -----------------------------------------------------------*/
.text-center{text-align:center;}
.mt-0{margin-top:0;}
.mb-0{margin-bottom:0;}
.wpihub-rating{color:#f5a524;}
.screen-reader-text{position:absolute!important;clip:rect(1px,1px,1px,1px);width:1px;height:1px;overflow:hidden;}

/* 24. Responsive -----------------------------------------------------------*/
@media (max-width:960px){
  .wpihub-hero-inner{grid-template-columns:1fr;}
  .wpihub-about-grid,.wpihub-contact-grid,.wpihub-single-layout{grid-template-columns:1fr;}
  .wpihub-grid-2,.wpihub-grid-3,.wpihub-grid-4{grid-template-columns:repeat(2,1fr);}
  .wpihub-footer-grid{grid-template-columns:1fr 1fr;}
}
@media (max-width:720px){
  .wpihub-primary-nav{display:none;}
  .wpihub-header-actions .wpihub-header-call-text{display:none;}
  .wpihub-menu-toggle{display:block;}
  .wpihub-grid-2,.wpihub-grid-3,.wpihub-grid-4{grid-template-columns:1fr;}
  .wpihub-footer-grid{grid-template-columns:1fr;}
  .wpihub-section{padding:44px 0;}
  h1{font-size:1.8rem;}
}
