/* =========================================================
   HouseFixio — Modern Corporate Design System
   Steel Blue + White + Silver Grey | persistent sidebar shell
   ========================================================= */

:root{
  --steel:#3E6B92;
  --steel-dark:#2A4E68;
  --steel-soft:#EAF1F6;
  --silver:#E4E8EC;
  --silver-dark:#B7C0C9;
  --white:#FFFFFF;
  --ink:#1F2A33;
  --muted:#5C6B76;
  --radius-md:10px;
  --radius-sm:6px;
  --maxw:1280px;
  --pad:clamp(20px,4vw,48px);
  --font-head:'Libre Franklin',Arial,Helvetica,sans-serif;
  --font-body:'Source Serif 4','Source Serif Pro',Georgia,serif;
  --font-ui:'Libre Franklin',Arial,Helvetica,sans-serif;
  --shadow-card:0 2px 10px rgba(31,42,51,.08);
  --shadow-card-lg:0 12px 32px rgba(31,42,51,.14);
}

*,*::before,*::after{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;font-family:var(--font-body);font-weight:400;color:var(--ink);
  background:var(--white);line-height:1.7;-webkit-font-smoothing:antialiased;font-size:16.5px;
}
img{max-width:100%;display:block;height:auto;border-radius:var(--radius-sm);}
a{color:inherit;text-decoration:none;}
ul{list-style:none;margin:0;padding:0;}
button{font-family:inherit;cursor:pointer;}
.container{max-width:var(--maxw);margin:0 auto;padding:0 var(--pad);}
.screen-reader-text{position:absolute;left:-9999px;}

h1,h2,h3,h4{
  font-family:var(--font-head);font-weight:800;letter-spacing:-0.01em;
  margin:0 0 .5em;color:var(--ink);
}
p{margin:0 0 1.2em;}

.kicker{
  display:inline-flex;align-items:center;gap:.5rem;font-family:var(--font-ui);font-size:12.5px;font-weight:700;
  letter-spacing:.08em;text-transform:uppercase;color:var(--steel);margin-bottom:.6rem;
}

/* =========== HEADER =========== */
.site-header{position:sticky;top:0;z-index:100;background:var(--white);border-bottom:1px solid var(--silver-dark);box-shadow:var(--shadow-card);}
.site-header .container{display:flex;align-items:center;justify-content:space-between;height:76px;}
.site-logo img{height:38px;width:auto;display:block;}
.site-logo{display:flex;align-items:center;}

.primary-nav ul{display:flex;gap:2rem;align-items:center;}
.primary-nav a{font-family:var(--font-ui);font-size:14.5px;font-weight:700;color:var(--ink);padding:.4rem 0;border-bottom:2px solid transparent;}
.primary-nav a:hover{color:var(--steel);border-color:var(--steel);}

.header-actions{display:flex;align-items:center;gap:1rem;}
.header-search{position:relative;}
.header-search input[type="search"]{
  width:190px;padding:.55rem 1rem .55rem 2.2rem;border-radius:999px;border:1px solid var(--silver-dark);
  background:var(--silver);font-family:var(--font-ui);font-size:13.5px;color:var(--ink);
  transition:box-shadow .2s, width .2s, border-color .2s;
}
.header-search input[type="search"]:focus{outline:none;border-color:var(--steel);box-shadow:0 0 0 3px var(--steel-soft);width:230px;background:var(--white);}
.header-search svg{position:absolute;left:.75rem;top:50%;transform:translateY(-50%);width:14px;height:14px;stroke:var(--muted);pointer-events:none;}

.nav-cta{background:var(--steel);color:var(--white);padding:.6rem 1.3rem;border-radius:6px;font-family:var(--font-ui);font-size:13.5px;font-weight:700;white-space:nowrap;}
.nav-cta:hover{background:var(--steel-dark);}

.menu-toggle{display:none;background:none;border:0;padding:8px;}
.menu-toggle span{display:block;width:20px;height:2px;background:var(--ink);margin:5px 0;}

/* =========== SITE SHELL — persistent two-column layout (main + sticky sidebar) =========== */
.site-shell{max-width:var(--maxw);margin:0 auto;padding:0 var(--pad);display:grid;grid-template-columns:1fr 320px;gap:2.4rem;align-items:start;}
.main-col{min-width:0;padding:2.4rem 0 3rem;}
.sidebar-col{position:sticky;top:96px;padding:2.4rem 0 3rem;}

/* Sidebar cards */
.side-card{background:var(--white);border:1px solid var(--silver-dark);border-radius:var(--radius-md);padding:1.5rem;margin-bottom:1.2rem;box-shadow:var(--shadow-card);}
.side-card h4{font-family:var(--font-ui);font-size:12.5px;text-transform:uppercase;letter-spacing:.07em;color:var(--steel);margin-bottom:1rem;font-weight:700;}
.badge-row{display:flex;align-items:flex-start;gap:.8rem;padding:.7rem 0;border-bottom:1px solid var(--silver);}
.badge-row:last-child{border-bottom:none;padding-bottom:0;}
.badge-row:first-child{padding-top:0;}
.badge-icon{width:34px;height:34px;flex-shrink:0;border-radius:8px;background:var(--steel-soft);display:flex;align-items:center;justify-content:center;}
.badge-icon svg{width:17px;height:17px;stroke:var(--steel);}
.badge-text strong{display:block;font-family:var(--font-ui);font-size:13.5px;font-weight:700;color:var(--ink);}
.badge-text span{font-family:var(--font-ui);font-size:12px;color:var(--muted);}

.stat-list{display:grid;grid-template-columns:1fr 1fr;gap:1rem;}
.stat-box{text-align:center;background:var(--steel-soft);border-radius:var(--radius-sm);padding:1rem .5rem;}
.stat-box .num{font-family:var(--font-head);font-weight:800;font-size:1.4rem;color:var(--steel-dark);}
.stat-box .label{font-family:var(--font-ui);font-size:10.5px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);margin-top:.2rem;}

.side-links li{border-bottom:1px solid var(--silver);}
.side-links li:last-child{border-bottom:none;}
.side-links a{display:flex;justify-content:space-between;align-items:center;padding:.7rem 0;font-family:var(--font-ui);font-size:13.5px;font-weight:600;color:var(--ink);}
.side-links a:hover{color:var(--steel);}
.side-links a::after{content:'→';color:var(--silver-dark);font-size:13px;}
.side-links a:hover::after{color:var(--steel);}

/* =========== HERO (inside main-col — narrower, structured, not full-bleed) =========== */
.hero{background:var(--steel-soft);border-radius:var(--radius-md);padding:clamp(2rem,4vw,3rem);margin-bottom:2.4rem;}
.hero h1{font-size:clamp(1.9rem,3.6vw,2.7rem);line-height:1.14;margin-bottom:.8rem;}
.hero p.lead{font-family:var(--font-body);font-size:1.05rem;color:var(--muted);margin-bottom:1.6rem;max-width:640px;}
.hero-media{border-radius:var(--radius-md);overflow:hidden;margin-bottom:1.6rem;aspect-ratio:21/9;}
.hero-media img{width:100%;height:100%;object-fit:cover;}
.hero-actions{display:flex;gap:1rem;flex-wrap:wrap;}
.btn{
  display:inline-flex;align-items:center;gap:.5rem;padding:.8rem 1.7rem;border-radius:6px;
  font-family:var(--font-ui);font-weight:700;font-size:14.5px;transition:all .15s ease;
}
.btn-primary{background:var(--steel);color:var(--white);}
.btn-primary:hover{background:var(--steel-dark);}
.btn-secondary{background:var(--white);color:var(--ink);border:1px solid var(--silver-dark);}
.btn-secondary:hover{border-color:var(--steel);color:var(--steel);}

/* =========== TRUST STRIP (compact, inline within main-col) =========== */
.trust-strip{display:flex;gap:1.5rem;flex-wrap:wrap;padding:1.2rem 0;margin-bottom:2rem;border-top:1px solid var(--silver);border-bottom:1px solid var(--silver);}
.trust-item{display:flex;align-items:baseline;gap:.5rem;}
.trust-item .num{font-family:var(--font-head);font-weight:800;color:var(--steel);font-size:1.3rem;}
.trust-item .label{font-family:var(--font-ui);font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.04em;}

/* =========== PILLAR GRID (inside main-col, structured, corporate) =========== */
.pillars{margin-bottom:2.6rem;}
.section-head{margin-bottom:1.4rem;}
.section-head h2{font-size:clamp(1.5rem,3vw,1.9rem);}
.section-head p{color:var(--muted);font-family:var(--font-body);font-size:.98rem;}

.pillar-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;}
.pillar-item{
  background:var(--white);border:1px solid var(--silver-dark);border-radius:var(--radius-md);
  padding:1.3rem;display:flex;gap:.9rem;align-items:flex-start;transition:box-shadow .15s ease, border-color .15s ease;
}
.pillar-item:hover{box-shadow:var(--shadow-card-lg);border-color:var(--steel);}
.pillar-icon{width:38px;height:38px;flex-shrink:0;border-radius:8px;background:var(--steel-soft);display:flex;align-items:center;justify-content:center;}
.pillar-icon svg{width:19px;height:19px;stroke:var(--steel);}
.pillar-item h3{font-size:.98rem;margin-bottom:.2rem;}
.pillar-item p{font-family:var(--font-ui);font-size:12.5px;color:var(--muted);margin:0;}

/* =========== GUIDE FEED (card grid inside main-col) =========== */
.resource-feed{margin-bottom:1rem;}
.card-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1.4rem;}
.guide-card{background:var(--white);border:1px solid var(--silver-dark);border-radius:var(--radius-md);overflow:hidden;box-shadow:var(--shadow-card);transition:box-shadow .15s ease, transform .15s ease;}
.guide-card:hover{box-shadow:var(--shadow-card-lg);transform:translateY(-3px);}
.guide-card .thumb{aspect-ratio:16/10;overflow:hidden;}
.guide-card .thumb img{width:100%;height:100%;object-fit:cover;border-radius:0;}
.guide-cat{font-family:var(--font-ui);font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--steel);margin-bottom:.5rem;display:block;}
.guide-card .body{padding:1.2rem 1.3rem 1.4rem;}
.guide-card h3{font-size:1.05rem;margin-bottom:.4rem;}
.guide-card h3 a:hover{color:var(--steel);}
.guide-card .excerpt{font-family:var(--font-body);font-size:14px;color:#3D4A54;margin-bottom:.7rem;}
.guide-meta{font-family:var(--font-ui);font-size:11.5px;color:var(--muted);}

.feed-footer{text-align:center;margin-top:2.2rem;}
.feed-footer a{
  display:inline-flex;align-items:center;gap:.5rem;padding:.8rem 2rem;border-radius:6px;
  font-family:var(--font-ui);font-weight:700;font-size:14px;background:var(--steel);color:var(--white);
  transition:background .15s ease;
}
.feed-footer a:hover{background:var(--steel-dark);}

/* =========== RELATED POSTS =========== */
.related-posts{max-width:var(--maxw);margin:0 auto;padding:2.4rem var(--pad) 3rem;border-top:1px solid var(--silver);}
.related-posts .section-head{text-align:left;max-width:640px;}
.related-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.4rem;}
.related-card{background:var(--white);border:1px solid var(--silver-dark);border-radius:var(--radius-md);overflow:hidden;box-shadow:var(--shadow-card);}
.related-card .thumb{aspect-ratio:16/10;overflow:hidden;}
.related-card .thumb img{width:100%;height:100%;object-fit:cover;border-radius:0;}
.related-card .body{padding:1.2rem 1.3rem 1.4rem;}
.related-card h4{font-size:1.02rem;margin-bottom:.4rem;}
.related-card p{font-family:var(--font-body);font-size:13.5px;color:var(--muted);margin-bottom:.6rem;}

/* =========== ARCHIVE / SEARCH =========== */
.archive-header{margin-bottom:1.6rem;}
.archive-header h1{font-size:clamp(1.7rem,3.6vw,2.2rem);}

/* =========== SINGLE POST =========== */
.single-header{margin-bottom:1.6rem;}
.single-header h1{font-size:clamp(1.8rem,3.6vw,2.5rem);}
.single-cover{border-radius:var(--radius-md);overflow:hidden;margin-bottom:1.8rem;}
.single-content{font-family:var(--font-body);font-size:1.08rem;color:#28333C;}
.single-content h2{font-family:var(--font-head);font-size:1.45rem;margin-top:2em;}
.single-content h3{font-size:1.2rem;margin-top:1.7em;}
.single-content p{margin-bottom:1.4em;}
.single-content a{color:var(--steel);text-decoration:underline;text-decoration-color:var(--steel-soft);text-underline-offset:3px;}
.single-content a:hover{text-decoration-color:var(--steel);}
.single-content img{border-radius:var(--radius-md);margin:1.6rem 0;}
.single-content ul,.single-content ol{margin:0 0 1.4em 1.3em;}
.single-content blockquote{border-left:3px solid var(--steel);margin:1.8rem 0;padding:.4rem 0 .4rem 1.4rem;color:var(--muted);font-style:italic;}
.single-footer{margin-top:2.4rem;padding-top:1.6rem;border-top:1px solid var(--silver);}
.hn-internal-link{font-weight:700;}

/* =========== PAGE (privacy/terms) =========== */
.page-wrap{max-width:900px;margin:0 auto;padding:2.4rem var(--pad) 3rem;}
.page-content h1{margin-bottom:1.4rem;font-size:clamp(1.8rem,3.6vw,2.3rem);}

/* =========== FOOTER =========== */
.site-footer{background:var(--steel-dark);color:#DDE6ED;padding:3.6rem var(--pad) 1.8rem;margin-top:2rem;}
.footer-top{max-width:var(--maxw);margin:0 auto;display:grid;grid-template-columns:1.3fr 1fr 1fr 1fr;gap:2.4rem;padding-bottom:2.4rem;border-bottom:1px solid #3F6C8D;}
.footer-brand img{height:32px;margin-bottom:1rem;}
.footer-brand p{color:#AFC4D3;font-size:13.5px;max-width:280px;font-family:var(--font-body);}
.footer-col h4{font-family:var(--font-ui);font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:#9FC1DB;margin-bottom:1rem;font-weight:700;}
.footer-col ul li{margin-bottom:.7rem;}
.footer-col a{color:#DDE6ED;font-size:13.5px;font-family:var(--font-ui);}
.footer-col a:hover{color:#9FC1DB;}
.footer-bottom{max-width:var(--maxw);margin:0 auto;display:flex;justify-content:space-between;align-items:center;padding-top:1.4rem;font-size:12.5px;color:#9FC1DB;flex-wrap:wrap;gap:1rem;font-family:var(--font-ui);}

/* =========== RESPONSIVE =========== */
@media (max-width:1024px){
  .site-shell{grid-template-columns:1fr;}
  .sidebar-col{position:static;padding-top:0;}
  .stat-list{grid-template-columns:repeat(4,1fr);}
}
@media (max-width:780px){
  .primary-nav, .header-search, .nav-cta{display:none;}
  .menu-toggle{display:block;}
  .pillar-grid{grid-template-columns:1fr 1fr;}
  .card-grid{grid-template-columns:1fr;}
  .related-grid{grid-template-columns:1fr;}
  .footer-top{grid-template-columns:1fr 1fr;}
}
@media (max-width:560px){
  .pillar-grid, .stat-list{grid-template-columns:1fr 1fr;}
  .footer-top{grid-template-columns:1fr;}
  body{font-size:15.5px;}
}

/* Mobile nav drawer */
.mobile-nav{position:fixed;inset:0;background:var(--white);z-index:200;padding:2rem var(--pad);transform:translateX(100%);transition:transform .3s ease;overflow-y:auto;}
.mobile-nav.is-open{transform:translateX(0);}
.mobile-nav-close{background:none;border:0;float:right;font-size:1.6rem;}
.mobile-nav ul{margin-top:3rem;}
.mobile-nav li{border-bottom:1px solid var(--silver);}
.mobile-nav a{display:block;padding:1rem 0;font-family:var(--font-ui);font-size:1.05rem;font-weight:700;}
.mobile-nav form{margin-top:2rem;}
.mobile-nav input[type="search"]{width:100%;padding:.8rem 1rem;border-radius:999px;border:1px solid var(--silver-dark);background:var(--silver);}
