/*
Theme Name: House Fixing Pro
Theme URI: https://example.com/
Author: Ehyperlink
Description: Clean, decision-first home improvement editorial theme.
Version: 2.1.1
Text Domain: house-fixing-pro
Requires at least: 6.0
Requires PHP: 7.4
*/
:root{
 --hfp-bg:#f8f5ee;--hfp-card:#fff;--hfp-green:#134e41;--hfp-green2:#0b3028;
 --hfp-orange:#e8692b;--hfp-ink:#22332d;--hfp-muted:#717d77;--hfp-line:#e4ddd3;--hfp-soft:#eef5f1;
}
*{box-sizing:border-box}html{scroll-behavior:smooth}
body{margin:0;background:var(--hfp-bg);color:var(--hfp-ink);font-family:Arial,Helvetica,sans-serif;overflow-x:hidden}
a{text-decoration:none;color:inherit}img{max-width:100%;height:auto}.wrap{width:min(1240px,calc(100% - 32px));margin:auto}

/* Header */
.hfp-header{position:sticky;top:0;z-index:999;background:rgba(255,255,255,.98);border-bottom:1px solid #e5ded4;box-shadow:0 8px 24px rgba(22,65,53,.05)}
.admin-bar .hfp-header{top:32px}.hfp-head{min-height:82px;display:grid;grid-template-columns:285px 1fr 210px;gap:18px;align-items:center}
.hfp-logo img{width:270px;display:block}.hfp-nav ul{display:flex;justify-content:center;gap:4px;flex-wrap:wrap;list-style:none;margin:0;padding:0}
.hfp-nav a{display:block;padding:10px 10px;border-radius:999px;font-size:11px;font-weight:800}.hfp-nav a:hover,.hfp-nav .current-menu-item>a{background:#edf6f1;color:var(--hfp-green)}
.hfp-search{height:40px;display:grid;grid-template-columns:1fr 40px;border:1px solid #ded7ce;border-radius:999px;overflow:hidden;background:#fff}
.hfp-search input{border:0;outline:0;padding:0 12px}.hfp-search button{border:0;background:var(--hfp-orange);color:#fff;font-weight:900}

/* Hero */
.hfp-hero{padding:30px 0 36px;background:linear-gradient(90deg,#fff9f3,#f8f5ee 58%,#edf6f0)}
.hfp-hero-grid{display:grid;grid-template-columns:1fr .9fr;gap:24px}.hfp-hero-copy,.hfp-hero-media{border-radius:22px;border:1px solid var(--hfp-line);overflow:hidden}
.hfp-hero-copy{background:#fff;padding:42px}.hfp-kicker{color:var(--hfp-orange);font-size:10px;font-weight:900;letter-spacing:.16em;text-transform:uppercase}
.hfp-hero h1{margin:12px 0 18px;font-size:clamp(3.3rem,5.4vw,5.7rem);line-height:.92;letter-spacing:-.045em;color:var(--hfp-green)}
.hfp-hero p{max-width:590px;color:var(--hfp-muted);font-size:15px;line-height:1.65}
.hfp-actions{display:flex;gap:10px;margin-top:22px}.hfp-btn{display:inline-flex;align-items:center;min-height:44px;padding:0 18px;border-radius:10px;font-size:11px;font-weight:900;border:1px solid #d8d1c8}
.hfp-btn.primary{background:var(--hfp-green);color:#fff;border-color:var(--hfp-green)}.hfp-btn.secondary{background:var(--hfp-orange);color:#fff;border-color:var(--hfp-orange)}
.hfp-hero-media{position:relative;min-height:430px;background:#b8c7bf}.hfp-hero-media img{width:100%;height:100%;object-fit:cover}
.hfp-hero-note{position:absolute;left:20px;right:20px;bottom:20px;background:rgba(19,78,65,.95);color:#fff;padding:16px;border-radius:16px}
.hfp-hero-note small{display:block;color:#ffd4bb;font-size:8px;font-weight:900;text-transform:uppercase}.hfp-hero-note strong{display:block;margin-top:6px;font-size:1.25rem;line-height:1.12}

/* Sections */
.hfp-section{padding:48px 0}.hfp-section.alt{background:#fffaf4;border-top:1px solid #e9e1d7;border-bottom:1px solid #e9e1d7}
.hfp-section-head{display:flex;justify-content:space-between;align-items:end;gap:16px;margin-bottom:18px}.hfp-section-head h2{margin:0;font-size:2rem;color:var(--hfp-green)}.hfp-section-head p{margin:5px 0 0;color:var(--hfp-muted);font-size:12px}

/* Decision cards */
.hfp-decision{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.hfp-decision-card{background:#fff;border:1px solid var(--hfp-line);border-radius:16px;padding:18px;min-height:130px}
.hfp-decision-card b{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:var(--hfp-soft);color:var(--hfp-green)}
.hfp-decision-card h3{margin:12px 0 7px}.hfp-decision-card p{margin:0;color:var(--hfp-muted);font-size:11px;line-height:1.5}

/* Category cards */
.hfp-cat-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px
}
.hfp-cat{
  position:relative;
  display:block;
  overflow:hidden;
  background:#fff;
  border:1px solid var(--hfp-line);
  border-radius:18px;
  box-shadow:0 10px 24px rgba(19,78,65,.05);
  transition:transform .2s ease,box-shadow .2s ease
}
.hfp-cat:hover{
  transform:translateY(-4px);
  box-shadow:0 16px 34px rgba(19,78,65,.10)
}
.hfp-cat-media{
  display:block;
  height:175px;
  overflow:hidden;
  background:#dce7e1
}
.hfp-cat-media img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .25s ease
}
.hfp-cat:hover .hfp-cat-media img{transform:scale(1.035)}
.hfp-cat-copy{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  min-height:64px;
  padding:13px 14px;
  border-top:4px solid var(--hfp-orange)
}
.hfp-cat-copy strong{
  color:var(--hfp-green);
  font-size:10.5px;
  line-height:1.15
}
.hfp-cat-copy b{
  color:var(--hfp-orange);
  font-size:9px;
  white-space:nowrap
}

/* Feature and latest */
.hfp-feature{display:grid;grid-template-columns:1.25fr .75fr;gap:16px}.hfp-feature-main{position:relative;min-height:400px;border-radius:18px;overflow:hidden;background:var(--hfp-green)}
.hfp-feature-main img{width:100%;height:400px;object-fit:cover;filter:brightness(.72)}.hfp-feature-copy{position:absolute;left:22px;right:22px;bottom:22px;color:#fff}.hfp-feature-copy h3{margin:6px 0;font-size:2rem;line-height:1.06}
.hfp-quick{background:#fff;border:1px solid var(--hfp-line);border-radius:18px;padding:16px}.hfp-quick h3{margin:0 0 10px}.hfp-quick a{display:flex;justify-content:space-between;padding:13px 0;border-bottom:1px solid #eee7df;font-weight:700}.hfp-quick a:last-child{border-bottom:0}
.hfp-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.hfp-card{background:#fff;border:1px solid var(--hfp-line);border-radius:16px;overflow:hidden}.hfp-card-img{display:block;height:205px;overflow:hidden}.hfp-card-img img{width:100%;height:100%;object-fit:cover}
.hfp-card-body{padding:14px 15px 17px}.hfp-card-body small{color:var(--hfp-orange);font-size:8px;font-weight:900;text-transform:uppercase}.hfp-card h3{margin:7px 0 8px;font-size:1.08rem;line-height:1.17}.hfp-card p{margin:0;color:var(--hfp-muted);font-size:10.5px;line-height:1.5}

/* Single post */
.hfp-post-hero{background:#edf6f1;padding:42px 0 28px;border-bottom:1px solid #dce8e1}.hfp-post-hero h1{max-width:930px;margin:8px 0 10px;font-size:clamp(2.7rem,5vw,4.5rem);line-height:.98;color:var(--hfp-green)}
.hfp-post-meta{display:flex;gap:8px;color:#79857f;font-size:10px}.hfp-post-wrap{width:min(1040px,calc(100% - 32px));margin:auto;padding:38px 0 60px}
.hfp-article{background:#fff;border:1px solid #e1dad1;border-radius:18px;padding:34px 38px;overflow:hidden;box-shadow:0 14px 32px rgba(23,69,57,.06)}
.hfp-featured img{display:block;width:100%;height:500px;object-fit:cover;border-radius:14px;border:1px solid #d7d1c8;box-shadow:0 14px 30px rgba(23,69,57,.09);margin-bottom:28px}
.hfp-entry{font:16px/1.8 Georgia,"Times New Roman",serif;color:#3c4a44}.hfp-entry>*{max-width:100%;box-sizing:border-box}.hfp-entry h2,.hfp-entry h3{color:var(--hfp-green)}
.hfp-entry img{display:block;width:100%;height:auto;border-radius:12px;border:1px solid #d7d1c8;box-shadow:0 10px 22px rgba(23,69,57,.08)}
.hfp-entry a{color:#0b7c56;text-decoration:underline}.hfp-entry p,.hfp-entry li,.hfp-entry a,.hfp-entry span,.hfp-entry strong{overflow-wrap:anywhere;white-space:normal}
.hfp-context{margin:28px 0;padding:14px 16px;background:#edf7f1;border:1px solid #d5e8dc;border-left:4px solid var(--hfp-orange);border-radius:10px}
.hfp-context small{display:block;margin-bottom:6px;color:var(--hfp-green);font-size:8px;font-weight:900;text-transform:uppercase}
.hfp-context a{display:flex;justify-content:space-between;gap:12px;color:var(--hfp-green)!important;text-decoration:none!important;font-weight:700}.hfp-context b{color:var(--hfp-orange)}
.hfp-related{margin-top:38px;padding-top:24px;border-top:1px solid #dfe7e2}.hfp-related h2{margin:0 0 16px}.hfp-related-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.hfp-related-card{background:#fff;border:1px solid #e0d9d0;border-radius:14px;overflow:hidden}.hfp-related-card img{width:100%;height:170px;object-fit:cover}.hfp-related-card div{padding:12px}.hfp-related-card h3{margin:0;font-size:1rem;line-height:1.15}

/* Modern footer */
.hfp-footer{background:var(--hfp-green2);color:#eef6f2;position:relative;margin-top:60px;padding-top:50px}
.hfp-footer-steps{position:absolute;top:-50px;left:0;right:0;height:50px;display:grid;grid-template-columns:1.2fr 1.4fr 1fr 1.1fr}
.hfp-footer-steps span:nth-child(1){background:var(--hfp-orange);height:26px;align-self:end}.hfp-footer-steps span:nth-child(2){background:#427061;height:42px;align-self:end}.hfp-footer-steps span:nth-child(3){background:#d9e6dd;height:18px;align-self:end}.hfp-footer-steps span:nth-child(4){background:#1d6252;height:50px;align-self:end}
.hfp-footer-cta{display:grid;grid-template-columns:1.6fr auto;gap:24px;align-items:center;padding:36px 0 28px;border-bottom:1px solid rgba(255,255,255,.10)}
.hfp-footer-cta h2{margin:0;color:#fff;font:700 2.1rem/1 Georgia,serif}.hfp-footer-cta p{margin:8px 0 0;color:#cbd9d3;font-size:11px}
.hfp-footer-cta a{display:inline-flex;align-items:center;min-height:42px;padding:0 16px;border-radius:999px;background:var(--hfp-orange);color:#fff!important;font-size:10px;font-weight:900}
.hfp-footer-grid{display:grid;grid-template-columns:1.45fr 1fr 1fr 1fr;gap:32px;padding:34px 0 28px}.hfp-footer-brand img{width:260px;filter:brightness(1.45)}.hfp-footer-brand p{max-width:350px;color:#d5e2dd;font-size:11px;line-height:1.65}
.hfp-footer-col{display:flex;flex-direction:column;gap:8px}.hfp-footer-col h3{margin:0 0 8px}.hfp-footer a{color:#e0e9e5;font-size:10px}.hfp-footer a:hover{color:#ffc39b}
.hfp-footer-bottom{display:flex;justify-content:space-between;gap:20px;border-top:1px solid rgba(255,255,255,.12);padding:14px 0 20px;color:#9eb0a8;font-size:9px}

@media(max-width:1050px){.hfp-head{grid-template-columns:230px 1fr}.hfp-search{grid-column:1/-1}.hfp-cat-grid{grid-template-columns:repeat(3,1fr)}.hfp-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:820px){.admin-bar .hfp-header{top:46px}.hfp-header{position:relative}.hfp-head{grid-template-columns:1fr;gap:10px;padding:12px 0}.hfp-nav ul{justify-content:flex-start}.hfp-hero-grid,.hfp-feature,.hfp-decision,.hfp-footer-cta{grid-template-columns:1fr}.hfp-footer-grid{grid-template-columns:1fr 1fr}.hfp-featured img{height:340px}}
@media(max-width:560px){.hfp-cat-grid,.hfp-grid,.hfp-related-grid,.hfp-footer-grid{grid-template-columns:1fr}.hfp-actions{flex-direction:column;align-items:flex-start}.hfp-article{padding:20px 16px}.hfp-featured img{height:250px}.hfp-footer-bottom{flex-direction:column}}
