:root {
  --midnight: #1f2235;
  --gold: #ffd10f;
  --white: #ffffff;
  --light: #f8f9fa;
  --text: #222534;
  --muted: #6d7280;
  --sans: "Albert Sans", Arial, sans-serif;
  --serif: "Newsreader", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.55;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  padding: 0 clamp(24px, 8vw, 92px);
  background: transparent;
  transition: min-height 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  min-height: 68px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 30px rgba(31, 34, 53, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: 210px;
  transition: width 180ms ease;
}

.site-header.is-scrolled .brand img,
.site-header.is-open .brand img {
  width: 170px;
}

.primary-nav {
  display: flex;
  gap: clamp(18px, 2.5vw, 34px);
  align-items: center;
}

.primary-nav a {
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
}

.site-header.is-scrolled .primary-nav a,
.site-header.is-open .primary-nav a {
  color: var(--midnight);
}

.primary-nav a:hover,
.primary-nav a:focus {
  color: var(--gold);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 2px;
  background: transparent;
}

.menu-toggle span:not(.screen-reader-text) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--white);
}

.site-header.is-scrolled .menu-toggle,
.site-header.is-open .menu-toggle {
  border-color: rgba(31, 34, 53, 0.3);
}

.site-header.is-scrolled .menu-toggle span:not(.screen-reader-text),
.site-header.is-open .menu-toggle span:not(.screen-reader-text) {
  background: var(--midnight);
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(31, 34, 53, 0.92), rgba(31, 34, 53, 0.72) 48%, rgba(31, 34, 53, 0.55)),
    url("../img/house-bg.jpg") center / cover no-repeat;
}

.hero-content {
  width: min(100% - 48px, 780px);
  margin-left: clamp(24px, 14vw, 190px);
  padding-top: 68px;
  color: var(--white);
}

.hero h1 {
  margin: 0 0 14px;
  color: var(--white);
  font-family: var(--serif);
  font-size: clamp(2.25rem, 3.35vw, 3.25rem);
  font-weight: 700;
  line-height: 1.08;
}

.hero p {
  max-width: 610px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.08rem;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 2px;
  padding: 0 28px;
  color: #1a1c28;
  background: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.button:hover,
.button:focus-visible {
  color: var(--white);
  background: var(--midnight);
  box-shadow: 0 10px 24px rgba(31, 34, 53, 0.18);
  transform: translateY(-1px);
  outline: none;
}

.hero .button:hover,
.hero .button:focus-visible {
  color: var(--midnight);
  background: var(--white);
}

.button.small {
  min-height: 44px;
  padding: 0 24px;
  font-size: 0.78rem;
}

.section {
  padding: clamp(84px, 9vw, 136px) 24px;
}

.section-title {
  width: min(100%, 760px);
  margin: 0 auto 56px;
  text-align: center;
}

.section-title span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.section-title h2,
.copy h2 {
  margin: 0 0 14px;
  color: #11131d;
  font-size: clamp(1.75rem, 2.5vw, 2.35rem);
  font-weight: 700;
  line-height: 1.18;
}

.section-title p {
  margin: 0;
  color: var(--muted);
}

.services,
.contact {
  background: var(--light);
}

.services {
  background:
    linear-gradient(180deg, rgba(255, 209, 15, 0.08), rgba(255, 255, 255, 0) 240px),
    var(--light);
}

.services .section-title span {
  color: var(--midnight);
}

.services .section-title h2,
.service-box h3 {
  color: var(--midnight);
}

.services .section-title p,
.service-box p {
  color: #111111;
}

.service-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px 46px;
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: clamp(46px, 5vw, 68px);
  background: var(--white);
  border-top: 6px solid var(--gold);
  box-shadow: 0 20px 54px rgba(31, 34, 53, 0.12);
}

.service-box article {
  text-align: center;
}

.icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(255, 209, 15, 0.18);
}

.icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: var(--midnight);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.service-box h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 800;
}

.service-box p {
  max-width: 255px;
  margin: 0 auto;
  font-size: 0.95rem;
}

.companies {
  display: grid;
  gap: clamp(82px, 10vw, 132px);
  width: min(100% - 56px, 1060px);
  margin: 0 auto;
}

.company {
  display: grid;
  grid-template-columns: 460px minmax(0, 1fr);
  align-items: center;
  gap: clamp(54px, 8vw, 110px);
}

.logo-wrap a {
  display: block;
}

.logo-wrap img {
  width: min(100%, 500px);
  margin: 0 auto;
}

.logo-wrap.logo-wide img {
  width: min(100%, 360px);
}

.copy p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 1.02rem;
}

.copy ul {
  margin: 0 0 18px;
  padding-left: 18px;
  color: #242837;
  font-size: 0.98rem;
}

.copy .button {
  display: flex;
  width: fit-content;
}

.onepoint {
  overflow: hidden;
  background: #fbfbfb;
}

.onepoint-title span {
  color: var(--midnight);
}

.onepoint-experience {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(360px, 520px) minmax(260px, 340px);
  grid-template-rows: auto auto auto;
  gap: 34px 54px;
  width: min(100% - 56px, 1280px);
  margin: 44px auto 0;
  align-items: center;
  justify-content: center;
}

.onepoint-card {
  position: relative;
  z-index: 3;
  display: flex;
  min-height: 132px;
  align-items: center;
  gap: 22px;
  padding: 28px 24px;
  border: 1px solid rgba(28, 69, 109, 0.06);
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 16px 18px rgba(0, 86, 153, 0.06), 0 20px 44px rgba(0, 86, 153, 0.14);
  color: inherit;
  text-decoration: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.onepoint-card:hover,
.onepoint-card:focus-within {
  border-color: rgba(28, 69, 109, 0.18);
  box-shadow: 0 16px 18px rgba(0, 86, 153, 0.08), 0 24px 50px rgba(0, 86, 153, 0.18);
  transform: translateY(-3px);
}

.onepoint-card:hover .onepoint-icon,
.onepoint-card:focus-within .onepoint-icon {
  color: var(--midnight);
}

.onepoint-card-home {
  grid-column: 1;
  grid-row: 1;
}

.onepoint-card-title {
  grid-column: 3;
  grid-row: 1;
}

.onepoint-card-finance {
  grid-column: 1;
  grid-row: 2;
}

.onepoint-card-insurance {
  grid-column: 3;
  grid-row: 2;
}

.onepoint-card-closing {
  grid-column: 2;
  grid-row: 3;
  width: min(335px, 100%);
  justify-self: center;
}

.onepoint-icon {
  display: grid;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  place-items: center;
  color: var(--midnight);
}

.onepoint-icon svg {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.onepoint-card h3 {
  margin: 0 0 6px;
  color: #19191c;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.onepoint-card p {
  margin: 0;
  color: #555556;
  font-size: 0.9rem;
  line-height: 1.35;
}

.onepoint-badge {
  position: relative;
  z-index: 1;
  grid-column: 2;
  grid-row: 1 / span 2;
  width: min(100%, 520px);
  aspect-ratio: 543 / 539;
  justify-self: center;
}

.onepoint-wheel {
  position: absolute;
  inset: 0;
  animation: onepoint-spin 34s linear infinite;
  transform-origin: 50% 50%;
  will-change: transform;
}

.onepoint-orbit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 12px 10px rgba(0, 86, 153, 0.08)) drop-shadow(0 18px 24px rgba(0, 86, 153, 0.12)) drop-shadow(0 28px 46px rgba(0, 86, 153, 0.1));
  pointer-events: auto;
}

.onepoint-sector {
  cursor: pointer;
  outline: none;
}

.onepoint-sector path {
  fill: var(--midnight);
  transition: fill 180ms ease, filter 180ms ease;
}

.onepoint-sector:hover path,
.onepoint-sector:focus-visible path {
  fill: #11131d;
}

.onepoint-star {
  fill: #ffffff;
  pointer-events: none;
}

.onepoint-arrow {
  fill: var(--gold);
  pointer-events: none;
}

.onepoint-badge:hover .onepoint-wheel,
.onepoint-badge:focus-within .onepoint-wheel {
  animation-play-state: paused;
}

.orbit-logo,
.onepoint-center {
  position: absolute;
  z-index: 2;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.orbit-logo-realty {
  top: 9%;
  left: 50%;
  width: 25%;
  transform: translate(-50%, -50%);
}

.orbit-logo-lending {
  top: 38%;
  left: 12%;
  width: 27%;
  transform: translate(-50%, -50%) rotate(-72deg);
}

.orbit-logo-insurance {
  top: 39%;
  left: 88%;
  width: 30%;
  transform: translate(-50%, -50%) rotate(72deg);
}

.orbit-logo-midland {
  top: 82%;
  left: 27%;
  width: 28%;
  transform: translate(-50%, -50%) rotate(-144deg);
}

.orbit-logo-title {
  top: 83%;
  left: 74%;
  width: 26%;
  transform: translate(-50%, -50%) rotate(144deg);
}

.onepoint-center {
  top: 50%;
  left: 50%;
  width: 41%;
  transform: translate(-50%, -50%);
}

@keyframes onepoint-spin {
  to {
    transform: rotate(360deg);
  }
}

.copy li + li {
  margin-top: 5px;
}

.copy li::marker {
  color: var(--gold);
}

.contact .section-title {
  margin-bottom: 0;
}

.contact .button {
  margin-top: 22px;
}

.site-footer {
  padding: 72px 24px 36px;
  color: rgba(255, 255, 255, 0.72);
  background: var(--midnight);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 440px) minmax(120px, 190px);
  justify-content: space-between;
  gap: 48px;
  width: min(100%, 860px);
  margin: 0 auto;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 1rem;
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
}

.site-footer a {
  text-decoration: none;
  transition: color 180ms ease, transform 180ms ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--gold);
  outline: none;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  margin-top: 22px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #ffffff;
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.social-links a:hover,
.social-links a:focus-visible {
  transform: translateY(-1px);
}

.social-links a::before {
  display: inline-flex;
  width: auto;
  min-width: 0;
  color: var(--gold);
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1;
}

.social-links a:first-child::before {
  content: "i";
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  transform: translateY(-1px);
}

.social-links a:last-child::before {
  content: "in";
  font-size: 1.05rem;
}

.site-footer nav {
  display: grid;
  align-content: start;
  gap: 8px;
}

.footer-bottom {
  width: min(100%, 860px);
  margin: 52px auto 0;
  text-align: center;
}

.footer-bottom p {
  margin: 0 0 8px;
  font-size: 0.72rem;
}

.footer-bottom img {
  display: inline-block;
  width: auto;
  height: 19px;
  margin-left: 5px;
  vertical-align: middle;
}

@media (max-width: 820px) {
  .site-header {
    min-height: 70px;
    padding: 0 18px;
    background: rgba(31, 34, 53, 0.96);
  }

  .brand img {
    width: 154px;
  }

  .site-header.is-scrolled .brand img,
  .site-header.is-open .brand img {
    width: 154px;
  }

  .menu-toggle {
    display: block;
  }

  .primary-nav {
    position: absolute;
    top: 70px;
    right: 18px;
    left: 18px;
    display: none;
    gap: 13px;
    padding: 18px;
    background: var(--midnight);
    box-shadow: 0 18px 44px rgba(31, 34, 53, 0.2);
  }

  .primary-nav.is-open {
    display: grid;
  }

  .primary-nav a,
  .site-header.is-scrolled .primary-nav a,
  .site-header.is-open .primary-nav a {
    color: var(--white);
  }

  .primary-nav a:hover,
  .primary-nav a:focus-visible,
  .site-header.is-scrolled .primary-nav a:hover,
  .site-header.is-scrolled .primary-nav a:focus-visible,
  .site-header.is-open .primary-nav a:hover,
  .site-header.is-open .primary-nav a:focus-visible {
    color: var(--gold);
    outline: none;
  }

  .hero {
    min-height: 100vh;
  }

  .hero-content {
    width: min(100% - 36px, 620px);
    margin: 0 auto;
  }

  .hero h1 {
    font-size: clamp(2.05rem, 8.5vw, 3rem);
  }

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

  .company {
    grid-template-columns: 1fr;
    gap: 26px;
    text-align: left;
  }

  .logo-wrap img {
    margin-right: 0;
    margin-left: 0;
  }

  .copy ul {
    display: block;
    text-align: left;
  }

  .onepoint-experience {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 18px;
  }

  .onepoint-badge,
  .onepoint-card,
  .onepoint-card-home,
  .onepoint-card-title,
  .onepoint-card-finance,
  .onepoint-card-insurance,
  .onepoint-card-closing {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
  }

  .onepoint-badge {
    order: 1;
    width: min(100%, 520px);
    margin-inline: auto;
  }

  .onepoint-card-home {
    order: 2;
  }

  .onepoint-card-title {
    order: 3;
  }

  .onepoint-card-finance {
    order: 4;
  }

  .onepoint-card-insurance {
    order: 5;
  }

  .onepoint-card-closing {
    order: 6;
  }
}

@media (max-width: 520px) {
  .section {
    padding: 62px 18px;
  }

  .hero {
    min-height: 100vh;
  }

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

  .service-box {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 34px 24px;
  }

  .companies {
    width: min(100% - 36px, 880px);
  }

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

  .onepoint-card {
    align-items: flex-start;
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .onepoint-wheel {
    animation: none;
  }
}
