@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

:root {
  --nav-color: #9F8861;
  --transition: all ease-in .25s;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
a, a:hover {
  text-decoration: none;
}

body, html {
  height: 100%;
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  transition: var(--transition);
}

/* Layout */
#homepage {
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Top nav */
#nav {
  position: absolute;
  top: 20px;
  right: 40px;
  display: flex;
  gap: 30px;
  z-index: 10;
}

#nav a {
  opacity: 0.8;
  color: var(--nav-color);
  font-size: 1rem;
  transition: var(--transition);
}

#nav a:hover {
  opacity: 1;
}

/* Split layout */
#items {
  display: flex;
  height: 100%;
}

#items > div {
  width: 50%;
  height: 100vh;
  position: relative;
  flex-direction: column;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
}

/* Shared content styling */
#items img {
  max-width: 177px;
  height: auto;
  margin-bottom: 20px;
}

#items h2 {
  font-size: 28px;
  margin-bottom: 15px;
  font-weight: 600;
  max-width: 500px;
}

#items p {
  max-width: 420px;
  font-size: 1.25rem;
  line-height: 1.6;
  margin: 0 auto 25px;
  opacity: 0.9;
}

/* Button */
.btn {
  display: inline-block;
  padding: 15px 30px;
  font-size: 1rem;
  letter-spacing: 0.5px;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 5px;
  transition: var(--transition);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: rgba(0,0,0,0.15) 0 10px 20px;
}

/* LEFT SIDE (Custom / green) */
#item-1 {
  background: #1f3d2b;
  color: #ffffff;
}

#item-1::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('img/pbw-img.jpg') center/cover no-repeat;
  opacity: 0.05;
  z-index: 0;
  pointer-events: none;
}

#item-1 > * {
  position: relative;
  z-index: 1;
}

#item-1 h2 {
  color: #A3B4A3;
}

#item-1 .btn {
  background: #3e7a4e;
  color: #fff;
}

/* RIGHT SIDE (Retail / beige) */

#item-2 {
  background: #f2e8d3;
  color: #3e2f1c;
}

#item-2::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('img/sh-img.jpg') center/cover no-repeat;
  opacity: 0.05;
  z-index: 0;
  pointer-events: none;
}

#item-2 > * {
  position: relative;
  z-index: 1;
}

#item-2 .btn {
  background: #5a3b1a;
  color: #fff;
}

/* Optional: subtle responsiveness */
@media (max-width: 768px) {
  #items {
    flex-direction: column;
  }

  #items > div {
    width: 100%;
    height: 50vh;
  }
}