:root {
  --black: #0e0e0e;
  --charcoal: #1c1c1c;
  --warm-gray: #6e6e6e;
  --light-gray: #f5f5f5;
  --cream: #f2ede6;
  --beige: #e4d8c8;
  --accent-gold: #c2a46d;
  --white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.6;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 10px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(14, 14, 14, 0.92);
  z-index: 1000;
  transition: transform 0.45s ease-in-out;
  will-change: transform;
}

.header.hide {
  transform: translateY(-100%);
}

.logo a {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.logo-img {
  height: 100px;
  width: auto;
  display: block;
  object-fit: contain;
}

.logo span {
  color: var(--white);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 1px;
  white-space: nowrap;
}

.nav a {
  color: var(--white);
  text-decoration: none;
  margin-left: 28px;
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--accent-gold);
}

.hero {
  position: relative;
  height: 100vh;
  min-height: 650px;
  overflow: hidden;
  background: url("images/hero-fallback.jpg") center/cover no-repeat;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.hero-overlay {
  position: relative;
  z-index: 1;
  height: 100%;
  background: linear-gradient(
    rgba(14, 14, 14, 0.55),
    rgba(14, 14, 14, 0.78)
  );
  display: flex;
  align-items: center;
  padding: 0 8%;
}

.hero-content {
  max-width: 780px;
  color: var(--white);
  padding-top: 80px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-gold);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: 3.8rem;
  line-height: 1.1;
  margin-bottom: 22px;
  font-weight: 500;
}

.hero p {
  font-size: 1.15rem;
  color: #dcdcdc;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  border: none;
  letter-spacing: 0.5px;
  transition: all 0.25s ease;
}

.primary {
  background: var(--accent-gold);
  color: var(--black);
}

.primary:hover {
  background: #d0b27a;
  transform: translateY(-2px);
}

.secondary {
  border: 1px solid var(--white);
  color: var(--white);
}

.secondary:hover {
  background: var(--white);
  color: var(--black);
  transform: translateY(-2px);
}

.quick-search {
  background: var(--white);
  padding: 60px 8%;
  text-align: center;
}

.quick-search h2 {
  font-size: 2rem;
  margin-bottom: 30px;
}

.search-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.search-card {
  padding: 26px;
  background: var(--black);
  color: var(--white);
  text-decoration: none;
  font-size: 1.2rem;
  transition: all 0.25s ease;
}

.search-card:hover {
  background: var(--accent-gold);
  color: var(--black);
  transform: translateY(-2px);
}

.section {
  padding: 90px 8%;
}

.section h2 {
  font-size: 2.4rem;
  margin-bottom: 20px;
  font-weight: 500;
}

.section p {
  margin-bottom: 18px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  background: var(--white);
}

.image-box {
  width: 100%;
  overflow: hidden;
  background: var(--light-gray);
}

.image-box img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center top;
}

.cards,
.property-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 30px;
}

.neighborhoods .cards {
  grid-template-columns: repeat(4, 1fr);
}

.card,
.property-card {
  background: var(--white);
  padding: 28px;
  border: 1px solid #e6e0d6;
}

.card h3,
.property-card h3 {
  color: var(--black);
  margin-bottom: 10px;
}

.property-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  margin-bottom: 16px;
}

.dark {
  background: var(--black);
  color: var(--white);
}

.dark h2 {
  color: var(--white);
}

.valuation {
  padding: 80px 8%;
  background: var(--charcoal);
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.valuation h2 {
  color: var(--white);
}

.seo-section {
  background: var(--white);
}

.testimonial {
  background: var(--light-gray);
  padding: 90px 12%;
  text-align: center;
}

.contact {
  background: var(--black);
  color: var(--white);
  text-align: center;
}

.contact h2 {
  color: var(--white);
}

.fs-form {
  max-width: 950px;
  margin: 38px auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  text-align: left;
}

.fs-form fieldset {
  border: 1px solid rgba(194, 164, 109, 0.45);
  background: rgba(255, 255, 255, 0.05);
  padding: 24px;
  min-width: 0;
}

.fs-form fieldset:last-of-type {
  grid-column: 1 / -1;
}

.fs-form legend {
  color: var(--accent-gold);
  font-weight: 700;
  letter-spacing: 1px;
  padding: 0 8px;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.fs-field {
  margin-bottom: 16px;
}

.fs-field:last-child {
  margin-bottom: 0;
}

.fs-label {
  display: block;
  color: var(--white);
  margin-bottom: 8px;
  font-size: 0.95rem;
  font-weight: 600;
}

.fs-input,
.fs-select,
.fs-textarea {
  width: 100%;
  display: block;
  padding: 14px;
  border: 1px solid rgba(194, 164, 109, 0.35);
  background: var(--white);
  color: var(--charcoal);
  font-size: 1rem;
  font-family: inherit;
  border-radius: 0;
}

.fs-input:focus,
.fs-select:focus,
.fs-textarea:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 2px rgba(194, 164, 109, 0.25);
}

.fs-textarea {
  min-height: 150px;
  resize: vertical;
}

.fs-button-group {
  grid-column: 1 / -1;
  text-align: center;
}

.fs-button {
  background: var(--accent-gold);
  color: var(--black);
  padding: 14px 36px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: all 0.25s ease;
  font-family: inherit;
}

.fs-button:hover {
  background: #d0b27a;
  transform: translateY(-2px);
}

.footer {
  background: #080808;
  color: var(--white);
  text-align: center;
  padding: 40px 8%;
}

.footer h3 {
  color: var(--accent-gold);
  margin-bottom: 10px;
}

.footer p {
  margin-bottom: 8px;
}

@media (max-width: 1100px) {
  .neighborhoods .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .header {
  flex-direction: column;
  gap: 8px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 8px 5%;
}

  .logo a {
    justify-content: center;
  }

  .logo-img {
    height: 72px;
    width: auto;
  }

  .logo span {
    font-size: 1.1rem;
  }

  .nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .nav a {
    margin: 0;
    font-size: 0.9rem;
  }

  .hero {
    min-height: 600px;
  }

  .hero-content {
    padding-top: 0;
  }

  .split,
  .cards,
  .property-grid,
  .search-cards,
  .neighborhoods .cards,
  .fs-form {
    grid-template-columns: 1fr;
  }

  .valuation {
    flex-direction: column;
    text-align: center;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    text-align: center;
  }

  .fs-form fieldset:last-of-type {
    grid-column: auto;
  }
}

@media (max-width: 600px) {
  .hero-video {
    display: none;
  }

  .hero {
    min-height: 560px;
  }

  .hero p {
    font-size: 1rem;
  }

  .section {
    padding: 70px 6%;
  }

  .fs-form fieldset {
    padding: 18px;
  }

  .logo-img {
    height: 64px;
  }

  .logo span {
    font-size: 1rem;
  }
}
