@font-face {
  font-family: "Gantari";
  src: url("../fonts/gantari-regular.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Gantari";
  src: url("../fonts/gantari-semibold.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 600;
}

@font-face {
  font-family: "Gantari";
  src: url("../fonts/gantari-extrabold.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 800;
}

:root {
  --ink: #1a1a2e;
  --text: #1a1a1a;
  --muted: #77777d;
  --soft: #f6f6f6;
  --line: #e5e5e5;
  --accent: #f15a29;
  --content: 1080px;
  --legal-content: 680px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: "Gantari", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0;
}

body.detail-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.hero {
  min-height: 356px;
  background-image: url("../images/md-holding-building.jpg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  color: #fff;
}

.site-header {
  width: min(calc(100% - 48px), var(--content));
  height: 100px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
}

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

.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 25px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.phone-link svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: currentColor;
}

.content-shell {
  width: min(calc(100% - 48px), var(--content));
  margin-inline: auto;
}

.home-content {
  padding-block: 64px 80px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #8b8b90;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  text-transform: uppercase;
}

.group-intro h1 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
}

.group-intro > p:last-child {
  max-width: 560px;
  margin: 0;
  color: #777;
  line-height: 1.65;
}

.company-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.company-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.company-card:hover {
  border-color: #cfcfd3;
  box-shadow: 0 10px 28px rgb(26 26 46 / 9%);
  transform: translateY(-2px);
}

.company-card article {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card-visual {
  position: relative;
  height: 160px;
  overflow: hidden;
}

.card-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(26 26 46 / 78%) 0%, rgb(26 26 46 / 5%) 60%);
}

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

.country {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 16px;
  padding: 6px 10px 5px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}

.company-name {
  position: absolute;
  z-index: 2;
  right: 16px;
  bottom: 13px;
  left: 16px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
}

.card-body {
  min-height: 199px;
  padding: 18px 21px 19px;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.card-description {
  margin: 0 0 13px;
  color: #55555b;
  font-size: 15px;
  line-height: 1.5;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: auto;
  margin-bottom: 13px;
}

.tag {
  padding: 3px 9px;
  border-radius: 3px;
  background: var(--soft);
  color: #69696e;
  font-size: 11px;
  line-height: 1.4;
}

.card-cta {
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.card-cta span {
  display: inline-block;
  margin-left: 4px;
  transition: transform 160ms ease;
}

.company-card:hover .card-cta span {
  transform: translateX(3px);
}

.holding-imprint {
  margin-top: 64px;
}

.holding-imprint > h2,
.disclaimer > h2 {
  margin: 0 0 38px;
  font-size: 44px;
  font-weight: 800;
  line-height: 1.2;
}

.imprint-address {
  margin-bottom: 24px;
}

.imprint-address p {
  margin: 0 0 22px;
}

.imprint-data {
  width: min(100%, 560px);
  margin: 0;
}

.imprint-data > div {
  display: grid;
  grid-template-columns: 155px minmax(0, 1fr);
  gap: 0;
}

.imprint-data dt,
.imprint-data dd {
  margin: 0;
}

.imprint-data a:hover {
  text-decoration: underline;
}

.disclaimer {
  margin-top: 42px;
}

.disclaimer > h2 {
  margin-bottom: 26px;
  font-size: 40px;
}

.legal-copy + .legal-copy {
  margin-top: 42px;
}

.legal-copy h3 {
  margin: 0 0 24px;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.25;
}

.legal-copy p {
  margin: 0;
  line-height: 1.75;
}

.detail-page main {
  flex: 1;
}

.detail-content {
  width: min(calc(100% - 48px), var(--legal-content));
  margin-inline: auto;
  padding-block: 64px 36px;
}

.detail-content .eyebrow {
  margin-bottom: 17px;
}

.detail-content h1 {
  max-width: 630px;
  margin: 0 0 34px;
  padding-top: 0;
  color: var(--ink);
  font-size: 40px;
  font-weight: 800;
  line-height: 1.12;
}

.legal-section {
  margin-top: 30px;
}

.legal-section h2 {
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  color: #8d8d91;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
}

.legal-section p {
  margin: 0;
}

.registry-list {
  margin: 0;
}

.registry-list > div {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 0;
  padding: 6px 0;
  border-bottom: 1px solid #eeeeef;
}

.registry-list dt,
.registry-list dd {
  min-width: 0;
  margin: 0;
}

.registry-list dd {
  overflow-wrap: anywhere;
}

.registry-list dt {
  color: #919196;
}

.purpose {
  padding: 15px 19px;
  border-left: 3px solid #dddde0;
  background: #f7f7f7;
  line-height: 1.65;
}

.site-footer {
  min-height: 196px;
  display: grid;
  place-items: center;
  padding: 48px 24px;
  color: #8b8b91;
}

.site-footer p {
  margin: 0;
}

.back-to-top {
  position: fixed;
  z-index: 10;
  right: 0;
  bottom: 90px;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 6px 0 0 6px;
  background: #b6b6b8;
  color: #fff;
  font-size: 25px;
  font-weight: 800;
  line-height: 1;
}

.back-to-top:hover {
  background: #99999c;
}

@media (max-width: 840px) {
  .company-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .company-card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .hero {
    min-height: 232px;
  }

  .site-header {
    width: min(calc(100% - 48px), var(--content));
    height: auto;
    padding-top: 20px;
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
  }

  .brand img {
    width: 123px;
  }

  .phone-link {
    font-size: 24px;
  }

  .content-shell {
    width: min(calc(100% - 48px), var(--content));
  }

  .home-content {
    padding-block: 25px 58px;
  }

  .group-intro h1 {
    font-size: 32px;
  }

  .group-intro > p:last-child {
    line-height: 1.65;
  }

  .company-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    margin-top: 30px;
  }

  .company-card:last-child {
    grid-column: auto;
  }

  .card-visual {
    height: 180px;
  }

  .card-body {
    min-height: 0;
  }

  .holding-imprint {
    margin-top: 42px;
  }

  .holding-imprint > h2,
  .disclaimer > h2 {
    margin-bottom: 28px;
    font-size: 24px;
  }

  .imprint-data > div {
    grid-template-columns: 145px minmax(0, 1fr);
  }

  .imprint-data dt {
    color: #77777d;
  }

  .disclaimer {
    margin-top: 38px;
  }

  .disclaimer > h2 {
    margin-bottom: 24px;
    font-size: 21px;
  }

  .legal-copy + .legal-copy {
    margin-top: 32px;
  }

  .legal-copy h3 {
    margin-bottom: 20px;
    font-size: 20px;
  }

  .legal-copy p {
    line-height: 1.7;
  }

  .detail-content {
    width: min(calc(100% - 48px), var(--legal-content));
    padding-block: 25px 18px;
  }

  .detail-content .eyebrow {
    margin-bottom: 17px;
  }

  .detail-content h1 {
    margin-bottom: 32px;
    font-size: 36px;
  }

  .legal-section {
    margin-top: 30px;
  }

  .registry-list > div {
    grid-template-columns: minmax(0, 42%) minmax(0, 58%);
    column-gap: 12px;
  }

  .site-footer {
    min-height: 178px;
    padding-block: 52px;
  }

  .back-to-top {
    bottom: 94px;
    width: 45px;
    height: 50px;
  }
}

@media (max-width: 380px) {
  .phone-link {
    font-size: 21px;
  }

  .group-intro h1,
  .detail-content h1 {
    font-size: 30px;
  }

  .registry-list > div {
    grid-template-columns: 1fr;
    gap: 1px;
  }

  .imprint-data > div {
    grid-template-columns: 1fr;
    margin-bottom: 9px;
  }
}

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

  .company-card,
  .card-cta span {
    transition: none;
  }
}
