/*
 * The Shared Closet & Resale Shop — Custom Styles
 * Classic & Elegant · Deep Navy + Warm Gold
 */

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

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

body {
  font-family: 'Lato', system-ui, -apple-system, sans-serif;
  background-color: #0f141e;
  color: #d9dbe3;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  line-height: 1.1;
}

/* Selection color */
::selection {
  background-color: rgba(230, 181, 74, 0.3);
  color: #f0f1f5;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0f141e;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #e6b54a, #cc9124);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #e6b54a;
}

/* Gold gradient line decoration */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(230, 181, 74, 0.3), transparent);
}

/* Fade-in animation — progressive enhancement */
.fade-in {
  opacity: 1;
  transform: translateY(0);
  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);
}

@media (prefers-reduced-motion: no-preference) {
  .fade-in.hidden-init {
    opacity: 0;
    transform: translateY(24px);
  }
  .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Image zoom container */
.img-zoom {
  overflow: hidden;
  position: relative;
}

.img-zoom img {
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-zoom:hover img {
  transform: scale(1.05);
}

/* Card hover lift */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Button styles */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #e6b54a 0%, #cc9124 100%);
  color: #0f141e;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 4px 20px rgba(230, 181, 74, 0.25);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #f0c35a 0%, #d69f30 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(230, 181, 74, 0.4);
  color: #0f141e;
  text-decoration: none;
}

.btn-gold:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(230, 181, 74, 0.3);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1.5px solid #e6b54a;
  color: #e6b54a;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  background: transparent;
}

.btn-outline:hover {
  background: #e6b54a;
  color: #0f141e;
  text-decoration: none;
}

/* Input styles */
input, textarea {
  font-family: 'Lato', system-ui, sans-serif;
  font-size: 1rem;
  color: #f0f1f5;
  background: #1a2030;
  border: 1px solid #2e3752;
  border-radius: 4px;
  padding: 0.75rem 1rem;
  width: 100%;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input::placeholder, textarea::placeholder {
  color: #525d84;
}

input:focus, textarea:focus {
  outline: none;
  border-color: #e6b54a;
  box-shadow: 0 0 0 3px rgba(230, 181, 74, 0.15);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* Navigation */
#main-nav {
  transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

#main-nav.scrolled {
  background-color: rgba(8, 12, 20, 0.97);
  box-shadow: 0 2px 30px rgba(0, 0, 0, 0.4);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

/* Mobile menu */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#mobile-menu.open {
  max-height: 400px;
}

/* Mobile menu links */
#mobile-menu a {
  display: block;
  padding: 0.75rem 0;
  color: #b0b5c4;
  text-decoration: none;
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-bottom: 1px solid #1a2030;
  transition: color 0.3s ease;
}

#mobile-menu a:hover {
  color: #e6b54a;
}

/* Decorative ornaments */
.ornament {
  display: inline-block;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #e6b54a, transparent);
}

.ornament-sm {
  display: inline-block;
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e6b54a, transparent);
}

/* Gold accent line under headings */
.gold-line {
  position: relative;
  display: inline-block;
}

.gold-line::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, #e6b54a, #cc9124);
}

/* Form success message */
#form-success {
  animation: fadeInUp 0.5s ease;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
  .fade-in.hidden-init {
    opacity: 1;
    transform: none;
  }
  .img-zoom img {
    transition: none;
  }
  .img-zoom:hover img {
    transform: none;
  }
}

/* Focus visible for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid #e6b54a;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  body {
    background: white;
    color: #1a2030;
  }
  #main-nav, .btn-gold, .btn-outline {
    display: none;
  }
  a {
    color: #1a2030;
    text-decoration: underline;
  }
}
