/* ============================================
   FIND. FIX. FLIP. — PREMIUM OVERHAUL
   Starlink-inspired dark cinematic design
   v1.0 — 2026-02-16
   Loaded LAST — overrides all previous styles
   ============================================ */

/* ==========================================================
   0. FFF BRAND VARIABLES
   ========================================================== */
:root {
  --fff-yellow: #FFD700;
  --fff-yellow-hover: #FFC107;
  --fff-yellow-glow: rgba(255, 215, 0, 0.25);
  --fff-yellow-subtle: rgba(255, 215, 0, 0.08);
}

/* ==========================================================
   1. BASE TYPOGRAPHY
   Body was 12px/700 — way too small and heavy.
   Starlink uses clean, readable body text.
   ========================================================== */
body {
  font-size: 15px;
  font-weight: 400;
  background: #000;
}

h1, h2, h3, h4, h5, h6 {
  letter-spacing: 0.06em;
}

/* ==========================================================
   2. NAVIGATION — Starlink-inspired sticky bar
   ========================================================== */
.nav {
  background: rgba(0, 0, 0, 0.7);
}
.nav.scrolled {
  background: rgba(0, 0, 0, 0.92);
}

.nav-link {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
}

.nav-cta {
  background: var(--fff-yellow);
  color: #000;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 800;
}
.nav-cta:hover {
  background: var(--fff-yellow-hover);
  box-shadow: 0 4px 24px var(--fff-yellow-glow);
}

.nav-phone {
  color: var(--fff-yellow);
}

/* ==========================================================
   3. MOBILE MENU — Full-Screen Overlay
   Transform-based slide from right. GPU-accelerated.
   iOS Safari: uses body scroll lock in JS.
   Large, uppercase, tap-friendly links.
   ========================================================== */

/* --- 3a. Dark overlay backdrop --- */
.mobile-overlay {
  background: rgba(0, 0, 0, 0.7);
  transition: opacity 0.3s ease, visibility 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}

/* --- 3b. Slide-out panel --- */
.mobile-nav {
  width: 100vw;
  max-width: 100vw;
  background: rgba(0, 0, 0, 0.97);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border-left: none;
  box-shadow: none;
  /* GPU-accelerated slide via transform (not right/left) */
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.mobile-nav.active {
  transform: translateX(0);
}

/* --- 3c. Header with logo + close button --- */
.mobile-nav-header {
  padding: 20px 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.mobile-nav-close {
  width: 48px;
  height: 48px;
  font-size: 22px;
  background: rgba(255, 255, 255, 0.06);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.mobile-nav-close:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* --- 3d. Navigation links --- */
.mobile-nav-links {
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  gap: 4px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.mobile-nav-link {
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  padding: 16px 24px;
  min-height: 52px;
  justify-content: center;
  width: 100%;
  color: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.2s ease, background 0.2s ease;
}
.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--fff-yellow);
  background: var(--fff-yellow-subtle);
}

/* --- 3e. Footer: CTA + phone --- */
.mobile-nav-footer {
  padding: 24px 32px;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.mobile-nav-cta {
  background: var(--fff-yellow);
  color: #000;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 4px;
  min-height: 52px;
  font-size: 15px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.mobile-nav-cta:hover {
  background: var(--fff-yellow-hover);
  box-shadow: 0 8px 32px var(--fff-yellow-glow);
}
.mobile-nav-phone {
  color: var(--fff-yellow);
  font-size: 16px;
  font-weight: 600;
  touch-action: manipulation;
}

/* ==========================================================
   4. HERO — Dark cinematic, FFF Yellow accents
   ========================================================== */
.hero {
  background: linear-gradient(165deg, #000 0%, #050a14 35%, #000 100%);
}

.hero-title .highlight-find { color: var(--fff-yellow); }
.hero-title .highlight-fix { color: #fff; }
.hero-title .highlight-flip { color: var(--fff-yellow); }

.hero-badge {
  background: var(--fff-yellow-subtle);
  border-color: rgba(255, 215, 0, 0.2);
  color: var(--fff-yellow);
}

.page-hero {
  background: #000;
}

/* ==========================================================
   5. BUTTONS — FFF Yellow (#FFD700) Primary
   Sharp 4px radius, uppercase, bold
   ========================================================== */
.btn-primary,
.btn-gold,
.btn-white {
  background: var(--fff-yellow) !important;
  color: #000 !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 800;
  border-radius: 4px;
  border: none !important;
}
.btn-primary:hover,
.btn-gold:hover,
.btn-white:hover {
  background: var(--fff-yellow-hover) !important;
  box-shadow: 0 8px 32px var(--fff-yellow-glow);
  color: #000 !important;
}

.form-submit,
.form-submit-gold {
  background: var(--fff-yellow);
  color: #000;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 800;
  border-radius: 4px;
}
.form-submit:hover,
.form-submit-gold:hover {
  background: var(--fff-yellow-hover);
  box-shadow: 0 8px 32px var(--fff-yellow-glow);
}

.btn-pathway,
.pathway-cta {
  background: var(--fff-yellow) !important;
  color: #000 !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 800;
}
.btn-pathway:hover,
.pathway-cta:hover {
  background: var(--fff-yellow-hover) !important;
  box-shadow: 0 8px 32px var(--fff-yellow-glow);
}

.btn-secondary,
.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 4px;
}
.btn-secondary:hover,
.btn-outline:hover {
  border-color: var(--fff-yellow);
  color: var(--fff-yellow);
  background: var(--fff-yellow-subtle);
}

.btn-blue {
  background: var(--fff-yellow);
  color: #000;
}
.btn-blue:hover {
  box-shadow: 0 8px 32px var(--fff-yellow-glow);
}

/* ==========================================================
   6. FORM FOCUS — FFF Yellow Glow
   ========================================================== */
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--fff-yellow);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.12);
  background: rgba(255, 215, 0, 0.03);
}

/* Form accent lines */
.form-card::before,
.hero-form-card::before,
.wholesale-form-card::before {
  background: linear-gradient(90deg, transparent, var(--fff-yellow), transparent);
}

/* Multi-step progress */
.form-progress-bar { background: var(--fff-yellow); }
.progress-step.active .progress-dot {
  background: var(--fff-yellow);
  border-color: var(--fff-yellow);
  color: #000;
}
.progress-step.active .progress-label { color: var(--fff-yellow); }
.form-nav-btn.next {
  background: var(--fff-yellow);
  color: #000;
  box-shadow: 0 4px 16px var(--fff-yellow-glow);
}
.form-nav-btn.next:hover {
  box-shadow: 0 6px 24px var(--fff-yellow-glow);
}

/* ==========================================================
   7. LIGHT SECTIONS → ALL-DARK CONVERSION

   The site had white/grey background sections causing
   catastrophic contrast issues (white text on white bg).

   Strategy: Convert ALL light sections to dark backgrounds
   for a consistent Starlink all-dark aesthetic.

   How it works:
   - Override .section-light background to dark via !important
   - Redefine --concrete-* and --blue-900/800 CSS variables
     within .section-light so ALL inline styles that reference
     these vars automatically adjust for dark backgrounds
   - Override explicit light-section styling (form-light, etc.)
   ========================================================== */

/* --- 7a. Background + variable redefinition --- */
.section-light,
section.section-light {
  background: var(--space-900) !important;
  color: rgba(255, 255, 255, 0.7) !important;

  /* Redefine concrete vars for dark bg context.
     Any inline style like style="color:var(--concrete-500)"
     will now use the new light-on-dark value automatically. */
  --concrete-900: #ffffff;
  --concrete-800: #e0e0e0;
  --concrete-700: rgba(255, 255, 255, 0.7);
  --concrete-600: rgba(255, 255, 255, 0.55);
  --concrete-500: rgba(255, 255, 255, 0.5);
  --concrete-400: rgba(255, 255, 255, 0.4);
  --concrete-300: rgba(255, 255, 255, 0.35);
  --concrete-200: rgba(255, 255, 255, 0.08);
  --concrete-100: rgba(255, 255, 255, 0.06);
  --concrete-50: rgba(255, 255, 255, 0.03);

  /* Redefine blue-900/800 for text. These were undefined
     in :root but used in inline styles for heading colors.
     Pages that use these for background gradients must
     hardcode those gradient colors instead. */
  --blue-900: #ffffff;
  --blue-800: #e0e0e0;
}

/* --- 7b. Headings --- */
section.section-light h1,
section.section-light h2,
section.section-light h3,
section.section-light h4,
section.section-light h5,
section.section-light h6,
.section.section-light .section-title,
.section.section-light .feature-title,
.section.section-light .form-card-title,
.section.section-light .form-card-title-dark,
.section.section-light .form-step-title {
  color: #fff !important;
}

/* --- 7c. Body text --- */
.section.section-light p,
.section.section-light li,
.section.section-light .section-subtitle,
.section.section-light .feature-desc,
.section.section-light .faq-answer-inner,
.section.section-light .form-card-sub,
.section.section-light .form-disclaimer,
.section.section-light .step-desc {
  color: rgba(255, 255, 255, 0.5) !important;
}

/* --- 7d. Section tags --- */
.section.section-light .section-tag {
  color: var(--fff-yellow) !important;
}

/* --- 7e. Labels --- */
.section.section-light .form-label,
.section.section-light .form-label-dark,
.section.section-light .loan-detail-label {
  color: rgba(255, 255, 255, 0.4) !important;
}

/* --- 7f. FAQ --- */
.section.section-light .faq-question {
  color: #fff !important;
}
.section.section-light .faq-question:hover {
  color: var(--blue-400) !important;
}
.section.section-light .faq-question i {
  color: rgba(255, 255, 255, 0.3) !important;
}
.section.section-light .faq-item.open .faq-question i {
  color: var(--fff-yellow) !important;
}
.section.section-light .faq-item {
  border-bottom-color: rgba(255, 255, 255, 0.06) !important;
}

/* --- 7g. Cards → Dark glass --- */
.section.section-light .card,
.section.section-light .feature-card,
.section.section-light .glass-card {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  box-shadow: none !important;
}
.section.section-light .card:hover,
.section.section-light .feature-card:hover {
  background: rgba(255, 255, 255, 0.07) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3) !important;
}

/* --- 7h. Form cards → Dark glass --- */
.section.section-light .form-card,
.section.section-light .form-card-light {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  box-shadow: none !important;
}

/* --- 7i. Form inputs → Dark glass --- */
.section.section-light .form-input,
.section.section-light .form-select,
.section.section-light .form-textarea,
.section.section-light .form-light .form-input,
.section.section-light .form-light .form-select,
.section.section-light .form-light .form-textarea {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
}
.section.section-light .form-input::placeholder,
.section.section-light .form-textarea::placeholder,
.section.section-light .form-light .form-input::placeholder,
.section.section-light .form-light .form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.25) !important;
}
.section.section-light .form-input:focus,
.section.section-light .form-select:focus,
.section.section-light .form-textarea:focus {
  border-color: var(--fff-yellow) !important;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.12) !important;
  background: rgba(255, 215, 0, 0.03) !important;
}
.section.section-light .form-select option {
  background: var(--space-800);
  color: #fff;
}

/* --- 7j. Form labels → Light on dark --- */
.section.section-light .form-label,
.section.section-light .form-light .form-label {
  color: rgba(255, 255, 255, 0.4) !important;
}

/* --- 7k. Form trust & disclaimer --- */
.section.section-light .form-trust,
.section.section-light .form-trust-light {
  border-top-color: rgba(255, 255, 255, 0.06) !important;
}
.section.section-light .form-trust-item,
.section.section-light .form-trust-light .form-trust-item {
  color: rgba(255, 255, 255, 0.35) !important;
}
.section.section-light .form-disclaimer {
  color: rgba(255, 255, 255, 0.3) !important;
}

/* --- 7l. Loan details --- */
.section.section-light .loan-details {
  border-top-color: rgba(255, 255, 255, 0.06) !important;
}
.section.section-light .loan-detail-value {
  color: #fff !important;
}
.section.section-light .loan-detail {
  border-bottom-color: rgba(255, 255, 255, 0.04) !important;
}

/* --- 7m. Links --- */
.section.section-light a:not(.btn):not(.btn-primary):not(.btn-gold):not(.btn-secondary):not(.btn-outline):not(.form-submit):not(.pathway-cta):not(.btn-pathway):not(.mobile-nav-cta):not(.mobile-nav-link):not(.nav-cta):not(.nav-link) {
  color: var(--blue-400) !important;
}

/* --- 7n. Feature icons --- */
.section.section-light .feature-icon-blue { background: rgba(18, 119, 206, 0.12); color: var(--blue-400); }
.section.section-light .feature-icon-gold { background: rgba(255, 221, 0, 0.1); color: var(--gold-400); }
.section.section-light .feature-icon-green { background: rgba(67, 160, 71, 0.12); color: var(--green-500); }

/* --- 7o. Step numbers --- */
.section.section-light .step-number {
  background: rgba(255, 255, 255, 0.03) !important;
  border-color: rgba(255, 215, 0, 0.3) !important;
}
.section.section-light .step-number span {
  color: #fff !important;
}

/* --- 7p. Compare table --- */
.section.section-light .compare-table th {
  background: var(--space-700) !important;
  color: #fff !important;
}
.section.section-light .compare-table td {
  color: rgba(255, 255, 255, 0.7) !important;
  border-bottom-color: rgba(255, 255, 255, 0.04) !important;
}
.section.section-light .compare-table td:first-child {
  color: #fff !important;
}
.section.section-light .compare-table tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.02) !important;
}

/* ==========================================================
   8. SECTION & CARD ACCENTS — FFF Yellow
   ========================================================== */
.card:hover,
.glass-card:hover,
.pathway-card:hover {
  border-color: rgba(255, 215, 0, 0.1);
}

.section-tag {
  color: var(--fff-yellow);
}
.wholesale-tag {
  color: var(--fff-yellow);
}

.pathway-card:nth-child(1)::before,
.pathway-card:nth-child(2)::before,
.pathway-card:nth-child(3)::before {
  background: var(--fff-yellow);
}

/* ==========================================================
   9. PRICING — FFF Yellow accents
   ========================================================== */
.pricing-card.featured {
  border-color: rgba(255, 215, 0, 0.3);
  box-shadow: 0 0 60px rgba(255, 215, 0, 0.06);
}
.pricing-card.featured::before {
  background: var(--fff-yellow);
  color: #000;
}
.pricing-btn.gold {
  background: var(--fff-yellow);
  color: #000;
}
.pricing-btn.gold:hover {
  box-shadow: 0 8px 32px var(--fff-yellow-glow);
}

/* Pricing card content on now-dark background */
.section.section-light .pricing-card {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
}
.section.section-light .pricing-card.featured {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 215, 0, 0.3) !important;
}
.section.section-light .pricing-name {
  color: #fff !important;
}
.section.section-light .pricing-price {
  color: #fff !important;
}
.section.section-light .pricing-price span {
  color: rgba(255, 255, 255, 0.35) !important;
}
.section.section-light .pricing-desc {
  color: rgba(255, 255, 255, 0.35) !important;
}
.section.section-light .pricing-features li {
  color: rgba(255, 255, 255, 0.6) !important;
  border-bottom-color: rgba(255, 255, 255, 0.04) !important;
}

/* ==========================================================
   10. LOAN CARDS — FFF Yellow accents
   ========================================================== */
.loan-card.featured {
  border-color: rgba(255, 215, 0, 0.3);
  box-shadow: 0 0 40px rgba(255, 215, 0, 0.08);
}
.loan-card.featured::after {
  background: var(--fff-yellow);
  color: #000;
}
.loan-apply:hover {
  background: var(--fff-yellow);
  color: #000;
}

/* ==========================================================
   11. CALCULATOR RESPONSIVE
   Use .calc-layout class on the grid wrapper.
   ========================================================== */
.calc-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) {
  .calc-layout {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
}
@media (max-width: 768px) {
  .calc-layout {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
}

/* Contractor cards on dark bg */
.section.section-light .contractor-card {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
}
.section.section-light .contractor-card:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}
.section.section-light .contractor-name {
  color: #fff !important;
}
.section.section-light .contractor-specialty {
  color: rgba(255, 255, 255, 0.4) !important;
}
.section.section-light .contractor-stat {
  background: rgba(255, 255, 255, 0.03) !important;
}
.section.section-light .contractor-stat-val {
  color: #fff !important;
}
.section.section-light .contractor-stat-label {
  color: rgba(255, 255, 255, 0.3) !important;
}

/* Deal cards on dark bg */
.section.section-light .deal-card {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
}
.section.section-light .deal-card:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}
.section.section-light .deal-address {
  color: #fff !important;
}
.section.section-light .deal-location {
  color: rgba(255, 255, 255, 0.35) !important;
}
.section.section-light .deal-num-value {
  color: #fff !important;
}
.section.section-light .deal-num-label {
  color: rgba(255, 255, 255, 0.3) !important;
}
.section.section-light .deal-numbers {
  border-top-color: rgba(255, 255, 255, 0.06) !important;
}

/* ==========================================================
   12. FOOTER
   ========================================================== */
.footer {
  background: #000;
}
.footer-brand .c-fix {
  color: var(--fff-yellow);
}

/* ==========================================================
   13. RESPONSIVE POLISH
   ========================================================== */
@media (max-width: 768px) {
  body { font-size: 14px; }
  .hero-form-card { padding: 24px; }
  .section { padding: 60px 16px; }
  .cta-banner { padding: 60px 16px; }
  .page-hero { padding: 120px 16px 60px; }
}

@media (max-width: 480px) {
  .mobile-nav-link {
    font-size: 18px;
    letter-spacing: 0.1em;
  }
}

/* ==========================================================
   14. ANIMATION POLISH
   ========================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
