/*
Theme Name: HomeShield Pest
Theme URI: https://example.com/homeshield-pest
Author: HomeShield
Author URI: https://example.com
Description: High-converting single-page residential pest control landing page theme optimized for pay-per-call lead generation. Mobile-first, sticky call button, fully editable via the WordPress Customizer.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: homeshield-pest
Tags: one-column, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ---------- Tokens ---------- */
:root{
  --bg:#fafffb;
  --fg:#0f1f17;
  --muted:#5b6b63;
  --card:#ffffff;
  --border:#e6ece8;
  --primary:#1f6b46;
  --primary-fg:#ffffff;
  --secondary:#eaf3ee;
  --cta:#ff6a2b;
  --cta-glow:#ff8a4c;
  --cta-fg:#ffffff;
  --destructive:#c0392b;
  --gradient-hero:linear-gradient(135deg,rgba(15,31,23,.85),rgba(31,107,70,.55));
  --gradient-cta:linear-gradient(135deg,var(--cta),var(--cta-glow));
  --shadow-cta:0 10px 30px -8px rgba(255,106,43,.5);
  --shadow-card:0 4px 20px -4px rgba(15,31,23,.12);
  --radius:12px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  background:var(--bg);
  color:var(--fg);
  font-family:'Inter',ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
h1,h2,h3,h4{font-family:'Plus Jakarta Sans',ui-sans-serif,system-ui,sans-serif;letter-spacing:-.02em;margin:0}
h1{font-size:clamp(2.25rem,5vw,3.75rem);font-weight:800;line-height:1.05}
h2{font-size:clamp(1.75rem,3.5vw,2.5rem);font-weight:700;line-height:1.15}
h3{font-size:1.25rem;font-weight:700}
p{margin:0}

.container{max-width:1120px;margin:0 auto;padding:0 1rem}

/* ---------- Header ---------- */
.site-header{
  position:sticky;top:0;z-index:40;
  background:rgba(250,255,251,.85);
  backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(230,236,232,.6);
}
.site-header .container{display:flex;align-items:center;justify-content:space-between;padding-top:.75rem;padding-bottom:.75rem}
.brand{display:flex;align-items:center;gap:.5rem;font-weight:700}
.brand-mark{width:36px;height:36px;border-radius:10px;background:var(--primary);color:var(--primary-fg);display:inline-flex;align-items:center;justify-content:center}
.brand-name{font-size:1.05rem}
.header-phone{display:none;align-items:center;gap:.4rem;color:var(--primary);font-weight:600;font-size:.9rem}
@media(min-width:640px){.header-phone{display:inline-flex}.header-call-sm{display:none}}

/* ---------- Buttons ---------- */
.btn-call{
  display:inline-flex;align-items:center;justify-content:center;gap:.6rem;
  background:var(--gradient-cta);color:var(--cta-fg);
  font-weight:600;border-radius:999px;border:0;cursor:pointer;
  box-shadow:var(--shadow-cta);
  transition:transform .15s ease;
  text-decoration:none;
}
.btn-call:hover{transform:scale(1.03)}
.btn-call:active{transform:scale(.98)}
.btn-call .ico{width:1.1em;height:1.1em;fill:currentColor}
.btn-sm{height:44px;padding:0 1.1rem;font-size:.9rem}
.btn-md{height:48px;padding:0 1.4rem;font-size:1rem}
.btn-lg{height:56px;padding:0 1.8rem;font-size:1.1rem}
.btn-xl{height:64px;padding:0 2.2rem;font-size:1.2rem}
.btn-block{width:100%}

@keyframes pulse-ring{
  0%{box-shadow:0 0 0 0 rgba(255,106,43,.6),var(--shadow-cta)}
  70%{box-shadow:0 0 0 14px rgba(255,106,43,0),var(--shadow-cta)}
  100%{box-shadow:0 0 0 0 rgba(255,106,43,0),var(--shadow-cta)}
}
.pulse-ring{animation:pulse-ring 2s infinite}

/* ---------- Hero ---------- */
.hero{position:relative;isolation:isolate;overflow:hidden;color:#fff}
.hero .bg,.cta-final .bg{position:absolute;inset:0;z-index:-2;width:100%;height:100%;object-fit:cover}
.hero .overlay,.cta-final .overlay{position:absolute;inset:0;z-index:-1;background:var(--gradient-hero)}
.hero .container{padding-top:5rem;padding-bottom:5rem}
@media(min-width:768px){.hero .container{padding-top:7rem;padding-bottom:7rem}}
.hero-inner{max-width:640px}
.eyebrow{
  display:inline-flex;align-items:center;gap:.5rem;
  border:1px solid rgba(255,255,255,.25);
  background:rgba(255,255,255,.1);
  padding:.4rem 1rem;border-radius:999px;
  font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.1em;
  backdrop-filter:blur(6px);
}
.hero p.lead{margin-top:1.25rem;font-size:1.15rem;color:rgba(255,255,255,.88)}
.hero-cta{margin-top:2rem;display:flex;flex-direction:column;align-items:flex-start;gap:1rem}
@media(min-width:640px){.hero-cta{flex-direction:row;align-items:center}}
.hero-phone{font-size:1.5rem;font-weight:700;color:#fff}
.hero .hint{margin-top:1rem;font-size:.85rem;color:rgba(255,255,255,.7)}

/* ---------- Sections ---------- */
section.pad{padding:4rem 0}
@media(min-width:768px){section.pad{padding:6rem 0}}
.section-head{max-width:640px;margin:0 auto;text-align:center}
.section-head p{margin-top:1rem;color:var(--muted)}

/* ---------- Services ---------- */
.services-grid{margin-top:3rem;display:grid;gap:1.5rem;grid-template-columns:1fr}
@media(min-width:640px){.services-grid{grid-template-columns:repeat(2,1fr)}}
@media(min-width:1024px){.services-grid{grid-template-columns:repeat(3,1fr)}}
.service-card{
  background:var(--card);border:1px solid var(--border);border-radius:18px;overflow:hidden;
  display:flex;flex-direction:column;box-shadow:var(--shadow-card);
  transition:box-shadow .25s;
}
.service-card:hover{box-shadow:0 10px 30px -10px rgba(255,106,43,.3)}
.service-card .img-wrap{aspect-ratio:4/3;overflow:hidden}
.service-card img{width:100%;height:100%;object-fit:cover;transition:transform .5s}
.service-card:hover img{transform:scale(1.05)}
.service-card .body{padding:1.5rem;display:flex;flex-direction:column;flex:1}
.service-card p{color:var(--muted);font-size:.9rem;margin-top:.5rem;flex:1}
.service-card .btn-call{margin-top:1.25rem}

/* ---------- Why Us ---------- */
.why{background:rgba(234,243,238,.6)}
.why-grid{margin-top:3rem;display:grid;gap:1.5rem;grid-template-columns:1fr}
@media(min-width:640px){.why-grid{grid-template-columns:repeat(2,1fr)}}
@media(min-width:1024px){.why-grid{grid-template-columns:repeat(4,1fr)}}
.why-card{background:var(--card);border:1px solid var(--border);border-radius:18px;padding:1.5rem;box-shadow:var(--shadow-card)}
.why-icon{width:48px;height:48px;border-radius:14px;background:rgba(31,107,70,.1);color:var(--primary);display:inline-flex;align-items:center;justify-content:center}
.why-card h3{margin-top:1rem;font-size:1.05rem}
.why-card p{margin-top:.5rem;color:var(--muted);font-size:.9rem}
.center-cta{margin-top:3rem;display:flex;justify-content:center}

/* ---------- Qualification ---------- */
.qual-grid{display:grid;gap:2.5rem;align-items:center;grid-template-columns:1fr}
@media(min-width:1024px){.qual-grid{grid-template-columns:1fr 1fr}}
.qual-list{margin-top:2rem;list-style:none;padding:0;display:flex;flex-direction:column;gap:1rem}
.qual-list li{display:flex;align-items:flex-start;gap:.75rem}
.qual-list .badge{flex:0 0 24px;width:24px;height:24px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;margin-top:2px}
.qual-list .ok{background:rgba(31,107,70,.15);color:var(--primary)}
.qual-list .no{background:rgba(192,57,43,.12);color:var(--destructive)}
.qual-image{position:relative}
.qual-image .frame{aspect-ratio:4/5;overflow:hidden;border-radius:24px;box-shadow:var(--shadow-card)}
.qual-image .frame img{width:100%;height:100%;object-fit:cover}
.qual-badge{position:absolute;left:-1.5rem;bottom:-1.5rem;background:var(--card);padding:1rem 1.25rem;border-radius:16px;box-shadow:var(--shadow-card);display:none;align-items:center;gap:.75rem}
@media(min-width:640px){.qual-badge{display:flex}}
.qual-badge .ico{color:var(--primary)}

/* ---------- Final CTA ---------- */
.cta-final{position:relative;isolation:isolate;overflow:hidden;color:#fff;text-align:center}
.cta-final .container{padding:5rem 1rem}
.cta-final p.lead{margin-top:1.25rem;color:rgba(255,255,255,.88);font-size:1.1rem}
.cta-final .cta-stack{margin-top:2.5rem;display:flex;flex-direction:column;align-items:center;gap:1.25rem}
.cta-final .phone{font-size:1.875rem;font-weight:800;color:#fff}
@media(min-width:640px){.cta-final .phone{font-size:2.25rem}}

/* ---------- Footer ---------- */
.site-footer{border-top:1px solid var(--border);background:rgba(234,243,238,.4)}
.site-footer .container{padding:2.5rem 1rem 7rem}
@media(min-width:640px){.site-footer .container{padding-bottom:2.5rem}}
.footer-row{display:flex;flex-direction:column;gap:1.25rem;align-items:flex-start;justify-content:space-between}
@media(min-width:640px){.footer-row{flex-direction:row;align-items:center}}
.footer-phone{display:inline-flex;align-items:center;gap:.4rem;color:var(--primary);font-weight:600;font-size:.9rem}
.disclaimer{margin-top:1.5rem;font-size:.78rem;line-height:1.6;color:var(--muted)}
.disclaimer strong{color:var(--fg)}
.copyright{margin-top:1rem;font-size:.78rem;color:var(--muted)}

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta{
  position:fixed;left:0;right:0;bottom:0;z-index:50;
  background:rgba(250,255,251,.96);backdrop-filter:blur(8px);
  border-top:1px solid var(--border);padding:.75rem;
  box-shadow:0 -8px 24px -12px rgba(15,31,23,.25);
}
@media(min-width:640px){.sticky-cta{display:none}}
