/* Tu dong chuyen tu themes/FHG/brand/brand.css
 * Moi class da doi tien to 'fhg-' de khong dung do voi Bootstrap/theme.
 */

/* ===================================================================
   OUR BRAND — trang index.html
   Mỗi brand là 1 khối .fhg-row, đổi màu bằng biến --accent đặt inline.
   Cần nạp base.css trước file này.
   =================================================================== */

.fhg-page {
  --accent:   #b08c93;   /* mặc định, mỗi .fhg-row tự ghi đè */
  --media-w:  40%;       /* KHONG CON DUNG tu 27/08 (da chuyen sang chia deu 1fr 1fr) */
}

/* ===================== BANNER DAU TRANG ===================== */
/* Cung kieu voi banner trang Our Stars (.fhg-team-banner) */
.fhg-brand-banner { width: 100%; }

.fhg-brand-banner img {
  width: 100%;
  height: 900px;
  object-fit: cover;
  object-position: center;
}

.fhg-brand { padding: 60px 0 90px; }

/* ===================== TIÊU ĐỀ CHUNG ===================== */
.fhg-brand__head { text-align: center; }

.fhg-brand__title {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--orange);
}

.fhg-brand__intro {
  max-width: 1000px;
  margin: 34px auto 0;
  font-size: 15px;
  line-height: 1.6;
}

/* ===================== KHỐI BRAND (.fhg-row) ===================== */
.fhg-row {
  display: grid;
  /* 27/08: chia deu 5-5. Dung 1fr 1fr (khong dung % + var(--media-w) nua)
     vi 1fr chia deu phan con lai SAU khi tru gap -> hai cot bang nhau that su.
     Neu dat 50% thi cot phai chi con 50% - gap, khong con 5-5. */
  grid-template-columns: 1fr 1fr;
  gap: 88px;
  align-items: start;
  margin-top: 90px;
}

/* Biến thể: ảnh nằm bên phải (chi can doi thu tu, cot da bang nhau) */
.fhg-row--reverse .fhg-row__media { order: 2; }

.fhg-row__media img {
  width: 100%;
  aspect-ratio: 1 / 1;      /* 27/08: anh vuong */
  object-fit: cover;
}

/* ---------- Bo anh luan phien khi di chuot vao ----------
   Cac anh trong gallery xep chong len anh chinh, mac dinh trong suot.
   JS (cuoi page-brand.php) gan lop .is-on cho tung anh theo thu tu
   khi con tro nam trong the -> tao hieu ung tu doi anh lien tuc.
   Dung JS thay vi CSS thuan vi CSS khong lam duoc vong lap qua nhieu anh. */
.fhg-row__media--swap {
  position: relative;
  overflow: hidden;
}

.fhg-row__img--hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity .6s ease;
  pointer-events: none;
}

.fhg-row__img--hover.is-on {
  opacity: 1;
}

/* 30/08: truoc day man hinh cam ung an han bo anh (display:none) vi khong hover
   duoc. Nay khach muon tren dien thoai anh TU doi -> phai de anh ton tai trong
   DOM, JS cuoi page-brand.php se tu bat .is-on theo vong lap.
   Khong co JS thi opacity:0 o tren van giu nguyen anh chinh, khong vo layout. */

/* Ton trong cai dat giam chuyen dong cua he dieu hanh */
@media (prefers-reduced-motion: reduce) {
  .fhg-row__img--hover { transition: none; }
}

/* ---------- Logo (ảnh) ---------- */
.fhg-brand-logo {
  display: block;
  height: 80px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

/* Khách duyệt: từ Hiive trở lên to hơn 10% (Glow & Ayola giữ nguyên) */
.fhg-brand-logo--lg { height: 88px; }

/* ---------- Tag ----------
   TAM THOI KHONG DUNG (27/08): da bo hang tag va dong phan hang khoi
   page-brand.php theo yeu cau khach. Giu lai CSS de bat lai cho nhanh.
   Truong ACF "tags" va "level" van con, du lieu khong mat. */
.fhg-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 26px;
}

.fhg-tag {
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 11px 28px;
  font-size: 14px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-dark);
  background: transparent;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .3s ease, color .3s ease;
}

/* Hover: đổ nền bằng chính màu viền */
.fhg-tag:hover {
  background: var(--accent);
  color: #fff;
}

/* ---------- Mô tả ---------- */
.fhg-row__desc {
  /* Truoc day 54px vi nam ngay duoi hang tag. Bo tag roi nen thu lai
     cho can doi voi bo icon phia tren. */
  margin-top: 40px;
  font-size: 12px;      /* 27/08: khach yeu cau 12px */
  line-height: 1.6;     /* tang line-height cho chu nho de doc */
}

/* ---------- Phân hạng ---------- */
.fhg-row__level {
  margin-top: 52px;
  /* Da bo duong ke ngang theo yeu cau khach (25/08).
     Truoc day: padding-bottom: 22px; border-bottom: 1px solid var(--line); */
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-title);
}

/* ---------- Tiện ích ---------- */
/* Khoi 3 icon nay nam ngay duoi logo (truoc day nam duoi phan hang). */
.fhg-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 30px;
}

.fhg-feature { display: flex; align-items: center; gap: 14px; }

.fhg-feature__icon {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  color: var(--accent);
  object-fit: contain;
}

.fhg-feature__label { font-size: 12px; line-height: 1.4; }   /* 27/08: 16 -> 12px */

/* ---------- Danh sách khách sạn ---------- */
.fhg-hotels { margin-top: 40px; }
.fhg-hotels li + li { margin-top: 12px; }

/* Biến thể 2 cột (Ayola & Odua) */
.fhg-hotels--two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* gap: <hang> <cot>. Truoc day cot la 40px, 27/08 khach yeu cau ve 12px */
  gap: 12px;
}
.fhg-hotels--two li + li { margin-top: 0; }

.fhg-hotels a {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 12px;      /* 27/08: 14 -> 12px */
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-dark);
  transition: color .25s ease;
}
.fhg-hotels a:hover { color: var(--accent); }

.fhg-chev {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--text-dark);
  transition: transform .25s ease, color .25s ease;
}
.fhg-hotels a:hover .fhg-chev {
  transform: translateX(4px);
  color: var(--accent);
}

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 1180px) {
  .fhg-brand-banner img { height: 700px; }
  .fhg-row { gap: 48px; }   /* cot van chia deu 1fr 1fr, chi thu hep khoang cach */
  .fhg-brand-logo { height: 70px; }
  .fhg-brand-logo--lg { height: 77px; }
  .fhg-row__desc { margin-top: 40px; }
}

@media (max-width: 900px) {
  .fhg-brand-banner img { height: 560px; }
  .fhg-brand { padding: 48px 0 64px; }
  .fhg-brand__title { font-size: 30px; letter-spacing: 4px; }

  .fhg-row {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 64px;
  }
  .fhg-row--reverse { grid-template-columns: 1fr; }
  .fhg-row--reverse .fhg-row__media { order: 0; }

  .fhg-row__media img { aspect-ratio: 16 / 11; }
  .fhg-row__desc  { margin-top: 32px; }
  .fhg-row__level { margin-top: 36px; }
}

@media (max-width: 560px) {
  .fhg-brand-banner img { height: 380px; }
  .fhg-brand__title { font-size: 24px; }
  .fhg-brand__intro { font-size: 14px; }

  /* 30/08: mobile -> logo can giua.
     img co width:auto nen margin auto la du; object-position doi theo
     de phong truong hop logo bi max-width:100% bop lai. */
  .fhg-brand-logo { height: 58px; margin-left: auto; margin-right: auto; object-position: center; }
  .fhg-brand-logo--lg { height: 64px; }
        
  .fhg-tags { gap: 12px; }
  .fhg-tag  { padding: 9px 20px; font-size: 12px; }

  /* 30/08: khach muon 3 icon dan ngang tren mobile.
     3 cot rat hep -> chuyen icon len tren, chu xuong duoi va can giua. */
  .fhg-features { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .fhg-feature  { flex-direction: column; text-align: center; gap: 10px; }
  .fhg-feature__icon  { width: 44px; height: 44px; }
  .fhg-feature__label { font-size: 11px; }
  .fhg-hotels--two { grid-template-columns: 1fr; }

  .fhg-row__media img { aspect-ratio: 4 / 3; }

  /* 30/08: tren mobile noi dung bi bo qua -> giam padding 2 ben container
     tu 24px xuong 12px (chi ap cho trang Our Brand). */
  .fhg-page--brand .fhg-container { padding: 0 12px; }
}
