:root {
  --primary-red: #dc2626;
  --secondary-red: #ef4444;
  --dark-red: #7f1d1d;
  --accent-yellow: #fbbf24;
  --yellow-hover: #f59e0b;
  --success-green: #10b981;
  --text-dark: #1f2937;
  --text-medium: #374151;
  --text-light: #6b7280;
  --background-light: #f8fafc;
  --background-gradient: #e2e8f0;
  --text-medium: #ffffff;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 20px rgba(0, 0, 0, 0.06);
  --shadow-xl: 0 15px 35px rgba(0, 0, 0, 0.12);
  --shadow-xxl: 0 20px 45px rgba(0, 0, 0, 0.15);
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 15px;
  --border-radius-xl: 20px;
  --border-radius-2xl: 25px;
  --border-radius-full: 60px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}
.container,
.hero {
  position: relative;
}
.card,
.hero {
  overflow: hidden;
}
.card h4,
.section h2,
.section h3 {
  color: var(--primary-red);
}
.foreclosure-help::before,
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
}

.card,
.emergency-cta {
  transition: all var(--transition-normal);
  cursor: pointer;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.container {
  max-width: min(1200px, 95vw);
  margin: 0 auto;
  padding: 0 clamp(15px, 3vw, 20px);
  z-index: 2;
}
.hero {
  background: linear-gradient(
        135deg,
        rgba(101, 6, 6, 0.95),
        rgba(79, 1, 1, 0.9)
      )
      fixed,
    url("../../images/house4.webp") center/cover fixed;
  color: var(--text-medium);
  padding: clamp(60px, 12vh, 120px) 0;
  min-height: 70vh;
  display: flex;
  align-items: center;
  text-align: center;
}
.hero::before {
  left: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 0,
    rgba(0, 0, 0, 0.4) 100%
  );
  z-index: 1;
}
.hero h1 {
  font-size: clamp(2.5rem, 7vw, 4rem);
  line-height: 1.1;
  margin: 0 auto clamp(15px, 3vh, 20px);
  max-width: 900px;
  font-weight: 800;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
  letter-spacing: -1px;
  animation: 1s fadeInUp;
}
.section h2,
.subtitle,
.tagline {
  margin-left: auto;
  margin-right: auto;
}
.intro-text,
.section h2,
.subtitle,
.tagline {
  max-width: 800px;
}
.subtitle {
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  margin-bottom: clamp(12px, 2.5vh, 15px);
  font-weight: 300;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: 1s 0.2s both fadeInUp;
}
.emergency-cta,
.section h2 {
  font-weight: 700;
  text-align: center;
}
.tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  margin-bottom: clamp(40px, 6vh, 50px);
  opacity: 0.95;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
  animation: 1s 0.4s both fadeInUp;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.emergency-cta {
  background: linear-gradient(
    135deg,
    var(--accent-yellow),
    var(--yellow-hover)
  );
  color: var(--text-dark);
  padding: clamp(18px, 3vh, 25px) clamp(35px, 6vw, 50px);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  text-decoration: none;
  border-radius: var(--border-radius-full);
  margin: 0 var(--spacing-md) var(--spacing-sm);
  box-shadow: 0 15px 35px rgba(251, 191, 36, 0.4);
  border: 3px solid rgba(255, 255, 255, 0.3);
  animation: 2s infinite pulse;
  font-family: inherit;
  min-width: clamp(200px, 30vw, 280px);
  display: inline-block;
}
.emergency-cta:hover {
  background: linear-gradient(135deg, var(--yellow-hover), #d97706);
  transform: translateY(-3px);
  box-shadow: 0 20px 45px rgba(251, 191, 36, 0.5);
}
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}
.section {
  padding: clamp(50px, 10vh, 80px) 0;
}
.section h2 {
  font-size: clamp(2rem, 5vw, 2.5rem);
  margin-bottom: clamp(25px, 4vh, 30px);
}
.section h3 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  margin-bottom: var(--spacing-md);
  font-weight: 700;
}
.card h4,
.step-number {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 700;
}
.bg-gray {
  background: linear-gradient(
    135deg,
    var(--background-light) 0,
    var(--background-gradient) 100%
  );
}
.bg-red {
  background: linear-gradient(135deg, var(--primary-red), var(--secondary-red));
}
.bg-urgent {
  background: linear-gradient(135deg, var(--dark-red), var(--primary-red));
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(25px, 5vw, 40px);
  margin: clamp(40px, 6vh, 50px) 0;
}
.card,
.card-image-container {
  display: flex;
  position: relative;
}
.card h4,
.card-image-container {
  margin-bottom: var(--spacing-md);
}
.card {
  background: var(--text-medium);
  padding: clamp(30px, 5vh, 40px) clamp(25px, 4vw, 30px);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(220, 38, 38, 0.1);
  min-height: clamp(280px, 35vh, 320px);
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
}
.card-image-container,
.card-image-container img {
  width: 100%;
  border-radius: var(--border-radius-md);
}
.card::before,
.situation-card::before,
.timeline-step::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(220, 38, 38, 0.05),
    transparent
  );
  transition: left var(--transition-slow);
}
.card:hover::before,
.faq-item:hover::before,
.situation-card:hover::before,
.testimonial:hover::before,
.timeline-step:hover::before {
  left: 100%;
}
.card:hover,
.situation-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xxl);
}
.card h4 {
  line-height: 1.3;
}
.situation-card h4,
.timeline-step h4,
.timeline-step p {
  margin-bottom: var(--spacing-sm);
}
.card p {
  color: black;
  font-size: clamp(0.9rem, 2vw, 1rem);
  line-height: 1.6;
  flex-grow: 1;
}
.card-image-container {
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
}
.situation-card,
.timeline-step {
  background: var(--text-medium);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-normal);
  cursor: pointer;
  overflow: hidden;
  position: relative;
}
.card-image-container img {
  height: auto;
  -o-object-fit: contain;
  object-fit: contain;
  transition: all var(--transition-normal);
}
.emergency-situations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: clamp(20px, 4vw, 25px);
  margin: clamp(30px, 6vh, 40px) 0;
}
.form-grid,
.timeline-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
}
.situation-card {
  padding: clamp(25px, 4vh, 30px) clamp(20px, 3vw, 25px);
  border-left: 5px solid var(--primary-red);
  min-height: clamp(140px, 20vh, 160px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.situation-card h4 {
  color: var(--primary-red);
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  font-weight: 700;
  line-height: 1.3;
}
.situation-card p {
  color: black;
  font-size: clamp(0.9rem, 2vw, 1rem);
  line-height: 1.5;
  flex-grow: 1;
}
.timeline {
  padding: clamp(40px, 8vh, 50px) 0;
}
.timeline-grid {
  display: grid;
  gap: clamp(20px, 4vw, 30px);
  margin: clamp(30px, 5vh, 40px) 0;
}
.timeline-step {
  padding: clamp(25px, 4vh, 30px);
  min-height: clamp(200px, 25vh, 220px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}
.testimonial:hover,
.timeline-step:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}
.step-number {
  background: var(--primary-red);
  color: var(--text-medium);
  width: clamp(45px, 8vw, 50px);
  height: clamp(45px, 8vw, 50px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-md);
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}
.timeline-step h4 {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-dark);
  font-weight: 700;
}
.timeline-step p {
  color: black;
  font-size: clamp(0.9rem, 2vw, 1rem);
  line-height: 1.4;
  flex-grow: 1;
}
.timeline-step strong {
  color: var(--primary-red);
  font-size: clamp(0.9rem, 2vw, 1rem);
  font-weight: 700;
}
.foreclosure-help {
  background: linear-gradient(135deg, var(--dark-red), var(--primary-red));
  padding: clamp(50px, 8vh, 60px) 0;
  position: relative;
  color: var(--text-medium);
}
.faq-item,
.testimonial {
  background: var(--text-medium);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: all var(--transition-normal);
  cursor: pointer;
}
.foreclosure-help::before {
  left: 0;
  background: url("../../images/ForeclosureNotice.webp") center/cover;
  opacity: 0.1;
  z-index: 0;
}
.faq-item::before,
.testimonial::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  height: 100%;
  transition: left var(--transition-slow);
  width: 100%;
}
.foreclosure-help h2,
.foreclosure-help h3 {
  color: var(--text-medium) !important;
}
.foreclosure-help ul {
  list-style: none;
  padding: 0;
}
.foreclosure-help ul li {
  padding: var(--spacing-xs) 0;
  position: relative;
  padding-left: var(--spacing-md);
}
.foreclosure-help ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-yellow);
  font-weight: 700;
}
.testimonial {
  padding: clamp(25px, 4vh, 30px);
  margin: clamp(15px, 3vh, 20px) 0;
  border-left: 5px solid var(--success-green);
  position: relative;
}
.faq-answer,
.faq-question {
  padding: clamp(20px, 3vh, 25px);
  position: relative;
  z-index: 2;
}
.testimonial::before {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(16, 185, 129, 0.05),
    transparent
  );
}
.faq-item {
  margin: clamp(20px, 4vh, 25px) 0;
  position: relative;
}
.faq-item::before {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(220, 38, 38, 0.05),
    transparent
  );
  z-index: 1;
}
.faq-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}
.faq-question {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  font-weight: 700;
  color: var(--primary-red);
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-answer,
.form-group label {
  font-size: clamp(0.9rem, 2vw, 1rem);
}
.faq-answer {
  line-height: 1.8;
  color: black;
}

.foreclosure-container,
.urgent-container {
  position: relative;
  z-index: 1;
}
.form-group {
  margin-bottom: clamp(15px, 3vh, 20px);
}
.form-group label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 700;
  text-align: left;
}
.form-grid {
  display: grid;
  gap: clamp(15px, 3vw, 20px);
}
.emergency-guarantee {
  background: #fef3c7;
  color: #92400e;
  padding: var(--spacing-md);
  border-radius: var(--border-radius-md);
  margin-top: var(--spacing-md);
  text-align: center;
}
.timeline-intro,
.timeline-title {
  color: #7c2d12;
  text-align: center;
}
.intro-text {
  font-size: 1.2rem;
  text-align: center;
  margin: 0 auto 40px;
}
.section-intro {
  text-align: center;
  margin-bottom: 40px;
  font-size: 1.1rem;
}
.timeline-title {
  margin-bottom: 30px;
}
.timeline-intro {
  margin-bottom: 40px;
  font-size: 1.1rem;
}
.timeline-duration {
  color: #dc2626;
}
.foreclosure-title {
  color: #fff;
  text-align: center;
  margin-bottom: 30px;
}
.foreclosure-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.emergency-form-title,
.foreclosure-subtitle {
  color: #fff;
  margin-bottom: 20px;
}
.foreclosure-help-list,
.foreclosure-timeline-list {
  line-height: 1.8;
  font-size: 1.1rem;
}
.foreclosure-guarantee {
  margin-top: 20px;
  font-size: 1.1rem;
}
.testimonial-quote {
  font-style: italic;
  margin-bottom: 15px;
}
.testimonial-author {
  display: block;
  margin-top: 15px;
}
.emergency-form-section {
  text-align: center;
}
.emergency-form-subtitle {
  color: #fff;
  margin-bottom: 40px;
  font-size: 1.2rem;
}
.emergency-form-container {
  max-width: 650px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.98);
  padding: 50px 40px;
  border-radius: 25px;
  color: #333;
}
.emergency-form-header {
  background: #dc2626;
  color: #fff;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 30px;
  text-align: center;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 18px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 16px;
  font-family: inherit;
  transition: 0.3s;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: 0;
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}
.form-input:hover,
.form-select:hover,
.form-textarea:hover {
  border-color: #d1d5db;
}
.form-submit-btn {
  width: 100%;
  margin: 20px 0;
}
.emergency-contact-info {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
  color: #666;
}
.emergency-phone-link {
  color: #dc2626;
  font-size: 1.2rem;
  text-decoration: none;
  font-weight: 700;
}
.service-areas-footer {
  text-align: center;
  font-size: 1.1rem;
  margin-top: 30px;
}
.priority-phone-link {
  color: #dc2626;
  font-weight: 700;
  text-decoration: none;
}
.faq-container {
  max-width: 900px;
  margin: 0 auto;
}
.urgent-container {
  text-align: center;
}
.urgent-title {
  color: #fff !important;
  margin-bottom: 20px;
}
.urgent-subtitle {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #fff;
}
.urgent-availability {
  margin-top: 30px;
  font-size: 1.1rem;
  color: #fff;
}
.urgent-navigation {
  margin-top: 20px;
  color: #fff;
}
.nav-link {
  color: #fff;
  text-decoration: none;
}
.areas-grid {
  display: flex;
  flex-flow: column wrap;
  align-items: center;
  flex: 1 1 100%;
  justify-content: center;
  gap: 22.5px;
}
.areas-child-grid {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  flex: 1 1 100%;
  justify-content: center;
  gap: 22.5px;
}
.areas-grid .service-area-link {
  display: block;
  background: #fff;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: #dc2626;
  font-weight: 700;
  text-align: center;
  transition: 0.3s;
  border: 1px solid rgba(220, 38, 38, 0.1);
}
.areas-grid .service-area-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  background: #fef2f2;
  border-color: #dc2626;
}
.card:focus,
.emergency-cta:focus,
.faq-item:focus,
.situation-card:focus,
.testimonial:focus,
.timeline-step:focus {
  outline: 3px solid var(--primary-red);
  outline-offset: 2px;
}
@media (max-width: 1024px) {
  .hero {
    background-attachment: scroll;
  }
}
@media (max-width: 768px) {
  .hero {
    min-height: 60vh;
    padding: clamp(50px, 10vh, 80px) 0;
  }
  .hero h1 {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }
  .subtitle {
    font-size: clamp(1.2rem, 5vw, 1.8rem);
  }
  .tagline {
    font-size: clamp(1rem, 3vw, 1.2rem);
  }
  .emergency-cta {
    padding: clamp(15px, 3vh, 20px) clamp(25px, 5vw, 35px);
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    display: block;
    width: 90%;
    margin: var(--spacing-md) auto;
    max-width: 300px;
  }
  .emergency-situations,
  .grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
  .grid {
    gap: var(--spacing-lg);
  }
  .timeline-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  }
  .foreclosure-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .foreclosure-grid {
    gap: 30px;
  }
  .emergency-form-container {
    padding: 30px 20px;
    margin: 0 10px;
  }
  .areas-child-grid {
    flex-direction: column;
    gap: 15px;
  }
}
@media (max-width: 480px) {
  .hero {
    padding: clamp(40px, 8vh, 60px) 0;
    min-height: 55vh;
  }
  .container {
    padding: 0 clamp(10px, 2vw, 15px);
  }
  .timeline-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  .emergency-form-subtitle,
  .intro-text {
    font-size: 1.1rem;
    margin-bottom: 30px;
  }
  .section-intro,
  .timeline-intro {
    font-size: 1rem;
    margin-bottom: 30px;
  }
  .emergency-form-container {
    padding: 25px 15px;
    border-radius: 15px;
  }
  .form-input,
  .form-select,
  .form-textarea {
    padding: 15px;
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
  }
  .card::before,
  .faq-item::before,
  .hero::before,
  .situation-card::before,
  .testimonial::before,
  .timeline-step::before {
    display: none;
  }
  .emergency-cta {
    animation: none !important;
  }
}
@media print {
  .bg-red,
  .bg-urgent,
  .hero {
    background: var(--primary-red) !important;
    color: #fff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .card,
  .faq-item,
  .situation-card,
  .testimonial,
  .timeline-step {
    -moz-column-break-inside: avoid;
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }
  .timeline {
    background: #fde047 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
@media (prefers-contrast: high) {
  .card,
  .emergency-form-container,
  .faq-item,
  .situation-card,
  .testimonial,
  .timeline-step {
    border: 2px solid currentColor;
  }
  .emergency-cta,
  .hero,
  .step-number {
    border: 2px solid #fff;
  }
}
.emergency-form-title {
  color: white !important;
}
