/* === BIẾN MÀU SẮC DÀNH CHO LUXURY BRAND === */
:root {
  --primary: #f0a54b;
  --dark: #222222;
  --light: #faf9f6;
  --text-muted: #888888;
}

/* === RESET & CƠ BẢN === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
  font-weight: 300;
}
img,
video {
  display: block;
}

h1,
h2,
h3,
h4,
.serif {
  font-family: "Playfair Display", "Didot", "Georgia", serif;
  font-weight: 400;
}

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

/* === NAVIGATION === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 30px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: linear-gradient(180deg, rgba(250, 249, 246, 0.92) 0%, rgba(250, 249, 246, 0.58) 70%, rgba(250, 249, 246, 0) 100%);
  transition: background 0.5s ease, padding 0.5s ease;
}
.navbar.scrolled {
  background: rgba(250, 249, 246, 0.98);
  backdrop-filter: blur(10px);
  padding: 20px 50px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}
.logo {
  text-transform: uppercase;
  color: #181818;
  text-shadow: 0 1px 12px rgba(255, 255, 255, 0.18);
}
#brandName {
  display: block;
  font-size: 1.7rem;
  letter-spacing: 4.5px;
  font-weight: 700;
}
.logo span {
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: rgba(20, 20, 20, 0.88);
  display: block;
  margin-top: 5px;
  font-family: sans-serif;
  font-weight: 500;
}
.menu-btn {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  border-bottom: 1px solid rgba(20, 20, 20, 0.45);
  color: #111111;
  font-weight: 600;
  transition: border 0.3s, color 0.3s;
}
.menu-btn:hover {
  border-bottom-color: var(--dark);
}

/* === HERO SECTION === */
.hero {
  height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background: center / cover no-repeat;
  background-attachment: fixed;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
}
.hero h1 {
  font-size: 5rem;
  letter-spacing: 5px;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.hero p {
  font-size: 1.2rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-family: sans-serif;
}

/* === TRÌNH BÀY LOOKBOOK DỌC === */
.collection {
  padding: 120px 0;
  content-visibility: auto;
  contain-intrinsic-size: 1200px;
}
.look {
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto 150px;
  gap: 10%;
}
.look.reverse {
  flex-direction: row-reverse;
}

.look-img {
  flex: 1.2;
  height: 80vh;
  background-color: #e0e0e0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.08);
}
.look-img .img-inner {
  width: 100%;
  height: 112%;
  background-position: center 20%;
  background-size: cover;
  background-attachment: scroll;
  transform: scale(1.08);
  transition: transform 1.2s ease, filter 0.8s ease;
  filter: saturate(0.98) contrast(1.02);
}
.look:hover .img-inner {
  transform: scale(1.02);
}

.look-text {
  flex: 0.8;
  padding: 40px 0;
}
.look-text h2 {
  font-size: 3rem;
  margin-bottom: 20px;
  line-height: 1.2;
}
.look-text p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.btn-luxury {
  display: inline-block;
  padding: 12px 0;
  border-bottom: 1px solid var(--dark);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  transition: color 0.3s, border-color 0.3s;
  cursor: pointer;
}
.btn-luxury:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* === LOOKBOOK SLIDER & SILK BACKGROUND === */
.lookbook-slider-section {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
  background-color: #f4f3ef;
  content-visibility: auto;
  contain-intrinsic-size: 900px;
}

.silk-texture-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.24;
  z-index: 1;
  mix-blend-mode: multiply;
}

.lookbook-slider-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.4) 0%,
    rgba(255, 255, 255, 0) 30%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0) 70%,
    rgba(255, 255, 255, 0.3) 100%
  );
  z-index: 2;
  pointer-events: none;
}

.slider-header {
  position: relative;
  z-index: 3;
  text-align: center;
  margin-bottom: 60px;
}
.slider-header h2 {
  font-size: 3.5rem;
  color: var(--dark);
  margin-bottom: 10px;
}
.slider-header p {
  color: var(--text-muted);
  font-size: 1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.horizontal-slider {
  position: relative;
  z-index: 3;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-left: 10vw;
  gap: 40px;
}
.horizontal-slider::-webkit-scrollbar {
  display: none;
}
.horizontal-slider {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.slide-item {
  flex: 0 0 350px;
  scroll-snap-align: center;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s ease;
  cursor: pointer;
  opacity: 0.88;
}
.slide-item:hover,
.slide-item:active {
  opacity: 1;
  transform: translateY(-10px);
}

.slide-img {
  width: 100%;
  height: 500px;
  aspect-ratio: 7 / 10;
  overflow: hidden;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.12);
}
.slide-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(1.04) brightness(1.02);
  transition: transform 1s ease;
}
.slide-item:hover .slide-img img {
  transform: scale(1.05);
}

.slide-caption {
  margin-top: 25px;
  text-align: center;
}
.slide-caption h4 {
  font-size: 1.5rem;
  margin-bottom: 5px;
  color: var(--dark);
}
.slide-caption span {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: sans-serif;
}
.slide-spacer {
  flex: 0 0 10vw;
}

.lookbook-modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  z-index: 300;
}

.lookbook-modal.is-open {
  display: grid;
}

.lookbook-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 18, 15, 0.68);
  backdrop-filter: blur(10px);
}

.lookbook-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(1100px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  background: rgba(252, 249, 243, 0.96);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.24);
}

.lookbook-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(34, 34, 34, 0.08);
  color: var(--dark);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.lookbook-modal-media {
  background: #f3ede3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.lookbook-modal-media img {
  width: 100%;
  max-height: calc(100vh - 120px);
  object-fit: contain;
  border-radius: 18px;
}

.lookbook-modal-copy {
  padding: 84px 32px 32px;
  border-left: 1px solid rgba(34, 34, 34, 0.08);
}

.lookbook-modal-eyebrow {
  margin: 0 0 10px;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.lookbook-modal-copy h3 {
  font-size: 2rem;
  line-height: 1.1;
  margin-bottom: 14px;
}

.lookbook-modal-copy p:last-child {
  color: var(--text-muted);
  margin: 0;
}

.lookbook-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(34, 34, 34, 0.08);
  color: var(--dark);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.lookbook-gallery-nav.prev {
  left: 20px;
}

.lookbook-gallery-nav.next {
  right: 20px;
}

.lookbook-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.lookbook-thumb {
  padding: 0;
  border: 1px solid rgba(34, 34, 34, 0.1);
  border-radius: 12px;
  overflow: hidden;
  background: transparent;
  cursor: pointer;
}

.lookbook-thumb.is-active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(240, 165, 75, 0.2);
}

.lookbook-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

body.lookbook-open {
  overflow: hidden;
}

/* === QUOTE & FOOTER === */
.quote-section {
  padding: 150px 20px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  content-visibility: auto;
  contain-intrinsic-size: 400px;
}
.quote-section h3 {
  font-size: 2.5rem;
  line-height: 1.5;
  margin-bottom: 30px;
  font-style: italic;
}
.quote-section span {
  color: var(--primary);
  font-family: sans-serif;
  letter-spacing: 2px;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.footer {
  padding: 80px 50px 40px;
  border-top: 1px solid #eaeaea;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  content-visibility: auto;
  contain-intrinsic-size: 320px;
}
.footer-col h4 {
  font-family: sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
  color: var(--text-muted);
}
.footer-col p {
  font-size: 1rem;
  margin-bottom: 10px;
}
.footer-brand-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.footer-logo {
  width: min(154px, 42vw);
  height: auto;
  margin: 0 auto 14px;
  object-fit: contain;
}

/* === ANIMATION === */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s ease, transform 1.2s ease;
}
.fade-in.appear {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   RESPONSIVE (TỐI ƯU CHO TABLET & MOBILE)
   ========================================= */

/* Dành cho Màn hình Tablet (iPad) */
@media (max-width: 1024px) {
  .look,
  .look.reverse {
    flex-direction: column;
    margin-bottom: 100px;
    gap: 30px;
  }
  .look-img {
    width: 100%;
    height: 60vh;
  }
  .look-text {
    padding: 0 40px;
    text-align: center;
  }
  .hero h1 {
    font-size: 4rem;
  }
  .hero,
  .look-img .img-inner {
    background-attachment: scroll;
  }
}

/* Dành cho Màn hình Mobile (iPhone, Android) */
@media (max-width: 768px) {
  /* Navbar gọn lại */
  .navbar {
    padding: max(14px, env(safe-area-inset-top)) 18px 14px;
  }
  .navbar.scrolled {
    padding: max(14px, env(safe-area-inset-top)) 18px 14px;
  }
  .logo {
    max-width: 62%;
  }
  #brandName {
    font-size: 1.15rem;
    letter-spacing: 2px;
  }
  .logo span {
    font-size: 0.68rem;
    letter-spacing: 1.4px;
    margin-top: 3px;
  }
  .menu-btn {
    font-size: 0.72rem;
    letter-spacing: 1.6px;
    padding: 8px 0;
  }

  /* Hero Banner vừa vặn hơn */
  .hero {
    min-height: 100svh;
    padding: 0 20px;
  }
  .hero-content {
    width: min(100%, 360px);
    padding-top: 48px;
  }
  .hero h1 {
    font-size: clamp(2.4rem, 9vw, 3.2rem);
    letter-spacing: 2px;
    line-height: 1.05;
  }
  .hero p {
    font-size: 0.78rem;
    letter-spacing: 1.8px;
  }
  .hero-video {
    object-position: 54% center;
  }

  /* Khu vực Lookbook Dọc */
  .collection {
    padding: 72px 0 12px;
  }
  .look {
    margin-bottom: 56px;
    gap: 22px;
  }
  .look-img {
    height: min(58vh, 480px);
  }
  .look-text {
    padding: 0 22px;
  }
  .look-text h2 {
    font-size: 2rem;
    margin-bottom: 14px;
  }
  .look-text p {
    font-size: 0.98rem;
    margin-bottom: 26px;
  }
  .look-img .img-inner {
    height: 100%;
    background-position: center 18%;
    transform: scale(1.04);
  }
  .btn-luxury {
    font-size: 0.78rem;
    letter-spacing: 1.6px;
  }

  /* Khu vực Slider Ngang */
  .lookbook-slider-section {
    padding: 72px 0;
  }
  .slider-header {
    margin-bottom: 36px;
    padding: 0 20px;
  }
  .slider-header h2 {
    font-size: 2rem;
  }
  .slider-header p {
    font-size: 0.78rem;
    letter-spacing: 1.4px;
  }

  .horizontal-slider {
    padding-left: 20px;
    padding-right: 20px;
    scroll-padding-left: 20px;
    gap: 16px;
  }
  .slide-item {
    flex: 0 0 min(78vw, 280px);
    opacity: 0.98;
  }
  .slide-img {
    height: auto;
  }
  .slide-caption h4 {
    font-size: 1.18rem;
  }
  .slide-caption span {
    font-size: 0.76rem;
    letter-spacing: 0.8px;
  }
  .slide-spacer {
    flex-basis: 0;
  }

  .lookbook-modal-dialog {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 24px);
  }
  .lookbook-modal-media {
    padding: 18px;
  }
  .lookbook-modal-copy {
    padding: 18px 20px 24px;
    border-left: 0;
    border-top: 1px solid rgba(34, 34, 34, 0.08);
  }
  .lookbook-modal-copy h3 {
    font-size: 1.5rem;
  }

  /* Quote Section */
  .quote-section {
    padding: 72px 22px;
  }
  .quote-section h3 {
    font-size: 1.45rem;
    line-height: 1.45;
    margin-bottom: 18px;
  }

  /* Footer chuyển thành hàng dọc và căn giữa */
  .footer {
    flex-direction: column;
    text-align: center;
    gap: 28px;
    padding: 52px 20px calc(26px + env(safe-area-inset-bottom));
  }
  .footer-col {
    width: 100%;
    text-align: center !important;
  }
  .footer-col p {
    font-size: 0.95rem;
  }
  .footer-logo {
    width: min(126px, 36.4vw);
    margin-bottom: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .fade-in,
  .slide-item,
  .slide-img img,
  .navbar,
  .menu-btn,
  .btn-luxury {
    transition: none !important;
  }
  .fade-in {
    opacity: 1;
    transform: none;
  }
}
