/*
Theme Name: HomeHaloHub Garden Gate
Theme URI: https://homehalohub.com/
Author: HomeHaloHub
Description: Editorial home-improvement WordPress theme based on the supplied Garden Gate reference. Responsive, classic PHP theme with safe article wrapping.
Version: 1.0.3
Text Domain: homehalohub-garden-gate
*/

:root{
  --green:#2f673d;
  --green2:#dfeee8;
  --lime:#79c14c;
  --cream:#f4efe4;
  --paper:#fffdfa;
  --rust:#bc5a3c;
  --peach:#dc9159;
  --ink:#473126;
  --muted:#766b62;
  --line:#d8d1c4;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;max-width:100%;overflow-x:hidden}
body{margin:0;background:var(--cream);color:var(--ink);font-family:Arial,Helvetica,sans-serif;max-width:100%;overflow-x:hidden}
a{color:inherit}
img{max-width:100%;height:auto;display:block}
.wrap{width:min(1180px,calc(100% - 40px));margin:auto}
.site-header{background:#fff;border-bottom:1px solid #ded9cf;position:sticky;top:0;z-index:50}
.admin-bar .site-header{top:32px}
.header-inner{height:70px;display:grid;grid-template-columns:220px 1fr 290px;align-items:center;gap:20px}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;font-weight:800}
.brand-mark{width:34px;height:22px;position:relative}
.brand-mark:before{content:"";position:absolute;left:0;bottom:0;width:13px;height:13px;background:var(--green);border-radius:14px 14px 2px 14px;transform:rotate(-30deg)}
.brand-mark:after{content:"";position:absolute;left:12px;top:0;width:18px;height:12px;background:var(--lime);border-radius:16px 16px 3px 16px;transform:rotate(-20deg)}
.brand-name{font-family:Georgia,serif;font-size:19px}
.main-nav{display:flex;justify-content:center;gap:28px;font-size:12px;font-weight:700}
.main-nav a{text-decoration:none}
.header-search{display:flex;height:38px;border:1px solid #d8d1c8;border-radius:8px;overflow:hidden;background:white}
.header-search input{flex:1;border:0;outline:0;padding:0 13px;font-size:12px}
.header-search button{width:42px;border:0;background:var(--green);color:white;font-size:18px}
.subnav{background:white;border-top:1px solid #eee7dc;border-bottom:1px solid #eee7dc}
.subnav .wrap{height:32px;display:flex;align-items:center;justify-content:center;gap:12px;font-size:9px;text-transform:uppercase;letter-spacing:1px;color:#756d66}

.hero{background:var(--green);color:white}
.hero-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:58px;align-items:center;padding:64px 0}
.eyebrow{font-size:10px;text-transform:uppercase;letter-spacing:1.5px;color:#dcebbf;font-weight:800;margin-bottom:12px}
.hero h1{font:700 55px/.93 Georgia,serif;margin:0 0 20px;max-width:580px}
.hero p{font-size:14px;line-height:1.6;max-width:590px;color:#eef6ef}
.btn-row{display:flex;gap:12px;margin-top:24px}
.btn{display:inline-flex;align-items:center;justify-content:center;padding:12px 18px;border-radius:5px;text-decoration:none;font-size:12px;font-weight:800}
.btn-light{background:#7dc04e;color:white}
.btn-outline{border:1px solid #dbe8db;color:white}
.hero-art{background:#f8f2e5;border:8px solid white;border-radius:14px;padding:14px;box-shadow:0 12px 34px rgba(0,0,0,.15)}
.house-art{position:relative;height:290px;background:#dbece8;border-radius:5px;overflow:hidden}
.house-art .roof{position:absolute;left:30px;top:50px;width:160px;height:70px;background:#2d643b;clip-path:polygon(0 100%,50% 0,100% 100%)}
.house-art .house{position:absolute;left:48px;top:110px;width:170px;height:125px;background:#f4efe3}
.house-art .door{position:absolute;left:99px;top:155px;width:46px;height:80px;background:#df9557}
.house-art .win{position:absolute;left:160px;top:145px;width:55px;height:36px;background:#d7ebe7}
.house-art .ground{position:absolute;left:0;right:0;bottom:0;height:65px;background:#bc573b}
.house-art .tree1,.house-art .tree2{position:absolute;bottom:65px;width:34px;border-radius:50% 50% 40% 40%;background:#2f673d}
.house-art .tree1{right:65px;height:95px}.house-art .tree2{right:18px;height:120px;background:#79c14c}
.house-art .treebase{position:absolute;right:0;bottom:58px;width:130px;height:42px;background:#76bf49}

.stats{background:var(--cream)}
.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);padding:44px 0}
.stat{text-align:center;border-right:1px solid #ded6ca}
.stat:last-child{border-right:0}
.stat b{display:block;font:700 34px Georgia,serif}
.stat small{text-transform:uppercase;letter-spacing:1px;font-size:9px}
.leaf{font-size:22px;color:var(--lime)}

.categories{padding:44px 0 0}
.section-intro{display:grid;grid-template-columns:1fr 1fr;gap:30px;align-items:end;margin-bottom:28px}
.kicker{font-size:10px;text-transform:uppercase;letter-spacing:1.4px;color:var(--rust);font-weight:800}
.section-intro h2,.resources h2{font:700 42px/.95 Georgia,serif;margin:6px 0 0;max-width:600px}
.section-intro p{font-size:12px;color:var(--muted)}
.category-bands{display:flex;flex-direction:column}
.category-band{padding:18px 0}
.category-band:nth-child(odd){background:var(--cream)}
.category-band:nth-child(even){background:var(--green2)}
.cat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.cat-card{background:rgba(255,255,255,.86);border-radius:7px;padding:22px;min-height:150px;text-decoration:none;box-shadow:0 1px 0 rgba(0,0,0,.03)}
.cat-icon{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:var(--green);color:white;font-size:18px}
.cat-card:nth-child(2n) .cat-icon{background:var(--lime)}
.cat-card:nth-child(3n) .cat-icon{background:var(--rust)}
.cat-card:nth-child(4n) .cat-icon{background:var(--peach)}
.cat-card h3{font:700 20px Georgia,serif;margin:16px 0 6px}
.cat-card small{color:var(--muted);font-size:10px}

.resources{background:white;padding:54px 0}
.resources-head{display:flex;justify-content:space-between;align-items:end;margin-bottom:25px}
.resources-head a{font-size:11px;font-weight:800;text-decoration:none;color:var(--green)}
.post-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.post-card{background:var(--cream);border:1px solid #e8e0d2;border-radius:9px;padding:10px;box-shadow:0 8px 20px rgba(88,68,50,.06)}
.post-card img{width:100%;height:190px;object-fit:cover;border-radius:7px}
.post-card .meta{font-size:9px;text-transform:uppercase;color:var(--rust);letter-spacing:1px;font-weight:800;margin-top:13px}
.post-card h3{font:700 22px/1.06 Georgia,serif;margin:7px 0}
.post-card p{font-size:12px;line-height:1.45;color:var(--muted)}
.post-card a{text-decoration:none}

.manifesto{background:var(--rust);color:white;padding:42px 0}
.manifesto-inner{display:grid;grid-template-columns:80px 1fr 170px;gap:25px;align-items:center}
.manifesto .num{font:400 42px Georgia,serif}
.manifesto h2{font:700 36px Georgia,serif;margin:0}
.manifesto p{font-size:12px;max-width:750px}
.manifesto-shape{height:110px;border-radius:7px;background:#df985c}
.older{text-align:center;padding:32px 0 56px}
.older a{background:var(--green);color:white;padding:10px 16px;border-radius:6px;text-decoration:none;font-size:11px;font-weight:800}

.site-footer{background:var(--green);color:white;padding:42px 0 24px}
.footer-top{display:grid;grid-template-columns:1.3fr repeat(4,1fr);gap:30px}
.footer-brand p{font-size:12px;color:#e4efe6;max-width:360px}
.footer-col h4{font-size:9px;text-transform:uppercase;letter-spacing:1px;margin:0 0 12px;color:#dceac0}
.footer-col a{display:block;color:#dfece1;text-decoration:none;font-size:11px;margin:7px 0}
.footer-bottom{border-top:1px solid rgba(255,255,255,.15);margin-top:30px;padding-top:16px;font-size:10px;color:#dbe6dd;display:flex;justify-content:space-between}

.single-wrap{width:min(850px,calc(100% - 36px));margin:40px auto;background:var(--paper);padding:38px;border-radius:8px}
.single-title{font:700 48px/1 Georgia,serif;margin:0 0 15px}
.single-meta{font-size:11px;color:var(--muted);margin-bottom:20px}
.single-featured{border-radius:8px;border:1px solid #d8d1c4;box-shadow:0 10px 24px rgba(0,0,0,.08);margin-bottom:28px}
.entry-content,.post-content,.article-content{font-size:16px;line-height:1.7;min-width:0;max-width:100%;overflow:visible}
.entry-content *,.post-content *,.article-content *{max-width:100%;box-sizing:border-box}
.entry-content p,.entry-content li,.entry-content a,.post-content p,.post-content li,.post-content a,.article-content p,.article-content li,.article-content a{overflow-wrap:anywhere;word-wrap:break-word;word-break:normal;white-space:normal}
.entry-content img,.post-content img,.article-content img{max-width:100%;height:auto}
.entry-content table,.post-content table,.article-content table{width:100%;max-width:100%;table-layout:fixed}
.entry-content pre,.post-content pre,.article-content pre{white-space:pre-wrap;overflow-x:auto;max-width:100%}
.related-posts{margin-top:38px;border-top:1px solid var(--line);padding-top:22px}
.related-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
.related-card{background:var(--cream);border-radius:7px;padding:10px}
.related-card img{height:120px;width:100%;object-fit:cover;border-radius:5px}
.related-card h3{font:700 16px/1.15 Georgia,serif}

@media(max-width:900px){
  .header-inner{grid-template-columns:180px 1fr 220px}
  .main-nav{gap:14px}
  .hero-grid{grid-template-columns:1fr}
  .cat-grid,.post-grid{grid-template-columns:repeat(2,1fr)}
  .footer-top{grid-template-columns:1.3fr 1fr 1fr}
}
@media(max-width:650px){
  .wrap{width:min(100% - 24px,1180px)}
  .header-inner{display:flex;height:64px}
  .main-nav{display:none}
  .header-search{margin-left:auto;width:180px}
  .hero-grid{padding:40px 0;gap:28px}
  .hero h1{font-size:44px}
  .stats-grid{grid-template-columns:repeat(2,1fr);gap:25px}
  .stat{border-right:0}
  .section-intro{grid-template-columns:1fr}
  .cat-grid,.post-grid,.related-grid{grid-template-columns:1fr}
  .manifesto-inner{grid-template-columns:1fr}
  .footer-top{grid-template-columns:1fr 1fr}
  .footer-brand{grid-column:1/-1}
  .single-wrap{width:min(100% - 20px,850px);padding:22px}
  .single-title{font-size:36px}
}

/* Constrain resource card intrinsic widths and summaries. */
.post-grid,.post-card,.post-card>a{min-width:0;max-width:100%;box-sizing:border-box}
.post-card>a{display:block}.post-card h3,.post-card p{white-space:normal!important;overflow-wrap:anywhere;word-break:normal;max-width:100%}
.post-card p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
@media(max-width:900px){.post-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.post-grid{grid-template-columns:minmax(0,1fr)}}
