/*
Theme Name: HouseVico
Theme URI: https://example.com/
Author: Ehyperlink
Description: Image-led magazine-style home improvement theme for HouseVico.
Version: 1.1.0
Text Domain: housevico
*/

:root{
  --hv-blue:#143f6d;
  --hv-blue2:#1e67b3;
  --hv-gold:#e1aa28;
  --hv-orange:#ef8e1c;
  --hv-text:#18324b;
  --hv-muted:#73808a;
  --hv-line:#e1e7eb;
  --hv-bg:#f7f9fb;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Arial,Helvetica,sans-serif;color:var(--hv-text);background:#fff}
a{text-decoration:none;color:inherit}
img{max-width:100%;height:auto}
.wrap{width:min(1240px,calc(100% - 32px));margin:auto}

/* Header */
.hv-header{position:sticky;top:0;z-index:999;background:rgba(255,255,255,.97);backdrop-filter:blur(12px);border-bottom:1px solid #e4e9ed;box-shadow:0 8px 24px rgba(18,52,80,.06)}
.admin-bar .hv-header{top:32px}
.hv-head{min-height:80px;display:grid;grid-template-columns:250px 1fr 260px;gap:22px;align-items:center}
.hv-logo img{display:block;width:240px;max-height:58px;object-fit:contain}
.hv-nav ul{display:flex;justify-content:center;align-items:center;gap:4px;flex-wrap:wrap;list-style:none;margin:0;padding:0}
.hv-nav a{display:block;padding:11px 9px;border-radius:6px;color:#18324b;font-size:11px;font-weight:700}
.hv-nav a:hover,.hv-nav .current-menu-item>a{background:#eef4fb;color:#165ea5}
.hv-search{height:42px;display:grid;grid-template-columns:1fr 42px;border:1px solid #dce4ea;border-radius:22px;overflow:hidden;background:#fff}
.hv-search input{border:0;outline:0;padding:0 14px;font-size:11px;color:#4e6272}
.hv-search button{border:0;background:#fff;color:#23496c;font-size:18px}

/* Hero */
.hv-hero{position:relative;min-height:510px;overflow:hidden;background:#0d2941}
.hv-hero-bg{position:absolute;inset:0}
.hv-hero-bg img{width:100%;height:100%;object-fit:cover;filter:brightness(.72) saturate(.95)}
.hv-hero-bg:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(8,28,44,.92) 0%,rgba(8,28,44,.76) 38%,rgba(8,28,44,.15) 72%)}
.hv-hero-inner{position:relative;z-index:2;min-height:510px;display:flex;align-items:center}
.hv-hero-copy{max-width:610px;padding:50px 0;color:#fff}
.hv-kicker{font-size:10px;letter-spacing:.16em;text-transform:uppercase;color:#f0bf4c;font-weight:900}
.hv-hero h1{margin:10px 0 16px;font:700 clamp(3.5rem,5.5vw,5.7rem)/.97 Georgia,serif;letter-spacing:-.04em}
.hv-hero p{max-width:560px;margin:0;color:#e4edf3;font-size:16px;line-height:1.55}
.hv-actions{display:flex;gap:12px;margin-top:24px}
.hv-btn{display:inline-flex;min-height:46px;align-items:center;padding:0 20px;border-radius:7px;font-size:12px;font-weight:900}
.hv-btn.primary{background:linear-gradient(#efc14d,#dda71c);color:#2d270d}
.hv-btn.secondary{border:1px solid rgba(255,255,255,.55);color:#fff;background:rgba(255,255,255,.04)}

/* Image category matrix */
.hv-cat-matrix{position:relative;z-index:5;margin-top:-28px}
.hv-cat-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px;padding:12px;background:#fff;border-radius:14px;box-shadow:0 18px 48px rgba(17,45,68,.14)}
.hv-cat-card{position:relative;height:120px;overflow:hidden;border-radius:9px}
.hv-cat-card img{width:100%;height:100%;object-fit:cover;transition:transform .22s}
.hv-cat-card:hover img{transform:scale(1.045)}
.hv-cat-card:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 38%,rgba(9,33,52,.86))}
.hv-cat-card strong{position:absolute;z-index:2;left:10px;right:10px;bottom:9px;color:#fff;font-size:11px;line-height:1.15;text-shadow:0 1px 2px rgba(0,0,0,.4)}

/* Sections */
.hv-section{padding:54px 0}
.hv-section.alt{background:#f7f9fb}
.hv-section-head{display:flex;justify-content:space-between;align-items:end;gap:18px;margin-bottom:20px}
.hv-section-head h2{margin:0;font:700 2.35rem/1.04 Georgia,serif;color:#173956}
.hv-section-head p{margin:6px 0 0;color:#7d8992;font-size:12px}
.hv-section-head>a{font-size:11px;font-weight:800;color:#1d64b5}

/* Feature cards */
.hv-feature-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.hv-feature-card{position:relative;height:280px;overflow:hidden;border-radius:12px;box-shadow:0 10px 25px rgba(16,45,67,.08)}
.hv-feature-card img{width:100%;height:100%;object-fit:cover;transition:transform .25s}
.hv-feature-card:hover img{transform:scale(1.04)}
.hv-feature-card:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 35%,rgba(6,27,43,.94))}
.hv-feature-card span{position:absolute;z-index:2;left:15px;right:15px;bottom:14px}
.hv-feature-card small{display:block;color:#efbd49;font-size:8px;font-weight:900;text-transform:uppercase;margin-bottom:5px}
.hv-feature-card strong{display:block;color:#fff;font:700 1.08rem/1.16 Georgia,serif}

/* Article grid */
.hv-article-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.hv-card{overflow:hidden;border:1px solid #e0e6ea;border-radius:12px;background:#fff;box-shadow:0 10px 24px rgba(18,47,70,.06)}
.hv-card-img{display:block;height:210px;overflow:hidden}
.hv-card-img img{width:100%;height:100%;object-fit:cover}
.hv-card-body{padding:15px 16px 17px}
.hv-card-body>small{color:#d88e1c;font-size:9px;font-weight:900;text-transform:uppercase}
.hv-card h3{margin:7px 0 8px;font:700 1.15rem/1.17 Georgia,serif;color:#173a57}
.hv-card p{margin:0;color:#78858e;font-size:11px;line-height:1.48}
.hv-meta{display:flex;justify-content:space-between;margin-top:12px;color:#98a2aa;font-size:9px}

/* Footer */
.hv-footer{background:linear-gradient(135deg,#0c2a45,#061d30);color:#fff;border-top:3px solid #e1aa28}
.hv-footer-grid{display:grid;grid-template-columns:1.45fr 1fr 1fr 1fr;gap:36px;padding:44px 0 34px}
.hv-footer-brand img{width:260px;max-height:62px;filter:brightness(0) invert(1)}
.hv-footer-brand p{max-width:340px;color:#bdccd6;font-size:11px;line-height:1.6}
.hv-footer-col{display:flex;flex-direction:column;gap:8px}
.hv-footer h3{margin:0 0 8px;font:700 1rem Georgia,serif;color:#fff}
.hv-footer a{color:#cfdae2;font-size:10px}
.hv-footer a:hover{color:#efbf54}
.hv-footer-bottom{display:flex;justify-content:space-between;gap:20px;padding:15px 0 20px;border-top:1px solid rgba(255,255,255,.1);font-size:9px;color:#96aab8}

/* Single */
.hv-post-hero{background:#f2f5f7;padding:42px 0 28px;border-bottom:1px solid #e0e6ea}
.hv-post-hero h1{max-width:900px;margin:8px 0 10px;font:700 clamp(2.5rem,5vw,4.3rem)/.98 Georgia,serif;color:#173a57}
.hv-post-meta{display:flex;gap:8px;color:#7d8992;font-size:10px}
.hv-post-wrap{width:min(1080px,calc(100% - 32px));margin:auto;padding:38px 0 60px}
.hv-article{background:#fff;border:1px solid #dfe6ea;border-radius:14px;box-shadow:0 16px 38px rgba(15,43,64,.08);padding:34px 38px}
.hv-featured img{display:block;width:100%;height:540px;object-fit:cover;border-radius:12px;border:1px solid #d9e0e5;box-shadow:0 14px 30px rgba(14,42,62,.13);margin-bottom:28px}
.hv-entry{font-size:16px;line-height:1.8;color:#344c5d}
.hv-entry>*{max-width:100%;box-sizing:border-box}
.hv-entry h2,.hv-entry h3{font-family:Georgia,serif;color:#183c58}
.hv-entry img{max-width:100%;height:auto;border-radius:10px}
.hv-entry a{color:#1d72b8;text-decoration:underline}

.hv-context-link{margin:28px 0;padding:14px 16px;background:#f7f9fb;border:1px solid #dde5ea;border-left:5px solid #e0aa2c;border-radius:7px;box-shadow:0 7px 16px rgba(16,43,64,.05)}
.hv-context-label{display:block;margin-bottom:6px;color:#b67812;font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.13em}
.hv-context-link a{display:flex;align-items:center;justify-content:space-between;gap:14px;color:#1d3f59!important;text-decoration:none!important;font-weight:800}
.hv-context-link b{color:#d18c15;font-size:18px}

.hv-related{margin-top:34px;padding-top:26px;border-top:1px solid #e2e8ec}
.hv-related h2{font:700 2rem Georgia,serif;color:#173a57}
.hv-related-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}
.hv-related-card{border:1px solid #e1e7eb;border-radius:9px;overflow:hidden;background:#fff}
.hv-related-card img{width:100%;height:180px;object-fit:cover}
.hv-related-card div{padding:11px}
.hv-related-card h3{margin:0;font:700 .95rem Georgia,serif}

@media(max-width:1100px){
  .hv-head{grid-template-columns:220px 1fr}.hv-search{grid-column:1/-1}
  .hv-cat-grid{grid-template-columns:repeat(4,1fr)}
  .hv-feature-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:820px){
  .admin-bar .hv-header{top:46px}
  .hv-header{position:relative}
  .hv-head{grid-template-columns:1fr;gap:10px;padding:12px 0}
  .hv-nav ul{justify-content:flex-start}
  .hv-cat-matrix{margin-top:0;padding-top:16px}
  .hv-cat-grid{grid-template-columns:repeat(3,1fr)}
  .hv-article-grid{grid-template-columns:repeat(2,1fr)}
  .hv-footer-grid{grid-template-columns:1fr 1fr}
  .hv-featured img{height:360px}
}
@media(max-width:560px){
  .hv-cat-grid,.hv-feature-grid,.hv-article-grid,.hv-related-grid,.hv-footer-grid{grid-template-columns:1fr}
  .hv-hero h1{font-size:3rem}
  .hv-actions{flex-direction:column;align-items:flex-start}
  .hv-article{padding:20px 16px}
  .hv-featured img{height:260px}
  .hv-footer-bottom{flex-direction:column}
}
