/* =========================================================
   HAN VU EDITORIAL PORTFOLIO — ZNWR INSPIRED SWISS GRID
   Chỉnh màu sắc, cỡ chữ, khoảng cách và tỷ lệ khung ảnh tại đây
   ========================================================= */

/* Biến màu sắc, font chữ và chiều rộng tối đa của trang */
:root {
  --bg-page: #FFFFFF;          /* Màu nền chính của toàn trang */
  --bg-surface: #F7F7F7;       /* Màu nền khung ảnh khi đang tải hoặc chưa có ảnh */
  --text-primary: #141414;     /* Màu chữ chính (đen than) */
  --text-secondary: #6E6E6E;   /* Màu chữ phụ / đoạn mô tả */
  --text-muted: #9A9A9A;       /* Màu chữ chú thích mờ / label nhỏ */
  --border-hairline: #E8E8E8;  /* Màu đường kẻ mảnh phân cách & viền input */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --max-width: 1360px;       /* Độ rộng tối đa nội dung trên màn hình lớn */
  --gutter: 16px;            /* Khoảng cách giữa các cột ảnh trong grid */
}

/* Reset cơ bản để các trình duyệt hiển thị đồng đều */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-page);
  color: var(--text-primary);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font-family: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Lớp ẩn phần tử khi chuyển đổi giữa trang ALL và trang danh mục / đóng modal */
.hidden {
  display: none !important;
}

/* Khung giới hạn chiều rộng và lề hai bên của trang */
.page-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 36px;
}

/* =========================================================
   1. TOP BAR HEADER (THANH ĐIỀU HƯỚNG DÍNH TRÊN CÙNG, 4 CỘT 2 HÀNG)
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  padding: 20px 0 18px;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

/* Logo chữ nhỏ góc trên trái */
.top-brand {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.4;
}

/* Lưới 4 cột menu bên phải header */
.top-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(84px, auto));
  gap: 36px;
}

.nav-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

/* Từng nút tab lọc danh mục và link ABOUT / CONTACT */
.nav-link {
  background: none;
  border: none;
  padding: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.18s ease;
  text-align: left;
  line-height: 1.35;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  font-weight: 600;
}

/* Dòng chữ phụ nhỏ dưới CONTACT (VD: HCM / DA LAT) */
.nav-meta {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.35;
}

/* =========================================================
   2. HERO DISPLAY TITLE & WIDE BANNER (TIÊU ĐỀ LỚN + BANNER NGANG)
   ========================================================= */
.hero-section {
  padding-top: 28px;
  margin-bottom: 18px;
}

.category-header {
  padding-top: 28px;
  margin-bottom: 24px;
}

.hero-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 14px;
  gap: 16px;
}

/* Chỉnh cỡ chữ tiêu đề display lớn tại đây */
.hero-display-title,
.category-display-title {
  font-size: clamp(48px, 6.2vw, 84px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.92;
  text-transform: uppercase;
  color: var(--text-primary);
}

/* Dòng mô tả ngắn bên phải tiêu đề lớn */
.hero-tagline {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
  padding-bottom: 4px;
}

/* Khung ảnh banner ngang: đổi aspect-ratio nếu muốn banner cao hoặc thấp hơn */
.hero-banner-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9.2;
  background-color: var(--bg-surface);
  overflow: hidden;
}

.hero-banner-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%; /* Canh vị trí lấy nét ảnh (ưu tiên phần đầu/mặt) */
  transition: opacity 0.4s ease, transform 0.7s ease;
}

.hero-banner-frame:hover img {
  transform: scale(1.012);
}

/* Nhãn chữ góc trên trái banner */
.hero-badge-tl {
  position: absolute;
  top: 18px;
  left: 20px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FFFFFF;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.28);
}

/* Chú thích góc dưới phải banner */
.hero-caption-br {
  position: absolute;
  bottom: 18px;
  right: 22px;
  max-width: 340px;
  font-size: 10.5px;
  line-height: 1.45;
  color: #FFFFFF;
  text-align: right;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.32);
}

/* Cụm chấm tròn chuyển slide ở góc dưới trái banner */
.hero-dots {
  position: absolute;
  bottom: 18px;
  left: 20px;
  display: flex;
  gap: 6px;
}

.hero-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 0;
}

.hero-dot.active {
  background: #FFFFFF;
  transform: scale(1.25);
}

/* =========================================================
   3. 4-COLUMN EDITORIAL STRIP (DẢI 4 ẢNH ĐỨNG NGAY DƯỚI BANNER)
   ========================================================= */
.strip-section {
  margin-bottom: 52px;
}

.four-col-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gutter);
}

.strip-card {
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

/* Tỷ lệ khung ảnh 4 cột đứng */
.strip-thumb {
  width: 100%;
  aspect-ratio: 3 / 4.05;
  background-color: var(--bg-surface);
  overflow: hidden;
  margin-bottom: 8px;
}

.strip-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.strip-card:hover .strip-thumb img {
  transform: scale(1.03);
}

.strip-meta-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.strip-title {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}

/* =========================================================
   4. EDITORIAL SPLIT SECTION (CỘT TRÁI CHỮ + CỘT PHẢI ẢNH LỚN)
   ========================================================= */
.editorial-split-section {
  display: grid;
  grid-template-columns: 3.8fr 6.2fr;
  gap: 40px;
  margin-bottom: 64px;
  align-items: stretch;
}

.split-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 22px;
}

.editorial-copy-block {
  max-width: 310px;
}

.editorial-text {
  font-size: 11.5px;
  line-height: 1.58;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.editorial-action-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 4px;
}

.text-action-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.text-action-btn:hover {
  opacity: 0.6;
}

.editorial-bottom-quote {
  margin-top: 48px;
  text-align: right;
  padding-right: 8px;
}

.editorial-quote-line {
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.editorial-quote-line:first-child {
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 8px;
}

.split-right {
  cursor: pointer;
}

/* Khung ảnh lớn bên phải khối split */
.split-feature-frame {
  width: 100%;
  aspect-ratio: 4 / 4.85;
  background-color: var(--bg-surface);
  overflow: hidden;
}

.split-feature-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.split-right:hover .split-feature-frame img {
  transform: scale(1.02);
}

/* =========================================================
   5. WORKS GRID (LƯỚI CÁC TÁC PHẨM CÒN LẠI VÀ LƯỚI TỪNG TAB)
   ========================================================= */
.works-section {
  margin-bottom: 72px;
}

/* Mặc định lưới 3 cột */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px var(--gutter);
}

/* Khi ở tab VIDEO thì chuyển sang lưới 2 cột khung 16:9 */
.works-grid.video-mode {
  grid-template-columns: repeat(2, 1fr);
}

.work-card {
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

/* Thẻ có layout: "landscape" ở trang ALL sẽ trải rộng 2 cột */
.work-card.span-wide {
  grid-column: span 2;
}

.work-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background-color: var(--bg-surface);
  overflow: hidden;
  margin-bottom: 8px;
}

.work-card.span-wide .work-thumb {
  aspect-ratio: 16 / 10;
}

.works-grid.video-mode .work-thumb {
  aspect-ratio: 16 / 9;
}

.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.work-card:hover .work-thumb img {
  transform: scale(1.025);
}

/* Nhãn PLAY FILM góc dưới trái thẻ video */
.video-play-pill {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(20, 20, 20, 0.82);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 5px 10px;
  text-transform: uppercase;
}

.work-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.work-card-title {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-primary);
}

.work-card-sub {
  font-size: 10.5px;
  color: var(--text-muted);
}

/* =========================================================
   6. ABOUT & CONTACT SECTIONS (BỐ CỤC VÀ FORM ĐẶT LỊCH)
   ========================================================= */
.info-section {
  scroll-margin-top: 84px; /* Tránh header sticky che mất tiêu đề khi cuộn tới */
  margin-bottom: 64px;
}

.section-divider {
  height: 1px;
  background-color: var(--border-hairline);
  margin-bottom: 36px;
}

.info-grid {
  display: grid;
  grid-template-columns: 3.8fr 6.2fr;
  gap: 40px;
}

.micro-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.section-heading {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.body-copy {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 28px;
  max-width: 620px;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border-hairline);
}

.spec-item h4 {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.spec-item p {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.direct-contact-list {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}

.brief-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form-row.three-col {
  grid-template-columns: repeat(3, 1fr);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  border: 1px solid var(--border-hairline);
  background-color: var(--bg-page);
  padding: 10px 12px;
  font-size: 12.5px;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--text-primary);
}

.form-submit-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
}

.submit-btn {
  background-color: var(--text-primary);
  color: #FFFFFF;
  border: 1px solid var(--text-primary);
  padding: 11px 24px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.submit-btn:hover {
  background-color: #FFFFFF;
  color: var(--text-primary);
}

.form-status {
  font-size: 12px;
  color: var(--text-secondary);
}

/* =========================================================
   7. EDITORIAL FOOTER (ẢNH TRÒN MẠNG XÃ HỘI + LINK + LOGO LỚN)
   ========================================================= */
.site-footer {
  border-top: 1px solid var(--border-hairline);
  padding: 36px 0 44px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 32px;
  align-items: end;
}

.social-circles {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
}

.social-circle-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

/* Kích thước ảnh tròn mạng xã hội ở chân trang */
.social-circle-thumb {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  background-color: var(--bg-surface);
}

.social-circle-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.social-circle-item:hover .social-circle-thumb img {
  transform: scale(1.08);
}

.social-circle-label {
  font-size: 9.5px;
  color: var(--text-secondary);
}

.footer-legal {
  font-size: 9.5px;
  line-height: 1.45;
  color: var(--text-muted);
  max-width: 280px;
}

.footer-nav-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-self: start;
  padding-top: 4px;
}

.footer-brand-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
}

.footer-display-logo {
  font-size: clamp(38px, 4.4vw, 60px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.92;
  text-transform: uppercase;
  color: var(--text-primary);
}

.footer-copyright {
  font-size: 9.5px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* =========================================================
   8. MODALS (CỬA SỔ XEM ẢNH ĐƠN, ALBUM SERIES VÀ VIDEO)
   ========================================================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.98);
  display: flex;
  flex-direction: column;
  padding: 24px 36px;
}

.modal-close {
  position: fixed;
  top: 24px;
  right: 36px;
  z-index: 110;
  background: none;
  border: 1px solid var(--border-hairline);
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
}

.modal-close.static {
  position: static;
}

.modal-close:hover {
  border-color: var(--text-primary);
}

.lightbox-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}

.lightbox-nav {
  background: none;
  border: 1px solid var(--border-hairline);
  width: 40px;
  height: 40px;
  font-size: 16px;
  cursor: pointer;
  flex-shrink: 0;
}

.lightbox-nav:hover {
  border-color: var(--text-primary);
}

.lightbox-figure {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-height: 86vh;
}

.lightbox-figure img {
  max-height: 78vh;
  width: auto;
  object-fit: contain;
}

.lightbox-caption {
  margin-top: 12px;
  display: flex;
  gap: 16px;
  font-size: 11.5px;
  color: var(--text-secondary);
}

.series-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-hairline);
}

.series-modal-title {
  font-size: 20px;
  font-weight: 500;
}

.series-modal-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 28px 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
}

.series-modal-scroll img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.video-modal-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
}

.video-embed-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #000000;
}

.video-embed-wrapper iframe,
.video-embed-wrapper video {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-modal-info {
  width: 100%;
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.video-modal-info h3 {
  font-size: 14px;
  font-weight: 500;
}

.video-modal-info p {
  font-size: 12px;
  color: var(--text-secondary);
}

/* =========================================================
   9. RESPONSIVE BREAKPOINTS (TỰ CO GIÃN TRÊN TABLET & ĐIỆN THOẠI)
   ========================================================= */
@media (max-width: 960px) {
  .page-wrapper {
    padding: 0 20px;
  }

  .top-nav {
    gap: 20px;
  }

  .four-col-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .editorial-split-section,
  .info-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .editorial-bottom-quote {
    text-align: left;
    margin-top: 24px;
  }

  .works-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .footer-brand-right {
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .header-inner {
    flex-direction: column;
    gap: 12px;
  }

  .top-nav {
    width: 100%;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }

  .hero-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .hero-banner-frame {
    aspect-ratio: 4 / 3;
  }

  .hero-caption-br {
    display: none;
  }

  .four-col-grid,
  .works-grid,
  .works-grid.video-mode,
  .form-row,
  .form-row.three-col,
  .spec-grid,
  .series-modal-scroll {
    grid-template-columns: 1fr;
  }

  .work-card.span-wide {
    grid-column: span 1;
  }
}
