/*
Theme Name: Story Home Services
Theme URI: https://storyhomeservices.com/
Author: Story Home Services
Description: A polished, mobile-friendly WordPress theme for Story Home Services. Designed to preserve existing WordPress page content while improving navigation, typography, calls to action, and page presentation.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: story-home-services
*/
:root{--shs-navy:#142f43;--shs-navy-deep:#0d2232;--shs-green:#2e6b50;--shs-green-dark:#24563f;--shs-gold:#d6a85f;--shs-ink:#263541;--shs-muted:#63727c;--shs-paper:#f5f7f5;--shs-white:#fff;--shs-line:#e2e9e5;--shs-radius:18px;--shs-shadow:0 14px 38px rgba(18,44,61,.10)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#fff;color:var(--shs-ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:17px;line-height:1.7;-webkit-font-smoothing:antialiased}a{color:var(--shs-green);text-decoration-thickness:1px;text-underline-offset:3px}a:hover{color:var(--shs-green-dark)}img{max-width:100%;height:auto;border-radius:12px}h1,h2,h3,h4{color:var(--shs-navy);font-family:inherit;font-weight:750;line-height:1.13;letter-spacing:-.035em;margin:0 0 .7em}h1{font-size:clamp(2.35rem,5vw,4.4rem)}h2{font-size:clamp(1.8rem,3.4vw,2.75rem);margin-top:1.25em}h3{font-size:1.35rem;margin-top:1.1em}p{margin:0 0 1.1em}ul,ol{padding-left:1.35em}button,input,textarea,select{font:inherit}.shs-topbar{background:var(--shs-navy-deep);color:#eaf1ed;font-size:.86rem}.shs-topbar-inner,.shs-header-inner,.shs-footer-inner{width:min(1160px,calc(100% - 40px));margin:auto}.shs-topbar-inner{display:flex;justify-content:space-between;gap:16px;padding:9px 0}.shs-topbar a{color:#fff;text-decoration:none}.shs-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.96);backdrop-filter:blur(12px);border-bottom:1px solid var(--shs-line)}.shs-header-inner{min-height:82px;display:flex;align-items:center;justify-content:space-between;gap:24px}.shs-brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--shs-navy);font-weight:800;letter-spacing:-.025em;font-size:1.12rem;line-height:1.15}.shs-brand small{display:block;color:var(--shs-muted);font-size:.68rem;letter-spacing:.12em;text-transform:uppercase;font-weight:700;margin-top:5px}.shs-brand img{width:auto;max-width:190px;max-height:58px;object-fit:contain;border-radius:0}.custom-logo-link img{max-width:190px;max-height:58px;object-fit:contain;border-radius:0}.shs-nav{display:flex;align-items:center;gap:clamp(12px,2vw,27px)}.shs-nav ul{display:flex;align-items:center;gap:clamp(12px,2vw,25px);list-style:none;margin:0;padding:0}.shs-nav li{margin:0}.shs-nav a{color:var(--shs-navy);font-weight:650;font-size:.92rem;text-decoration:none}.shs-nav a:hover{color:var(--shs-green)}.shs-nav .current-menu-item>a{color:var(--shs-green)}.shs-button,.wp-block-button__link,.shs-form button,.shs-form input[type=submit]{display:inline-flex;align-items:center;justify-content:center;gap:9px;border:0;border-radius:999px;background:var(--shs-green);color:#fff!important;padding:13px 23px;font-weight:750;font-size:.96rem;text-decoration:none;box-shadow:0 7px 18px rgba(46,107,80,.18);transition:transform .18s ease,background .18s ease}.shs-button:hover,.wp-block-button__link:hover,.shs-form button:hover,.shs-form input[type=submit]:hover{background:var(--shs-green-dark);color:#fff;transform:translateY(-2px)}.shs-button-outline{background:transparent;color:#fff!important;border:1px solid rgba(255,255,255,.55);box-shadow:none}.shs-mobile-cta{display:none}.shs-hero{position:relative;overflow:hidden;background:radial-gradient(ellipse at 80% 20%,rgba(91,143,112,.35),transparent 35%),linear-gradient(120deg,#102b3e 0%,#1d4a45 100%);color:#fff}.shs-hero:after{content:"";position:absolute;inset:auto -10% -250px 45%;height:430px;border:1px solid rgba(255,255,255,.12);border-radius:50%;transform:rotate(-18deg);pointer-events:none}.shs-hero-inner{position:relative;z-index:1;width:min(1160px,calc(100% - 40px));margin:auto;padding:clamp(66px,9vw,112px) 0 clamp(70px,9vw,116px);max-width:1160px}.shs-eyebrow{display:inline-flex;align-items:center;gap:9px;color:#d9e8df;text-transform:uppercase;letter-spacing:.15em;font-size:.76rem;font-weight:800;margin-bottom:22px}.shs-eyebrow:before{content:"";width:28px;height:2px;background:var(--shs-gold)}.shs-hero h1{max-width:790px;color:#fff;margin-bottom:20px}.shs-hero p{max-width:650px;color:#e0e9e5;font-size:clamp(1.05rem,1.8vw,1.2rem)}.shs-hero-actions{display:flex;flex-wrap:wrap;gap:13px;margin-top:30px}.shs-proof{display:flex;flex-wrap:wrap;gap:22px;margin-top:42px;color:#edf4ef;font-size:.9rem;font-weight:650}.shs-proof span:before{content:"✓";color:#d6b574;font-weight:900;margin-right:9px}.shs-main{width:min(1160px,calc(100% - 40px));margin:0 auto;padding:48px 0 80px}.shs-main>.entry-content{max-width:900px;margin:0 auto}.shs-main .entry-title{max-width:900px;margin:0 auto 26px}.shs-page-intro{background:var(--shs-paper);border-bottom:1px solid var(--shs-line);padding:56px 20px 48px;text-align:center}.shs-page-intro h1{max-width:900px;margin:0 auto 14px}.shs-page-intro p{max-width:720px;margin:0 auto;color:var(--shs-muted)}.shs-content{max-width:900px;margin:0 auto}.entry-content>*{margin-top:0;margin-bottom:1.25em}.entry-content h2{margin-top:1.65em}.entry-content h2:first-child{margin-top:0}.entry-content figure{margin:1.6em 0}.entry-content .wp-block-image img{box-shadow:var(--shs-shadow)}.entry-content blockquote{margin:24px 0;padding:22px 26px;background:#f3f7f3;border-left:4px solid var(--shs-green);border-radius:0 14px 14px 0;color:#344650;font-size:1.05rem}.entry-content blockquote p:last-child{margin-bottom:0}.entry-content .wp-block-columns{gap:22px}.entry-content .wp-block-column{background:var(--shs-paper);border:1px solid var(--shs-line);border-radius:var(--shs-radius);padding:24px}.entry-content .wp-block-gallery{gap:14px}.entry-content .wp-block-gallery img{border-radius:14px}.entry-content .wp-block-button{margin:24px 0}.entry-content .wp-block-separator{border:0;border-top:1px solid var(--shs-line)}.shs-callout{margin:55px 0 0;padding:clamp(28px,5vw,48px);border-radius:22px;background:linear-gradient(120deg,var(--shs-navy),#245647);color:#fff;display:flex;align-items:center;justify-content:space-between;gap:28px}.shs-callout h2{color:#fff;margin:0 0 8px;font-size:clamp(1.6rem,3vw,2.3rem)}.shs-callout p{color:#e2ece6;margin:0;max-width:610px}.shs-callout .shs-button{background:#fff;color:var(--shs-navy)!important;white-space:nowrap;box-shadow:none}.shs-callout .shs-button:hover{background:#edf4ef}.shs-footer{background:#0d2232;color:#d5e0e3;padding:52px 0 25px}.shs-footer-inner{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:42px}.shs-footer h2,.shs-footer h3{color:#fff;font-size:1.08rem;letter-spacing:0;margin:0 0 15px}.shs-footer p{color:#c1cfd2;font-size:.94rem}.shs-footer a{color:#fff;text-decoration:none}.shs-footer a:hover{text-decoration:underline}.shs-footer ul{list-style:none;margin:0;padding:0}.shs-footer li{margin:0 0 9px}.shs-footer-bottom{width:min(1160px,calc(100% - 40px));margin:35px auto 0;padding-top:18px;border-top:1px solid rgba(255,255,255,.15);font-size:.82rem;color:#9fb0b6;display:flex;justify-content:space-between;gap:15px}.shs-form{padding:26px;background:var(--shs-paper);border:1px solid var(--shs-line);border-radius:18px}.shs-form input:not([type=checkbox]):not([type=submit]),.shs-form textarea,.shs-form select{width:100%;padding:13px 14px;border:1px solid #ccd8d1;border-radius:10px;background:#fff;color:var(--shs-ink);margin:5px 0 15px}.shs-form label{font-weight:650;font-size:.92rem}.shs-form input:focus,.shs-form textarea:focus,.shs-form select:focus{outline:3px solid rgba(46,107,80,.16);border-color:var(--shs-green)}.shs-form input[type=checkbox]{margin-right:8px}.shs-form input[type=submit]{cursor:pointer}.shs-notice{padding:14px 18px;border-radius:12px;background:#edf5ef;color:#24563f}.shs-404{text-align:center;padding:70px 20px}.shs-404 h1{font-size:3rem}.shs-menu-toggle{display:none;background:none;border:1px solid var(--shs-line);border-radius:10px;padding:9px 12px;color:var(--shs-navy);font-weight:700}
@media(max-width:900px){.shs-header-inner{min-height:72px}.shs-menu-toggle{display:inline-flex}.shs-nav{display:none;position:absolute;left:0;right:0;top:100%;background:#fff;border-bottom:1px solid var(--shs-line);padding:18px 20px 22px;box-shadow:0 12px 24px rgba(15,40,50,.08)}.shs-nav.is-open{display:block}.shs-nav ul{display:flex;align-items:stretch;flex-direction:column;gap:0}.shs-nav li{border-bottom:1px solid var(--shs-line)}.shs-nav a{display:block;padding:12px 3px}.shs-nav .shs-button{margin-top:15px;width:100%}.shs-header-inner>.shs-button{display:none}.shs-mobile-cta{display:block}.shs-footer-inner{grid-template-columns:1fr 1fr}.shs-footer-inner>div:first-child{grid-column:1/-1}}
@media(max-width:600px){body{font-size:16px}.shs-topbar-inner{justify-content:center;text-align:center}.shs-topbar-inner span:first-child{display:none}.shs-header-inner,.shs-topbar-inner,.shs-footer-inner,.shs-footer-bottom{width:min(100% - 30px,1160px)}.shs-brand{font-size:1rem}.shs-hero-inner{width:calc(100% - 32px);padding:64px 0 70px}.shs-hero-actions{flex-direction:column;align-items:stretch}.shs-hero-actions .shs-button{text-align:center}.shs-proof{display:grid;gap:9px;margin-top:28px}.shs-main{width:calc(100% - 32px);padding:38px 0 60px}.shs-page-intro{padding:42px 16px 35px}.shs-callout{display:block;margin-top:40px}.shs-callout .shs-button{margin-top:20px;width:100%}.shs-footer-inner{grid-template-columns:1fr;gap:25px}.shs-footer-inner>div:first-child{grid-column:auto}.shs-footer-bottom{display:block}.shs-footer-bottom span{display:block;margin-top:7px}.entry-content .wp-block-columns{display:block}.entry-content .wp-block-column{margin-bottom:14px}}


/* Homepage service cards */
.shs-services{padding:clamp(34px,5vw,64px) 0 54px}
.shs-section-heading{max-width:720px;margin:0 auto 28px;text-align:center}
.shs-section-heading h2{margin:8px 0 10px;color:#142b3a;font-size:clamp(1.8rem,3vw,2.45rem);line-height:1.15}
.shs-section-heading p{margin:0;color:#53636b;font-size:1.02rem;line-height:1.65}
.shs-service-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.shs-service-card{display:flex;min-height:218px;flex-direction:column;align-items:flex-start;gap:10px;padding:23px 22px;border:1px solid #dce5df;border-radius:14px;background:#fff;color:#183329;text-decoration:none;box-shadow:0 5px 18px rgba(17,42,34,.055);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.shs-service-card:hover,.shs-service-card:focus-visible{transform:translateY(-3px);border-color:#4b805d;box-shadow:0 12px 26px rgba(17,42,34,.12);color:#183329}
.shs-service-icon{display:grid;width:48px;height:48px;place-items:center;border-radius:12px;background:#edf4ef;color:#326b49}
.shs-service-icon svg{width:29px;height:29px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.shs-service-title{font-size:1.12rem;font-weight:750;line-height:1.3;color:#183329}
.shs-service-desc{font-size:.94rem;line-height:1.5;color:#5a6862}
.shs-service-link{display:inline-flex;gap:7px;align-items:center;margin-top:auto;padding-top:4px;color:#28623e;font-size:.9rem;font-weight:700}
.shs-service-link b{font-size:1.15rem}
.shs-service-card-wide{grid-column:1/-1;min-height:170px}
@media(max-width:600px){.shs-service-grid{grid-template-columns:1fr;gap:12px}.shs-service-card{min-height:0;padding:19px}.shs-service-card-wide{grid-column:auto}.shs-services{padding-top:32px}}


/* Residential Pest Control page: clearer image-and-description flow, especially on phones */
.shs-residential-pest-page .shs-page-intro{background:linear-gradient(135deg,#f2f6f2 0%,#edf3ef 100%);padding:clamp(34px,5vw,58px) 20px}
.shs-residential-pest-page .shs-page-intro h1{max-width:820px}
.shs-residential-pest-page .shs-main{padding-top:clamp(28px,4vw,48px)}
.shs-residential-pest-page .shs-content{max-width:980px}
.shs-residential-pest-page .entry-content{font-size:1.02rem;line-height:1.75}
.shs-residential-pest-page .entry-content h2{margin:2.1em 0 .65em;padding-bottom:12px;border-bottom:2px solid #e5eee8;font-size:clamp(1.45rem,2.7vw,2rem);letter-spacing:-.025em}
.shs-residential-pest-page .entry-content h2:first-child{margin-top:0}
.shs-residential-pest-page .entry-content h3{margin:1.3em 0 .5em;font-size:1.22rem}
.shs-residential-pest-page .entry-content p{margin-bottom:1.15em}
.shs-residential-pest-page .entry-content figure.wp-block-image{margin:28px 0 32px;padding:10px;background:#f5f8f5;border:1px solid #e1e9e3;border-radius:16px;overflow:hidden}
.shs-residential-pest-page .entry-content figure.wp-block-image img{display:block;width:100%;height:auto;max-height:520px;object-fit:contain;margin:0 auto;border-radius:10px;box-shadow:none}
.shs-residential-pest-page .entry-content figure.wp-block-image figcaption{margin:10px 5px 4px;color:#52635a;font-size:.92rem;line-height:1.5;text-align:left}
.shs-residential-pest-page .entry-content .wp-block-columns{align-items:center;gap:clamp(18px,3vw,32px);margin:30px 0;padding:clamp(16px,2.5vw,25px);background:#f7f9f7;border:1px solid #e4ebe6;border-radius:16px}
.shs-residential-pest-page .entry-content .wp-block-column{min-width:0;padding:0;background:transparent;border:0;border-radius:0}
.shs-residential-pest-page .entry-content .wp-block-column figure{margin:0}
.shs-residential-pest-page .entry-content .wp-block-column p:last-child{margin-bottom:0}
.shs-residential-pest-page .entry-content .wp-block-gallery{margin:28px 0;gap:12px}
.shs-residential-pest-page .entry-content .wp-block-gallery .wp-block-image{margin:0;padding:8px;background:#f5f8f5;border:1px solid #e1e9e3;border-radius:14px}
.shs-residential-pest-page .entry-content .wp-block-gallery figcaption{font-size:.88rem;line-height:1.45}
.shs-residential-pest-page .entry-content ul{padding-left:1.2em}
.shs-residential-pest-page .entry-content li{margin:.45em 0}
@media(max-width:782px){
 .shs-residential-pest-page .shs-main{width:min(100% - 30px,680px);padding-top:24px;padding-bottom:48px}
 .shs-residential-pest-page .shs-page-intro{padding:32px 16px 28px}
 .shs-residential-pest-page .shs-page-intro h1{font-size:clamp(1.9rem,7vw,2.65rem);line-height:1.12}
 .shs-residential-pest-page .entry-content{font-size:1rem;line-height:1.68}
 .shs-residential-pest-page .entry-content h2{margin-top:1.7em;padding-bottom:9px}
 .shs-residential-pest-page .entry-content figure.wp-block-image{margin:20px 0 24px;padding:8px;border-radius:13px}
 .shs-residential-pest-page .entry-content figure.wp-block-image img{max-height:none}
 .shs-residential-pest-page .entry-content figure.wp-block-image figcaption{font-size:.9rem;padding:0 3px}
 .shs-residential-pest-page .entry-content .wp-block-columns{display:flex;flex-direction:column;gap:14px;margin:22px 0;padding:15px}
 .shs-residential-pest-page .entry-content .wp-block-columns>.wp-block-column{flex-basis:100%!important;width:100%;margin:0}
 .shs-residential-pest-page .entry-content .wp-block-gallery{grid-template-columns:1fr;gap:14px}
 .shs-residential-pest-page .entry-content .wp-block-gallery .wp-block-image{width:100%}
 .shs-residential-pest-page .entry-content .wp-block-gallery img{width:100%;height:auto;max-height:360px;object-fit:contain}
 .shs-residential-pest-page .shs-callout{margin-top:34px;padding:24px;display:flex;flex-direction:column;align-items:stretch;gap:18px}
 .shs-residential-pest-page .shs-callout .shs-button{width:100%;white-space:normal}
}
@media(min-width:783px){
 .shs-residential-pest-page .entry-content .wp-block-gallery.has-nested-images figure.wp-block-image{align-self:stretch}
}


/* Actual image + description cards for all Residential Pest Control pages */
.shs-residential-pest-page .shs-content{max-width:1040px}
.shs-residential-pest-page .entry-content{font-size:1.02rem;line-height:1.7}
.shs-residential-pest-page .shs-pest-image-card{display:grid;grid-template-columns:minmax(220px,40%) minmax(0,1fr);align-items:center;gap:clamp(18px,3vw,30px);margin:26px 0;padding:16px;background:#fff;border:1px solid #dfe9e2;border-radius:18px;box-shadow:0 8px 24px rgba(20,47,67,.08);overflow:hidden}
.shs-residential-pest-page .shs-pest-image-card figure,.shs-residential-pest-page .shs-pest-image-card .wp-block-image{margin:0!important;padding:0!important;background:transparent!important;border:0!important;min-width:0}
.shs-residential-pest-page .shs-pest-image-card img{display:block;width:100%;height:auto;max-height:270px;object-fit:cover;border-radius:12px;box-shadow:none!important}
.shs-residential-pest-page .shs-pest-image-card figcaption{margin:8px 2px 0;color:#5b6a61;font-size:.85rem;line-height:1.4}
.shs-residential-pest-page .shs-pest-image-card p{margin:0 0 12px;color:#34443c;font-size:1rem;line-height:1.72}
.shs-residential-pest-page .shs-pest-image-card p:last-child{margin-bottom:0}
.shs-residential-pest-page .entry-content h2{margin:2em 0 .65em;padding-bottom:10px;border-bottom:2px solid #e4ede7;font-size:clamp(1.5rem,2.8vw,2.05rem)}
.shs-residential-pest-page .entry-content h2:first-child{margin-top:0}
@media(max-width:700px){
.shs-residential-pest-page .shs-main{width:calc(100% - 28px);padding:22px 0 46px}
.shs-residential-pest-page .shs-page-intro{padding:30px 15px 26px}
.shs-residential-pest-page .shs-page-intro h1{font-size:clamp(1.85rem,7vw,2.5rem);line-height:1.12}
.shs-residential-pest-page .entry-content{font-size:1rem;line-height:1.65}
.shs-residential-pest-page .shs-pest-image-card{display:flex;flex-direction:column;align-items:stretch;gap:13px;margin:19px 0;padding:11px;border-radius:15px}
.shs-residential-pest-page .shs-pest-image-card figure,.shs-residential-pest-page .shs-pest-image-card .wp-block-image{width:100%}
.shs-residential-pest-page .shs-pest-image-card img{width:100%;height:auto;max-height:260px;object-fit:cover;border-radius:10px}
.shs-residential-pest-page .shs-pest-image-card p{font-size:.97rem;line-height:1.65;padding:0 3px}
.shs-residential-pest-page .shs-pest-image-card figcaption{padding:0 3px}
.shs-residential-pest-page .shs-callout{display:flex;flex-direction:column;align-items:stretch;gap:16px;margin-top:30px;padding:22px}
.shs-residential-pest-page .shs-callout .shs-button{width:100%;white-space:normal}
}
