/*
Theme Name: Classic Home Improvements
Theme URI: https://www.classic-home-improvements.co.uk/
Author: Classic Home Improvements
Description: Custom WordPress theme for Classic Home Improvements — outdoor living, roofing & conservatories, driveway gates & access automation, and garage & doors. Includes reusable block patterns, a homepage latest-posts area, and a category template with editable category description content area.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: classic-home
Tags: blog, business, custom-colors, custom-logo, custom-menu, featured-images, block-patterns, threaded-comments
*/

:root{
  --ch-primary:#1f5132;
  --ch-accent:#c69b3b;
  --ch-dark:#1a1a1a;
  --ch-light:#f6f4ee;
  --ch-muted:#5b6b63;
  --ch-border:#e4e0d6;
  --ch-radius:6px;
  --ch-max:1180px;
  --ch-font:'Helvetica Neue',Arial,sans-serif;
}
*{box-sizing:border-box}
body{margin:0;font-family:var(--ch-font);color:var(--ch-dark);background:#fff;line-height:1.6}
img{max-width:100%;height:auto;display:block}
a{color:var(--ch-primary);text-decoration:none}
a:hover{color:var(--ch-accent)}
h1,h2,h3,h4{font-family:Georgia,serif;color:var(--ch-dark);line-height:1.2;margin:0 0 .5em}
.container{max-width:var(--ch-max);margin:0 auto;padding:0 20px}

.site-header{background:#fff;border-bottom:1px solid var(--ch-border);position:sticky;top:0;z-index:50}
.site-header .container{display:flex;align-items:center;justify-content:space-between;padding-top:18px;padding-bottom:18px}
.site-branding a{font-family:Georgia,serif;font-size:1.4rem;font-weight:700;color:var(--ch-primary)}
.site-branding small{display:block;font-size:.7rem;letter-spacing:2px;color:var(--ch-muted);text-transform:uppercase;font-family:var(--ch-font)}
.main-nav ul{list-style:none;margin:0;padding:0;display:flex;gap:1.5rem;flex-wrap:wrap}
.main-nav a{color:var(--ch-dark);font-weight:500;font-size:.95rem}
.main-nav a:hover{color:var(--ch-primary)}

.ch-hero{position:relative;background:#1a1a1a;color:#fff;overflow:hidden}
.ch-hero img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.55}
.ch-hero-inner{position:relative;padding:110px 20px;max-width:var(--ch-max);margin:0 auto;text-align:center}
.ch-hero h1{color:#fff;font-size:clamp(2rem,5vw,3.4rem);margin-bottom:.4em}
.ch-hero p{font-size:1.15rem;max-width:680px;margin:0 auto 1.6em;color:#f1ede2}
.btn{display:inline-block;background:var(--ch-accent);color:#1a1a1a;padding:14px 28px;border-radius:var(--ch-radius);font-weight:700;letter-spacing:.5px;text-transform:uppercase;font-size:.85rem}
.btn:hover{background:#fff;color:var(--ch-primary)}
.btn-outline{background:transparent;border:2px solid #fff;color:#fff}

.section{padding:70px 0}
.section-head{text-align:center;max-width:720px;margin:0 auto 50px}
.section-head h2{font-size:2.2rem}
.section-head p{color:var(--ch-muted)}

.svc-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:24px}
.svc-card{background:#fff;border:1px solid var(--ch-border);border-radius:var(--ch-radius);overflow:hidden;transition:transform .25s,box-shadow .25s}
.svc-card:hover{transform:translateY(-4px);box-shadow:0 12px 28px rgba(0,0,0,.08)}
.svc-card img{height:180px;object-fit:cover;width:100%}
.svc-card .body{padding:20px}
.svc-card h3{font-size:1.15rem;margin-bottom:.4em;color:var(--ch-primary)}
.svc-card p{margin:0;color:var(--ch-muted);font-size:.95rem}

.about-grid{display:grid;grid-template-columns:1fr 1fr;gap:50px;align-items:center}
@media(max-width:768px){.about-grid{grid-template-columns:1fr}}
.about-grid img{border-radius:var(--ch-radius)}

.posts-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:28px}
.post-card{background:#fff;border:1px solid var(--ch-border);border-radius:var(--ch-radius);overflow:hidden;display:flex;flex-direction:column}
.post-card .thumb{height:200px;background:var(--ch-light);overflow:hidden}
.post-card .thumb img{width:100%;height:100%;object-fit:cover}
.post-card .body{padding:22px;flex:1;display:flex;flex-direction:column}
.post-card h3{font-size:1.1rem;margin-bottom:.5em}
.post-card h3 a{color:var(--ch-dark)}
.post-card h3 a:hover{color:var(--ch-primary)}
.post-meta{font-size:.8rem;color:var(--ch-muted);text-transform:uppercase;letter-spacing:1px;margin-bottom:10px}
.post-card .excerpt{color:var(--ch-muted);font-size:.95rem;flex:1}
.post-card .read-more{margin-top:14px;font-weight:600;color:var(--ch-primary);font-size:.9rem}

.ch-cta{background:var(--ch-primary);color:#fff;padding:60px 20px;text-align:center}
.ch-cta h2{color:#fff;font-size:2rem}
.ch-cta p{color:#e7eee8;max-width:640px;margin:0 auto 1.5em}

.site-footer{background:#111;color:#bbb;padding:50px 0 20px;margin-top:60px;font-size:.9rem}
.site-footer a{color:#ddd}
.footer-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:30px;margin-bottom:30px}
.site-footer h4{color:#fff;font-family:var(--ch-font);font-size:1rem;text-transform:uppercase;letter-spacing:1px}
.footer-bottom{border-top:1px solid #333;padding-top:18px;text-align:center;color:#888;font-size:.8rem}

.entry{max-width:780px;margin:50px auto;padding:0 20px}
.entry h1{font-size:2.2rem;margin-bottom:.2em}
.entry .post-meta{margin-bottom:30px}
.entry img{margin:20px 0;border-radius:var(--ch-radius)}

.not-found{text-align:center;padding:120px 20px}

/* Category description content area */
.category-description{background:var(--ch-light);border-left:4px solid var(--ch-accent);padding:28px 32px;border-radius:var(--ch-radius);margin:0 0 40px;color:var(--ch-dark);font-size:1.02rem}
.category-description p:last-child{margin-bottom:0}
.category-description h2,.category-description h3{color:var(--ch-primary);margin-top:0}
