/*
Theme Name: John Easy Sell NJ
Theme URI: https://easysellnewjersey.com
Author: Easy Sell NJ
Description: Custom classic WordPress theme for Easy Sell NJ – cash home buyer in New Jersey.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: john-ezsellnj
*/

/* ===========================================================
   BASE VARIABLES & RESET
   =========================================================== */
:root {
  --page-bg: #f4f7fb;
  --charcoal: #14264d;
  --charcoal-light: #1f3568;
  --silver: #eaf0f8;
  --silver-soft: #d9e2ef;
  --white: #ffffff;
  --text-dark: #14264d;
  --text-mid: #4a5772;
  --accent: #ed7a2e;
  --accent-dark: #d2641a;
  --border: #cfd8e6;
  --navy: #14264d;
  --navy-light: #1f3568;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--page-bg);
  color: var(--text-dark);
  line-height: 1.6;
}

a {
  color: var(--accent-dark);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* ===========================================================
   HEADER
   =========================================================== */
header {
  background: #ffffff;
  border-bottom: 3px solid var(--accent);
  box-shadow: 0 2px 8px rgba(20,38,77,0.08);
  padding: 10px 20px;
}
.header-inner {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo img {
  height: 60px;
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 14px;
}
nav a {
  color: var(--navy);
  font-weight: 600;
}
nav a:hover {
  color: var(--accent);
}

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 200;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 640px) {
  .hamburger { display: flex; }
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #ffffff;
    border-top: 2px solid var(--accent);
    flex-direction: column;
    gap: 0;
    z-index: 100;
    box-shadow: 0 6px 16px rgba(20,38,77,0.12);
  }
  nav.open { display: flex; }
  nav a {
    padding: 14px 24px;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
  }
}

/* ===========================================================
   HERO
   =========================================================== */
.hero {
  position: relative;
  width: 100%;
  padding: 110px 20px 80px;
  /* background-image set inline via PHP in front-page.php */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 38, 77, 0.65);
  z-index: 1;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
}
.hero-title {
  font-size: 34px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}
.hero-subtitle {
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 16px;
}
.hero-bullets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
@media (max-width: 900px) {
  .hero-bullets {
    grid-template-columns: 1fr;
  }
}
.hero-bullet {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.6);
  font-size: 13px;
  color: var(--navy);
}
.hero-bullet strong {
  display: block;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

/* ===========================================================
   FORM BOX
   =========================================================== */
.form-box {
  background: #ffffffee;
  padding: 22px 22px 24px;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.form-box h2 {
  font-size: 22px;
  margin-bottom: 4px;
  color: var(--charcoal);
}
.form-box h2 .accent-word {
  color: var(--accent);
}
.form-box p {
  font-size: 13px;
  color: var(--text-mid);
  margin-bottom: 14px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}
.form-group {
  margin-top: 10px;
  width: 100%;
}
label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
  display: block;
}
.required {
  color: #d43b3b;
  margin-left: 3px;
}
input,
select,
textarea {
  width: 100%;
  padding: 9px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 14px;
  background: #ffffff;
  color: var(--text-dark);
}

/* SMS CONSENT */
.sms-consent {
  margin-top: 10px;
  padding: 6px 12px;
  color: var(--text-mid);
  display: flex;
  gap: 14px;
  align-items: center;
}
.sms-consent input[type="checkbox"] {
  flex-shrink: 0;
  width: 13px;
  height: 13px;
  margin-top: 0;
}
.sms-consent label {
  line-height: 1.4;
  font-size: 9px;
}

/* ===========================================================
   FAQ ACCORDION
   =========================================================== */
.faq-list { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.faq-item { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.faq-q {
  width: 100%; background: #fff; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px; font-size: 14px; font-weight: 600; color: var(--navy);
  text-align: left; gap: 10px; transition: background 0.2s;
}
.faq-q:hover { background: #f0f4fa; }
.faq-q.open { background: var(--navy); color: #fff; }
.faq-icon { font-size: 18px; font-weight: 400; flex-shrink: 0; transition: transform 0.25s; }
.faq-q.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease;
  font-size: 13px; color: var(--text-mid); line-height: 1.6;
  padding: 0 18px; background: #fafbfd;
}
.faq-a.open { max-height: 200px; padding: 12px 18px; }

.error-text {
  display: none;
  margin-top: 4px;
  color: #d43b3b;
  font-size: 11px;
}
.error-visible {
  display: block;
}

/* ===========================================================
   BUTTONS
   =========================================================== */
.btn-primary {
  margin-top: 14px;
  width: 100%;
  padding: 11px;
  border-radius: 9px;
  border: none;
  background: var(--accent);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.1s ease;
  box-shadow: 0 8px 16px rgba(237,122,46,0.35);
}
.btn-primary:hover:not(:disabled) {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(237,122,46,0.45);
}
.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
.form-note {
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-mid);
  text-align: center;
}

/* ===========================================================
   GENERIC SECTIONS
   =========================================================== */
section.content-section {
  padding: 40px 20px;
}
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.section-title {
  text-align: center;
  font-size: 24px;
  margin-bottom: 6px;
  color: var(--charcoal);
}
.section-subtitle {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 24px;
  font-size: 14px;
  color: var(--text-mid);
}

/* STEPS */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 900px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}
.step-card {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 16px 16px 14px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.04);
}
.step-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-dark);
  margin-bottom: 4px;
}
.step-card h3 {
  font-size: 16px;
  margin-bottom: 6px;
}
.step-card p {
  font-size: 13px;
  color: var(--text-mid);
}

/* VALUE GRID */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  align-items: flex-start;
  text-align: center;
  margin-top: 34px;
}
@media (max-width: 900px) {
  .value-grid {
    grid-template-columns: 1fr;
  }
}
@keyframes floatUp {
  0%   { transform: translateY(0px); }
  50%  { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}
.value-item img {
  height: 120px;
  margin-bottom: 10px;
  animation: floatUp 3s ease-in-out infinite;
  transition: transform 0.2s ease, filter 0.2s ease;
  cursor: pointer;
}
.value-item:nth-child(2) img { animation-delay: 0.5s; }
.value-item:nth-child(3) img { animation-delay: 1s; }
.value-item img:hover {
  animation: none;
  transform: scale(1.15) rotate(-3deg);
  filter: drop-shadow(0 8px 16px rgba(237,122,46,0.5));
}
.value-item h3 {
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--charcoal);
}
.value-item p {
  font-size: 13px;
  color: var(--text-mid);
}
.value-cta {
  text-align: center;
  margin-top: 26px;
}
.value-cta button {
  padding: 11px 30px;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(237,122,46,0.35);
}
.value-cta button:hover {
  background: var(--accent-dark);
}

/* COMPARE */
.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 10px;
}
@media (max-width: 900px) {
  .compare-grid {
    grid-template-columns: 1fr;
  }
}
.compare-card {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 18px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.04);
  font-size: 13px;
  color: var(--text-mid);
}
.compare-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--charcoal);
}
.compare-card h3 span {
  color: var(--accent-dark);
}
.compare-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.compare-card li {
  margin-bottom: 6px;
  padding-left: 14px;
  position: relative;
}
.compare-card li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-dark);
}

.full-width-cta {
  text-align: center;
  margin-top: 24px;
}
.full-width-cta button {
  padding: 11px 28px;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
  font-size: 14px;
  box-shadow: 0 8px 18px rgba(237,122,46,0.35);
}
.full-width-cta button:hover {
  background: var(--accent-dark);
}

/* TRUSTED LAYOUT */
.trusted-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: center;
}
@media (max-width: 900px) {
  .trusted-layout {
    grid-template-columns: 1fr;
  }
}
.trusted-layout h2 {
  font-size: 22px;
  margin-bottom: 8px;
  color: var(--charcoal);
}
.trusted-layout p {
  font-size: 14px;
  color: var(--text-mid);
  margin-bottom: 10px;
}
.img-placeholder {
  border-radius: 14px;
  height: 220px;
  background: repeating-linear-gradient(
    135deg,
    #e5e5e5,
    #e5e5e5 6px,
    #f5f5f5 6px,
    #f5f5f5 12px
  );
  border: 1px dashed #bdbdbd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #777777;
}
.img-placeholder.small {
  height: 180px;
}
.img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

/* PROPERTY TYPES (WHITE BAND) */
.property-types-section {
  background: #ffffff;
  color: var(--navy);
  padding: 50px 20px;
}
.property-types-section .property-copy h2,
.property-types-section .property-copy p,
.property-types-section .property-icon span {
  color: var(--navy);
}
.property-types-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 900px) {
  .property-types-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
}
.property-icons-row {
  display: flex;
  align-items: center;
  justify-content: center;
}
.property-icons-row img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  display: block;
}
.property-icon img {
  height: 70%;
  margin-bottom: 10px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.property-icon span {
  display: block;
  font-size: 14px;
  font-weight: 500;
}
.property-copy h2 {
  font-size: 24px;
  margin-bottom: 10px;
}
.property-copy p {
  font-size: 14px;
  line-height: 1.7;
}

/* REASONS GRID */
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}
@media (max-width: 900px) {
  .reasons-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .reasons-grid {
    grid-template-columns: 1fr;
  }
}
.reason-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px 22px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 14px rgba(20,38,77,0.07);
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.reason-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(20,38,77,0.13);
}
.reason-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.reason-card h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.reason-card p {
  font-size: 13px;
  color: var(--text-mid);
  margin: 0;
}

/* OPTIONS */
.options-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 16px;
}
@media (max-width: 900px) {
  .options-grid {
    grid-template-columns: 1fr;
  }
}
.option-card {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 16px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.04);
  font-size: 13px;
  color: var(--text-mid);
}
.option-card h3 {
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--charcoal);
}

/* TWO-COL LAYOUT (FAQ + Secondary Form) */
.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  margin-top: 28px;
  align-items: flex-start;
}
@media (max-width: 900px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}
.secondary-form {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 18px 18px 20px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}
.secondary-form h3 {
  font-size: 18px;
  margin-bottom: 6px;
  color: var(--charcoal);
}

/* ===========================================================
   FOOTER
   =========================================================== */
footer {
  margin-top: 40px;
  padding: 18px 20px;
  background: var(--white);
  border-top: 1px solid var(--border);
  color: var(--text-mid);
  font-size: 12px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ===========================================================
   TESTIMONIALS / MARQUEE
   =========================================================== */
@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-outer { overflow: hidden; cursor: default; }
.marquee-inner {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: marqueeScroll 28s linear infinite;
  padding: 8px 0 16px;
}
.marquee-inner:hover { animation-play-state: paused; }
.tcard {
  background: #ffffff;
  border: none;
  border-radius: 18px;
  padding: 28px 26px 24px;
  width: 320px;
  flex-shrink: 0;
  text-align: left;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tcard:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 48px rgba(0,0,0,0.4);
}
.tquote {
  font-size: 13.5px;
  color: #4a5772;
  line-height: 1.75;
  margin-bottom: 20px;
  font-style: italic;
}
.tauthor { display: flex; align-items: center; gap: 12px; }
.tavatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(20,38,77,0.3);
}
.tauthor strong { color: var(--navy); font-size: 14px; display: block; }
.tauthor span   { color: #9ca3af; font-size: 12px; }

/* ===========================================================
   LEGAL PAGES (.page-content)
   =========================================================== */
.page-content {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px 60px;
}
.page-content h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.last-updated {
  font-size: 13px;
  color: var(--text-mid);
  margin-bottom: 32px;
}
.page-content h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-top: 32px;
  margin-bottom: 10px;
  border-left: 4px solid var(--accent);
  padding-left: 12px;
}
.page-content p {
  font-size: 14px;
  color: var(--text-mid);
  margin-bottom: 12px;
}
.page-content ul {
  margin: 8px 0 12px 20px;
  font-size: 14px;
  color: var(--text-mid);
}
.page-content ul li { margin-bottom: 6px; }
.sms-clause {
  background: #fff8f2;
  border: 2px solid var(--accent);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 14px;
  color: var(--navy);
  font-weight: 600;
}
.sms-template {
  background: #f0f4ff;
  border: 2px solid var(--navy);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 14px;
  color: var(--navy);
  font-style: italic;
}
.required-statements {
  background: #fff8f2;
  border: 2px solid var(--accent);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 20px 0;
}
.required-statements ul {
  margin: 6px 0 0 16px;
}
.required-statements li {
  font-size: 14px;
  color: var(--navy);
  font-weight: 500;
  margin-bottom: 8px;
}
