/* Buy Page Template Styles */

/* Page hero */
.page-hero {
  position: relative;
  background: var(--deepest-blue);
  color: white;
  padding: var(--space-xl) 0 var(--space-lg);
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 20% 30%, rgba(124, 181, 214, 0.15) 0%, transparent 65%),
    radial-gradient(ellipse 80% 60% at 80% 70%, rgba(43, 90, 140, 0.3) 0%, transparent 70%);
  z-index: 0;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero-eyebrow {
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--light-blue);
  font-size: 1rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  color: white;
  line-height: 1.15;
  font-weight: 500;
  margin-bottom: var(--space-sm);
  max-width: 900px;
}

.page-hero h1 em {
  color: var(--light-blue);
  font-style: italic;
}

.page-hero-lede {
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
  max-width: 720px;
}

/* Search bar */
.search-bar {
  background: white;
  padding: var(--space-md) 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  margin-top: -2rem;
  position: relative;
  z-index: 2;
}

.search-bar-inner {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--sand);
  box-shadow: 0 8px 30px rgba(27, 58, 92, 0.1);
}

.search-form {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-end;
  flex-wrap: wrap;
}

.search-group {
  flex: 1;
  min-width: 150px;
}

.search-group.search-group-main {
  flex: 2.5;
}

.search-group label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-light);
  font-weight: 700;
  margin-bottom: 6px;
}

.search-group input,
.search-group select {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.88rem;
  background: white;
  color: var(--text);
  transition: border-color 0.2s;
}

.search-group input:focus,
.search-group select:focus {
  outline: 2px solid var(--light-blue);
  outline-offset: 1px;
  border-color: var(--light-blue);
  box-shadow: 0 0 0 3px rgba(124, 181, 214, 0.15);
}

.search-group input::placeholder {
  color: var(--text-lighter);
}

.search-submit {
  background: var(--deepest-blue);
  color: white;
  border: none;
  padding: 0.7rem 2rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.search-submit:hover {
  background: var(--dark-blue);
}

.idx-note {
  font-size: 0.75rem;
  color: var(--text-lighter);
  margin-top: 0.85rem;
  text-align: center;
}

/* Why Linda - broker value prop */
.why-linda {
  padding: var(--space-xl) 0;
  background: var(--warm-white);
}

.why-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.why-header .eyebrow {
  display: block;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.why-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--sand);
  transition: all 0.3s;
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(27, 58, 92, 0.08);
  border-color: var(--lightest-blue);
}

.why-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--ice-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.why-card-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--dark-blue);
  fill: none;
  stroke-width: 1.5;
}

.why-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--deepest-blue);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.why-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.65;
}

/* New construction feature */
.new-construction {
  padding: var(--space-xl) 0;
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

.new-construction::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/linda-lemay-icon-watermark.png') right -60px center / 420px no-repeat;
  opacity: 0.04;
  pointer-events: none;
}

.new-construction .container {
  position: relative;
  z-index: 1;
}

.nc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.nc-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(27, 58, 92, 0.2);
}

.nc-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  color: var(--deepest-blue);
  line-height: 1.2;
  font-weight: 500;
  margin-bottom: 1rem;
}

.nc-text h2 em {
  color: var(--dark-blue);
  font-style: italic;
}

.nc-text p {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.nc-benefits {
  margin: 1.5rem 0;
}

.nc-benefit {
  display: flex;
  gap: 0.9rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--sand);
}

.nc-benefit:last-child {
  border-bottom: none;
}

.nc-benefit-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green-accent-text);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.85rem;
  font-weight: 700;
}

.nc-benefit-text {
  flex: 1;
}

.nc-benefit-text strong {
  display: block;
  color: var(--deepest-blue);
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.nc-benefit-text span {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.55;
}

/* Buyer journey */
.buyer-journey {
  padding: var(--space-xl) 0;
  background: white;
}

.journey-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.journey-header .eyebrow {
  display: block;
}

.journey-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.journey-step {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  position: relative;
  border-top: 3px solid var(--dark-blue);
}

.journey-step-num {
  position: absolute;
  top: -18px;
  left: 1.5rem;
  width: 36px;
  height: 36px;
  background: var(--deepest-blue);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
}

.journey-step h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--deepest-blue);
  margin: 0.75rem 0 0.5rem;
  font-weight: 500;
}

.journey-step p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* Listings placeholder */
.listings-section {
  padding: var(--space-xl) 0;
  background: var(--warm-white);
}

.listings-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
  gap: 1rem;
}

.idx-placeholder {
  background: var(--cream);
  border: 2px dashed var(--lightest-blue);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
}

.idx-placeholder h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--deepest-blue);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.idx-placeholder p {
  font-size: 0.95rem;
  color: var(--text-light);
  max-width: 520px;
  margin: 0 auto 1rem;
}

.idx-placeholder code {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: white;
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  color: var(--dark-blue);
}

/* Resources strip */
.resources {
  padding: var(--space-lg) 0;
  background: var(--cream);
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.resource-card {
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--sand);
  transition: all 0.2s;
  display: block;
}

.resource-card:hover {
  border-color: var(--light-blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(27, 58, 92, 0.08);
}

.resource-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--deepest-blue);
  margin-bottom: 0.35rem;
  font-weight: 500;
}

.resource-card p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.55;
  margin-bottom: 0.5rem;
}

.resource-card-arrow {
  font-size: 0.85rem;
  color: var(--dark-blue);
  font-weight: 600;
}

/* CTA */
.cta-section {
  padding: var(--space-xl) 0;
  background: var(--deepest-blue);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(124, 181, 214, 0.15) 0%, transparent 70%);
  z-index: 0;
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  color: white;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.cta-section h2 em {
  color: var(--light-blue);
  font-style: italic;
}

.cta-section p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 640px;
  margin: 0 auto 2rem;
}

.cta-section .btn-warm {
  border: none;
  background: white;
}

.cta-ctas {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 960px) {
  .why-grid {
    grid-template-columns: 1fr;
  }

  .nc-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .journey-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .resources-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .page-hero {
    padding: var(--space-lg) 0;
  }

  .search-form {
    flex-direction: column;
    align-items: stretch;
  }

  .resources-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .journey-steps {
    grid-template-columns: 1fr;
  }
}
