/* ═══════════════════════════════════════════
   VALLEY CASITA CO. — Homepage Styles
   ═══════════════════════════════════════════ */

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--charcoal);
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(26,20,16,0.88) 0%,
    rgba(26,20,16,0.72) 50%,
    rgba(26,20,16,0.35) 100%
  );
}
.hero .container {
  position: relative;
  z-index: 1;
  padding-top: 120px;
  padding-bottom: 80px;
}
.hero__content { max-width: 640px; }

.hero__h1 {
  font-size: clamp(56px, 8vw, 96px);
  color: var(--sand);
  margin: 12px 0 24px;
}
.hero__h1-accent { color: var(--rust-light); }

.hero__sub {
  font-size: 18px;
  color: rgba(245,239,224,0.8);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 520px;
}
.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero__trust {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.hero__trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(245,239,224,0.7);
}
.hero__trust-item .stars { font-size: 13px; }
.hero__trust-sep {
  width: 1px;
  height: 18px;
  background: rgba(255,255,255,0.15);
}

/* ── MODELS GRID ── */
.models-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.models-grid .model-card:last-child {
  grid-column: span 2;
}

.model-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: block;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  text-decoration: none;
  color: inherit;
}
.model-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.model-card__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
}
.model-card__img {
  position: relative;
  overflow: hidden;
}
.model-card__body {
  padding: 24px;
}
.model-card__sf {
  font-family: var(--font-display);
  font-size: 40px;
  color: var(--rust);
  line-height: 1;
  margin-bottom: 6px;
}
.model-card__sf span {
  font-size: 20px;
  color: var(--warm-light);
}
.model-card__name {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 10px;
}
.model-card__desc {
  font-size: 14px;
  color: var(--warm-mid);
  font-weight: 300;
  line-height: 1.65;
  margin-bottom: 16px;
}
.model-card__price {
  font-size: 14px;
  color: var(--warm-mid);
  margin-bottom: 12px;
}
.model-card__price strong {
  color: var(--rust-dark);
  font-size: 18px;
}
.model-card__cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--rust);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition);
}
.model-card:hover .model-card__cta { gap: 10px; }
.model-card--featured {
  border-color: var(--gold);
  border-width: 2px;
}

/* ── PROCESS SECTION ── */
.section--process {
  background: var(--cream);
}
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.process-step {
  display: flex;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.process-step:last-child { border-bottom: none; }
.process-step__num {
  font-family: var(--font-display);
  font-size: 42px;
  color: var(--rust);
  opacity: 0.3;
  line-height: 1;
  flex-shrink: 0;
  width: 56px;
  margin-top: -4px;
}
.process-step__title {
  font-size: 17px;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 6px;
}
.process-step__desc {
  font-size: 14px;
  color: var(--warm-mid);
  font-weight: 300;
  line-height: 1.65;
}

/* ── STATS SECTION ── */
.section--stats {
  background: var(--charcoal);
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat {
  border-right: 1px solid rgba(255,255,255,0.06);
  padding: 40px 24px;
}
.stat:last-child { border-right: none; }

/* ── NEIGHBORHOODS GRID ── */
.neighborhoods-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.neighborhood-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
}
.neighborhood-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--rust);
}
.neighborhood-card__rank {
  position: absolute;
  top: 16px;
  right: 18px;
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--accent-gold, var(--gold));
  opacity: 0.4;
  line-height: 1;
}
.neighborhood-card__zip {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--rust);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
  line-height: 1;
}
.neighborhood-card__name {
  font-size: 17px;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 8px;
}
.neighborhood-card__desc {
  font-size: 13px;
  color: var(--warm-mid);
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 14px;
}
.neighborhood-card__models {
  font-size: 11px;
  font-weight: 600;
  color: var(--rust);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── USE CASES ── */
.section--usecases {
  background: var(--charcoal);
}
.usecases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.usecase-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  display: block;
  text-decoration: none;
  color: var(--sand);
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  text-align: center;
}
.usecase-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(196,75,43,0.4);
  transform: translateY(-3px);
}
.usecase-card__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  color: var(--rust-light);
}
.usecase-card__icon svg {
  width: 100%;
  height: 100%;
}
.usecase-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--sand);
}
.usecase-card p {
  font-size: 14px;
  color: var(--warm-light);
  font-weight: 300;
  line-height: 1.65;
}

/* ── TESTIMONIAL ── */
.section--testimonial {
  background: var(--sand-dark);
}
.testimonial-block {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: 24px 0;
}
.testimonial-quote {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.5vw, 26px);
  font-style: italic;
  color: var(--charcoal);
  line-height: 1.55;
  margin-bottom: 28px;
}
.testimonial-author__name {
  font-weight: 600;
  color: var(--charcoal);
  font-size: 15px;
}
.testimonial-author__loc {
  font-size: 13px;
  color: var(--warm-light);
  margin-top: 4px;
}

/* ── PRICING TEASER ── */
.pricing-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--cream);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.price-table thead tr {
  background: var(--charcoal);
  color: var(--sand);
}
.price-table th {
  padding: 14px 18px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.price-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--warm-mid);
}
.price-table td a {
  font-weight: 600;
  color: var(--charcoal);
  transition: color var(--transition);
}
.price-table td a:hover { color: var(--rust); }
.price-table tbody tr:last-child td { border-bottom: none; }
.price-table tbody tr:hover { background: var(--sand-dark); }
.price-table .price {
  font-weight: 700;
  color: var(--rust-dark);
  font-size: 15px;
}
.price-table .featured-row td { background: rgba(201,147,58,0.06); }
.price-table .featured-row .price { color: var(--gold); }
.price-table__note {
  font-size: 12px;
  color: var(--warm-light);
  margin-top: 12px;
}
.price-table__note a { color: var(--rust); text-decoration: underline; }

/* ── FAQ ── */
.faq-wrap {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: start;
}
.faq-list {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--cream);
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: none; }
.faq-trigger {
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  font-size: 15px;
  font-weight: 500;
  color: var(--charcoal);
  font-family: var(--font-body);
  transition: background var(--transition);
  gap: 16px;
}
.faq-trigger:hover { background: var(--sand-dark); }
.faq-item.open .faq-trigger { color: var(--rust); }
.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  position: relative;
}
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  background: var(--rust);
  border-radius: 2px;
  transition: transform var(--transition);
}
.faq-icon::before { width: 12px; height: 2px; top: 9px; left: 4px; }
.faq-icon::after  { width: 2px; height: 12px; top: 4px; left: 9px; }
.faq-item.open .faq-icon::after { transform: rotate(90deg); opacity: 0; }
.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-body p {
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--warm-mid);
  font-weight: 300;
  line-height: 1.7;
}
.faq-body a { color: var(--rust); text-decoration: underline; }

/* ── FINAL CTA ── */
.section--cta {
  background: var(--rust-dark);
  position: relative;
  overflow: hidden;
}
.section--cta::before {
  content: '';
  position: absolute;
  top: -80px; right: -100px;
  width: 480px; height: 480px;
  border-radius: 50%;
  border: 80px solid rgba(255,255,255,0.05);
}
.cta-block {
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 32px 0;
}
.cta-block__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-block__zips {
  font-size: 12px;
  color: rgba(245,239,224,0.4);
  letter-spacing: 0.06em;
}

/* ── SECTION HEADER ── */
.section-header { margin-bottom: 48px; }
.section-header .section-desc { margin: 0 auto; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .models-grid { grid-template-columns: repeat(2, 1fr); }
  .models-grid .model-card:last-child { grid-column: span 1; }
  .usecases-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stat { border-bottom: 1px solid rgba(255,255,255,0.06); }
  .stat:nth-child(2n) { border-right: none; }
}
@media (max-width: 768px) {
  .hero { min-height: 100svh; }
  .hero__h1 { font-size: 52px; }
  .models-grid { grid-template-columns: 1fr; }
  .neighborhoods-grid { grid-template-columns: 1fr 1fr; }
  .pricing-teaser { grid-template-columns: 1fr; gap: 40px; }
  .faq-wrap { grid-template-columns: 1fr; gap: 32px; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .usecases-grid { grid-template-columns: 1fr 1fr; }
  .section--process .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero__trust { gap: 12px; }
  .hero__trust-sep { display: none; }
  .neighborhoods-grid { grid-template-columns: 1fr; }
  .usecases-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; }
  .stat { border-right: none; }
}
