/*
Theme Name: Ray Cash Offer
Author: JumpStart Scaling
Description: Custom responsive WordPress theme for Ray Walker's Central Florida cash offer seller site.
Version: 1.0.0
Requires PHP: 7.4
*/

:root {
  --red: #b80000;
  --red-dark: #850000;
  --ink: #111827;
  --text: #374151;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f6f7f9;
  --black: #050505;
  --white: #fff;
  --shadow: 0 22px 60px rgba(17, 24, 39, 0.10);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand img { width: min(320px, 62vw); max-height: 64px; }
.menu {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
  font-weight: 800;
}
.menu a { text-decoration: none; color: var(--ink); }
.menu a:hover { color: var(--red); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.78rem 1.1rem;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}
.btn-red { border-color: var(--red); background: var(--red); color: #fff; }
.btn-red:hover { border-color: var(--red-dark); background: var(--red-dark); }
.btn-outline { background: #fff; color: var(--ink); }
.btn-outline:hover { border-color: var(--red); color: var(--red); }

.hero {
  padding: 74px 0 64px;
  background: linear-gradient(180deg, #fff, #f8fafc);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: 42px;
  align-items: center;
}
.kicker {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0;
}
h1, h2, h3 {
  margin: 0;
  color: var(--ink);
  letter-spacing: 0;
  line-height: 1.05;
}
h1 { font-size: clamp(2.4rem, 6.3vw, 5.2rem); max-width: 860px; }
h2 { font-size: clamp(2rem, 4vw, 3.35rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.7rem); }
.lead {
  margin: 20px 0 0;
  color: #4b5563;
  font-size: clamp(1.03rem, 1.8vw, 1.25rem);
  max-width: 720px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.hero-card {
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
}
.hero-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.hero-note {
  padding: 18px;
  display: grid;
  gap: 6px;
  border-top: 6px solid var(--red);
}
.hero-note strong { color: var(--ink); font-size: 1.08rem; }
.hero-note span { color: var(--muted); font-weight: 700; }

.section { padding: 76px 0; }
.section-soft { background: var(--soft); }
.section-dark { background: var(--black); color: #d1d5db; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .kicker { color: #ff5a5a; }
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.92fr);
  gap: 40px;
  align-items: center;
}
.section-copy { margin: 18px 0 0; font-size: 1.08rem; color: #4b5563; }
.section-dark .section-copy { color: #d1d5db; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}
.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 14px 36px rgba(17, 24, 39, 0.06);
}
.card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 1.08rem;
}
.card p { margin: 0; color: var(--muted); }

.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.check-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid rgba(184, 0, 0, 0.13);
  border-radius: 12px;
  background: #fff;
  color: #1f2937;
  font-weight: 750;
}
.check-list li::before {
  content: "";
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--red);
}

.image-panel {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
}
.image-panel img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
}
.step {
  min-height: 210px;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid #2b2b2b;
  background: #111;
}
.step span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-weight: 950;
}

.global-cta {
  padding: 46px;
  border-radius: 26px;
  background: linear-gradient(135deg, var(--black), #2b0d0d);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.global-cta h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.8rem); }
.global-cta p { margin: 12px 0 0; color: #e5e7eb; max-width: 680px; }

.form-shell {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
label { color: var(--ink); font-size: 0.92rem; font-weight: 850; }
input, select, textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #cfd4dc;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
textarea { min-height: 130px; resize: vertical; }
fieldset {
  margin: 18px 0 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
}
legend { padding: 0 8px; color: var(--ink); font-weight: 950; }
.option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.option {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  font-weight: 700;
}
.option input { width: auto; min-height: auto; }
.alert {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #ecfdf5;
  color: #065f46;
  font-weight: 850;
}

.site-footer {
  padding: 54px 0 26px;
  background: #050505;
  color: #d1d5db;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 32px;
}
.footer-logo { width: 260px; max-width: 70vw; background: #fff; border-radius: 12px; }
.footer-links { display: grid; gap: 8px; }
.footer-links a { color: #f3f4f6; text-decoration: none; }
.footer-bottom {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid #242424;
  color: #9ca3af;
  font-size: 0.9rem;
}

@media (max-width: 960px) {
  .nav { align-items: flex-start; flex-direction: column; padding: 14px 0; }
  .menu { flex-wrap: wrap; gap: 12px 16px; }
  .hero-grid, .split { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .global-cta { align-items: flex-start; flex-direction: column; padding: 30px; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, 1120px); }
  .hero { padding-top: 44px; }
  .section { padding: 54px 0; }
  .menu { font-size: 0.84rem; }
  .actions .btn, .global-cta .btn { width: 100%; }
  .card-grid, .check-list, .steps, .form-grid, .option-grid, .footer-grid { grid-template-columns: 1fr; }
  .form-shell { padding: 20px; }
}

/* Full-screen mobile navigation. */
.mobile-menu-toggle,
.mobile-menu-close {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.mobile-menu-toggle {
  flex-direction: column;
  gap: 5px;
  padding: 0;
}
.mobile-menu-toggle span,
.mobile-menu-close span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--red);
}
.mobile-menu-close span { position: absolute; }
.mobile-menu-close span:first-child { transform: rotate(45deg); }
.mobile-menu-close span:last-child { transform: rotate(-45deg); }
.mobile-menu-panel {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(5, 5, 5, 0.62);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 180ms ease;
}
body.mobile-menu-open { overflow: hidden; }
body.mobile-menu-open .mobile-menu-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.mobile-menu-panel nav {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(420px, 100%);
  min-height: 100dvh;
  padding: 6.5rem 1.4rem 6rem;
  background: #fff;
  transform: translateX(100%);
  transition: transform 220ms ease;
  overflow-y: auto;
  box-shadow: -28px 0 70px rgba(0,0,0,.25);
}
body.mobile-menu-open .mobile-menu-panel nav { transform: translateX(0); }
.mobile-menu-panel .menu {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}
.mobile-menu-panel .menu a {
  display: block;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 900;
}
.mobile-menu-panel .menu a:hover { color: var(--red); }
.mobile-menu-close {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 1002;
}
.mobile-menu-cta {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  width: calc(min(420px, 100%) - 2.8rem);
  max-width: 372px;
  z-index: 1002;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 220ms ease;
}
body.mobile-menu-open .mobile-menu-cta {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
@media (max-width: 960px) {
  .nav {
    min-height: 72px;
    flex-direction: row;
    align-items: center;
    padding: 10px 0;
  }
  .desktop-nav,
  .nav-cta { display: none !important; }
  .mobile-menu-toggle,
  .mobile-menu-close { display: inline-flex; }
  .brand img { width: min(260px, 66vw); max-height: 56px; }
}
@media (min-width: 961px) {
  .mobile-menu-panel,
  .mobile-menu-toggle { display: none !important; }
}
@media (max-width: 575px) {
  .mobile-menu-panel nav { width: 100%; }
  .mobile-menu-cta { left: 1rem; right: 1rem; width: auto; max-width: none; }
}
