/*
Theme Name: Pest Directory
Theme URI: https://example.com/
Author: OpenAI
Description: A clean, responsive WordPress theme for a UK pest-control advice and Amazon affiliate website.
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: pest-directory
*/
:root{--green:#103f2b;--green2:#17623c;--lime:#8ebc45;--ink:#17251d;--muted:#64736a;--cream:#f7f8f2;--line:#e2e9e1;--gold:#ffbd35;--white:#fff;--radius:18px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);font:16px/1.65 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:#fff}a{color:var(--green2);text-decoration:none}a:hover{text-decoration:underline}.wrap{width:min(1160px,calc(100% - 40px));margin:auto}.affiliate-bar{background:var(--green);color:#e9f4eb;font-size:12px;padding:8px 0}.affiliate-bar .wrap{display:flex;justify-content:space-between;gap:12px}.site-header{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20}.header-inner{min-height:78px;display:flex;align-items:center;justify-content:space-between;gap:25px}.brand{display:flex;align-items:center;gap:11px;color:var(--green);font-size:21px;font-weight:850;line-height:1.05;letter-spacing:-.6px}.brand-mark{width:42px;height:42px;border-radius:13px;background:linear-gradient(145deg,#dff0ce,#a9d17a);display:grid;place-items:center;font-size:23px}.brand small{display:block;font-size:11px;letter-spacing:.4px;color:var(--green2);font-weight:700}.main-nav{display:flex;gap:24px;align-items:center;flex-wrap:wrap}.main-nav a{font-size:14px;color:#26352c;font-weight:650}.menu-toggle{display:none;border:1px solid var(--line);background:#fff;border-radius:10px;padding:9px 12px}.hero{background:linear-gradient(90deg,rgba(247,248,242,.98) 0%,rgba(247,248,242,.94) 44%,rgba(247,248,242,.12) 100%),linear-gradient(135deg,#dbe8d1,#8da987);min-height:390px;display:flex;align-items:center;overflow:hidden}.hero-inner{padding:66px 0;max-width:650px}.eyebrow{color:var(--green2);font-size:12px;text-transform:uppercase;letter-spacing:1.6px;font-weight:800}.hero h1{font-size:clamp(36px,5vw,58px);line-height:1.04;letter-spacing:-2px;color:var(--green);margin:12px 0 18px}.hero p{font-size:18px;color:#435249;max-width:570px}.button{display:inline-flex;align-items:center;gap:9px;background:var(--gold);color:#171b13;font-weight:800;padding:14px 21px;border-radius:10px;margin-top:13px;box-shadow:0 5px 14px #b08a3030}.button:hover{background:#f3aa16;text-decoration:none}.trust-row{display:flex;gap:24px;flex-wrap:wrap;margin:24px 0 3px;color:#35473b;font-size:13px;font-weight:650}.section{padding:48px 0}.section.soft{background:var(--cream)}.section h2{font-size:30px;line-height:1.15;color:var(--green);letter-spacing:-.8px;margin:0 0 22px}.section-intro{color:var(--muted);margin-top:-12px;margin-bottom:25px}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.grid.four{grid-template-columns:repeat(4,1fr)}.category-card,.content-card,.product-card{border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:#fff;box-shadow:0 5px 18px #153c2410}.category-visual{height:130px;display:grid;place-items:center;background:linear-gradient(135deg,#e4efdc,#b9d0ad);font-size:54px}.category-card:nth-child(2n) .category-visual{background:linear-gradient(135deg,#f7edd8,#e3d0a7)}.category-card:nth-child(3n) .category-visual{background:linear-gradient(135deg,#e1edf0,#b4cdd0)}.card-body{padding:18px}.card-body h3{font-size:18px;line-height:1.25;margin:0 0 8px;color:var(--green)}.card-body p{font-size:14px;color:var(--muted);margin:0 0 12px}.text-link{font-weight:800;font-size:14px}.feature-band{display:grid;grid-template-columns:1fr 1.5fr auto;align-items:center;gap:25px;padding:28px;border-radius:22px;background:#edf4e9}.feature-band h2{font-size:25px;margin:0 0 8px}.feature-band p{margin:0;color:var(--muted);font-size:14px}.product-card{padding:17px;display:flex;flex-direction:column}.product-placeholder{height:135px;border-radius:12px;background:linear-gradient(135deg,#f3f5ef,#dce8d8);display:grid;place-items:center;font-size:45px;margin-bottom:14px}.product-card h3{font-size:17px;line-height:1.3;margin:0 0 8px;color:var(--green)}.product-card p{font-size:13px;color:var(--muted);margin:0 0 14px}.amazon-button{display:inline-block;margin-top:auto;background:#ffbd35;color:#1b2118;padding:10px 13px;border-radius:8px;font-weight:800;font-size:13px;text-align:center}.amazon-button:hover{text-decoration:none;background:#f0aa1d}.disclosure{font-size:12px;color:#68766d;background:#f4f6f2;border-left:3px solid var(--lime);padding:12px 15px;border-radius:5px;margin:22px 0}.post-list{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.post-card{border:1px solid var(--line);border-radius:var(--radius);padding:22px;background:#fff}.post-card .tag{font-size:11px;color:var(--green2);font-weight:800;text-transform:uppercase;letter-spacing:1px}.post-card h3{font-size:19px;line-height:1.25;margin:9px 0;color:var(--green)}.post-card p{font-size:14px;color:var(--muted)}.site-footer{background:#103f2b;color:#e7f0e8;padding:42px 0 22px;margin-top:25px}.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:30px}.site-footer h3{color:#fff;margin-top:0}.site-footer a{color:#e7f0e8}.footer-bottom{border-top:1px solid #ffffff25;margin-top:30px;padding-top:17px;font-size:12px;color:#c4d4c8}.page-main{padding:45px 0}.page-main h1{color:var(--green);font-size:clamp(32px,4vw,46px);line-height:1.12}.entry-content{max-width:820px}.entry-content img{max-width:100%;height:auto}.entry-content h2,.entry-content h3{color:var(--green)}.entry-content table{border-collapse:collapse;width:100%}.entry-content td,.entry-content th{border:1px solid var(--line);padding:10px;text-align:left}.pagination{margin:30px 0}.pagination a,.pagination span{padding:8px 12px;border:1px solid var(--line);border-radius:8px;margin-right:5px}.screen-reader-text{position:absolute;left:-9999px}
@media(max-width:850px){.main-nav{display:none;position:absolute;top:78px;left:0;right:0;background:#fff;padding:18px 22px;border-bottom:1px solid var(--line);flex-direction:column;align-items:flex-start}.main-nav.open{display:flex}.menu-toggle{display:block}.grid.four{grid-template-columns:repeat(2,1fr)}.feature-band{grid-template-columns:1fr}.post-list{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.wrap{width:min(100% - 28px,1160px)}.affiliate-bar .wrap{display:block;text-align:center}.affiliate-bar .wrap span+span{display:block;margin-top:3px}.hero{min-height:350px}.hero-inner{padding:45px 0}.hero h1{letter-spacing:-1px}.trust-row{gap:12px}.section{padding:35px 0}.grid,.grid.four,.post-list{grid-template-columns:1fr 1fr;gap:12px}.category-visual{height:95px;font-size:40px}.card-body{padding:13px}.card-body h3{font-size:15px}.footer-grid{grid-template-columns:1fr}.product-card{padding:12px}.product-placeholder{height:100px}}

/* Pest Directory brand refinements */
.brand{font-size:22px;letter-spacing:-.7px}
.brand small{font-size:9px;letter-spacing:.8px}
.brand-mark{font-size:0;position:relative}
.brand-mark:before{content:"";width:23px;height:23px;border:2px solid var(--green);border-radius:7px 7px 11px 11px;transform:rotate(45deg);position:absolute}
.brand-mark:after{content:"✦";font-size:17px;color:var(--green);position:absolute}
.hero{position:relative;background:linear-gradient(90deg,rgba(247,248,242,.99) 0%,rgba(247,248,242,.96) 43%,rgba(247,248,242,.30) 100%),url('https://images.unsplash.com/photo-1506806732259-39c2d0268443?auto=format&fit=crop&w=1800&q=85') center right/cover no-repeat}
.hero h1{max-width:720px}
@media(max-width:700px){.hero{background:linear-gradient(90deg,rgba(247,248,242,.96),rgba(247,248,242,.82)),url('https://images.unsplash.com/photo-1506806732259-39c2d0268443?auto=format&fit=crop&w=1000&q=80') center/cover no-repeat}}

/* Pest Directory homepage upgrade */
.hero-directory{background:linear-gradient(90deg,rgba(247,248,242,.99) 0%,rgba(247,248,242,.97) 39%,rgba(247,248,242,.15) 72%),url('assets/hero-mouse.png') center right/cover no-repeat;min-height:390px}
.hero-directory .hero-inner{max-width:650px}
.section-heading{display:flex;align-items:end;justify-content:space-between;gap:20px}
.section-heading .section-intro{margin-bottom:0}
.pest-grid{grid-template-columns:repeat(3,1fr)}
.pest-grid .category-visual{height:112px}
.feature-guide{grid-template-columns:1fr 1fr;min-height:250px;overflow:hidden}
.feature-guide h2{font-size:32px;margin:10px 0}
.feature-photo{height:230px;border-radius:14px;background:linear-gradient(90deg,rgba(237,244,233,.05),rgba(237,244,233,0)),url('assets/hero-mouse.png') center/cover}
.button-green{background:#17623c;color:#fff}
.button-green:hover{background:#10472b;color:#fff}
.post-card{min-height:220px}
.post-card img{width:100%;height:145px;object-fit:cover;border-radius:12px;margin-bottom:14px}
@media(max-width:850px){.pest-grid{grid-template-columns:repeat(2,1fr)}.feature-guide{grid-template-columns:1fr}.feature-photo{height:190px}.section-heading{align-items:flex-start;flex-direction:column}}
@media(max-width:560px){.pest-grid{grid-template-columns:1fr 1fr}.hero-directory{background:linear-gradient(90deg,rgba(247,248,242,.97),rgba(247,248,242,.80)),url('assets/hero-mouse.png') 65% center/cover no-repeat}.pest-grid .category-visual{height:85px}}
