/* ==========================================================================
   berlin semiconductor - site styles
   Created by Claude
   Values follow the Make theme the previous site used.
   ========================================================================== */

/* --- Tokens -------------------------------------------------------------- */

:root {
  --ink: #171717;
  --link: #3070d1;
  --orange: #ff7f2a;
  --rule: #eaecee;
  --paper: #ffffff;

  --font-body: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-head: "Helvetica Neue", Helvetica, Arial, sans-serif;

  --measure: 1024px;
  --gutter: 32px;
}

/* --- Reset --------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--link);
  font-weight: bold;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* --- Layout -------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.wrap::after {
  display: table;
  clear: both;
  content: "";
}

/* Flex/grid wraps must not inherit the clearfix as a child item. */

.footer-inner::after,
.services::after,
.addresses::after {
  content: none;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  z-index: 10;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
}

/* --- Header -------------------------------------------------------------- */

.site-header {
  padding: 44px 0 22px;
  background: var(--paper);
}

.brand {
  display: block;
  margin-bottom: 11px;
  line-height: 0;
}

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

.site-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 11px 0;
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
  font-size: 14px;
  font-weight: normal;
  line-height: 1.8;
}

.site-nav a[aria-current="page"] {
  font-weight: bold;
}

@media screen and (min-width: 800px) {
  .brand {
    float: left;
    max-width: 50%;
  }

  .site-nav {
    float: right;
    max-width: 50%;
    padding-top: 8px;
  }

  .site-nav li {
    display: inline-block;
  }

  .site-nav a {
    padding: 11px 16px;
    border-bottom: 0;
    line-height: 1.4;
  }
}

/* --- Main ---------------------------------------------------------------- */

.site-main {
  padding: 22px 0 44px;
  background: var(--orange);
}

.page {
  padding-top: 11px;
}

h1,
h2,
h3,
h4 {
  clear: both;
  margin: 11px 0;
  font-family: var(--font-head);
  font-weight: bold;
}

h1 {
  font-size: 46px;
  font-weight: normal;
  line-height: 1.2;
}

h2 {
  font-size: 34px;
}

h3 {
  font-size: 24px;
}

p,
ul,
ol,
address,
table {
  margin: 0 0 22px;
}

hr {
  height: 0;
  margin: 44px 0;
  border: 0;
  border-top: 1px solid var(--rule);
}

ul,
ol {
  padding-left: 20px;
}

ul {
  list-style: disc;
}

.prose {
  max-width: 42em;
}

/* Section rules, matching the old page's <hr> */

.trace {
  height: 0;
  margin: 44px 0;
  border-top: 1px solid var(--rule);
}

.trace i {
  display: none;
}

/* The old page had no section labels. */

.eyebrow {
  display: none;
}

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

.slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.slider .slide {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity 600ms ease-in-out;
}

.slider .slide:not(:first-child) {
  position: absolute;
  inset: 0;
}

.slider .slide.is-active {
  opacity: 1;
}

.slider-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  line-height: 1;
  z-index: 2;
}

.slider-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.35);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}

.slider-dot.is-active {
  background: var(--ink);
}

/* --- Home: statement ----------------------------------------------------- */

.statement {
  margin: 11px 0;
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: normal;
  line-height: 1.4;
  text-align: center;
}

.statement em {
  font-style: normal;
}

/* --- Home: services ------------------------------------------------------ */

.services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 320px));
  justify-content: space-evenly;
  gap: 0 3.33%;
  margin: 22px 0 0;
}

.service h2 {
  margin: 0 0 11px;
  font-size: 24px;
}

.service ul {
  margin: 0 0 22px;
}

/* --- About --------------------------------------------------------------- */

.bio {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
  align-items: start;
}

.bio-photo img {
  display: block;
  width: 100%;
}

.bio-links {
  margin: 11px 0 0;
}

.bio-links img {
  width: 160px;
  margin: 0 auto;
}

/* --- Address blocks ------------------------------------------------------ */

.addresses {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 3.33%;
  margin: 0;
}

.address {
  margin: 0 0 22px;
  font-style: normal;
}

/* --- Contact form -------------------------------------------------------- */

.form {
  max-width: 42em;
}

.field {
  margin: 0 0 22px;
}

.field label {
  display: block;
  padding-bottom: 7px;
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 6px 8px;
  border: 0;
  background: var(--rule);
  font: inherit;
  color: var(--ink);
  -webkit-appearance: none;
}

.field textarea {
  min-height: 180px;
  resize: vertical;
}

.field input[type="file"] {
  padding: 6px 0;
  background: none;
}

.field-hint {
  margin: 6px 0 0;
  font-size: 13px;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn {
  display: inline-block;
  padding: 10px 18px;
  border: 0;
  border-radius: 100px;
  color: #fff;
  background: var(--ink);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
}

.btn[disabled] {
  opacity: 0.55;
  cursor: default;
}

.form-note {
  margin: 22px 0 0;
  font-size: 13px;
}

.form-status {
  margin: 22px 0 0;
  padding: 11px 16px;
  background: var(--paper);
}

.form-status.is-error {
  border-left: 3px solid #c0392b;
}

.form-status[hidden] {
  display: none;
}

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

.site-footer {
  padding: 44px 0;
  color: #464849;
  background: var(--paper);
  font-size: 13px;
}

.site-footer a {
  color: #000;
  text-decoration: underline;
}

.site-footer a:hover {
  text-decoration: none;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
}

.footer-links {
  margin: 0 0 6px;
  padding: 0;
  list-style: none;
}

.footer-links li {
  display: inline-block;
  padding-right: 16px;
}

.footer-credit {
  margin: 0;
}

.footer-social {
  margin: 0;
  flex-shrink: 0;
}

.footer-social a {
  display: inline-block;
  color: #000;
  line-height: 0;
  text-decoration: none;
}

/* --- Responsive ---------------------------------------------------------- */

@media screen and (max-width: 799px) {
  h1 {
    font-size: 34px;
  }

  h2,
  h3,
  .statement {
    font-size: 22px;
  }

  .bio,
  .addresses {
    grid-template-columns: 1fr;
  }

  .services {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .bio-photo {
    max-width: 300px;
  }
}
