/*
Theme Name: Honor Bound Remodeling
Theme URI: https://honorboundremodeling.com
Author: Honor Bound Companies
Description: Custom WordPress theme for Honor Bound Remodeling LLC. Gunmetal and brass tactical aesthetic with a construction drawing-sheet motif. Includes Projects and Testimonials custom post types, a Honor Bound Customizer panel, and Service, Contact, and Gallery page templates.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: Proprietary
Text Domain: hbr
Tags: contractor, remodeling, construction, custom-theme
*/

/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
  /* Palette — gunmetal / brass, per Honor Bound brand */
  --hb-ink:        #14191B;  /* deepest field */
  --hb-gunmetal:   #2C3539;  /* primary brand dark */
  --hb-steel:      #6E7B7F;  /* secondary text on light */
  --hb-brass:      #B08D57;  /* primary accent */
  --hb-brass-lt:   #D4B483;  /* accent highlight / hover */
  --hb-bone:       #F2EFE9;  /* page field */
  --hb-white:      #FFFFFF;
  --hb-rule:       rgba(176, 141, 87, 0.35);
  --hb-rule-dark:  rgba(242, 239, 233, 0.14);

  /* Type */
  --hb-display: "Barlow Condensed", "Oswald", Impact, sans-serif;
  --hb-body:    "Source Sans 3", "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --hb-mono:    "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Scale */
  --hb-step--1: clamp(0.82rem, 0.8rem + 0.1vw, 0.9rem);
  --hb-step-0:  clamp(1rem, 0.97rem + 0.15vw, 1.09rem);
  --hb-step-1:  clamp(1.3rem, 1.2rem + 0.5vw, 1.6rem);
  --hb-step-2:  clamp(1.7rem, 1.45rem + 1.2vw, 2.5rem);
  --hb-step-3:  clamp(2.3rem, 1.8rem + 2.4vw, 4rem);
  --hb-step-4:  clamp(2.9rem, 2rem + 4vw, 5.5rem);

  /* Layout */
  --hb-wrap: 1180px;
  --hb-wrap-narrow: 760px;
  --hb-gutter: clamp(1.25rem, 4vw, 3rem);
  --hb-section-y: clamp(3.5rem, 7vw, 6.5rem);
  --hb-radius: 2px;
}

/* ============================================================
   2. RESET / BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--hb-bone);
  color: var(--hb-gunmetal);
  font-family: var(--hb-body);
  font-size: var(--hb-step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--hb-gunmetal); text-decoration-color: var(--hb-brass); text-underline-offset: 3px; }
a:hover { color: var(--hb-brass); }

:focus-visible {
  outline: 3px solid var(--hb-brass);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--hb-display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: 0.005em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: var(--hb-step-3); }
h2 { font-size: var(--hb-step-2); }
h3 { font-size: var(--hb-step-1); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.hb-skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--hb-brass); color: var(--hb-ink);
  padding: 0.75rem 1.25rem; z-index: 999; font-family: var(--hb-mono);
}
.hb-skip-link:focus { left: 0; }

.hb-screen-reader-text {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap;
}

/* ============================================================
   3. LAYOUT PRIMITIVES
   ============================================================ */
.hb-wrap {
  width: 100%;
  max-width: var(--hb-wrap);
  margin-inline: auto;
  padding-inline: var(--hb-gutter);
}
.hb-wrap--narrow { max-width: var(--hb-wrap-narrow); }

.hb-section { padding-block: var(--hb-section-y); }
.hb-section--dark { background: var(--hb-gunmetal); color: var(--hb-bone); }
.hb-section--dark h1,
.hb-section--dark h2,
.hb-section--dark h3 { color: var(--hb-bone); }
.hb-section--ink { background: var(--hb-ink); color: var(--hb-bone); }

/* ------------------------------------------------------------
   SIGNATURE ELEMENT: the drawing-sheet title block.
   Section headings are set like the title block on a set of
   construction plans — a monospace sheet reference, a brass
   rule, and a condensed title. This is the one thing the site
   is meant to be remembered by, so everything else stays quiet.
   ------------------------------------------------------------ */
.hb-plate { margin-bottom: clamp(1.75rem, 3vw, 2.75rem); }

.hb-plate__ref {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--hb-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--hb-brass);
  margin: 0 0 0.85rem;
}
.hb-plate__ref::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--hb-brass);
  flex: none;
}
.hb-plate__title { margin: 0; }
.hb-plate__rule {
  height: 1px;
  background: var(--hb-rule);
  margin-top: 1.1rem;
}
.hb-section--dark .hb-plate__rule,
.hb-section--ink .hb-plate__rule { background: var(--hb-rule-dark); }

.hb-lede {
  font-size: var(--hb-step-1);
  font-family: var(--hb-display);
  font-weight: 400;
  line-height: 1.32;
  max-width: 44ch;
  color: var(--hb-steel);
}
.hb-section--dark .hb-lede { color: var(--hb-brass-lt); }

/* ============================================================
   4. BUTTONS
   ============================================================ */
.hb-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--hb-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.95rem 1.6rem;
  border: 1px solid var(--hb-brass);
  background: var(--hb-brass);
  color: var(--hb-ink);
  text-decoration: none;
  border-radius: var(--hb-radius);
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.hb-btn:hover {
  background: var(--hb-brass-lt);
  border-color: var(--hb-brass-lt);
  color: var(--hb-ink);
  transform: translateY(-1px);
}
.hb-btn--ghost {
  background: transparent;
  color: var(--hb-brass);
}
.hb-btn--ghost:hover {
  background: var(--hb-brass);
  color: var(--hb-ink);
}
.hb-btn--onlight.hb-btn--ghost { color: var(--hb-gunmetal); border-color: var(--hb-gunmetal); }
.hb-btn--onlight.hb-btn--ghost:hover { background: var(--hb-gunmetal); color: var(--hb-bone); }

/* ============================================================
   5. HEADER / NAV
   ============================================================ */
.hb-topbar {
  background: var(--hb-ink);
  color: var(--hb-brass-lt);
  font-family: var(--hb-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hb-topbar__inner {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem;
  align-items: center; justify-content: space-between;
  padding-block: 0.6rem;
}
.hb-topbar a { color: var(--hb-brass-lt); text-decoration: none; }
.hb-topbar a:hover { color: var(--hb-white); }

.hb-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--hb-gunmetal);
  border-bottom: 1px solid var(--hb-rule-dark);
}
.hb-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding-block: 0.9rem;
}
.hb-brand { display: flex; align-items: center; gap: 0.85rem; text-decoration: none; }
.hb-brand img { max-height: 54px; width: auto; }
.hb-brand__text { display: flex; flex-direction: column; line-height: 1; }
.hb-brand__name {
  font-family: var(--hb-display);
  font-size: 1.5rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--hb-bone); text-transform: uppercase;
}
.hb-brand__sub {
  font-family: var(--hb-mono);
  font-size: 0.62rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--hb-brass); margin-top: 0.4rem;
}

.hb-nav { display: flex; align-items: center; gap: 1.75rem; }
.hb-nav ul { list-style: none; display: flex; align-items: center; gap: 1.6rem; margin: 0; padding: 0; }
.hb-nav li { position: relative; }
.hb-nav a {
  font-family: var(--hb-mono);
  font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--hb-bone); text-decoration: none; padding-block: 0.4rem;
  display: inline-block;
}
.hb-nav a:hover,
.hb-nav .current-menu-item > a { color: var(--hb-brass); }

/* dropdown */
.hb-nav .sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 250px;
  flex-direction: column; align-items: stretch; gap: 0;
  background: var(--hb-ink);
  border: 1px solid var(--hb-rule-dark);
  padding: 0.4rem 0;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.hb-nav li:hover > .sub-menu,
.hb-nav li:focus-within > .sub-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.hb-nav .sub-menu a { display: block; padding: 0.7rem 1.15rem; }

.hb-nav-toggle {
  display: none;
  background: none; border: 1px solid var(--hb-rule-dark);
  color: var(--hb-bone); font-family: var(--hb-mono);
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 0.6rem 0.9rem; cursor: pointer; border-radius: var(--hb-radius);
}

@media (max-width: 980px) {
  .hb-nav-toggle { display: inline-block; }
  .hb-nav {
    position: fixed; inset: 0 0 0 auto; width: min(340px, 86vw);
    background: var(--hb-ink);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 5.5rem 1.75rem 2rem;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
  }
  .hb-nav.is-open { transform: translateX(0); }
  .hb-nav ul { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .hb-nav > ul > li { border-bottom: 1px solid var(--hb-rule-dark); }
  .hb-nav a { padding: 1rem 0; font-size: 0.9rem; }
  .hb-nav .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    border: none; background: transparent; padding: 0 0 0.6rem 1rem;
  }
  .hb-nav .sub-menu a { padding: 0.55rem 0; color: var(--hb-brass-lt); }
  .hb-header__cta { display: none; }
}

/* ============================================================
   6. HERO
   ============================================================ */
.hb-hero {
  position: relative;
  background: var(--hb-gunmetal);
  color: var(--hb-bone);
  overflow: hidden;
  isolation: isolate;
}
/* Blueprint grid — the field a plan is drawn on. Deliberately faint. */
.hb-hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(242,239,233,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242,239,233,0.045) 1px, transparent 1px);
  background-size: 46px 46px;
}
.hb-hero__media {
  position: absolute; inset: 0; z-index: -3;
  background-size: cover; background-position: center;
  opacity: 0.3; filter: grayscale(0.5) contrast(1.05);
}
.hb-hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, rgba(20,25,27,0.94) 0%, rgba(20,25,27,0.72) 48%, rgba(20,25,27,0.35) 100%);
}
.hb-hero__inner {
  position: relative;
  padding-block: clamp(4.5rem, 11vw, 9rem);
  max-width: 62ch;
}
.hb-hero__eyebrow {
  font-family: var(--hb-mono);
  font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--hb-brass);
  margin: 0 0 1.5rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.hb-hero__eyebrow::before {
  content: ""; width: 34px; height: 1px; background: var(--hb-brass); flex: none;
}
.hb-hero__title {
  font-size: var(--hb-step-4);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0 0 1.2rem;
  color: var(--hb-bone);
}
.hb-hero__title em {
  font-style: normal;
  color: var(--hb-brass);
  display: block;
}
.hb-hero__sub {
  font-size: var(--hb-step-1);
  font-family: var(--hb-display);
  font-weight: 400;
  line-height: 1.35;
  color: rgba(242,239,233,0.86);
  max-width: 46ch;
  margin: 0 0 2.25rem;
}
.hb-hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* Spec strip beneath hero — reads like a drawing sheet legend */
.hb-specstrip {
  background: var(--hb-ink);
  border-top: 1px solid var(--hb-rule);
}
.hb-specstrip__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0;
}
.hb-specstrip__cell {
  padding: 1.6rem var(--hb-gutter);
  border-right: 1px solid var(--hb-rule-dark);
}
.hb-specstrip__cell:last-child { border-right: none; }
.hb-specstrip__k {
  font-family: var(--hb-mono);
  font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--hb-steel); margin: 0 0 0.45rem;
}
.hb-specstrip__v {
  font-family: var(--hb-display);
  font-size: 1.25rem; font-weight: 500; letter-spacing: 0.01em;
  color: var(--hb-bone); text-transform: uppercase; margin: 0;
}

/* Page hero for interior pages */
.hb-pagehero {
  background: var(--hb-gunmetal);
  color: var(--hb-bone);
  padding-block: clamp(3rem, 7vw, 5.5rem);
  position: relative;
  border-bottom: 1px solid var(--hb-rule);
}
.hb-pagehero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(242,239,233,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242,239,233,0.04) 1px, transparent 1px);
  background-size: 46px 46px;
  pointer-events: none;
}
.hb-pagehero__inner { position: relative; }
.hb-pagehero h1 { text-transform: uppercase; color: var(--hb-bone); margin-bottom: 0.6rem; }
.hb-pagehero__sub { color: var(--hb-brass-lt); font-family: var(--hb-display); font-size: var(--hb-step-1); font-weight: 400; max-width: 48ch; margin: 0; }

/* ============================================================
   7. SERVICE CARDS
   ============================================================ */
.hb-grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.hb-card {
  position: relative;
  background: var(--hb-white);
  border: 1px solid rgba(44,53,57,0.12);
  border-top: 3px solid var(--hb-brass);
  padding: clamp(1.5rem, 3vw, 2.1rem);
  display: flex; flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.hb-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(20,25,27,0.13);
  color: inherit;
}
.hb-card__ref {
  font-family: var(--hb-mono);
  font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--hb-brass); margin: 0 0 0.9rem;
}
.hb-card__title {
  font-size: var(--hb-step-1);
  text-transform: uppercase;
  margin: 0 0 0.65rem;
  color: var(--hb-gunmetal);
}
.hb-card__body { color: var(--hb-steel); margin: 0 0 1.35rem; font-size: var(--hb-step--1); line-height: 1.6; }
.hb-card__more {
  margin-top: auto;
  font-family: var(--hb-mono);
  font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--hb-gunmetal);
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.hb-card:hover .hb-card__more { color: var(--hb-brass); }
.hb-card__more::after { content: "\2192"; transition: transform 0.2s ease; }
.hb-card:hover .hb-card__more::after { transform: translateX(4px); }

.hb-card__thumb {
  margin: -1px -1px 1.25rem;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: calc(100% + 2px);
}

/* ============================================================
   8. SCOPE / PROCESS / FAQ (service template)
   ============================================================ */
.hb-split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .hb-split { grid-template-columns: 1.05fr 0.95fr; align-items: start; }
}

.hb-scope { list-style: none; margin: 0; padding: 0; }
.hb-scope li {
  display: flex; gap: 1rem; align-items: baseline;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(44,53,57,0.12);
}
.hb-scope li:first-child { border-top: 1px solid rgba(44,53,57,0.12); }
.hb-scope__mark {
  font-family: var(--hb-mono);
  font-size: 0.68rem; letter-spacing: 0.12em;
  color: var(--hb-brass); flex: none; min-width: 2.2rem;
}
.hb-section--dark .hb-scope li { border-color: var(--hb-rule-dark); }
.hb-section--dark .hb-scope li:first-child { border-top-color: var(--hb-rule-dark); }

/* Process — numbered because these steps genuinely run in order */
.hb-process { counter-reset: hbstep; list-style: none; margin: 0; padding: 0; }
.hb-process li {
  counter-increment: hbstep;
  position: relative;
  padding: 0 0 1.9rem 3.5rem;
  border-left: 1px solid var(--hb-rule);
  margin-left: 1rem;
}
.hb-process li:last-child { border-left-color: transparent; padding-bottom: 0; }
.hb-process li::before {
  content: counter(hbstep, decimal-leading-zero);
  position: absolute; left: 0; top: -0.2rem;
  transform: translateX(-50%);
  background: var(--hb-brass);
  color: var(--hb-ink);
  font-family: var(--hb-mono);
  font-size: 0.72rem; font-weight: 600;
  width: 2rem; height: 2rem;
  display: grid; place-items: center;
  border-radius: 50%;
}
.hb-process__title {
  font-family: var(--hb-display);
  font-size: var(--hb-step-1);
  text-transform: uppercase;
  margin: 0 0 0.3rem;
}

.hb-faq { border-top: 1px solid rgba(44,53,57,0.14); }
.hb-faq details {
  border-bottom: 1px solid rgba(44,53,57,0.14);
  padding: 1.1rem 0;
}
.hb-faq summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--hb-display);
  font-size: var(--hb-step-1);
  font-weight: 500;
  display: flex; justify-content: space-between; gap: 1.5rem; align-items: center;
}
.hb-faq summary::-webkit-details-marker { display: none; }
.hb-faq summary::after {
  content: "+"; font-family: var(--hb-mono); color: var(--hb-brass);
  font-size: 1.3rem; flex: none; transition: transform 0.2s ease;
}
.hb-faq details[open] summary::after { transform: rotate(45deg); }
.hb-faq details > p { margin-top: 0.9rem; color: var(--hb-steel); max-width: 68ch; }

/* ============================================================
   9. TRUST BAR / TESTIMONIALS
   ============================================================ */
.hb-trust {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.hb-trust__item {
  border-left: 2px solid var(--hb-brass);
  padding-left: 1.15rem;
}
.hb-trust__k {
  font-family: var(--hb-display);
  font-size: var(--hb-step-1);
  text-transform: uppercase;
  margin: 0 0 0.3rem;
}
.hb-trust__v { color: var(--hb-steel); font-size: var(--hb-step--1); margin: 0; line-height: 1.6; }
.hb-section--dark .hb-trust__v { color: rgba(242,239,233,0.72); }

.hb-quote {
  background: var(--hb-white);
  border: 1px solid rgba(44,53,57,0.12);
  padding: clamp(1.5rem, 3vw, 2.1rem);
  display: flex; flex-direction: column; height: 100%;
}
.hb-quote__text {
  font-family: var(--hb-display);
  font-size: var(--hb-step-1);
  font-weight: 400;
  line-height: 1.4;
  margin: 0 0 1.25rem;
}
.hb-quote__by {
  margin-top: auto;
  font-family: var(--hb-mono);
  font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--hb-brass);
}
.hb-quote__loc { display: block; color: var(--hb-steel); margin-top: 0.3rem; letter-spacing: 0.1em; }

/* ============================================================
   10. CTA BAND
   ============================================================ */
.hb-cta {
  background: var(--hb-ink);
  color: var(--hb-bone);
  padding-block: clamp(3rem, 6vw, 5rem);
  position: relative;
}
.hb-cta::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(242,239,233,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242,239,233,0.04) 1px, transparent 1px);
  background-size: 46px 46px;
}
.hb-cta__inner {
  position: relative;
  display: flex; flex-wrap: wrap; gap: 2rem;
  align-items: center; justify-content: space-between;
}
.hb-cta h2 { margin: 0 0 0.5rem; text-transform: uppercase; color: var(--hb-bone); }
.hb-cta p { color: var(--hb-brass-lt); margin: 0; max-width: 46ch; }

/* ============================================================
   11. FORMS
   ============================================================ */
.hb-form {
  background: var(--hb-white);
  border: 1px solid rgba(44,53,57,0.14);
  border-top: 3px solid var(--hb-brass);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
}
.hb-field { margin-bottom: 1.15rem; }
.hb-field label,
.hb-form label {
  display: block;
  font-family: var(--hb-mono);
  font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--hb-gunmetal);
  margin-bottom: 0.45rem;
}
.hb-field input,
.hb-field select,
.hb-field textarea,
.hb-form input[type="text"],
.hb-form input[type="email"],
.hb-form input[type="tel"],
.hb-form select,
.hb-form textarea {
  width: 100%;
  font-family: var(--hb-body);
  font-size: var(--hb-step-0);
  color: var(--hb-gunmetal);
  background: var(--hb-bone);
  border: 1px solid rgba(44,53,57,0.22);
  border-radius: var(--hb-radius);
  padding: 0.8rem 0.95rem;
}
.hb-field textarea, .hb-form textarea { min-height: 150px; resize: vertical; }
.hb-field input:focus,
.hb-field select:focus,
.hb-field textarea:focus {
  outline: none;
  border-color: var(--hb-brass);
  box-shadow: 0 0 0 3px rgba(176,141,87,0.22);
}
.hb-field--row { display: grid; gap: 1.15rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .hb-field--row { grid-template-columns: 1fr 1fr; } }

.hb-form input[type="submit"],
.hb-form button[type="submit"] {
  font-family: var(--hb-mono);
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  background: var(--hb-brass); color: var(--hb-ink);
  border: 1px solid var(--hb-brass); border-radius: var(--hb-radius);
  padding: 0.95rem 1.8rem; cursor: pointer;
  transition: background-color 0.18s ease;
}
.hb-form input[type="submit"]:hover,
.hb-form button[type="submit"]:hover { background: var(--hb-brass-lt); }

.hb-notice {
  padding: 0.9rem 1.1rem; border-radius: var(--hb-radius);
  font-size: var(--hb-step--1); margin-bottom: 1.25rem;
}
.hb-notice--ok { background: rgba(176,141,87,0.16); border: 1px solid var(--hb-brass); }
.hb-notice--err { background: rgba(160,60,50,0.1); border: 1px solid #A03C32; color: #7C2C24; }

.hb-contact-detail {
  list-style: none; margin: 0 0 2rem; padding: 0;
}
.hb-contact-detail li {
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(44,53,57,0.12);
}
.hb-contact-detail__k {
  font-family: var(--hb-mono);
  font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--hb-brass); display: block; margin-bottom: 0.3rem;
}
.hb-contact-detail__v { font-family: var(--hb-display); font-size: var(--hb-step-1); }
.hb-contact-detail a { text-decoration: none; }

/* ============================================================
   12. GALLERY / PROJECTS
   ============================================================ */
.hb-gallery { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.hb-gallery__item {
  position: relative; overflow: hidden; display: block;
  text-decoration: none; background: var(--hb-gunmetal);
  aspect-ratio: 4 / 3;
}
.hb-gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease, opacity 0.3s ease;
  opacity: 0.92;
}
.hb-gallery__item:hover img { transform: scale(1.05); opacity: 1; }
.hb-gallery__cap {
  position: absolute; inset: auto 0 0 0;
  padding: 1.5rem 1.25rem 1.1rem;
  background: linear-gradient(to top, rgba(20,25,27,0.92), rgba(20,25,27,0));
  color: var(--hb-bone);
}
.hb-gallery__type {
  font-family: var(--hb-mono);
  font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--hb-brass); display: block; margin-bottom: 0.35rem;
}
.hb-gallery__title {
  font-family: var(--hb-display);
  font-size: 1.2rem; text-transform: uppercase; margin: 0;
}

.hb-filter {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-bottom: 2rem;
}
.hb-filter button {
  font-family: var(--hb-mono);
  font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.6rem 1.05rem;
  background: transparent;
  border: 1px solid rgba(44,53,57,0.25);
  color: var(--hb-gunmetal);
  border-radius: var(--hb-radius);
  cursor: pointer;
  transition: all 0.16s ease;
}
.hb-filter button:hover { border-color: var(--hb-brass); color: var(--hb-brass); }
.hb-filter button[aria-pressed="true"] {
  background: var(--hb-gunmetal); border-color: var(--hb-gunmetal); color: var(--hb-bone);
}

/* ============================================================
   13. POST / ARTICLE
   ============================================================ */
.hb-article { max-width: 72ch; }
.hb-article__meta {
  font-family: var(--hb-mono);
  font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--hb-brass); margin-bottom: 1rem;
}
.hb-article h2 { margin-top: 2.2rem; text-transform: uppercase; }
.hb-article h3 { margin-top: 1.8rem; }
.hb-article ul, .hb-article ol { padding-left: 1.3rem; }
.hb-article li { margin-bottom: 0.5rem; }
.hb-article blockquote {
  margin: 1.8rem 0;
  padding-left: 1.35rem;
  border-left: 3px solid var(--hb-brass);
  font-family: var(--hb-display);
  font-size: var(--hb-step-1);
  line-height: 1.4;
}
.hb-article img { margin-block: 1.6rem; }
.hb-article table { width: 100%; border-collapse: collapse; margin-block: 1.6rem; }
.hb-article th, .hb-article td { border: 1px solid rgba(44,53,57,0.18); padding: 0.7rem 0.9rem; text-align: left; }
.hb-article th { background: var(--hb-gunmetal); color: var(--hb-bone); font-family: var(--hb-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }

.hb-postlist { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.hb-pagination {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  margin-top: 3rem;
  font-family: var(--hb-mono); font-size: 0.75rem; letter-spacing: 0.12em;
}
.hb-pagination .page-numbers {
  padding: 0.6rem 0.95rem;
  border: 1px solid rgba(44,53,57,0.22);
  text-decoration: none;
}
.hb-pagination .current { background: var(--hb-gunmetal); color: var(--hb-bone); border-color: var(--hb-gunmetal); }

/* ============================================================
   14. FOOTER
   ============================================================ */
.hb-footer {
  background: var(--hb-ink);
  color: rgba(242,239,233,0.75);
  padding-block: clamp(3rem, 6vw, 4.5rem) 0;
  font-size: var(--hb-step--1);
}
.hb-footer__grid {
  display: grid; gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  padding-bottom: 3rem;
}
.hb-footer h4 {
  font-family: var(--hb-mono);
  font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--hb-brass); margin: 0 0 1.1rem; font-weight: 600;
}
.hb-footer ul { list-style: none; margin: 0; padding: 0; }
.hb-footer li { margin-bottom: 0.55rem; }
.hb-footer a { color: rgba(242,239,233,0.75); text-decoration: none; }
.hb-footer a:hover { color: var(--hb-brass); }
.hb-footer__brand {
  font-family: var(--hb-display);
  font-size: 1.6rem; text-transform: uppercase; color: var(--hb-bone);
  margin: 0 0 0.75rem;
}
.hb-footer__bar {
  border-top: 1px solid var(--hb-rule-dark);
  padding-block: 1.5rem;
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-family: var(--hb-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--hb-steel);
}

/* ============================================================
   15. WORDPRESS CORE CLASSES
   ============================================================ */
.alignleft { float: left; margin: 0.5rem 1.5rem 1rem 0; }
.alignright { float: right; margin: 0.5rem 0 1rem 1.5rem; }
.aligncenter { margin-inline: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .wp-element-caption {
  font-family: var(--hb-mono); font-size: 0.7rem; color: var(--hb-steel);
  letter-spacing: 0.06em; margin-top: 0.5rem;
}
.sticky, .gallery-caption, .bypostauthor { display: block; }

/* Scroll reveal */
.hb-reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.hb-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .hb-reveal { opacity: 1; transform: none; }
}
