/* HABU landers — shared base (Warm Authority v3.2) */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--cream);
  background: var(--charcoal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brass); }

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-md);
  color: var(--cream);
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.15rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }

p { margin: 0 0 var(--space-md); color: var(--cream-70); }
p.lead { font-size: clamp(1.15rem, 2.2vw, 1.35rem); color: var(--cream); max-width: 38rem; }

.container {
  width: min(100% - 2rem, var(--max-w));
  margin-inline: auto;
}

/* Brass accent rule — NEVER structural color */
.brass-rule {
  display: block;
  width: 48px;
  height: 2px;
  background: var(--brass);
  border: 0;
  margin: 0 0 var(--space-md);
}

.brass-rule--center { margin-inline: auto var(--space-md); margin-left: auto; margin-right: auto; }
.brass-underline {
  text-decoration: underline;
  text-decoration-color: var(--brass);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(28, 27, 25, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(184, 154, 91, 0.22);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.wordmark {
  height: 28px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 0.9rem;
  font-weight: 500;
}

.nav a { text-decoration: none; color: var(--cream-muted); }
.nav a:hover { color: var(--brass); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, color 0.2s;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--brass);
  color: var(--ink);
  border-color: var(--brass);
}
.btn-primary:hover { background: #c9ad6f; color: var(--ink); }

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(245, 240, 230, 0.28);
}
.btn-ghost:hover {
  border-color: var(--brass);
  color: var(--brass);
}

.btn-block { width: 100%; }
.btn-lg { padding: 1.05rem 1.7rem; font-size: 1.05rem; }

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--pine-deep);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media video,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 18, 16, 0.35) 0%, rgba(20, 18, 16, 0.55) 40%, rgba(20, 18, 16, 0.92) 100%),
    linear-gradient(90deg, rgba(30, 45, 36, 0.55) 0%, transparent 55%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: var(--space-2xl) 0 var(--space-xl);
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: var(--space-sm);
}

.hero h1 { max-width: 16ch; }
.hero .lead { margin-bottom: var(--space-lg); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.tagline {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  color: var(--cream);
  margin-top: var(--space-md);
}

/* Sections */
.section {
  padding: var(--space-2xl) 0;
}

.section--cream {
  background: var(--cream);
  color: var(--ink);
}
.section--cream h2,
.section--cream h3 { color: var(--pine); }
.section--cream p { color: var(--umber); }
.section--cream .eyebrow { color: var(--brass); }

.section--pine {
  background: var(--pine);
  color: var(--cream);
}

.section--charcoal { background: var(--charcoal); }

.section-head {
  max-width: 40rem;
  margin-bottom: var(--space-xl);
}

.grid-3 {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.grid-2 {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 860px) {
  .grid-2 { grid-template-columns: 1.05fr 0.95fr; }
}

.card {
  background: rgba(245, 240, 230, 0.04);
  border: 1px solid rgba(184, 154, 91, 0.18);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  height: 100%;
}

.section--cream .card {
  background: #fff;
  border-color: rgba(90, 70, 51, 0.12);
  box-shadow: 0 8px 30px rgba(20, 18, 16, 0.06);
}

.card h3 { margin-bottom: var(--space-sm); }
.card p:last-child { margin-bottom: 0; }

.path-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}
.path-list li {
  position: relative;
  padding: var(--space-md) 0 var(--space-md) 3.25rem;
  border-bottom: 1px solid rgba(184, 154, 91, 0.2);
  counter-increment: step;
}
.path-list li:last-child { border-bottom: 0; }
.path-list li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: var(--space-md);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--brass);
}

/* Form */
.form-panel {
  background: var(--cream);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-soft);
  border-top: 2px solid var(--brass);
}

.form-panel h2,
.form-panel h3 { color: var(--pine); }
.form-panel p { color: var(--umber); }
.form-note {
  font-size: 0.8rem;
  color: var(--umber);
  opacity: 0.85;
  margin-top: var(--space-sm);
}

.form-grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
}
@media (min-width: 560px) {
  .form-grid.two { grid-template-columns: 1fr 1fr; }
}

label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pine);
  margin-bottom: 0.4rem;
}

input, select, textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(90, 70, 51, 0.28);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 1rem;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--brass);
  outline-offset: 1px;
  border-color: var(--brass);
}
textarea { min-height: 110px; resize: vertical; }

.req { color: var(--brass); }

/* CTA band */
.cta-band {
  padding: var(--space-2xl) 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(184, 154, 91, 0.18), transparent 50%),
    var(--pine);
  text-align: center;
}
.cta-band h2 { max-width: 22ch; margin-inline: auto; }
.cta-band .closer {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  color: var(--cream);
  max-width: 34rem;
  margin: 0 auto var(--space-lg);
}
.cta-band .cta-email {
  display: inline-block;
  margin-top: var(--space-md);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--brass);
  text-decoration: none;
  border-bottom: 2px solid var(--brass);
}
.cta-band .cta-email:hover { color: var(--cream); border-color: var(--cream); }

/* Footer */
.site-footer {
  padding: var(--space-xl) 0 var(--space-lg);
  background: var(--ink);
  border-top: 1px solid rgba(184, 154, 91, 0.2);
  font-size: 0.9rem;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  justify-content: space-between;
  align-items: flex-start;
}
.footer-brand .wordmark { height: 22px; margin-bottom: var(--space-sm); }
.footer-brand p { font-size: 0.88rem; max-width: 28ch; }
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.footer-links a { text-decoration: none; color: var(--cream-muted); }
.footer-links a:hover { color: var(--brass); }
.footer-meta {
  width: 100%;
  padding-top: var(--space-md);
  margin-top: var(--space-sm);
  border-top: 1px solid rgba(245, 240, 230, 0.08);
  color: rgba(245, 240, 230, 0.45);
  font-size: 0.78rem;
}

/* Utility */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

@media (max-width: 640px) {
  .nav .nav-hide-sm { display: none; }
  .wordmark { height: 24px; }
  .hero { min-height: 78vh; }
}
