/* Brand mark stays prominent and proportional at every viewport. */
.brand img,
.site-footer .brand img {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

.site-header {
  height: 132px;
  background: rgba(4, 7, 9, 0.96);
}

.hero {
  background-color: #121c27;
  background-image: url("images/hero-coffee-plantation.jpg");
  background-size: cover;
  background-position: center;
}

.hero::before {
  background:
    linear-gradient(180deg, rgba(3, 6, 9, 0.88) 0%, rgba(5, 10, 14, 0.46) 38%, rgba(6, 12, 17, 0.03) 100%),
    linear-gradient(90deg, rgba(4, 8, 12, 0.72) 0%, rgba(7, 13, 18, 0.22) 55%, rgba(7, 13, 18, 0.02) 100%);
}

.hero-product img {
  mix-blend-mode: normal;
}

.product-card {
  cursor: pointer;
}

.floating-socials {
  position: fixed;
  top: 50%;
  right: 22px;
  z-index: 8;
  display: flex;
  flex-direction: column;
  gap: 9px;
  transform: translateY(-50%);
}

.floating-socials a {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(8, 15, 22, 0.72);
  color: #e9e4dc;
  font-size: 14px;
  backdrop-filter: blur(10px);
  transition: color 0.2s, background 0.2s, transform 0.2s;
}

.floating-socials a:hover {
  background: var(--copper);
  color: #fff;
  transform: translateX(-4px);
}

.floating-socials a span {
  position: absolute;
  right: 52px;
  padding: 6px 9px;
  border-radius: 4px;
  background: #101a23;
  color: #e9e4dc;
  font-size: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(4px);
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
}

.floating-socials a:hover span {
  opacity: 1;
  transform: translateX(0);
}

.whatsapp-widget {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 9;
}

.whatsapp-toggle {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  font-size: 28px;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.28);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.whatsapp-toggle:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(37, 211, 102, 0.38);
}

.whatsapp-box {
  position: absolute;
  right: 0;
  bottom: 74px;
  width: 272px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(15, 27, 37, 0.96);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.38);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(0.97);
  transition: opacity 0.2s, transform 0.2s;
}

.whatsapp-box.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.whatsapp-box-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 0;
  background: transparent;
  color: #849097;
  cursor: pointer;
}

.whatsapp-status {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 17px;
  color: #6fe49a;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

.whatsapp-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #25d366;
}

.whatsapp-box strong {
  display: block;
  color: #f5efe6;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.1;
}

.whatsapp-box p {
  margin: 10px 0 18px;
  color: #aab4b8;
  font-size: 12px;
  line-height: 1.6;
}

.whatsapp-box a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #7ee7a3;
  font-size: 12px;
  font-weight: 700;
}

.modal-open {
  overflow: hidden;
}

.product-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 20;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.product-modal.is-open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 11, 0.82);
  backdrop-filter: blur(12px);
}

.modal-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 0.8fr);
  width: min(900px, 100%);
  max-height: min(650px, 92vh);
  overflow: auto;
  background: #131e29;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
  animation: modal-in 0.28s ease-out both;
}

.modal-image {
  min-height: 470px;
  background: #e9e5df;
}

.modal-image img {
  width: 100%;
  height: 100%;
  min-height: 470px;
  object-fit: contain;
}

.modal-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 58px 48px;
}

.modal-details h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.05em;
}

.modal-tasting {
  margin: 18px 0 0;
  color: #b8c0c4;
  font-size: 14px;
  line-height: 1.7;
}

.modal-divider {
  height: 1px;
  margin: 36px 0 24px;
  background: var(--line);
}

.modal-meta {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  color: #7e898e;
  font-size: 11px;
}

.modal-meta strong {
  color: #f2eee7;
  font-weight: 500;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 30px;
}

.modal-price {
  color: #f2ae79;
  font-size: 20px;
  font-family: var(--serif);
  font-weight: 500;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(6, 12, 17, 0.55);
  color: #fff;
  cursor: pointer;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 850px) {
  .brand img,
  .site-footer .brand img {
    width: 82px;
    height: 82px;
  }

  .site-header {
    height: 96px;
  }

  .hero-product {
    top: 62%;
  }

  .main-nav.mobile-open {
    display: flex;
    position: absolute;
    top: 96px;
    left: 0;
    right: 0;
    margin: 0;
    padding: 22px 7%;
    flex-direction: column;
    gap: 18px;
    background: rgba(11, 18, 27, 0.97);
    border-bottom: 1px solid var(--line);
    font-size: 13px;
  }

  .product-modal {
    padding: 16px;
  }

  .modal-card {
    display: block;
    max-height: 92vh;
  }

  .modal-image,
  .modal-image img {
    min-height: 260px;
    height: 260px;
  }

  .modal-details {
    padding: 38px 26px 30px;
  }

  .modal-details h2 {
    font-size: 42px;
  }

  .modal-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .floating-socials {
    right: 12px;
    gap: 7px;
  }

  .floating-socials a {
    width: 36px;
    height: 36px;
    font-size: 12px;
  }

  .floating-socials a span {
    display: none;
  }

  .whatsapp-widget {
    right: 14px;
    bottom: 16px;
  }

  .whatsapp-toggle {
    width: 54px;
    height: 54px;
    font-size: 25px;
  }
}
