/* Heartland Asset Group — Professional Real Estate Landing Page */

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0f1e32;
  --navy-light: #1a2d45;
  --slate: #2d3e50;
  --gold: #c9a84c;
  --gold-light: #e8c66a;
  --gold-dark: #a8873a;
  --cream: #faf8f4;
  --white: #ffffff;
  --gray-100: #f4f6f8;
  --gray-200: #e2e6ea;
  --gray-400: #9aa5b1;
  --gray-600: #4a5568;
  --gray-800: #2d3748;
  --text-dark: #1a202c;
  --text-muted: #718096;

  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius: 8px;
  --shadow: 0 4px 24px rgba(15, 30, 50, 0.12);
  --shadow-lg: 0 8px 40px rgba(15, 30, 50, 0.18);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 600; }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 600; }

p { color: var(--gray-600); margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ===== UTILITY ===== */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.75rem;
  display: block;
}

.lead {
  font-size: 1.125rem;
  color: var(--gray-600);
  max-width: 640px;
}

.text-center { text-align: center; }
.text-center .lead { margin: 0 auto; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 168, 76, 0.35);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
}

.btn-lg {
  padding: 1.125rem 2.5rem;
  font-size: 1.125rem;
}

/* ===== NAVBAR ===== */
.navbar {
  background: var(--navy);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid var(--gold);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.navbar-logo {
  width: 40px;
  height: 40px;
  background: var(--gold);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--navy);
}

.navbar-name {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  color: var(--white);
  font-weight: 600;
  line-height: 1.2;
}

.navbar-name span {
  display: block;
  font-size: 0.7rem;
  font-family: var(--font-body);
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 400;
}

.navbar-cta {
  background: var(--gold);
  color: var(--navy);
  padding: 0.6rem 1.25rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.navbar-cta:hover {
  background: var(--gold-light);
  text-decoration: none;
}

/* ===== HERO ===== */
.hero {
  background: var(--navy);
  padding: 5rem 0 6rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-dark));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero h1 strong {
  color: var(--gold);
}

.hero-sub {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 2.5rem;
  line-height: 1.7;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.hero-trust {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
}

.trust-badge svg { color: var(--gold); flex-shrink: 0; }

/* ===== SECTION SPACING ===== */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--gray-100);
}

.section-dark {
  background: var(--navy);
  color: var(--white);
}

.section-dark h2,
.section-dark h3 { color: var(--white); }

.section-dark p { color: rgba(255,255,255,0.7); }

/* ===== HOW IT WORKS ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.step {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0 auto 1.25rem;
}

.step h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.step p {
  font-size: 0.95rem;
  margin: 0;
}

/* Arrow between steps */
.steps .step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -1.5rem;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 12px solid var(--gold);
  opacity: 0.5;
}

/* ===== SITUATIONS (cards) ===== */
.situations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.situation-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--gold);
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.situation-card h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--navy);
}

.situation-card p {
  font-size: 0.9rem;
  margin: 0;
}

/* ===== WHY HEARTLAND ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.why-card {
  padding: 1.5rem;
}

.why-icon {
  width: 56px;
  height: 56px;
  background: rgba(201, 168, 76, 0.12);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--gold);
}

.why-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.why-card p {
  font-size: 0.9rem;
  margin: 0;
}

/* ===== SELLER FORM ===== */
.form-section {
  background: var(--navy);
  color: var(--white);
  padding: 5rem 0;
}

.form-section h2 { color: var(--white); }
.form-section .lead { color: rgba(255,255,255,0.7); }

.seller-form {
  max-width: 600px;
  margin: 2.5rem auto 0;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 2.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group:last-of-type { margin-bottom: 2rem; }

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  margin-bottom: 0.4rem;
}

input, select, textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-size: 1rem;
  font-family: var(--font-body);
  transition: border-color 0.2s, background 0.2s;
  appearance: none;
}

input::placeholder, textarea::placeholder {
  color: rgba(255,255,255,0.4);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255,255,255,0.12);
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23c9a84c' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

select option { background: var(--navy); color: var(--white); }

textarea {
  resize: vertical;
  min-height: 100px;
}

.form-submit {
  width: 100%;
}

.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
}

.form-success h3 { color: var(--gold); margin-bottom: 0.75rem; }
.form-success p { color: rgba(255,255,255,0.7); }

/* ===== FOOTER ===== */
.footer {
  background: var(--navy-light);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-brand-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--white);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.footer-tagline {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.footer-heading {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li { margin-bottom: 0.5rem; }

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--white); text-decoration: none; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .steps .step:not(:last-child)::after { display: none; }

  .form-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

  .navbar-name span { display: none; }

  .hero-actions { flex-direction: column; align-items: flex-start; }

  .hero-trust { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
}

@media (max-width: 480px) {
  .seller-form { padding: 1.5rem; }

  .btn-lg { width: 100%; text-align: center; }
}

/* ===== MISC ===== */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ===== ARTICLE PAGES ===== */
.article-header {
  background: var(--navy);
  padding: 4rem 0 5rem;
  border-bottom: 3px solid var(--gold);
}

.article-header-inner {
  max-width: 760px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--gold);
  text-decoration: none;
}

.article-label {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.article-title {
  color: var(--white);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.article-lead {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

/* Article Body Layout */
.article-body {
  padding: 4rem 0 5rem;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 4rem;
  align-items: start;
}

.article-content h2 {
  font-size: 1.5rem;
  margin: 2.5rem 0 1rem;
  color: var(--navy);
}

.article-content h3 {
  font-size: 1.15rem;
  margin: 2rem 0 0.75rem;
  color: var(--navy);
  font-family: var(--font-body);
  font-weight: 600;
}

.article-intro {
  font-size: 1.1rem;
  color: var(--gray-800);
  border-left: 4px solid var(--gold);
  padding-left: 1.25rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.article-content p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--gray-600);
  margin-bottom: 1.25rem;
}

.article-content ul,
.article-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

.article-content li {
  font-size: 1rem;
  color: var(--gray-600);
  line-height: 1.75;
  margin-bottom: 0.5rem;
}

.article-content strong {
  color: var(--gray-800);
  font-weight: 600;
}

.article-content em {
  font-style: italic;
}

.article-list li {
  margin-bottom: 0.75rem;
}

.article-cta-block {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  margin: 2.5rem 0;
  text-align: center;
}

.article-cta-block h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.article-cta-block p {
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* Sidebar */
.article-sidebar {
  position: sticky;
  top: 5rem;
}

.sidebar-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  border-top: 3px solid var(--gold);
}

.sidebar-card h4 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--navy);
}

.sidebar-card p {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-bottom: 1rem;
}

.sidebar-list {
  list-style: none;
}

.sidebar-list li {
  font-size: 0.875rem;
  color: var(--gray-600);
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.sidebar-list li:last-child {
  border-bottom: none;
}

.sidebar-list a {
  color: var(--gold-dark);
  font-weight: 500;
  font-size: 0.875rem;
}

.sidebar-list a:hover {
  text-decoration: underline;
}

/* Timeline list in sidebar */
.timeline-list {
  list-style: none;
}

.timeline-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.timeline-list li:last-child {
  border-bottom: none;
}

.timeline-list strong {
  display: block;
  font-size: 0.875rem;
  color: var(--navy);
  font-weight: 700;
}

.timeline-list span {
  display: block;
  font-size: 0.8rem;
  color: var(--gray-600);
  margin-top: 0.25rem;
}

/* Responsive */
@media (max-width: 900px) {
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
  }
}

/* ===== SUBJECT-TO FEATURED BANNER ===== */
.subto-featured {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 4rem 0;
}

.subto-featured .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .article-header {
    padding: 3rem 0 4rem;
  }

  .article-body {
    padding: 2.5rem 0 3rem;
  }

  .article-cta-block {
    padding: 1.75rem;
  }
}

/* ===== DEAL CARDS (used on /deals and /cash-buyers) ===== */
.deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.deal-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.deal-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.deal-card-img {
  height: 180px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--slate) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.deal-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.deal-card-img .no-photo {
  color: rgba(255,255,255,0.4);
  font-size: 3rem;
}

.deal-type-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: var(--navy);
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

.deal-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.deal-location {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.deal-county {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.deal-specs {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.deal-spec {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.875rem;
  color: var(--gray-600);
}
.deal-spec svg { width: 16px; height: 16px; color: var(--gold); flex-shrink: 0; }

.deal-arv {
  font-weight: 600;
  color: var(--navy);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}
.deal-arv-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.deal-fee {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.deal-fee-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.deal-fee-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold-dark);
}

.deal-cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.75rem;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 0;
  text-decoration: none;
  transition: background 0.2s;
  cursor: pointer;
  border: none;
}
.deal-cta:hover {
  background: var(--slate);
  text-decoration: none;
  color: #fff;
}