/*
 * BIO&NANO Solutions — single page site
 * Recreated from the 2021-12-21 Wayback Machine capture of bioandnano.com
 */

:root {
  /* Colors sampled from the original screenshots */
  --teal: #00b4aa;
  --gradient-top: #1382c1;
  --gradient-bottom: #00a85c;
  --fb-blue: #1d73be;
  --ig-magenta: #d822d2;
  --fb-footer: #3c5998;
  --ig-footer: #262626;

  /* Both diagonals drop ~6.8% of the viewport width, higher on the right */
  --diagonal: 6.8vw;

  --font-heading: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: #ffffff;
  color: #ffffff;
}

img {
  max-width: 100%;
  height: auto;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 400;
  text-transform: uppercase;
  text-align: center;
  color: #ffffff;
  letter-spacing: 0.02em;
}

/* ---------- Hero ---------- */

.hero {
  background-color: #ffffff;
  padding: 130px 0 90px;
}

.hero-logo {
  display: block;
  width: min(560px, 72vw);
  margin-left: 15%;
}

/* ---------- Brands ---------- */

.brands {
  background-color: var(--teal);
  /* Diagonal top edge: higher on the right; the clipped triangle shows the
     white hero behind it */
  clip-path: polygon(0 var(--diagonal), 100% 0, 100% 100%, 0 100%);
  padding-top: calc(var(--diagonal) + 90px);
  /* Extra room at the bottom: the next section overlaps by --diagonal */
  padding-bottom: calc(var(--diagonal) + 110px);
  text-align: center;
}

.brands-title {
  font-size: 32px;
  font-weight: 500;
  margin-bottom: 70px;
}

.brands-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px 60px;
  padding: 0 24px;
}

.brands-logos img {
  width: min(330px, 80vw);
}

/* ---------- Contact + footer gradient band ---------- */

.gradient-band {
  background: linear-gradient(
    180deg,
    var(--gradient-top) 0%,
    var(--gradient-bottom) 85%,
    var(--gradient-bottom) 100%
  );
  clip-path: polygon(0 var(--diagonal), 100% 0, 100% 100%, 0 100%);
  /* Overlap the teal section so the clipped triangle reveals it */
  margin-top: calc(-1 * var(--diagonal));
}

.contact {
  padding: calc(var(--diagonal) + 80px) 24px 110px;
}

.contact-title {
  font-size: 60px;
  font-weight: 400;
  margin-bottom: 80px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 300px));
  justify-content: center;
  gap: 40px;
  max-width: 1220px;
  margin: 0 auto;
}

.contact-card {
  text-align: center;
}

.contact-avatar {
  width: 130px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 28px;
}

.contact-name {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 14px;
}

.contact-role {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 300;
  margin-bottom: 12px;
}

.contact-email {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 300;
  color: #ffffff;
  text-decoration: none;
}

.contact-email:hover {
  text-decoration: underline;
}

/* ---------- Footer ---------- */

.footer {
  text-align: center;
  padding: 0 24px 26px;
}

.footer-title {
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 34px;
}

.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 3px;
  color: #ffffff;
  transition: opacity 0.2s ease;
}

.footer-social:hover {
  opacity: 0.85;
}

.footer-social svg {
  width: 16px;
  height: 16px;
}

.footer-social--facebook {
  background-color: var(--fb-footer);
}

.footer-social--instagram {
  background-color: var(--ig-footer);
}

.copyright {
  font-size: 13px;
  color: #ffffff;
}

/* ---------- Floating social sidebar ---------- */

.social-sidebar {
  position: fixed;
  top: 30%;
  right: 0;
  display: flex;
  flex-direction: column;
  z-index: 9990;
}

.social-sidebar-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: #ffffff;
  transition: width 0.2s ease;
}

.social-sidebar-link:hover {
  width: 50px;
}

.social-sidebar-link svg {
  width: 18px;
  height: 18px;
}

.social-sidebar-link--facebook {
  background-color: var(--fb-blue);
}

.social-sidebar-link--instagram {
  background-color: var(--ig-magenta);
}

/* ---------- Mobile ---------- */

@media (max-width: 768px) {
  .hero {
    padding: 120px 0 80px;
  }

  .hero-logo {
    width: min(280px, 70vw);
    margin: 0 auto;
  }

  .brands {
    padding-top: calc(var(--diagonal) + 70px);
    padding-bottom: calc(var(--diagonal) + 80px);
  }

  .brands-title {
    font-size: 26px;
    margin-bottom: 50px;
    padding: 0 30px;
  }

  .brands-logos {
    flex-direction: column;
    gap: 34px;
  }

  .brands-logos img {
    width: min(300px, 78vw);
  }

  .contact {
    padding: calc(var(--diagonal) + 60px) 24px 80px;
  }

  .contact-title {
    font-size: 44px;
    margin-bottom: 60px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 56px;
    max-width: 320px;
  }

  .contact-avatar {
    width: 126px;
    height: 155px;
  }

  .footer-title {
    font-size: 18px;
    padding: 0 20px;
  }
}
