/*
Theme Name: That Fence Guy 2026
Author: Craig
Version: 1.0
*/

:root{
  --tfg-primary:#256D34;   /* main green */
  --tfg-accent:#25A434;    /* lighter accent */
  --tfg-text:#0f1a12;
  --tfg-muted:#4b5b50;
  --tfg-bg:#ffffff;
  --tfg-surface:#f6f8f6;
  --tfg-border:#e6ebe7;
  --tfg-radius:12px;
  --tfg-max:1100px;
  --tfg-font:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--tfg-font);
  color:var(--tfg-text);
  background:var(--tfg-bg);
  line-height:1.5;
}

img{max-width:100%;height:auto;display:block}
a{color:inherit}

.container{
  max-width:var(--tfg-max);
  margin:0 auto;
  padding:0 16px;
}

/* Header */
.site-header{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--tfg-border);
}

.site-header__inner{
  max-width:var(--tfg-max);
  margin:0 auto;
  padding:12px 16px;
  display:flex;
  align-items:center;
  gap:1px;
}

.site-logo{
  display:inline-flex;
  align-items:center;
  text-decoration:none;
  min-width:180px;
}

.site-logo__img{
  height:100px;
  width:auto;
}

.site-nav{
  display:flex;
  gap:10px;
  margin:0 auto;
  align-items:center;
}

.site-nav__link{
  text-decoration:none;
  padding:8px 14px;
  border-radius:10px;
  color:var(--tfg-text);
}

.site-nav__link:hover{
  background:var(--tfg-surface);
}

.site-cta{
  text-decoration:none;
  padding:10px 14px;
  border-radius:12px;
  border:1px solid var(--tfg-primary);
  color:var(--tfg-primary);
  font-weight:700;
}

.site-cta:hover{
  background:var(--tfg-primary);
  color:#fff;
}

/* Review band */
.review-band{
  background:linear-gradient(0deg, rgba(37,109,52,0.08), rgba(37,109,52,0.08));
  border-bottom:1px solid var(--tfg-border);
  border-radius:24px;     /* match hero section */
  overflow:hidden;        /* clips Trustindex content */
  margin-top: 100px;   /* increase to taste: 56px, 64px if needed */
}

.review-band__inner{
  max-width:var(--tfg-max);
  margin:0 auto;
  padding:14px 16px;
}

/* Main */
.page{
  max-width:var(--tfg-max);
  margin:0 auto;
  padding:32px 16px;
}

.hero{
  border:1px solid var(--tfg-border);
  background:linear-gradient(0deg, rgba(37,164,52,0.10), rgba(37,164,52,0.10));
  border-radius:18px;
  padding:22px;
}

.hero h1{
  margin:0 0 10px 0;
  font-size:40px;
  letter-spacing:-0.6px;
}

.hero p{
  margin:0;
  max-width:75ch;
  color:var(--tfg-muted);
}

.section{
  margin-top:18px;
  border:1px solid var(--tfg-border);
  border-radius:18px;
  padding:18px;
  background:var(--tfg-surface);
}

.badge{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(37,164,52,0.14);
  color:var(--tfg-primary);
  font-weight:700;
  font-size:13px;
}

/* Blog */
.post-card{
  padding:16px 0;
  border-bottom:1px solid var(--tfg-border);
}

.post-card h2{
  margin:0 0 6px 0;
  font-size:22px;
}

.post-meta{
  font-size:14px;
  color:var(--tfg-muted);
  margin-bottom:10px;
}

.post-content{
  max-width:80ch;
}

.post-content h2,.post-content h3{margin-top:22px}
.post-content a{
  color:var(--tfg-primary);
  text-decoration:underline;
  text-underline-offset:3px;
}

/* Footer */
.site-footer{
  border-top:1px solid var(--tfg-border);
  margin-top:40px;
  background:var(--tfg-bg);
}

.site-footer__inner{
  max-width:var(--tfg-max);
  margin:0 auto;
  padding:18px 16px;
  font-size:14px;
  color:var(--tfg-muted);
}
.work-grid{
  display:flex;
  flex-direction:column;
  gap:18px;
}

.work-row{
  display:flex;
  gap:18px;
}

.work-image{
  flex:1;
  border-radius:14px;
  overflow:hidden;
  border:1px solid var(--tfg-border);
  background:#9ab9a8;
}

.work-image img{
  width:100%;
  height:260px;
  object-fit:contain;      
  object-position:center;
  display:block;
}

@media (max-width: 700px){
  .work-row{
    flex-direction:column;
  }
  .work-image img{
    height:240px;
  }
}
.work-caption{
  text-align: center;
  margin: 0 auto;
  max-width: 70ch;
}

.site-nav{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  flex-wrap:wrap;
}

/* Home + Blog */
.nav-link{
  text-decoration:none;
  font-weight:600;
  padding:8px 14px;
  border-radius:999px;
  color:#256D34;
  border:1px solid transparent;
}

.nav-link:hover{
  border-color:#25A434;
  background:#eef7f0;
}

/* Nav buttons */
.nav-button{
  text-decoration:none;
  font-weight:600;
  padding:8px 16px;
  border-radius:999px;
  color:#256D34;
  border:1px solid #256D34;
  background:#ffffff;
}

.nav-button:hover{
  background:#256D34;
  color:#ffffff;
}

/* Primary CTA — Get a Quote */
.nav-enquire{
  background:#256D34;
  color:#ffffff;
  border-color:#256D34;
}

.nav-enquire:hover{
  background:#1d5429;
  border-color:#1d5429;
  color:#ffffff;
}

/* Mobile tidy-up */
@media (max-width: 600px){
  .site-nav{
    gap:10px;
    flex-wrap:nowrap;
  }
}
/* Blog cards */
.blog-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:18px;
}

.blog-card{
  border:1px solid var(--tfg-border);
  background:#fff;
  border-radius:18px;
  padding:16px;
  box-shadow:0 1px 0 rgba(0,0,0,0.03);
}

.blog-card__title{
  margin:0 0 6px 0;
  font-size:22px;
  letter-spacing:-0.2px;
}

.blog-card__link{
  text-decoration:none;
}

.blog-card__link:hover{
  text-decoration:underline;
  text-underline-offset:3px;
}

.blog-card__meta{
  font-size:14px;
  color:var(--tfg-muted);
  margin-bottom:12px;
}

.blog-card__thumb{
  display:block;
  border-radius:14px;
  overflow:hidden;
  border:1px solid var(--tfg-border);
  margin:10px 0 12px 0;
  background:var(--tfg-surface);
}

.blog-card__thumb img{
  width:100%;
  height:220px;
  object-fit:cover;
  display:block;
}

.blog-card__excerpt{
  color:var(--tfg-text);
  max-width:75ch;
}

.blog-card__excerpt p{
  margin:0;
  color:var(--tfg-muted);
}

.blog-card__actions{
  margin-top:14px;
}

.blog-card__button{
  display:inline-block;
  text-decoration:none;
  font-weight:600;
  padding:8px 14px;
  border-radius:999px;
  color:var(--tfg-primary);
  border:1px solid var(--tfg-primary);
  background:#fff;
}

.blog-card__button:hover{
  background:var(--tfg-primary);
  color:#fff;
}

.blog-pagination{
  margin-top:18px;
}

/* Pagination links */
.blog-pagination .page-numbers{
  display:inline-block;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--tfg-border);
  text-decoration:none;
  margin-right:8px;
  color:var(--tfg-text);
  background:#fff;
}

.blog-pagination .page-numbers.current{
  border-color:var(--tfg-primary);
  color:var(--tfg-primary);
}

.blog-pagination .page-numbers:hover{
  border-color:var(--tfg-accent);
}

/* Mobile */
@media (max-width: 800px){
  .blog-grid{
    grid-template-columns: 1fr;
  }
  .blog-card__thumb img{
    height:200px;
  }
}
.blog .hero{
  margin-top: 100px;
}