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

:root {
  --primary: #1a5632;
  --primary-light: #2d7a4a;
  --primary-dark: #0f3a20;
  --accent: #d4a843;
  --bg: #fafaf8;
  --bg-alt: #f0efe8;
  --text: #1a1a1a;
  --text-muted: #5a5a5a;
  --white: #ffffff;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.header {
  padding: 20px 0;
  background: var(--white);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.logo-img {
  height: 36px;
  width: auto;
}

/* Hero */
.hero {
  padding: 100px 0 80px;
  text-align: center;
  background:
    linear-gradient(
      170deg,
      rgba(15, 58, 32, 0.88) 0%,
      rgba(26, 86, 50, 0.82) 60%,
      rgba(45, 122, 74, 0.78) 100%
    ),
    url("/img/hero.jpg") center/cover no-repeat;
  color: var(--white);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.hero-sub {
  font-size: 1.15rem;
  opacity: 0.9;
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.5;
}

/* SMS Form */
.sms-form {
  max-width: 460px;
  margin: 0 auto;
}

.input-group {
  display: flex;
  gap: 0;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.input-group input {
  flex: 1;
  padding: 16px 20px;
  font-size: 1rem;
  border: none;
  outline: none;
  font-family: inherit;
  color: var(--text);
  min-width: 0;
}

.input-group input::placeholder {
  color: #999;
}

.input-group button {
  padding: 16px 28px;
  background: var(--accent);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: background 0.2s;
}

.input-group button:hover {
  background: #c49a35;
}

.input-group button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-message {
  margin-top: 12px;
  font-size: 0.9rem;
  text-align: center;
}

.form-message.success {
  color: #a3d9a5;
}
.form-message.error {
  color: #f5a5a5;
}

.cta .form-message.success {
  color: var(--primary);
}
.cta .form-message.error {
  color: #c44;
}

.form-disclaimer {
  margin-top: 12px;
  font-size: 0.75rem;
  opacity: 0.65;
  line-height: 1.5;
}

/* Features */
.features {
  padding: 80px 0;
  background: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.feature-card {
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.feature-body {
  padding: 24px;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* How It Works */
.how-it-works {
  padding: 80px 0;
  background: var(--bg-alt);
}

.how-it-works h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 48px;
  letter-spacing: -0.5px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  text-align: center;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.step h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* CTA */
.cta {
  padding: 80px 0;
  text-align: center;
  background: var(--white);
}

.cta h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.cta > .container > p {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 1.05rem;
}

.cta .input-group {
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.cta .form-disclaimer {
  color: var(--text-muted);
}

/* Footer */
.footer {
  padding: 48px 0 32px;
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.8);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand .logo {
  color: var(--white);
  display: block;
  margin-bottom: 8px;
}

.footer-brand p {
  font-size: 0.9rem;
  opacity: 0.7;
}

.footer-contact p {
  font-size: 0.9rem;
}

.footer-social {
  margin-top: 8px;
  display: flex;
  gap: 12px;
}

.footer-social a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition:
    background 0.2s,
    color 0.2s;
}

.footer-social a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
}

.footer-social a svg {
  display: block;
}

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  font-size: 0.8rem;
  opacity: 0.6;
}

.footer-legal .tcpa {
  margin-top: 12px;
  line-height: 1.6;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.8);
}

/* Header Nav */
.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-nav {
  display: flex;
  gap: 24px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-link:hover,
.nav-active {
  color: var(--primary);
}

/* Page Hero (shorter, no background image) */
.page-hero {
  padding: 56px 0 40px;
  text-align: center;
  background: var(--primary);
  color: var(--white);
}

.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.page-hero .hero-sub {
  font-size: 1.05rem;
  opacity: 0.85;
  max-width: 560px;
  margin: 0 auto;
}

/* Intake Form */
.intake {
  padding: 48px 0;
  background: var(--bg);
}

.intake-card {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}

.intake-narrow {
  max-width: 480px;
}

.intake-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.intake-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
  line-height: 1.5;
}

.intake-desc a {
  color: var(--primary);
}

.submitter-badge {
  background: var(--bg-alt);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius);
  padding: 10px 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Form Sections */
.form-section {
  border: none;
  padding: 0;
  margin-bottom: 32px;
}

.form-section legend {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
  width: 100%;
  display: block;
}

.form-section legend .optional {
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.section-hint {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

/* Field Layout */
.field-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.field {
  flex: 1;
  min-width: 0;
}

.field.full {
  flex: 1 1 100%;
}

.field.quarter {
  flex: 0 0 100px;
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.field label .req {
  color: #c44;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: 0.95rem;
  font-family: inherit;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  background: var(--white);
  color: var(--text);
  transition: border-color 0.2s;
  outline: none;
}

.locked-info {
  background: var(--bg-alt);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 6px;
  padding: 14px 18px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.locked-info strong {
  color: var(--text);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 86, 50, 0.1);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #aaa;
}

.field textarea {
  resize: vertical;
}

/* Dollar prefix */
.input-prefix {
  display: flex;
  align-items: stretch;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.input-prefix:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 86, 50, 0.1);
}

.input-prefix span {
  display: flex;
  align-items: center;
  padding: 0 10px;
  background: var(--bg-alt);
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  border-right: 1px solid #d0d0d0;
}

.input-prefix input {
  border: none;
  border-radius: 0;
  padding: 10px 12px;
}

.input-prefix input:focus {
  box-shadow: none;
}

/* Document Uploads */
.doc-uploads {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.doc-upload-group {
  background: var(--bg);
  border: 1px dashed #ccc;
  border-radius: 6px;
  padding: 16px;
}

.doc-upload-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.doc-upload-group input[type="file"] {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Buttons */
.btn-primary {
  display: inline-block;
  padding: 12px 32px;
  background: var(--accent);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.95rem;
  font-family: inherit;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: #c49a35;
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-lg {
  padding: 14px 40px;
  font-size: 1.05rem;
}

.form-actions {
  text-align: center;
  padding-top: 8px;
}

/* Messages */
.field-message {
  font-size: 0.9rem;
  margin-bottom: 12px;
  text-align: center;
}

.field-message.error {
  color: #c44;
}

.field-message.success {
  color: var(--primary);
}

/* Success */
.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.deal-number {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
}

/* Hero Cards (split layout) */
.hero-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.hero-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: left;
}

.hero-card h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.hero-card > p {
  font-size: 0.95rem;
  opacity: 0.85;
  line-height: 1.5;
  margin-bottom: 20px;
}

.hero-card .sms-form {
  margin: 0;
  max-width: none;
}

.btn-hero-cta {
  display: inline-block;
  padding: 14px 32px;
  background: var(--accent);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.95rem;
  font-family: inherit;
  border: none;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.2s;
}

.btn-hero-cta:hover {
  background: #c49a35;
}

/* Dual Steps (How It Works) */
.dual-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.dual-steps-heading {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 28px;
  text-align: center;
  letter-spacing: -0.3px;
}

.dual-steps .steps {
  grid-template-columns: 1fr;
  gap: 28px;
}

/* Dual CTA (bottom) */
.dual-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.dual-cta-side h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.dual-cta-side > p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.dual-cta-side .sms-form {
  margin: 0;
  max-width: none;
}

.dual-cta-side .btn-outline {
  margin-top: 4px;
}

.btn-outline {
  display: inline-block;
  padding: 12px 32px;
  border: 2px solid var(--primary);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.95rem;
  font-family: inherit;
  border-radius: var(--radius);
  text-decoration: none;
  transition:
    background 0.2s,
    color 0.2s;
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

/* Responsive */
@media (max-width: 640px) {
  .hero {
    padding: 56px 0 48px;
  }

  .input-group {
    flex-direction: column;
  }

  .input-group button {
    padding: 14px;
  }

  .footer-content {
    flex-direction: column;
    gap: 16px;
  }

  .field-row {
    flex-direction: column;
    gap: 12px;
  }

  .field.quarter {
    flex: 1 1 100%;
  }

  .intake-card {
    padding: 20px;
  }

  .doc-uploads {
    grid-template-columns: 1fr;
  }

  .header-nav {
    gap: 16px;
  }

  .hero-cards {
    grid-template-columns: 1fr;
  }

  .hero-card {
    padding: 24px 20px;
  }

  .dual-steps {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .dual-cta {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
