/* =========================================================
   CLOTH CULTURE — custom styles (layered on top of Tailwind)
   ========================================================= */

html { scroll-behavior: smooth; }
body.no-scroll { overflow: hidden; }

::selection { background: #97001d; color: #f9f9f9; }

/* ---------- Eyebrow label ---------- */
.eyebrow {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #97001d;
  color: #f9f9f9;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.95rem 1.9rem;
  border-radius: 2px;
  transition: background-color 0.25s ease, transform 0.25s ease;
}
.btn-primary:hover { background: #730015; transform: translateY(-1px); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(249,249,249,0.4);
  color: #f9f9f9;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.9rem 1.9rem;
  border-radius: 2px;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}
.btn-outline:hover { border-color: #f9f9f9; background: rgba(249,249,249,0.08); }

.btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f9f9f9;
  color: #97001d;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.95rem 2.2rem;
  border-radius: 2px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-light:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(0,0,0,0.25); }

.link-underline {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #97001d;
  border-bottom: 1px solid #97001d;
  padding-bottom: 3px;
  transition: opacity 0.2s ease;
}
.link-underline:hover { opacity: 0.7; }

/* ---------- Header ---------- */
#siteHeader {
  position: fixed;
  top: 0;
  z-index: 50;
  background: #f9f9f9;
  border-bottom: 1px solid transparent;
}
#siteHeader.header-solid {
  box-shadow: 0 1px 0 rgba(26,28,28,0.08);
  border-bottom-color: #e2e2e2;
}
#siteHeader .header-logo { color: #1a1c1c; }

.nav-link {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: #1a1c1c;
  opacity: 0.75;
  transition: opacity 0.2s ease;
  position: relative;
}
.nav-link:hover { opacity: 1; }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -6px;
  height: 2px;
  background: #97001d;
  transition: right 0.25s ease;
}
.nav-link:hover::after { right: 0; }

.burger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
#menuToggle.open .burger-line:first-child { transform: translateY(3.5px) rotate(45deg); }
#menuToggle.open .burger-line:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-menu {
  max-height: 0;
  overflow: hidden;
  background: #f9f9f9;
  transition: max-height 0.35s ease;
}
.mobile-menu.open { max-height: 547px; box-shadow: 0 1px 0 rgba(26,28,28,0.08); }
.mobile-nav-link {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  color: #1a1c1c;
  padding: 0.7rem 0;
  border-bottom: 1px solid #e2e2e2;
  display: block;
}

/* ---------- Icons ---------- */
.stitch-icon {
  width: 44px;
  height: 44px;
  color: #97001d;
}
.stitch-icon svg { width: 100%; height: 100%; }

/* ---------- Numbered marks ---------- */
.num-mark {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  color: #97001d;
  letter-spacing: 0.05em;
  border-bottom: 2px solid #97001d;
  padding-bottom: 4px;
}

/* ---------- Portfolio cards ---------- */
.portfolio-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 2px;
}
.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.portfolio-card:hover img { transform: scale(1.06); }
.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,28,28,0.85), rgba(26,28,28,0) 55%);
}
.portfolio-label {
  position: absolute;
  left: 1.5rem;
  bottom: 1.5rem;
  color: #f9f9f9;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

/* ---------- Value chain / process grid ---------- */
.process-cell {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #1a1c1c;
  border-radius: 6px;
}
.process-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transition: transform 0.6s ease;
}
.process-cell:hover img { transform: scale(1.08); }
.process-cell-inner {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.1rem 1.2rem;
  background: linear-gradient(to top, rgba(26,28,28,0.85), rgba(26,28,28,0));
}

/* ---------- Timeline ---------- */
.timeline-item {
  border-top: 2px solid #97001d;
  padding-top: 1.25rem;
}

/* ---------- Footer ---------- */
.footer-heading {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f9f9f9;
}
.footer-link { transition: color 0.2s ease; }
.footer-link:hover { color: #f9f9f9; }
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(249,249,249,0.2);
  border-radius: 50%;
  color: #f9f9f9;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.social-icon:hover { border-color: #97001d; background: rgba(151,0,29,0.12); }
.social-icon-dark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(26,28,28,0.15);
  border-radius: 50%;
  color: #1a1c1c;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.social-icon-dark:hover { border-color: #97001d; background: rgba(151,0,29,0.08); color: #97001d; }

.newsletter-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 1px solid rgba(249,249,249,0.25);
  border-right: none;
  color: #f9f9f9;
  font-size: 0.85rem;
  padding: 0.7rem 0.9rem;
  border-radius: 2px 0 0 2px;
}
.newsletter-input::placeholder { color: rgba(249,249,249,0.4); }
.newsletter-input:focus { outline: none; border-color: #97001d; }
.newsletter-btn {
  background: #97001d;
  color: #f9f9f9;
  padding: 0 1rem;
  border-radius: 0 2px 2px 0;
  transition: background-color 0.2s ease;
}
.newsletter-btn:hover { background: #730015; }

/* ---------- Subtle weave texture on dark sections ---------- */
.weave-bg {
  position: relative;
}
.weave-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image:
    repeating-linear-gradient(45deg, #f9f9f9 0, #f9f9f9 1px, transparent 1px, transparent 10px),
    repeating-linear-gradient(-45deg, #f9f9f9 0, #f9f9f9 1px, transparent 1px, transparent 10px);
}

/* ---------- Scroll reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Focus visibility ---------- */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid #97001d;
  outline-offset: 2px;
}

/* =========================================================
   SHARED COMPONENTS — used across inner pages
   ========================================================= */

/* ---------- Active nav state ---------- */
.nav-link.is-active { opacity: 1; }
.nav-link.is-active::after { right: 0; }
.mobile-nav-link.is-active { color: #97001d; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding-top: 5.5rem;
  padding-bottom: 5.5rem;
}
@media (min-width: 768px) {
  .page-hero { padding-top: 7rem; padding-bottom: 7rem; }
}

/* ---------- Icon circles ---------- */
.icon-circle {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(151, 0, 29, 0.08);
  color: #97001d;
}
.icon-circle svg { width: 22px; height: 22px; }
.icon-circle.icon-circle-dark {
  background: rgba(26, 28, 28, 0.06);
  color: #1a1c1c;
}
.icon-circle.icon-circle-inverse {
  background: rgba(249, 249, 249, 0.12);
  color: #f9f9f9;
}

/* ---------- Tiles (highlight / stat grids) ---------- */
.tile {
  background: #ffffff;
  border: 1px solid #e2e2e2;
  border-radius: 4px;
  padding: 1.85rem;
}
.tile-dark { background: #1a1c1c; color: #f9f9f9; border: none; }
.tile-rust { background: #97001d; color: #f9f9f9; border: none; }
.tile-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.65;
}
.tile-value {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 2.1rem;
  line-height: 1.1;
}

/* ---------- Operational highlights grid (About page) ---------- */
.op-tile {
  border-radius: 1.1rem;
  padding: 1.85rem 1.6rem 2rem;
}
.op-tile-rust { background: #97001d; color: #f9f9f9; }
.op-tile-gray { background: #58585c; color: #f9f9f9; }
.op-tile-light { background: #e7e6e3; color: #1a1c1c; }

/* ---------- Tag pills ---------- */
.tag-pill {
  display: inline-flex;
  align-items: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.4rem 0.9rem;
  border: 1px solid #e2e2e2;
  border-radius: 999px;
  color: #1a1c1c;
  background: #fff;
}
.tag-pill-dark {
  border-color: rgba(249, 249, 249, 0.2);
  color: #f9f9f9;
  background: transparent;
}

/* ---------- Category card (Collections page) ---------- */
.category-card {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .category-card { grid-template-columns: 1fr 1fr; align-items: stretch; }
}
.category-card img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; display: block; }
.category-card-body { padding: 2.25rem; display: flex; flex-direction: column; justify-content: center; }

/* ---------- Step / value-chain card ---------- */
.step-card {
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 4px;
  padding: 1.85rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.step-card:hover { border-color: #97001d; box-shadow: 0 8px 24px rgba(0,0,0,0.05); }
.step-num {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  color: rgba(151, 0, 29, 0.3);
}
.step-card-dark {
  background: #97001d;
  border-color: #97001d;
  color: #f9f9f9;
}
.step-card-dark .step-num { color: rgba(249,249,249,0.5); }

/* ---------- Form elements (Contact page) ---------- */
.form-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(26, 28, 28, 0.55);
  display: block;
  margin-bottom: 0.55rem;
}
.form-input, .form-textarea, .form-select {
  width: 100%;
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 2px;
  padding: 0.85rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: #1a1c1c;
  transition: border-color 0.2s ease;
}
.form-input::placeholder, .form-textarea::placeholder { color: rgba(26,28,28,0.35); }
.form-input:focus, .form-textarea:focus, .form-select:focus { outline: none; border-color: #97001d; }
.form-textarea { resize: vertical; min-height: 150px; }

/* ---------- Department items (Contact page) ---------- */
.dept-item { display: flex; gap: 1rem; align-items: flex-start; }

/* ---------- Certification badge (Certifications page) ---------- */
.cert-badge {
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 4px;
  padding: 2.25rem 1.5rem;
  text-align: center;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.cert-badge:hover { border-color: #97001d; transform: translateY(-2px); }
.cert-badge .icon-circle { margin: 0 auto; }

/* Logo inside the descriptive cert card */
.cert-logo-wrap {
  width: 96px;
  height: 96px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9f9f9;
  border-radius: 6px;
  padding: 8px;
  overflow: hidden;
}
.cert-logo-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Official logos gallery tiles */
.cert-logo-tile {
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 4px;
  padding: 1.25rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.cert-logo-tile:hover {
  border-color: #97001d;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px -18px rgba(151, 0, 29, 0.35);
}
.cert-logo-tile img {
  width: 100%;
  height: 110px;
  object-fit: contain;
  display: block;
}
.cert-logo-tile span {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1a1c1c;
}

/* ---------- Info note ---------- */
.info-note {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.85rem;
  color: rgba(26,28,28,0.6);
  border-top: 1px solid #e2e2e2;
  padding-top: 1.5rem;
}
.info-note svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: #97001d; }

/* ---------- Sustainable Worldview: region chips ---------- */
.region-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.15rem;
  border: 1px solid rgba(249, 249, 249, 0.28);
  color: rgba(249, 249, 249, 0.85);
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: border-color 0.25s ease, color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
  background: transparent;
}
.region-chip:hover {
  border-color: #97001d;
  color: #f9f9f9;
  background: rgba(151, 0, 29, 0.12);
  transform: translateY(-1px);
}

/* ---------- Sustainable Worldview: The Journey timeline (vertical) ---------- */
.journey-timeline {
  position: relative;
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 1px solid rgba(249, 249, 249, 0.12);
  padding-left: 2rem;
}
.journey-item {
  position: relative;
  padding: 0.25rem 0 2rem 0;
}
.journey-item:last-child { padding-bottom: 0; }
.journey-marker {
  position: absolute;
  left: -2.4rem;
  top: 0.55rem;
  width: 10px;
  height: 10px;
  background: #97001d;
  display: block;
}
@media (min-width: 768px) {
  .journey-item { padding: 0.5rem 0 2.5rem 0; }
  .journey-marker { top: 0.85rem; width: 12px; height: 12px; }
}
