/* Hallmark · macrostructure: Split Hero (home) · Image Story (about) · Card Grid (products) · Visual Process (quality) · Standard Form (contact)
 * nav: N1 standard top · footer: Ft7 contact-led
 * theme: custom (vibe: "premium B2B textile mill, polished hotel-supplier catalog"
 *   · paper oklch(98.5% 0.005 80) · accent oklch(36% 0.090 250) cool · Inter Tight + Inter)
 * axes: light · geometric-sans · cool (sparing)
 * contrast: pass (46-50) · responsive: 320 / 375 / 414 / 768 ✓
 * pre-emit critique: P5 H5 E5 S5 R5 V5
 */

@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* surfaces — pure white-led, cool neutrals */
  --color-paper:    #FFFFFF;                  /* true white */
  --color-paper-2:  #F6F6F8;                  /* near-white surface */
  --color-stone:    #EFEFF2;                  /* light gray band */
  --color-card:     #FFFFFF;                  /* card surface */
  --color-rule:     #E5E6EA;                  /* hairline */
  --color-rule-2:   #C8CACF;                  /* stronger hairline */

  /* ink — charcoal-led, less navy */
  --color-ink:      oklch(20%   0.012 250);  /* near-black charcoal, faint cool */
  --color-ink-2:    oklch(34%   0.010 250);
  --color-mute:     oklch(50%   0.008 260);
  --color-mute-2:   oklch(62%   0.006 260);

  /* accent — sparing navy */
  --color-accent:      oklch(36% 0.095 250); /* deep navy */
  --color-accent-2:    oklch(50% 0.075 245); /* hover */
  --color-accent-soft: oklch(93% 0.020 250);
  --color-focus:       oklch(50% 0.075 245);

  /* type — sans only */
  --font-display: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body:    'Inter',       system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* motion */
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in:     cubic-bezier(0.55, 0, 1, 0.45);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 160ms;
  --dur-base: 240ms;
  --dur-slow: 500ms;

  /* radii — soft, polished */
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-pill: 999px;

  /* shadow — soft */
  --shadow-sm: 0 1px 2px rgba(20, 25, 35, 0.04), 0 1px 1px rgba(20, 25, 35, 0.03);
  --shadow-md: 0 4px 12px rgba(20, 25, 35, 0.06), 0 2px 4px rgba(20, 25, 35, 0.04);
  --shadow-lg: 0 12px 28px rgba(20, 25, 35, 0.08), 0 4px 10px rgba(20, 25, 35, 0.04);
}

::selection { background: var(--color-accent); color: #fff; }

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

html, body {
  overflow-x: clip;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-feature-settings: 'cv11', 'ss01';
  -webkit-text-size-adjust: 100%;
}

body { font-size: 16px; line-height: 1.6; }

/* ─────────── Type scale — restrained ─────────── */

.font-display { font-family: var(--font-display); letter-spacing: -0.02em; }
.font-body    { font-family: var(--font-body); }

.display-xl {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.028em;
  font-weight: 600;
  overflow-wrap: anywhere;
  min-width: 0;
}
.display-lg {
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 2.8vw, 2.25rem);
  line-height: 1.18;
  letter-spacing: -0.022em;
  font-weight: 600;
  overflow-wrap: anywhere;
  min-width: 0;
}
.display-md {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  line-height: 1.3;
  letter-spacing: -0.016em;
  font-weight: 600;
}
.display-sm {
  font-family: var(--font-display);
  font-size: 1.125rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
  font-weight: 600;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.eyebrow-mute { color: var(--color-mute); }

.lead {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-ink-2);
}

.muted   { color: var(--color-mute); }
.muted-2 { color: var(--color-mute-2); }

/* ─────────── Anchors + focus ─────────── */

a { color: inherit; text-decoration: none; transition: color var(--dur-fast) var(--ease-out); }
a:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: 2px;
}
button:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

/* ─────────── Buttons — polished ─────────── */

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.875rem 1.625rem;
  background: var(--color-ink);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9375rem; font-weight: 500;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-ink);
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
  cursor: pointer;
}
.btn-primary:hover, .btn-primary.is-hover { background: var(--color-accent); border-color: var(--color-accent); }
.btn-primary:active, .btn-primary.is-active { transform: translateY(1px); }
.btn-primary:disabled { background: var(--color-mute); border-color: var(--color-mute); cursor: not-allowed; opacity: 0.6; }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.875rem 1.625rem;
  background: transparent;
  color: var(--color-ink);
  border: 1px solid var(--color-rule-2);
  font-family: var(--font-body);
  font-size: 0.9375rem; font-weight: 500;
  border-radius: var(--radius-md);
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
  cursor: pointer;
}
.btn-outline:hover { border-color: var(--color-ink); background: var(--color-paper-2); }

.btn-accent {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.875rem 1.625rem;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9375rem; font-weight: 500;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-accent);
  transition: background var(--dur-fast) var(--ease-out);
  cursor: pointer;
}
.btn-accent:hover { background: var(--color-accent-2); border-color: var(--color-accent-2); }

.btn-outline-light {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.875rem 1.625rem;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  font-family: var(--font-body);
  font-size: 0.9375rem; font-weight: 500;
  border-radius: var(--radius-md);
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
  cursor: pointer;
}
.btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.12); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--color-accent);
  font-family: var(--font-body);
  font-size: 0.9375rem; font-weight: 500;
  transition: color var(--dur-fast) var(--ease-out), gap var(--dur-fast) var(--ease-out);
}
.link-arrow:hover { color: var(--color-ink); gap: 0.75rem; }
.link-arrow .arrow { display: inline-block; transition: transform var(--dur-fast) var(--ease-out); }
.link-arrow:hover .arrow { transform: translateX(3px); }

.link-arrow-light { color: rgba(255, 255, 255, 0.85); }
.link-arrow-light:hover { color: #fff; }

/* ─────────── Containers / chrome ─────────── */

.hr { height: 1px; background: var(--color-rule); border: 0; }
.hr-2 { height: 1px; background: var(--color-rule-2); border: 0; }

/* ─────────── Header (N1 standard, polished) ─────────── */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #FFFFFF;
  border-bottom: 1px solid var(--color-rule);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.125rem 0;
}

.nav-link {
  position: relative;
  font-family: var(--font-body);
  font-size: 0.9375rem; font-weight: 500;
  color: var(--color-ink-2);
  padding: 0.25rem 0;
  transition: color var(--dur-fast) var(--ease-out);
}
.nav-link:hover { color: var(--color-accent); }
.nav-link.is-active { color: var(--color-accent); }

.header-meta {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--color-mute);
}
.header-meta a:hover { color: var(--color-ink); }

/* ─────────── Footer ─────────── */

.site-footer {
  background: var(--color-ink);
  color: rgba(255, 255, 255, 0.7);
}
.site-footer a { color: rgba(255, 255, 255, 0.75); transition: color var(--dur-fast) var(--ease-out); }
.site-footer a:hover { color: #fff; }

/* ─────────── Page banner (with background image + overlay) ─────────── */

.page-banner {
  position: relative;
  padding: 6.5rem 0 4.5rem;
  background-color: var(--color-ink);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(15, 18, 28, 0.72) 0%, rgba(15, 18, 28, 0.55) 55%, rgba(15, 18, 28, 0.80) 100%);
  pointer-events: none;
  z-index: 0;
}
.page-banner > * { position: relative; z-index: 1; }

.page-banner .eyebrow { color: #9DB4DE; }
.page-banner .lead { color: rgba(255, 255, 255, 0.82); }

@media (min-width: 768px) {
  .page-banner { padding: 9rem 0 6rem; }
}

/* ─────────── Bands ─────────── */
.band-stone { background: var(--color-paper-2); }
.band-stone-2 { background: var(--color-stone); }
.band-ink   { background: var(--color-ink); color: rgba(255, 255, 255, 0.85); }
.band-ink .lead, .band-ink .muted { color: rgba(255, 255, 255, 0.72); }
.band-ink .eyebrow { color: rgba(255, 255, 255, 0.78); }

/* ─────────── Images / Frames ─────────── */

.frame {
  overflow: hidden;
  background: var(--color-stone);
  position: relative;
  border-radius: var(--radius-md);
}
.frame-lg { border-radius: var(--radius-lg); }
.frame img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ─────────── Category Card (polished product card) ─────────── */

.product-card {
  display: block;
  background: var(--color-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-rule);
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.product-card:hover {
  border-color: var(--color-rule-2);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.product-card .product-card-image {
  position: relative;
  overflow: hidden;
  background: var(--color-stone);
}
.product-card .product-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.product-card:hover .product-card-image img { transform: scale(1.025); }
.product-card .product-card-body { padding: 1.5rem; }
@media (min-width: 768px) {
  .product-card .product-card-body { padding: 1.75rem; }
}

/* ─────────── Feature tile (smaller, used for 4-col cap blocks) ─────────── */

.feature-tile {
  background: var(--color-card);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.feature-tile:hover {
  border-color: var(--color-rule-2);
  box-shadow: var(--shadow-sm);
}
.feature-tile .feature-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
}

/* ─────────── Stats row ─────────── */

.stat {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 600;
  color: var(--color-ink);
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-mute);
}

/* ─────────── Forms ─────────── */

.input, .textarea {
  width: 100%;
  padding: 0.75rem 0.875rem;
  background: var(--color-card);
  border: 1px solid var(--color-rule-2);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--color-ink);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.input::placeholder, .textarea::placeholder { color: var(--color-mute-2); }
.input:focus, .textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-soft);
}
.textarea { resize: vertical; min-height: 8rem; }
.label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8125rem; font-weight: 500;
  color: var(--color-ink-2);
  margin-bottom: 0.4rem;
}

/* ─────────── Reveal ─────────── */
.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ─────────── Reduced motion ─────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 80ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .product-card:hover { transform: none; }
  .product-card:hover .product-card-image img { transform: none; }
}

/* ─────────── Mobile non-negotiables ─────────── */
@media (max-width: 640px) {
  .display-xl { font-size: 1.875rem; }
  .display-lg { font-size: 1.5rem; }
}

/* ─────────── Container ─────────── */
.wrap {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
@media (min-width: 640px) {
  .wrap { padding-left: 1.75rem; padding-right: 1.75rem; }
}
@media (min-width: 1024px) {
  .wrap { padding-left: 2.5rem; padding-right: 2.5rem; }
}
@media (min-width: 1280px) {
  .wrap { padding-left: 3rem; padding-right: 3rem; max-width: 84rem; }
}

/* ─────────── Pill chips (cert badges) ─────────── */
.chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.375rem 0.8rem;
  background: var(--color-paper-2);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.75rem; font-weight: 500;
  color: var(--color-ink-2);
}
.chip-dark {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.85);
}

/* ─────────── Trust strip ─────────── */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
}
.trust-strip-item {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--color-mute);
}

/* ─────────── Image overlays for hero (optional) ─────────── */
.image-overlay {
  position: relative;
}
.image-overlay::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(20, 25, 35, 0.15), rgba(20, 25, 35, 0));
  pointer-events: none;
}

/* ─────────── Hero slider ─────────── */
.hero-slider {
  position: relative;
  height: 88vh;
  min-height: 600px;
  max-height: 880px;
  overflow: hidden;
  background: var(--color-ink);
}
@media (max-width: 768px) {
  .hero-slider { height: 78vh; min-height: 540px; }
}

.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1200ms var(--ease-in-out), transform 8000ms ease-out;
  transform: scale(1.04);
}
.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(15, 18, 28, 0.7) 0%, rgba(15, 18, 28, 0.45) 45%, rgba(15, 18, 28, 0.78) 100%);
  pointer-events: none;
}

.hero-indicator {
  height: 2px;
  background: rgba(255, 255, 255, 0.35);
  transition: width var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
  cursor: pointer;
  border: 0;
  padding: 0;
}
.hero-indicator:hover { background: rgba(255, 255, 255, 0.7); }
.hero-indicator.is-active { background: #fff; }

.hero-progress {
  position: absolute; left: 0; bottom: 0;
  height: 2px;
  background: var(--color-accent-2);
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition-duration: 200ms; transform: none; }
  .hero-slide.is-active { transform: none; }
}
