/*
Theme Name: House Fix Corner
Theme URI: https://example.com/
Author: Ehyperlink
Description: Premium home improvement editorial theme for House Fix Corner.
Version: 1.0.1
Text Domain: house-fix-corner
Requires at least: 6.0
Requires PHP: 7.4
*/

:root{
  --hfc-cream:#fbf5ec;
  --hfc-cream2:#fffaf4;
  --hfc-green:#173e32;
  --hfc-green2:#0d2f26;
  --hfc-orange:#e86a1d;
  --hfc-orange2:#c65316;
  --hfc-sand:#ead9c6;
  --hfc-ink:#24342e;
  --hfc-muted:#747d78;
  --hfc-line:#e6ddd2;
  --hfc-white:#fffdfa;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--hfc-cream);color:var(--hfc-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(1260px,calc(100% - 34px));margin:auto}

/* Header */
.hfc-header{position:sticky;top:0;z-index:999;background:rgba(255,255,255,.98);backdrop-filter:blur(12px);border-bottom:1px solid #ebe3da;box-shadow:0 7px 22px rgba(23,62,50,.05)}
.admin-bar .hfc-header{top:32px}
.hfc-head{min-height:82px;display:grid;grid-template-columns:300px 1fr 120px;gap:18px;align-items:center}
.hfc-logo img{display:block;width:275px;max-height:70px;object-fit:contain}
.hfc-nav ul{display:flex;justify-content:center;gap:4px;flex-wrap:wrap;list-style:none;margin:0;padding:0}
.hfc-nav a{display:block;padding:11px 10px;border-radius:999px;color:#203c33;font-size:11px;font-weight:800}
.hfc-nav a:hover,.hfc-nav .current-menu-item>a{background:#f4e7d7;color:#d65b19}
.hfc-search{height:42px;display:grid;grid-template-columns:1fr 42px;border:1px solid #e0d7cd;border-radius:999px;overflow:hidden;background:#fff}
.hfc-search input{border:0;outline:0;padding:0 13px;background:transparent;color:#5f6d66;font-size:12px}
.hfc-search button{border:0;background:#173e32;color:#fff}

/* Hero */
.hfc-hero{padding:24px 0 34px;background:linear-gradient(90deg,#fff8f0 0%,#fbf5ec 45%,#eef5ec 100%)}
.hfc-hero-grid{display:grid;grid-template-columns:1fr 1.05fr .78fr;gap:24px;align-items:center}
.hfc-kicker{color:#d65b19;font-size:10px;font-weight:900;letter-spacing:.17em;text-transform:uppercase}
.hfc-hero h1{margin:12px 0 18px;font:700 clamp(3.5rem,5.4vw,5.8rem)/.93 Georgia,serif;letter-spacing:-.045em;color:#17362d}
.hfc-hero h1 span{display:block;color:#e86a1d}
.hfc-hero p{max-width:560px;margin:0;color:#6c7872;font-size:15px;line-height:1.65}
.hfc-actions{display:flex;gap:12px;margin-top:24px}
.hfc-btn{display:inline-flex;align-items:center;min-height:46px;padding:0 20px;border-radius:12px;font-size:11px;font-weight:900;border:1px solid #dacfc5}
.hfc-btn.primary{background:#e86a1d;color:#fff;border-color:#e86a1d}
.hfc-btn.secondary{background:#fff;color:#17372f}
.hfc-stats{display:flex;gap:18px;flex-wrap:wrap;margin-top:26px}
.hfc-stat strong{display:block;font-size:1.35rem;color:#183b31}
.hfc-stat span{font-size:9px;color:#7a847e;text-transform:uppercase}

.hfc-hero-photo{position:relative;min-height:460px;border-radius:180px 28px 28px 180px;overflow:hidden;border:1px solid #ded4c9;box-shadow:0 18px 36px rgba(34,61,51,.08)}
.hfc-hero-photo img{width:100%;height:100%;object-fit:cover}
.hfc-feature-note{position:absolute;left:22px;right:22px;bottom:18px;background:rgba(20,59,48,.94);color:#fff;border-radius:20px;padding:16px 18px;box-shadow:0 14px 28px rgba(0,0,0,.18)}
.hfc-feature-note small{display:block;color:#ffcba7;font-size:8px;font-weight:900;text-transform:uppercase}
.hfc-feature-note strong{display:block;margin-top:6px;font:700 1.2rem/1.1 Georgia,serif}

.hfc-topic-panel{background:#fff;border:1px solid #e7ddd2;border-radius:22px;padding:16px}
.hfc-topic-panel h3{margin:0 0 13px;font:700 1.25rem Georgia,serif}
.hfc-topic-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:9px}
.hfc-topic-grid a{min-height:66px;border-radius:14px;background:#fffaf4;border:1px solid #ede3d8;padding:10px;display:flex;align-items:center;gap:9px}
.hfc-topic-grid b{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;background:#fff0e5;color:#e86a1d}
.hfc-topic-grid span{font-size:9px;font-weight:800;line-height:1.15}

/* Sections */
.hfc-section{padding:48px 0}
.hfc-section.alt{background:#fffaf4;border-top:1px solid #ece4dc;border-bottom:1px solid #ece4dc}
.hfc-section-head{display:flex;justify-content:space-between;align-items:end;gap:18px;margin-bottom:18px}
.hfc-section-head h2{margin:0;font:700 2.15rem/1 Georgia,serif;color:#17372f}
.hfc-section-head p{margin:6px 0 0;color:#78827d;font-size:12px}
.hfc-section-head>a{color:#d85b18;font-size:10px;font-weight:900;text-transform:uppercase}

/* Categories */
.hfc-cat-grid{display:grid;grid-template-columns:repeat(13,minmax(0,1fr));gap:8px}
.hfc-cat-card{min-height:88px;padding:10px;border-radius:14px;background:#fff;border:1px solid #e5ddd3;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:7px}
.hfc-cat-card b{width:30px;height:30px;border-radius:8px;display:grid;place-items:center;background:#eff7f1;color:#167d59}
.hfc-cat-card span{font-size:8.5px;font-weight:800;line-height:1.15}

/* latest */
.hfc-article-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.hfc-card{background:#fff;border:1px solid #e2dad0;border-radius:16px;overflow:hidden;box-shadow:0 8px 20px rgba(25,55,46,.04)}
.hfc-card-img{display:block;height:200px;overflow:hidden}
.hfc-card-img img{width:100%;height:100%;object-fit:cover}
.hfc-card-body{padding:14px 15px 16px}
.hfc-card-body>small{color:#d75a19;font-size:8px;font-weight:900;text-transform:uppercase}
.hfc-card h3{margin:7px 0 8px;font:700 1.08rem/1.17 Georgia,serif;color:#23372f}
.hfc-card p{margin:0;color:#748079;font-size:10.5px;line-height:1.5}
.hfc-meta{display:flex;justify-content:space-between;margin-top:11px;color:#9ca59f;font-size:8.5px}

/* feature & trending */
.hfc-story-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:18px}
.hfc-feature-story{position:relative;min-height:390px;border-radius:22px;overflow:hidden;background:#173e32}
.hfc-feature-story img{width:100%;height:390px;object-fit:cover;filter:brightness(.7)}
.hfc-feature-story:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(10,46,37,.92),rgba(10,46,37,.18))}
.hfc-story-copy{position:absolute;z-index:2;left:24px;top:0;bottom:0;width:48%;display:flex;flex-direction:column;justify-content:center;color:#fff}
.hfc-story-copy small{color:#ffc59e;font-size:8px;font-weight:900;text-transform:uppercase}
.hfc-story-copy h3{margin:8px 0 10px;font:700 2rem/1.05 Georgia,serif}
.hfc-story-copy p{margin:0;color:#d9e6df;font-size:11px;line-height:1.55}
.hfc-story-copy .hfc-btn{margin-top:16px;width:max-content;background:#e86a1d;border-color:#e86a1d;color:#fff}

.hfc-trending{background:#fff;border:1px solid #e4dbd1;border-radius:22px;padding:16px}
.hfc-trending h3{margin:0 0 11px;font:700 1.35rem Georgia,serif}
.hfc-trending-item{display:grid;grid-template-columns:48px 1fr 18px;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid #eee7df}
.hfc-trending-item:last-child{border-bottom:0}
.hfc-trending-item b{width:40px;height:40px;border-radius:50%;background:#fff3e8;color:#e86a1d;display:grid;place-items:center}
.hfc-trending-item strong{font:700 .95rem/1.15 Georgia,serif}
.hfc-trending-item span{color:#d75a19}

/* Newsletter */
.hfc-newsletter{display:grid;grid-template-columns:1fr 1.3fr .9fr;gap:16px;align-items:center;background:#fff4e8;border:1px solid #e7d9ca;border-radius:22px;padding:18px 20px}
.hfc-newsletter h3{margin:0;font:700 1.3rem Georgia,serif}
.hfc-newsletter p{margin:4px 0 0;color:#7e7a74;font-size:10px}
.hfc-newsletter form{display:grid;grid-template-columns:1fr auto;gap:8px}
.hfc-newsletter input{height:42px;border:1px solid #dfd6cc;border-radius:12px;padding:0 12px;background:#fff}
.hfc-newsletter button{border:0;border-radius:12px;background:#173e32;color:#fff;padding:0 18px;font-weight:800}
.hfc-news-trust{display:flex;justify-content:flex-end;gap:12px;flex-wrap:wrap}
.hfc-news-trust span{font-size:9px;color:#5f6e67}

/* Single */
.hfc-post-hero{background:#eef6f0;padding:42px 0 28px;border-bottom:1px solid #dfe9e3}
.hfc-post-hero h1{max-width:930px;margin:8px 0 10px;font:700 clamp(2.7rem,5vw,4.5rem)/.98 Georgia,serif;color:#173a30}
.hfc-post-meta{display:flex;gap:8px;color:#79857f;font-size:10px}
.hfc-post-wrap{width:min(1080px,calc(100% - 32px));margin:auto;padding:38px 0 60px}
.hfc-article{background:#fff;border:1px solid #e1dad1;border-radius:18px;padding:34px 38px;box-shadow:0 16px 34px rgba(25,55,46,.07);overflow:hidden}
.hfc-featured img{display:block;width:100%;height:520px;object-fit:cover;border-radius:14px;border:1px solid #d9d1c7;box-shadow:0 14px 30px rgba(28,55,46,.09);margin-bottom:28px}
.hfc-entry{font:16px/1.8 Georgia,"Times New Roman",serif;color:#3c4a44}
.hfc-entry>*{max-width:100%;box-sizing:border-box}
.hfc-entry h2,.hfc-entry h3{color:#183a30}
.hfc-entry img{display:block;width:100%;max-width:100%;height:auto;border-radius:12px;border:1px solid #d8d1c8;box-shadow:0 10px 22px rgba(30,54,47,.08)}
.hfc-entry a{color:#0b7c56;text-decoration:underline}
.hfc-entry p,.hfc-entry li,.hfc-entry a,.hfc-entry span,.hfc-entry strong{overflow-wrap:anywhere;white-space:normal}

.hfc-context-link{margin:28px 0;padding:14px 16px;background:#edf7f1;border:1px solid #d5e8dc;border-left:4px solid #15835b;border-radius:10px}
.hfc-context-link small{display:block;margin-bottom:6px;color:#15835b;font-size:8px;font-weight:900;text-transform:uppercase;letter-spacing:.13em}
.hfc-context-link a{display:flex;justify-content:space-between;gap:12px;color:#173c32!important;text-decoration:none!important;font-weight:700}
.hfc-context-link b{color:#ff6b22}

.hfc-related{margin-top:38px;padding-top:24px;border-top:1px solid #dfe7e2}
.hfc-related h2{margin:0 0 16px;font-size:2rem}
.hfc-related-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.hfc-related-card{background:#fff;border:1px solid #e0d9d0;border-radius:14px;overflow:hidden}
.hfc-related-card img{width:100%;height:170px;object-fit:cover}
.hfc-related-card div{padding:12px}
.hfc-related-card h3{margin:0;font-size:1rem;line-height:1.15}

/* Unique footer matching selected design */
.hfc-footer{
  position:relative;
  background:linear-gradient(120deg,#14382e 0%,#1b4436 42%,#2f3f2c 100%);
  color:#f8f3e9;
  overflow:hidden;
  border-top:4px solid #e86a1d;
}
.hfc-footer-scene{
  position:relative;
  min-height:255px;
  background:
    linear-gradient(90deg,rgba(13,46,37,.90),rgba(41,54,36,.68)),
    url('assets/images/footer-home.jpg') center/cover no-repeat;
}
.hfc-footer-scene:before{
  content:"";position:absolute;left:-110px;bottom:-90px;width:420px;height:220px;border-radius:50%;
  background:#0e3a2e;box-shadow:310px 28px 0 #1d513f,640px 18px 0 #294631
}
.hfc-footer-grid{
  position:relative;z-index:2;
  display:grid;grid-template-columns:1.45fr 1fr 1fr 1fr 1.05fr;gap:28px;
  padding:46px 0 34px
}
.hfc-footer-brand img{width:265px;filter:brightness(1.4)}
.hfc-footer-brand p{max-width:330px;color:#d7e0da;font-size:11px;line-height:1.65}
.hfc-social{display:flex;gap:8px;margin-top:18px}
.hfc-social a{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.18);font-size:11px;font-weight:800}
.hfc-social a:hover{background:#e86a1d;border-color:#e86a1d}
.hfc-footer-col{display:flex;flex-direction:column;gap:8px}
.hfc-footer-col h3{margin:0 0 9px;color:#fff;font-size:1rem}
.hfc-footer-col a{color:#e0e6e2;font-size:10px}
.hfc-footer-col a:hover{color:#ffc29a}
.hfc-footer-cta{align-self:start;background:rgba(255,248,239,.96);color:#17382e;border-radius:18px;padding:18px;box-shadow:0 12px 28px rgba(0,0,0,.14)}
.hfc-footer-cta h3{margin:0 0 8px;font:700 1.2rem Georgia,serif}
.hfc-footer-cta p{margin:0;color:#6f7b75;font-size:10px;line-height:1.5}
.hfc-footer-cta a{display:inline-flex;margin-top:12px;min-height:38px;align-items:center;padding:0 14px;border-radius:10px;background:#e86a1d;color:#fff!important;font-size:10px;font-weight:800}
.hfc-footer-trust{background:#0a241d;border-top:1px solid rgba(255,255,255,.09)}
.hfc-footer-trust-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;padding:15px 0}
.hfc-trust-item{display:flex;align-items:center;gap:9px;color:#dbe3dd;font-size:10px}
.hfc-trust-item b{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;border:1px solid #4c6d5b;color:#ffc096}
.hfc-footer-bottom{background:#071813;border-top:1px solid rgba(255,255,255,.08)}
.hfc-footer-bottom-inner{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:13px 0 17px;color:#91a198;font-size:9px}

@media(max-width:1180px){
  .hfc-head{grid-template-columns:240px 1fr}.hfc-search{grid-column:1/-1}
  .hfc-hero-grid{grid-template-columns:1fr 1fr}
  .hfc-topic-panel{grid-column:1/-1}
  .hfc-cat-grid{grid-template-columns:repeat(7,1fr)}
  .hfc-article-grid{grid-template-columns:repeat(2,1fr)}
  .hfc-footer-grid{grid-template-columns:1.4fr 1fr 1fr}
}
@media(max-width:850px){
  .admin-bar .hfc-header{top:46px}
  .hfc-header{position:relative}
  .hfc-head{grid-template-columns:1fr;gap:10px;padding:12px 0}
  .hfc-nav ul{justify-content:flex-start}
  .hfc-hero-grid,.hfc-story-grid,.hfc-newsletter{grid-template-columns:1fr}
  .hfc-hero-photo{min-height:380px;border-radius:28px}
  .hfc-news-trust{justify-content:flex-start}
  .hfc-footer-grid{grid-template-columns:1fr 1fr}
  .hfc-footer-trust-grid{grid-template-columns:repeat(2,1fr)}
  .hfc-featured img{height:360px}
}
@media(max-width:560px){
  .hfc-cat-grid,.hfc-article-grid,.hfc-related-grid,.hfc-footer-grid,.hfc-footer-trust-grid{grid-template-columns:1fr}
  .hfc-topic-grid{grid-template-columns:1fr 1fr}
  .hfc-hero h1{font-size:3rem}
  .hfc-actions{flex-direction:column;align-items:flex-start}
  .hfc-article{padding:20px 16px}
  .hfc-featured img{height:260px}
  .hfc-footer-bottom-inner{flex-direction:column;align-items:flex-start}
}
