/* ============================================
   CHELLE'S — Custom Styles
   Classic & Elegant Retail Website
   ============================================ */

/* --- Base & Typography --- */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

::selection {
  background-color: #1a5c3a;
  color: #f5f0e8;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f5f0e8;
}
::-webkit-scrollbar-thumb {
  background: #1a5c3a;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #15472e;
}

/* --- Section Label --- */
.section-label {
  letter-spacing: 0.3em;
}

/* --- Hero --- */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-img {
  will-change: transform;
  transition: transform 8s ease-out;
}

.hero-bg.loaded .hero-img {
  transform: scale(1.05);
}

.hero-overlay {
  background: linear-gradient(
    180deg,
    rgba(8, 29, 19, 0.55) 0%,
    rgba(26, 92, 58, 0.65) 40%,
    rgba(16, 53, 36, 0.80) 70%,
    rgba(8, 29, 19, 0.90) 100%
  );
}

.hero-tagline {
  opacity: 0;
  animation: fadeUp 1s ease 0.3s forwards;
}

.hero-headline {
  opacity: 0;
  animation: fadeUp 1s ease 0.5s forwards;
}

.hero-subtext {
  opacity: 0;
  animation: fadeUp 1s ease 0.7s forwards;
}

.hero-ctas {
  opacity: 0;
  animation: fadeUp 1s ease 0.9s forwards;
}

.hero-scroll {
  opacity: 0;
  animation: fadeIn 1s ease 1.5s forwards;
}

/* --- Buttons --- */
.btn-primary,
.btn-secondary,
.btn-submit {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-primary::after,
.btn-secondary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.05);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: inherit;
}

.btn-primary:hover::after,
.btn-secondary:hover::after {
  opacity: 1;
}

.btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 40px rgba(26, 92, 58, 0.3);
}

/* --- Navbar --- */
#navbar {
  background: transparent;
  transition: background 0.5s ease, box-shadow 0.5s ease, backdrop-filter 0.5s ease;
}

#navbar.scrolled {
  background: rgba(8, 29, 19, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(245, 240, 232, 0.08);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 1px;
  background: #f5f0e8;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 100%;
}

/* --- Mobile Menu --- */
.mobile-nav-link {
  position: relative;
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.mobile-nav-link:hover {
  color: #f5f0e8;
  padding-left: 8px;
}

.mobile-nav-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 1px;
  background: #f5f0e8;
  transition: width 0.3s ease;
}

.mobile-nav-link:hover::before {
  width: 6px;
}

/* --- Collection Cards --- */
.collection-card {
  cursor: pointer;
}

.collection-img {
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Scroll Reveal --- */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-up {
  transform: translateY(0);
}

.reveal-left {
  transform: translateX(0);
}

.reveal-right {
  transform: translateX(0);
}

@media (prefers-reduced-motion: no-preference) {
  .reveal-up {
    transform: translateY(40px);
    opacity: 0;
  }

  .reveal-left {
    transform: translateX(-40px);
    opacity: 0;
  }

  .reveal-right {
    transform: translateX(40px);
    opacity: 0;
  }
}

/* --- Animations --- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* --- Divider Lines --- */
.divider-line {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #1a5c3a, transparent);
}

/* --- Input Focus States --- */
input:focus,
textarea:focus {
  outline: none;
}

/* --- Smooth Image Loading --- */
img {
  image-rendering: auto;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
  .hero-headline {
    font-size: 2.5rem;
  }

  .section-label {
    letter-spacing: 0.2em;
  }
}
