/* ==========================================================================
   SMB Real Estate Brokers — Corporate Homepage (index.php)
   Extends the shared component system in main.css.
   Loaded after main.css on index.php only.
   ========================================================================== */

/* ---------- Hero (corporate variant) ---------- */
.hero--home { min-height: 620px; }
.hero--home .hero__content { max-width: 700px; }

.hero__browse {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-top: 44px;
}
.hero__browse-label {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: rgba(255, 255, 255, 0.7);
  margin-right: 6px;
}
.hero__browse a {
  display: inline-flex; align-items: center;
  padding: 8px 18px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  color: var(--white); font-size: 0.875rem; font-weight: 600;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.hero__browse a:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
}

@media (min-width: 992px) {
  .hero--home { min-height: min(92vh, 820px); }
  .hero--home .hero__inner { grid-template-columns: 1fr; }
}

/* ---------- Featured projects ---------- */
.projects__grid { display: grid; gap: 24px; grid-template-columns: 1fr; }

.project-card {
  display: flex; flex-direction: column;
  background: var(--white); border-radius: var(--r-lg);
  border: 1px solid var(--border-light); box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }

.project-card__media { aspect-ratio: 4 / 3; overflow: hidden; }
.project-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s ease;
}
.project-card:hover .project-card__media img { transform: scale(1.03); }

.project-card__body {
  display: flex; flex-direction: column; gap: 12px;
  padding: 24px; flex: 1;
}

.project-card__name { font-size: 1.125rem; }

.project-card__meta { display: grid; gap: 6px; }
.project-card__meta li {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.875rem; color: var(--text-muted);
}
.project-card__meta .icon { width: 16px; height: 16px; color: var(--navy); }

.project-card__foot {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  margin-top: auto; padding-top: 16px;
  border-top: 1px solid var(--border-light);
}
.project-card__price-label {
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 2px;
}
.project-card__price {
  font-size: 1.125rem; font-weight: 800; color: var(--navy); line-height: 1.2;
}
.project-card__link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.875rem; font-weight: 700; color: var(--navy);
  white-space: nowrap;
}
.project-card__link .icon { width: 16px; height: 16px; transition: transform 0.2s ease; }
.project-card__link:hover { color: var(--gold-dark); }
.project-card__link:hover .icon { transform: translateX(3px); }

.projects__more { margin-top: 40px; text-align: center; }

@media (min-width: 640px) { .projects__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .projects__grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Why SMB ---------- */
.why__grid { display: grid; gap: 40px; grid-template-columns: 1fr; }

.why-item__num {
  display: block; font-size: 0.875rem; font-weight: 800;
  letter-spacing: 0.15em; color: var(--gold-dark); margin-bottom: 16px;
}
.why-item h3 { font-size: 1.125rem; margin-bottom: 12px; }
.why-item p { font-size: 0.9375rem; color: var(--text-muted); }

@media (min-width: 600px) { .why__grid { grid-template-columns: repeat(2, 1fr); gap: 48px; } }
@media (min-width: 992px) { .why__grid { grid-template-columns: repeat(4, 1fr); gap: 40px; } }

/* ---------- Property categories ---------- */
.categories__grid { display: grid; gap: 20px; grid-template-columns: 1fr; }

.category-card {
  display: flex; align-items: center; gap: 20px;
  background: var(--white); border-radius: var(--r-lg);
  border: 1px solid var(--border-light); box-shadow: var(--shadow-sm);
  padding: 24px 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.category-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }

.category-card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: var(--r-sm);
  background: var(--bg-section-alt); color: var(--navy); flex-shrink: 0;
}

.category-card__text { flex: 1; min-width: 0; }
.category-card h3 { font-size: 1.0625rem; margin-bottom: 2px; }
.category-card p { font-size: 0.875rem; color: var(--text-muted); }

.category-card__arrow {
  color: var(--navy); flex-shrink: 0;
  transition: transform 0.2s ease, color 0.2s ease;
}
.category-card__arrow .icon { width: 18px; height: 18px; }
.category-card:hover .category-card__arrow { transform: translateX(3px); color: var(--gold-dark); }

@media (min-width: 600px) { .categories__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .categories__grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

/* ---------- Featured communities ---------- */
.communities__grid { display: grid; gap: 24px; grid-template-columns: 1fr; }

.community-card {
  position: relative; display: block;
  border-radius: var(--r-lg); overflow: hidden;
  aspect-ratio: 4 / 3;
}
.community-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s ease;
}
.community-card:hover img { transform: scale(1.04); }

.community-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7, 26, 49, 0) 40%, rgba(7, 26, 49, 0.8) 100%);
}

.community-card__content {
  position: absolute; inset: auto 0 0 0; z-index: 1;
  padding: 24px;
}
.community-card h3 { color: var(--white); font-size: 1.25rem; margin-bottom: 4px; }
.community-card__cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--gold);
}
.community-card__cta .icon { width: 14px; height: 14px; transition: transform 0.2s ease; }
.community-card:hover .community-card__cta .icon { transform: translateX(3px); }

@media (min-width: 600px) { .communities__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .communities__grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Buying process ---------- */
.steps__grid { display: grid; gap: 40px; grid-template-columns: 1fr; list-style: none; }

.step { position: relative; }
.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  font-size: 1rem; font-weight: 800; color: var(--navy);
  margin-bottom: 20px;
}
.step h3 { font-size: 1.125rem; margin-bottom: 10px; }
.step p { font-size: 0.9375rem; color: var(--text-muted); }

@media (min-width: 600px) { .steps__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) {
  .steps__grid { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  /* subtle connector line between step numbers */
  .step:not(:last-child)::before {
    content: ""; position: absolute; top: 26px; left: 68px; right: -16px;
    height: 1px; background: var(--border-light);
  }
}

/* ---------- Testimonials ---------- */
.testimonials__grid { display: grid; gap: 24px; grid-template-columns: 1fr; }

.testimonial-card {
  display: flex; flex-direction: column; gap: 20px;
  background: var(--white); border-radius: var(--r-lg);
  border: 1px solid var(--border-light); box-shadow: var(--shadow-sm);
  padding: 32px;
}
.testimonial-card__mark {
  font-size: 2.5rem; font-weight: 800; line-height: 1;
  color: var(--gold); font-family: Georgia, serif;
}
.testimonial-card blockquote p { font-size: 1rem; color: var(--text-main); }
.testimonial-card figcaption { margin-top: auto; }
.testimonial-card__name { font-size: 0.9375rem; font-weight: 700; color: var(--navy); }
.testimonial-card__role { font-size: 0.8125rem; color: var(--text-muted); }

@media (min-width: 992px) { .testimonials__grid { grid-template-columns: repeat(3, 1fr); gap: 32px; } }

/* ---------- Latest insights ---------- */
.insights__grid { display: grid; gap: 32px; grid-template-columns: 1fr; }

.insight-card { display: flex; flex-direction: column; }
.insight-card__media {
  border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 10;
  margin-bottom: 20px;
}
.insight-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s ease;
}
.insight-card:hover .insight-card__media img { transform: scale(1.03); }

.insight-card__tag {
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--gold-dark); margin-bottom: 10px;
}
.insight-card h3 { font-size: 1.1875rem; line-height: 1.35; margin-bottom: 10px; }
.insight-card h3 a:hover { color: var(--gold-dark); }
.insight-card__excerpt { font-size: 0.9375rem; color: var(--text-muted); margin-bottom: 14px; }
.insight-card__date { margin-top: auto; font-size: 0.8125rem; font-weight: 600; color: var(--text-muted); }

@media (min-width: 768px) { .insights__grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Final CTA ---------- */
.cta-final { position: relative; background: var(--bg-dark); overflow: hidden; }
.cta-final__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.25;
}
.cta-final::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 35, 66, 0.9) 0%, rgba(10, 35, 66, 0.75) 100%);
}
.cta-final__inner {
  position: relative; z-index: 1;
  max-width: 720px; margin-inline: auto; text-align: center;
}
.cta-final h2 { color: var(--white); }
.cta-final__sub {
  color: rgba(255, 255, 255, 0.8); font-size: 1.0625rem;
  max-width: 54ch; margin: 0 auto 36px;
}
.cta-final__buttons {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 16px;
  margin-bottom: 28px;
}
.cta-final__contact {
  font-size: 0.9375rem; color: rgba(255, 255, 255, 0.7); max-width: none;
}
.cta-final__contact a { font-weight: 700; color: var(--white); }
.cta-final__contact a:hover { color: var(--gold); }

/* ---------- Sticky CTA (text-based variant) ---------- */
.sticky-cta__price { font-size: 1.0625rem; white-space: nowrap; }
.sticky-cta__action { white-space: nowrap; }

/* Footer social link styles now live in main.css (shared by all pages) */
