/*
Theme Name: HouseVico
Theme URI: https://example.com/
Author: Ehyperlink
Description: Image-led magazine-style home improvement theme for HouseVico.
Version: 1.1.2
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}
}

/* Scoped contact and overflow safeguards. */


.hvc-contact-shell{max-width:1160px;margin:0 auto;padding:48px 24px 72px}
.hvc-contact-intro{max-width:700px;margin-bottom:32px}
.hvc-contact-intro h1{font-size:clamp(38px,6vw,68px);line-height:1.06;letter-spacing:-.045em;margin:18px 0;color:#143f6d}
.hvc-contact-intro h1 span{color:#e1aa28}
.hvc-contact-intro>p{font-size:18px;line-height:1.75;color:#536775}
.hvc-contact-grid{display:grid;grid-template-columns:.85fr 1.3fr;gap:24px;align-items:stretch}
.hvc-contact-note{background:#143f6d;color:#fff;border-radius:24px;padding:38px;display:flex;flex-direction:column;min-width:0}
.hvc-contact-badge{width:56px;height:56px;background:#e1aa28;border-radius:18px;display:grid;place-items:center;font-size:30px;margin-bottom:36px}
.hvc-contact-note h2{color:#fff;font-size:30px;line-height:1.3;letter-spacing:-.025em;margin:0 0 18px}
.hvc-contact-note p{color:#cbd3e1;line-height:1.8;margin:0 0 36px}
.hvc-contact-label{color:#b6c4d9;font-size:11px;font-weight:700;letter-spacing:.15em;margin-bottom:12px}
.hvc-contact-note>a{color:#fff;font-size:18px;text-decoration:underline;text-underline-offset:5px;overflow-wrap:anywhere}
.hvc-contact-note-bottom{border-top:1px solid #ffffff26;margin-top:auto;padding-top:24px;font-size:12px;color:#cbd3e1}
.hvc-contact-card{background:#fff;border:1px solid #e1e6ed;border-radius:24px;padding:36px;box-shadow:0 12px 40px #143f6d08;min-width:0}
.hvc-contact-card h2{font-size:26px;line-height:1.3;color:#143f6d;margin:0 0 8px}
.hvc-contact-card>p{color:#667085;margin:0 0 26px;line-height:1.6}
 .hvc-contact-card .hvc-kicker{display:block;margin-bottom:18px}
.hvc-contact-card .hvc-contact-copy{font-size:16px;line-height:1.85;color:#536775;margin:0 0 20px}
.hvc-contact-card .hvc-contact-copy a{color:#143f6d;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
.hvc-contact-email-button{display:inline-flex;align-items:center;gap:26px;background:#143f6d;color:#fff!important;border-radius:12px;padding:15px 22px;text-decoration:none;font-weight:700;margin:8px 0 20px}
.hvc-contact-email-button:hover{background:#2d4262}
.hvc-contact-shell a:focus-visible{outline:3px solid #e1aa28;outline-offset:4px}
.hvc-contact-card .hvc-contact-small{font-size:13px;line-height:1.7;color:#667085;margin:0}
@media(max-width:760px){.hvc-contact-shell{padding:32px 18px 48px}.hvc-contact-grid{grid-template-columns:1fr}.hvc-contact-note,.hvc-contact-card{padding:26px}.hvc-contact-note-bottom{margin-top:28px}.hvc-contact-badge{margin-bottom:24px}.hvc-contact-note h2{font-size:26px}}
@media(max-width:440px){.hvc-contact-email-button{display:flex;justify-content:space-between;gap:12px;font-size:14px}}

.hvc-kicker{display:block;font-size:12px;font-weight:700;letter-spacing:.12em;color:#1e67b3;margin:16px 0}.hvc-contact-shell{overflow-wrap:anywhere}.hvc-contact-grid>*{min-width:0}.hvc-contact-email-button{max-width:100%}.hvc-contact-email-button:hover{background:#1e67b3}.hvc-contact-back{color:#143f6d}

.hvc-contact-intro h1,.hvc-contact-card h2,.hvc-contact-note h2{font-family:inherit}.hv-card,.hv-card-body,.hv-article-grid>*{min-width:0;max-width:100%;overflow-wrap:anywhere}.hv-card-body>p{white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden}.hv-entry{overflow-wrap:anywhere}.hv-entry pre{max-width:100%;overflow:auto}

/* Legal links alongside the existing footer columns. */
.hv-footer-grid{grid-template-columns:1.4fr repeat(4,minmax(0,1fr))}.hv-footer-grid>*{min-width:0}.hv-footer-legal a{display:block;margin-bottom:10px;overflow-wrap:anywhere}@media(max-width:1000px){.hv-footer-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:640px){.hv-footer-grid{grid-template-columns:1fr}}
