/* ============================================================
   FIBRELAND LTD. — Stylesheet (Premium Refresh v2)
   Design system: deep forest green + warm bone paper + oxblood
   and brass accents. Serif display (Fraunces) over a quiet sans
   (Inter). Grounded in the brand's own tailoring and fabric world.
   ============================================================ */

:root {
  --ink:          #15140F;
  --paper:        #F6F1E7;
  --paper-dim:    #EFE8D9;
  --forest-deep:  #0F2E22;
  --forest:       #1C4A34;
  --forest-tint:  #E3E9E1;
  --oxblood:      #5F2028;
  --oxblood-tint: #F1E3E1;
  --brass:        #A6822F;
  --brass-light:  #C7A65C;
  --line:         rgba(21,20,15,.14);
  --line-light:   rgba(246,241,231,.24);

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius: 3px;
  --radius-pill: 999px;
  --maxw: 1180px;
  --header-h: 100px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  position: relative;
}

/* Subtle paper grain — pure CSS, no image asset */
body::before {
  content: "";
  position: fixed; inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.01em;
  margin: 0 0 .45em;
}
h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); font-weight: 460; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }

p { margin: 0 0 1em; max-width: 62ch; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 44px; position: relative; z-index: 1; }
.section { padding: 148px 0; }
.section--tight { padding: 90px 0; }
.section--dark { background: var(--forest-deep); color: var(--paper); }
.section--tint { background: var(--forest-tint); }
.section--stone { background: var(--paper-dim); }
.center { text-align: center; }
.center p { margin-left: auto; margin-right: auto; }

.rule {
  border: none; border-top: 1px solid var(--line); margin: 0;
}
.section--dark .rule { border-top-color: var(--line-light); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-size: .74rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--brass);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--brass); display: inline-block; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Motion, with reduced-motion respected ---------- */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.is-visible { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 34px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-pill);
  color: var(--ink);
  background: transparent;
  font-family: var(--font-body);
  font-size: .82rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .28s var(--ease), color .28s var(--ease), border-color .28s var(--ease);
}
.btn:hover, .btn:focus-visible { background: var(--ink); color: var(--paper); }
.btn--light { border-color: var(--paper); color: var(--paper); }
.btn--light:hover, .btn--light:focus-visible { background: var(--paper); color: var(--ink); }
.btn--brass { border-color: var(--brass); color: var(--brass-light); }
.btn--brass:hover, .btn--brass:focus-visible { background: var(--brass); color: var(--forest-deep); }

.text-link {
  position: relative; color: inherit; text-decoration: none;
  padding-bottom: 3px; font-weight: 500;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%; background-repeat: no-repeat; background-size: 100% 1px;
  transition: background-size .3s var(--ease);
}
.text-link:hover, .text-link:focus-visible { background-size: 0% 1px; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  padding: 22px 44px;
  background: linear-gradient(to bottom, rgba(15,46,34,.92) 0%, rgba(15,46,34,0) 100%);
}
.logo { display: block; line-height: 0; }
.logo img { width: 52px; height: 52px; border-radius: 4px; }
.primary-nav { display: flex; justify-content: center; gap: 44px; }
.primary-nav a {
  color: var(--paper); text-decoration: none; font-size: .82rem;
  font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  padding-bottom: 4px; border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), opacity .25s var(--ease);
  opacity: .88;
}
.primary-nav a:hover { opacity: 1; }
.primary-nav a[aria-current="page"] { border-bottom-color: var(--brass-light); opacity: 1; }
.header-cta { border-color: var(--paper); color: var(--paper); background: transparent; }
.header-cta:hover, .header-cta:focus-visible { background: var(--paper); color: var(--forest-deep); }
.nav-toggle { display: none; }

@media (max-width: 820px) {
  .site-header { padding: 18px 22px; }
  .nav-toggle {
    display: block; background: none; border: 1px solid var(--paper); color: var(--paper);
    font: inherit; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
    padding: 10px 16px; border-radius: var(--radius-pill);
  }
  .primary-nav {
    display: none; position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; align-items: center; gap: 22px;
    background: var(--forest-deep); padding: 30px 24px 34px;
  }
  .primary-nav.is-open { display: flex; }
  .header-cta { display: none; }
}

.page-offset { padding-top: var(--header-h); }

/* ============================================================
   Footer — dark, quiet, brass hairline
   ============================================================ */
.site-footer { background: var(--forest-deep); color: var(--paper); padding: 84px 0 56px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 48px; padding-top: 56px; border-top: 1px solid var(--line-light); }
.footer-brand {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 500;
  letter-spacing: -.01em; margin-bottom: .6em; color: var(--paper);
}
.footer-title {
  font-family: var(--font-body); font-size: .74rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--brass-light);
  margin-bottom: 1.1em;
}
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-links a, .footer-services a { color: var(--paper); opacity: .9; text-decoration: none; }
.footer-links a:hover, .footer-services a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
address { font-style: normal; margin-bottom: 1.1rem; opacity: .82; font-size: .93rem; }
.footer-services p { margin: 0; opacity: .9; font-size: .93rem; line-height: 1.8; }
.footer-fine { opacity: .55; font-size: .78rem; }
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr; text-align: left; gap: 34px; }
}

/* ============================================================
   Home — Hero
   ============================================================ */
.hero {
  position: relative; min-height: 100vh; box-sizing: border-box;
  padding-top: 170px;
  background-size: cover; background-position: center;
  color: var(--paper); display: flex; align-items: flex-end;
}
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,46,34,.55) 0%, rgba(15,46,34,.15) 38%, rgba(15,46,34,.75) 100%);
}
.hero__content { position: relative; width: 100%; padding-bottom: 88px; }
.hero__eyebrow { color: var(--brass-light); }
.hero__eyebrow::before { background: var(--brass-light); }
.hero h1 { max-width: 17ch; font-size: clamp(2.4rem, 4.8vw, 4rem); }
.hero__sub { max-width: 46ch; margin: 22px 0 40px; font-size: 1.05rem; opacity: .92; }
.hero__actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }

.hero__index {
  position: absolute; right: 44px; bottom: 96px;
  display: none; text-align: right; font-size: .78rem; letter-spacing: .1em; opacity: .8;
}
.hero__index a { display: block; text-decoration: none; padding: 6px 0; color: var(--paper); }
.hero__index a:hover { color: var(--brass-light); }
@media (min-width: 1024px) { .hero__index { display: block; } }
@media (max-width: 820px) { .hero { padding-top: 130px; } .hero__content { padding-bottom: 64px; } }

/* Pillars — quiet editorial rows, not cards */
.pillars { border-top: 1px solid var(--line); }
.pillar-row {
  display: grid; grid-template-columns: 1fr 1.6fr; gap: 60px;
  padding: 46px 0; border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.pillar-row h3 { margin: 0; }
.pillar-row p { margin: 0; color: rgba(21,20,15,.72); }
.pillars-cta { margin-top: 64px; }
@media (max-width: 760px) {
  .pillar-row { grid-template-columns: 1fr; gap: 12px; }
}

/* CTA banner — single dominant image, floating caption card */
.cta-banner { position: relative; }
.cta-banner img { width: 100%; height: 74vh; min-height: 460px; object-fit: cover; }
.cta-banner__scrim { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(15,46,34,.65), rgba(15,46,34,0) 55%); }
.cta-banner__card {
  position: absolute; left: 44px; bottom: 44px; max-width: 420px;
  color: var(--paper);
}
.cta-banner__card h2 { margin-bottom: 26px; }
@media (max-width: 640px) {
  .cta-banner__card { left: 22px; right: 22px; bottom: 28px; max-width: none; }
}

/* ============================================================
   About
   ============================================================ */
.about-lede { max-width: 62ch; margin: 0 auto 40px; }

.mission { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.mission h3 { margin-top: .1em; }
.mission p { color: rgba(246,241,231,.82); }
.mission img { border-radius: var(--radius); }
.mission-frame { position: relative; aspect-ratio: 4/5; overflow: hidden; border-radius: var(--radius); }
.mission-frame img { width: 100%; height: 100%; object-fit: contain; background: var(--paper-dim); }

.quote { display: grid; grid-template-columns: 1fr 1.1fr; gap: 0; align-items: stretch; margin-top: 120px; }
.quote__image { overflow: hidden; }
.quote__image img { width: 100%; height: 100%; object-fit: contain; background: var(--forest-deep); }
.quote__panel {
  background: var(--forest-deep); color: var(--paper);
  padding: 72px 64px; display: flex; flex-direction: column; justify-content: center;
}
.quote__mark { font-family: var(--font-display); font-size: 3rem; color: var(--brass-light); line-height: 1; margin-bottom: 16px; }
.quote__panel blockquote {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.3; margin: 0 0 28px;
}
.quote__panel cite { font-style: normal; font-size: .85rem; letter-spacing: .04em; color: var(--brass-light); }
@media (max-width: 900px) {
  .mission { grid-template-columns: 1fr; gap: 36px; }
  .quote { grid-template-columns: 1fr; margin-top: 60px; }
  .quote__image { aspect-ratio: 16/9; }
  .quote__panel { padding: 48px 30px; }
}

.framed-banner { position: relative; min-height: 560px; background-size: cover; background-position: center; display: flex; align-items: center; }
.framed-banner__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,46,34,.6), rgba(15,46,34,.75)); }
.framed-banner__box {
  position: relative; max-width: 640px; margin: 0 auto; text-align: center; color: var(--paper);
  padding: 8px;
}

/* ============================================================
   Services (hub)
   ============================================================ */
.services-intro { max-width: 60ch; }

.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line); margin-top: 60px; }
.cards-3 .card { background: var(--paper); text-decoration: none; color: var(--ink); display: block; }
.card__frame { overflow: hidden; aspect-ratio: 3/4; }
.card__frame img { width: 100%; height: 100%; object-fit: contain; background: var(--paper-dim); transition: transform .6s var(--ease); }
.card:hover .card__frame img, .card:focus-visible .card__frame img { transform: scale(1.045); }
.card__caption { padding: 22px 6px 4px; display: flex; align-items: center; justify-content: space-between; }
.card__caption h3 { font-size: 1.15rem; margin: 0; }
.card__arrow { font-size: 1.3rem; color: var(--brass); transition: transform .3s var(--ease); }
.card:hover .card__arrow { transform: translateX(4px); }
@media (max-width: 820px) { .cards-3 { grid-template-columns: 1fr; } }

.coat-connect { display: grid; grid-template-columns: .9fr 1.3fr; gap: 72px; }
.coat-connect__badge {
  display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--oxblood); background: var(--oxblood-tint);
  padding: 6px 14px; border-radius: var(--radius-pill); margin-bottom: 18px;
}
.badge--available {
  display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--forest); background: var(--forest-tint);
  padding: 6px 14px; border-radius: var(--radius-pill); margin-bottom: 18px;
}
.coat-connect__lede { font-family: var(--font-display); font-style: italic; font-size: 1.2rem; margin: 6px 0 16px; }
@media (max-width: 900px) { .coat-connect { grid-template-columns: 1fr; gap: 40px; } }

.pricing-grid { margin-top: 90px; border-top: 1px solid var(--line); }
.pricing-row { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.pricing-grid__col { padding: 48px 40px 48px 0; }
.pricing-grid__col + .pricing-grid__col { padding-left: 40px; padding-right: 0; border-left: 1px solid var(--line); }
.pricing-grid__col h3 { font-size: 1.4rem; }
.pricing-grid__col .materials { color: rgba(21,20,15,.72); margin: 10px 0 26px; }
.pricing-grid__full { padding: 48px 0; border-bottom: 1px solid var(--line); }
.pricing-grid__full .materials { color: rgba(21,20,15,.72); margin: 10px 0 26px; }
@media (max-width: 760px) {
  .pricing-row { grid-template-columns: 1fr; }
  .pricing-grid__col { padding: 36px 0; }
  .pricing-grid__col + .pricing-grid__col { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
}

/* ============================================================
   Sub-pages — Lab Coats / Scrubs / Official Wears
   ============================================================ */
.page-title { padding: 220px 0 64px; }
.page-title p { margin: 18px auto 0; }

.banner-frame { overflow: hidden; border-radius: var(--radius); }
.banner-frame img { width: 100%; height: 580px; object-fit: contain; background: var(--paper-dim); }

.product-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 100px 0; background: var(--line); }
.product-pair figure { margin: 0; background: var(--paper); }
.product-pair .figure__frame { overflow: hidden; aspect-ratio: 4/5; }
.product-pair img { width: 100%; height: 100%; object-fit: contain; background: var(--paper-dim); }
.product-pair figcaption { text-align: center; padding: 20px 0 26px; font-family: var(--font-display); font-size: 1.1rem; }
@media (max-width: 760px) { .product-pair { grid-template-columns: 1fr; } }

.callout-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 460px; }
.callout-split__card {
  background: var(--forest-deep); color: var(--paper); padding: 72px 64px;
  display: flex; flex-direction: column; justify-content: center;
}
.callout-split__card h2 { margin-bottom: 26px; }
.callout-split img { width: 100%; height: 100%; object-fit: contain; background: var(--forest-deep); }
@media (max-width: 900px) {
  .callout-split { grid-template-columns: 1fr; min-height: 0; }
  .callout-split img { aspect-ratio: 4/3; }
  .callout-split__card { padding: 48px 30px; }
}

.back-link { text-align: center; padding: 56px 0 0; }

.pager { display: flex; justify-content: space-between; align-items: center; padding: 64px 44px 110px; border-top: 1px solid var(--line); margin-top: 56px; }
.pager a {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-style: italic; font-size: clamp(1.2rem, 3vw, 1.7rem);
  text-decoration: none; color: var(--ink); transition: opacity .25s var(--ease);
}
.pager a:hover { opacity: .6; }
.pager__spacer { visibility: hidden; }

.gallery-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; padding: 70px 0; background: var(--line); }
.gallery-4 figure { margin: 0; background: var(--paper); }
.gallery-4 .figure__frame { overflow: hidden; aspect-ratio: 3/4; }
.gallery-4 img { width: 100%; height: 100%; object-fit: contain; background: var(--paper-dim); }
.gallery-4 figcaption { text-align: center; padding: 16px 0 20px; font-size: .85rem; letter-spacing: .04em; }
@media (max-width: 820px) { .gallery-4 { grid-template-columns: repeat(2, 1fr); } }

.statement-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; padding: 64px 0 24px; }
.statement-row h2 { max-width: 14ch; }

/* ============================================================
   Contact
   ============================================================ */
.contact-layout { position: relative; }
.contact-deco { position: absolute; width: 200px; border-radius: var(--radius); opacity: .96; box-shadow: 0 30px 60px -20px rgba(15,46,34,.35); }
.contact-deco--scrubs { top: 230px; left: 2%; }
.contact-deco--trousers { top: 330px; right: 2%; }
.contact-deco--coat { top: 760px; left: -2%; }
.contact-deco--tux { top: 960px; right: -1%; }
@media (max-width: 1100px) { .contact-deco { display: none; } }

.contact-intro { max-width: 56ch; margin: 0 auto; }

.inquiry { max-width: 720px; margin: 64px auto 0; display: grid; gap: 34px; position: relative; z-index: 1; }
.inquiry label { display: grid; gap: 10px; font-weight: 500; font-size: .95rem; }
.inquiry input[type=text], .inquiry input[type=email], .inquiry input[type=tel],
.inquiry input[type=date], .inquiry textarea {
  border: 0; border-bottom: 1px solid var(--line); background: transparent;
  font: inherit; font-size: 1rem; padding: 12px 2px; width: 100%; border-radius: 0;
  transition: border-color .25s var(--ease);
}
.inquiry input:hover, .inquiry textarea:hover { border-bottom-color: rgba(21,20,15,.35); }
.inquiry input:focus-visible, .inquiry textarea:focus-visible { outline: none; border-bottom-color: var(--brass); }
.name-row { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.name-row legend, .services legend {
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 500; margin-bottom: 6px; padding: 0;
}
.services { border: 0; padding: 0; margin: 0; display: grid; gap: 14px; }
.services label { display: flex; align-items: center; gap: 12px; font-weight: 400; }
.services input { width: 20px; height: 20px; accent-color: var(--brass); }
.req { color: rgba(21,20,15,.5); font-weight: 400; font-size: .8em; }
.error { color: var(--oxblood); margin: 0; font-weight: 600; font-size: .88rem; }
.hp { position: absolute; left: -9999px; top: -9999px; }
#form-status { font-weight: 500; min-height: 1.4em; font-size: .92rem; }

@media (max-width: 620px) { .name-row { grid-template-columns: 1fr; } }

.contact-info { max-width: 720px; margin: 110px auto 0; padding-top: 56px; border-top: 1px solid var(--line); }
.contact-info h4 {
  font-family: var(--font-body); font-size: .74rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brass); margin: 28px 0 6px;
}

/* ============================================================
   "Coming Soon" stamp (Official Wears gallery)
   ============================================================ */
.gallery-4--soon,
.gallery-3--soon { position: relative; overflow: hidden; }
.gallery-4--soon figure,
.gallery-3--soon figure { opacity: .45; filter: grayscale(.5); }

/* 3-up product grid — same treatment as .gallery-4, one column fewer.
   Used for the Official Wears "upcoming workwear" showcase. */
.gallery-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 70px 0; background: var(--line); }
.gallery-3 figure { margin: 0; background: var(--paper); }
.gallery-3 .figure__frame { overflow: hidden; aspect-ratio: 3/4; }
.gallery-3 img { width: 100%; height: 100%; object-fit: contain; background: var(--paper-dim); }
.gallery-3 figcaption { text-align: center; padding: 16px 0 20px; font-size: .85rem; letter-spacing: .04em; }
@media (max-width: 820px) { .gallery-3 { grid-template-columns: 1fr; } }
.stamp {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(-9deg);
  z-index: 2; pointer-events: none;
  padding: .18em .55em .12em;
  border: .09em solid #C4121F; border-radius: 14px;
  outline: .03em solid #C4121F; outline-offset: .08em;
  color: #C4121F; background: rgba(246,241,231,.72);
  font-family: var(--font-body); font-weight: 900; text-transform: uppercase;
  letter-spacing: .06em; line-height: 1; white-space: nowrap;
  font-size: clamp(2.2rem, 9vw, 6.5rem);
  opacity: .93;
}
