/* ============================================================
   ForeclosuresDeals.com — Custom Styles
   Built on top of Tailwind CSS (loaded via CDN)
   ============================================================ */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@600;700;800&display=swap');

:root {
  /* Brand palette */
  --ocean:      #0C4A6E;
  --ocean-light:#0369A1;
  --sky:        #38BDF8;
  --sand:       #FEF3C7;
  --sand-dark:  #F59E0B;
  --sunset:     #F97316;
  --coral:      #EF4444;
  --palm:       #059669;
  --palm-light: #34D399;
  --warm-white: #FFFBF5;
  --warm-gray:  #F5F0EB;
  --charcoal:   #1E293B;
  --slate:      #475569;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--charcoal);
  background: var(--warm-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.2;
}

/* ---------- Opening Soon Banner ---------- */
.opening-banner {
  background: #DC2626;
  color: #fff;
  text-align: center;
  padding: 10px 24px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
}

/* ---------- Navbar ---------- */
.nav {
  position: fixed;
  top: 38px;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: box-shadow 0.3s ease;
}

.nav.scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,0.08);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--ocean);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo .dot {
  width: 10px;
  height: 10px;
  background: var(--sunset);
  border-radius: 50%;
  display: inline-block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--slate);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--ocean);
}

.nav-cta {
  background: var(--ocean);
  color: #fff !important;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.2s, transform 0.15s;
}

.nav-cta:hover {
  background: var(--ocean-light);
  transform: translateY(-1px);
}

/* Mobile menu */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  margin: 6px 0;
  transition: all 0.3s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0C4A6E 0%, #0369A1 40%, #0EA5E9 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    url('https://images.unsplash.com/photo-1564013799919-ab600027ffc6?w=1920&q=80');
  background-size: cover;
  background-position: center;
  opacity: 0.2;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(12,74,110,0.92) 0%, rgba(3,105,161,0.85) 50%, rgba(14,165,233,0.75) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 120px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text {
  color: #fff;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 24px;
  color: #fff;
}

.hero-badge .pulse {
  width: 8px;
  height: 8px;
  background: var(--palm-light);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero h1 .highlight {
  color: var(--sand);
}

.hero-sub {
  font-size: 1.25rem;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 36px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sunset);
  color: #fff;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(249,115,22,0.35);
}

.btn-primary:hover {
  background: #EA580C;
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(249,115,22,0.45);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  border: 2px solid rgba(255,255,255,0.3);
  color: #fff;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.5);
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
}

.hero-stat {
  text-align: left;
}

.hero-stat .number {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 800;
}

.hero-stat .label {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-top: 2px;
}

/* Hero card (right side) */
.hero-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0,0,0,0.25);
  transform: rotate(2deg);
  transition: transform 0.4s ease;
}

.hero-card:hover {
  transform: rotate(0deg);
}

.hero-card-img {
  width: 100%;
  height: 240px;
  background: linear-gradient(135deg, #E0F2FE, #BAE6FD);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
  overflow: hidden;
}

.hero-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--palm);
  color: #fff;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
}

.hero-card-body {
  padding: 24px;
}

.hero-card-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--ocean);
}

.hero-card-original {
  font-size: 1rem;
  color: var(--slate);
  text-decoration: line-through;
  margin-left: 8px;
}

.hero-card-address {
  color: var(--slate);
  font-size: 0.95rem;
  margin-top: 4px;
}

.hero-card-details {
  display: flex;
  gap: 20px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #E2E8F0;
}

.hero-card-detail {
  font-size: 0.9rem;
  color: var(--slate);
}

.hero-card-detail strong {
  color: var(--charcoal);
  display: block;
}

/* ---------- Trust Bar ---------- */
.trust-bar {
  background: #fff;
  border-bottom: 1px solid #E2E8F0;
  padding: 24px 0;
}

.trust-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--slate);
  font-weight: 500;
}

.trust-icon {
  width: 36px;
  height: 36px;
  background: var(--sand);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

/* ---------- How It Works ---------- */
.how-it-works {
  padding: 100px 24px;
  background: var(--warm-white);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section-label {
  display: inline-block;
  background: var(--sand);
  color: var(--sand-dark);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--ocean);
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--slate);
}

.steps {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.step {
  background: #fff;
  border-radius: 20px;
  padding: 40px 32px;
  text-align: center;
  border: 1px solid #E2E8F0;
  transition: all 0.3s ease;
  position: relative;
}

.step:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
  border-color: var(--sky);
}

.step-number {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--ocean), var(--ocean-light));
  color: #fff;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 24px;
}

.step h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--charcoal);
}

.step p {
  color: var(--slate);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Step connector arrows */
.steps .step:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -24px;
  top: 50%;
  width: 20px;
  height: 20px;
  border-right: 3px solid var(--sky);
  border-bottom: 3px solid var(--sky);
  transform: translateY(-50%) rotate(-45deg);
}

/* ---------- Featured Listings ---------- */
.listings-section {
  padding: 100px 24px;
  background: var(--warm-gray);
}

.listings-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.listing-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #E2E8F0;
  transition: all 0.3s ease;
  cursor: pointer;
}

.listing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.listing-img {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, #E0F2FE, #FEF3C7);
  position: relative;
  overflow: hidden;
}

.listing-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.listing-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
}

.badge-new { background: var(--palm); }
.badge-hot { background: var(--coral); }
.badge-deal { background: var(--sunset); }

.listing-discount {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--palm);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
}

.listing-body {
  padding: 20px;
}

.listing-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ocean);
}

.listing-original {
  font-size: 0.9rem;
  color: #94A3B8;
  text-decoration: line-through;
  margin-left: 8px;
}

.listing-address {
  color: var(--slate);
  font-size: 0.9rem;
  margin-top: 6px;
}

.listing-meta {
  display: flex;
  gap: 16px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #F1F5F9;
}

.listing-meta span {
  font-size: 0.85rem;
  color: var(--slate);
  display: flex;
  align-items: center;
  gap: 4px;
}

.listing-cta {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 12px;
  background: var(--ocean);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  text-align: center;
  text-decoration: none;
}

.listing-cta:hover {
  background: var(--ocean-light);
}

/* ---------- Value Props ---------- */
.value-section {
  padding: 100px 24px;
  background: var(--warm-white);
}

.value-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.value-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  display: flex;
  gap: 20px;
  border: 1px solid #E2E8F0;
  transition: all 0.3s ease;
}

.value-card:hover {
  border-color: var(--sky);
  box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.value-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--sand), #FDE68A);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.value-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.value-card p {
  color: var(--slate);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--ocean) 0%, var(--ocean-light) 100%);
  padding: 80px 24px;
  text-align: center;
  color: #fff;
}

.cta-banner h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 16px;
}

.cta-banner p {
  font-size: 1.15rem;
  opacity: 0.85;
  max-width: 600px;
  margin: 0 auto 36px;
}

/* ---------- Testimonials ---------- */
.testimonials {
  padding: 100px 24px;
  background: var(--warm-gray);
}

.testimonial-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.testimonial-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  border: 1px solid #E2E8F0;
}

.testimonial-stars {
  color: var(--sand-dark);
  font-size: 1rem;
  margin-bottom: 16px;
}

.testimonial-text {
  color: var(--charcoal);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sky), var(--ocean));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--slate);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--charcoal);
  color: #CBD5E1;
  padding: 60px 24px 30px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 300px;
}

.footer h4 {
  font-family: 'Inter', sans-serif;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer ul {
  list-style: none;
}

.footer li {
  margin-bottom: 10px;
}

.footer a {
  color: #94A3B8;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer a:hover {
  color: #fff;
}

.footer-bottom {
  max-width: 1280px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid #334155;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

/* ---------- Forms ---------- */
.form-section {
  padding: 100px 24px;
  background: var(--warm-white);
}

.form-container {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border-radius: 20px;
  padding: 48px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.06);
  border: 1px solid #E2E8F0;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--charcoal);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #E2E8F0;
  border-radius: 10px;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s;
  background: #FAFAFA;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--ocean);
  background: #fff;
}

.form-submit {
  width: 100%;
  padding: 16px;
  background: var(--sunset);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.form-submit:hover {
  background: #EA580C;
  transform: translateY(-2px);
}

/* ---------- Inner page hero ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--ocean) 0%, var(--ocean-light) 100%);
  padding: 140px 24px 80px;
  text-align: center;
  color: #fff;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 1.15rem;
  opacity: 0.85;
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- For Lenders section ---------- */
.lender-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.lender-benefits {
  list-style: none;
}

.lender-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
  font-size: 1rem;
  color: var(--charcoal);
  line-height: 1.6;
}

.lender-check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--palm);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 2px;
}

/* ---------- About ---------- */
.about-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 24px;
}

.about-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--slate);
  margin-bottom: 24px;
}

.about-content p:first-of-type::first-letter {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  float: left;
  line-height: 1;
  margin-right: 12px;
  color: var(--ocean);
  font-weight: 800;
}

/* ---------- Utility ---------- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-center { text-align: center; }

.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }

/* ---------- Animations ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Mobile Responsive ---------- */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 100px;
  }

  .hero-card {
    display: none;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .steps {
    grid-template-columns: 1fr;
    max-width: 500px;
  }

  .steps .step::after {
    display: none;
  }

  .listings-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .value-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .lender-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 110px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-sub {
    font-size: 1.05rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }

  .listings-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .form-container {
    padding: 28px 20px;
  }

  .trust-inner {
    flex-direction: column;
    gap: 16px;
  }
}
