:root {
  --h77-navy: #0b2138;
  --h77-navy-soft: #173a5e;
  --h77-gold: #d5a63d;
  --h77-cream: #f6f3ed;
  --h77-border: #dfe4ea;
  --h77-shadow: 0 20px 50px rgba(11, 33, 56, 0.12);
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
a { text-underline-offset: 0.18em; }
.wp-site-blocks { overflow: hidden; }

.h77-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 8px 30px rgba(7, 24, 42, .12);
}
.admin-bar .h77-header { top: 32px; }
.h77-header .wp-block-navigation a { color: inherit; text-decoration: none; }
.h77-header .wp-block-site-title a { text-decoration: none; letter-spacing: .02em; }

.h77-hero {
  min-height: min(760px, 82vh);
  display: flex;
  align-items: center;
  position: relative;
  background:
    radial-gradient(circle at 82% 22%, rgba(213, 166, 61, .22), transparent 28%),
    linear-gradient(120deg, #071827 0%, #0b2138 55%, #173a5e 100%);
}
.h77-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 5px;
  background: var(--h77-gold);
}
.h77-eyebrow {
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 800;
  font-size: .78rem;
}
.h77-section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.h77-card {
  height: 100%;
  border: 1px solid var(--h77-border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 32px rgba(11, 33, 56, .07);
  transition: transform .2s ease, box-shadow .2s ease;
}
.h77-card:hover { transform: translateY(-4px); box-shadow: var(--h77-shadow); }
.h77-card > .wp-block-group { height: 100%; box-sizing: border-box; }
.h77-card .wp-block-post-title a { text-decoration: none; }

.h77-stat { border-left: 3px solid var(--h77-gold); padding-left: 1rem; }
.h77-stat strong { display: block; font-size: clamp(1.8rem, 3vw, 3rem); line-height: 1; }

.h77-quote-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.h77-quote-form .h77-full { grid-column: 1 / -1; }
.h77-quote-form label { display: grid; gap: .4rem; font-weight: 650; }
.h77-quote-form input,
.h77-quote-form select,
.h77-quote-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #c9d1da;
  border-radius: 5px;
  background: #fff;
  color: #17212b;
  font: inherit;
  padding: .8rem .9rem;
}
.h77-quote-form input:focus,
.h77-quote-form select:focus,
.h77-quote-form textarea:focus {
  outline: 3px solid rgba(213, 166, 61, .25);
  border-color: var(--h77-gold);
}
.h77-quote-form input[type="checkbox"] { width: auto; margin-top: .35rem; accent-color: var(--h77-gold); }
.h77-quote-form label > span { display: flex; align-items: flex-start; gap: .6rem; font-weight: 500; }
.h77-quote-form button {
  border: 0;
  border-radius: 5px;
  background: var(--h77-gold);
  color: var(--h77-navy);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: .9rem 1.4rem;
}
.h77-form-message { min-height: 1.5em; font-weight: 650; }
.h77-honeypot { position: absolute !important; left: -10000px !important; }

.h77-floating-contact {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  display: flex;
  gap: .55rem;
}
.h77-floating-contact a {
  background: var(--h77-gold);
  color: var(--h77-navy);
  border-radius: 999px;
  padding: .7rem 1rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: var(--h77-shadow);
}

.h77-process-list {
  counter-reset: h77-step;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 2rem;
  list-style: none;
  padding: 0;
}
.h77-process-list li { position: relative; border-top: 1px solid #36506b; padding: 1.2rem 0 1.2rem 3.5rem; }
.h77-process-list li::before {
  counter-increment: h77-step;
  content: counter(h77-step, decimal-leading-zero);
  position: absolute;
  left: 0;
  color: var(--h77-gold);
  font-weight: 800;
  font-size: 1.25rem;
}
.h77-project-facts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-block: 1px solid var(--h77-border); }
.h77-project-facts > div { padding: 1.2rem; border-right: 1px solid var(--h77-border); }
.h77-project-facts > div:last-child { border-right: 0; }
.h77-project-facts dt { color: #667085; font-size: .78rem; font-weight: 750; text-transform: uppercase; }
.h77-project-facts dd { margin: .35rem 0 0; color: var(--h77-navy); font-weight: 750; }
.h77-project-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-block: 2rem; }
.h77-project-gallery img { width: 100%; height: auto; border-radius: 8px; }

@media (max-width: 782px) {
  .admin-bar .h77-header { top: 46px; }
  .h77-hero { min-height: 620px; }
  .h77-quote-form { grid-template-columns: 1fr; }
  .h77-quote-form > * { grid-column: 1 !important; }
  .h77-process-list, .h77-project-gallery { grid-template-columns: 1fr; }
  .h77-project-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h77-project-facts > div { border-bottom: 1px solid var(--h77-border); }
  .h77-floating-contact { left: .75rem; right: .75rem; }
  .h77-floating-contact a { flex: 1; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
