:root {
  color-scheme: light;
  --text: #373737;
  --service-background: #f4f4f4;
  --service-icon: #777474;
  --footer-background: #222;
  --footer-text: #c6c6c6;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: "Trebuchet MS", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}

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

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

.skip-link:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1;
  padding: 12px 18px;
  background: var(--footer-background);
  color: #fff;
}

.site-header {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  height: clamp(140px, 13.1vw, 200px);
  padding-top: 24px;
}

.brand {
  display: block;
  width: 142px;
}

/* Keep the portraits and square photographs at their original proportions. */
.campaign-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(16px, 1.94vw, 32px);
  row-gap: clamp(64px, 9.6vw, 150px);
  padding-bottom: clamp(120px, 18.65vw, 280px);
}

.campaign-grid > img {
  width: 100%;
}

.campaign-grid > img:nth-child(-n + 3) {
  width: calc(100% - 10px);
  margin-inline: 5px;
}

.customer-services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: 208px;
  padding: 12px 16px 22px;
  background: var(--service-background);
  text-align: center;
}

.service {
  min-width: 0;
}

.service-link {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-icon {
  display: block;
  width: 74px;
  height: 74px;
  color: var(--service-icon);
}

.service h2 {
  margin: 1px 0 10px;
  font-size: clamp(24px, 2.42vw, 32px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.2;
}

.service p {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.45;
  letter-spacing: .6px;
}

.service p:last-child {
  margin-bottom: 0;
}

.site-footer {
  background: var(--footer-background);
  color: var(--footer-text);
}

.footer-main {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding: 98px 16px 30px;
}

.footer-main h2 {
  margin: 0 0 38px;
  font-family: Arial, sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.4;
  text-transform: uppercase;
}

.footer-brand {
  display: inline-block;
  width: 96px;
  margin: 18px 0 56px 5px;
}

.footer-brand img {
  width: 100%;
  filter: invert(1);
}

.footer-contact address {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-style: normal;
}

.footer-contact address a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: .8px;
  overflow-wrap: anywhere;
}

.footer-contact address svg {
  flex-shrink: 0;
  width: 13px;
  height: 13px;
  color: #fff;
}

.footer-links ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li {
  font-size: 14px;
  line-height: 1.65;
  letter-spacing: .8px;
}

.footer-social {
  position: relative;
  padding-bottom: 48px;
}

.social-links {
  display: flex;
  gap: 8px;
  margin-left: -3px;
  color: #fff;
}

.social-links a,
.back-to-top {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
}

.social-links svg {
  width: 25px;
  height: 25px;
}

.social-links a:hover {
  opacity: .7;
}

.back-to-top {
  position: absolute;
  right: 4px;
  bottom: 8px;
  color: #fff;
}

.back-to-top svg {
  width: 24px;
  height: 24px;
}

.copyright {
  padding: 12px 16px;
  background: #737572;
  color: #fff;
  text-align: center;
}

.copyright small {
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: .8px;
}

@media (min-width: 1800px) {
  .footer-main {
    padding-inline: 40px;
  }
}

@media (max-width: 900px) {
  .customer-services {
    padding-inline: 12px;
  }

  .service h2 {
    font-size: 23px;
  }

  .service p {
    font-size: 13px;
    letter-spacing: .2px;
  }

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px 32px;
    padding: 56px 32px 32px;
  }

  .footer-main h2 {
    margin-bottom: 24px;
  }

  .footer-brand {
    margin: 5px 0 30px;
  }
}

@media (max-width: 600px) {
  .site-header {
    height: 120px;
    padding-top: 28px;
  }

  .brand {
    width: 132px;
  }

  .campaign-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 0 16px 72px;
  }

  .campaign-grid > img:nth-child(-n + 3) {
    width: 100%;
    margin: 0;
  }

  .customer-services {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    padding: 30px 16px 36px;
  }

  .service-icon {
    width: 64px;
    height: 64px;
  }

  .service h2 {
    font-size: 27px;
  }

  .service p {
    font-size: 15px;
  }

  .footer-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    padding: 42px 24px 24px;
  }

  .footer-main h2 {
    margin-bottom: 18px;
    font-size: 19px;
  }

  .footer-brand {
    width: 110px;
    margin-bottom: 24px;
  }

  .footer-links li {
    padding-block: 5px;
  }

  .footer-contact address a {
    min-height: 32px;
  }

  .footer-social {
    padding-bottom: 12px;
  }

  .back-to-top {
    right: 0;
    bottom: 12px;
  }

  .copyright small {
    font-size: 11px;
    letter-spacing: .5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
