/*
Theme Name: Homes Herald
Theme URI: https://example.com/
Author: Homes Herald
Description: Premium dark-blue home improvement editorial WordPress theme.
Version: 1.7.0
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: homes-herald
*/

:root{
  --hh-deep:#071631;
  --hh-blue:#0c2450;
  --hh-purple:#8b4df7;
  --hh-cyan:#3ebeff;
  --hh-white:#ffffff;
  --hh-soft:#f7fbff;
  --hh-line:#d7e4f2;
  --hh-text:#14294f;
  --hh-muted:#6f7f98;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:#fff;color:var(--hh-text);font-family:Arial,Helvetica,sans-serif}
a{text-decoration:none;color:inherit}
img{display:block;max-width:100%}
.hh-wrap{width:min(1440px,calc(100% - 56px));margin:auto}

/* Header */
.hh-header{background:linear-gradient(90deg,#07162e,#0b1c3e);color:#fff;border-bottom:1px solid rgba(255,255,255,.15)}
.hh-head{min-height:104px;display:grid;grid-template-columns:320px minmax(0,1fr) auto;align-items:center;gap:28px}
.hh-logo{display:flex;align-items:center;gap:14px}
.hh-logo-mark{width:54px;height:54px;position:relative}
.hh-logo-mark:before{content:"";position:absolute;left:8px;top:5px;width:30px;height:30px;border-left:8px solid #9148ff;border-top:8px solid #9148ff;transform:rotate(45deg)}
.hh-logo-mark:after{content:"";position:absolute;right:1px;bottom:4px;width:28px;height:34px;border-radius:24px 5px 24px 5px;background:linear-gradient(180deg,#4a8dff,#7b42ff);transform:rotate(12deg)}
.hh-logo-copy strong{display:block;font:700 31px Georgia,serif}
.hh-logo-copy small{display:block;margin-top:4px;color:#d4ddf3;font-size:10px}
.hh-nav{display:flex;justify-content:center;gap:34px}
.hh-nav a{position:relative;padding:40px 0 35px;font-size:13px;color:#edf2ff}
.hh-nav a:hover{color:#fff}
.hh-nav a:after{content:"";position:absolute;left:50%;bottom:24px;width:0;height:2px;background:linear-gradient(90deg,var(--hh-purple),var(--hh-cyan));transform:translateX(-50%);transition:.18s}
.hh-nav a:hover:after{width:30px}
.hh-actions{display:flex;align-items:center;gap:20px}
.hh-search-mini{font-size:22px}
.hh-contact{padding:13px 22px;border-radius:999px;background:linear-gradient(90deg,#a645ff,#3599ff);font-weight:800;font-size:12px}

/* Hero */
.hh-hero{position:relative;overflow:hidden;min-height:520px;background:#0b1d40;color:#fff}
.hh-hero-media{position:absolute;inset:0}
.hh-hero-media img,.hh-hero-media .hh-fallback{width:100%;height:100%;object-fit:cover}
.hh-fallback{display:block;background:linear-gradient(135deg,#dfe8f1,#bcc9d8)}
.hh-hero-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(5,17,42,.94) 0%,rgba(5,17,42,.72) 42%,rgba(8,25,56,.12) 70%,rgba(8,25,56,.30) 100%)}
.hh-hero-inner{position:relative;z-index:2;min-height:520px;display:flex;align-items:center}
.hh-hero-copy{max-width:690px;padding:70px 0}
.hh-kicker{font-size:10px;font-weight:900;letter-spacing:.18em;color:#6bd5ff}
.hh-hero h1{margin:15px 0 18px;font:700 clamp(56px,5.4vw,80px)/.92 Georgia,serif;letter-spacing:-.035em}
.hh-hero h1 span{background:linear-gradient(90deg,#a448ff,#38a9ff);-webkit-background-clip:text;background-clip:text;color:transparent}
.hh-hero p{margin:0;color:#e3ebfa;font-size:16px;line-height:1.55}
.hh-search{margin-top:28px;display:grid;grid-template-columns:50px 1fr 54px;align-items:center;width:min(660px,100%);height:58px;background:#fff;border-radius:999px;overflow:hidden;box-shadow:0 12px 30px rgba(0,0,0,.25)}
.hh-search span{display:grid;place-items:center;color:#724cff;font-size:21px}
.hh-search input{border:0;outline:0;font-size:13px;color:#364869}
.hh-search button{width:44px;height:44px;margin-right:6px;border:0;border-radius:50%;background:linear-gradient(180deg,#8f4cff,#426cff);color:#fff;font-size:20px}

/* Main */
.hh-main{padding:48px 0 56px;background:linear-gradient(180deg,#fbfdff,#f4f9ff)}
.hh-section-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:24px}
.hh-eyebrow{color:#8b4df7;font-size:10px;font-weight:900;letter-spacing:.18em}
.hh-section-head h2{margin:7px 0 0;font:700 47px/1 Georgia,serif;color:#142a55}
.hh-section-head h2 span{background:linear-gradient(90deg,#a245ff,#339bff);-webkit-background-clip:text;background-clip:text;color:transparent}
.hh-section-head>a{font-size:12px;font-weight:800;padding-bottom:8px;border-bottom:2px solid #8a56ff;color:#21375f}

.hh-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}
.hh-card{overflow:hidden;border:1px solid #d5e3f4;border-radius:10px;background:#fff;box-shadow:0 10px 26px rgba(25,55,99,.065)}
.hh-card-img{display:block;aspect-ratio:16/9;overflow:hidden}
.hh-card-img img,.hh-card-img .hh-fallback{width:100%;height:100%;object-fit:cover}
.hh-card-copy{padding:15px 16px 18px;position:relative;min-height:245px}
.hh-pill{display:inline-block;padding:5px 10px;border-radius:999px;font-size:8px;font-weight:900;letter-spacing:.08em;background:#e6f2ff;color:#2e72ae}
.hh-card:nth-child(2n) .hh-pill{background:#eee8ff;color:#7544c9}
.hh-card:nth-child(3n) .hh-pill{background:#dbf8ef;color:#28775d}
.hh-card:nth-child(4n) .hh-pill{background:#fff0df;color:#9a6321}
.hh-card h3{margin:10px 0 9px;font:700 22px/1.08 Georgia,serif;color:#17305e}
.hh-meta{color:#7d8ca7;font-size:10px}
.hh-card p{color:#6d7b93;font:13px/1.5 Georgia,serif}
.hh-arrow{position:absolute;right:14px;bottom:14px;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;border:2px solid #664dff;color:#664dff;font-weight:900}

/* Newsletter */
.hh-news{padding:4px 0 34px;background:#f4f9ff}
.hh-news-wrap{position:relative;overflow:hidden;min-height:185px;border-radius:12px;background:linear-gradient(90deg,#30237a,#22459f);color:#fff}
.hh-news-media{position:absolute;inset:0 0 0 50%}
.hh-news-media img,.hh-news-media .hh-fallback{width:100%;height:100%;object-fit:cover}
.hh-news-overlay{position:absolute;inset:0;background:linear-gradient(90deg,#372473 0%,#30469d 46%,rgba(34,61,142,.72) 65%,rgba(20,35,84,.25) 100%)}
.hh-news-inner{position:relative;z-index:2;padding:34px 40px;display:grid;grid-template-columns:1.05fr 1fr;gap:40px;align-items:center}
.hh-news-copy small{font-size:10px;letter-spacing:.14em}
.hh-news-copy h3{margin:7px 0 8px;font:400 31px Georgia,serif}
.hh-news-copy p{margin:0;color:#e5e8ff;font-size:12px;line-height:1.55}
.hh-news-form{display:grid;grid-template-columns:1fr 140px;height:46px;background:#fff;border-radius:999px;overflow:hidden}
.hh-news-form input{border:0;outline:0;padding:0 16px}
.hh-news-form button{border:0;border-radius:999px;background:linear-gradient(90deg,#9947ff,#516eff);color:#fff;font-weight:800}

/* Footer */
.hh-footer{background:linear-gradient(90deg,#07152d,#0b1b3d);color:#fff;padding:34px 0 18px}
.hh-footer-top{display:grid;grid-template-columns:320px 1fr auto;gap:30px;align-items:center}
.hh-footer .hh-logo-copy strong{color:#fff}
.hh-footer-nav{display:flex;justify-content:center;gap:28px;color:#e7edff;font-size:12px}
.hh-social{display:flex;gap:18px;font-weight:700}
.hh-footer-line{height:1px;background:#32466f;margin:24px 0 18px}
.hh-footer-bottom{display:flex;justify-content:space-between;color:#99a8c4;font-size:9px}

/* single */
.hh-single{padding:38px 0 60px}
.hh-single-head{max-width:1000px;margin:auto;text-align:center}
.hh-single-head h1{margin:10px auto 14px;max-width:980px;font:700 clamp(44px,4.8vw,66px)/1 Georgia,serif;color:#14294f}
.hh-single-meta{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;color:#8795ad;font-size:10px}
.hh-single-image{width:min(1040px,88%);margin:28px auto}
.hh-single-image img{width:100%;max-height:700px;object-fit:cover;border-radius:10px;border:1px solid #d9e4f3;box-shadow:0 18px 40px rgba(27,50,90,.12)}
.hh-body{width:min(820px,calc(100% - 44px));margin:auto;color:#4f5f75;font:17px/1.78 Georgia,serif}
.hh-body h2{margin:32px 0 10px;font:700 30px Georgia,serif;color:#17305e}
.hh-body h3{margin:25px 0 8px;font:700 23px Georgia,serif;color:#17305e}
.hh-body a{color:#315ecf;font-weight:700;text-decoration:underline;text-underline-offset:3px}
.hh-body a.hh-external{color:#a04fd7!important;text-decoration-style:dashed}
.hh-body a.hh-external:after{content:" ↗";font-size:.8em}
.hh-inline{margin:24px 0;padding:14px 16px;border-left:3px solid #7251ff;background:#f1efff}
.hh-inline small{display:block;color:#766f99;font-size:8px;font-weight:900;letter-spacing:.12em}
.hh-related{width:min(1120px,calc(100% - 48px));margin:52px auto 0;padding-top:24px;border-top:1px solid #dfe6f3}
.hh-related-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}

.hh-archive{padding:45px 0 65px}
.hh-archive h1{font:700 50px Georgia,serif;color:#17305e}
.hh-archive-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}

@media(max-width:1180px){
  .hh-head{grid-template-columns:290px 1fr}
  .hh-actions{display:none}
  .hh-nav{gap:22px}
  .hh-grid{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:900px){
  .hh-grid{grid-template-columns:repeat(2,1fr)}
  .hh-footer-top{grid-template-columns:1fr}
  .hh-footer-nav{justify-content:flex-start;flex-wrap:wrap}
}
@media(max-width:700px){
  .hh-head{grid-template-columns:1fr;gap:0;padding:18px 0}
  .hh-nav{justify-content:flex-start;overflow-x:auto}
  .hh-nav a{padding:18px 0 14px}
  .hh-hero,.hh-hero-inner{min-height:470px}
  .hh-grid,.hh-archive-grid,.hh-related-grid{grid-template-columns:1fr}
  .hh-news-inner{grid-template-columns:1fr}
  .hh-news-media{left:0;opacity:.2}
  .hh-news-overlay{background:rgba(40,37,112,.82)}
  .hh-footer-bottom{flex-direction:column;gap:8px}
}
@media(max-width:560px){
  .hh-wrap{width:calc(100% - 24px)}
  .hh-hero h1{font-size:48px}
  .hh-section-head h2{font-size:38px}
}


/* =========================================================
   v1.1.0 — extended image-rich homepage
   ========================================================= */

.hh11-inspiration{
  padding:54px 0;
  background:#ffffff;
}

.hh11-mosaic{
  display:grid;
  grid-template-columns:1.35fr 1fr 1fr;
  grid-auto-rows:220px;
  gap:16px;
}

.hh11-mosaic-card{
  position:relative;
  overflow:hidden;
  border-radius:12px;
  background:#dbe6f1;
  box-shadow:0 12px 30px rgba(23,52,99,.08);
}

.hh11-mosaic-card.is-large{
  grid-row:span 2;
}

.hh11-media,
.hh11-media img,
.hh11-media .hh-fallback{
  display:block;
  width:100%;
  height:100%;
}

.hh11-media img,
.hh11-media .hh-fallback{
  object-fit:cover;
}

.hh11-shade{
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(5,17,42,.03) 22%,rgba(6,19,47,.80) 100%);
}

.hh11-copy{
  position:absolute;
  left:18px;
  right:18px;
  bottom:16px;
  z-index:2;
  color:#fff;
}

.hh11-copy small{
  display:block;
  margin-bottom:6px;
  color:#82dcff;
  font-size:8px;
  font-weight:900;
  letter-spacing:.13em;
  text-transform:uppercase;
}

.hh11-copy strong{
  display:block;
  max-width:88%;
  font:700 21px/1.08 Georgia,serif;
}

.hh11-mosaic-card.is-large .hh11-copy strong{
  font-size:31px;
}

.hh11-copy i{
  position:absolute;
  right:0;
  bottom:0;
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#fff;
  color:#704eff;
  font-style:normal;
}

.hh11-more{
  padding:56px 0;
  background:linear-gradient(180deg,#f8fbff,#f3f8ff);
}

.hh11-more-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:22px;
}

.hh11-more-card{
  overflow:hidden;
  border:1px solid #d8e5f4;
  border-radius:11px;
  background:#fff;
  box-shadow:0 10px 26px rgba(24,53,98,.055);
}

.hh11-more-img{
  display:block;
  aspect-ratio:16/10;
  overflow:hidden;
}

.hh11-more-img img,
.hh11-more-img .hh-fallback{
  width:100%;
  height:100%;
  object-fit:cover;
}

.hh11-more-copy{
  padding:16px 17px 18px;
}

.hh11-more-copy>span{
  display:block;
  color:#7750e8;
  font-size:8px;
  font-weight:900;
  letter-spacing:.13em;
  text-transform:uppercase;
}

.hh11-more-copy h3{
  margin:8px 0 10px;
  font:700 21px/1.08 Georgia,serif;
  color:#17305e;
}

.hh11-more-copy p{
  margin:0 0 12px;
  color:#6c7a91;
  font:13px/1.48 Georgia,serif;
}

.hh11-read{
  color:#604ce4;
  font-size:10px;
  font-weight:900;
}

.hh11-topics{
  padding:54px 0 60px;
  background:#fff;
}

.hh11-topic-grid{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:13px;
}

.hh11-topic-card{
  position:relative;
  min-height:190px;
  overflow:hidden;
  border-radius:10px;
  background:#dce6f1;
}

.hh11-topic-media,
.hh11-topic-media img,
.hh11-topic-media .hh-fallback{
  display:block;
  width:100%;
  height:100%;
}

.hh11-topic-media img,
.hh11-topic-media .hh-fallback{
  object-fit:cover;
}

.hh11-topic-shade{
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,transparent 30%,rgba(7,22,54,.78));
}

.hh11-topic-card strong{
  position:absolute;
  left:14px;
  right:14px;
  bottom:14px;
  color:#fff;
  font:700 17px/1.12 Georgia,serif;
}

.hh11-mosaic-card,
.hh11-more-card,
.hh11-topic-card{
  transition:transform .18s ease,box-shadow .18s ease;
}

.hh11-mosaic-card:hover,
.hh11-more-card:hover,
.hh11-topic-card:hover{
  transform:translateY(-4px);
  box-shadow:0 16px 34px rgba(25,54,103,.12);
}

@media(max-width:1100px){
  .hh11-mosaic{
    grid-template-columns:1fr 1fr;
  }
  .hh11-more-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .hh11-topic-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}

@media(max-width:620px){
  .hh11-mosaic{
    grid-template-columns:1fr;
    grid-auto-rows:240px;
  }
  .hh11-mosaic-card.is-large{
    grid-row:auto;
  }
  .hh11-more-grid,
  .hh11-topic-grid{
    grid-template-columns:1fr;
  }
  .hh11-topic-card{
    min-height:230px;
  }
}


/* v1.2.0 — requested menu & categories */
.hh-nav{
  gap:28px!important;
}
.hh-nav a{
  white-space:nowrap!important;
}
@media(max-width:1200px){
  .hh-nav{gap:18px!important}
  .hh-nav a{font-size:12px!important}
}


/* =========================================================
   v1.3.0 — homepage category showcase
   ========================================================= */

.hh13-categories{
  padding:54px 0 58px;
  background:
    radial-gradient(circle at 10% 20%,rgba(139,77,247,.08),transparent 26%),
    radial-gradient(circle at 90% 10%,rgba(62,190,255,.08),transparent 24%),
    linear-gradient(180deg,#f8fbff,#f3f7ff);
}

.hh13-cat-head{
  text-align:center;
  max-width:800px;
  margin:0 auto 30px;
}

.hh13-cat-head h2{
  margin:7px 0 10px;
  font:700 46px/1 Georgia,serif;
  color:#142a55;
}

.hh13-cat-head h2 span{
  background:linear-gradient(90deg,#9148ff,#3f9fff);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.hh13-cat-head p{
  margin:0;
  color:#74829a;
  font-size:13px;
  line-height:1.55;
}

.hh13-cat-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:14px;
}

.hh13-cat-card{
  position:relative;
  min-height:138px;
  padding:18px 16px 16px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  border:1px solid #d9e5f4;
  border-radius:14px;
  background:linear-gradient(180deg,#ffffff,#f8fbff);
  box-shadow:0 9px 22px rgba(30,58,105,.06);
  overflow:hidden;
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}

.hh13-cat-card:before{
  content:"";
  position:absolute;
  width:90px;
  height:90px;
  right:-28px;
  top:-28px;
  border-radius:50%;
  background:linear-gradient(135deg,rgba(146,72,255,.10),rgba(63,159,255,.10));
}

.hh13-cat-card:nth-child(3n){
  background:linear-gradient(180deg,#fbfffe,#f5fffb);
}

.hh13-cat-card:nth-child(4n){
  background:linear-gradient(180deg,#fffafc,#fff7fd);
}

.hh13-cat-card:hover{
  transform:translateY(-4px);
  border-color:#a8b9f2;
  box-shadow:0 15px 32px rgba(44,69,119,.12);
}

.hh13-cat-icon{
  width:46px;
  height:46px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:linear-gradient(135deg,#8e4cff,#3f9dff);
  color:#fff;
  font-size:22px;
  box-shadow:0 8px 18px rgba(112,79,240,.22);
}

.hh13-cat-name{
  max-width:80%;
  color:#17305e;
  font:700 17px/1.12 Georgia,serif;
}

.hh13-cat-arrow{
  position:absolute;
  right:14px;
  bottom:14px;
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  border:1px solid #6c55f7;
  border-radius:50%;
  color:#6c55f7;
  font-weight:900;
}

@media(max-width:1100px){
  .hh13-cat-grid{
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
}

@media(max-width:820px){
  .hh13-cat-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:520px){
  .hh13-cat-grid{
    grid-template-columns:1fr;
  }
  .hh13-cat-head h2{
    font-size:38px;
  }
  .hh13-cat-card{
    min-height:110px;
  }
}


/* =========================================================
   v1.4.0 — premium image category gallery + stability
   ========================================================= */

.hh14-categories{
  width:100%;
  padding:64px 0 68px;
  background:
    radial-gradient(circle at 5% 0%,rgba(139,77,247,.08),transparent 24%),
    radial-gradient(circle at 95% 0%,rgba(62,190,255,.07),transparent 22%),
    linear-gradient(180deg,#fbfdff 0%,#f4f8ff 100%);
}

.hh14-cat-head{
  max-width:860px;
  margin:0 auto 34px;
  text-align:center;
}

.hh14-cat-head h2{
  margin:8px 0 10px;
  color:#13264c;
  font:700 54px/1 Georgia,serif;
  letter-spacing:-.025em;
}

.hh14-cat-head h2 span{
  background:linear-gradient(90deg,#2f7dff,#9a4cff);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.hh14-cat-head p{
  margin:0;
  color:#74829a;
  font-size:14px;
  line-height:1.55;
}

.hh14-cat-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
}

.hh14-cat-card{
  position:relative;
  min-height:260px;
  overflow:hidden;
  border:1px solid #dbe5f3;
  border-radius:16px;
  background:#fff;
  box-shadow:0 12px 28px rgba(28,55,99,.075);
  isolation:isolate;
  transform:translateZ(0);
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}

.hh14-cat-card:hover{
  transform:translateY(-5px);
  border-color:#b6c7f2;
  box-shadow:0 18px 38px rgba(40,65,116,.14);
}

.hh14-cat-media{
  position:absolute;
  inset:0;
  display:block;
  width:100%;
  height:100%;
  background:#dfe8f3;
}

.hh14-cat-media img,
.hh14-cat-media .hh-fallback{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .3s ease;
}

.hh14-cat-card:hover .hh14-cat-media img{
  transform:scale(1.035);
}

.hh14-cat-overlay{
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg,rgba(7,20,49,.03) 15%,rgba(7,20,49,.13) 40%,rgba(255,255,255,.96) 74%,#fff 100%);
  z-index:1;
}

.hh14-cat-body{
  position:absolute;
  left:14px;
  right:14px;
  bottom:14px;
  z-index:2;
  min-height:92px;
  display:grid;
  grid-template-columns:46px minmax(0,1fr) 36px;
  align-items:end;
  gap:11px;
}

.hh14-cat-icon{
  width:46px;
  height:46px;
  display:grid;
  place-items:center;
  align-self:end;
  border-radius:50%;
  background:linear-gradient(135deg,#3b8cff,#8d4dff);
  color:#fff;
  font-size:19px;
  font-weight:900;
  box-shadow:0 8px 18px rgba(90,79,237,.25);
}

.hh14-cat-text{
  display:block;
  align-self:end;
  min-width:0;
}

.hh14-cat-text strong{
  display:block;
  color:#142a55;
  font:700 21px/1.05 Georgia,serif;
  white-space:normal;
}

.hh14-cat-text small{
  display:block;
  margin-top:5px;
  color:#6f7c91;
  font-size:10px;
  line-height:1.35;
}

.hh14-cat-arrow{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  align-self:end;
  border-radius:50%;
  background:#fff;
  color:#315ef2;
  border:1px solid #b7c6ec;
  box-shadow:0 5px 12px rgba(39,66,116,.11);
  font-weight:900;
}

.hh14-cat-grid .hh14-cat-card:nth-child(1),
.hh14-cat-grid .hh14-cat-card:nth-child(2),
.hh14-cat-grid .hh14-cat-card:nth-child(3),
.hh14-cat-grid .hh14-cat-card:nth-child(4){
  min-height:280px;
}

/* Stability safeguards */
body.home .hh14-categories *,
body.home .hh14-categories *:before,
body.home .hh14-categories *:after{
  box-sizing:border-box;
}
body.home .hh14-categories{
  overflow:hidden;
}
body.home .hh14-cat-grid{
  width:100%;
  max-width:none;
  margin:0;
  padding:0;
}
body.home .hh14-cat-card{
  float:none!important;
  clear:none!important;
  margin:0!important;
}

@media(max-width:1180px){
  .hh14-cat-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}

@media(max-width:860px){
  .hh14-cat-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .hh14-cat-head h2{
    font-size:44px;
  }
}

@media(max-width:560px){
  .hh14-categories{
    padding:46px 0 50px;
  }
  .hh14-cat-grid{
    grid-template-columns:1fr;
  }
  .hh14-cat-card,
  .hh14-cat-grid .hh14-cat-card:nth-child(1),
  .hh14-cat-grid .hh14-cat-card:nth-child(2),
  .hh14-cat-grid .hh14-cat-card:nth-child(3),
  .hh14-cat-grid .hh14-cat-card:nth-child(4){
    min-height:240px;
  }
  .hh14-cat-head h2{
    font-size:38px;
  }
}


/* =========================================================
   v1.5.0 — reference-style image categories
   ========================================================= */

.hh15-categories{
  width:100%;
  padding:62px 0 70px;
  overflow:hidden;
  background:
    radial-gradient(circle at 6% 1%,rgba(111,95,255,.07),transparent 25%),
    radial-gradient(circle at 94% 0%,rgba(70,160,255,.06),transparent 22%),
    linear-gradient(180deg,#fbfdff 0%,#f5f9ff 100%);
}

.hh15-cat-head{
  max-width:880px;
  margin:0 auto 34px;
  text-align:center;
}

.hh15-cat-head h2{
  margin:8px 0 10px;
  color:#12264d;
  font:700 54px/1 Georgia,serif;
  letter-spacing:-.03em;
}

.hh15-cat-head h2 span{
  background:linear-gradient(90deg,#2d78ff,#9a4cff);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.hh15-cat-head p{
  margin:0;
  color:#75839b;
  font-size:14px;
  line-height:1.55;
}

.hh15-cat-grid{
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:16px!important;
  width:100%!important;
  margin:0!important;
  padding:0!important;
}

.hh15-cat-card{
  position:relative!important;
  display:block!important;
  min-height:242px!important;
  overflow:hidden!important;
  border:1px solid #dbe6f4!important;
  border-radius:16px!important;
  background:#fff!important;
  box-shadow:0 10px 28px rgba(34,62,108,.075)!important;
  isolation:isolate!important;
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease!important;
}

.hh15-cat-card:hover{
  transform:translateY(-5px)!important;
  border-color:#bdc9ef!important;
  box-shadow:0 18px 38px rgba(39,67,119,.14)!important;
}

.hh15-cat-media{
  position:absolute!important;
  inset:0!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  background:#dfe9f3!important;
}

.hh15-cat-media img,
.hh15-cat-media .hh-fallback{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  transition:transform .28s ease!important;
}

.hh15-cat-card:hover .hh15-cat-media img{
  transform:scale(1.035)!important;
}

.hh15-cat-shade{
  position:absolute!important;
  inset:0!important;
  z-index:1!important;
  background:
    linear-gradient(
      180deg,
      rgba(6,20,50,.02) 12%,
      rgba(6,20,50,.06) 38%,
      rgba(255,255,255,.84) 67%,
      #fff 100%
    )!important;
}

.hh15-cat-info{
  position:absolute!important;
  left:14px!important;
  right:14px!important;
  bottom:14px!important;
  z-index:2!important;
  display:grid!important;
  grid-template-columns:44px minmax(0,1fr) 34px!important;
  gap:10px!important;
  align-items:end!important;
}

.hh15-cat-icon{
  width:44px!important;
  height:44px!important;
  display:grid!important;
  place-items:center!important;
  border-radius:50%!important;
  background:linear-gradient(135deg,#3d8cff,#8c4cff)!important;
  color:#fff!important;
  font-size:18px!important;
  font-weight:900!important;
  box-shadow:0 8px 18px rgba(92,82,236,.24)!important;
}

.hh15-cat-copy{
  min-width:0!important;
  align-self:end!important;
}

.hh15-cat-copy strong{
  display:block!important;
  color:#132a55!important;
  font:700 19px/1.05 Georgia,serif!important;
}

.hh15-cat-copy small{
  display:block!important;
  margin-top:5px!important;
  color:#6e7d93!important;
  font-size:9.5px!important;
  line-height:1.35!important;
}

.hh15-cat-arrow{
  width:34px!important;
  height:34px!important;
  display:grid!important;
  place-items:center!important;
  border-radius:50%!important;
  border:1px solid #b5c5eb!important;
  background:#fff!important;
  color:#3462f3!important;
  font-weight:900!important;
  box-shadow:0 5px 12px rgba(40,68,117,.10)!important;
}

/* center the last 3 cards like the supplied design */
.hh15-cat-card:nth-child(11){grid-column:2 / span 1!important;}
.hh15-cat-card:nth-child(12){grid-column:3 / span 1!important;}
.hh15-cat-card:nth-child(13){grid-column:4 / span 1!important;}

/* hard isolation against legacy/plugin CSS */
body.home .hh15-categories,
body.home .hh15-categories *,
body.home .hh15-categories *:before,
body.home .hh15-categories *:after{
  box-sizing:border-box!important;
}

body.home .hh15-cat-grid > *{
  width:auto!important;
  max-width:none!important;
  float:none!important;
  clear:none!important;
  margin:0!important;
}

@media(max-width:1200px){
  .hh15-cat-grid{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
  }
  .hh15-cat-card:nth-child(11),
  .hh15-cat-card:nth-child(12),
  .hh15-cat-card:nth-child(13){
    grid-column:auto!important;
  }
}

@media(max-width:900px){
  .hh15-cat-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  .hh15-cat-head h2{
    font-size:44px!important;
  }
}

@media(max-width:560px){
  .hh15-categories{
    padding:46px 0 50px!important;
  }
  .hh15-cat-grid{
    grid-template-columns:1fr!important;
  }
  .hh15-cat-card{
    min-height:230px!important;
  }
  .hh15-cat-head h2{
    font-size:38px!important;
  }
}


/* =========================================================
   v1.6.0 — premium neon footer redesign
   ========================================================= */

.hh16-footer{
  width:100%;
  padding:42px 0 34px;
  background:
    radial-gradient(circle at 50% 0%,rgba(91,87,255,.08),transparent 28%),
    linear-gradient(180deg,#f8fbff,#f4f7ff);
}

.hh16-shell{
  position:relative;
  overflow:hidden;
  min-height:310px;
  padding:38px 42px 26px;
  border:1px solid rgba(102,118,214,.24);
  border-radius:24px;
  background:
    radial-gradient(circle at 82% 10%,rgba(63,105,255,.30),transparent 30%),
    radial-gradient(circle at 92% 85%,rgba(123,43,255,.34),transparent 32%),
    radial-gradient(circle at 4% 92%,rgba(101,60,255,.22),transparent 26%),
    linear-gradient(135deg,#11183f 0%,#082555 44%,#111755 74%,#25105e 100%);
  box-shadow:
    0 24px 55px rgba(29,48,103,.17),
    inset 0 1px 0 rgba(255,255,255,.08);
  color:#fff;
}

.hh16-shell:before{
  content:"";
  position:absolute;
  left:-90px;
  bottom:-100px;
  width:280px;
  height:280px;
  background:linear-gradient(135deg,#7b3cff,#3c74ff);
  border-radius:34px;
  transform:rotate(36deg);
  opacity:.88;
  filter:saturate(115%);
}

.hh16-shell:after{
  content:"";
  position:absolute;
  right:-110px;
  top:-110px;
  width:280px;
  height:280px;
  background:linear-gradient(135deg,rgba(65,109,255,.72),rgba(129,37,255,.18));
  border-radius:44px;
  transform:rotate(35deg);
  opacity:.60;
}

.hh16-main{
  position:relative;
  z-index:2;
  min-height:150px;
  display:grid;
  grid-template-columns:340px minmax(0,1fr) auto;
  align-items:center;
  gap:28px;
}

.hh16-brand{
  display:flex;
  align-items:center;
  gap:15px;
  color:#fff;
}

.hh16-logo-mark{
  position:relative;
  width:58px;
  height:58px;
  flex:0 0 58px;
}

.hh16-roof{
  position:absolute;
  left:7px;
  top:7px;
  width:34px;
  height:34px;
  border-left:8px solid #8a44ff;
  border-top:8px solid #8a44ff;
  transform:rotate(45deg);
  filter:drop-shadow(0 0 10px rgba(142,69,255,.35));
}

.hh16-drop{
  position:absolute;
  right:4px;
  bottom:3px;
  width:30px;
  height:38px;
  border-radius:24px 7px 24px 7px;
  background:linear-gradient(145deg,#4d84ff,#8445ff 76%);
  transform:rotate(12deg);
  box-shadow:
    0 0 18px rgba(78,125,255,.25),
    0 0 26px rgba(132,69,255,.18);
}

.hh16-brand-copy strong{
  display:block;
  font:700 32px/.98 Georgia,serif;
  letter-spacing:-.02em;
  color:#fff;
}

.hh16-brand-copy small{
  display:block;
  margin-top:7px;
  color:#b9c9f2;
  font-size:10px;
  letter-spacing:.01em;
}

.hh16-nav{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:18px;
  flex-wrap:wrap;
}

.hh16-nav a{
  position:relative;
  color:#eef3ff;
  font-size:12px;
  font-weight:700;
  white-space:nowrap;
  transition:color .18s ease,text-shadow .18s ease;
}

.hh16-nav a:hover{
  color:#fff;
  text-shadow:0 0 12px rgba(111,118,255,.65);
}

.hh16-nav span{
  width:1px;
  height:24px;
  background:linear-gradient(180deg,transparent,#5473b8,transparent);
}

.hh16-social{
  display:flex;
  gap:12px;
}

.hh16-social a{
  width:46px;
  height:46px;
  display:grid;
  place-items:center;
  border-radius:50%;
  border:1px solid rgba(115,151,255,.46);
  background:
    linear-gradient(180deg,rgba(255,255,255,.055),rgba(103,71,255,.12));
  color:#fff;
  font-size:18px;
  font-weight:800;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    0 0 18px rgba(63,119,255,.16);
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}

.hh16-social a:hover{
  transform:translateY(-3px);
  border-color:#7b8cff;
  box-shadow:
    0 0 18px rgba(69,134,255,.34),
    0 0 22px rgba(132,54,255,.22);
}

.hh16-links-area{
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.35fr);
  gap:18px;
  margin:16px 0 18px;
}

.hh16-link-box{
  padding:18px 20px;
  border:1px solid rgba(118,149,255,.22);
  border-radius:18px;
  background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.03));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
}

.hh16-link-box h4{
  margin:0 0 12px;
  font:700 14px/1.2 Georgia,serif;
  color:#ffffff;
  letter-spacing:.03em;
}

.hh16-chip-links{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.hh16-chip-links a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:8px 13px;
  border-radius:999px;
  border:1px solid rgba(118,149,255,.30);
  background:linear-gradient(90deg,rgba(255,255,255,.08),rgba(255,255,255,.04));
  color:#edf3ff;
  font-size:11px;
  font-weight:700;
  line-height:1.15;
  transition:transform .18s ease,border-color .18s ease,background .18s ease,color .18s ease;
}

.hh16-chip-links a:hover{
  transform:translateY(-2px);
  border-color:#84a2ff;
  background:linear-gradient(90deg,rgba(131,90,255,.30),rgba(55,142,255,.24));
  color:#fff;
}

.hh16-divider{
  position:relative;
  z-index:2;
  height:1px;
  margin:8px 0 22px;
  background:linear-gradient(90deg,#41a2ff 0%,#637bff 46%,#7e4dff 100%);
  opacity:.70;
}

.hh16-bottom{
  position:relative;
  z-index:2;
  min-height:62px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  color:#c7d2ef;
  font-size:11px;
}

.hh16-bottom nav{
  display:flex;
  align-items:center;
  gap:18px;
}

.hh16-bottom nav a{
  color:#d7e0f8;
  transition:color .18s ease;
}

.hh16-bottom nav a:hover{
  color:#fff;
}

.hh16-bottom nav i{
  width:1px;
  height:24px;
  background:#506da9;
}

/* isolated against legacy theme/plugin footer CSS */
body .hh16-footer,
body .hh16-footer *,
body .hh16-footer *:before,
body .hh16-footer *:after{
  box-sizing:border-box;
}

body .hh16-footer a{
  text-decoration:none;
}

@media(max-width:1180px){
  .hh16-main{
    grid-template-columns:1fr;
    text-align:center;
  }
  .hh16-brand{
    justify-content:center;
  }
  .hh16-social{
    justify-content:center;
  }
  .hh16-links-area{
    grid-template-columns:1fr;
  }
}

@media(max-width:720px){
  .hh16-footer{
    padding:26px 12px 24px;
  }
  .hh16-shell{
    padding:28px 22px 22px;
    border-radius:18px;
  }
  .hh16-brand-copy strong{
    font-size:27px;
  }
  .hh16-nav{
    gap:12px;
  }
  .hh16-nav span{
    display:none;
  }
  .hh16-links-area{
    gap:14px;
  }
  .hh16-link-box{
    padding:16px 16px;
  }
  .hh16-bottom{
    flex-direction:column;
    align-items:center;
    text-align:center;
  }
}

@media(max-width:480px){
  .hh16-social{
    gap:8px;
  }
  .hh16-social a{
    width:40px;
    height:40px;
  }
}


/* =========================================================
   v1.7.0 — newsletter section permanently removed
   ========================================================= */
.hh-news,
.hh-news-wrap,
.hh-news-inner,
.hh-news-media,
.hh-news-overlay,
.hh-news-copy,
.hh-news-form{
  display:none!important;
}
