:root {
  --ink: #0b172a;
  --muted: #465467;
  --navy: #071225;
  --cream: #f4f6f9;
  --line: #c8d0dc;
  --white: #ffffff;
  --accent: #e2a24b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "DM Sans", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.site-header {
  color: var(--white);
  background: var(--navy);
}

.header-inner,
.footer-inner,
.copyright,
.businesses-section {
  width: min(100% - 40px, 1120px);
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-mark,
.footer-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: #f7f8f5;
}

.brand-mark img,
.footer-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-nav a,
.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f1f3f7;
  font-size: 0.86rem;
  font-weight: 600;
  transition: color 180ms ease;
}

.site-nav a::after {
  width: 5px;
  height: 5px;
  content: "";
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.footer-link:hover,
.footer-link:focus-visible {
  color: var(--accent);
}

.businesses-section {
  padding-top: 76px;
  padding-bottom: 96px;
}

.section-heading {
  margin-bottom: 38px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: #9a5316;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--ink);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.35rem, 8vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
}

.heading-rule {
  display: block;
  width: 38px;
  height: 2px;
  margin: 21px auto 0;
  background: var(--accent);
}

.business-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.business-card {
  position: relative;
  display: flex;
  min-height: 238px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 25px 24px 23px;
  border: 2px solid var(--line);
  border-radius: 3px;
  background: var(--white);
  isolation: isolate;
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.business-card::after {
  position: absolute;
  z-index: -1;
  right: -35px;
  bottom: -65px;
  width: 165px;
  height: 165px;
  border: 1px solid currentColor;
  border-radius: 50%;
  content: "";
  opacity: 0.11;
  transition: transform 300ms ease;
}

.business-card:hover,
.business-card:focus-visible {
  border-color: currentColor;
  box-shadow: 0 16px 35px rgba(14, 27, 49, 0.1);
  outline: none;
  transform: translateY(-4px);
}

.business-card:hover::after,
.business-card:focus-visible::after {
  transform: scale(1.24);
}

.card-academy {
  color: #075985;
  background: #edf8ff;
}

.card-vision {
  color: #9a3412;
  background: #fff3ed;
}

.card-travels {
  color: #047857;
  background: #edfcf5;
}

.card-publication {
  color: #6d28d9;
  background: #f5efff;
}

.card-number {
  color: #4b5b70;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.card-icon {
  position: absolute;
  top: 18px;
  right: 25px;
  color: currentColor;
  font-family: Georgia, serif;
  font-size: 2.9rem;
  font-weight: 400;
  line-height: 1;
  opacity: 0.55;
}

.card-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.card-title {
  color: var(--ink);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.card-description {
  max-width: 230px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 22px;
  color: currentColor;
  font-size: 0.78rem;
  font-weight: 700;
}

.card-link span {
  font-size: 1rem;
  transition: transform 180ms ease;
}

.business-card:hover .card-link span,
.business-card:focus-visible .card-link span {
  transform: translate(2px, -2px);
}

.site-footer {
  color: #f1f3f7;
  background: var(--navy);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  gap: 20px;
}

.footer-brand {
  font-size: 0.93rem;
}

.footer-mark {
  width: 29px;
  height: 29px;
}

.footer-link {
  font-size: 0.78rem;
}

.copyright {
  margin-top: 0;
  margin-bottom: 0;
  padding: 0 0 24px;
  color: #8590a2;
  font-size: 0.68rem;
}

@media (min-width: 620px) {
  .header-inner,
  .footer-inner,
  .copyright,
  .businesses-section {
    width: min(100% - 64px, 1120px);
  }

  .businesses-section {
    padding-top: 100px;
  }

  .business-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .business-card {
    min-height: 272px;
    padding: 28px 28px 26px;
  }
}

@media (min-width: 920px) {
  .header-inner {
    min-height: 88px;
  }

  .businesses-section {
    padding-top: 118px;
    padding-bottom: 136px;
  }

  .section-heading {
    margin-bottom: 50px;
  }

  .business-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  .business-card {
    min-height: 350px;
    padding: 25px 24px 26px;
  }

  .card-title {
    font-size: 1.52rem;
  }

  .card-icon {
    top: 23px;
    right: 24px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
