@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@400;700&display=swap');

:root {
  --orange: #ff5a0a;
  --orange-dark: #d94400;
  --ink: #090909;
  --cream: #f5fbd9;
  --mint: #bcecc0;
  --green: #6fd3ae;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: #e8f5d5;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
}

.page {
  width: min(1400px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero {
  position: relative;
  flex: 1;
  min-height: 720px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 42%, rgba(255, 255, 255, .35), transparent 35%),
    radial-gradient(circle at 72% 72%, rgba(74, 207, 148, .28), transparent 40%),
    linear-gradient(105deg, #f6fbdc 0%, #edf7c9 32%, #c9efbf 67%, #83d4b1 100%);
}

.header {
  position: relative;
  z-index: 5;
  min-height: 270px;
  display: grid;
  grid-template-columns: 34% 66%;
  align-items: start;
  padding: 40px 6% 0;
}

.brand {
  display: block;
  width: min(300px, 90%);
  margin-top: 15px;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
}

.company {
  text-align: center;
}

.company h1 {
  margin: 0 0 18px;
  color: #ff5a0a;
  font-size: clamp(32px, 4.1vw, 57px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -1px;
  text-shadow:
    2px 2px 0 #fff,
    -1px -1px 0 #fff,
    1px -1px 0 #fff,
    -1px 1px 0 #fff;
}

.offices {
  font-size: clamp(17px, 1.8vw, 25px);
  line-height: 1.32;
}

.offices p {
  margin: 8px 0;
}

.offices strong {
  font-style: italic;
  text-decoration: underline;
}

.content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 43% 57%;
  min-height: 500px;
}

.products {
  position: relative;
  z-index: 5;
}

.products h2 {
  width: 100%;
  margin: 0 0 22px;
  padding: 13px 30px;
  color: #fff;
  background: var(--orange);
  border: 2px solid #111;
  border-left: 0;
  border-radius: 0 18px 18px 0;
  font-size: clamp(27px, 3vw, 43px);
  line-height: 1;
  text-align: center;
  text-shadow: 2px 2px 0 #a92e00;
}

.products ul {
  margin: 0;
  padding: 0 18px 0 11%;
  font-size: clamp(18px, 2vw, 31px);
  line-height: 1.27;
  font-weight: 600;
}

.products li {
  padding-left: 2px;
}

.gallery {
  position: relative;
  min-height: 500px;
  margin-top: 5px;
}

.photo {
  position: absolute;
  background: #fff;
  padding: 13px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
}

.photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-left {
  z-index: 3;
  left: 2%;
  bottom: -62px;
  width: 39%;
  transform: rotate(-10deg);
}

.photo-center {
  z-index: 2;
  left: 25%;
  top: 15px;
  width: 43%;
  transform: rotate(5deg);
}

.photo-right {
  z-index: 4;
  right: 0;
  bottom: -58px;
  width: 27%;
  transform: rotate(7deg);
}

.footer {
  position: relative;
  z-index: 10;
  min-height: 80px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 24px;
  background: var(--orange);
  border-top: 2px solid #111;
  color: #fff;
  font-size: clamp(20px, 2.2vw, 33px);
  font-weight: 700;
}

.footer a {
  color: #fff;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* Tablet */
@media (max-width: 1050px) {
  .hero {
    min-height: 760px;
  }

  .header {
    grid-template-columns: 30% 70%;
    padding-left: 4%;
    padding-right: 4%;
  }

  .products ul {
    padding-left: 9%;
    font-size: 22px;
  }

  .gallery {
    transform: scale(.9);
    transform-origin: center top;
  }
}

/* Mobile */
@media (max-width: 760px) {
  .hero {
    min-height: auto;
    overflow: visible;
  }

  .header {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 22px 18px 0;
    text-align: center;
  }

  .brand {
    width: 190px;
    margin: 0 auto;
  }

  .company h1 {
    margin-bottom: 12px;
    font-size: clamp(29px, 8vw, 42px);
  }

  .offices {
    font-size: 17px;
    line-height: 1.3;
  }

  .content {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 18px;
  }

  .products h2 {
    border-left: 2px solid #111;
    border-radius: 12px;
    width: calc(100% - 24px);
    margin: 0 12px 16px;
    padding: 12px;
  }

  .products ul {
    padding: 0 28px 0 48px;
    font-size: 19px;
    line-height: 1.42;
  }

  .gallery {
    min-height: 430px;
    margin: 25px 10px 0;
    transform: none;
  }

  .photo-left {
    left: 2%;
    bottom: 12px;
    width: 39%;
  }

  .photo-center {
    left: 25%;
    top: 10px;
    width: 47%;
  }

  .photo-right {
    right: 0;
    bottom: 5px;
    width: 29%;
  }

  .footer {
    justify-content: center;
    flex-wrap: wrap;
    min-height: 70px;
    padding: 13px 12px;
    gap: 8px;
    text-align: center;
    font-size: 18px;
  }
}

/* Small phones */
@media (max-width: 430px) {
  .products ul {
    padding-left: 38px;
    padding-right: 18px;
    font-size: 17px;
  }

  .gallery {
    min-height: 330px;
  }

  .photo {
    padding: 8px;
  }

  .photo-left {
    bottom: 4px;
  }

  .photo-center {
    top: 8px;
  }

  .photo-right {
    bottom: 0;
  }
}
