/* Exact HBU lockup: original H icon, divider and horizontal company name. */
.main-nav .login-button {
  padding: 0 22px;
  background: #155eef;
  border: 1px solid #155eef;
  border-radius: 9px;
  color: #fff;
  justify-content: center;
}

.main-nav .login-button:hover {
  background: #104bc5;
  color: #fff;
}

.application-image img {
  position: absolute;
  inset: 0;
  object-position: 55% center;
}

.hero-trust > div,
.hero-trust > div:first-child,
.hero-trust > div:last-child {
  border: 0;
}

.brand {
  gap: 14px;
  white-space: nowrap;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.brand .brand-divider {
  display: block;
  width: 1px;
  height: 35px;
  flex: 0 0 auto;
  background: #bdc4cc;
  line-height: normal;
}

.brand .brand-name {
  font: 800 22px/1 Manrope, sans-serif;
  letter-spacing: .055em;
  color: #111820;
}

.footer-brand .brand-divider {
  background: #596677;
}

.footer-brand .brand-name {
  color: #fff;
  font-size: 18px;
}

.sell-nav {
  min-height: auto;
  padding: 0;
  display: inline;
  border-radius: 0;
  background: transparent;
  color: inherit;
}

.main-nav .sell-nav:hover {
  background: transparent;
  color: #155eef;
}

.sell-section {
  max-width: 1224px;
  min-height: 650px;
  margin: 0 auto 100px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  overflow: hidden;
  border-radius: 16px;
  background: #081d3b;
  color: #fff;
}

.sell-copy {
  padding: 64px 58px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.sell-copy h2 {
  margin: 0;
  font: 800 clamp(38px,4.5vw,58px)/1.06 Manrope, sans-serif;
  letter-spacing: -.045em;
}

.sell-copy > p:not(.eyebrow) {
  max-width: 660px;
  margin: 22px 0 28px;
  color: #d3dfef;
  font-size: 18px;
}

.sell-points {
  width: 100%;
  margin-bottom: 30px;
  display: grid;
}

.sell-points > span {
  min-height: 80px;
  display: grid;
  grid-template-columns: 36px minmax(0,1fr);
  align-content: center;
  column-gap: 12px;
  border-top: 1px solid #344966;
}

.sell-points b {
  grid-row: 1/3;
  color: #80aaff;
  font: 800 13px Manrope, sans-serif;
}

.sell-points strong,
.sell-points small {
  display: block;
}

.sell-points small {
  margin-top: 2px;
  color: #afbed0;
  font-size: 14px;
}

.sell-button {
  color: #0b2b68;
}

.sell-image {
  position: relative;
  min-height: 650px;
}

.sell-image > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sell-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg,rgba(3,15,33,.68),transparent 60%);
}

.sell-image > div {
  position: absolute;
  z-index: 2;
  left: 28px;
  right: 28px;
  bottom: 28px;
  padding: 22px;
  display: grid;
  gap: 5px;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 12px;
  background: rgba(5,22,47,.72);
  backdrop-filter: blur(10px);
}

.sell-image small {
  margin-bottom: 7px;
  color: #aec8f7;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
}

.sell-image strong {
  font-size: 18px;
}

@media (max-width: 1020px) {
  .menu-toggle {
    width: 46px;
    height: 46px;
    display: grid;
    align-content: center;
    gap: 5px;
    padding: 0 11px;
    border: 0;
    border-radius: 8px;
    background: #f0f3f7;
  }

  .menu-toggle span {
    height: 2px;
    background: #111820;
  }

  .main-nav {
    position: fixed;
    top: 84px;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 25px 20px 40px;
    display: none;
    align-items: stretch;
    background: #fff;
  }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .main-nav > a {
    width: 100%;
    min-height: 58px;
    display: flex;
    align-items: center;
    border: 0;
    border-bottom: 1px solid #dce2e9;
    border-radius: 0;
    background: #fff;
    color: #111820;
    font-size: 17px;
    text-align: left;
  }

  .main-nav .sell-nav {
    margin-top: 0;
    padding: 0;
    justify-content: flex-start;
    border-bottom: 1px solid #dce2e9;
    border-radius: 0;
    background: #fff;
    color: #111820;
  }
}

@media (max-width: 780px) {
  .brand {
    gap: 9px;
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .brand .brand-divider {
    height: 29px;
  }

  .brand .brand-name {
    font-size: 16px;
    letter-spacing: .035em;
  }

  .main-nav {
    top: 72px;
  }

  .sell-section {
    min-height: 0;
    margin: 0 17px 72px;
    grid-template-columns: 1fr;
  }

  .sell-copy {
    padding: 44px 26px;
  }

  .sell-copy h2 {
    font-size: 39px;
  }

  .sell-copy > p:not(.eyebrow) {
    font-size: 17px;
  }

  .sell-image {
    min-height: 450px;
  }
}

/* Fordelene ligger som en rolig, lesbar avslutning på hovedbildet. */
.hero-trust {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 24px;
  width: min(1224px,calc(100% - 56px));
  max-width: none;
  margin: 0;
  padding: 0;
  transform: translateX(-50%);
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.8);
}

.hero-trust > div {
  min-height: 92px;
  padding: 18px 28px;
  border: 0;
}

.hero-trust > div:first-child {
  border-left: 0;
}

.hero-trust > div > span {
  background: transparent;
  color: #8db5ff;
}

.hero-trust strong {
  color: #fff;
}

.hero-trust small {
  color: #c8d3e1;
}

.hero-contact {
  bottom: 118px;
}

.homes-section {
  padding-top: 72px;
}

/* Næringslokaler administreres fra Drift og vises i en egen, tydelig del. */
.commercial-section {
  max-width: 1224px;
  margin: 0 auto 88px;
  padding: 64px;
  border-radius: 16px;
  background: #0b203d;
  color: #fff;
}

.commercial-heading {
  margin-bottom: 32px;
}

.commercial-heading h2 {
  color: #fff;
}

.commercial-heading > p {
  color: #c6d3e4;
}

.commercial-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 20px;
}

.commercial-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  min-height: 350px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 13px;
  background: #fff;
  color: #111820;
}

.commercial-card > img {
  width: 100%;
  height: 100%;
  min-height: 350px;
  object-fit: cover;
}

.commercial-card > div {
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.commercial-card div > span {
  color: #155eef;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
}

.commercial-card div > strong {
  margin-top: 18px;
  font: 800 30px/1 Manrope,sans-serif;
}

.commercial-card h3 {
  margin: 7px 0 12px;
  font: 800 23px/1.14 Manrope,sans-serif;
}

.commercial-card p {
  margin: 0 0 24px;
  color: #5c6877;
  line-height: 1.55;
}

.commercial-card a {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  color: #155eef;
  font-weight: 800;
  text-decoration: none;
}

.commercial-contact {
  margin-top: 20px;
  padding: 20px 0 0;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 28px;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,.2);
}

.commercial-contact div {
  display: grid;
  gap: 4px;
}

.commercial-contact small {
  color: #91b8ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
}

.commercial-contact a {
  min-height: 44px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 9px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 1020px) {
  .commercial-card {
    grid-template-columns: 1fr;
  }

  .commercial-card > img {
    height: 230px;
    min-height: 0;
  }
}

@media (max-width: 780px) {
  .hero {
    height: 790px;
  }

  .hero-contact {
    display: none;
  }

  .hero-trust {
    width: calc(100% - 34px);
    padding: 0;
    grid-template-columns: 1fr;
  }

  .hero-trust > div {
    min-height: 66px;
    padding: 11px 18px;
    border-left: 0;
    border-top: 0;
  }

  .hero-trust > div:first-child {
    border-top: 0;
  }

  .hero-trust small {
    margin-top: 0;
    font-size: 14px;
  }

  .homes-section {
    padding-top: 56px;
  }

  .commercial-section {
    margin: 0 17px 64px;
    padding: 42px 22px;
  }

  .commercial-heading {
    margin-bottom: 26px;
  }

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

  .commercial-card {
    min-height: 0;
  }

  .commercial-card > div {
    padding: 25px;
  }

  .commercial-contact {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .commercial-contact a {
    justify-content: center;
  }
}

@media (max-width: 390px) {
  .hero {
    height: 820px;
  }
}

@media (max-width: 390px) {
  .brand img {
    width: 37px;
    height: 37px;
  }

  .brand .brand-divider {
    height: 27px;
  }

  .brand .brand-name {
    font-size: 14px;
  }

  .sell-copy {
    padding: 40px 22px;
  }

  .sell-image {
    min-height: 400px;
  }
}

/* Clear section rhythm and live FINN listings. */
.homes-section {
  padding-top: 88px;
  padding-bottom: 88px;
}

.listing-card {
  display: block;
  color: #111820;
  text-decoration: none;
}

.listing-card .home-card-body {
  display: flex;
  min-height: 285px;
  flex-direction: column;
}

.listing-card .listing-source {
  color: #155eef;
}

.listing-card .listing-title {
  min-height: 52px;
  margin-bottom: 18px;
}

.listing-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  padding: 14px 0 18px;
  border-top: 1px solid #dce2e9;
  color: #5b6878;
  font-size: 14px;
}

.listing-meta strong {
  width: 100%;
  color: #111820;
  font-size: 17px;
}

.listing-link {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  color: #155eef;
  font-weight: 800;
}

.application-section {
  margin-bottom: 88px;
}

.sell-section {
  margin-bottom: 88px;
}

.help-section {
  padding-top: 0;
  padding-bottom: 88px;
}

.about-card {
  gap: 18px;
}

.about-card > p {
  margin: 0;
  font-size: 16px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 8px;
  padding: 18px 0;
  border-top: 1px solid #dce2e9;
  border-bottom: 1px solid #dce2e9;
}

.about-stats span {
  display: grid;
  gap: 3px;
}

.about-stats strong {
  font: 800 25px/1 Manrope,sans-serif;
  color: #111820;
}

.about-stats small {
  color: #657284;
}

.contact-section {
  max-width: 1224px;
  margin: 0 auto 88px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  overflow: hidden;
  border: 1px solid #dce2e9;
  border-radius: 16px;
  background: #fff;
}

.contact-intro,
.contact-people {
  padding: 52px;
}

.contact-intro h2 {
  max-width: 560px;
  margin: 8px 0 16px;
  font: 800 clamp(35px,4vw,50px)/1.08 Manrope,sans-serif;
  letter-spacing: -.04em;
}

.contact-intro > p:not(.eyebrow) {
  max-width: 610px;
  margin: 0;
  color: #5b6878;
  font-size: 17px;
}

.contact-lines {
  margin-top: 32px;
  display: grid;
  gap: 0;
}

.contact-lines a {
  padding: 15px 0;
  display: grid;
  gap: 3px;
  border-top: 1px solid #dce2e9;
  color: #111820;
  text-decoration: none;
}

.contact-lines a:hover strong {
  color: #155eef;
}

.contact-lines small {
  color: #6b7786;
  font-size: 13px;
}

.contact-lines strong {
  font-size: 17px;
}

.contact-people {
  background: #f3f6fa;
}

.contact-people article {
  margin-top: 18px;
  padding: 22px;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 17px;
  align-items: center;
  border: 1px solid #dce2e9;
  border-radius: 12px;
  background: #fff;
}

.person-initials {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #0b2b68;
  color: #fff;
  font: 800 15px Manrope,sans-serif;
}

.contact-people h3 {
  margin: 0 0 3px;
  font: 800 19px Manrope,sans-serif;
}

.contact-people article p {
  margin: 0 0 5px;
  color: #657284;
}

.contact-people article a {
  color: #155eef;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 780px) {
  .homes-section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .listing-card .home-card-body {
    min-height: 0;
  }

  .listing-card .listing-title {
    min-height: 0;
  }

  .application-section {
    margin-bottom: 64px;
  }

  .sell-section {
    margin-bottom: 64px;
  }

  .help-section {
    padding-top: 0;
    padding-bottom: 64px;
  }

  .about-stats {
    gap: 12px;
  }

  .about-stats strong {
    font-size: 22px;
  }

  .about-stats small {
    font-size: 12px;
  }

  .contact-section {
    margin: 0 17px 64px;
    grid-template-columns: 1fr;
  }

  .contact-intro,
  .contact-people {
    padding: 34px 26px;
  }

  .contact-intro h2 {
    font-size: 36px;
  }
}

/* Endelig rytme etter at fordelene ble flyttet inn i hovedbildet. */
.homes-section {
  padding-top: 72px;
}

@media (max-width: 780px) {
  .homes-section {
    padding-top: 56px;
  }
}
