/*
Theme Name: Buy If Works
Theme URI: https://buyifworks.com
Author: Buy If Works
Description: Independent product research editorial theme with responsive review templates.
Version: 1.2.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: buy-if-works
*/
:root{--ink:#152c35;--green:#276c60;--muted:#65747a;--paper:#faf9f6;--line:#e4e9e6;--amber:#9b690d;--red:#a43f3d}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.65 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}a{color:inherit}a:hover{color:var(--green)}.wrap{max-width:1160px;padding:0 24px;margin:auto}.site-header{background:#fff;border-bottom:1px solid var(--line)}.head-inner{display:flex;align-items:center;justify-content:space-between;min-height:86px;gap:24px}.brand{font-size:24px;font-weight:800;letter-spacing:-.045em;text-decoration:none}.brand-mark{color:var(--green)}.nav{display:flex;gap:26px;align-items:center}.nav a{text-decoration:none;font-weight:600;font-size:14px}.header-search{display:flex;gap:8px}.header-search input,.search-large input{min-width:0;border:1px solid #ccd6d2;border-radius:8px;padding:13px 16px;font:inherit;background:#fff}.header-search button,.search-large button,.button{border:0;background:var(--green);color:white;padding:13px 20px;border-radius:8px;font:inherit;font-weight:700;cursor:pointer;text-decoration:none;display:inline-block}.header-search button:hover,.search-large button:hover,.button:hover{background:#195044;color:white}.hero{padding:94px 0 76px}.eyebrow{text-transform:uppercase;letter-spacing:.13em;color:var(--green);font-size:12px;font-weight:800}.hero h1{font-size:clamp(43px,6.6vw,78px);line-height:1.06;letter-spacing:-.065em;max-width:810px;margin:18px 0 22px}.lead{font-size:clamp(18px,2vw,23px);color:#53656b;max-width:670px;line-height:1.55}.search-large{display:flex;max-width:670px;gap:10px;margin:32px 0 16px}.search-large input{flex:1;padding:17px 19px}.small{font-size:13px;color:var(--muted)}.section{padding:40px 0 75px}.section-head{display:flex;justify-content:space-between;align-items:baseline;gap:20px}.section h2,.content h1{font-size:clamp(30px,3.8vw,46px);letter-spacing:-.05em;line-height:1.18}.section-head a{color:var(--green);font-weight:700}.categories{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:22px}.category{background:#fff;border:1px solid var(--line);border-radius:14px;padding:26px 20px;text-decoration:none;font-weight:750;min-height:125px;display:flex;flex-direction:column;justify-content:space-between}.category span{font-size:27px}.feature{display:grid;grid-template-columns:1fr 1fr;background:#fff;border:1px solid var(--line);border-radius:20px;overflow:hidden;margin-top:24px}.feature-art{background:#e8efeb;min-height:310px;display:flex;align-items:center;justify-content:center;padding:30px}.feature-art img{max-width:100%;max-height:350px;object-fit:contain}.feature-art .placeholder{font-size:82px;color:#78958b}.feature-text{padding:clamp(25px,4vw,56px);align-self:center}.feature-text h3{font-size:clamp(28px,3.5vw,42px);letter-spacing:-.05em;line-height:1.18;margin:15px 0}.pill{display:inline-block;border-radius:100px;padding:5px 12px;background:#e8eeeb;color:#385f55;font-size:12px;font-weight:800}.pill.pending{background:#e9eeef;color:#455c64}.pill.worth-buying{background:#e0efe8;color:#1d6947}.pill.worth-considering{background:#fbf0d8;color:#855d11}.pill.not-recommended{background:#f7e5e4;color:#a03937}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:24px}.review-card{background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden}.review-card .card-image{height:190px;background:#e9efec;display:flex;align-items:center;justify-content:center}.review-card .card-image img{width:100%;height:100%;object-fit:contain}.review-card .card-body{padding:22px}.review-card h3{margin:12px 0;font-size:22px;line-height:1.3}.review-card h3 a{text-decoration:none}.editorial{background:#edf2ee;padding:60px 0;margin:15px 0 0}.editorial .wrap{display:flex;justify-content:space-between;gap:30px;align-items:center}.editorial h2{font-size:36px;line-height:1.2;letter-spacing:-.05em;margin:10px 0}.footer{background:#142e35;color:#f5f8f6;padding:52px 0 28px}.footer a{color:#d9e7e1;text-decoration:none}.footer-links{display:flex;flex-wrap:wrap;gap:18px}.footer-bottom{border-top:1px solid #3b5358;margin-top:35px;padding-top:18px;font-size:13px;color:#b7c9c6}.content{max-width:900px;margin:0 auto;padding:65px 24px 100px}.content h1{margin:15px 0}.content p{color:#46585e}.review-top{display:grid;grid-template-columns:1fr 1.15fr;gap:40px;align-items:center;margin:35px 0}.review-photo{background:#e8efeb;border-radius:16px;min-height:300px;display:flex;justify-content:center;align-items:center;padding:22px}.review-photo img{max-width:100%;height:auto}.panel{border:1px solid var(--line);border-radius:14px;padding:25px;background:white;margin:22px 0}.panel h2{font-size:26px;margin:0 0 12px;letter-spacing:-.035em}.panel ul{padding-left:20px}.panel li{margin:8px 0}.notice{background:#edf3f0;border-left:4px solid var(--green);padding:16px 20px;border-radius:6px}.offer-list{display:grid;gap:10px}.offer{display:flex;align-items:center;justify-content:space-between;gap:16px;border:1px solid var(--line);padding:14px 18px;border-radius:10px}.offer a{background:var(--green);color:#fff;border-radius:7px;text-decoration:none;padding:10px 14px;font-weight:700}.metadata{font-size:13px;color:var(--muted)}.wp-block-image img{height:auto}.menu-toggle{display:none}.screen-reader-text{position:absolute;left:-10000px}input:focus-visible,button:focus-visible,a:focus-visible{outline:3px solid #3b91be;outline-offset:3px}@media(max-width:780px){.head-inner{min-height:70px;flex-wrap:wrap;padding-top:13px;padding-bottom:13px}.brand{font-size:22px}.menu-toggle{display:block;border:1px solid var(--line);border-radius:8px;background:white;padding:7px 12px;font-size:20px}.nav{display:none;order:3;flex-basis:100%;flex-direction:column;align-items:flex-start;gap:15px;padding:12px 0}.nav.open{display:flex}.header-search{display:none}.hero{padding:65px 0 45px}.search-large{flex-direction:column}.categories{grid-template-columns:repeat(2,1fr)}.feature,.review-top{grid-template-columns:1fr}.feature-art{min-height:220px}.cards{grid-template-columns:1fr}.editorial .wrap{display:block}.content{padding-top:40px}.offer{flex-wrap:wrap}}@media(max-width:390px){.categories{grid-template-columns:1fr}.wrap{padding:0 18px}}

/* Buy If Works C+++ — accessible responsive visual refresh */
:root{--ink:#0B1320;--green:#0B766F;--muted:#334155;--paper:#F8FCFB;--line:#DCE9E7}
body{background:var(--paper);color:var(--ink);line-height:1.55;-webkit-font-smoothing:antialiased}
.site-header{background:rgba(248,252,251,.97);border-bottom:1px solid #e7eeed}
.head-inner{min-height:76px}
.brand{font-size:25px;color:var(--ink);letter-spacing:-.055em}
.nav a{color:var(--ink)}
.hero{padding:78px 0 62px;background:radial-gradient(ellipse at 75% 30%,#e6f6f3 0%,rgba(230,246,243,.55) 38%,rgba(248,252,251,0) 78%)}
.hero .wrap{max-width:1160px}
.eyebrow{font-size:13px;letter-spacing:.13em;color:var(--green)}
.hero h1{font-size:clamp(44px,6vw,76px);line-height:1.04;letter-spacing:-.065em;max-width:820px;margin:18px 0 16px;font-weight:800}
.lead{color:var(--muted);font-size:clamp(18px,1.8vw,21px);line-height:1.5;max-width:610px}
.search-large{max-width:650px;gap:12px;margin:24px 0 14px}
.search-large input,.header-search input{border:1px solid #cedbdc;border-radius:14px;box-shadow:0 2px 8px rgba(11,19,32,.035);color:var(--ink)}
.search-large input{padding:17px 20px;min-height:58px;font-size:16px}
.search-large button,.header-search button,.button{background:linear-gradient(120deg,#0b766f,#008f86);border-radius:12px;min-height:52px;font-weight:750;transition:filter .15s ease,transform .15s ease}
.search-large button:hover,.header-search button:hover,.button:hover{background:#075d57;filter:brightness(.98)}
.trust-line{display:flex;align-items:center;gap:12px;max-width:650px;min-height:54px;color:var(--ink);font-size:15px;line-height:1.4;text-decoration:none;padding:10px 12px;border-radius:13px;background:rgba(255,255,255,.76);border:1px solid #e3efed}
.trust-line:hover{color:var(--green);border-color:#b4d9d3}
.trust-symbol{flex:none;display:inline-grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#d8f3ec;color:var(--green);font-weight:800}
.trust-arrow{margin-left:auto;color:var(--green);font-size:20px}
.section{padding:34px 0 50px}
.section h2,.content h1{color:var(--ink)}
.section-head{align-items:center}
.section-head h2{font-size:clamp(25px,3vw,35px);margin:0}
.section-head a{font-size:15px;white-space:nowrap;text-decoration:none}
.categories{gap:15px;margin-top:18px}
.category{min-height:135px;border-radius:17px;padding:20px;box-shadow:0 4px 20px rgba(11,19,32,.035);font-size:17px;line-height:1.35;transition:box-shadow .15s,transform .15s}
.category:hover{box-shadow:0 9px 25px rgba(11,19,32,.09);transform:translateY(-2px)}
.category span{font-size:32px;line-height:1;color:var(--green)}
.editorial{background:#e6f6f3;margin:22px 0 0;padding:52px 0}
.editorial h2{color:var(--ink)}
.editorial p{color:var(--muted);max-width:660px}
.review-card,.feature,.panel{border-color:var(--line);box-shadow:0 4px 16px rgba(11,19,32,.035)}
.review-card .card-body{color:var(--ink)}
.review-card .card-body p,.content p{color:var(--muted)}
.footer{background:#0b1926}
.footer .brand{color:#fff}
.footer .brand-mark{color:#62d6c8}
.pill.pending{background:#e5f0fb;color:#234b74}
:focus-visible{outline:3px solid #0b766f;outline-offset:3px}
@media(max-width:780px){
 .wrap{padding:0 22px}
 .head-inner{min-height:68px;padding-top:12px;padding-bottom:12px}
 .brand{font-size:23px}
 .menu-toggle{min-width:46px;min-height:46px;border-radius:13px;color:var(--green);font-size:23px}
 .hero{padding:34px 0 20px;background:radial-gradient(ellipse at 75% 32%,#e6f6f3 0%,rgba(230,246,243,.5) 52%,transparent 92%)}
 .hero h1{font-size:clamp(39px,9.5vw,53px);line-height:1.05;letter-spacing:-.055em;margin:11px 0 13px}
 .eyebrow{font-size:12px;letter-spacing:.12em}
 .lead{font-size:17px;line-height:1.46;margin:0}
 .search-large{margin:17px 0 12px;gap:9px}
 .search-large input{width:100%;min-height:54px;padding:13px 15px}
 .search-large button{width:100%;min-height:52px;font-size:17px}
 .trust-line{font-size:14px;min-height:50px;gap:10px;padding:9px 11px}
 .section{padding:23px 0 30px}
 .section-head h2{font-size:23px;letter-spacing:-.035em}
 .categories{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin-top:13px}
 .category{min-height:110px;padding:14px;border-radius:14px;font-size:15px;gap:10px}
 .category span{font-size:29px}
 .editorial{margin-top:14px;padding:26px 0}
 .editorial h2{font-size:27px}
 .editorial .button{margin-top:12px}
 .cards{gap:12px}
 .review-card .card-image{height:175px}
}
@media(max-width:390px){.wrap{padding:0 16px}.categories{grid-template-columns:repeat(2,minmax(0,1fr))}.category{padding:12px;font-size:14px;min-height:105px}.hero h1{font-size:clamp(35px,10vw,40px)}.trust-line{font-size:13px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}

/* v1.2: Mobile navigation, compact editorial and category presentation */
@media(max-width:780px){
 .site-header .nav:not(.open){display:none!important}
 .site-header .nav.open{display:flex;gap:0;padding:6px 0 9px;border-top:1px solid var(--line)}
 .site-header .nav.open a{display:block;width:100%;padding:11px 3px;font-size:16px;border-bottom:1px solid #e9f0ee}
 .menu-toggle{display:grid;place-items:center;line-height:1;cursor:pointer}
 .categories{gap:10px}
 .category{position:relative;isolation:isolate;overflow:hidden;min-height:104px;padding:12px 13px;justify-content:space-between;background:linear-gradient(115deg,#fff 48%,#eaf7f4 100%);border:1px solid #dae9e6;box-shadow:0 3px 13px rgba(11,19,32,.04)}
 .category-icon{font-size:25px!important;line-height:1;color:#0b766f;position:relative;z-index:1}
 .category-title{font-size:14px;line-height:1.22;max-width:85%;position:relative;z-index:2;display:block}
 .category-title span{font-size:16px;white-space:nowrap}
 .category-art{position:absolute;right:-7px;top:4px;bottom:3px;width:49%;opacity:.95;z-index:0;pointer-events:none}
 .category-art:before{content:'';position:absolute;right:10%;top:16%;width:57%;aspect-ratio:1;border-radius:30%;background:linear-gradient(140deg,#d7e9e5,#b5d9d2);box-shadow:inset -7px -9px 0 rgba(6,95,88,.08);transform:rotate(-12deg)}
 .category-art:after{position:absolute;right:20%;top:23%;font-size:38px;line-height:1}
 .category--home .category-art:after{content:'⌂';color:#337d72}
 .category--kitchen .category-art:after{content:'♨';color:#bd7544}
 .category--tech .category-art:after{content:'▣';color:#4e7481}
 .category--pets .category-art:after{content:'♧';color:#558b75}
 .editorial{margin-top:8px;padding:25px 0}
 .editorial .wrap{display:block}
 .editorial h2{font-size:clamp(24px,6vw,29px);margin:6px 0 8px}
 .editorial p{font-size:16px;line-height:1.48;margin:0 0 14px}
 .editorial .button{min-height:44px;padding:10px 16px;margin-top:0;font-size:15px}
}
@media(max-width:390px){.category{min-height:99px;padding:11px}.category-title{font-size:13px}.category-art:after{font-size:32px}}
