:root {
  --red: #b0202c;
  --ink: #ffffff;
  --paper: #000000;
  --hairline: #282828;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-width: 280px;
  height: 100svh;
  color: var(--ink);
  background:
    linear-gradient(var(--red), var(--red)) right bottom / clamp(6rem, 15vw, 15rem) clamp(6rem, 18vw, 18rem) no-repeat,
    var(--paper);
  font-family: "Myriad Pro", "Helvetica Neue", Arial, sans-serif;
}

.card {
  width: min(100%, 82rem);
  height: 100%;
  margin: 0 auto;
  padding:
    max(env(safe-area-inset-top), clamp(1.1rem, 4vh, 3.8rem))
    max(env(safe-area-inset-right), clamp(1.2rem, 5.6vw, 5rem))
    max(env(safe-area-inset-bottom), clamp(1.1rem, 4vh, 3.8rem))
    max(env(safe-area-inset-left), clamp(1.2rem, 5.6vw, 5rem));
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: space-between;
  gap: clamp(1.2rem, 5vh, 4.5rem);
}

.brand {
  width: min(100%, clamp(19rem, 49vw, 37rem));
  line-height: 0;
}

.brand h1 { margin: 0; }

.brand img {
  width: 100%;
  height: auto;
  display: block;
}

.details {
  width: min(100%, 48rem);
  justify-self: center;
  align-self: start;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.4rem, 3.2vw, 2.8rem) clamp(2rem, 6vw, 5rem);
  margin-top: clamp(2.5rem, 14vh, 7rem);
  padding-top: clamp(.8rem, 2.8vh, 2.4rem);
  border-top: 1px solid var(--hairline);
  text-align: center;
}

.eyebrow {
  margin: 0 0 .7rem;
  color: var(--red);
  font-size: clamp(.7rem, .9vw, .82rem);
  font-weight: 800;
  letter-spacing: .13em;
  line-height: 1;
  text-transform: uppercase;
}

.services ul {
  display: grid;
  gap: .38rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink);
  font-size: clamp(.9rem, 1.3vw, 1.1rem);
  line-height: 1.22;
}

.services li::before {
  content: "—";
  color: var(--red);
  padding-right: .45rem;
}

address { font-style: normal; }

.address-link,
.company-id,
.branch {
  display: block;
  color: var(--ink);
  font-size: clamp(.9rem, 1.25vw, 1.08rem);
  line-height: 1.32;
  text-decoration: none;
  transition: color .18s ease;
}

.address-block .company-id,
.address-block .branch { margin-top: .55rem; }

.address-link:hover,
.address-link:focus-visible,
.company-id:hover,
.company-id:focus-visible {
  color: var(--red);
}

.contact-block { min-width: 0; }

.contact-block a {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  color: var(--ink);
  font-size: clamp(.9rem, 1.25vw, 1.08rem);
  line-height: 1.55;
  overflow-wrap: anywhere;
  text-align: center;
  text-decoration: none;
  transition: color .18s ease;
}

.contact-block a:hover,
.contact-block a:focus-visible {
  color: var(--red);
}

a:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
  border-radius: 2px;
}

/* Tablet portrait and compact laptops retain the two-by-two information grid. */
@media (min-width: 701px) and (max-width: 1024px) {
  .card {
    width: min(100%, 62rem);
    gap: clamp(1rem, 3vh, 2rem);
  }

  .brand { width: min(100%, 30rem); }

  .details {
    width: min(100%, 44rem);
    margin-top: clamp(1.75rem, 8vh, 4rem);
  }
}

/* Phones use a denser two-column layout, including notched handsets. */
@media (max-width: 700px) {
  body {
    background-image: none;
  }

  .card {
    padding:
      max(env(safe-area-inset-top), clamp(.9rem, 3vh, 1.6rem))
      max(env(safe-area-inset-right), clamp(1rem, 5vw, 1.8rem))
      max(env(safe-area-inset-bottom), clamp(.9rem, 3vh, 1.6rem))
      max(env(safe-area-inset-left), clamp(1rem, 5vw, 1.8rem));
    gap: 1rem;
  }

  .brand { width: min(100%, 27rem); }

  .details {
    grid-template-columns: 1.15fr 1fr;
    grid-template-areas:
      "services address"
      "contact dispatch";
    gap: .9rem 1.3rem;
    margin-top: clamp(2rem, 13vh, 5rem);
    padding-top: .85rem;
    text-align: left;
    align-self: start;
  }

  .services { grid-area: services; }
  .address-block { grid-area: address; }
  .contact-block:not(.dispatch) { grid-area: contact; }
  .dispatch { grid-area: dispatch; }

  .eyebrow { margin-bottom: .45rem; }
  .services ul { gap: .18rem; }
  .address-block .company-id,
  .address-block .branch { margin-top: .28rem; }
  .contact-block a {
    margin-inline: 0;
    line-height: 1.32;
    text-align: left;
  }
}

/* Large desktop and ultrawide displays use the extra width without oversized text. */
@media (min-width: 1440px) {
  .card { width: min(100%, 106rem); }
  .brand { width: clamp(34rem, 34vw, 50rem); }
  .details {
    width: min(100%, 58rem);
    margin-top: clamp(4rem, 12vh, 10rem);
  }
}

/* Short tablet and desktop viewports shrink the logo and the space beneath it with the height, so the contact row stays in view. */
@media (min-width: 701px) and (min-height: 601px) {
  .brand { max-width: calc(96vh - 11rem); }
}

@media (min-width: 1025px) and (min-height: 601px) and (max-height: 800px) {
  .details { margin-top: calc(38vh - 13rem); }
}

@media (max-height: 600px) and (min-width: 701px) {
  .card { padding-top: 1.2rem; padding-bottom: 1.2rem; gap: 1rem; }
  .brand { width: min(100%, 25rem); }
  .details { margin-top: 1.25rem; padding-top: .8rem; }
}

@media (max-width: 380px), (max-height: 520px) {
  .brand { width: min(100%, 20rem); }
  .details { gap: .65rem .9rem; margin-top: clamp(1.1rem, 8vh, 2rem); }
  .eyebrow { font-size: .57rem; }
  .services ul, .address-link, .company-id, .branch, .contact-block a { font-size: .72rem; }
  .services ul { gap: .12rem; }
}

/* Phones held sideways keep the logo to a share of the height. */
@media (max-height: 520px) {
  .brand { max-width: 60vh; }
}

@media (hover: none) and (pointer: coarse) {
  .address-link,
  .company-id,
  .branch,
  .contact-block a {
    padding-block: .18rem;
  }

  /* Leaves room under the last line when the page has to scroll. */
  .details { padding-bottom: max(env(safe-area-inset-bottom), .75rem); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
