body {
  font-family: Arial, sans-serif;
  margin: 0;
  line-height: 1.6;
}

header {
  background: #000;
  color: #fff;
  padding: 5 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 60px; /* chiều cao header */
  overflow: hidden; /* ngăn logo tràn ra ngoài */
}

.header-top{
    font-family: 'Playfair Display', serif;
    font-size: 25px;
  font-weight: bold;
  padding: 8px 15px;
}

.logo img {
  max-height: 80px; /* bằng chiều cao header */
  width: auto;      /* giữ tỷ lệ gốc */
  display: block;
}

header nav ul {
  list-style: none;
  display: flex;
  gap: 40px; /* khoảng cách rộng hơn */
  margin: 0;
  padding: 0;
}

header nav a {
  color: #000; /* chữ đen để nổi trên nền vàng */
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  padding: 8px 15px;
  background: #FFD700; /* nền vàng */
  border-radius: 6px;
  transition: background 0.3s, color 0.3s;
}

header nav a:hover {
  background: #f1c40f; /* vàng đậm hơn khi hover */
  color: #fff; /* chữ trắng khi hover */
}


/* Banner */
.banner {
  background: url('images/banner.png') center/cover no-repeat;
  height: 500px; /* chiều cao banner */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  position: relative;
}

/* .banner::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4); /* lớp phủ mờ để chữ nổi bật */
*/

.banner-content {
  position: relative;
  z-index: 1;
}

.banner h1 {
  font-size: 36px;
  margin-bottom: 10px;
}

.banner p {
  font-size: 20px;
}


section {
  padding: 50px 20px;
  text-align: center;
}

#services h2 {
  font-family: 'Playfair Display', serif; /* font sang trọng */
  font-size: 36px;
  font-weight: bold;
  margin-top: -20px;
  margin-bottom: 20px;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 2px;
  /* nền vàng */
  background: #fae77b; 
  display: inline-block; /* để nền ôm sát chữ */
  padding: 10px 10px;
  border-radius: 10px; /* bo góc mềm mại */

}


.service-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.service img {
  width: 100%;
  height: 250px;
  object-fit: cover; /* ảnh vừa khung */
  display: block;
}

/* Chữ nằm phía trên ảnh */
.service-text {
  position: absolute;
  top: 20px; /* cách mép trên ảnh */
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.7);
  text-align: center;
  background: rgba(0,0,0,0.4); /* nền mờ để chữ nổi bật */
  padding: 5px 10px;
  border-radius: 5px;
}


#portfolio h2 {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 30px;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: #fae77b; /* nền vàng đồng bộ với "Dịch vụ" */
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.portfolio-item img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  display: block;
}

/* Chữ overlay phía trên ảnh */
.portfolio-text {
    font-family: 'Playfair Display', serif;
  position: absolute;
  top: 0; /* nằm trên cùng ảnh */
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.7);
  text-align: center;
  background: rgba(0,0,0,0.5);
  padding: 8px 12px;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
}


#contact h2 {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 30px;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: #fae77b; /* nền vàng */
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
}

/* Form */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 500px;
  margin: auto;
}

form input,
form textarea {
  padding: 12px 15px;
  border: 2px solid #fae77b; /* viền vàng */
  border-radius: 6px;
  font-size: 16px;
  font-family: 'Playfair Display', serif;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

form input:focus,
form textarea:focus {
  border-color: #f1c40f; /* vàng đậm khi focus */
  box-shadow: 0 0 8px rgba(241,196,15,0.6);
}

form button {
  font-family: 'Playfair Display', serif;
  background: #fae77b;
  color: #000;
  font-size: 18px;
  font-weight: bold;
  padding: 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

form button:hover {
  background: #fae77b;
  color: #fff;
}


footer {
  background: #000;
  color: #fae77b;
  padding: 20px;
  font-family: 'Playfair Display', serif;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* để responsive */
  margin-bottom: 10px;
}

.footer-left p {
  margin: 5px 0;
}

.footer-right {
  display: flex;
  gap: 15px;
}

.social-icon {
  color: #fae77b;
  text-decoration: none;
  font-weight: bold;
  padding: 6px 10px;
  border: 1px solid #FFD700;
  border-radius: 5px;
  transition: background 0.3s, color 0.3s;
}

.social-icon:hover {
  background: #fae77b;
  color: #000;
}

.footer-copy {
  text-align: center;
  font-size: 14px;
  margin-top: 10px;
}


/* responsive

/* Mặc định cho desktop */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  padding: 0 20px;
}
/* ===== TABLET (<= 1024px) ===== */
@media (max-width: 1024px) {

  header {
    padding: 0 15px;
  }

  header nav ul {
    gap: 20px;
  }

  header nav a {
    font-size: 16px;
    padding: 6px 12px;
  }

  .banner {
    height: 200px;
  }

}


/* ===== MOBILE (<= 768px) ===== */
/* Responsive cho màn hình nhỏ (dưới 768px) */
@media (max-width: 768px) {
  header {
    flex-direction: column; /* logo và menu xếp dọc */
    height: auto;
    padding: 10px;
  }

  .logo img {
    max-height: 50px; /* logo nhỏ lại */
    margin-bottom: 10px;
  }

  header nav ul {
    flex-direction: column; /* menu dọc */
    gap: 10px;
    padding: 0;
    margin: 0;
  }

  header nav a {
    display: block;
    text-align: center;
    width: 100%;
  }
  .banner {
    height: 100px;
    padding: 20px;
  }

}


  

@media (max-width: 768px) {
  .service-list,
  .portfolio-grid {
    grid-template-columns: 1fr; /* mỗi hàng 1 cột */
  }
}


