/* PTAH REAL ESTATE — Page layouts */

.intro-text { max-width: 36rem; }

.category-hub-grid {
  display: grid;
  gap: var(--space-5);
}
@media (min-width: 768px) {
  .category-hub-grid { grid-template-columns: repeat(2, 1fr); }
  .category-hub-card:nth-child(1),
  .category-hub-card:nth-child(4) { min-height: 380px; }
  .category-hub-card:nth-child(2),
  .category-hub-card:nth-child(3) { min-height: 320px; }
}

.category-hub-card {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border-radius: var(--radius-md);
  display: flex;
  align-items: flex-end;
  color: var(--color-white);
}
.category-hub-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.category-hub-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(22, 44, 70, 0.9), rgba(22, 44, 70, 0.12));
  transition: opacity 0.4s var(--ease);
}
.category-hub-card__body {
  position: relative;
  z-index: 1;
  padding: var(--space-6);
  transform: translateY(4px);
  transition: transform 0.4s var(--ease);
}
.category-hub-card h3 {
  color: var(--color-white);
  margin-bottom: var(--space-2);
  transition: color 0.3s var(--ease);
}
.category-hub-card p {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: var(--space-4);
  max-width: 28ch;
}
.category-hub-card:hover img { transform: scale(1.06); }
.category-hub-card:hover h3 { color: var(--color-gold-light); }
.category-hub-card:hover .category-hub-card__body { transform: translateY(0); }

.about-values-section .section-header { margin-bottom: var(--space-6); }

.detail-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}
.detail-location {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: var(--space-5);
}

.services-grid {
  display: grid;
  gap: var(--space-5);
}
@media (min-width: 700px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); }
}

.form-card {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.35s var(--ease);
}
.form-card:focus-within {
  box-shadow: var(--shadow-md);
}

.lead-note {
  font-size: 1.05rem;
  max-width: 40rem;
}

/* Featured row — editorial uneven / mobile horizontal scroll */
.featured-grid {
  display: grid;
  gap: var(--space-5);
}

@media (max-width: 1023px) {
  .featured-scroll {
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
  }

  .featured-grid {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    padding-bottom: 0.75rem;
    scrollbar-width: none;
  }

  .featured-grid::-webkit-scrollbar {
    display: none;
  }

  .featured-grid .property-card {
    flex: 0 0 min(78vw, 300px);
    scroll-snap-align: start;
    max-width: 300px;
  }

  .featured-grid .property-card__media {
    aspect-ratio: 4 / 3;
  }
}

@media (min-width: 1024px) {
  .featured-grid {
    grid-template-columns: 1.2fr 0.9fr 0.9fr;
    align-items: stretch;
  }
  .featured-grid .property-card:first-child {
    display: flex;
    flex-direction: column;
  }
  .featured-grid .property-card:first-child .property-card__media {
    aspect-ratio: 4 / 4.2;
    flex: 1;
  }
}

.why-band {
  position: relative;
}
.why-band::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(202, 175, 105, 0.4), transparent);
}

.cta-band h2 {
  letter-spacing: -0.02em;
}

.home-hero__content {
  max-width: 38rem;
}

.home-hero__content h1 {
  max-width: 14ch;
}

@media (min-width: 1100px) {
  .category-grid {
    gap: var(--space-4);
  }
  .category-card {
    min-height: 340px;
  }
  .category-card:nth-child(4),
  .category-card:nth-child(5) {
    min-height: 300px;
  }
}

/* Home contact form */
.home-contact__grid {
  display: grid;
  gap: var(--space-8);
  align-items: start;
}

@media (min-width: 900px) {
  .home-contact__grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: var(--space-10);
    align-items: center;
  }
}

.home-contact__info h2 {
  max-width: 14ch;
}

.home-contact__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.home-contact__list strong {
  display: block;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--color-gold-primary);
  margin-bottom: 0.2rem;
}

.home-contact__list a,
.home-contact__list span {
  color: var(--color-navy-secondary);
}

.home-contact__list a:hover {
  color: var(--color-gold-primary);
}

.home-contact__form h3 {
  margin-bottom: var(--space-2);
  font-size: 1.35rem;
}

.home-contact__form-note {
  font-size: 0.9rem;
  margin-bottom: var(--space-5);
  color: var(--color-text-muted);
}
