/* =========================================================================
   TK INTERNATIONAL — Design System
   Palette inspired by the Indian indigo-dye trade (deep ink) and the brass
   fittings / wax seals of export documentation (warm brass accent), set on
   an unbleached-muslin background. The signature motif is a stitched
   dashed line — used as section dividers, card borders and the process
   timeline — a direct nod to garment-making itself.
   ========================================================================= */

:root {
  /* Color tokens */
  --ink-950: #0F1B33;
  --ink-900: #16233F;
  --ink-800: #1E2E4F;
  --ink-700: #2A3E63;
  --indigo-500: #3C5590;
  --brass-500: #B8863B;
  --brass-600: #9C6F2E;
  --brass-100: #F1E4C8;
  --rust-600: #B5502E;
  --muslin-50: #FAF7F0;
  --muslin-100: #F3EEE2;
  --muslin-200: #E9E1D0;
  --charcoal-900: #22252B;
  --charcoal-600: #55595F;
  --line: rgba(184, 134, 59, 0.4);

  /* Type */
  --font-display: 'Fraunces', 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--charcoal-900);
  background: var(--muslin-50);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

.font-mono { font-family: var(--font-mono); }

/* ---- Signature: stitched dashed rule -----------------------------------
   A dashed line rendered with a repeating gradient so the dash length and
   gap are precise (crisper than a CSS border-style: dashed). Used for
   section dividers and as an accent under headings/eyebrows. */
.stitch-line {
  height: 2px;
  background-image: repeating-linear-gradient(
    to right,
    var(--brass-500) 0px,
    var(--brass-500) 8px,
    transparent 8px,
    transparent 16px
  );
}

.stitch-line-v {
  width: 2px;
  background-image: repeating-linear-gradient(
    to bottom,
    var(--brass-500) 0px,
    var(--brass-500) 8px,
    transparent 8px,
    transparent 16px
  );
}

.stitch-border {
  position: relative;
  border: 1px solid var(--muslin-200);
}
.stitch-border::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px dashed var(--line);
  pointer-events: none;
}

/* ---- Eyebrow labels ------------------------------------------------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-600);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--brass-500);
  display: inline-block;
}

/* ---- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.75rem;
  border-radius: 2px;
  transition: all 0.25s ease;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--brass-500);
  color: var(--ink-950);
}
.btn-primary:hover { background: var(--brass-600); transform: translateY(-1px); }

.btn-outline {
  border-color: rgba(250,247,240,0.4);
  color: var(--muslin-50);
}
.btn-outline:hover { background: rgba(250,247,240,0.1); }

.btn-dark {
  background: var(--ink-950);
  color: var(--muslin-50);
}
.btn-dark:hover { background: var(--ink-800); transform: translateY(-1px); }

.btn-whatsapp {
  background: #1E7A4C;
  color: #fff;
}
.btn-whatsapp:hover { background: #176239; }

/* ---- Navigation --------------------------------------------------------*/
#site-header {
  background: rgba(250, 247, 240, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--muslin-200);
}
#site-header.dark-mode {
  background: transparent;
  border-bottom-color: transparent;
}
.nav-link {
  position: relative;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-900);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--brass-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }

/* ---- Hero ---------------------------------------------------------------*/
.hero-wrap {
  background: radial-gradient(circle at 15% 20%, rgba(184,134,59,0.18), transparent 40%),
              linear-gradient(160deg, var(--ink-950) 0%, var(--ink-900) 55%, var(--ink-800) 100%);
  color: var(--muslin-50);
  position: relative;
  overflow: hidden;
}
.hero-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(115deg, rgba(250,247,240,0.035) 0 1px, transparent 1px 90px);
  pointer-events: none;
}

.route-dot {
  animation: pulse-dot 2.6s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}

/* ---- Cards ---------------------------------------------------------------*/
.card {
  background: #fff;
  border: 1px solid var(--muslin-200);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(15,27,51,0.25);
  border-color: var(--brass-500);
}

.stamp {
  width: 92px; height: 92px;
  border: 2px solid var(--brass-500);
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  transform: rotate(-8deg);
  position: relative;
}
.stamp::before {
  content: "";
  position: absolute; inset: 6px;
  border: 1px dashed var(--brass-500);
  border-radius: 999px;
}

/* ---- Counters --------------------------------------------------------- */
.counter-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--brass-500);
}

/* ---- Scroll reveal ----------------------------------------------------- */
.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; }
  .route-dot { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---- Timeline (How It Works) -------------------------------------------*/
.timeline-step {
  position: relative;
  padding-left: 2.75rem;
}
.timeline-step::before {
  content: attr(data-step);
  font-family: var(--font-mono);
  position: absolute;
  left: 0; top: 0;
  width: 2rem; height: 2rem;
  border: 1px solid var(--brass-500);
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  color: var(--brass-600);
  background: var(--muslin-50);
}

/* ---- FAQ accordion -------------------------------------------------------*/
.faq-item summary {
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .faq-icon { transition: transform 0.25s ease; }
.faq-item[open] .faq-icon { transform: rotate(45deg); }

/* ---- Footer -------------------------------------------------------------*/
#site-footer {
  background: var(--ink-950);
  color: rgba(250,247,240,0.75);
}
#site-footer a:hover { color: var(--brass-500); }

/* ---- Utility: fabric texture chip ---------------------------------------*/
.texture-chip {
  background: repeating-linear-gradient(45deg, var(--muslin-200) 0 2px, transparent 2px 6px);
}

/* ---- Sticky WhatsApp bubble ---------------------------------------------*/
#wa-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 50;
}

/* ---- Mobile nav drawer ---------------------------------------------------*/
#mobile-menu { transition: max-height 0.3s ease; overflow: hidden; }

/* ---- Mission / Vision / Goals cards (About page) --------------------------*/
.mv-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.mv-card:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 24px 48px -24px rgba(15,27,51,0.3);
  border-color: var(--brass-500);
}
.mv-icon {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.mv-card:hover .mv-icon {
  transform: rotate(-8deg) scale(1.15);
}

/* ---- "How We Work" arrow process flow (About page) -------------------------*/
.process-flow {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .process-flow { grid-template-columns: repeat(4, 1fr); }
}
.process-step {
  position: relative;
  background: #fff;
  border: 1px solid var(--muslin-200);
  padding: 1.5rem 1.25rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.process-step:hover {
  transform: translateY(-4px);
  border-color: var(--brass-500);
  box-shadow: 0 16px 32px -20px rgba(15,27,51,0.25);
}
.process-step .step-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--brass-600);
  letter-spacing: 0.1em;
}
/* Arrow connector — hidden on the last card in each row via :not(:nth-child(4n)) on desktop,
   and on the very last card overall via the .no-arrow class added in markup. */
.process-step:not(.no-arrow)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -1.35rem;
  width: 1rem;
  height: 1rem;
  transform: translateY(-50%) rotate(45deg);
  border-top: 2px solid var(--brass-500);
  border-right: 2px solid var(--brass-500);
  display: none;
}
@media (min-width: 768px) {
  .process-step:not(.no-arrow):not(:nth-child(4n))::after { display: block; }
}

/* ---- Product gallery (mixed big/small mosaic) -----------------------------*/
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 180px;
    gap: 1rem;
  }
  .gallery-grid .g-feature { grid-column: span 2; grid-row: span 2; }
  .gallery-grid .g-tall    { grid-row: span 2; }
}
.gallery-item {
  overflow: hidden;
  background: var(--muslin-200);
  position: relative;
  display: block;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,27,51,0.35), transparent 55%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.gallery-item:hover::after { opacity: 1; }
@media (max-width: 767px) {
  .gallery-grid .gallery-item { aspect-ratio: 3/4; }
  .gallery-grid .g-feature { grid-column: span 2; aspect-ratio: 4/3; }
}

/* ---- Style list groups (product subcategories) ----------------------------*/
.style-group {
  border: 1px solid var(--muslin-200);
  background: #fff;
  padding: 1.75rem;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.style-group:hover {
  border-color: var(--brass-500);
  transform: translateY(-3px);
  box-shadow: 0 18px 36px -22px rgba(15,27,51,0.25);
}
.style-pill {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--muslin-200);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--charcoal-600);
  transition: all 0.2s ease;
}
.style-group:hover .style-pill { border-color: rgba(184,134,59,0.35); }
.style-pill:hover { background: var(--brass-100); color: var(--brass-600); border-color: var(--brass-500); }
