/* 
========================================================================================

                                    CODE BỞI TRẦN GIA BẢO

========================================================================================
*/

/* --- ADVERTISING BANNER --- */
@keyframes float {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(0.6deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

@keyframes shine {
  0% {
    left: -100%;
  }
  20% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-5px);
  }
  60% {
    transform: translateY(-3px);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.promo-banner {
  margin: 60px 10%;
  background: linear-gradient(135deg, var(--primary) 0%, #2d1a13 100%);
  border-radius: 30px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  animation: float 8s cubic-bezier(0.22, 1, 0.36, 1) infinite;
  will-change: transform;
}

/* Lớp lấp lánh chạy qua banner */
.promo-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transform: skewX(-25deg);
  animation: shine 5.5s linear infinite;
}

.promo-banner::after {
  content: "GIBOR";
  position: absolute;
  top: 0;
  left: 20px;
  font-size: 8rem;
  font-weight: 900;
  opacity: 0.05;
  color: white;
  pointer-events: none;
}

.promo-content {
  flex: 1.2;
  padding: 60px;
  z-index: 2;
}

.promo-tag {
  background: var(--accent);
  color: var(--primary);
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: inline-block;
  animation: bounce 2.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.promo-content h2 {
  font-family: var(--font-heading);
  font-size: 3rem;
  margin-bottom: 15px;
  line-height: 1.2;
}

.promo-content h2 span {
  color: var(--accent);
}

.promo-content p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 30px;
}

.btn-cta {
  display: inline-block;
  background: var(--accent);
  color: var(--primary);
  padding: 12px 30px;
  border-radius: 25px;
  font-weight: 700;
  text-transform: uppercase;
  transition:
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-cta:hover {
  background: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.promo-image {
  flex: 0.8;
  height: 450px;
  background: url("../images/banner/khuyenmai.jpg");
  background-size: cover;
  background-position: center;
  clip-path: polygon(15% 0%, 100% 0%, 100% 100%, 0% 100%);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.promo-banner:hover .promo-image {
  transform: scale(1.1);
}

/* =================================== PHẦN NỀN ======================================== */

/* PHẦN NỀN TỐI */
body.dark {
  --bg: #121212;
  --text: #f5f5f5;
  --navbar: rgba(75, 44, 32, 0.95);
  --card: #1e1e1e;
}

body.dark .intro h2 {
  font-family: var(--font-heading);
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--accent);
}

body.dark .intro .featured-icons {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
}

body.dark .intro .featured-icons i {
  font-size: 2rem;
  color: var(--accent);
}

/* --- HERO SECTION --- */
.hero {
  background: url("../images/banner/hero-bg.jpg") no-repeat center center/cover;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 2;
  animation: fadeIn 1.1s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: 8rem;
  font-weight: 400;
  margin-bottom: 10px;
  color: var(--white);
}

.hero-content p {
  font-size: 1.5rem;
  margin-bottom: 30px;
  font-weight: 300;
}

.hero-btns {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* --- INTRO SECTION --- */
.intro {
  padding: 80px 15%;
  text-align: center;
}

.intro h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--primary);
}

.intro p {
  max-width: 800px;
  margin: 0 auto 40px;
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 40px;
  color: var(--text);
}

.intro .featured-icons {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
}

.intro .featured-icons i {
  font-size: 2rem;
  color: var(--accent);
}

/* =================================== PHẦN NÚT GỬI ======================================== */

.btn {
  padding: 12px 25px;
  border-radius: 5px;
  display: inline-block;
  font-weight: bold;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--primary);
}

.btn-primary:hover {
  background: var(--white);
  color: #000;
  transform: translateY(-3px);
}

.btn-secondary {
  border: 2px solid var(--white);
  color: var(--white);
}

.btn-secondary:hover {
  background: var(--white);
  color: #000;
  transform: translateY(-3px);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 5rem;
  }

  .hero-content p {
    font-size: 1.2rem;
  }

  .hero-btns {
    flex-direction: column;
    align-items: center;
  }

  .intro {
    padding: 60px 5%;
  }

  .promo-banner {
    flex-direction: column;
    margin: 40px 5%;
    text-align: center;
  }

  .promo-content {
    padding: 40px 30px;
  }

  .promo-content h2 {
    font-size: 2rem;
  }

  .promo-image {
    height: 200px;
    width: 100%;
    clip-path: none;
  }

  .promo-banner::after {
    font-size: 4rem;
    left: 10px;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 60vh;
    min-height: 350px;
  }

  .hero-content h1 {
    font-size: 1.8rem;
    letter-spacing: 2px;
  }

  .hero-content p {
    font-size: 0.9rem;
  }

  .hero-btns .btn {
    width: 180px;
    padding: 10px 20px;
    font-size: 13px;
  }

  .promo-banner {
    margin: 20px 3%;
  }

  .promo-content {
    padding: 25px 18px;
  }

  .promo-content h2 {
    font-size: 1.4rem;
  }

  .promo-content p {
    font-size: 0.85rem;
  }

  .promo-tag {
    font-size: 0.7rem;
    padding: 4px 12px;
  }

  .promo-image {
    height: 180px;
  }

  .intro {
    padding: 35px 4%;
  }

  .intro h2 {
    font-size: 1.6rem;
  }

  .intro p {
    font-size: 0.85rem;
  }
}

.home-cta {
  max-width: 1240px;
  margin: 0 auto;
  padding-left: 22px;
  padding-right: 22px;
  padding-bottom: 70px;
}

.home-cta__box {
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 34px 32px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background:
    radial-gradient(
      circle at 85% 0,
      rgba(255, 255, 255, 0.15),
      transparent 30%
    ),
    linear-gradient(150deg, #3d2418 0%, #4b2c20 46%, #27170f 100%);
  box-shadow: var(--home-shadow-strong);
}

.home-cta__content h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.45rem, 2.7vw, 2.2rem);
  margin-bottom: 8px;
}

.home-cta__content p {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.75;
}

.home-cta__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 320px;
}

.home-cta__actions .home-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  line-height: 1;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    background-color 0.24s ease,
    border-color 0.24s ease,
    color 0.24s ease;
}

.home-cta__actions .home-btn--primary {
  color: #2b190f;
  background: linear-gradient(135deg, #f5d7a8 0%, #e9b775 100%);
  border-color: rgba(255, 255, 255, 0.32);
}

.home-cta__actions .home-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
  background: linear-gradient(135deg, #f8deb6 0%, #efc285 100%);
}

.home-cta__actions .home-btn--light {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(2px);
}

.home-cta__actions .home-btn--light:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(255, 255, 255, 0.96);
  color: #2b190f;
}

.home-cta__actions .home-btn:focus-visible {
  outline: 2px solid #f3cf98;
  outline-offset: 2px;
}

@media (max-width: 980px) {
  .home-cta__box {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-cta__actions {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 600px) {
  .home-cta {
    padding-left: 14px;
    padding-right: 14px;
    padding-bottom: 48px;
  }

  .home-cta__box {
    padding: 26px 20px;
    border-radius: 18px;
  }

  .home-cta__actions {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .home-cta__actions .home-btn {
    min-height: 44px;
  }
}

/* 
========================================================================================

                                KẾT THÚC CODE BỞI TRẦN GIA BẢO

========================================================================================
*/
