@font-face {
  font-family: "Flama Light";
  src:
    url("assets/fonts/Flama-Light.woff") format("woff"),
    url("assets/fonts/Flama-Light.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Flama Basic";
  src:
    url("assets/fonts/Flama-Basic.woff") format("woff"),
    url("assets/fonts/Flama-Basic.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Flama Medium";
  src:
    url("assets/fonts/Flama-Medium.woff") format("woff"),
    url("assets/fonts/Flama-Medium.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --green: #bacc21;
  --ink: #222222;
  --muted: #686868;
  --line: #d6d6d6;
  --gray: #f2f2f2;
  --black: #000000;
  --white: #ffffff;
  --fl: "Flama Light", Arial, sans-serif;
  --fb: "Flama Basic", Arial, sans-serif;
  --fm: "Flama Medium", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --page-pad: 1.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--fl);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}

.top {
  padding: 1.5rem var(--page-pad) 0.25rem;
  text-align: center;
  animation: rise 0.55s var(--ease) both;
}

.top__logo {
  width: min(160px, 58vw);
  height: auto;
}

.intro {
  width: min(720px, calc(100% - (var(--page-pad) * 2)));
  margin: 0 auto;
  padding: 1.25rem 0 1.75rem;
  text-align: center;
  animation: rise 0.6s var(--ease) 0.06s both;
}

.intro__title {
  margin: 0;
  font-family: var(--fm);
  font-size: clamp(1.35rem, 5.2vw, 2rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--green);
  text-wrap: balance;
}

.intro__title span {
  color: inherit;
}

.intro__lead {
  margin: 0.85rem 0 0;
  font-family: var(--fl);
  font-size: clamp(0.95rem, 3.4vw, 1.05rem);
  line-height: 1.5;
  color: var(--muted);
  text-wrap: pretty;
}

.firms {
  width: 100%;
  margin: 0 auto;
  padding: 0.5rem var(--page-pad) 2.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: var(--gray);
  animation: rise 0.7s var(--ease) 0.12s both;
}

.firm {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.75rem 0.25rem;
  border-bottom: 1px solid var(--line);
}

.firm:last-child {
  border-bottom: 0;
  padding-bottom: 0.5rem;
}

.firm__name {
  margin: 0 0 1rem;
  font-family: var(--fm);
  font-size: clamp(1.1rem, 4vw, 1.25rem);
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
}

.firm__logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 280px;
  min-height: 96px;
  height: auto;
  margin-bottom: 1.15rem;
  padding: 0.85rem 1rem;
  background: var(--white);
  text-decoration: none;
  transition: opacity 0.25s ease, transform 0.3s var(--ease);
}

.firm__logo-link--dark {
  background: var(--black);
}

.firm__logo-link:hover,
.firm__logo-link:focus-visible {
  opacity: 0.88;
  transform: translateY(-2px);
  outline: none;
}

.firm__logo-link:focus-visible {
  box-shadow: 0 0 0 2px var(--green);
}

.firm__logo-link img {
  display: block;
  max-width: 100%;
  max-height: 72px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.firm__logo--leitner {
  max-height: 52px !important;
}

.firm__contact {
  margin: 0 0 1.25rem;
  width: 100%;
  max-width: 22rem;
  font-style: normal;
  font-family: var(--fl);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.firm__contact a {
  color: var(--ink);
  text-decoration: none;
}

.firm__contact a:hover,
.firm__contact a:focus-visible {
  color: var(--green);
  outline: none;
}

.firm__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 280px;
  min-height: 48px;
  padding: 0.85rem 1.25rem;
  font-family: var(--fb);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--black);
  background: var(--green);
  transition: background-color 0.25s ease, color 0.25s ease;
}

.firm__cta:hover,
.firm__cta:focus-visible {
  background: var(--black);
  color: var(--white);
  outline: none;
}

@media (min-width: 640px) {
  :root {
    --page-pad: 1.75rem;
  }

  .top {
    padding-top: 2rem;
  }

  .top__logo {
    width: min(180px, 40vw);
  }

  .intro {
    padding: 1.5rem 0 2.25rem;
  }

  .firms {
    padding: 1rem var(--page-pad) 3rem;
  }

  .firm {
    padding: 2rem 1rem;
  }
}

@media (min-width: 900px) {
  :root {
    --page-pad: 2rem;
  }

  body {
    font-size: 14px;
  }

  .top__logo {
    width: min(190px, 52vw);
  }

  .intro {
    width: min(720px, calc(100% - (var(--page-pad) * 2)));
    padding: 1.75rem 0 2.5rem;
  }

  .intro__title {
    font-size: clamp(1.5rem, 3.2vw, 2rem);
  }

  .intro__lead {
    font-size: 1rem;
  }

  .firms {
    width: min(1080px, 100%);
    margin-bottom: 3rem;
    padding: 3rem 1.5rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .firm {
    align-self: stretch;
    height: 100%;
    padding: 0 1.5rem;
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }

  .firm:last-child {
    border-right: 0;
    padding-bottom: 0;
  }

  .firm__name {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
  }

  .firm__logo-link {
    max-width: 250px;
    min-height: 110px;
    margin-bottom: 1.35rem;
  }

  .firm__logo-link img {
    max-height: 78px;
  }

  .firm__logo--leitner {
    max-height: 56px !important;
  }

  .firm__contact {
    margin-bottom: 1.35rem;
    max-width: 17.5rem;
    font-size: 0.9rem;
  }

  .firm__cta {
    margin-top: auto;
    width: auto;
    min-width: 10.5rem;
    max-width: none;
    min-height: 44px;
    padding: 0.7rem 1.35rem;
    font-size: 0.8rem;
  }
}

@media (hover: none) {
  .firm__logo-link:hover {
    opacity: 1;
    transform: none;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .top,
  .intro,
  .firms {
    animation: none;
  }

  .firm__logo-link {
    transition: none;
  }
}
