/* ================================================
   BEAUTY CODE VAULT — Landing Page Styles
   Font: Baskerville / Libre Baskerville
   Palette: Black, White, warm neutrals
   ================================================ */

/* ---------- RESET & BASE ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Libre Baskerville', 'Baskerville', 'Baskerville Old Face', 'Georgia', serif;
  color: #1a1a1a;
  background: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul {
  list-style: none;
}

/* ---------- UTILITY ---------- */
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-align: center;
  margin-bottom: 2.5rem;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  font-family: inherit;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.9em 2.2em;
  border: 1px solid #1a1a1a;
  background: transparent;
  color: #1a1a1a;
  cursor: pointer;
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

.btn:hover {
  background: #1a1a1a;
  color: #ffffff;
}

.btn--primary {
  background: #1a1a1a;
  color: #ffffff;
  border-color: #1a1a1a;
}

.btn--primary:hover {
  background: #333333;
  border-color: #333333;
}

.btn--outline {
  background: transparent;
  color: #ffffff;
  border-color: #ffffff;
}

.btn--outline:hover {
  background: #ffffff;
  color: #1a1a1a;
}

.btn--dark {
  background: #1a1a1a;
  color: #ffffff;
  border-color: #1a1a1a;
}

.btn--dark:hover {
  background: #333;
  border-color: #333;
}

.btn--sm {
  font-size: 0.6rem;
  padding: 0.75em 1.8em;
}

.btn--full {
  width: 100%;
  text-align: center;
}

/* ================================================
   SPLASH / SIGN-IN OVERLAY
   ================================================ */
.splash {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.splash.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.splash__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transform: scale(1.05);
  transition: transform 12s ease-out;
}

.splash:not(.is-hidden) .splash__bg-img {
  transform: scale(1);
}

.splash__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.splash__card {
  position: relative;
  z-index: 1;
  background: rgba(20, 20, 20, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 3.5rem 3rem;
  max-width: 420px;
  width: 90%;
  text-align: center;
  color: #ffffff;
  animation: cardFadeIn 1.2s ease-out 0.3s both;
}

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

/* Splash Logo */
.splash__logo {
  margin-bottom: 2rem;
}

.splash__logo-main {
  display: block;
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  letter-spacing: 0.14em;
  font-weight: 400;
}

.splash__logo-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.25rem;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  font-weight: 400;
}

.splash__logo-line {
  display: block;
  width: 50px;
  height: 1px;
  background: currentColor;
}

.splash__tagline {
  font-style: italic;
  font-size: 0.92rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.splash__desc {
  font-size: 0.78rem;
  line-height: 1.75;
  opacity: 0.75;
  margin-bottom: 2.2rem;
}

.splash__actions {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
}

/* ================================================
   SIGN-IN MODAL
   ================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal__content {
  position: relative;
  z-index: 1;
  background: #ffffff;
  color: #1a1a1a;
  padding: 3rem 2.5rem;
  max-width: 400px;
  width: 90%;
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.modal.is-open .modal__content {
  transform: translateY(0);
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  font-size: 1.6rem;
  color: #1a1a1a;
  line-height: 1;
  transition: opacity 0.2s;
}

.modal__close:hover {
  opacity: 0.5;
}

.modal__logo {
  text-align: center;
  margin-bottom: 2rem;
  color: #1a1a1a;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  color: #666;
}

.form-group input {
  width: 100%;
  font-family: inherit;
  font-size: 0.85rem;
  padding: 0.7em 0;
  border: none;
  border-bottom: 1px solid #ccc;
  outline: none;
  background: transparent;
  transition: border-color 0.3s;
}

.form-group input:focus {
  border-color: #1a1a1a;
}

.modal__form .btn {
  margin-top: 1.5rem;
}

.modal__footer-text {
  font-size: 0.72rem;
  text-align: center;
  margin-top: 1.2rem;
  color: #888;
}

.modal__link {
  color: #1a1a1a;
  text-decoration: underline;
}

/* ================================================
   MAIN SITE (hidden initially)
   ================================================ */
.main-site {
  opacity: 0;
  transition: opacity 0.8s ease 0.3s;
}

.main-site.is-visible {
  opacity: 1;
}

/* ---------- HEADER ---------- */
.header {
  background: #ffffff;
  padding: 2.5rem 2rem;
  text-align: center;
  border-bottom: 1px solid #f0f0f0;
}

.header__logo-img {
  height: 160px;
  margin: 0 auto;
  object-fit: contain;
}

/* ---------- NAV ---------- */
.nav {
  background: #1a1a1a;
  padding: 0.85rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav__list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.nav__item {
  padding: 0 1rem;
}

.nav__link {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  color: #ffffff;
  transition: opacity 0.3s;
}

.nav__link:hover {
  opacity: 0.65;
}

.nav__divider {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.75rem;
  user-select: none;
}

/* ---------- HERO ---------- */
.hero {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.hero__image-wrapper {
  width: 100%;
  max-height: 75vh;
  overflow: hidden;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 8s ease-out;
}

.hero__image-wrapper:hover .hero__image {
  transform: scale(1.03);
}

/* ---------- BRANDS ---------- */
.brands {
  padding: 4rem 2rem;
  background: #ffffff;
}

.brands__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  max-width: 820px;
  margin: 0 auto;
}

.brands__item {
  border: 1px solid #e0e0e0;
  aspect-ratio: 1.15;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.brands__item:hover {
  border-color: #1a1a1a;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.brands__logo {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  opacity: 0.9;
  transition: opacity 0.3s;
}

.brands__item:hover .brands__logo {
  opacity: 1;
}

/* ================================================
   PRIVATE SELECTION CAROUSEL
   ================================================ */
.private-selection {
  padding: 3rem 0 4rem;
  background: #fafafa;
  overflow: hidden;
}

.carousel {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.carousel__track {
  display: flex;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.carousel__card {
  min-width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
  opacity: 0.4;
  transform: scale(0.92);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.carousel__card--active {
  opacity: 1;
  transform: scale(1);
}

.carousel__card-image {
  overflow: hidden;
}

.carousel__card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 6s ease-out;
}

.carousel__card--active .carousel__card-image img:hover {
  transform: scale(1.05);
}

.carousel__card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 2.5rem;
}

.carousel__card-label {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #1a1a1a;
}

.carousel__card-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 400;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.carousel__card-desc {
  font-size: 0.82rem;
  font-style: italic;
  line-height: 1.7;
  color: #444;
  margin-bottom: 1.8rem;
  max-width: 280px;
}

/* Carousel Controls */
.carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.carousel__arrow {
  width: 40px;
  height: 40px;
  border: 1px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #1a1a1a;
  transition: border-color 0.3s, background 0.3s, color 0.3s;
}

.carousel__arrow:hover {
  border-color: #1a1a1a;
  background: #1a1a1a;
  color: #ffffff;
}

.carousel__dots {
  display: flex;
  gap: 0.6rem;
}

.carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.carousel__dot--active {
  background: #1a1a1a;
  transform: scale(1.25);
}

/* ================================================
   VAULT HIGHLIGHTS
   ================================================ */
.highlights {
  padding: 5rem 2rem;
  background: #ffffff;
}

.highlights__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  max-width: 960px;
  margin: 0 auto;
}

.highlights__card {
  text-align: center;
  padding: 2rem 1.5rem;
  border: 1px solid #f0f0f0;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.highlights__card:hover {
  border-color: #1a1a1a;
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.highlights__card-icon {
  margin-bottom: 1.2rem;
}

.highlights__card-icon svg {
  margin: 0 auto;
}

.highlights__card-title {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.highlights__card-desc {
  font-size: 0.78rem;
  line-height: 1.7;
  color: #666;
  font-style: italic;
}

/* ================================================
   FOOTER
   ================================================ */
.footer {
  background: #1a1a1a;
  color: #ffffff;
  padding: 3.5rem 2rem 2rem;
  text-align: center;
}

.footer__top {
  margin-bottom: 2rem;
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-bottom: 1.5rem;
}

.footer__links a {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.3s;
}

.footer__links a:hover {
  color: #ffffff;
}

.footer__copy {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.06em;
}

/* ================================================
   SCROLL ANIMATIONS
   ================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================
   RESPONSIVE
   ================================================ */

/* Tablet */
@media (max-width: 900px) {
  .brands__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
  }

  .carousel__card {
    grid-template-columns: 1fr 1fr;
    min-height: 360px;
  }

  .carousel__card-content {
    padding: 2rem 1.5rem;
  }

  .highlights__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

/* Mobile */
@media (max-width: 680px) {
  .nav__item {
    padding: 0 0.5rem;
  }

  .nav__link {
    font-size: 0.58rem;
    letter-spacing: 0.15em;
  }

  .brands__grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 360px;
  }

  .brands__item {
    aspect-ratio: 1.6;
  }

  .carousel__card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .carousel__card-image {
    max-height: 280px;
  }

  .carousel__card-content {
    padding: 2rem 1.5rem;
  }

  .highlights__grid {
    grid-template-columns: 1fr;
    max-width: 380px;
  }

  .splash__card {
    padding: 2.5rem 1.8rem;
  }

  .splash__actions {
    flex-direction: column;
    gap: 0.6rem;
  }

  .splash__actions .btn {
    width: 100%;
    text-align: center;
  }

  .footer__links {
    flex-direction: column;
    gap: 1rem;
  }

  .header__logo-img {
    height: 100px;
  }
}

/* Small Mobile */
@media (max-width: 400px) {
  .nav__list {
    flex-wrap: wrap;
    gap: 0.3rem;
  }

  .nav__divider {
    display: none;
  }

  .nav__item {
    padding: 0.2rem 0.6rem;
  }
}