/* humanhairsupply.com · site.css — site-wide layer (_DESIGN-SYSTEM.md §0)
   tokens · fonts · reset · type scale · section shell · buttons · .cat-link · .chip · .product-card · .inquiry-slip
   · .inquiry-count · .spec-rule · form · tab-notch dividers.
   Page layouts live in each page's section <style> blocks, prefixed with #section-id. */

@font-face {
  font-family: "Sora";
  src: url("/assets/fonts/sora-var-latin.woff2") format("woff2");
  font-weight: 100 800; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Public Sans";
  src: url("/assets/fonts/public-sans-var-latin.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #0B2545;
  --teal: #14B8A6;
  --teal-ink: #0F766E;
  --amber: #FFC107;
  --white: #FFFFFF;
  --teal-50: #E8F7F5;
  --navy-2: #4A5B73;
  --on-navy: #E6EDF5;
  --line: #D5DEE8;

  --font-head: "Sora", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Public Sans", "Helvetica Neue", Arial, sans-serif;

  /* type scale (desktop / mobile), adjacent steps >= 20% */
  --fs-1: clamp(2.375rem, 1.55rem + 3.3vw, 3.75rem);   /* 60 / 38 */
  --fs-2: clamp(1.875rem, 1.45rem + 1.7vw, 2.625rem);  /* 42 / 30 */
  --fs-3: clamp(1.5rem, 1.33rem + 0.7vw, 1.875rem);    /* 30 / 24 */
  --fs-4: clamp(1.1875rem, 1.12rem + 0.3vw, 1.375rem); /* 22 / 19 */
  --fs-5: clamp(1.0625rem, 1.05rem + 0.06vw, 1.125rem);/* 18 / 17 */
  --fs-6: 1rem;                                        /* 16 */
  --fs-7: 0.8125rem;                                   /* 13 */

  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px;
  --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px;
  --sec: 72px;
  --tab: 28px;
  --w-narrow: 720px; --w-std: 1120px; --w-wide: 1320px;
  --gutter: clamp(20px, 4vw, 48px);
  --r-card: 10px; --r-btn: 8px;
  --shadow: 0 1px 2px rgba(11,37,69,.06), 0 8px 24px rgba(11,37,69,.06);
  --sticky-top: 136px;
}
@media (max-width: 760px) { :root { --sec: 48px; --tab: 20px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 112px; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--white); color: var(--navy);
  font-family: var(--font-body); font-size: var(--fs-6); line-height: 1.65;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); color: inherit; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: var(--fs-1); font-weight: 700; line-height: 1.12; }
h2 { font-size: var(--fs-2); font-weight: 600; line-height: 1.12; }
h3 { font-size: var(--fs-4); font-weight: 600; line-height: 1.25; }
p { margin: 0; text-wrap: pretty; }
main p, main dd { max-width: 62ch; }
ul, ol, dl { margin: 0; padding: 0; }
ul, ol { list-style: none; }
dd { margin: 0; }
strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.on-navy :focus-visible { outline-color: var(--teal); }
.nums { font-variant-numeric: tabular-nums; font-weight: 600; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 2000; background: var(--navy); color: #fff; padding: 10px 14px; text-decoration: none; border-radius: var(--r-btn); }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* section shell · light bands carry a faint same-hue gradient (background-image, never the shorthand) */
.sec { padding-block: var(--sec); position: relative; }
.wrap { width: 100%; max-width: calc(var(--w-std) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--wide { max-width: calc(var(--w-wide) + 2 * var(--gutter)); }
.wrap--narrow { max-width: calc(var(--w-narrow) + 2 * var(--gutter)); }
.bg-white { background-color: var(--white); background-image: linear-gradient(180deg, rgba(232,247,245,0) 0%, rgba(232,247,245,.28) 100%); }
.bg-teal { background-color: var(--teal-50); background-image: linear-gradient(180deg, rgba(255,255,255,.35) 0%, rgba(255,255,255,0) 100%); }
.bg-navy { background-color: var(--navy); color: var(--on-navy); }
.bg-photo { background-color: var(--navy); background-size: cover; background-position: center; color: var(--on-navy); }
.bg-photo .scrim { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.bg-photo > .wrap { position: relative; z-index: 1; }
.bg-navy h2, .bg-navy h3, .bg-photo h2, .bg-photo h3 { color: #fff; }

.lede { font-size: var(--fs-5); line-height: 1.6; color: var(--navy-2); }
.on-navy .lede { color: var(--on-navy); }
.muted { color: var(--navy-2); }
.on-navy .muted { color: #B9C6D6; }
.strong-line { font-family: var(--font-head); font-size: var(--fs-5); font-weight: 600; line-height: 1.45; }
.small { font-size: var(--fs-7); line-height: 1.5; }

/* buttons — 8px, 50 high */
.btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: var(--r-btn);
  font-family: var(--font-body); font-weight: 600; font-size: 15px; line-height: 1;
  text-decoration: none; cursor: pointer; transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--navy); color: #fff; border: 1.5px solid var(--navy); }
.btn-primary:hover { background: #061932; border-color: #061932; }
.on-navy .btn-primary { background: var(--teal); color: var(--navy); border-color: var(--teal); }
.on-navy .btn-primary:hover { background: #2DD4BF; border-color: #2DD4BF; }
.btn-secondary { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-secondary:hover { background: var(--teal-50); }
.on-navy .btn-secondary { color: #fff; border-color: #fff; }
.on-navy .btn-secondary:hover { background: rgba(255,255,255,.1); }
.btn-primary svg, .btn-secondary svg { width: 15px; height: 15px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.text-link { font-weight: 600; color: var(--teal-ink); text-decoration: underline; text-decoration-color: currentColor; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.text-link:hover { text-decoration-thickness: 2px; }
.on-navy .text-link { color: #fff; text-decoration-color: var(--teal); }

/* category marks: Wig = navy square, Extension = teal square */
.cat { display: inline-block; flex: none; width: 11px; height: 11px; border-radius: 2px; background: var(--navy); vertical-align: middle; }
.cat--ext { background: var(--teal); }
.cat-link { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-body); font-weight: 600; font-size: 15px; color: var(--navy); text-decoration: none; }
.cat-link svg { width: 14px; height: 14px; transition: translate .15s ease; }
.cat-link:hover svg { translate: 3px 0; }
.cat-link:hover span { text-decoration: underline; text-underline-offset: 4px; }

/* product / style / structure / field names are headings */
.item-title { font-family: var(--font-head); font-weight: 600; font-size: var(--fs-4); line-height: 1.25; color: inherit; letter-spacing: -0.01em; text-transform: none; }
.item-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--teal-ink); text-decoration: none; }
.item-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.item-link svg { width: 14px; height: 14px; }
.on-navy .item-link { color: #fff; }

/* filter chips (only chips are fully round) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--navy); font-size: var(--fs-7); font-weight: 600; line-height: 1; cursor: pointer; user-select: none; }
.chip svg { width: 12px; height: 12px; display: none; }
.chip-in { position: absolute; opacity: 0; pointer-events: none; }
.chip-in:checked + .chip, .chip[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: var(--navy); }
.chip-in:checked + .chip svg { display: block; }
.chip-in:focus-visible + .chip { outline: 2px solid var(--navy); outline-offset: 2px; }
.tag { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); font-size: var(--fs-7); font-weight: 500; line-height: 1; color: var(--navy-2); background: #fff; white-space: nowrap; }

/* product card */
.product-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; transition: box-shadow .2s ease, opacity .25s ease, filter .25s ease; }
.product-card:hover { box-shadow: var(--shadow); }
.product-card figure { margin: 0; background: #F7F3EE; }
.product-card figure img { width: 100%; height: 100%; object-fit: cover; }
.product-card .pc-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 14px 16px; flex: 1; }
.product-card .pc-ref { font-size: var(--fs-7); font-weight: 600; font-variant-numeric: tabular-nums; color: var(--navy-2); display: flex; align-items: center; gap: 7px; }
.product-card .item-title { font-size: 17px; }
.product-card .pc-desc { font-size: 14px; line-height: 1.5; color: var(--navy-2); }
.add-btn { margin-top: auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: var(--r-btn); border: 1.5px solid var(--navy); background: #fff; color: var(--navy); font: 600 14px/1 var(--font-body); text-decoration: none; cursor: pointer; }
.add-btn svg { width: 13px; height: 13px; }
.add-btn:hover { background: var(--teal-50); }
.add-btn.is-added { background: var(--teal); border-color: var(--teal); color: var(--navy); }

/* inquiry slip — the motif (only where inquiry-list content is carried) */
.inquiry-slip { background: #fff; color: var(--navy); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 22px 24px 18px; }
.inquiry-slip__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; padding-bottom: 12px; border-bottom: 1.5px solid var(--navy); }
.inquiry-slip__name { font-family: var(--font-head); font-weight: 600; font-size: var(--fs-5); }
.inquiry-slip__note { font-size: var(--fs-7); color: var(--navy-2); display: inline-flex; align-items: center; gap: 6px; }
.slip-row { display: grid; grid-template-columns: 30px 14px minmax(0, 1fr); gap: 4px 10px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.slip-row:last-child { border-bottom: 0; }
.slip-row__no { font-weight: 600; font-size: var(--fs-7); color: var(--navy-2); }
.slip-row__ref { font-weight: 600; }
.slip-row__fields { grid-column: 3; color: var(--navy-2); }
.slip-row__fields b { font-weight: 600; color: var(--navy); }
.slip-row__open { color: var(--teal-ink); font-weight: 600; }

/* inquiry count badge (menu item + floating slip button) */
.inquiry-count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--amber); color: var(--navy); font: 700 13px/1 var(--font-body); font-variant-numeric: tabular-nums; }
.inquiry-count[hidden] { display: none; }
.slip-float { position: fixed; left: 20px; bottom: 20px; z-index: 990; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px 0 14px; border-radius: var(--r-card); background: #fff; color: var(--navy); border: 1px solid var(--line); box-shadow: var(--shadow); font: 600 14px/1 var(--font-body); text-decoration: none; }
.slip-float[hidden] { display: none; }
.slip-float .lines { display: grid; gap: 3px; }
.slip-float .lines i { display: block; width: 14px; height: 2px; background: var(--navy); border-radius: 1px; }
.slip-float .lines i:nth-child(2) { background: var(--teal); }
@keyframes count-flash { 0% { box-shadow: 0 0 0 0 rgba(255,193,7,.9); } 100% { box-shadow: 0 0 0 10px rgba(255,193,7,0); } }
.inquiry-count.flash { animation: count-flash .4s ease-out 1; }
@media (max-width: 760px) {
  .slip-float { left: 12px; bottom: 12px; min-height: 44px; padding: 0 12px; }
  .slip-float .label { display: none; }
  body:has(#inquiry:target) .slip-float, .slip-float.is-near-form { display: none; }
}

/* spec rule table: horizontal hairlines only */
.spec-rule { width: 100%; border-collapse: collapse; font-size: 15px; }
.spec-rule th, .spec-rule td { text-align: left; vertical-align: top; padding: 13px 16px 13px 0; border-bottom: 1px solid var(--line); }
.spec-rule thead th { font-weight: 600; font-size: var(--fs-7); border-bottom: 1.5px solid var(--navy); }
.spec-rule tbody th { font-weight: 600; }

/* form */
.field { display: grid; gap: 6px; align-content: start; }
.field > label, .field > .lbl { font-weight: 600; font-size: var(--fs-7); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="url"], .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-btn);
  font: inherit; font-size: 15px; color: var(--navy); background: #fff;
}
.field textarea { min-height: 88px; resize: vertical; field-sizing: content; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--navy); outline-offset: 1px; }
.field:has(:user-invalid) input, .field:has(:user-invalid) select, .field:has(:user-invalid) textarea { border-bottom: 2px solid var(--amber); }
.field .err { display: none; font-size: var(--fs-7); color: var(--navy); }
.field:has(:user-invalid) .err { display: block; }
.field .hint { font-size: var(--fs-7); color: var(--navy-2); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.choice { display: inline-flex; gap: 8px; align-items: center; min-height: 40px; cursor: pointer; font-weight: 500; font-size: 15px; }
.choice input { width: 16px; height: 16px; accent-color: var(--navy); margin: 0; }
.hp-field { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.5em; font-size: 15px; }
.form-status.is-error { color: #9A3412; font-weight: 600; }
.form-status.is-ok { color: var(--teal-ink); font-weight: 600; }

/* dark/light boundaries: the upper section's own bottom edge carries a slip tab (rounded 10px),
   or a 2deg slant on photo bands. The next section adds the overlap to its top padding. */
.cut-tl, .cut-tr, .cut-sl { margin-bottom: calc(-1 * var(--tab)); z-index: 1; }
.cut-tl { --tx: 7%; }
.cut-tr { --tx: calc(93% - 240px); }
.cut-tl, .cut-tr {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--tab)), calc(var(--tx) + 240px) calc(100% - var(--tab)), calc(var(--tx) + 240px) 100%, var(--tx) 100%, var(--tx) calc(100% - var(--tab)), 0 calc(100% - var(--tab)));
}
@supports (clip-path: shape(from 0 0, line to 1px 1px)) {
  .cut-tl, .cut-tr {
    clip-path: shape(from 0 0, hline to 100%, vline to calc(100% - var(--tab)),
      hline to calc(var(--tx) + 240px), vline to calc(100% - 10px),
      arc to calc(var(--tx) + 230px) 100% of 10px cw,
      hline to calc(var(--tx) + 10px),
      arc to var(--tx) calc(100% - 10px) of 10px cw,
      vline to calc(100% - var(--tab)), hline to 0, close);
  }
}
.cut-sl { clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--tab)), 0 100%); }
.cut-sl.is-flip { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - var(--tab))); }
.after-cut { padding-top: calc(var(--sec) + var(--tab)); }
.cut-tl, .cut-tr, .cut-sl { padding-bottom: calc(var(--sec) + var(--tab)); }
@media (max-width: 760px) {
  .cut-tl { --tx: 6%; } .cut-tr { --tx: calc(94% - 160px); }
  .cut-tl, .cut-tr { clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--tab)), calc(var(--tx) + 160px) calc(100% - var(--tab)), calc(var(--tx) + 160px) 100%, var(--tx) 100%, var(--tx) calc(100% - var(--tab)), 0 calc(100% - var(--tab))); }
}

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

/* WhatsApp plugin: icon-only on small screens so it never covers an inquiry entry (§0.6) */
@media (max-width: 760px) {
  .wa-widget .wa-widget-button { padding: 14px; }
  .wa-widget .wa-widget-button > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
