/* ==========================================================================
   HX Development Funding — styles.css
   Mobile-first, pure CSS, Inter font only
   Palette: #0F1F3D navy | #162844 lighter navy | #FFFFFF white | #C4973B gold
   Logo mark retains #2563EB electric blue on the "HX"
   ========================================================================== */

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  color: #0F1F3D;
  background: #FFFFFF;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* --------------------------------------------------------------------------
   Utility
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.container--wide {
  max-width: 960px;
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav {
  background: #081829;
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  gap: 16px;
}

.nav__brand {
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-decoration: none;
  min-width: 0;
}

.nav__logo {
  display: block;
  height: 30px;
  width: auto;
}

.nav__tagline {
  font-size: 0.6875rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.nav__phone {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #FFFFFF;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.nav__phone:hover {
  color: #C4973B;
}

/* --------------------------------------------------------------------------
   Hero — two-column layout
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(140deg, #0F1F3D 0%, #162844 100%);
  padding: 44px 0 52px;
}

.hero__inner {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero__left {
  display: flex;
  flex-direction: column;
}

.hero__right {
  display: flex;
  flex-direction: column;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #C4973B;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero__eyebrow::before {
  content: '';
  display: block;
  width: 18px;
  height: 2px;
  background: #C4973B;
  flex-shrink: 0;
}

.hero__eyebrow--credentials {
  margin-top: 28px;
  margin-bottom: 14px;
}

.hero__headline {
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.hero__subheadline {
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
  margin-bottom: 0;
  max-width: 38em;
}

/* Credential items */
.credentials {
  display: flex;
  gap: 12px;
}

.credential {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.credential:hover {
  background: rgba(196, 151, 59, 0.08);
  border-color: rgba(196, 151, 59, 0.3);
}

.credential__icon {
  width: 26px;
  height: 26px;
  color: #C4973B;
  flex-shrink: 0;
}

.credential__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  line-height: 1.3;
}

.hero__parentage {
  margin-top: 18px;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Form card
   -------------------------------------------------------------------------- */
.form-card {
  background: #FFFFFF;
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.04),
    0 8px 20px rgba(0, 0, 0, 0.12),
    0 24px 56px rgba(0, 0, 0, 0.28),
    0 48px 100px rgba(0, 0, 0, 0.22);
}

.form-card__header {
  background: #C4973B;
  padding: 13px 22px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.form-card__body {
  padding: 18px 20px 22px;
}

.form__group {
  margin-bottom: 12px;
}

.form__label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0F1F3D;
  margin-bottom: 6px;
  line-height: 1.4;
}

.form__control {
  width: 100%;
  padding: 9px 12px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  font-weight: 400;
  color: #0F1F3D;
  background: #FFFFFF;
  border: 1.5px solid #D1D5DB;
  border-radius: 6px;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  outline: none;
}

.form__control:focus {
  border-color: #C4973B;
  box-shadow: 0 0 0 3px rgba(196, 151, 59, 0.18);
}

.form__control--select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%230F1F3D' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.form__control--select:invalid,
.form__control--select option[value=''] {
  color: #9CA3AF;
}

.form__control.has-error {
  border-color: #DC2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form__error {
  display: none;
  font-size: 0.8125rem;
  color: #DC2626;
  margin-top: 5px;
  font-weight: 400;
}

.form__error.is-visible {
  display: block;
}

.form__submit {
  width: 100%;
  padding: 14px 20px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #FFFFFF;
  background: #C4973B;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
  margin-top: 6px;
  letter-spacing: -0.01em;
}

.form__submit:hover:not(:disabled) {
  background: #AD8330;
}

.form__submit:active:not(:disabled) {
  transform: translateY(1px);
}

.form__submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Honeypot — visually hidden from real users, bots fill it in */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__global-error {
  display: none;
  margin-top: 12px;
  padding: 10px 14px;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 6px;
  font-size: 0.875rem;
  color: #DC2626;
  line-height: 1.5;
}

.form__global-error.is-visible {
  display: block;
}

.form__global-error a {
  color: #DC2626;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Cost estimator
   -------------------------------------------------------------------------- */
.estimator {
  background: #FFFFFF;
  padding: 56px 0;
  border-top: 1px solid #E5E7EB;
}

.estimator__heading {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  color: #0F1F3D;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 8px;
}

.estimator__subheading {
  font-size: 1rem;
  color: #4B5563;
  text-align: center;
  margin-bottom: 36px;
}

.estimator__panel {
  background: #F8FAFC;
  border: 1.5px solid #E5E7EB;
  border-radius: 14px;
  padding: 24px 20px;
}

.estimator__inputs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

.estimator__field-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0F1F3D;
  margin-bottom: 10px;
}

.estimator__value {
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
  color: #C4973B;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1.1;
}

/* Range slider */
.slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: #E2E8F0;
  outline: none;
  margin: 6px 0;
  cursor: pointer;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #C4973B;
  border: 3px solid #FFFFFF;
  box-shadow: 0 1px 4px rgba(15, 31, 61, 0.3);
  cursor: pointer;
  transition: transform 0.1s ease;
}

.slider::-webkit-slider-thumb:active {
  transform: scale(1.12);
}

.slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #C4973B;
  border: 3px solid #FFFFFF;
  box-shadow: 0 1px 4px rgba(15, 31, 61, 0.3);
  cursor: pointer;
}

.slider:focus-visible {
  box-shadow: 0 0 0 3px rgba(196, 151, 59, 0.25);
}

.slider__scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #9CA3AF;
  margin-top: 4px;
}

.estimator__outputs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 22px;
}

.estimator-output {
  background: #0F1F3D;
  border-radius: 10px;
  padding: 18px 20px;
  text-align: center;
  border: 1px solid rgba(196, 151, 59, 0.25);
}

.estimator-output__label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.estimator-output__value {
  font-size: 1.25rem;
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.estimator-output__value--accent {
  color: #C4973B;
}

.estimator__cta {
  font-size: 0.875rem;
  color: #6B7280;
  text-align: center;
  line-height: 1.6;
}

.estimator__cta a {
  color: #C4973B;
  font-weight: 600;
  border-bottom: 1px solid rgba(196, 151, 59, 0.4);
}

.estimator__cta a:hover {
  border-bottom-color: #C4973B;
}

/* --------------------------------------------------------------------------
   How It Works
   -------------------------------------------------------------------------- */
.how-it-works {
  background: #FFFFFF;
  padding: 56px 0;
  border-top: 1px solid #E5E7EB;
}

.section-heading {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  color: #0F1F3D;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
  text-align: center;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.step {
  padding: 24px;
  border: 1.5px solid #E5E7EB;
  border-radius: 10px;
  position: relative;
}

.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: #C4973B;
  color: #FFFFFF;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 50%;
  margin-bottom: 14px;
}

.step__title {
  font-size: 1rem;
  font-weight: 600;
  color: #0F1F3D;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.step__body {
  font-size: 0.9375rem;
  color: #4B5563;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Trust section
   -------------------------------------------------------------------------- */
.trust-section {
  background: #F1F3F7;
  padding: 48px 0;
  border-top: 1px solid #E5E7EB;
  border-bottom: 1px solid #E5E7EB;
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 16px;
  background: #FFFFFF;
  border: 1.5px solid #E5E7EB;
  border-radius: 8px;
}

.trust-item__icon {
  width: 20px;
  height: 20px;
  color: #C4973B;
  flex-shrink: 0;
}

.trust-item__title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #0F1F3D;
  line-height: 1.3;
}

/* --------------------------------------------------------------------------
   Bottom trust strip
   -------------------------------------------------------------------------- */
.trust-strip {
  background: #162844;
  padding: 14px 24px;
  text-align: center;
}

.trust-strip__text {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  background: #0F1F3D;
  padding: 40px 0;
}

.footer__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer__legal {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
}

.footer__link {
  color: #C4973B;
  transition: color 0.15s ease;
}

.footer__link:hover {
  color: #E0B560;
}

.footer__copy {
  margin-top: 16px;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.45);
}

/* --------------------------------------------------------------------------
   Thank You page
   -------------------------------------------------------------------------- */
.thankyou {
  background: #FFFFFF;
  padding: 64px 0;
}

.thankyou__heading {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 600;
  color: #0F1F3D;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  line-height: 1.15;
}

.thankyou__subheading {
  font-size: 1.0625rem;
  color: #4B5563;
  margin-bottom: 36px;
  line-height: 1.55;
}

.priority-banner {
  display: none;
  background: #C4973B;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 28px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1.5;
}

.priority-banner.is-visible {
  display: block;
}

.estimate-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.estimate-box {
  padding: 24px;
  background: #0F1F3D;
  border: 1px solid rgba(196, 151, 59, 0.3);
  border-radius: 10px;
  text-align: center;
}

.estimate-box__label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.estimate-box__value {
  font-size: clamp(1.125rem, 3vw, 1.5rem);
  font-weight: 600;
  color: #C4973B;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.thankyou__message {
  font-size: 0.9375rem;
  color: #4B5563;
  line-height: 1.65;
  margin-bottom: 28px;
}

.thankyou__reassurance {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #6B7280;
  letter-spacing: 0.05em;
}

/* --------------------------------------------------------------------------
   Tablet breakpoint
   -------------------------------------------------------------------------- */
@media (min-width: 640px) {
  .form-card__body {
    padding: 20px 24px 24px;
  }

  .estimator__inputs {
    grid-template-columns: 1fr 1fr;
  }

  .estimator__field--full {
    grid-column: 1 / -1;
  }

  .estimator__outputs {
    grid-template-columns: repeat(4, 1fr);
  }

  .estimator-output__value {
    font-size: 1.0625rem;
  }

  .steps {
    flex-direction: row;
    gap: 20px;
  }

  .step {
    flex: 1;
  }

  .trust-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .estimate-grid {
    flex-direction: row;
  }

  .estimate-box {
    flex: 1;
  }
}

/* --------------------------------------------------------------------------
   Two-column hero layout (desktop)
   -------------------------------------------------------------------------- */
@media (min-width: 960px) {
  .hero {
    padding: 56px 0 64px;
  }

  .hero__inner {
    grid-template-columns: 55fr 45fr;
    align-items: start;
    gap: 56px;
    padding: 0 56px;
  }

  .hero__right {
    position: relative;
    z-index: 10;
  }

  .estimator,
  .how-it-works {
    padding: 72px 0;
  }

  .trust-section {
    padding: 56px 0;
  }
}
