/*
Theme Name: Easy Home Cash LLC
Theme URI: https://easyhomecash.com
Author: Dustin
Author URI: https://easyhomecash.com
Description: A professional custom theme for Easy Home Cash LLC — We Buy Houses Fast for Cash.
Version: 1.8
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: easyhomecash
*/


/* ===== RESET & GLOBAL ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; scroll-behavior: smooth; }
body {
  font-family: 'Poppins', sans-serif;
  color: #1f2937;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { width: 90%; max-width: 1100px; margin: 0 auto; }

:root {
  --primary: #0078d7;
  --accent: #005fa3;
  --muted: #6b7280;
  --light-gray: #f9f9f9;
  --dark: #111827;
  --white: #fff;
}

/* ===== HEADER ===== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  transition: all 0.3s ease;
  margin-bottom: 0;
  padding-bottom: 0;
}
header.scrolled { box-shadow: 0 6px 18px rgba(0,0,0,0.08); }

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.logo img { height: 50px; transition: transform 0.3s ease; }
.logo img:hover { transform: scale(1.08); }
nav ul { display: flex; list-style: none; }
nav ul li { margin: 0 14px; font-weight: 600; }
nav ul li a:hover { color: var(--primary); }

.cta {
  background: var(--primary);
  color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
  transition: all 0.2s ease;
}
.cta:hover { background: var(--accent); transform: translateY(-2px); }

/* ===== HERO ===== */
.hero {
  background: url('https://easyhomecash.com/wp-content/uploads/2025/10/modernrepaired.png') center/cover no-repeat;
  height: 65vh; /* increased from 55vh to 65vh */
  min-height: 480px; /* slightly taller for larger screens */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  position: relative;
  margin: 0;
  padding: 0;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}
.hero-content { position: relative; z-index: 2; max-width: 800px; }
.hero h1 { font-size: 2.8rem; margin-bottom: 16px; font-weight: 700; }
.hero p { font-size: 1.2rem; margin-bottom: 24px; }
.hero-cta {
  font-size: 1.2rem;
  padding: 14px 32px;
  background: #00b300;
  color: #fff;
  font-weight: 700;
  border-radius: 50px;
  transition: all 0.3s ease;
  display: inline-block;
  margin-top: 10px;
}
.hero-cta:hover { background: #009900; transform: scale(1.05); }


/* ===== SECTION BASE ===== */
section {
  padding: 55px 20px;
  position: relative;
}
main > section:first-of-type { margin-top: 0; padding-top: 60px; }
section + section::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 4px;
  background: var(--accent);
  opacity: 0.2;
  margin-top: -15px;
}
section h2 {
  margin-bottom: 30px;
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
}

/* ===== ABOUT ===== */
.about-container {
  display: flex;
  align-items: stretch; /* makes text + image the same height */
  justify-content: space-between;
  gap: 40px;
  flex-wrap: nowrap; /* keeps image on the right */
}

.about-text {
  flex: 1 1 55%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-text p {
  margin-bottom: 15px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.about-image {
  flex: 1 1 45%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-image img {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: cover; /* fills the available height cleanly */
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Responsive fix for smaller screens */
@media (max-width: 900px) {
  .about-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about-image {
    width: 100%;
    margin-top: 25px;
  }

  .about-image img {
    width: 100%;
    height: auto;
    max-width: 420px;
  }
}


/* ===== BENEFITS ===== */
.benefits { background: #f4f6f8; text-align: center; }
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
}
.benefit-item {
  background: #fff;
  padding: 30px 20px;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}
.benefit-item:hover { transform: translateY(-6px); box-shadow: 0 10px 28px rgba(0,0,0,0.1); }

/* ===== QUOTE FORM ===== */
.quote-form {
  background: #fff;
  border-top: 2px solid #e5e7eb;
  border-bottom: 2px solid #e5e7eb;
  text-align: center;
}
.form-box { display: flex; justify-content: center; }
.form-inner {
  width: 100%; max-width: 600px;
  background: #fff;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.1);
}
.form-inner input,
.form-inner textarea {
  width: 100%; padding: 16px; border-radius: 12px;
  border: 1px solid #d1d5db; margin-bottom: 20px;
  font-size: 1rem; background: #f9fafb;
  transition: all 0.25s ease;
}
.form-inner input:focus,
.form-inner textarea:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0,120,215,0.2);
  outline: none;
}
.form-inner input[type="submit"] {
  background: var(--primary);
  color: #fff; font-weight: 600;
  border: none; padding: 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
}
.form-inner input[type="submit"]:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

/* ===== PROCESS ===== */
.process { background: #f9fafb; text-align: center; }
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}
.step {
  background: #fff;
  padding: 40px 30px;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
}
.step:hover { transform: translateY(-6px); }

/* ===== TESTIMONIALS ===== */
.testimonials {
  background: #ffffff; /* clean white for contrast below About */
  text-align: center;
  overflow: hidden;
  padding: 100px 0 60px; /* top spacing creates clear separation */
  border-top: 2px solid rgba(0,0,0,0.05);
}

.testi-track {
  display: flex;
  transition: transform 0.6s ease-in-out;
  will-change: transform;
}

.testi-item {
  flex: 0 0 33.3333%;
  background: #fff;
  margin: 0 12px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  padding: 30px 25px;
  text-align: left;
  min-width: 300px;
  box-sizing: border-box;
}

.testi-item p {
  color: #555;
  margin-bottom: 15px;
  font-style: italic;
}

.testi-item .author {
  font-weight: 700;
  color: var(--primary);
}

@media (max-width: 900px) {
  .testi-item {
    flex: 0 0 100%;
    margin: 0 auto;
  }
}

/* === FIX: Add separation between About and Testimonials === */
.about {
  background: #f9fafb;
  position: relative;
  padding: 70px 20px;
}

.about::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--accent);
  opacity: 0.15;
  border-radius: 2px;
}

.about,
.testimonials {
  scroll-margin-top: 80px; /* helps when navigating via anchor links */
}

/* Ensure About image + text stay nicely aligned */
.about-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  flex-wrap: nowrap;
}

.about-text {
  flex: 1 1 55%;
}

.about-image {
  flex: 1 1 45%;
  display: flex;
  justify-content: center;
}

.about-image img {
  width: 100%;
  max-width: 420px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* Responsive fix for smaller screens */
@media (max-width: 900px) {
  .about-container {
    flex-direction: column;
    text-align: left;
    gap: 30px;
  }

  .about-image img {
    width: 100%;
    max-width: 100%;
  }
}


/* ===== FAQ ===== */
.faq { background: #f4f6f8; }
.faq-item {
  max-width: 800px;
  margin: 0 auto 30px;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 15px;
}
.faq-item h3 {
  font-size: 1.1rem;
  cursor: pointer;
  position: relative;
}
.faq-item h3::after {
  content: "▼";
  position: absolute;
  right: 0;
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}
.faq-item.active h3::after { transform: rotate(180deg); }
.faq-item p { display: none; color: var(--muted); }
.faq-item.active p { display: block; }

/* ===== TESTIMONIALS FIX ===== */
.testimonials {
  background: #fff;
  text-align: center;
  overflow: hidden;
  padding: 60px 0;
}

.testi-track {
  display: flex;
  transition: transform 0.6s ease-in-out;
  will-change: transform;
}

.testi-item {
  flex: 0 0 33.3333%;
  background: #fff;
  margin: 0 12px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  padding: 30px 25px;
  text-align: left;
  min-width: 300px;
  box-sizing: border-box;
}

.testi-item p {
  color: #555;
  margin-bottom: 15px;
  font-style: italic;
}

.testi-item .author {
  font-weight: 700;
  color: var(--primary);
}

@media (max-width: 900px) {
  .testi-item {
    flex: 0 0 100%;
    margin: 0 auto;
  }
}

/* ===== FAQ (FIXED ALIGNMENT) ===== */
.faq {
  background: #f4f6f8;
  text-align: left;
  padding: 60px 20px;
}

.faq-item {
  max-width: 800px;
  margin: 0 auto 25px;
  border-bottom: 1px solid #e5e7eb;
  padding: 15px 0;
}
/* ===== FIX: Center FAQ Title ===== */
.faq h2 {
  text-align: center;
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 30px;
  color: var(--dark);
}

.faq-item h3 {
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--dark);
  padding-right: 10px;
}

.faq-item h3::after {
  content: "▼";
  font-size: 0.8rem;
  color: var(--primary);
  margin-left: 10px;
  transition: transform 0.3s ease;
}

.faq-item.active h3::after {
  transform: rotate(180deg);
}

.faq-item p {
  display: none;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.5;
}

.faq-item.active p {
  display: block;
}


/* ===== FINAL CTA (PARALLAX + 3D SCROLL EFFECT) ===== */
.final-cta {
  background: url('https://easyhomecash.com/wp-content/uploads/2025/10/country.png') center/cover no-repeat fixed;
  color: var(--white);
  text-align: center;
  padding: 50px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  position: relative;
  overflow: hidden;
  min-height: 400px;
}

.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55); /* dark overlay for readability */
  z-index: 1;
}

.final-cta h2,
.final-cta p,
.final-cta .cta {
  position: relative;
  z-index: 2;
}

.final-cta h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 5px;
  text-align: center;
  width: 100%;
}

.final-cta p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 15px;
  text-align: center;
  line-height: 1.5;
}

.final-cta .cta {
  background: var(--white);
  color: var(--primary);
  padding: 12px 30px;
  border-radius: 999px;
  font-weight: 700;
  transition: all 0.3s ease;
  display: inline-block;
}

.final-cta .cta:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .final-cta {
    padding: 40px 15px;
    gap: 15px;
  }
  .final-cta h2 {
    font-size: 1.6rem;
  }
  .final-cta p {
    font-size: 1rem;
    max-width: 90%;
  }
}


/* ===== FOOTER ===== */
footer {
  background: #111;
  color: #eee;
  padding: 60px 0 30px;
  font-family: Arial, sans-serif;
}
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.footer-columns {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}
.footer-col { flex: 1 1 22%; min-width: 200px; }
.footer-col h3, .footer-col h4 {
  color: #fbbf24;
  margin-bottom: 15px;
  font-size: 1.2rem;
}
.footer-col p { color: #ccc; line-height: 1.6; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  color: #eee;
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-col ul li a:hover { color: #fbbf24; }

.footer-bottom {
  border-top: 1px solid #333;
  margin-top: 40px;
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  font-size: 0.9rem;
  color: #aaa;
}
.footer-bottom a {
  color: #fbbf24;
  text-decoration: none;
}
.footer-bottom a:hover { text-decoration: underline; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-col { flex: 1 1 45%; }
}
@media (max-width: 600px) {
  .footer-col { flex: 1 1 100%; text-align: center; }
  .footer-bottom { flex-direction: column; gap: 10px; }
}

/* ===== MOBILE MENU (FIXED VERSION) ===== */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 18px;
  cursor: pointer;
  z-index: 1001;
}
.menu-toggle span {
  height: 3px;
  width: 100%;
  background: var(--dark);
  border-radius: 3px;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  nav ul {
    position: absolute;
    top: 100%; /* sits directly below the header */
    left: 0;
    background: var(--white);
    flex-direction: column;
    align-items: center;
    width: 100%;
    display: none;
    padding: 20px 0;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
    z-index: 999;
  }

  nav.active ul {
    display: flex;
    animation: fadeDown 0.3s ease;
  }

  @keyframes fadeDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  nav ul li {
    margin: 12px 0;
  }

  nav ul li a {
    font-size: 1rem;
  }

  nav ul li a.cta {
    padding: 10px 20px;
  }

  .menu-toggle {
    display: flex;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  .logo img {
    height: 42px;
  }
}
/* ===== TESTIMONIAL PAGE STYLING ===== */
.testimonials-section {
  background: #fafafa;
  padding: 80px 20px;
  text-align: center;
}

.testimonials-section .section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #222;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 30px 25px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: "“";
  font-size: 70px;
  color: #fbbf24;
  position: absolute;
  top: -15px;
  left: 20px;
  opacity: 0.1;
  font-weight: 900;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

.testimonial-card .stars {
  color: #fbbf24;
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.testimonial-card p {
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
  margin-bottom: 1.2rem;
  font-style: italic;
}

.testimonial-card .author {
  font-weight: 700;
  color: #222;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .testimonials-section {
    padding: 60px 10px;
  }

  .testimonial-card {
    padding: 25px 18px;
  }

  .testimonials-section .section-title {
    font-size: 2rem;
  }
}
