/* ============================================================
   Fabricity Textile — shared stylesheet
   Identity: pulled directly from the logo — deep navy, the
   brand's exact red, and clean neutral greys on a crisp
   white ground. Warm grey is reserved for depicting the raw
   cotton fabric itself, never for site chrome.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Zilla+Slab:wght@400;500;600;700&family=Work+Sans:wght@400;500;600&display=swap');

:root{
  --charcoal:#0A2A45;
  --iron:#4D4D4D;
  --grey-cotton:#C6C4BE;
  --grey-cotton-dark:#A6A49D;
  --bone:#FAFAF8;
  --bone-deep:#F0EFEC;
  --steel:#0F4573;
  --steel-dark:#072B49;
  --rust:#FF0000;
  --rust-dark:#CC0000;
  --line:rgba(10,42,69,0.13);
  --line-strong:rgba(10,42,69,0.26);

  --font-head:'Zilla Slab', Georgia, serif;
  --font-body:'Work Sans', -apple-system, sans-serif;

  --nav-w:264px;
  --gutter:clamp(24px, 5vw, 64px);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; }
}

body{
  margin:0;
  background:var(--bone);
  color:var(--charcoal);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}

h1,h2,h3,h4{
  font-family:var(--font-head);
  color:var(--charcoal);
  margin:0 0 0.4em;
  line-height:1.12;
  font-weight:600;
  letter-spacing:-0.01em;
}
h1{ font-size:clamp(2.4rem, 5vw, 4rem); font-weight:700; }
h2{ font-size:clamp(1.7rem, 3vw, 2.4rem); }
h3{ font-size:1.25rem; }
p{ margin:0 0 1em; max-width:62ch; color:var(--iron); }
a{ color:var(--steel-dark); text-decoration:none; }
a:hover{ color:var(--rust); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline:2px solid var(--steel); outline-offset:3px;
}
ul{ padding-left:1.2em; color:var(--iron); }
img{ max-width:100%; display:block; }

/* ---------- weave-grid backdrop ---------- */
.weave-field{
  position:relative;
}
.weave-field::before{
  content:"";
  position:absolute; inset:0;
  pointer-events:none;
  background-image:
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(0deg, var(--line) 0 1px, transparent 1px 48px);
  opacity:0.5;
}

/* ---------- top navigation ---------- */
.site-header{
  position:sticky; top:0; z-index:20;
  display:flex; align-items:center; justify-content:space-between;
  padding:22px var(--gutter);
  background:rgba(250,250,248,0.92);
  backdrop-filter:blur(6px);
  border-bottom:1px solid var(--line-strong);
}
.site-header .brand{
  font-family:var(--font-head);
  font-weight:700;
  font-size:1.28rem;
  color:var(--charcoal);
  line-height:1.15;
  display:flex;
  align-items:center;
}
.site-header .brand img{ height:34px; width:auto; display:block; }
.site-header .brand span{
  display:block; font-family:var(--font-body); font-weight:500;
  font-size:0.68rem; letter-spacing:0.03em; color:var(--iron); margin-top:3px;
}
.site-header nav{ display:flex; gap:30px; }
.site-header nav a{
  font-size:0.98rem; color:var(--iron); position:relative; padding-bottom:4px;
}
.site-header nav a.current{ color:var(--charcoal); }
.site-header nav a.current::after{
  content:""; position:absolute; left:0; right:0; bottom:-2px; height:2px; background:var(--rust);
}
.site-header nav a:hover{ color:var(--rust); }

main{ display:block; }

.wrap{
  max-width:980px;
  padding:0 var(--gutter);
  margin:0 auto;
}

.section-label{ display:flex; align-items:center; gap:8px; }
.section-label img{ height:14px; width:auto; display:block; }

footer.sitefoot .brand-mark{ display:flex; align-items:center; }
footer.sitefoot .brand-mark img{ height:26px; width:auto; }

/* ---------- hero ---------- */
.hero{
  position:relative;
  overflow:hidden;
  padding:96px var(--gutter) 84px;
  background:var(--bone);
  border-bottom:1px solid var(--line-strong);
}
.hero .eyebrow-loc{
  font-family:var(--font-head);
  font-size:0.95rem;
  color:var(--rust);
  margin-bottom:18px;
}
.hero h1{ max-width:14ch; }
.hero .lede{ font-size:1.18rem; max-width:52ch; margin-top:18px; }

/* full-bleed photographic hero (used on the home page) */
.hero-photo{
  position:relative;
  min-height:78vh;
  display:flex;
  align-items:flex-end;
  padding:64px var(--gutter) 72px;
  background-size:cover;
  background-position:center;
  border-bottom:1px solid var(--line-strong);
  isolation:isolate;
}
.hero-photo::before{
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(10,32,53,0.28) 0%, rgba(10,32,53,0.55) 55%, rgba(10,32,53,0.86) 100%);
  z-index:0;
}
.hero-photo > *{ position:relative; z-index:1; }
.hero-photo .eyebrow-loc{ color:var(--grey-cotton); }
.hero-photo h1, .hero-photo .lede{ color:var(--bone); }
.hero-photo .lede{ color:var(--grey-cotton); }

/* photographic-style texture panel, used as a supporting image block */
.tex-panel{
  position:relative;
  border:1px solid var(--line-strong);
  background-size:cover;
  background-position:center;
  min-height:280px;
}
.tex-panel.tall{ min-height:420px; }
.tex-panel .cap{
  position:absolute; left:0; right:0; bottom:0;
  padding:14px 16px;
  font-family:var(--font-head);
  font-size:0.85rem;
  color:var(--bone);
  background:linear-gradient(180deg, transparent, rgba(10,32,53,0.75));
}

.thread-rule{
  height:1px;
  background:repeating-linear-gradient(90deg, var(--line-strong) 0 10px, transparent 10px 16px);
  margin:0;
}

/* ---------- sections ---------- */
section{ padding:72px var(--gutter); border-bottom:1px solid var(--line); }
section:last-of-type{ border-bottom:none; }
.section-label{
  font-family:var(--font-head);
  font-size:0.98rem;
  color:var(--steel-dark);
  margin-bottom:10px;
}

.grid-2{ display:grid; grid-template-columns:1fr 1fr; gap:48px; }
.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:28px; }
@media (max-width:820px){ .grid-2, .grid-3{ grid-template-columns:1fr; } }

/* ---------- cards ---------- */
.card{
  background:var(--bone-deep);
  border:1px solid var(--line-strong);
  padding:26px 26px 22px;
}
.card h3{ margin-bottom:10px; }
.card p{ margin-bottom:0; font-size:0.96rem; }

/* ---------- process steps ---------- */
.steps{ counter-reset:step; }
.step{
  display:grid;
  grid-template-columns:64px 1fr;
  gap:24px;
  padding:32px 0;
  border-top:1px solid var(--line);
  position:relative;
}
.step:first-child{ border-top:none; }
.step .num{
  counter-increment:step;
  position:relative;
}
.step .num img{ width:64px; height:64px; border-radius:50%; border:1px solid var(--line-strong); }
.step .num .idxmark{
  position:absolute; right:-6px; bottom:-4px;
  font-family:var(--font-head); font-size:0.72rem;
  background:var(--charcoal); color:var(--bone);
  width:20px; height:20px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
}
.step .num .idxmark::before{ content:counter(step, decimal-leading-zero); }
.step h3{ margin-bottom:8px; }
.step .tag{
  display:inline-block;
  font-size:0.78rem;
  color:var(--rust);
  border:1px solid var(--rust);
  padding:2px 9px;
  margin-bottom:10px;
}
@media (max-width:600px){ .step{ grid-template-columns:1fr; } }

/* ---------- spec table ---------- */
.spec{ width:100%; border-collapse:collapse; margin-top:8px; }
.spec tr{ border-top:1px solid var(--line-strong); }
.spec tr:last-child{ border-bottom:1px solid var(--line-strong); }
.spec td{ padding:14px 4px; vertical-align:top; }
.spec td:first-child{ font-family:var(--font-head); color:var(--steel-dark); width:38%; padding-right:20px; }
.spec td:last-child{ color:var(--iron); }

/* ---------- swatch ---------- */
.swatch-row{ display:flex; gap:14px; margin:18px 0 6px; flex-wrap:wrap; }
.swatch{
  width:86px; height:86px;
  border:1px solid var(--line-strong);
  display:flex; align-items:flex-end;
  padding:8px;
  font-size:0.68rem; color:var(--charcoal);
  font-family:var(--font-head);
}

/* ---------- cta ---------- */
.cta-band{
  background:var(--charcoal);
  color:var(--bone);
  padding:64px var(--gutter);
}
.cta-band h2{ color:var(--bone); }
.cta-band p{ color:var(--grey-cotton); }
.btn{
  display:inline-block;
  font-family:var(--font-head);
  font-size:1rem;
  padding:13px 26px;
  border:1px solid var(--bone);
  color:var(--bone);
  margin-top:10px;
}
.btn:hover{ background:var(--bone); color:var(--charcoal); }
.btn.solid{ background:var(--rust); border-color:var(--rust); color:var(--bone); }
.btn.solid:hover{ background:var(--rust-dark); border-color:var(--rust-dark); color:var(--bone); }
.btn.dark{ border-color:var(--charcoal); color:var(--charcoal); }
.btn.dark:hover{ background:var(--charcoal); color:var(--bone); }

/* ---------- footer ---------- */
footer.sitefoot{
  padding:38px var(--gutter);
  font-size:0.85rem;
  color:var(--grey-cotton-dark);
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:12px;
  background:var(--charcoal);
}
footer.sitefoot a{ color:var(--bone); }

/* ---------- contact form ---------- */
.form-field{ margin-bottom:20px; }
.form-field label{ display:block; font-family:var(--font-head); font-size:0.92rem; margin-bottom:6px; color:var(--iron); }
.form-field input, .form-field textarea{
  width:100%;
  background:var(--bone);
  border:1px solid var(--line-strong);
  padding:11px 12px;
  font-family:var(--font-body);
  font-size:0.98rem;
  color:var(--charcoal);
}
.form-field textarea{ min-height:120px; resize:vertical; }
.map-frame{ border:1px solid var(--line-strong); width:100%; height:320px; }

/* ---------- reveal (single orchestrated hero animation) ---------- */
@keyframes riseIn{ from{ opacity:0; transform:translateY(14px); } to{ opacity:1; transform:translateY(0); } }
.hero .eyebrow-loc, .hero h1, .hero .lede, .hero .hero-actions{
  animation:riseIn 0.6s ease both;
}
.hero h1{ animation-delay:0.08s; }
.hero .lede{ animation-delay:0.16s; }
.hero .hero-actions{ animation-delay:0.24s; }
.hero-actions{ margin-top:28px; display:flex; gap:14px; flex-wrap:wrap; }

/* ---------- responsive nav ---------- */
@media (max-width:760px){
  .site-header{ flex-direction:column; align-items:flex-start; gap:14px; padding:18px var(--gutter); }
  .site-header nav{ gap:16px; flex-wrap:wrap; row-gap:6px; }
  .hero{ padding:56px var(--gutter) 48px; }
  .hero-photo{ min-height:60vh; padding:44px var(--gutter) 48px; }
  section{ padding:52px var(--gutter); }
}
