/* Homepage hero — Module 03. Scoped to index.html only via unique qh- prefix.
   Tokens mirror the locked Module 02 Design System (Concept B: High-Contrast Trade Direct). */
:root {
  --qh-primary: #141414;
  --qh-primary-alt: #1F1F1F;
  --qh-accent: #D62828;
  --qh-accent-dark: #A81F1F;
  --qh-accent-tint: #FBE4E4;
  --qh-white: #FFFFFF;
  --qh-surface: #F5F5F4;
  --qh-surface-alt: #EAEAE8;
  --qh-border: #DBDBD8;
  --qh-text: #1A1A1A;
  --qh-text-muted: #5C5C59;
  --qh-text-on-dark: #F5F5F4;
  --qh-text-on-dark-muted: #B8B8B5;

  --qh-space-1: 8px;
  --qh-space-2: 16px;
  --qh-space-3: 24px;
  --qh-space-4: 32px;
  --qh-space-5: 48px;
  --qh-space-6: 64px;

  --qh-radius-btn: 4px;
  --qh-radius-card: 8px;
  --qh-radius-input: 4px;

  --qh-shadow-md: 0 6px 16px rgba(0, 0, 0, .16);
}

html { scroll-behavior: smooth; }

.qh-hero {
  background: linear-gradient(rgba(20, 20, 20, .84), rgba(20, 20, 20, .88)), url('/images/wp-content/uploads/2021/06/Untitled-design-96.jpg') center/cover no-repeat;
  color: var(--qh-text-on-dark);
  padding: var(--qh-space-5) 0 var(--qh-space-4);
}

.qh-hero__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--qh-space-4);
}

.qh-hero__content { display: flex; flex-direction: column; gap: var(--qh-space-2); }

.qh-eyebrow {
  margin: 0;
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--qh-accent);
}

.qh-hero__h1 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.01em;
  text-transform: uppercase;
  color: var(--qh-white);
}

.qh-hero__body {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--qh-text-on-dark-muted);
  max-width: 46ch;
}

.qh-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--qh-space-2);
  margin-top: var(--qh-space-1);
}

.qh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 var(--qh-space-3);
  border-radius: var(--qh-radius-btn);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .02em;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 150ms ease-out, border-color 150ms ease-out, transform 150ms ease-out;
}

.qh-btn--accent {
  background: var(--qh-accent);
  color: var(--qh-white);
}
.qh-btn--accent:hover, .qh-btn--accent:focus-visible { background: var(--qh-accent-dark); }

.qh-btn--outline {
  background: transparent;
  color: var(--qh-white);
  border-color: var(--qh-white);
}
.qh-btn--outline:hover, .qh-btn--outline:focus-visible {
  background: var(--qh-white);
  color: var(--qh-primary);
}

.qh-btn--block { width: 100%; }

.qh-btn:focus-visible {
  outline: 2px solid var(--qh-accent);
  outline-offset: 2px;
}

.qh-chips {
  list-style: none;
  margin: var(--qh-space-2) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--qh-space-1);
}

.qh-chip {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--qh-text-on-dark);
  background: var(--qh-primary-alt);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 4px;
  padding: 6px 12px;
  white-space: nowrap;
}

/* Form card (placeholder) */
.qh-hero__form { scroll-margin-top: var(--qh-space-3); }

.qh-form-card {
  background: var(--qh-surface);
  color: var(--qh-text);
  border-radius: var(--qh-radius-card);
  box-shadow: var(--qh-shadow-md);
  padding: var(--qh-space-3);
  display: flex;
  flex-direction: column;
  gap: var(--qh-space-2);
  min-height: 520px; /* reserves the approximate footprint of the real form/GHL iframe to prevent CLS */
}

.qh-form-card__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -.01em;
}

.qh-form-card__note {
  margin: 0;
  font-size: .8125rem;
  color: var(--qh-text-muted);
}

.qh-form-field { display: flex; flex-direction: column; gap: 4px; }

.qh-form-field label {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--qh-text);
}

.qh-form-field input,
.qh-form-field select,
.qh-form-field textarea {
  min-height: 44px;
  padding: 0 var(--qh-space-2);
  border: 1px solid var(--qh-border);
  border-radius: var(--qh-radius-input);
  background: var(--qh-white);
  color: var(--qh-text);
  font-size: 1rem;
  font-family: inherit;
}

.qh-form-field textarea {
  min-height: 88px;
  padding: var(--qh-space-2);
  resize: vertical;
}

.qh-form-field input:focus-visible,
.qh-form-field select:focus-visible,
.qh-form-field textarea:focus-visible {
  outline: 2px solid var(--qh-accent);
  outline-offset: 1px;
}

.qh-form-card__pending {
  margin: 0;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--qh-accent-dark);
  background: var(--qh-accent-tint);
  border-radius: var(--qh-radius-input);
  padding: var(--qh-space-1) var(--qh-space-2);
}

/* Tablet and up: form sits beside content, both above the fold */
@media (min-width: 640px) {
  .qh-hero { padding: var(--qh-space-6) 0; }
  .qh-hero__h1 { font-size: 2.5rem; }
}

/* Tablet and desktop both require the form fully above the fold, so the
   two-column layout activates at the tablet breakpoint (768px), not 1024px. */
@media (min-width: 768px) {
  .qh-hero__container {
    grid-template-columns: 1.1fr .9fr;
    align-items: start;
    gap: var(--qh-space-4);
  }
  .qh-form-card { min-height: 500px; padding: var(--qh-space-2); gap: var(--qh-space-1); }
}

@media (min-width: 1024px) {
  .qh-hero__h1 { font-size: 2.75rem; }
  .qh-hero__body { font-size: 1.0625rem; }
  .qh-hero__container { gap: var(--qh-space-5); }
  .qh-form-card { min-height: 560px; padding: var(--qh-space-3); gap: var(--qh-space-2); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .qh-btn { transition: none; }
}
