/* ============================================
   BUY A HOME — Page-Specific Styles
   ============================================ */

/* ===== HERO ===== */
.buy-hero {
  min-height: 100vh;
  background: var(--color-navy-dark);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.buy-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #060F1F 0%, #0B1D3A 35%, #132D54 65%, #0B1D3A 100%);
}

.buy-hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.buy-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
}

.buy-hero-orb-1 {
  width: 500px;
  height: 500px;
  background: rgba(201, 169, 110, 0.07);
  top: 10%;
  right: 10%;
  animation: buyOrbFloat 14s ease-in-out infinite;
}

.buy-hero-orb-2 {
  width: 350px;
  height: 350px;
  background: rgba(201, 169, 110, 0.04);
  bottom: 15%;
  left: 5%;
  animation: buyOrbFloat 18s ease-in-out 4s infinite;
}

@keyframes buyOrbFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(25px, -20px); }
}

.buy-hero-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.buy-hero-lines span {
  position: absolute;
  width: 1px;
  top: 0;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(201, 169, 110, 0.05), transparent);
}

.buy-hero-lines span:nth-child(1) { left: 20%; }
.buy-hero-lines span:nth-child(2) { left: 40%; }
.buy-hero-lines span:nth-child(3) { left: 60%; }
.buy-hero-lines span:nth-child(4) { left: 80%; }

.buy-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 120px 0 80px;
}

.buy-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 80px;
  align-items: center;
}

.buy-hero-text {
  text-align: left;
}

.buy-hero-eyebrow {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--color-gold);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 2rem;
  opacity: 0;
  animation: buyFadeUp 0.6s ease 0.2s forwards;
}

.buy-hero-eyebrow::before {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--color-gold);
}

.buy-hero h1 {
  font-size: 4rem;
  font-weight: 200;
  color: var(--color-white);
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: buyFadeUp 0.8s ease 0.35s forwards;
}

.buy-hero h1 strong {
  font-weight: var(--weight-bold);
  display: block;
}

.buy-hero-desc {
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.9;
  max-width: 460px;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: buyFadeUp 0.7s ease 0.5s forwards;
}

.buy-hero-ctas {
  display: flex;
  gap: 14px;
  opacity: 0;
  animation: buyFadeUp 0.7s ease 0.65s forwards;
}

.buy-btn-gold {
  font-size: 0.72rem;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-navy);
  background: var(--color-gold);
  padding: 18px 40px;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s;
}

.buy-btn-gold:hover {
  background: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(201, 169, 110, 0.2);
}

.buy-btn-gold svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

.buy-btn-outline {
  font-size: 0.72rem;
  font-weight: var(--weight-medium);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  padding: 18px 32px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  transition: all 0.3s;
}

.buy-btn-outline:hover {
  color: var(--color-gold);
  border-color: rgba(201, 169, 110, 0.3);
}

.buy-hero-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  opacity: 0;
  animation: buyFadeUp 0.8s ease 0.8s forwards;
}

.buy-hero-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 26px 22px;
  text-align: center;
  transition: all 0.3s;
}

.buy-hero-card:hover {
  background: rgba(201, 169, 110, 0.06);
  border-color: rgba(201, 169, 110, 0.15);
  transform: translateY(-3px);
}

.buy-hero-card-icon {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.buy-hero-card h4 {
  font-size: 0.85rem;
  font-weight: var(--weight-semibold);
  color: var(--color-white);
  margin-bottom: 4px;
}

.buy-hero-card p {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.3);
  line-height: 1.4;
  margin: 0;
}

/* ===== WHY US ===== */
.buy-why {
  padding: 7rem 0;
  background: var(--color-off-white);
  text-align: center;
}

.buy-why h2 {
  font-size: 2.8rem;
  font-weight: var(--weight-medium);
  margin-bottom: 0.8rem;
}

.buy-why-sub {
  font-size: 1rem;
  font-weight: 300;
  color: var(--color-mid-gray);
  max-width: 580px;
  margin: 0 auto 4rem;
  line-height: 1.8;
}

.buy-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.buy-why-card {
  background: var(--color-white);
  border: 1px solid rgba(11, 29, 58, 0.04);
  border-radius: 12px;
  padding: 40px 28px;
  text-align: center;
  transition: all 0.35s;
  position: relative;
  overflow: hidden;
}

.buy-why-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-gold);
  transform: scaleX(0);
  transition: transform 0.35s;
  transform-origin: left;
}

.buy-why-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 50px rgba(11, 29, 58, 0.06);
}

.buy-why-card:hover::after {
  transform: scaleX(1);
}

.buy-why-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.buy-why-card h3 {
  font-size: 1.1rem;
  font-weight: var(--weight-semibold);
  color: var(--color-navy);
  margin-bottom: 10px;
}

.buy-why-card p {
  font-size: 0.88rem;
  color: var(--color-mid-gray);
  line-height: 1.7;
  margin: 0;
}

/* ===== SERVICES ===== */
.buy-services {
  padding: 7rem 0;
  background: var(--color-navy);
  position: relative;
  overflow: hidden;
}

.buy-services::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(to left, rgba(201, 169, 110, 0.02), transparent);
  pointer-events: none;
}

.buy-services-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  z-index: 1;
}

.buy-services-header h2 {
  color: var(--color-white);
  font-size: 2.8rem;
  font-weight: var(--weight-medium);
  margin-bottom: 0.8rem;
}

.buy-services-sub {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.3);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.8;
}

.buy-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1050px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.buy-service-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 44px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.buy-service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-gold);
  transform: scaleX(0);
  transition: transform 0.4s;
  transform-origin: left;
}

.buy-service-card:hover {
  transform: translateY(-8px);
  background: rgba(201, 169, 110, 0.05);
  border-color: rgba(201, 169, 110, 0.15);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
}

.buy-service-card:hover::before {
  transform: scaleX(1);
}

.buy-service-icon {
  font-size: 2.2rem;
  margin-bottom: 18px;
}

.buy-service-card h3 {
  font-size: 1.15rem;
  font-weight: var(--weight-semibold);
  color: var(--color-white);
  margin-bottom: 10px;
}

.buy-service-card p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.7;
  margin: 0 auto;
  max-width: 260px;
}

.buy-service-card:hover p {
  color: rgba(255, 255, 255, 0.55);
}

.buy-service-tag {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  background: rgba(201, 169, 110, 0.08);
  border: 1px solid rgba(201, 169, 110, 0.15);
  padding: 5px 14px;
  border-radius: 50px;
  margin-top: 16px;
}

/* ===== PROCESS ===== */
.buy-process {
  padding: 7rem 0;
  background: var(--color-off-white);
}

.buy-process-header {
  text-align: center;
  margin-bottom: 5rem;
}

.buy-process-header h2 {
  font-size: 2.8rem;
  font-weight: var(--weight-medium);
  margin-bottom: 0.8rem;
}

.buy-process-sub {
  font-size: 1rem;
  font-weight: 300;
  color: var(--color-mid-gray);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.8;
}

.buy-timeline {
  display: flex;
  justify-content: center;
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
}

.buy-step {
  flex: 1;
  text-align: center;
  padding: 0 18px;
  position: relative;
}

.buy-step::after {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(50% + 32px);
  width: calc(100% - 64px);
  height: 1px;
  background: linear-gradient(to right, rgba(201, 169, 110, 0.3), rgba(201, 169, 110, 0.05));
}

.buy-step:last-child::after {
  display: none;
}

.buy-step-dot {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-navy);
  border: 2px solid rgba(201, 169, 110, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1rem;
  font-weight: var(--weight-bold);
  color: var(--color-gold);
  transition: all 0.35s;
}

.buy-step:hover .buy-step-dot {
  background: var(--color-gold);
  color: var(--color-navy);
  border-color: var(--color-gold);
  transform: scale(1.1);
  box-shadow: 0 0 40px rgba(201, 169, 110, 0.2);
}

.buy-step h3 {
  font-size: 1rem;
  font-weight: var(--weight-semibold);
  color: var(--color-navy);
  margin-bottom: 8px;
}

.buy-step p {
  font-size: 0.82rem;
  color: var(--color-mid-gray);
  line-height: 1.6;
  max-width: 180px;
  margin: 0 auto;
}

/* ===== NEIGHBORHOODS ===== */
.buy-neighborhoods {
  padding: 7rem 0;
  background: var(--color-white);
  text-align: center;
}

.buy-neighborhoods h2 {
  font-size: 2.8rem;
  font-weight: var(--weight-medium);
  margin-bottom: 0.8rem;
}

.buy-neighborhoods-sub {
  font-size: 1rem;
  font-weight: 300;
  color: var(--color-mid-gray);
  max-width: 540px;
  margin: 0 auto 3.5rem;
  line-height: 1.8;
}

.buy-nb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
}

.buy-nb-card {
  background: var(--color-navy);
  border-radius: 10px;
  padding: 36px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.4s;
}

.buy-nb-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201, 169, 110, 0.06), transparent 70%);
  pointer-events: none;
}

.buy-nb-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(11, 29, 58, 0.15);
}

.buy-nb-card h4 {
  font-size: 1.1rem;
  font-weight: var(--weight-semibold);
  color: var(--color-white);
  margin-bottom: 6px;
  position: relative;
}

.buy-nb-card p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.5;
  margin: 0;
  position: relative;
}

.buy-nb-tag {
  font-size: 0.6rem;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-top: 12px;
  position: relative;
  display: block;
}

/* ===== TOOLS ===== */
.buy-tools {
  padding: 7rem 0;
  background: var(--color-navy-dark);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.buy-tools::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(201, 169, 110, 0.04), transparent 60%);
  pointer-events: none;
}

.buy-tools h2 {
  color: var(--color-white);
  font-size: 2.8rem;
  font-weight: var(--weight-medium);
  margin-bottom: 0.8rem;
  position: relative;
  z-index: 1;
}

.buy-tools-sub {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.3);
  max-width: 500px;
  margin: 0 auto 4rem;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

.buy-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.buy-tool-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 36px 24px;
  text-align: center;
  transition: all 0.35s;
}

.buy-tool-card:hover {
  background: rgba(201, 169, 110, 0.06);
  border-color: rgba(201, 169, 110, 0.15);
  transform: translateY(-4px);
}

.buy-tool-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.buy-tool-card h4 {
  font-size: 1rem;
  font-weight: var(--weight-semibold);
  color: var(--color-white);
  margin-bottom: 8px;
}

.buy-tool-card p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.6;
  margin: 0;
}

.buy-tool-card:hover p {
  color: rgba(255, 255, 255, 0.5);
}

/* ===== CTA ===== */
.buy-cta {
  padding: 7rem 0;
  background: var(--color-off-white);
  text-align: center;
}

.buy-cta h2 {
  font-size: 2.8rem;
  font-weight: var(--weight-medium);
  margin-bottom: 0.8rem;
}

.buy-cta-desc {
  font-size: 1rem;
  font-weight: 300;
  color: var(--color-mid-gray);
  max-width: 480px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

.buy-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.buy-cta-btn-gold {
  font-size: 0.72rem;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-navy);
  background: var(--color-gold);
  padding: 20px 48px;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s;
}

.buy-cta-btn-gold:hover {
  background: var(--color-navy);
  color: var(--color-white);
  transform: translateY(-2px);
}

.buy-cta-btn-gold svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

.buy-cta-btn-outline {
  font-size: 0.72rem;
  font-weight: var(--weight-medium);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-navy);
  padding: 20px 36px;
  border: 1.5px solid var(--color-navy);
  border-radius: 2px;
  transition: all 0.3s;
}

.buy-cta-btn-outline:hover {
  background: var(--color-navy);
  color: var(--color-white);
  transform: translateY(-2px);
}

/* ===== LEGAL ===== */
.buy-legal {
  padding: 2.5rem;
  background: var(--color-navy-dark);
  text-align: center;
}

.buy-legal-inner {
  max-width: 700px;
  margin: 0 auto;
}

.buy-legal-text {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.25);
  line-height: 1.7;
  margin: 0 auto;
}

/* ===== ANIMATIONS ===== */
@keyframes buyFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

[data-animate-stagger] > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-animate-stagger].is-visible > *:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.05s; }
[data-animate-stagger].is-visible > *:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.12s; }
[data-animate-stagger].is-visible > *:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.19s; }
[data-animate-stagger].is-visible > *:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.26s; }
[data-animate-stagger].is-visible > *:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 0.33s; }
[data-animate-stagger].is-visible > *:nth-child(6) { opacity: 1; transform: translateY(0); transition-delay: 0.40s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .buy-hero h1 {
    font-size: 2.8rem;
  }

  .buy-hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .buy-hero-text {
    text-align: center;
  }

  .buy-hero-eyebrow {
    justify-content: center;
  }

  .buy-hero-desc {
    margin: 0 auto 2.5rem;
  }

  .buy-hero-ctas {
    justify-content: center;
  }

  .buy-hero-cards {
    max-width: 400px;
    margin: 0 auto;
  }

  .buy-why-grid,
  .buy-services-grid,
  .buy-nb-grid,
  .buy-tools-grid {
    grid-template-columns: 1fr;
  }

  .buy-timeline {
    flex-direction: column;
    gap: 40px;
  }

  .buy-step::after {
    display: none;
  }

  .buy-hero-lines {
    display: none;
  }

  .buy-cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .buy-services-header h2,
  .buy-process-header h2,
  .buy-why h2,
  .buy-neighborhoods h2,
  .buy-tools h2,
  .buy-cta h2 {
    font-size: 2.2rem;
  }
}
