/*
Theme Name: SunnyWatly
Theme URI: https://sunnywatly.com/
Author: SunnyWatly
Description: Fast, accessible WordPress theme for SunnyWatly energy calculators and editorial content.
Version: 1.2.0
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: sunwattly
License: GPL-2.0-or-later
*/

:root{--bg:#f7faf7;--card:#fff;--text:#132019;--muted:#617067;--line:#dbe7df;--brand:#0d7a4a;--brand-dark:#075b37;--brand-soft:#e8f6ee;--sun:#f4b63d;--dark:#092a1e;--shadow:0 14px 36px rgba(13,65,43,.08);--max:1160px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--text);line-height:1.65;-webkit-font-smoothing:antialiased}a{color:inherit;text-decoration:none}img{max-width:100%;height:auto}.wrap{width:min(var(--max),92vw);margin:auto}.skip-link{position:absolute;left:-9999px}.skip-link:focus{left:1rem;top:1rem;background:#fff;padding:.7rem 1rem;z-index:999;border-radius:8px}.screen-reader-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.topbar{background:var(--dark);color:#dce9e2;font-size:13px}.topbar .wrap{min-height:36px;display:flex;align-items:center;justify-content:center}.topbar-mobile{display:none}.site-header{background:rgba(255,255,255,.97);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:50;backdrop-filter:blur(10px)}.navin{min-height:74px;display:flex;align-items:center;gap:24px}.brand{display:flex;align-items:center;gap:.65rem;font-weight:900;font-size:1.2rem;letter-spacing:-.025em;flex:none}.brand img{height:44px;width:auto;max-width:245px;object-fit:contain;display:block}.brand .fallback-mark{width:42px;height:42px}.main-nav{margin-left:auto}.main-nav ul{display:flex;gap:25px;align-items:center;list-style:none;padding:0;margin:0}.main-nav a{font-weight:750;color:#30483a;font-size:.95rem}.main-nav a:hover,.main-nav .current-menu-item>a{color:var(--brand)}.header-cta{margin-left:0;white-space:nowrap}.cta-mobile{display:none}.menu-toggle{display:none;border:1px solid var(--line);width:44px;height:44px;border-radius:12px;background:#fff;padding:0;align-items:center;justify-content:center;cursor:pointer}.menu-bars{width:20px;display:grid;gap:4px}.menu-bars i{display:block;height:2px;border-radius:2px;background:#1c3327}.btn,.wp-block-button__link{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;padding:13px 18px;border-radius:12px;border:1px solid transparent;font-weight:850;cursor:pointer}.btn-primary,.wp-block-button__link{background:var(--brand);color:#fff}.btn-primary:hover,.wp-block-button__link:hover{background:var(--brand-dark)}.btn-secondary{background:#fff;border-color:var(--line)}
.hero{padding:72px 0 46px;background:radial-gradient(circle at 84% 14%,#fff0bb 0,transparent 26%),linear-gradient(180deg,#fbfdfb,#eef8f2)}.eyebrow{display:inline-flex;background:var(--brand-soft);border:1px solid #c3e5d1;color:#0a6840;border-radius:999px;padding:7px 12px;font-size:13px;font-weight:850}.hero h1,.pagehero h1{font-size:clamp(46px,6.2vw,82px);line-height:.98;letter-spacing:-.055em;max-width:970px;margin:18px 0}.hero>div>p,.pagehero p{font-size:20px;color:var(--muted);max-width:790px}.heroactions{display:flex;gap:12px;flex-wrap:wrap;margin-top:26px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:38px}.stat,.card{background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow)}.stat{padding:20px;transition:.18s ease}.stat:hover,.calculator-card:hover{transform:translateY(-2px);border-color:#c7dbcf}.stat b{font-size:18px;display:block}.stat span,.card p{color:var(--muted)}
.section{padding:62px 0}.section.alt{background:#eef7f1}.section h2{font-size:clamp(30px,4vw,48px);line-height:1.05;letter-spacing:-.04em;margin:0 0 8px}.sectionlead{color:var(--muted);max-width:740px;margin:0 0 26px}.section-heading-row{display:flex;align-items:end;justify-content:space-between;gap:24px}.text-link,.go{color:var(--brand);font-weight:850}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.grid.four{grid-template-columns:repeat(4,1fr)}.card{padding:20px}.calculator-card{transition:.18s ease}.card .icon{width:46px;height:46px;border-radius:13px;background:var(--brand-soft);display:grid;place-items:center;font-size:22px;margin-bottom:14px}.card h3{margin:4px 0 6px;line-height:1.25}.card .go{display:inline-block;margin-top:18px}.post-list{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.post-card{background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden;box-shadow:var(--shadow)}.post-card img{width:100%;aspect-ratio:16/9;object-fit:cover}.post-card-body{padding:22px}.post-card h2,.post-card h3{font-size:20px;line-height:1.25;margin:7px 0}.post-card p{color:var(--muted);margin:0}.category-label{font-size:12px;text-transform:uppercase;letter-spacing:.09em;color:var(--brand);font-weight:850}.home-posts .post-card:not(:has(img)) .post-card-body{min-height:245px;display:flex;flex-direction:column}.home-posts .post-card .go{margin-top:auto;padding-top:16px}.trust-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:28px;align-items:center}.trust-box{background:#fff;border:1px solid var(--line);border-radius:22px;padding:28px;box-shadow:var(--shadow)}.trust-item{display:flex;gap:12px;padding:13px 0}.trust-item+.trust-item{border-top:1px solid var(--line)}.trust-item p{margin:2px 0 0;color:var(--muted)}.trust-tick{width:26px;height:26px;border-radius:50%;background:var(--brand-soft);color:var(--brand);display:grid;place-items:center;font-weight:900;flex:none}
.pagehero{padding:44px 0 20px}.pagehero h1{font-size:clamp(2.15rem,5vw,4.15rem);max-width:980px}.breadcrumbs{font-size:.86rem;color:var(--muted);padding-top:1rem}.breadcrumbs a{color:var(--brand)}.content-shell{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:1.4rem;align-items:start}.article,.page-content{background:#fff;border:1px solid var(--line);border-radius:20px;padding:clamp(1.2rem,3vw,2rem);box-shadow:var(--shadow)}.article h2,.page-content h2{margin-top:1.8rem}.article h3,.page-content h3{margin-top:1.35rem}.article p,.article li,.page-content p,.page-content li{color:#42544a}.article a,.page-content a{color:var(--brand);text-decoration:underline;text-underline-offset:2px}.article table,.page-content table{width:100%;border-collapse:collapse;margin:1.1rem 0;display:block;overflow:auto}.article th,.article td,.page-content th,.page-content td{padding:.7rem;border:1px solid var(--line);text-align:left}.article-meta{display:flex;gap:.9rem;flex-wrap:wrap;color:var(--muted);font-size:.88rem;margin:.45rem 0 1.4rem}.sidebar{position:sticky;top:96px}.sidebar .card{margin-bottom:1rem}.sidebar ul{padding-left:1.2rem;margin:.4rem 0}.sidebar a{color:var(--brand)}.pagination{display:flex;gap:.4rem;justify-content:center;margin:2rem 0}.pagination .page-numbers{padding:.55rem .8rem;border:1px solid var(--line);border-radius:9px;background:#fff}.pagination .current{background:var(--brand);color:#fff}.search-form{display:flex;gap:.5rem}.search-field{flex:1;padding:.75rem;border:1px solid var(--line);border-radius:10px}.search-submit{border:0;background:var(--brand);color:#fff;padding:.75rem 1rem;border-radius:10px;font-weight:800}.callout{border-left:4px solid var(--sun);background:#fff9e7;padding:1rem 1.1rem;border-radius:0 12px 12px 0;margin:1.2rem 0}.sponsored-disclosure{background:#fff3cd;border:1px solid #ead18a;border-radius:12px;padding:.85rem 1rem;margin:0 0 1.2rem;color:#5f4a11}.no-results{padding:3rem 0}.notice{background:#fff7dd;border:1px solid #efd98f;border-radius:14px;padding:1rem;color:#624c10}.sw-calc{margin:1.2rem 0}
.prefooter{padding:44px 0;background:#e5f3ea;border-top:1px solid #d3e6da}.prefooter-inner{display:flex;align-items:center;justify-content:space-between;gap:24px}.prefooter h2{font-size:32px;letter-spacing:-.035em;margin:0 0 6px}.prefooter p{margin:0;color:var(--muted);max-width:720px}.site-footer{background:var(--dark);color:#d5e5dd;margin-top:0}.footer-main{padding:54px 0 34px;display:grid;grid-template-columns:1.5fr repeat(3,1fr);gap:40px}.footer-brand strong{font-size:25px;color:#fff}.footer-brand p{max-width:350px;color:#b8cec2;margin:10px 0 18px}.footer-pills{display:flex;gap:8px;flex-wrap:wrap}.footer-pills span{font-size:12px;border:1px solid rgba(255,255,255,.16);border-radius:999px;padding:6px 9px;color:#c8d9d0}.site-footer h4{margin:3px 0 14px;color:#fff;font-size:14px;text-transform:uppercase;letter-spacing:.08em}.site-footer a{display:block;color:#bfd2c8;margin:9px 0;font-size:14px}.site-footer a:hover{color:#fff}.footer-bottom{border-top:1px solid rgba(255,255,255,.12);padding:20px 0 28px;display:flex;align-items:center;justify-content:space-between;gap:20px;font-size:13px;color:#91aa9d}.footer-legal{display:flex;gap:18px;flex-wrap:wrap}.footer-legal a{display:inline;margin:0;color:#a9beb3}
@media(max-width:900px){.main-nav{display:none;position:absolute;left:4vw;right:4vw;top:calc(100% + 8px);margin:0;background:#fff;border:1px solid var(--line);border-radius:16px;padding:10px;box-shadow:0 20px 50px rgba(13,65,43,.16)}.main-nav.open{display:block}.main-nav ul{flex-direction:column;align-items:stretch;gap:2px}.main-nav a{display:block;padding:12px 14px;border-radius:10px}.main-nav a:hover{background:var(--brand-soft)}.menu-toggle{display:flex;margin-left:auto}.navin{gap:10px;position:relative}.header-cta{margin-left:0;padding:10px 13px;font-size:14px}.brand img{height:38px;max-width:190px}.grid,.grid.four{grid-template-columns:repeat(2,1fr)}.post-list{grid-template-columns:1fr 1fr}.stats{grid-template-columns:1fr}.content-shell{grid-template-columns:1fr}.sidebar{position:static}.footer-main{grid-template-columns:1.2fr 1fr 1fr}.footer-main>div:last-child{grid-column:2/4}.trust-grid{grid-template-columns:1fr}.prefooter-inner{align-items:flex-start;flex-direction:column}}
@media(max-width:580px){.topbar .wrap{min-height:31px;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;justify-content:flex-start}.topbar-desktop{display:none}.topbar-mobile{display:block;overflow:hidden;text-overflow:ellipsis}.site-header{position:sticky;top:0}.navin{min-height:66px}.brand{min-width:0}.brand img{height:34px;max-width:165px}.brand .fallback-mark{width:34px;height:34px}.brand span{font-size:1.05rem}.header-cta{font-size:13px;padding:9px 11px;border-radius:10px}.cta-desktop{display:none}.cta-mobile{display:inline}.menu-toggle{width:42px;height:42px}.hero{padding:46px 0 34px}.hero h1{font-size:clamp(42px,13vw,54px);line-height:1.01;letter-spacing:-.05em}.hero>div>p{font-size:17px;line-height:1.65}.heroactions{gap:10px}.heroactions .btn{padding:13px 15px}.section{padding:46px 0}.section-heading-row{align-items:flex-start;flex-direction:column;gap:0}.grid,.grid.four,.post-list{grid-template-columns:1fr}.stats{margin-top:28px}.stat{padding:17px}.trust-box{padding:20px}.prefooter{padding:34px 0}.prefooter h2{font-size:27px}.footer-main{grid-template-columns:1fr 1fr;gap:30px 24px;padding:40px 0 26px}.footer-brand{grid-column:1/-1}.footer-main>div:last-child{grid-column:auto}.site-footer h4{font-size:12px}.site-footer a{font-size:14px;margin:10px 0}.footer-bottom{align-items:flex-start;flex-direction:column;padding-bottom:24px}.footer-legal{gap:12px 16px}.footer-legal a{font-size:13px}}
