:root {
  --ink: #2f2f2f;
  --muted: #696969;
  --paper: #ffffff;
  --line: #d9d9d9;
  --nav: #e8e8e8;
  --accent: #486f8c;
  --accent-dark: #25475f;
  --footer: #565656;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background: #f7f7f7;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

a {
  color: var(--accent-dark);
}

.wrap {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  padding: 34px 0 0;
  text-align: center;
}

h1 {
  margin: 0;
  color: #222;
  font-size: clamp(2rem, 4.4vw, 2.375rem);
  line-height: 1.25;
  font-weight: 700;
}

.tagline {
  margin: 6px 0 26px;
  color: #3f3f3f;
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  justify-content: center;
  border-top: 1px solid var(--line);
  background: var(--nav);
}

.main-nav a {
  min-height: 44px;
  padding: 13px 17px;
  color: #333;
  border-left: 1px solid #cfcfcf;
  font-size: 0.875rem;
  text-decoration: none;
  white-space: nowrap;
}

.main-nav a:last-child {
  border-right: 1px solid #cfcfcf;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background: #f8f8f8;
  color: #000;
}

.social-links {
  position: fixed;
  z-index: 2;
  right: 20px;
  top: 48%;
  display: grid;
  gap: 9px;
}

.social-links a {
  display: block;
  width: 26px;
  height: 26px;
}

.social-links img {
  width: 100%;
  height: 100%;
  display: block;
}

.hero {
  min-height: 620px;
  padding: 52px 0 72px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.86)),
    repeating-linear-gradient(135deg, #eeeeee 0, #eeeeee 2px, #f8f8f8 2px, #f8f8f8 12px);
}

.content-page {
  min-height: 720px;
  padding: 48px 0 72px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.88)),
    repeating-linear-gradient(135deg, #eeeeee 0, #eeeeee 2px, #f8f8f8 2px, #f8f8f8 12px);
}

.hero-panel {
  max-width: 620px;
  padding: 34px 42px 38px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #e1e1e1;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.profile-panel {
  max-width: 760px;
  padding: 34px 48px 42px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #e1e1e1;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.08);
}

.seller-panel {
  max-width: 900px;
  min-height: 560px;
  padding: 26px 26px 10px;
  color: #001f4f;
  background: #fff;
  border-bottom: 4px solid #062a5c;
  border-radius: 0 0 18px 18px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.08);
}

.services-panel {
  min-height: 680px;
  padding-bottom: 44px;
}

.testimonials-panel {
  min-height: 560px;
  padding-bottom: 0;
}

.contact-panel {
  max-width: 880px;
  min-height: 640px;
  padding: 18px 42px 18px;
}

.hero h2,
.hero h3,
.profile-panel h2,
.profile-copy h3 {
  margin: 0;
  color: var(--accent);
  font-size: 1.5rem;
  line-height: 1.3;
  text-align: center;
}

.document-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.document-heading h2 {
  margin: 0;
  color: #001f4f;
  font-size: 1.625rem;
  line-height: 1.2;
}

.contact-title {
  margin: 0 0 26px;
  color: #001f4f;
  font-size: 1.55rem;
  line-height: 1.25;
}

.realtor-logo {
  width: 40px;
  height: auto;
  display: block;
  flex: 0 0 auto;
}

.house-banner {
  width: min(600px, 100%);
  height: 130px;
  margin: 32px auto 48px;
  border: 1px solid #777;
  box-shadow: 0 3px 7px rgba(0, 0, 0, 0.35);
  background:
    linear-gradient(rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.04)),
    url("https://images.unsplash.com/photo-1564013799919-ab600027ffc6?auto=format&fit=crop&w=1200&q=80");
  background-position: center 37%;
  background-size: cover;
  filter: grayscale(0.25) saturate(0.75);
}

.services-banner {
  width: min(585px, 100%);
  height: 132px;
  margin: 34px auto 28px;
  border: 1px solid #d2d2d2;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.26);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.05)),
    url("https://images.unsplash.com/photo-1560518883-ce09059eeffa?auto=format&fit=crop&w=1200&q=80");
  background-position: center 50%;
  background-size: cover;
}

.testimonials-banner {
  width: min(580px, 100%);
  height: 132px;
  margin: 34px auto 38px;
  border: 1px solid #d2d2d2;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.26);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.03)),
    url("https://images.unsplash.com/photo-1560518883-ce09059eeffa?auto=format&fit=crop&w=1200&q=80");
  background-position: center 58%;
  background-size: cover;
}

.team-strip {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 24px;
  margin: 28px auto 20px;
}

.profile-team {
  max-width: 520px;
  text-align: center;
}

figure {
  margin: 0;
}

figure img {
  width: 150px;
  height: 172px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

figcaption {
  margin-top: 8px;
  font-size: 0.875rem;
  font-weight: 700;
}

.brand-mark {
  width: 125px;
  height: 114px;
  object-fit: contain;
  align-self: center;
}

.intro {
  margin: 20px 0 18px;
  text-align: left;
  font-size: 1rem;
}

.callout {
  margin: 0 0 8px;
  font-size: 0.75rem;
  font-style: italic;
}

.brokerage {
  margin: 0;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
}

.profile-copy {
  margin: 28px auto 20px;
  max-width: 650px;
  color: #343434;
}

.profile-copy h3 {
  margin-top: 30px;
  text-transform: uppercase;
}

.profile-copy h4 {
  margin: 18px 0 6px;
  color: #333;
  font-size: 1rem;
}

.profile-copy p {
  margin: 0;
  font-size: 1rem;
}

.seller-copy {
  max-width: 830px;
  margin: 0 auto 64px;
}

.services-copy {
  margin-bottom: 0;
}

.seller-copy h3 {
  margin: 0 0 6px;
  color: #001f4f;
  font-size: 1rem;
  line-height: 1.25;
}

.seller-copy .center-title {
  margin: 0 0 2px;
  text-align: center;
  text-transform: uppercase;
}

.seller-copy h4 {
  margin: 0 0 6px;
  color: #001f4f;
  font-size: 1rem;
  line-height: 1.25;
}

.services-copy h4 {
  margin-top: 16px;
}

.seller-copy p {
  margin: 0 0 18px 24px;
  color: #111;
  font-size: 0.94rem;
  line-height: 1.28;
}

.testimonial-list {
  max-width: 810px;
  margin: 0 auto 64px;
  color: #111;
}

.testimonial-list figure {
  margin: 0 0 30px;
}

.testimonial-list blockquote {
  margin: 0 0 3px;
  color: #111;
  font-size: 0.94rem;
  line-height: 1.35;
}

.testimonial-list figcaption {
  margin: 0 0 0 12px;
  color: #001f4f;
  font-size: 0.875rem;
  font-weight: 700;
}

.contact-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  align-items: center;
  gap: 164px;
  margin: 0 0 48px;
}

.contact-card img {
  width: 150px;
  height: 172px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.25);
}

.contact-details h3 {
  margin: 0 0 2px;
  color: #001f4f;
  font-size: 1rem;
}

.contact-details p {
  margin: 0;
  color: #111;
  font-size: 1rem;
  line-height: 1.28;
}

.contact-details a {
  color: #111;
  text-decoration: underline;
}

.office-block {
  margin-top: 28px;
  text-align: center;
}

.office-logo {
  width: 140px;
  max-width: 100%;
  height: auto;
  margin-bottom: 12px;
}

.office-team {
  margin: 0 0 6px;
  color: #001f4f;
  font-size: 1rem;
  font-style: italic;
  font-weight: 700;
}

.office-address {
  margin: 6px 0 0;
  color: #001f4f;
  font-size: 0.875rem;
  font-weight: 700;
}

.site-footer {
  padding: 24px 16px;
  color: #fff;
  background: var(--footer);
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

@media (max-width: 760px) {
  .header-inner {
    padding-top: 24px;
  }

  .tagline {
    font-size: 1rem;
  }

  .main-nav {
    flex-wrap: wrap;
  }

  .main-nav a {
    flex: 1 1 33.333%;
    border-bottom: 1px solid #cfcfcf;
  }

  .social-links {
    position: static;
    display: flex;
    justify-content: center;
    padding: 16px 0 0;
    background: var(--paper);
  }

  .hero {
    padding-top: 28px;
  }

  .hero-panel,
  .profile-panel {
    padding: 28px 20px 32px;
  }

  .seller-panel {
    padding: 22px 18px 10px;
  }

  .contact-panel {
    padding: 22px 18px 24px;
  }

  .house-banner {
    height: 96px;
    margin: 24px auto 34px;
  }

  .services-banner {
    height: 100px;
    margin: 28px auto 24px;
  }

  .testimonials-banner {
    height: 100px;
    margin: 28px auto 30px;
  }

  .seller-copy p {
    margin-left: 0;
  }

  .contact-title {
    text-align: center;
  }

  .contact-card {
    grid-template-columns: 1fr;
    gap: 16px;
    justify-items: center;
    margin-bottom: 34px;
    text-align: center;
  }

  .team-strip {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .brand-mark {
    justify-self: center;
    order: 2;
  }
}
