/* UX/UI fixes layered on top of the Webflow export. Loaded after the main stylesheet
   and before enhance.css, which owns the navigation, buttons and motion. */

/* ---------- Readable minimum sizes (the export scales the root font down to 10px) ---------- */
body {
  font-size: max(1rem, 14px);
}

.button {
  font-size: max(1.25rem, 15px);
}

.footer-link-text {
  font-size: max(1rem, 14px);
}

div.text-weight-semibold {
  font-size: max(1em, 13px);
}

/* ---------- Keyboard focus ---------- */
a:focus-visible,
button:focus-visible,
.w-button:focus-visible,
.w-nav-button:focus-visible,
[role="button"]:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 6px #000;
}

/* ---------- Hero text over photos ---------- */
.section_services_header h1,
.section_services_header p,
.section_architects_header h1,
.section_architects_header p,
.section_designers_header h1,
.section_designers_header p,
.section_distributers_header h1,
.section_distributers_header p,
.section_general-info_header h1,
.section_general-info_header p,
.section-gallery-hero h1,
.section-gallery-hero p,
.section_services_header div.text-weight-semibold,
.section_architects_header div.text-weight-semibold,
.section_designers_header div.text-weight-semibold {
  text-shadow: 0 1px 3px #000c, 0 0 18px #0009;
}

/* ---------- Cards ---------- */
.w-lightbox {
  cursor: zoom-in;
}

/* ---------- Contact page ---------- */
.contact-heading {
  font-size: 3.25rem;
  line-height: 1.25;
}

.contact-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--dark-gray);
  text-underline-offset: 3px;
}

.contact-link:hover {
  color: var(--red);
  text-decoration-color: currentColor;
}

.form-input,
.form-input.is-text-area {
  font-size: 16px; /* below 16px iOS zooms the page when a field is focused */
  transition: border-color .2s, box-shadow .2s;
}

.form-input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px #9f081233;
  outline: none;
}

@media screen and (max-width: 991px) {
  .section-contact-form {
    padding-top: 5rem;
  }
}

/* ---------- Small screens ---------- */
@media screen and (max-width: 991px) {
  /* Swatch / profile / style-guide cards: two or three across instead of one very long column. */
  .general_component-copy {
    grid-column-gap: 1.5rem;
    grid-row-gap: 3rem;
    grid-template-rows: auto;
    grid-template-columns: 1fr 1fr 1fr;
  }

  .general_component-copy .image-box_wrapper.small {
    aspect-ratio: 1;
    height: auto;
  }
}

@media screen and (max-width: 767px) {
  .general_component-copy {
    grid-row-gap: 2.5rem;
    grid-template-columns: 1fr 1fr;
  }

  .general_component-copy .text-box {
    padding-top: 1rem;
  }

  .general_component-copy h4 {
    font-size: max(1.75rem, 17px);
  }

  .button {
    min-height: 44px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .footer-links_wrapper {
    grid-row-gap: .25rem;
  }

  .footer-link {
    padding: 8px 0;
  }
}
