:root {
  --bs-font-sans-serif: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bs-body-font-family: var(--bs-font-sans-serif);
  --bs-body-font-size: 0.875rem;
  --bs-body-line-height: 1.4;
  --bs-body-font-weight: 400;
}

body {
  letter-spacing: -0.01em;
}

.home-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.home-brand .gas-mark {
  display: inline-block;
  width: 40px;
  height: 48px;
}

.home-brand .gas-mark svg {
  width: 100%;
  height: 100%;
}

.home-brand .fw-bold {
  font-size: 1.45rem !important;
  letter-spacing: -0.025em;
}

.home-nav {
  box-shadow: 0 1px 0 rgba(var(--bs-emphasis-color-rgb), 0.08);
  position: relative;
  z-index: 5;
}

.instruction-hero {
  background: linear-gradient(115deg, #e6f1fb, #f1f7fc 74%);
  min-height: clamp(52rem, 61vw, 60rem);
  overflow: hidden;
  position: relative;
}

.home-property-image {
  background: url("/static/images/gosurveyors-property-hero.png") left top / cover no-repeat;
  bottom: 0;
  height: 64%;
  left: 0;
  /* Fade the photograph itself so the hero's exact background shows through. */
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 38%);
  mask-image: linear-gradient(to bottom, transparent, #000 38%);
  pointer-events: none;
  position: absolute;
  width: 100%;
  z-index: 0;
}

[data-bs-theme="dark"] .instruction-hero {
  background: linear-gradient(115deg, #182c43, var(--bs-body-bg) 74%);
}

[data-bs-theme="dark"] .home-property-image {
  opacity: 0.6;
}

.home-introduction {
  position: relative;
  z-index: 1;
}

.instruction-hero .eyebrow {
  color: var(--bs-secondary-color);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.instruction-hero h1 {
  color: #0b1630;
  font-size: clamp(3.3rem, 5.2vw, 5.65rem);
  letter-spacing: -0.055em;
  line-height: 0.96;
  max-width: 100%;
}

[data-bs-theme="dark"] .instruction-hero h1 {
  color: var(--bs-heading-color);
}

.instruction-hero .lead {
  /* The chosen design leads straight from the headline to the three benefits. */
  display: none;
}

.instruction-card {
  background: var(--bs-body-bg);
  border-radius: 0.8rem;
  position: relative;
  z-index: 2;
}

.instruction-card .form-label {
  font-weight: 600;
}

.instruction-card .form-control,
.instruction-card .form-select {
  min-height: 44px;
}

.home-benefits {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2.25rem;
}

.home-benefits > div {
  align-items: center;
  display: flex;
  gap: 0.8rem;
}

.home-benefits > div > span,
.success-icon {
  align-items: center;
  background: var(--bs-primary-bg-subtle);
  border-radius: 50%;
  color: var(--bs-primary);
  display: inline-flex;
  flex: 0 0 2.75rem;
  font-size: 1.15rem;
  height: 2.75rem;
  justify-content: center;
}

.home-benefits strong {
  display: block;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
}

.success-icon {
  background: var(--bs-success-bg-subtle);
  color: var(--bs-success);
  font-size: 2rem;
  height: 4rem;
  width: 4rem;
}

@media (max-width: 1199.98px) {
  .home-benefits {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991.98px) {
  .instruction-hero {
    min-height: 0;
  }

  .home-property-image {
    height: 32rem;
    top: 12rem;
    bottom: auto;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 35%, #000 65%, transparent);
    mask-image: linear-gradient(to bottom, transparent, #000 35%, #000 65%, transparent);
    opacity: 0.25;
  }

  .home-benefits {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .instruction-hero h1 {
    font-size: 3.25rem;
  }

  .home-benefits {
    grid-template-columns: 1fr;
  }
}

.home-hero {
  min-height: calc(100vh - 150px);
  background: linear-gradient(135deg, var(--bs-body-bg) 0%, var(--bs-tertiary-bg) 100%);
}

.home-hero .eyebrow {
  color: var(--bs-secondary-color);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.home-hero h1 {
  max-width: 12ch;
  letter-spacing: -0.04em;
}

.home-hero .lead {
  max-width: 38rem;
  line-height: 1.7;
}

.home-panel {
  background: color-mix(in srgb, var(--bs-body-bg) 92%, var(--bs-primary) 8%);
}

.home-panel-icon {
  align-items: center;
  background: var(--bs-primary-bg-subtle);
  border-radius: 0.75rem;
  color: var(--bs-primary);
  display: inline-flex;
  font-size: 1.5rem;
  height: 3rem;
  justify-content: center;
  width: 3rem;
}

.home-footer {
  background-color: var(--bs-body-bg);
}

.hover-primary {
  transition: color 0.15s ease-in-out;
}

.hover-primary:hover {
  color: var(--bs-primary) !important;
}

.tracking-wider {
  letter-spacing: 0.08em;
  font-size: 0.75rem;
}

.w-fit {
  width: fit-content;
}

.about-hero,
.contact-hero {
  background: linear-gradient(135deg, var(--bs-body-bg) 0%, var(--bs-tertiary-bg) 100%);
}

.about-hero h1,
.contact-hero h1 {
  letter-spacing: -0.04em;
}

[data-bs-theme="dark"] .about-hero,
[data-bs-theme="dark"] .contact-hero {
  background: linear-gradient(135deg, #182c43 0%, var(--bs-body-bg) 100%);
}
