/* === Walt Sweeney Ford — Sell Your Car Landing Page === */
/* Brand: Walt Sweeney dark theme, Montserrat, dealer green #21b500 */
/* Distinct from VehicleHero consumer brand */

:root {
  --accent: #21b500;
  --accent-dark: #1a9400;
  --accent-glow: rgba(33, 181, 0, 0.12);
  --gold: #8B7432;
  --gold-light: #A68D3E;
  --dark-bg: #1a1a1a;
  --dark-card: #242424;
  --dark-card-hover: #2c2c2c;
  --dark-border: #3a3a3a;
  --text-primary: #FFFFFF;
  --text-secondary: #b0b0b0;
  --text-muted: #6f6f6f;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Montserrat', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background: var(--dark-bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === HERO HEADER (Logo left, Heritage right) === */
.hero-header {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  width: 100%;
  max-width: 640px;
  margin: 0 auto 32px;
  position: relative;
  z-index: 2;
}

/* === DEALER LOGO === */
.dealer-logo {
  display: block;
  max-width: 180px;
  height: auto;
  -webkit-filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

/* === HERO (White Above the Fold) === */
.hero {
  position: relative;
  min-height: 100vh;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  padding: 80px 24px 60px;
  background-color: #ffffff;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(33, 181, 0, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, rgba(26, 26, 26, 0.03));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 640px;
  text-align: center;
  margin: 0 auto;
}

/* === HERITAGE BLOCK === */
.heritage-block {
  display: -webkit-inline-flex;
  display: inline-flex;
  -webkit-align-items: center;
  align-items: center;
  gap: 16px;
  padding: 12px 28px;
  background: linear-gradient(135deg, rgba(139, 116, 50, 0.06), rgba(139, 116, 50, 0.02));
  border: 1px solid rgba(139, 116, 50, 0.15);
  border-radius: 12px;
}

.heritage-years {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.heritage-number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: -1px;
  line-height: 1;
}

.heritage-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 3px;
}

.heritage-divider {
  width: 1px;
  height: 48px;
  background: rgba(139, 116, 50, 0.2);
}

.heritage-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.heritage-tagline {
  font-size: 0.85rem;
  font-weight: 600;
  color: #444;
  line-height: 1.3;
}

.heritage-est {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 2px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 7vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  color: #1a1a1a;
  font-weight: 900;
}

.hero h1 .highlight {
  color: var(--accent);
}

.hero-sub {
  font-size: 1.1rem;
  color: #5a5a5a;
  margin-bottom: 40px;
  line-height: 1.7;
}

/* === FORM (Light Theme for White Hero) === */
.offer-form {
  background: #ffffff;
  border: 1px solid #e2e5ea;
  border-radius: 16px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.04);
}

.form-tabs {
  display: -webkit-flex;
  display: flex;
  border-bottom: 1px solid #e2e5ea;
}

.tab {
  flex: 1;
  padding: 14px;
  background: transparent;
  border: none;
  color: #999;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.tab.active {
  color: var(--accent);
}

.tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20%;
  width: 60%;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.tab:hover:not(.active) {
  color: #555;
}

.form-body {
  padding: 24px;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.input-row {
  display: -webkit-flex;
  display: flex;
  gap: 12px;
}

.plate-group { flex: 2; }
.state-group { flex: 1; }

.input-group {
  margin-bottom: 16px;
}

.input-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #666;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Light inputs for hero form */
.hero .input-group input,
.hero .input-group select {
  width: 100%;
  padding: 14px 16px;
  background: #f7f8fa;
  border: 1px solid #dde0e5;
  border-radius: 10px;
  color: #1a1a1a;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

.hero .input-group select {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23999' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  background-color: #f7f8fa;
}

.hero .input-group input:focus,
.hero .input-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.hero .input-group input::placeholder {
  color: #aaa;
}

/* Dark inputs for dark sections (contact form, vehicle details) */
.input-group input,
.input-group select {
  width: 100%;
  padding: 14px 16px;
  background: var(--dark-bg);
  border: 1px solid var(--dark-border);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

.input-group select {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%236B7080' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.input-group input:focus,
.input-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.input-group input::placeholder {
  color: var(--text-muted);
}

.btn-primary {
  display: -webkit-inline-flex;
  display: inline-flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 32px;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(33, 181, 0, 0.25);
}

.btn-primary:active {
  transform: translateY(0);
}

/* === VEHICLE DETAILS === */
.vehicle-details {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 16px;
  padding: 24px;
  margin-top: 20px;
  text-align: left;
}

.vehicle-info h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--accent);
  letter-spacing: 1px;
}

.vehicle-info p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.condition-form h4 {
  font-size: 0.95rem;
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.condition-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.condition-item label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.condition-item select {
  width: 100%;
  padding: 10px 12px;
  background: var(--dark-bg);
  border: 1px solid var(--dark-border);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%236B7080' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.condition-item select:focus {
  outline: none;
  border-color: var(--accent);
}

/* === CONTACT FORM === */
.contact-form {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 16px;
  padding: 24px;
  margin-top: 20px;
  text-align: left;
}

.contact-form h4 {
  font-size: 1rem;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.contact-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.consent-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 12px;
  line-height: 1.5;
}

/* === SUCCESS === */
.success-state {
  background: var(--dark-card);
  border: 1px solid rgba(33, 181, 0, 0.3);
  border-radius: 16px;
  padding: 48px 32px;
  margin-top: 20px;
  text-align: center;
}

.success-icon {
  margin-bottom: 20px;
}

.success-state h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--accent);
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.success-state p {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 440px;
  margin: 0 auto 12px;
}

.success-detail {
  font-size: 0.9rem !important;
  color: var(--text-muted) !important;
}

/* === TRUST BAR === */
.hero-trust {
  display: -webkit-flex;
  display: flex;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 32px;
}

.trust-item {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #666;
  font-weight: 500;
}

/* === CONSENT TEXT (Light in Hero) === */
.hero .consent-text {
  color: #999;
}

.hero .consent-text a {
  color: var(--accent);
  text-decoration: none;
}

.hero .consent-text a:hover {
  text-decoration: underline;
}

/* === LOADING STATE === */
.loading-state {
  background: #ffffff;
  border: 1px solid #e2e5ea;
  border-radius: 16px;
  padding: 48px 32px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid #e2e5ea;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-state h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.loading-state p {
  color: #888;
  font-size: 0.9rem;
}

/* === VEHICLE INFO CARD (Light) === */
.vehicle-info-card {
  background: #ffffff;
  border: 1px solid #e2e5ea;
  border-radius: 16px;
  padding: 20px 24px;
  text-align: left;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.vehicle-confirmed {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(33, 181, 0, 0.06);
  border: 1px solid rgba(33, 181, 0, 0.2);
  border-radius: 10px;
  padding: 14px 18px;
}

.vehicle-confirmed-icon { flex-shrink: 0; }

.vehicle-confirmed-ymm {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: #1a1a1a;
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1.1;
}

.vehicle-confirmed-trim {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 600;
}

.vehicle-confirmed-specs {
  font-size: 0.75rem;
  color: #888;
  margin-top: 2px;
}

.vehicle-wrong-link {
  display: block;
  text-align: center;
  margin-top: 10px;
  font-size: 0.8rem;
  color: #999;
  text-decoration: underline;
  cursor: pointer;
}

.vehicle-wrong-link:hover {
  color: #666;
}

/* === ERROR TOAST === */
.vh-error-toast {
  background: rgba(255, 68, 68, 0.06);
  border: 1px solid rgba(255, 68, 68, 0.2);
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: #d43333;
  opacity: 0;
  transition: all 0.3s ease;
  margin-top: 12px;
  transform: translateY(-8px);
}

.vh-error-toast.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === HERO SUCCESS STATE (Light) === */
.hero .success-state {
  background: #ffffff;
  border: 1px solid rgba(33, 181, 0, 0.2);
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.hero .success-state h2 {
  color: var(--accent);
}

.hero .success-state p {
  color: #555;
}

.hero .success-detail {
  color: #888 !important;
}

/* === HIDDEN === */
.hidden {
  display: none !important;
}

/* === HOW IT WORKS === */
.how-it-works {
  padding: 100px 0;
  background: var(--dark-bg);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  text-align: center;
  letter-spacing: -0.3px;
  margin-bottom: 8px;
  font-weight: 900;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 60px;
  font-size: 1.05rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step {
  text-align: center;
  padding: 40px 24px;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 16px;
  position: relative;
  transition: border-color 0.3s;
}

.step:hover {
  border-color: rgba(33, 181, 0, 0.3);
}

.step-number {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
}

.step-icon {
  margin: 20px 0 24px;
}

.step h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  font-weight: 700;
}

.step p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* === WHY US === */
.why-us {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--dark-bg) 0%, #202020 100%);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.why-card {
  padding: 36px;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 16px;
  transition: all 0.3s;
}

.why-card:hover {
  border-color: rgba(33, 181, 0, 0.3);
  background: var(--dark-card-hover);
}

.why-icon {
  margin-bottom: 20px;
}

.why-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.why-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* === TESTIMONIALS === */
.testimonials {
  padding: 100px 0;
  background: var(--dark-bg);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.testimonial-card {
  padding: 32px;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 16px;
  transition: border-color 0.3s;
}

.testimonial-card:hover {
  border-color: rgba(33, 181, 0, 0.2);
}

.stars {
  color: #FFD700;
  font-size: 1.1rem;
  margin-bottom: 16px;
  letter-spacing: 3px;
}

.testimonial-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 16px;
}

.testimonial-author {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* === FAQ === */
.faq {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--dark-bg) 0%, #202020 100%);
}

.faq-list {
  max-width: 720px;
  margin: 60px auto 0;
}

.faq-item {
  border-bottom: 1px solid var(--dark-border);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 20px 0;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--accent);
}

.faq-question svg {
  flex-shrink: 0;
  transition: transform 0.3s;
}

.faq-item.open .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-item.open .faq-answer {
  max-height: 200px;
}

.faq-answer p {
  padding-bottom: 20px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* === FINAL CTA === */
.final-cta {
  padding: 100px 0;
  background: var(--dark-card);
  text-align: center;
}

.final-cta h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.3px;
  margin-bottom: 12px;
  font-weight: 900;
}

.final-cta p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

.btn-large {
  display: inline-flex;
  width: auto;
  padding: 18px 48px;
  font-size: 1.15rem;
  border-radius: 14px;
}

/* === FOOTER === */
.footer {
  padding: 60px 0 30px;
  background: #0A0C12;
  border-top: 1px solid var(--dark-border);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.footer h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer a {
  color: var(--accent);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer-links-col a {
  display: block;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.footer-links-col a:hover {
  text-decoration: underline;
}

.powered-by {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.vh-logo-text {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
}

.footer-bottom {
  border-top: 1px solid var(--dark-border);
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero {
    padding: 60px 20px 40px;
    min-height: auto;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .hero-sub {
    font-size: 0.95rem;
  }

  .hero-sub br { display: none; }

  .hero-header {
    -webkit-flex-direction: column;
    flex-direction: column;
    gap: 16px;
    -webkit-align-items: center;
    align-items: center;
  }

  .dealer-logo {
    margin: 0 auto;
  }

  .heritage-block {
    gap: 12px;
    padding: 10px 20px;
  }

  .heritage-number {
    font-size: 2.2rem;
  }

  .heritage-divider {
    height: 40px;
  }

  .heritage-tagline {
    font-size: 0.8rem;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .condition-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-powered {
    text-align: left;
    justify-content: flex-start;
  }

  .hero-trust {
    gap: 16px;
  }

  .trust-item {
    font-size: 0.8rem;
  }

  .input-row {
    flex-direction: column;
    gap: 0;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .form-body {
    padding: 16px;
  }

  .btn-primary {
    padding: 14px 24px;
    font-size: 0.95rem;
  }

  .btn-large {
    padding: 16px 32px;
    width: 100%;
  }
}
