/* ===== GRID ===== */
.grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.3fr 1.3fr 1.1fr;
  grid-template-rows: 240px 240px;
  gap: 20px;
  grid-template-areas:
    "house commercial industrial industrial chemical"
    "house pump pump tank chemical";
  margin: 0 25px;
}

.card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}

.card.house {
  grid-area: house;
}
.card.commercial {
  grid-area: commercial;
}
.card.industrial {
  grid-area: industrial;
}
.card.pump {
  grid-area: pump;
}
.card.tank {
  grid-area: tank;
}
.card.chemical {
  grid-area: chemical;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(60%);
  transition: 0.4s ease;
}

.card:hover img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.text-house {
  top: 16px;
  right: 16px;
  text-align: right;
}

.text-commercial {
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.text-industrial {
  top: 16px;
  left: 16px;
}

.text-chemical {
  top: 16px;
  right: 16px;
  text-align: right;
}

.text-pump {
  top: 16px;
  left: 16px;
}

.text-tank {
  top: 16px;
  left: 16px;
}

/* .intro-text {
  max-width: 1200px;
  margin: 40px auto 24px;
  padding: 0; 
  text-align: center;
} */

.intro-text {
  display: none;
}

.intro-sub {
  font-size: 18px;
  margin-bottom: 8px;
}

.intro-main {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
}

.info-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.info-actions-left {
  flex-direction: row;
  margin-left: -15px;
}

.info-actions-right {
  justify-content: flex-end;
}

.info-actions-left,
.info-actions-right {
  display: flex;
  gap: 40px;
  padding-left: 12px;
  align-items: center;
}

/* ===== CONTACT BUTTON : DESKTOP ===== */
.contact-wrap {
  gap: 20px;
}

.contact-btn {
  padding: 18px 74px;
  border-radius: 14px;

  font-size: 20px;
  font-weight: 600;
}

.contact-btn .icon {
  width: 30px;
  height: 30px;
}

.info-meta {
  font-size: 15px;
}

.info-actions-left .popup-btn + .popup-btn::before {
  height: 32px;
  margin-left: -20px;
  margin-right: 8px;
}

.popup-bottom {
  padding: 24px 24px 24px;
}

.title-sub {
  font-size: 20px;
  letter-spacing: 6px;
  color: #666;
  text-transform: lowercase;
  margin-bottom: -9px;
  margin-left: 65px;
  white-space: nowrap;
}

/* category */
.title-main {
  font-size: 96px;
  font-weight: 800;
  color: #d71920;
  line-height: 1;
  margin: 0;
  margin-top: -25px;
}

.card-actions {
  position: absolute;
  bottom: 16px;
  right: 16px;

  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: all 0.25s ease;
}

.card:hover .card-actions {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* hover effect */
.card-actions .action:hover {
  background: #c5c5c5;
  color: #000;

  transform: translateY(-2px);
  /* box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35); */
}

.line-icon {
  width: 12px;
  height: 12px;
  object-fit: contain;
}

.card {
  position: relative;
}

.card-actions {
  position: absolute;
  bottom: 12px;
  right: 12px;
}

.card-actions-inner {
  display: flex;
  gap: 15px;

  opacity: 0;
  transform: translateY(6px);
  transition: all 0.25s ease;
}

/* โชว์เมื่อ hover card (desktop only) */
@media (min-width: 769px) {
  .card:hover .card-actions-inner {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-actions-inner {
  display: flex;
  align-items: center;
  gap: 8px;

  background: #ebebeb;
  padding: 8px 14px;
  height: auto;
  border-radius: 999px;

  width: fit-content;

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ปุ่มแต่ละอัน */
.card-actions-inner .action {
  width: 36px;
  height: 36px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
}

/* ไอคอน */
.card-actions-inner img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

#popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  justify-content: center;
  align-items: center;
}

/* ===== desktop (default) ===== */
.action-text {
  display: none;
}

.mobile-only {
  display: none;
}

.popup-btn.phone {
  background: #06038d;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 10px 34px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.header-contact {
  display: none;
}

.contact-btn span {
  position: relative;
  top: -2px;
}

.site-footer {
  background: #f2f2f2;
  color: #666;
  text-align: center;
  padding: 16px 12px;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
}

.phone-text {
  position: relative;
  top: -1px;
}