/* =========================================================
   HUWGA - HOUSE BUILDING SUB-SITE
   Warm, cosy, "hygge" residential aesthetic.
   ========================================================= */

.hb-body{
  background:var(--hb-cream);
  color:var(--hb-charcoal);
  font-family:'Jost', sans-serif;
  font-weight:300;
}

.hb-body h1,.hb-body h2,.hb-body h3{
  font-family:'Comfortaa', sans-serif;
  font-weight:600;
  color:var(--hb-charcoal);
}

/* ---------- nav ---------- */
.hb-nav{
  position:sticky;
  top:0;
  z-index:200;
  background:rgba(247,245,241,0.92);
  backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(54,56,58,0.08);
  transition:box-shadow .3s var(--ease);
}
.hb-nav.is-scrolled{
  box-shadow:0 12px 28px -20px rgba(54,56,58,.45);
}
.hb-nav__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:24px 0;
  gap:24px;
}
.hb-nav__brand{
  display:flex;
  align-items:center;
  gap:12px;
  flex-shrink:0;
}
.hb-nav__h{
  width:40px;height:40px;
  border-radius:50%;
  background:var(--hb-slate);
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;
}
.hb-nav__h svg{ width:20px;height:20px; }
.hb-nav__wordmark{
  font-family:'Jost',sans-serif;
  font-size:0.92rem;
  letter-spacing:0.28em;
  font-weight:500;
  color:var(--hb-charcoal);
  line-height:1.15;
}
.hb-nav__wordmark small{
  display:block;
  font-size:0.52rem;
  letter-spacing:0.22em;
  font-weight:400;
  opacity:0.6;
}

.hb-nav__links{
  display:none;
  align-items:center;
  gap:34px;
}
.hb-nav__links a{
  font-size:0.85rem;
  font-weight:400;
  letter-spacing:0.02em;
  color:var(--hb-charcoal);
  position:relative;
  padding:6px 0;
}
.hb-nav__links a::after{
  content:'';
  position:absolute; left:0; right:0; bottom:0;
  height:2px;
  background:var(--hb-slate);
  transform:scaleX(0);
  transform-origin:left;
  transition:transform .3s var(--ease);
}
.hb-nav__links a:hover::after,
.hb-nav__links a.is-active::after{ transform:scaleX(1); }
.hb-nav__links a.is-active{ font-weight:600; }

.hb-nav__switch{
  font-weight:400;
  display:flex;
  align-items:center;
  gap:8px;
  font-size:0.7rem;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:var(--hb-slate);
  border:1px solid var(--hb-slate);
  border-radius:100px;
  padding:8px 14px;
  transition:background .3s var(--ease), color .3s var(--ease);
  white-space:nowrap;
}
.hb-nav__switch:hover{ background:var(--hb-slate); color:#fff; }

.hb-nav__cta{
  font-weight:400;
  display:none;
  background:var(--hb-slate);
  color:#fff;
  padding:11px 24px;
  border-radius:100px;
  font-size:0.78rem;
  letter-spacing:0.1em;
  text-transform:uppercase;
  transition:background .3s var(--ease);
  white-space:nowrap;
}
.hb-nav__cta:hover{ background:var(--hb-slate-dk); color:#fff; }

.hb-nav__toggle{
  display:flex;
  align-items:center;
  justify-content:center;
  width:42px;height:42px;
  border:1px solid rgba(54,56,58,.2);
  border-radius:50%;
  background:none;
  flex-shrink:0;
}

@media (min-width:992px){
  .hb-nav__links{ display:flex; }
  .hb-nav__cta{ display:inline-block; }
  .hb-nav__toggle{ display:none; }
}

/* mobile menu */
.hb-mobile-menu{
  position:fixed;
  inset:0;
  background:var(--hb-cream);
  z-index:300;
  display:flex;
  flex-direction:column;
  padding:24px;
  transform:translateX(100%);
  transition:transform .4s var(--ease);
}
.hb-mobile-menu.is-open{ transform:translateX(0); }
.hb-mobile-menu__top{
  display:flex;
  justify-content:flex-end;
  margin-bottom:48px;
}
.hb-mobile-menu__close{
  width:42px;height:42px;
  border-radius:50%;
  border:1px solid rgba(54,56,58,.2);
  background:none;
  font-size:1.1rem;
}
.hb-mobile-menu nav{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.hb-mobile-menu nav a{
  font-family:'Comfortaa',sans-serif;
  font-size:1.7rem;
  padding:14px 0;
  border-bottom:1px solid rgba(54,56,58,.08);
}
.hb-mobile-menu__foot{
  margin-top:auto;
  display:flex;
  flex-direction:column;
  gap:14px;
}

/* ---------- hero ---------- */
.hb-hero{
  position:relative;
  min-height:88vh;
  display:flex;
  align-items:flex-end;
  overflow:hidden;
  color:#fff;
}
.hb-hero__bg{
  position:absolute; inset:0;
  background-size:cover;
  background-position:center;
  transform:scale(1.06);
}
.hb-hero__veil{
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(54,56,58,.18) 0%, rgba(54,56,58,.28) 45%, rgba(40,45,42,.86) 100%);
}
.hb-hero__content{
  position:relative;
  z-index:2;
  padding-bottom:80px;
  width:100%;
}
.hb-hero__eyebrow{
  font-size:0.75rem;
  letter-spacing:0.32em;
  text-transform:uppercase;
  color:var(--hb-sand);
  margin-bottom:18px;
}
.hb-hero__title{
  font-size:clamp(2.4rem, 6vw, 4.6rem);
  line-height:1.06;
  margin:0 0 22px;
  max-width:14ch;
  color: var(--hb-cream) !important;
}
.hb-hero__desc{
  font-size:1.05rem;
  line-height:1.7;
  max-width:540px;
  opacity:0.94;
  margin-bottom:34px;
}

/* ---------- buttons ---------- */
.hb-btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:16px 32px;
  border-radius:100px;
  font-size:0.8rem;
  letter-spacing:0.16em;
  text-transform:uppercase;
  font-weight:500;
  transition:background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
.hb-btn--primary{
  background:var(--hb-slate);
  color:#fff;
}
.hb-btn--primary:hover{ background:var(--hb-slate-dk); transform:translateY(-2px); }
.hb-btn--ghost{
  background:transparent;
  border:1px solid currentColor;
}
.hb-btn--ghost:hover{ background:rgba(255,255,255,.12); }
.hb-btn--dark{
  border:1px solid var(--hb-charcoal);
  color:var(--hb-charcoal);
}
.hb-btn--dark:hover{ background:var(--hb-charcoal); color:#fff; }
.hb-btn-row{ display:flex; flex-wrap:wrap; gap:16px; }

/* ---------- sections ---------- */
.hb-section{ padding:96px 0; }
.hb-section--sand{ background:var(--hb-sand); }
.hb-section--cream{ background:var(--hb-cream); }
.hb-section--slate{ background:var(--hb-slate); color:#fff; }
.hb-section--slate h2,.hb-section--slate h3{ color:#fff; }

.hb-eyebrow{
  font-size:0.72rem;
  letter-spacing:0.32em;
  text-transform:uppercase;
  color:var(--hb-slate);
  margin-bottom:14px;
  display:block;
}
.hb-section--slate .hb-eyebrow{ color:var(--hb-sand); }

.hb-section__title{
  font-size:clamp(1.9rem, 4vw, 2.8rem);
  margin:0 0 22px;
  line-height:1.12;
}

.hb-section__lead{
  font-size:1.05rem;
  line-height:1.75;
  max-width:680px;
  opacity:0.92;
}

.hb-center{ text-align:center; margin-inline:auto; }

/* feature / value cards */
.hb-card{
  background:#fff;
  border-radius:var(--radius-lg);
  padding:40px 32px;
  height:100%;
  box-shadow:0 18px 40px -28px rgba(54,56,58,.35);
}
.hb-card__icon{
  width:56px;height:56px;
  border-radius:50%;
  background:var(--hb-sand);
  color:var(--hb-slate);
  display:flex;align-items:center;justify-content:center;
  font-size:1.25rem;
  margin-bottom:22px;
}
.hb-card h3{ font-size:1.25rem; margin:0 0 12px; }
.hb-card p{ font-size:0.94rem; line-height:1.7; opacity:0.82; margin:0; }

/* process steps */
.hb-step{
  display:flex;
  gap:24px;
  padding:34px 0;
  border-bottom:1px solid rgba(54,56,58,.12);
}
.hb-step:last-child{ border-bottom:none; }
.hb-step__num{
  font-family:'Comfortaa',sans-serif;
  font-size:1.6rem;
  font-weight:700;
  color:var(--hb-slate);
  flex-shrink:0;
  width:64px;
}
.hb-step h3{ font-size:1.25rem; margin:0 0 10px; }
.hb-step p{ font-size:0.95rem; line-height:1.75; opacity:0.82; margin:0; max-width:620px; }

/* project gallery */
.hb-project{
  position:relative;
  border-radius:var(--radius-lg);
  overflow:hidden;
  aspect-ratio:4/5;
  display:flex;
  align-items:flex-end;
}
.hb-project__bg{
  position:absolute;inset:0;
  background-size:cover;background-position:center;
  transition:transform .6s var(--ease);
}
.hb-project:hover .hb-project__bg{ transform:scale(1.08); }
.hb-project__veil{
  position:absolute;inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(40,45,42,.82) 100%);
}
.hb-project__content{
  position:relative;z-index:2;
  padding:28px;
  color:#fff;
}
.hb-project__tag{
  font-size:0.66rem;
  letter-spacing:0.2em;
  text-transform:uppercase;
  color:var(--hb-sand);
  margin-bottom:8px;
  display:block;
}
.hb-project h3{ color:#fff; font-size:1.3rem; margin:0; }

/* wide project (landscape) variant for projects page */
.hb-project--wide{ aspect-ratio:16/11; }

/* stat row */
.hb-stats{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:32px;
}
@media (min-width:768px){
  .hb-stats{ grid-template-columns:repeat(4,1fr); }
}
.hb-stat{ text-align:center; }
.hb-stat__num{
  font-family:'Comfortaa',sans-serif;
  font-size:clamp(2rem,4vw,2.8rem);
  font-weight:700;
  color:var(--hb-slate);
}
.hb-section--slate .hb-stat__num{ color:#fff; }
.hb-stat__label{
  font-size:0.78rem;
  letter-spacing:0.08em;
  text-transform:uppercase;
  opacity:0.75;
  margin-top:6px;
}

/* testimonial */
.hb-quote{
  font-family:'Comfortaa',sans-serif;
  font-size:clamp(1.3rem,2.6vw,1.8rem);
  line-height:1.55;
  font-weight:500;
  max-width:780px;
}
.hb-quote__attr{
  margin-top:24px;
  font-family:'Jost',sans-serif;
  font-size:0.85rem;
  letter-spacing:0.06em;
  opacity:0.75;
}

/* image with rounded corners, used widely */
.hb-img{
  border-radius:var(--radius-lg);
  overflow:hidden;
}

/* split content blocks (image+text) */
.hb-split{
  display:grid;
  gap:48px;
  align-items:center;
}
@media (min-width:992px){
  .hb-split{ grid-template-columns:1fr 1fr; gap:72px; }
  .hb-split--reverse .hb-split__media{ order:2; }
}

/* CTA banner */
.hb-cta-banner{
  background:var(--hb-charcoal);
  color:#fff;
  border-radius:var(--radius-lg);
  padding:64px 40px;
  text-align:center;
}
.hb-cta-banner h2{ color:#fff; }

/* form */
.hb-form .form-control,
.hb-form .form-select{
  background:#fff;
  border:1px solid rgba(54,56,58,.18);
  border-radius:var(--radius-sm);
  padding:14px 16px;
  font-family:'Jost',sans-serif;
  font-weight:300;
  font-size:0.95rem;
}
.hb-form .form-control:focus,
.hb-form .form-select:focus{
  border-color:var(--hb-slate);
  box-shadow:0 0 0 3px rgba(79,99,97,.15);
}
.hb-form label{
  font-size:0.78rem;
  letter-spacing:0.06em;
  text-transform:uppercase;
  margin-bottom:8px;
  display:block;
  opacity:0.75;
}

.hb-contact-info{
  display:flex;
  flex-direction:column;
  gap:22px;
}
.hb-contact-info__item{
  display:flex;
  gap:16px;
  align-items:flex-start;
}
.hb-contact-info__icon{
  width:46px;height:46px;
  border-radius:50%;
  background:var(--hb-slate);
  color:#fff;
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;
}
.hb-contact-info__item h4{
  font-family:'Jost',sans-serif;
  font-weight:500;
  font-size:0.95rem;
  margin:0 0 4px;
}
.hb-contact-info__item p{ margin:0; opacity:0.78; font-size:0.92rem; line-height:1.6; }

/* footer */
.hb-footer{
  background:var(--hb-charcoal);
  color:rgba(255,255,255,.85);
  padding:72px 0 28px;
}
.hb-footer h4{
  font-family:'Jost',sans-serif;
  font-size:0.78rem;
  letter-spacing:0.16em;
  text-transform:uppercase;
  color:#fff;
  margin-bottom:20px;
}
.hb-footer a{ opacity:0.78; transition:opacity .25s; font-size:0.92rem; }
.hb-footer a:hover{ opacity:1; }
.hb-footer__brand{
  display:flex;align-items:center;gap:12px;
  margin-bottom:18px;
}
.hb-footer__bottom{
  border-top:1px solid rgba(255,255,255,.12);
  margin-top:48px;
  padding-top:24px;
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  justify-content:space-between;
  font-size:0.8rem;
  opacity:0.6;
}
.hb-footer__social{
  display:flex;
  gap:14px;
}
.hb-footer__social a{
  width:38px;height:38px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.25);
  display:flex;align-items:center;justify-content:center;
}

/* reveal-on-scroll helper (hidden until site.js adds .is-in) */
.reveal:not(.is-in){ opacity:0; transform:translateY(36px); }

@media (max-width:767.98px){
  .hb-section{ padding:64px 0; }
  .hb-hero{ min-height:78vh; }
}

/* ============================================================
   CASE STUDY styles (hb-flavoured)
   ============================================================ */
.hb-case .case-study__quote {
  border-left-color: var(--hb-slate);
  background: var(--hb-sand);
}
.hb-case .case-study__num { opacity: .06; color: var(--hb-charcoal); }
