/* ============================================================
   FATEX HOME TEXTILE — Design System
   Slate navy + warm paper + gold. Cormorant + Manrope.
   Rebuilt as a plain static site (no React/Babel at runtime).
   ============================================================ */

:root {
  /* Ink / slate (from logo) */
  --slate-950: #1c232b;
  --slate-900: #232b34;
  --slate-850: #29323c;
  --slate-800: #2e3842;   /* primary dark surface */
  --slate-700: #3b4753;
  --slate-600: #56636f;

  /* Warm paper neutrals */
  --paper:    #f6f2ea;
  --paper-2:  #efe9dd;
  --paper-3:  #e6dece;
  --line:     #ddd4c4;

  /* Gold accent (logo rule) */
  --gold:      #bfa069;
  --gold-soft: #cdb488;
  --gold-deep: #a3854f;

  /* Text */
  --ink:        #262d34;
  --ink-soft:   #51596180;
  --on-dark:    #ece7dd;
  --on-dark-mut:#9aa3ac;
  --on-dark-fai:#6f7882;

  --maxw: 1280px;
  --gut: clamp(20px, 5vw, 72px);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

/* ---------- type helpers ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow.on-dark { color: var(--gold-soft); }
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.04; letter-spacing: -0.01em; }

.display {
  font-size: clamp(38px, 6.2vw, 92px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.015em;
}
.h2 {
  font-size: clamp(30px, 4.6vw, 60px);
  font-weight: 400;
}
.h3 { font-size: clamp(22px, 2.6vw, 34px); }

.lede {
  font-size: clamp(16px, 1.45vw, 20px);
  line-height: 1.65;
  color: #4a525b;
  font-weight: 400;
}

/* ---------- buttons ---------- */
.btn {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 16px 30px;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: all 0.45s var(--ease);
  background: none;
  border-radius: 15px;
}
.btn-gold {
  background: var(--gold);
  color: var(--slate-900);
}
.btn-gold:hover { background: var(--gold-deep); color: #fff; }
.btn-outline {
  border-color: var(--slate-700);
  color: var(--ink);
}
.btn-outline:hover { background: var(--slate-800); color: var(--on-dark); border-color: var(--slate-800); }
.btn-outline.on-dark { border-color: #ffffff35; color: var(--on-dark); }
.btn-outline.on-dark:hover { background: var(--on-dark); color: var(--slate-900); border-color: var(--on-dark); }
.btn .arr { transition: transform 0.4s var(--ease); }
.btn:hover .arr { transform: translateX(5px); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut); }
section { position: relative; }
.section-pad { padding-block: clamp(72px, 11vh, 150px); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--gut);
  transition: background 0.5s var(--ease), padding 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.nav::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 130px;
  background: linear-gradient(to bottom, rgba(20,26,32,0.55), rgba(20,26,32,0));
  pointer-events: none;
  z-index: -1;
  transition: opacity 0.5s var(--ease);
}
.nav.scrolled::before { opacity: 0; }
.nav.scrolled {
  background: rgba(244, 240, 232, 0.92);
  backdrop-filter: blur(14px);
  padding-block: 14px;
  box-shadow: 0 1px 0 var(--line);
}
.brand { display: flex; align-items: center; line-height: 1; text-decoration: none; }
.brand .logo { height: 46px; width: auto; display: block; transition: height 0.5s var(--ease); }
.nav.scrolled .brand .logo { height: 38px; }
.brand .logo-dark { display: none; }
.nav.scrolled .brand .logo-light { display: none; }
.nav.scrolled .brand .logo-dark { display: block; }

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.06em;
  font-weight: 500;
  text-decoration: none;
  color: var(--on-dark);
  position: relative;
  transition: color 0.4s var(--ease);
  padding-block: 4px;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.4s var(--ease);
}
.nav-links a:hover::after { width: 100%; }
.nav.scrolled .nav-links a { color: var(--slate-700); }
.nav-cta {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 12px 22px;
  border: 1px solid #ffffff40;
  color: var(--on-dark);
  text-decoration: none;
  transition: all 0.4s var(--ease);
  border-radius: 15px;
}
.nav-cta:hover { background: var(--gold); color: var(--slate-900); border-color: var(--gold); }
.nav.scrolled .nav-cta { border-color: var(--slate-700); color: var(--slate-800); }
.nav.scrolled .nav-cta:hover { background: var(--slate-800); color: var(--on-dark); border-color: var(--slate-800); }
.nav-toggle { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--slate-800);
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px var(--gut) 70px;
  position: relative;
}
.hero-copy::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(transparent, var(--gold) 30%, var(--gold) 70%, transparent);
  opacity: 0.5;
}
.hero-copy .display { color: var(--on-dark); }
.hero-copy .display em { font-style: italic; color: var(--gold-soft); }
.hero-sub {
  color: var(--on-dark-mut);
  font-size: 18px;
  line-height: 1.7;
  max-width: 30ch;
  margin-top: 28px;
}
.hero-actions { display: flex; gap: 16px; margin-top: 40px; flex-wrap: wrap; }
.hero-foot {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid #ffffff1a;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--on-dark-fai);
}
.hero-img { position: relative; overflow: hidden; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-img .tag {
  position: absolute;
  left: 28px; bottom: 28px;
  background: rgba(28,35,43,0.78);
  backdrop-filter: blur(6px);
  color: var(--on-dark);
  padding: 12px 18px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 15px;
}
.hero-img .tag span { color: var(--gold-soft); }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 5;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--on-dark-fai);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.scroll-cue .ln { width: 1px; height: 40px; background: linear-gradient(var(--gold), transparent); animation: cue 2.4s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0%,100%{ transform: scaleY(0.4); opacity: 0.4 } 50% { transform: scaleY(1); opacity: 1 } }

/* ============================================================
   MARQUEE / trust strip
   ============================================================ */
.strip {
  background: var(--slate-900);
  border-block: 1px solid #ffffff12;
  overflow: hidden;
  padding-block: 22px;
}
.strip-track {
  display: flex;
  gap: 64px;
  white-space: nowrap;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.strip-track span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--on-dark-mut);
  display: inline-flex;
  align-items: center;
  gap: 64px;
}
.strip-track span::after { content: "✦"; color: var(--gold); font-style: normal; font-size: 12px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   SECTION HEADER
   ============================================================ */
.sec-head { max-width: 720px; }
.sec-head .h2 { margin-top: 22px; }
.sec-head .lede { margin-top: 22px; }

/* ============================================================
   PRODUCT CATEGORIES
   ============================================================ */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 60px;
}
.cat {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  text-decoration: none;
  background: var(--slate-800);
  cursor: pointer;
  border-radius: 10px;
}
.cat img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease), opacity 0.7s var(--ease);
}
.cat .alt {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s var(--ease);
}
.cat:hover img.base { transform: scale(1.06); }
.cat:hover .alt { opacity: 1; }
.cat::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,26,32,0.86) 0%, rgba(20,26,32,0.12) 48%, transparent 75%);
  z-index: 1;
}
.cat-body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 34px 30px;
  color: var(--on-dark);
}
.cat-body .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--gold-soft);
}
.cat-body h3 { font-size: 30px; margin-top: 4px; transition: transform 0.5s var(--ease); }
.cat-body .desc {
  font-size: 14px;
  color: var(--on-dark-mut);
  margin-top: 10px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.6s var(--ease), opacity 0.5s var(--ease), margin 0.5s var(--ease);
}
.cat:hover .cat-body .desc { max-height: 80px; opacity: 1; }
.cat-body .more {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-top: 16px;
}

/* ============================================================
   MANUFACTURING
   ============================================================ */
.mfg { background: var(--slate-800); color: var(--on-dark); }
.mfg-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.mfg .h2 { color: var(--on-dark); }
.mfg .lede { color: var(--on-dark-mut); }
.mfg-figure { position: relative; }
.mfg-figure img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 15px; }
.mfg-figure .badge {
  position: absolute;
  right: -22px; bottom: 38px;
  background: var(--gold);
  color: var(--slate-900);
  padding: 26px 30px;
  max-width: 220px;
}
.mfg-figure .badge .n { font-family: var(--serif); font-size: 44px; line-height: 1; }
.mfg-figure .badge .l { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; margin-top: 8px; font-weight: 600; }

.caps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 44px;
  background: #ffffff14;
  border: 1px solid #ffffff14;
}
.cap {
  background: var(--slate-800);
  padding: 26px 24px;
  transition: background 0.4s var(--ease);
}
.cap:hover { background: var(--slate-850); }
.cap .ic { font-family: var(--serif); font-size: 22px; color: var(--gold-soft); }
.cap h4 { font-family: var(--sans); font-size: 15px; font-weight: 700; margin-top: 10px; color: var(--on-dark); letter-spacing: 0.01em; }
.cap p { font-size: 13.5px; color: var(--on-dark-mut); margin-top: 6px; line-height: 1.5; }

/* ============================================================
   ABOUT / FOUNDER
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.founder-card { position: relative; }
.founder-card img.pic {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 18%;
  background: var(--paper-3);
  border-radius: 20px;
}
.founder-card .frame { position: absolute; inset: 18px; border: 1px solid var(--gold); z-index: 2; pointer-events: none; }
.quote-mark { font-family: var(--serif); font-size: 90px; line-height: 0.6; color: var(--gold); height: 44px; }
.about-quote { font-family: var(--serif); font-size: clamp(24px, 3vw, 38px); line-height: 1.25; margin-top: 18px; color: var(--ink); }
.about-quote em { font-style: italic; color: var(--gold-deep); }
.about-body { margin-top: 28px; }
.about-body p + p { margin-top: 16px; }
.sig { margin-top: 30px; }
.sig .name { font-family: var(--serif); font-size: 24px; }
.sig .role { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-deep); margin-top: 4px; }

/* ============================================================
   HOSPITALITY
   ============================================================ */
.hosp { background: var(--paper-2); }
.hosp-banner { position: relative; overflow: hidden; }
.hosp-banner img { width: 100%; height: clamp(340px, 50vh, 520px); object-fit: cover; }
.hosp-banner .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(28,35,43,0.9) 0%, rgba(28,35,43,0.55) 45%, transparent 80%);
  display: flex; align-items: center;
}
.hosp-banner .overlay-in { padding: 0 var(--gut); max-width: 620px; color: var(--on-dark); }
.hosp-banner .h2 { color: var(--on-dark); }
.hosp-banner .lede { color: var(--on-dark-mut); margin-top: 18px; }
.hosp-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hosp-tags span {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid #ffffff40; padding: 9px 16px; color: var(--on-dark);
}

/* ============================================================
   TRADE / CERT / SUSTAIN
   ============================================================ */
.feature-rows { margin-top: 56px; border-top: 1px solid var(--line); }
.frow {
  display: grid;
  grid-template-columns: 56px 1fr 1.4fr;
  gap: 30px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease);
}
.frow:hover { background: #ffffff6e; padding-inline: 18px; }
.frow .idx { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--gold-deep); }
.frow h3 { font-size: 26px; }
.frow .ft { color: #51595f; font-size: 15.5px; line-height: 1.6; }
.frow .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.frow .chips span { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-deep); border: 1px solid var(--line); padding: 5px 11px; }

/* ============================================================
   QUOTE / CONTACT
   ============================================================ */
.contact { background: var(--slate-900); color: var(--on-dark); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
}
.contact .h2 { color: var(--on-dark); }
.contact .lede { color: var(--on-dark-mut); margin-top: 20px; }
.contact-info { margin-top: 46px; display: flex; flex-direction: column; gap: 26px; }
.cinfo .k { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-soft); }
.cinfo .v { font-size: 16px; color: var(--on-dark); margin-top: 6px; line-height: 1.55; }
.cinfo .v a { color: var(--on-dark); text-decoration: none; border-bottom: 1px solid #ffffff30; transition: border-color 0.3s; }
.cinfo .v a:hover { border-color: var(--gold); }

.form { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 9px; }
.field label { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-dark-mut); }
.field input, .field select, .field textarea {
  font-family: var(--sans);
  font-size: 15px;
  background: transparent;
  border: none;
  border-bottom: 1px solid #ffffff2e;
  color: var(--on-dark);
  padding: 10px 2px;
  transition: border-color 0.4s var(--ease);
  border-radius: 0;
  width: 100%;
}
.field select option { color: #222; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field input::placeholder, .field textarea::placeholder { color: #ffffff40; }
.field textarea { resize: vertical; min-height: 70px; }
.form .btn-gold { justify-content: center; width: 100%; margin-top: 8px; border-radius: 20px; }
.form-note { font-size: 12px; color: var(--on-dark-fai); }
.form-error { font-size: 13px; color: #e8a2a2; min-height: 18px; }
.form-success {
  border: 1px solid var(--gold);
  padding: 40px 34px;
  text-align: center;
}
.form-success .tick { font-family: var(--serif); font-size: 40px; color: var(--gold); }
.form-success h3 { color: var(--on-dark); font-size: 26px; margin-top: 12px; }
.form-success p { color: var(--on-dark-mut); margin-top: 10px; font-size: 14.5px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--slate-950); color: var(--on-dark-mut); padding-block: 70px 36px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid #ffffff14; }
.footer .brand-blk .footer-logo { height: 54px; width: auto; display: block; }
.footer .brand-blk p { font-size: 14px; max-width: 34ch; margin-top: 22px; line-height: 1.6; }
.fcol h5 { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 18px; }
.fcol a, .fcol .li { display: block; font-size: 14px; color: var(--on-dark-mut); text-decoration: none; margin-bottom: 12px; transition: color 0.3s; }
.fcol a:hover { color: var(--on-dark); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 30px; font-size: 12.5px; flex-wrap: wrap; gap: 12px; }
.footer-bottom .made { color: var(--on-dark-fai); }

/* ============================================================
   REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .strip-track, .scroll-cue .ln { animation: none; }
  html { scroll-behavior: auto; }
}

/* mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--slate-900);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.mobile-menu a { font-family: var(--serif); font-size: 30px; color: var(--on-dark); text-decoration: none; }
.mobile-menu a:hover { color: var(--gold-soft); }

/* ============================================================
   RESPONSIVE BREAKPOINTS
   Desktop:  > 1024px  (styles above are the desktop baseline)
   Tablet:   641px – 1024px
   Mobile:   <= 640px
   ============================================================ */

/* ---------- TABLET ---------- */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { padding-top: 130px; order: 2; }
  .hero-copy::after { display: none; }
  .hero-img { order: 1; height: 56vh; }
  .mfg-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .mfg-figure .badge { right: 20px; }
  .about-grid .founder-card { max-width: 420px; margin-inline: auto; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

/* ---------- LARGE MOBILE / SMALL TABLET ---------- */
@media (max-width: 780px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
  .nav-toggle span { width: 24px; height: 2px; background: var(--on-dark); transition: background 0.4s; }
  .nav.scrolled .nav-toggle span { background: var(--slate-800); }
  .mobile-menu.open { display: flex; }
  .cap { padding: 22px 18px; }
}

/* ---------- MOBILE ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 20px; }
  .section-pad { padding-block: 64px; }
  .cat-grid { grid-template-columns: 1fr; }
  .cat { aspect-ratio: 4/3; }
  .cat-body .desc { max-height: 80px; opacity: 1; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .frow { grid-template-columns: 1fr; gap: 10px; }
  .frow .idx { font-size: 18px; }
  .frow:hover { padding-inline: 0; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .mfg-figure .badge { position: static; margin-top: 16px; max-width: none; }
  .hosp-banner .overlay { background: linear-gradient(180deg, rgba(28,35,43,0.55) 0%, rgba(28,35,43,0.92) 65%); align-items: flex-end; }
  .hosp-banner .overlay-in { padding: 0 20px 32px; max-width: none; }
  .hosp-banner img { height: 70vh; }
}

/* ---------- VERY SMALL PHONES ---------- */
@media (max-width: 380px) {
  .display { font-size: 34px; }
  .hero-sub { max-width: none; }
  .btn { padding: 14px 22px; font-size: 12px; }
}
