/* ============================================================
   CORDESTITCH — Premium B2B Manufacturing Brand
   Editorial Fashion × Industrial Credibility
   ============================================================ */

:root {
  --orange:    #FF7A00;
  --orange-dk: #E06A00;
  --dark:      #141414;
  --dark-card: #1E1E1E;
  --warm:      #FAF8F4;
  --warm-mid:  #F0EDE8;
  --warm-dark: #EDE8E0;
  --text:      #141414;
  --muted:     #6B6560;
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Jost', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: var(--font-body); background: var(--warm); color: var(--text); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, h4 { font-family: var(--font-heading); }

/* ── Section h2 headings ── */
section h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.15;
  text-transform: none;
}

/* ── DOT TEXTURE ── */
.dot-texture {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, #141414 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.04;
}

/* ── MARQUEE ── */
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-track { animation: marquee 32s linear infinite; width: max-content; display: flex; align-items: center; }
.marquee-wrapper:hover .marquee-track { animation-play-state: paused; }

/* ── HERO UNDERLINE ANIMATION ── */
@keyframes underline-in { from { width: 0; } to { width: 100%; } }
.hero-underline { position: relative; display: inline-block; }
.hero-underline::after {
  content: ''; position: absolute; bottom: 2px; left: 0;
  height: 4px; background: var(--orange); border-radius: 2px;
  animation: underline-in 1s cubic-bezier(.4,0,.2,1) forwards 0.8s;
  width: 0;
}

/* ── SCROLL REVEAL — safe defaults ── */
.reveal-up, .reveal-left, .reveal-right {
  opacity: 0;
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal-up    { transform: translateY(30px); }
.reveal-left  { transform: translateX(-30px); }
.reveal-right { transform: translateX(30px); }
.reveal-up.visible, .reveal-left.visible, .reveal-right.visible {
  opacity: 1 !important;
  transform: translate(0, 0) !important;
}

/* ── HEADER ── */
#site-header { transition: box-shadow 0.3s ease; }
#site-header.scrolled { box-shadow: 0 2px 32px rgba(0,0,0,0.09); }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--orange); color: #fff; font-weight: 700;
  padding: 14px 32px; border-radius: 999px;
  box-shadow: 0 8px 24px rgba(255,122,0,0.35);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  text-decoration: none; font-size: 15px; cursor: pointer; border: none;
}
.btn-primary:hover { background: var(--orange-dk); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(255,122,0,0.45); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--text);
  border: 1px solid rgba(20,20,20,0.25); font-weight: 500;
  padding: 13px 28px; border-radius: 999px;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  text-decoration: none; font-size: 14px;
}
.btn-secondary:hover { border-color: var(--text); background: var(--text); color: #fff; }

/* ── STATS PILL ── */
.stats-pill {
  background: var(--dark); border-radius: 20px;
  display: flex; align-items: stretch;
  padding: 0; overflow: hidden;
}
.stats-pill .stat-item { text-align: center; padding: 16px 20px; flex: 1; }
.stats-pill .stat-item + .stat-item { border-left: 1px solid rgba(255,255,255,0.08); }
.stats-pill .stat-num { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 26px; color: var(--orange); line-height: 1; }
.stats-pill .stat-lbl { font-size: 10px; color: rgba(255,255,255,0.45); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px; }

/* ── PARTNER LOGOS ── */
.partner-logo-wrap img { transition: filter 0.3s ease, transform 0.3s ease; object-fit: contain; }
.partner-logo-wrap:hover img { filter: grayscale(0%) !important; transform: scale(1.06); }

/* ── LOGO CAROUSEL ── */
.logo-carousel-wrapper {
  position: relative;
  margin-bottom: 3.5rem;
  overflow: hidden;
  padding: 2rem 0;
}
/* Edge fade masks */
.logo-carousel-wrapper::before,
.logo-carousel-wrapper::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 40px;
  pointer-events: none;
  z-index: 2;
}
.logo-carousel-wrapper::before {
  left: 0;
  background: linear-gradient(to right, #fff 0%, transparent 100%);
}
.logo-carousel-wrapper::after {
  right: 0;
  background: linear-gradient(to left, #fff 0%, transparent 100%);
}

/* Scroll track */
.logo-carousel-track {
  display: flex;
  width: max-content;
  animation: marqueeRight 20s linear infinite;
}

/* Continuous scrolling animation (rightwards) */
@keyframes marqueeRight {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* Pause animation on hover */
.logo-carousel-wrapper:hover .logo-carousel-track {
  animation-play-state: paused;
}

/* Group inside track */
.logo-carousel-group {
  display: flex;
  gap: 16px;
  padding-right: 16px;
}

/* Logo cards */
.logo-carousel-item {
  flex: 0 0 150px;
  width: 150px;
  height: 80px;
  margin: 15px 0;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  box-sizing: border-box;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.logo-carousel-item:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 28px rgba(0,0,0,0.12);
}
.logo-carousel-item img {
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: block;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.logo-carousel-item img.loaded {
  opacity: 1;
}


/* ── WHY CARDS ── */
.why-feature-card { transition: transform 0.25s ease; }
.why-feature-card:hover { transform: translateY(-3px); }
.why-small-card { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.why-small-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,0.07); }

/* ── PRODUCT TILES ── */
.product-tile { transition: transform 0.28s ease, box-shadow 0.28s ease; text-decoration: none; display: block; }
.product-tile:hover { transform: translateY(-5px); box-shadow: 0 20px 48px rgba(0,0,0,0.12); }
.product-img-wrap { display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.product-img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; transition: transform 0.45s ease; display: block; }
.product-tile:hover .product-img { transform: scale(1.05); }

/* ── GALLERY ── */
.gallery-item { overflow: hidden; border-radius: 16px; background: var(--dark-card); }
.gallery-item img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; transition: transform 0.5s ease; display: block; }
.gallery-item:hover img { transform: scale(1.06); }

/* ── PROCESS TIMELINE ── */
.process-line {
  position: absolute; top: 50%; left: 0; right: 0; height: 2px;
  background: repeating-linear-gradient(90deg, var(--orange) 0, var(--orange) 10px, transparent 10px, transparent 20px);
  transform: translateY(-50%); z-index: 0;
}
.process-node { position: relative; z-index: 1; }

/* ── TESTIMONIALS ── */
.testi-card { position: relative; overflow: hidden; border-radius: 20px; padding: 36px; }
.testi-card .quote-bg {
  position: absolute; top: -24px; right: 12px;
  font-size: 200px; line-height: 1; font-family: Georgia, serif;
  opacity: 0.05; pointer-events: none; color: inherit;
}
.testi-card .quote-bg::before { content: '"'; }

/* ── FORM ── */
.form-input {
  width: 100%; background: transparent;
  border: none; border-bottom: 1.5px solid #D4CFC8;
  padding: 12px 0; font-size: 14px; color: var(--text);
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: border-color 0.2s ease; outline: none; display: block;
}
.form-input:focus { border-bottom-color: var(--orange); }
.form-input::placeholder { color: #B0A89E; }
.form-select {
  width: 100%; background: transparent;
  border: none; border-bottom: 1.5px solid #D4CFC8;
  padding: 12px 0; font-size: 14px; color: var(--text);
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: border-color 0.2s ease; outline: none;
  appearance: none; cursor: pointer; display: block;
}
.form-select:focus { border-bottom-color: var(--orange); }

/* ── FOOTER WATERMARK ── */
.footer-watermark {
  position: absolute; bottom: -10px; left: -10px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900; font-size: clamp(80px, 14vw, 200px);
  color: #fff; opacity: 0.03; white-space: nowrap;
  pointer-events: none; user-select: none; line-height: 1;
  text-transform: uppercase; letter-spacing: -0.02em;
}

/* ── CREDENTIAL CARD ── */
.cred-card { transition: transform 0.22s ease; }
.cred-card:hover { transform: translateY(-2px); }

/* ── MOBILE STICKY ── */
@media (max-width: 767px) { body { padding-bottom: 70px; } }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--warm); }
::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 3px; }

/* ── SECTION LABEL ── */
.section-label {
  display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--orange);
}

/* ── ROTATED LABEL ── */
.rotated-label {
  writing-mode: vertical-rl; text-orientation: mixed;
  transform: rotate(180deg); font-size: 10px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

/* ── DOT TEXTURE ── */
.dot-texture {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, #141414 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.04;
}

/* ── MARQUEE ── */
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-track { animation: marquee 32s linear infinite; width: max-content; display: flex; align-items: center; }
.marquee-wrapper:hover .marquee-track { animation-play-state: paused; }

/* ── HERO UNDERLINE ANIMATION ── */
@keyframes underline-in { from { width: 0; } to { width: 100%; } }
.hero-underline { position: relative; display: inline-block; }
.hero-underline::after {
  content: ''; position: absolute; bottom: 2px; left: 0;
  height: 4px; background: var(--orange); border-radius: 2px;
  animation: underline-in 1s cubic-bezier(.4,0,.2,1) forwards 0.8s;
  width: 0;
}

/* ── SCROLL REVEAL ── */
.reveal-up, .reveal-left, .reveal-right {
  opacity: 0; transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal-up    { transform: translateY(36px); }
.reveal-left  { transform: translateX(-36px); }
.reveal-right { transform: translateX(36px); }
.reveal-up.visible, .reveal-left.visible, .reveal-right.visible {
  opacity: 1; transform: translate(0, 0);
}
.reveal-up:nth-child(2) { transition-delay: 0.08s; }
.reveal-up:nth-child(3) { transition-delay: 0.16s; }
.reveal-up:nth-child(4) { transition-delay: 0.24s; }
.reveal-up:nth-child(5) { transition-delay: 0.32s; }
.reveal-up:nth-child(6) { transition-delay: 0.40s; }

/* ── HEADER ── */
#site-header { transition: box-shadow 0.3s ease, background 0.3s ease; }
#site-header.scrolled { box-shadow: 0 2px 32px rgba(0,0,0,0.09); }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--orange); color: #fff; font-weight: 700;
  padding: 14px 32px; border-radius: 999px;
  box-shadow: 0 8px 24px rgba(255,122,0,0.35);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  text-decoration: none; font-size: 15px;
}
.btn-primary:hover { background: var(--orange-dk); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(255,122,0,0.45); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--text);
  border: 1px solid rgba(20,20,20,0.3); font-weight: 500;
  padding: 13px 28px; border-radius: 999px;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  text-decoration: none; font-size: 14px;
}
.btn-secondary:hover { border-color: var(--text); background: var(--text); color: #fff; }

/* ── STATS PILL ── */
.stats-pill {
  background: var(--dark); border-radius: 20px;
  display: inline-flex; align-items: center;
  padding: 16px 28px; gap: 0;
}
.stats-pill .stat-item { text-align: center; padding: 0 20px; }
.stats-pill .stat-item + .stat-item { border-left: 1px solid rgba(255,255,255,0.1); }
.stats-pill .stat-num { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 28px; color: var(--orange); line-height: 1; }
.stats-pill .stat-lbl { font-size: 10px; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 3px; }

/* ── PARTNER LOGOS ── */
.partner-logo-wrap img { transition: filter 0.3s ease, transform 0.3s ease; object-fit: contain; }
.partner-logo-wrap:hover img { filter: grayscale(0%) !important; transform: scale(1.06); }

/* ── WHY CARDS ── */
.why-feature-card { transition: transform 0.25s ease; }
.why-feature-card:hover { transform: translateY(-3px); }
.why-small-card { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.why-small-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,0.07); }

/* ── PRODUCT TILES ── */
.product-tile { transition: transform 0.28s ease, box-shadow 0.28s ease; text-decoration: none; display: block; }
.product-tile:hover { transform: translateY(-5px); box-shadow: 0 20px 48px rgba(0,0,0,0.12); }
.product-img-wrap { display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.product-img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; transition: transform 0.45s ease; display: block; }
.product-tile:hover .product-img { transform: scale(1.05); }

/* ── GALLERY ── */
.gallery-item { overflow: hidden; border-radius: 16px; background: var(--dark-card); }
.gallery-item img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; transition: transform 0.5s ease; display: block; }
.gallery-item:hover img { transform: scale(1.06); }

/* ── PROCESS TIMELINE ── */
.process-line {
  position: absolute; top: 50%; left: 0; right: 0; height: 2px;
  background: repeating-linear-gradient(90deg, var(--orange) 0, var(--orange) 10px, transparent 10px, transparent 20px);
  transform: translateY(-50%); z-index: 0;
}
.process-node { position: relative; z-index: 1; }

/* ── TESTIMONIALS ── */
.testi-card { position: relative; overflow: hidden; border-radius: 20px; padding: 36px; }
.testi-card .quote-bg {
  position: absolute; top: -24px; right: 12px;
  font-size: 200px; line-height: 1; font-family: Georgia, serif;
  opacity: 0.05; pointer-events: none; color: inherit;
}

/* ── FORM ── */
.form-input {
  width: 100%; background: transparent;
  border: none; border-bottom: 1.5px solid #D4CFC8;
  padding: 12px 0; font-size: 14px; color: var(--text);
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: border-color 0.2s ease; outline: none;
}
.form-input:focus { border-bottom-color: var(--orange); }
.form-input::placeholder { color: #A09890; }
.form-select {
  width: 100%; background: transparent;
  border: none; border-bottom: 1.5px solid #D4CFC8;
  padding: 12px 0; font-size: 14px; color: var(--text);
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: border-color 0.2s ease; outline: none;
  appearance: none; cursor: pointer;
}
.form-select:focus { border-bottom-color: var(--orange); }

/* ── FOOTER WATERMARK ── */
.footer-watermark {
  position: absolute; bottom: -20px; left: -10px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900; font-size: clamp(80px, 14vw, 200px);
  color: #fff; opacity: 0.03; white-space: nowrap;
  pointer-events: none; user-select: none; line-height: 1;
  text-transform: uppercase; letter-spacing: -0.02em;
}

/* ── CREDENTIAL CARD ── */
.cred-card { transition: transform 0.22s ease; }
.cred-card:hover { transform: translateY(-2px); }

/* ── MOBILE STICKY ── */
@media (max-width: 767px) { body { padding-bottom: 70px; } }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--warm); }
::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 3px; }

/* ── SECTION LABEL ── */
.section-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--orange);
}

/* ── ROTATED LABEL ── */
.rotated-label {
  writing-mode: vertical-rl; text-orientation: mixed;
  transform: rotate(180deg); font-size: 10px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
