/* =========================================================
   ANYREALS HOMEPAGE
   PREMIUM HOMEPAGE STYLES
========================================================= */

:root {
  --ar-dark: #07111f;
  --ar-dark-2: #0d1b2d;
  --ar-blue: #1769d2;
  --ar-blue-light: #3c8df6;
  --ar-gold: #c8a96b;
  --ar-white: #ffffff;
  --ar-light: #f6f8fb;
  --ar-muted: #718096;
  --ar-border: #e7ebf0;
  --ar-success: #1b9c68;
}

/* =========================================================
     HERO
  ========================================================= */

.diamond-hero {
  min-height: 720px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: var(--ar-dark);
  color: white;
}

.hero-background {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #10243d, #07111f);
  background-size: cover;
  background-position: center;
  transition: background-image 0.5s ease;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(4, 12, 23, 0.95) 0%,
    rgba(4, 12, 23, 0.72) 45%,
    rgba(4, 12, 23, 0.25) 100%
  );
}

.hero-content {
  width: min(1180px, 92%);
  margin: auto;
  position: relative;
  z-index: 2;
  padding: 110px 0 80px;
}

.hero-eyebrow,
.section-kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ar-gold);
  margin-bottom: 18px;
}

.hero-content h1 {
  max-width: 800px;
  font-size: clamp(3rem, 6vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  margin: 0 0 28px;
  font-weight: 800;
}

.hero-content h1 span {
  display: block;
  color: #8fc1ff;
}

.hero-content > p {
  max-width: 600px;
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 38px;
}

/* =========================================================
     HERO SEARCH
  ========================================================= */

.hero-search {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr auto;
  background: white;
  padding: 8px;
  border-radius: 16px;
  max-width: 1000px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

.hero-search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  color: #5d6b7b;
}

.hero-search-field span {
  font-size: 1.2rem;
}

.hero-search input,
.hero-search select {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  min-height: 56px;
  font-size: 0.95rem;
  color: #1a2635;
}

.hero-search select {
  padding: 0 15px;
  border-left: 1px solid #e5e9ef;
}

.hero-search button {
  border: 0;
  border-radius: 11px;
  background: var(--ar-blue);
  color: white;
  padding: 0 28px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.25s ease;
}

.hero-search button:hover {
  background: #0f55b0;
  transform: translateY(-1px);
}

/* =========================================================
     HERO PROPERTY MODE
  ========================================================= */

.hero-property-content {
  padding-top: 130px;
}

.hero-property-content h1 {
  max-width: 720px;
}

.hero-property-location {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 14px;
}

.hero-property-price {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 25px;
}

.hero-property-btn {
  border: 0;
  background: white;
  color: var(--ar-dark);
  padding: 15px 24px;
  border-radius: 9px;
  font-weight: 800;
  cursor: pointer;
  margin-bottom: 35px;
}

.hero-search-floating {
  margin-top: 15px;
}

/* =========================================================
     STATS
  ========================================================= */

.homepage-stats {
  position: relative;
  z-index: 5;
  margin-top: -45px;
}

.stats-inner {
  width: min(1050px, 92%);
  margin: auto;
  min-height: 110px;
  background: white;
  border-radius: 18px;
  box-shadow: 0 20px 55px rgba(16, 36, 61, 0.12);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 25px;
}

.stat-item {
  text-align: center;
  padding: 0 30px;
}

.stat-item strong {
  display: block;
  font-size: 2rem;
  color: var(--ar-dark);
  font-weight: 800;
}

.stat-item span {
  color: var(--ar-muted);
  font-size: 0.82rem;
}

.stat-divider {
  width: 1px;
  height: 45px;
  background: var(--ar-border);
}

/* =========================================================
     GENERAL HOMEPAGE SECTIONS
  ========================================================= */

.homepage-section {
  padding-top: 100px;
  padding-bottom: 100px;
}

.section-heading {
  width: min(1180px, 92%);
  margin: 0 auto 42px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  color: var(--ar-dark);
  margin: 0 0 12px;
  letter-spacing: -0.035em;
}

.section-subtitle {
  color: var(--ar-muted);
  max-width: 600px;
  line-height: 1.7;
}

.section-link {
  border: 0;
  background: transparent;
  color: var(--ar-blue);
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

/* =========================================================
     PROPERTY GRIDS
  ========================================================= */

.homepage-section .property-grid {
  width: min(1180px, 92%);
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* =========================================================
     PROPERTY CARDS
  ========================================================= */

.homepage-property-card {
  background: white;
  border-radius: 17px;
  overflow: hidden;
  border: 1px solid var(--ar-border);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.homepage-property-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 22px 50px rgba(7, 17, 31, 0.13);
}

.property-image-wrapper {
  height: 265px;
  position: relative;
  overflow: hidden;
  background: #e8edf3;
}

.property-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.homepage-property-card:hover .property-image-wrapper img {
  transform: scale(1.06);
}

.property-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.property-badge {
  padding: 7px 11px;
  border-radius: 30px;
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.featured-badge {
  background: rgba(23, 105, 210, 0.92);
}

.sold-badge {
  background: rgba(27, 156, 104, 0.92);
}

.rented-badge {
  background: rgba(200, 169, 107, 0.95);
}

.property-view-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 17, 31, 0.35);
  opacity: 0;
  transition: 0.3s ease;
}

.property-view-overlay span {
  padding: 11px 17px;
  border-radius: 30px;
  background: white;
  color: var(--ar-dark);
  font-size: 0.78rem;
  font-weight: 800;
}

.homepage-property-card:hover .property-view-overlay {
  opacity: 1;
}

.card-content {
  padding: 22px;
}

.property-card-top {
  margin-bottom: 10px;
}

.property-type {
  display: inline-block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: var(--ar-blue);
  background: #edf5ff;
  padding: 6px 9px;
  border-radius: 6px;
}

.card-content h3 {
  margin: 0 0 6px;
  font-size: 1.35rem;
  color: var(--ar-dark);
}

.card-content h4 {
  margin: 0 0 10px;
  font-size: 1rem;
  color: #27364a;
}

.property-location {
  color: var(--ar-muted);
  margin: 0;
  font-size: 0.88rem;
}

/* =========================================================
     FEATURED TRANSITION
  ========================================================= */

.featured-grid {
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.featured-changing {
  opacity: 0;
  transform: translateY(8px);
}

/* =========================================================
     LUXURY SECTION
  ========================================================= */

.luxury-showcase {
  background: linear-gradient(135deg, #07111f, #10243d);
  color: white;
  padding: 110px 4%;
  display: grid;
  grid-template-columns: 0.75fr 1.4fr;
  gap: 60px;
  align-items: center;
}

.luxury-heading {
  max-width: 430px;
}

.luxury-heading h2 {
  font-size: clamp(2.7rem, 5vw, 4.8rem);
  line-height: 0.98;
  margin: 0 0 20px;
  letter-spacing: -0.045em;
}

.luxury-heading p {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
  margin-bottom: 30px;
}

.luxury-button {
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: white;
  padding: 13px 19px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
}

.luxury-button:hover {
  background: white;
  color: var(--ar-dark);
}

.luxury-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.luxury-grid .homepage-property-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #10243d;
}

.luxury-grid .card-content h3,
.luxury-grid .card-content h4 {
  color: white;
}

.luxury-grid .property-location {
  color: rgba(255, 255, 255, 0.6);
}

/* =========================================================
     WHY SECTION
  ========================================================= */

.why-section {
  padding: 110px 4%;
  background: var(--ar-light);
  display: grid;
  grid-template-columns: 0.8fr 1.4fr;
  gap: 80px;
}

.why-intro {
  max-width: 430px;
}

.why-intro h2 {
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 1;
  margin: 0 0 20px;
  color: var(--ar-dark);
  letter-spacing: -0.04em;
}

.why-intro p {
  color: var(--ar-muted);
  line-height: 1.8;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--ar-border);
}

.why-card {
  background: var(--ar-light);
  padding: 35px;
}

.why-number {
  color: var(--ar-blue);
  font-weight: 800;
  font-size: 0.75rem;
}

.why-card h3 {
  color: var(--ar-dark);
  margin: 25px 0 10px;
}

.why-card p {
  color: var(--ar-muted);
  line-height: 1.7;
}

/* =========================================================
     AGENTS
  ========================================================= */

.agents-section {
  background: white;
}

.agent-grid {
  width: min(1180px, 92%);
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.agent-card {
  border: 1px solid var(--ar-border);
  border-radius: 15px;
  padding: 25px;
  display: flex;
  align-items: center;
  gap: 18px;
  background: white;
  transition: 0.25s ease;
}

.agent-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 35px rgba(7, 17, 31, 0.08);
}

.agent-avatar {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eaf2ff;
  color: var(--ar-blue);
  font-weight: 800;
  font-size: 1.3rem;
}

.agent-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.agent-info h3 {
  margin: 0 0 5px;
  color: var(--ar-dark);
  font-size: 1rem;
}

.agent-info p {
  margin: 0 0 8px;
  color: var(--ar-muted);
  font-size: 0.82rem;
}

.verified-agent {
  color: var(--ar-success);
  font-size: 0.72rem;
  font-weight: 800;
}

/* =========================================================
     TESTIMONIALS
  ========================================================= */

.testimonials-section {
  padding: 110px 4%;
  background: var(--ar-light);
}

.centered {
  display: block;
  text-align: center;
}

.centered .section-kicker {
  margin-bottom: 10px;
}

.testimonial-grid {
  width: min(1050px, 92%);
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.testimonial-card {
  background: white;
  padding: 35px;
  border-radius: 15px;
  border: 1px solid var(--ar-border);
}

.quote-mark {
  font-size: 3rem;
  line-height: 1;
  color: var(--ar-blue);
}

.testimonial-card p {
  color: #37465a;
  line-height: 1.8;
  min-height: 80px;
}

.testimonial-card h4 {
  margin: 0;
  color: var(--ar-dark);
}

/* =========================================================
     SERVICES
  ========================================================= */

.services-showcase {
  padding: 110px 4%;
  background: white;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 70px;
  align-items: center;
}

.services-intro {
  max-width: 460px;
}

.services-intro h2 {
  font-size: clamp(2.3rem, 4vw, 4rem);
  line-height: 1;
  color: var(--ar-dark);
  margin: 0 0 20px;
}

.services-intro p {
  color: var(--ar-muted);
  line-height: 1.8;
  margin-bottom: 30px;
}

.services-button {
  display: inline-block;
  text-decoration: none;
  background: var(--ar-blue);
  color: white;
  padding: 14px 20px;
  border-radius: 8px;
  font-weight: 800;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.service-card {
  border: 1px solid var(--ar-border);
  padding: 28px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: 0.25s ease;
}

.service-card:hover {
  border-color: var(--ar-blue);
  transform: translateY(-4px);
}

.service-card span {
  color: var(--ar-blue);
  font-weight: 800;
  font-size: 0.75rem;
}

.service-card h3 {
  color: var(--ar-dark);
  font-size: 1.05rem;
}

.service-card p {
  color: var(--ar-muted);
  font-size: 0.85rem;
}

/* =========================================================
     FINAL CTA
  ========================================================= */

.final-cta {
  background: linear-gradient(135deg, #1769d2, #0b4d9c);
  color: white;
  padding: 85px 7%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.final-cta h2 {
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
  margin: 0 0 15px;
  max-width: 700px;
  letter-spacing: -0.035em;
}

.final-cta p {
  color: rgba(255, 255, 255, 0.78);
}

.final-cta .section-kicker {
  color: #bcd8ff;
}

.final-cta button {
  flex-shrink: 0;
  border: 0;
  background: white;
  color: var(--ar-blue);
  padding: 16px 25px;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}

/* =========================================================
     EMPTY STATES
  ========================================================= */

.empty-homepage-section {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  border: 1px dashed var(--ar-border);
  border-radius: 15px;
  color: var(--ar-muted);
}

.empty-homepage-section h3 {
  color: var(--ar-dark);
  margin-bottom: 7px;
}

.empty-icon {
  font-size: 2.5rem;
  color: var(--ar-blue);
}

/* =========================================================
     FOOTER
  ========================================================= */

.footer {
  background: var(--ar-dark);
  color: white;
  padding: 55px 5% 25px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 35px;
}

.footer-logo {
  font-size: 1.7rem;
  font-weight: 800;
}

.footer-inner p {
  color: rgba(255, 255, 255, 0.5);
}

.footer-links {
  display: flex;
  gap: 25px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
}

/* =========================================================
     RESPONSIVE
  ========================================================= */

@media (max-width: 950px) {
  .hero-search {
    grid-template-columns: 1fr 1fr;
  }

  .hero-search-field {
    grid-column: 1 / -1;
    border-bottom: 1px solid #e5e9ef;
  }

  .hero-search select {
    border-left: 0;
  }

  .hero-search button {
    min-height: 52px;
  }

  .homepage-section .property-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .luxury-showcase,
  .why-section,
  .services-showcase {
    grid-template-columns: 1fr;
  }

  .luxury-heading,
  .why-intro,
  .services-intro {
    max-width: 700px;
  }

  .agent-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
     MOBILE
  ========================================================= */

@media (max-width: 650px) {
  .diamond-hero {
    min-height: 700px;
  }

  .hero-content {
    padding-top: 100px;
  }

  .hero-content h1 {
    font-size: 3rem;
  }

  .hero-content > p {
    font-size: 1rem;
  }

  .hero-search {
    display: flex;
    flex-direction: column;
    padding: 7px;
  }

  .hero-search-field {
    min-height: 52px;
    border-bottom: 1px solid #e5e9ef;
  }

  .hero-search select {
    min-height: 52px;
    border-bottom: 1px solid #e5e9ef;
    padding-left: 18px;
  }

  .hero-search button {
    min-height: 52px;
  }

  .homepage-stats {
    margin-top: -30px;
  }

  .stats-inner {
    flex-direction: column;
    gap: 18px;
  }

  .stat-divider {
    width: 70%;
    height: 1px;
  }

  .section-heading {
    display: block;
  }

  .section-link {
    margin-top: 18px;
  }

  .homepage-section .property-grid {
    grid-template-columns: 1fr;
  }

  .property-image-wrapper {
    height: 250px;
  }

  .luxury-grid {
    grid-template-columns: 1fr;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .agent-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .final-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-links {
    flex-direction: column;
    gap: 12px;
  }
}
#diamondHero {
  transition: opacity 0.35s ease, transform 0.35s ease;
}

#diamondHero.hero-changing {
  opacity: 0;
  transform: scale(1.01);
}
