:root {
  --page: #ffffff;
  --ink: #2f363b;
  --muted: #737b82;
  --line: #dfe6eb;
  --soft: #f4f6f7;
  --topbar: #26323d;
  --black: #000000;
  --footer: #111b22;
  --gold: #f0a000;
  --gold-dark: #c98600;
  --button: #202a33;
  --container: 1110px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Lato, Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0 0 22px;
}

h1,
h2,
h3,
h4,
.site-nav,
.button,
.profile-name,
.listing-title {
  font-family: Montserrat, Arial, Helvetica, sans-serif;
  font-weight: 400;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 18px;
  color: #32383d;
  line-height: 1.25;
}

h1 {
  font-size: 36px;
}

h2 {
  font-size: 30px;
}

h3 {
  font-size: 24px;
}

h4 {
  font-size: 21px;
}

.h3-size {
  font-size: 24px;
}

.h4-size {
  font-size: 21px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

ul {
  margin: 0 0 24px 20px;
  padding: 0;
}

.container {
  width: min(var(--container), calc(100% - 44px));
  margin: 0 auto;
}

.topbar {
  background: var(--topbar);
  color: #b6c0c9;
  font-size: 13px;
}

.topbar .container {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.phone-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  white-space: nowrap;
}

.phone-line::before {
  content: "";
  width: 11px;
  height: 18px;
  border: 2px solid #ffffff;
  border-radius: 2px;
  opacity: 0.85;
}

.social-links {
  display: flex;
  flex: 0 0 auto;
  align-self: stretch;
  margin-left: auto;
}

.social-links a {
  min-width: 43px;
  display: grid;
  place-items: center;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  color: #c8d0d8;
  font-size: 11px;
  text-transform: uppercase;
}

.social-links a:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.header-main {
  background: var(--black);
}

.header-main .container {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  flex: 0 0 auto;
}

.brand img {
  width: 250px;
  height: auto;
}

.menu-toggle {
  display: none;
  width: 38px;
  height: 34px;
  border: 0;
  border-radius: 3px;
  background: #12a856;
  color: #ffffff;
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #ffffff;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  color: #85898d;
  font-size: 13px;
}

.site-nav a,
.site-nav .nav-trigger {
  display: block;
  padding: 31px 19px;
  color: #85898d;
  cursor: pointer;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav .nav-trigger:hover,
.site-nav .is-current {
  color: #ffffff;
}

.nav-item {
  position: relative;
}

.subnav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 30;
  min-width: 215px;
  background: #1b2228;
  border-top: 2px solid var(--gold);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.22);
}

.subnav a {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-item:hover .subnav,
.nav-item:focus-within .subnav {
  display: block;
}

.main {
  padding: 50px 0 72px;
}

.home-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.hero-logo {
  width: min(100%, 540px);
  margin: 0 0 24px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 35px;
  padding: 10px 16px;
  border-radius: 3px;
  border: 1px solid transparent;
  background: var(--gold);
  color: #241d06;
  font-size: 12px;
  line-height: 1;
  text-transform: none;
}

.button:hover {
  background: var(--gold-dark);
}

.button.dark {
  background: var(--button);
  color: #ffffff;
}

.button.dark:hover {
  background: #10171d;
  color: #ffffff;
}

.button.light {
  background: #ffffff;
  border-color: #cbd3d9;
  color: #32383d;
}

.two-column-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 28px;
}

.section-title {
  margin-top: 74px;
  margin-bottom: 32px;
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 34px;
}

.staff-card {
  min-height: 474px;
  margin-bottom: 2px;
  padding: 0 0 36px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #ffffff;
  text-align: center;
  overflow: hidden;
}

.staff-card figure {
  width: 245px;
  height: 319px;
  margin: 0 auto 25px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
}

.staff-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-name {
  margin: 0 20px 3px;
  color: #676767;
  font-size: 18px;
}

.profile-role {
  margin: 0 20px 10px;
  color: #5f6f7e;
  font-size: 13px;
}

.profile-details {
  margin: 0 20px 20px;
  color: #6d6d6d;
  font-size: 13px;
  line-height: 1.8;
}

.page-header {
  margin-bottom: 34px;
}

.page-header p {
  max-width: 760px;
}

.content-box {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #ffffff;
}

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

.owner-columns h4,
.commercial-card h3 {
  color: #333333;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #6a6d6f;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.toolbar div {
  padding: 10px 14px;
}

.toolbar select {
  height: 28px;
  margin-left: 8px;
  border: 0;
  background: #ffffff;
  color: #4b5054;
}

.listing-shell {
  background: #ecf0f2;
  padding: 0 6px 6px;
}

.listing-heading {
  padding: 20px;
  text-align: center;
}

.listing-heading h1,
.listing-heading h2 {
  margin-bottom: 0;
  font-size: 26px;
}

.listing-heading p {
  margin: 0;
  font-weight: 700;
  color: #565d62;
}

.listing-card {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: 28px;
  margin-bottom: 24px;
  padding: 20px;
  background: #ffffff;
}

.listing-card img {
  width: 245px;
  height: 170px;
  object-fit: cover;
}

.listing-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(100px, 1fr));
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.listing-facts div {
  padding: 0 12px 11px 0;
  border-right: 1px solid var(--line);
}

.listing-facts div:last-child {
  border-right: 0;
}

.listing-facts span {
  display: block;
  color: #768087;
  font-size: 11px;
  text-transform: uppercase;
}

.listing-facts strong {
  display: block;
  color: #343b40;
  font-size: 22px;
  line-height: 1.2;
}

.listing-title {
  margin: 0 0 2px;
  font-size: 20px;
  font-weight: 700;
}

.listing-address {
  margin-bottom: 22px;
  color: #727b82;
}

.listing-actions,
.commercial-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 16px;
}

.commercial-list {
  display: grid;
  gap: 24px;
}

.commercial-card {
  padding: 28px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.commercial-card:first-child {
  border-top: 0;
}

.commercial-card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin: 0 0 16px;
  color: #58626a;
}

.location-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 36px;
}

.map-frame {
  width: 100%;
  min-height: 320px;
  border: 0;
}

.contact-form {
  display: grid;
  gap: 16px;
}

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

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  color: #4e565d;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cfd8df;
  border-radius: 3px;
  padding: 11px 12px;
  color: #2f363b;
  font: inherit;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.profile-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 42px;
  align-items: start;
}

.profile-layout img {
  width: 310px;
  max-height: 360px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.footer-visual {
  min-height: 54px;
  background:
    linear-gradient(rgba(18, 29, 38, 0.86), rgba(18, 29, 38, 0.86)),
    url("assets/commercial-office.jpg") center / cover;
}

.site-footer {
  background: var(--footer);
  color: #a7b3bc;
  font-size: 11px;
}

.site-footer .container {
  padding: 26px 0;
}

.site-footer a {
  color: #e3c581;
  text-decoration: underline;
}

.route-note {
  margin-top: 22px;
  padding: 14px 16px;
  border-left: 3px solid var(--gold);
  background: #fff8ea;
  color: #63543b;
  font-size: 14px;
}

@media (max-width: 1050px) {
  .site-nav a,
  .site-nav .nav-trigger {
    padding-inline: 11px;
  }

  .home-intro,
  .location-grid {
    gap: 32px;
  }
}

@media (max-width: 880px) {
  .container {
    width: min(100% - 30px, var(--container));
  }

  .topbar .container {
    min-height: 34px;
  }

  .social-links a {
    min-width: 28px;
    font-size: 9px;
  }

  .header-main .container {
    min-height: 72px;
  }

  .brand img {
    width: 210px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 106px;
    left: 0;
    right: 0;
    z-index: 40;
    flex-direction: column;
    align-items: stretch;
    background: #000000;
    border-top: 1px solid #1c1c1c;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a,
  .site-nav .nav-trigger {
    padding: 13px 18px;
    border-top: 1px solid #171717;
  }

  .nav-item:hover .subnav,
  .nav-item:focus-within .subnav {
    display: none;
  }

  .subnav {
    display: block;
    position: static;
    min-width: 0;
    box-shadow: none;
    border-top: 0;
    background: #0f0f0f;
  }

  .subnav a {
    padding-left: 34px;
  }

  .main {
    padding-top: 28px;
  }

  .home-intro,
  .columns,
  .location-grid,
  .profile-layout {
    grid-template-columns: 1fr;
  }

  .two-column-mini,
  .form-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .staff-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .staff-card {
    max-width: 430px;
    margin-inline: auto;
  }

  .listing-card {
    grid-template-columns: 1fr;
  }

  .listing-card img {
    width: 100%;
    height: auto;
    max-height: 240px;
  }

  .listing-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .listing-facts div:nth-child(2) {
    border-right: 0;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 14px;
  }

  h1,
  h2 {
    font-size: 24px;
  }

  h3 {
    font-size: 20px;
  }

  .topbar .container {
    align-items: stretch;
    gap: 8px;
    width: 100%;
    padding-left: 11px;
    padding-right: 0;
  }

  .phone-line {
    flex: 1 1 auto;
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .social-links {
    gap: 0;
  }

  .social-links a {
    min-width: 26px;
  }

  .social-links a:nth-child(4),
  .social-links a:nth-child(5) {
    display: none;
  }

  .brand img {
    width: 188px;
  }

  .hero-logo {
    width: 100%;
  }

  .staff-card figure {
    width: 245px;
    height: 319px;
  }

  .content-box,
  .commercial-card {
    padding: 20px;
  }

  .toolbar {
    display: none;
  }

  .listing-shell {
    padding: 0;
    background: #ffffff;
  }

  .listing-card {
    border: 1px solid var(--line);
  }

  .listing-facts {
    grid-template-columns: 1fr 1fr;
  }

  .listing-facts strong {
    font-size: 18px;
  }
}

@media (max-width: 360px) {
  .social-links a:not(:last-child) {
    display: none;
  }
}
