/* ========================================
   STEP & STITCH TRADING LTD
   Luxury Wholesale Fashion Website
   ======================================== */

/* === RESET & BASE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Brand Colors */
  --charcoal: #101010;
  --cream: #F9F7F2;
  --gold: #C6A76C;
  --warm-gray: #A0A0A0;
  
  /* Typography */
  --font-heading: 'Playfair Display', 'Libre Baskerville', serif;
  --font-body: 'Poppins', 'Inter', sans-serif;
  
  /* Spacing */
  --section-padding: clamp(60px, 10vw, 120px);
  --container-padding: clamp(20px, 5vw, 80px);
  
  /* Transitions */
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-standard: 0.8s;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--cream);
  color: var(--charcoal);
  line-height: 1.7;
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background-color: var(--gold);
  color: var(--cream);
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 1.2rem;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: 1rem;
}

p {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  margin-bottom: 1.5rem;
  color: var(--warm-gray);
  max-width: 70ch;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s var(--ease-smooth);
}

/* === HEADER & NAVIGATION === */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem var(--container-padding);
  background: linear-gradient(180deg, rgba(16,16,16,0.95) 0%, rgba(16,16,16,0.7) 100%);
  backdrop-filter: blur(10px);
  transition: all 0.4s var(--ease-smooth);
}

header.scrolled {
  padding: 1rem var(--container-padding);
  background: rgba(16,16,16,0.98);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1600px;
  margin: 0 auto;
}

.logo {
  height: 50px;
  width: auto;
  transition: all 0.4s var(--ease-smooth);
}

header.scrolled .logo {
  height: 40px;
}

.nav-links {
  display: flex;
  gap: 3rem;
  list-style: none;
}

.nav-links a {
  color: var(--cream);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 5px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.4s var(--ease-smooth);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 28px;
  height: 2px;
  background: var(--cream);
  transition: all 0.3s var(--ease-smooth);
}

/* === HERO SECTION === */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--charcoal);
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-layer {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.hero-layer-1 {
  background-image: url('https://images.unsplash.com/photo-1543163521-1bf539c55dd2?w=1920&q=80');
  opacity: 0.4;
}

.hero-layer-2 {
  background-image: url('https://images.unsplash.com/photo-1460353581641-37baddab0fa2?w=1920&q=80');
  opacity: 0.3;
  mix-blend-mode: overlay;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(16,16,16,0.7) 0%, rgba(198,167,108,0.2) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: var(--cream);
  padding: 0 var(--container-padding);
  max-width: 1200px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1.2s var(--ease-smooth) 0.3s forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.hero-content .subtitle {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 300;
  margin-bottom: 2.5rem;
}

.hero-content p {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  max-width: 800px;
  margin: 0 auto 3rem;
  color: rgba(249,247,242,0.9);
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 1rem 2.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.4s var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gold);
  color: var(--charcoal);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s var(--ease-smooth);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  background: #D4B87D;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(198,167,108,0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--cream);
  border: 2px solid var(--cream);
}

.btn-secondary:hover {
  background: var(--cream);
  color: var(--charcoal);
  transform: translateY(-2px);
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--cream);
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.7;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

.scroll-indicator::after {
  content: '';
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--gold), transparent);
}

/* === SECTION STYLES === */
section {
  padding: var(--section-padding) var(--container-padding);
  position: relative;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s var(--ease-smooth);
}

.section-header.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-label {
  font-size: 0.9rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--charcoal);
  margin-bottom: 1.5rem;
}

.section-description {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--warm-gray);
  max-width: 800px;
  margin: 0 auto;
}

/* === GRID LAYOUTS === */
.grid {
  display: grid;
  gap: 2rem;
  margin-top: 3rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* === CARD STYLES === */
.card {
  position: relative;
  overflow: hidden;
  background: white;
  border-radius: 0;
  transition: all 0.6s var(--ease-smooth);
  opacity: 0;
  transform: translateY(40px);
}

.card.visible {
  opacity: 1;
  transform: translateY(0);
}

.card-image {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  background: var(--charcoal);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.8s var(--ease-smooth);
  will-change: transform;
}

.card:hover .card-image img {
  transform: scale(1.1);
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, rgba(16,16,16,0.8) 100%);
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.6s var(--ease-smooth);
}

.card:hover .card-overlay {
  opacity: 1;
}

.card-content {
  padding: 2rem;
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
  color: var(--charcoal);
}

.card-description {
  font-size: 1rem;
  color: var(--warm-gray);
  line-height: 1.6;
}

/* === FEATURE BOXES === */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}

.feature {
  text-align: center;
  padding: 2.5rem 2rem;
  background: white;
  transition: all 0.4s var(--ease-smooth);
  opacity: 0;
  transform: translateY(30px);
}

.feature.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--gold);
}

.feature h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--charcoal);
}

.feature p {
  font-size: 0.95rem;
  color: var(--warm-gray);
  margin: 0 auto;
}

/* === PARALLAX SECTIONS === */
.parallax-section {
  position: relative;
  height: 60vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--charcoal);
}

.parallax-bg {
  position: absolute;
  top: -10%;
  left: 0;
  width: 100%;
  height: 120%;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.parallax-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--cream);
  padding: 0 var(--container-padding);
}

/* === CONTACT FORM === */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info {
  padding: 2rem 0;
}

.info-item {
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.6s var(--ease-smooth);
}

.info-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.info-label {
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.info-value {
  font-size: 1.1rem;
  color: var(--charcoal);
  font-weight: 400;
}

.contact-form {
  background: white;
  padding: 3rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.form-group {
  margin-bottom: 1.8rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 0.8rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 1rem 1.2rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid #ddd;
  background: var(--cream);
  color: var(--charcoal);
  transition: all 0.3s var(--ease-smooth);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(198,167,108,0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 150px;
}

.form-button {
  width: 100%;
  padding: 1.2rem;
  background: var(--gold);
  color: var(--charcoal);
  border: none;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.4s var(--ease-smooth);
}

.form-button:hover {
  background: var(--charcoal);
  color: var(--cream);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16,16,16,0.3);
}

/* === FOOTER === */
footer {
  background: var(--charcoal);
  color: var(--cream);
  padding: 4rem var(--container-padding) 2rem;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h3 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--gold);
}

.footer-section p,
.footer-section a {
  font-size: 0.95rem;
  color: rgba(249,247,242,0.8);
  line-height: 1.8;
}

.footer-section a:hover {
  color: var(--gold);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(249,247,242,0.1);
  text-align: center;
  font-size: 0.9rem;
  color: rgba(249,247,242,0.6);
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1024px) {
  .nav-links {
    gap: 2rem;
  }
  
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px;
    --container-padding: 20px;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--charcoal);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    transition: right 0.4s var(--ease-smooth);
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
  }
  
  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .btn {
    width: 100%;
  }
  
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .contact-form {
    padding: 2rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* === UTILITY CLASSES === */
.text-center {
  text-align: center;
}

.text-gold {
  color: var(--gold);
}

.bg-dark {
  background-color: var(--charcoal);
  color: var(--cream);
}

.bg-light {
  background-color: var(--cream);
}

.mb-2 {
  margin-bottom: 2rem;
}

.mt-4 {
  margin-top: 4rem;
}

/* === ANIMATIONS === */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn 1s var(--ease-smooth);
}

/* === PRELOADER === */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s var(--ease-smooth), visibility 0.5s var(--ease-smooth);
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-logo {
  width: 200px;
  height: auto;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(0.95);
  }
}

