/* Global Supplies LLC — style.css (mobile-first) */
:root {
  --graphite: #111827;
  --orange: #F97316;
  --bg: #F3F4F6;
  --white: #FFFFFF;
  --text: #374151;
  /* Derived from the palette */
  --orange-dark: #C2410C;   /* orange text on white, meets contrast */
  --graphite-2: #1F2937;
  --line: #E5E7EB;
  --muted: #6B7280;
  --radius: 8px;
  --wrap: 1200px;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--white);
  padding-bottom: 64px; /* room for the mobile bar */
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--graphite); }
h1, h2, h3 { color: var(--graphite); line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 6.5vw, 3.4rem); }
h2 { font-size: clamp(1.45rem, 4vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.ico { width: 1.15em; height: 1.15em; flex: none; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--orange); color: var(--graphite); padding: 10px 14px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 12px 22px; border-radius: var(--radius);
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s;
}
.btn--cta { background: var(--orange); color: var(--graphite); }
.btn--cta:hover { background: #FB8B3C; }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn--outline { background: var(--white); color: var(--graphite); border-color: var(--graphite); }
.btn--outline:hover { background: var(--graphite); color: var(--white); }
.btn--lg { min-height: 54px; padding: 14px 26px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Top bar */
.topbar { background: #0B1120; color: #D1D5DB; font-size: .875rem; }
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; }
.topbar__note { display: none; }
.topbar__right { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.topbar__link { color: var(--white); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.topbar__link:hover { color: var(--orange); }
.topbar__link + .topbar__link span { display: none; }
.lang { display: inline-flex; border: 1px solid #374151; border-radius: 6px; overflow: hidden; }
.lang__btn { background: transparent; color: #D1D5DB; border: 0; font: inherit; font-weight: 700; font-size: .8rem; padding: 6px 10px; min-height: 32px; cursor: pointer; }
.lang__btn[aria-pressed="true"] { background: var(--orange); color: var(--graphite); }

/* Header */
.site-header { background: var(--graphite); color: var(--white); position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.header__in { display: flex; align-items: center; gap: 12px; min-height: 64px; position: relative; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; margin-right: auto; }
.brand__name { font-weight: 800; font-size: 1.1rem; letter-spacing: -0.01em; }
.brand__name span { color: #9CA3AF; font-weight: 600; }
.nav-toggle { width: 48px; height: 48px; display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; background: transparent; border: 0; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--graphite); padding: 8px 16px 20px; border-top: 1px solid var(--graphite-2); }
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0 0 12px; padding: 0; }
.site-nav li a { display: block; padding: 14px 0; color: var(--white); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--graphite-2); }
.site-nav li a[aria-current="page"] { color: var(--orange); }
.nav__cta { width: 100%; }

/* Hero */
.hero { background: var(--graphite); color: #E5E7EB; padding: 40px 0 48px; }
.hero h1 { color: var(--white); }
.hero__in { display: grid; gap: 28px; }
.eyebrow { color: var(--orange); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .75em; }
.hero__sub { font-size: 1.1rem; max-width: 38em; color: #D1D5DB; margin-bottom: 1.5em; }

/* Photo slots: a finished design panel until a real photo is uploaded to
   img/fotos/<slot>.jpg (see LEEME-FOTOS.txt). script.js swaps the photo in. */
.media {
  position: relative; overflow: hidden; aspect-ratio: 4 / 3; width: 100%;
  border-radius: var(--radius); color: var(--orange);
  background-color: var(--graphite);
  background-image:
    radial-gradient(circle at 78% 18%, rgba(249,115,22,.22), transparent 55%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='98' viewBox='0 0 56 98'%3E%3Cpath d='M28 66 0 50V16L28 0l28 16v34L28 66v32' fill='none' stroke='%23FFFFFF' stroke-opacity='.06' stroke-width='1.2'/%3E%3C/svg%3E");
  display: flex; align-items: center; justify-content: center;
}
.media::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34%; height: 5px; background: var(--orange); }
.media__ico { width: 32%; max-width: 132px; height: auto; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.media__brand { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 20px; }
.media__logo { display: inline-flex; background: var(--white); border-radius: 18px; padding: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.media__logo img { width: 88px; height: 88px; }
.media__logo--lg img { width: 120px; height: 120px; }
.media__chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 22em; }
.media__chips li { font-size: .8rem; font-weight: 700; color: #E5E7EB; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 4px 12px; }
.media__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media.has-photo::after { display: none; }
.media.has-photo > :not(.media__photo) { visibility: hidden; }

/* Sections */
.section { padding: 48px 0; }
.section--tight { padding: 32px 0; }
.section--alt { background: var(--bg); }
.section__h { margin-bottom: .8em; }
.lead { font-size: 1.1rem; max-width: 46em; }
.page-head { background: var(--graphite); color: #D1D5DB; padding: 36px 0 32px; }
.page-head h1 { color: var(--white); margin-bottom: .3em; }
.page-head .lead { margin: 0; }
.urgent-line { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; font-weight: 700; color: var(--white); }
.urgent-line .ico { color: var(--orange); }
.urgent-line a { color: var(--orange); }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips a, .chips--plain li { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border-radius: 999px; background: var(--bg); color: var(--graphite); font-weight: 700; text-decoration: none; border: 1px solid var(--line); }
.chips a:hover { border-color: var(--orange); }
.chips--plain li { background: var(--white); }
.chips--plain { margin-bottom: 20px; }

.grid { display: grid; gap: 16px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card p:last-child { margin-bottom: 0; }
.card--link { display: block; text-decoration: none; color: var(--text); transition: border-color .15s, transform .15s; }
.card--link:hover { border-color: var(--orange); transform: translateY(-2px); }
.card__h { font-size: 1.15rem; margin-bottom: .35em; }
.card__more { display: inline-block; margin-top: 4px; color: var(--orange-dark); font-weight: 700; }
.card--plain { background: var(--white); }

.why { padding: 4px 0; }
.why__n { display: block; font-weight: 800; color: var(--orange-dark); font-size: .9rem; margin-bottom: 6px; }
.why__h { margin-bottom: .3em; }
.why p { margin: 0; }

.special { display: grid; gap: 16px; align-items: center; }
.special .lead { margin: 0; }

/* Dark CTA band */
.band { padding: 40px 0; }
.band--dark { background: var(--graphite); color: #D1D5DB; }
.band__in { display: grid; gap: 20px; align-items: center; }
.band__h { color: var(--white); margin: 0; }
.band__sub { margin: .5em 0 0; }

/* Product / industry rows */
.stack { display: grid; gap: 24px; }
.product { display: grid; gap: 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; scroll-margin-top: 90px; }
.product__h { margin-bottom: .4em; }
.product .btn { margin-top: 6px; }
.supply { font-weight: 600; color: var(--graphite); }
.ticks { list-style: none; margin: 0 0 1em; padding: 0; display: grid; gap: 6px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px; border-left: 3px solid var(--orange); border-bottom: 3px solid var(--orange); transform: rotate(-45deg); }
.ticks--lg li { font-weight: 600; color: var(--graphite); padding-top: 2px; padding-bottom: 2px; }
.also { padding-top: 8px; }

.pending { background: #FEF3C7; color: #78350F; padding: 2px 6px; border-radius: 4px; font-weight: 700; font-size: .9rem; }

.about-story { display: grid; gap: 24px; align-items: center; }

/* Quote form */
.quote { display: grid; gap: 24px; align-items: start; }
.form__grid { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; margin: 0; }
.field label, .field legend { font-weight: 700; color: var(--graphite); }
.req { color: var(--orange-dark); margin-left: 2px; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--graphite);
  border: 1px solid #D1D5DB; border-radius: 6px; padding: 12px 14px; min-height: 48px; background: var(--white);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { border-color: var(--orange); outline: 2px solid rgba(249,115,22,.35); outline-offset: 0; }
.field input[type="file"] { font: inherit; padding: 10px; border: 1px dashed #9CA3AF; border-radius: 6px; background: var(--bg); width: 100%; }
.field [aria-invalid="true"] { border-color: #B91C1C !important; }
.hint { color: var(--muted); font-size: .875rem; }
.urgency { border: 0; padding: 0; display: grid; gap: 8px; }
.urgency legend { padding: 0; margin-bottom: 6px; }
.radio { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 14px; border: 1px solid #D1D5DB; border-radius: 6px; cursor: pointer; font-weight: 600; color: var(--graphite); }
.radio input { width: 20px; height: 20px; accent-color: var(--orange); }
.radio:has(input:checked) { border-color: var(--orange); background: #FFF7ED; }
.radio--urgent:has(input:checked) { border-color: #B91C1C; background: #FEF2F2; }
.form__req { font-size: .875rem; color: var(--muted); margin: 14px 0; }
.form__status { margin-top: 14px; font-weight: 600; }
.form__status:empty { display: none; }
.form__status.is-ok { color: #166534; background: #F0FDF4; border: 1px solid #BBF7D0; padding: 12px 14px; border-radius: 6px; }
.form__status.is-error { color: #991B1B; background: #FEF2F2; border: 1px solid #FECACA; padding: 12px 14px; border-radius: 6px; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.quote__aside { display: grid; gap: 18px; }
.link-strong { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--graphite); text-decoration: none; word-break: break-word; }
.link-strong .ico { color: var(--orange-dark); }

/* Contact */
.contact-card > .ico { width: 28px; height: 28px; color: var(--orange-dark); margin-bottom: 10px; }
.contact-card__big { font-size: 1.25rem; font-weight: 800; color: var(--graphite); word-break: break-word; margin-bottom: .35em; }
.contact-card__mid { font-size: 1.05rem; }
.contact-card a { color: var(--graphite); }

/* Footer */
.site-footer { background: #0B1120; color: #9CA3AF; padding: 40px 0 24px; font-size: .95rem; }
.footer__grid { display: grid; gap: 24px; }
.footer__brand { color: var(--white); font-weight: 800; font-size: 1.1rem; margin-bottom: .3em; }
.footer__h { color: var(--white); font-weight: 700; margin-bottom: .5em; }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: #D1D5DB; text-decoration: none; word-break: break-word; }
.site-footer a:hover { color: var(--orange); }
.footer__legal { border-top: 1px solid #1F2937; margin-top: 28px; padding-top: 18px; font-size: .8rem; }
.footer__legal p { margin-bottom: .5em; }

/* Mobile quick-contact bar */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr 1.2fr; background: var(--graphite); border-top: 1px solid #374151; padding-bottom: env(safe-area-inset-bottom); }
.mobile-bar__btn { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 56px; color: var(--white); text-decoration: none; font-weight: 700; font-size: .95rem; }
.mobile-bar__btn + .mobile-bar__btn { border-left: 1px solid #374151; }
.mobile-bar__btn--cta { background: var(--orange); color: var(--graphite); }

/* ≥ 768px: tablet */
@media (min-width: 768px) {
  .wrap { padding: 0 24px; }
  .topbar__note { display: inline; }
  .topbar__link + .topbar__link span { display: inline; }
  .hero { padding: 56px 0 64px; }
  .grid--2 { grid-template-columns: 1fr 1fr; }
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .grid--4 { grid-template-columns: 1fr 1fr; gap: 28px; }
  .product { grid-template-columns: 280px 1fr; align-items: start; padding: 22px; }
  .form__grid { grid-template-columns: 1fr 1fr; }
  .field--full, .urgency { grid-column: 1 / -1; }
  .urgency { grid-template-columns: 1fr 1fr; }
  .urgency legend { grid-column: 1 / -1; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .special { grid-template-columns: 1fr auto; }
  .band__in { grid-template-columns: 1fr auto; }
  .about-story { grid-template-columns: 1fr 1fr; }
  .card { padding: 26px; }
}

/* ≥ 1024px: desktop navigation, no mobile bar */
@media (min-width: 1024px) {
  body { padding-bottom: 0; }
  .mobile-bar { display: none; }
  .nav-toggle { display: none; }
  .site-nav { display: flex !important; position: static; background: none; padding: 0; border: 0; align-items: center; gap: 28px; }
  .site-nav ul { display: flex; gap: 26px; margin: 0; }
  .site-nav li a { border: 0; padding: 8px 0; }
  .site-nav li a:hover { color: var(--orange); }
  .nav__cta { width: auto; }
  .header__in { min-height: 72px; }
  .hero__in { grid-template-columns: 1.15fr 1fr; align-items: center; gap: 48px; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .section { padding: 72px 0; }
  .product { grid-template-columns: 360px 1fr; gap: 32px; }
  .quote { grid-template-columns: 1.6fr 1fr; gap: 32px; }
  .quote__aside { position: sticky; top: 96px; }
}

/* Header search icon (links to the parts search on products.html) */
.hdr-search { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--white); border-radius: var(--radius); text-decoration: none; }
.hdr-search .ico { width: 22px; height: 22px; }
.hdr-search:hover { color: var(--orange); }

/* Parts search (products.html) */
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.parts { scroll-margin-top: 72px; }
.parts__intro { max-width: 46em; }
.psearch { position: relative; max-width: 720px; margin: 0 0 16px; }
.psearch__ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); display: inline-flex; pointer-events: none; }
.psearch__ico .ico { width: 22px; height: 22px; }
.psearch__input {
  width: 100%; min-height: 54px; padding: 12px 52px 12px 48px;
  font: inherit; font-size: 1.05rem; color: var(--graphite);
  background: var(--white); border: 2px solid #9CA3AF; border-radius: var(--radius);
  -webkit-appearance: none; appearance: none;
}
.psearch__input:focus { border-color: var(--orange); outline: none; box-shadow: 0 0 0 3px rgba(249,115,22,.25); }
.psearch__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.psearch__clear { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; background: transparent; color: var(--muted); font-size: 1.6rem; line-height: 1; cursor: pointer; border-radius: 6px; }
.psearch__clear:hover { color: var(--graphite); }
.pfilter { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin: 0 -2px 6px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.pfilter__btn { flex: none; min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--graphite); font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; white-space: nowrap; }
.pfilter__btn:hover { border-color: var(--orange); }
.pfilter__btn[aria-pressed="true"] { background: var(--graphite); border-color: var(--graphite); color: var(--white); }
.pcount { color: var(--muted); font-size: .95rem; margin: 0 0 12px; min-height: 1.5em; }
.js .plist:not(.is-ready) .pitem { display: none; }
.plist { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.pitem { display: flex; align-items: center; gap: 12px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 12px 12px 16px; }
.pitem__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pitem__name { color: var(--graphite); font-weight: 700; overflow-wrap: anywhere; }
.pitem__pn { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9rem; color: var(--text); overflow-wrap: anywhere; }
.pitem__cat { font-size: .8rem; color: var(--orange-dark); font-weight: 700; }
.pitem__btn { flex: none; min-height: 44px; padding: 8px 16px; }
.pmore { margin: 0 0 16px; }
.pnone { max-width: 720px; margin: 0 0 16px; }
.parts__note { font-size: .85rem; color: var(--muted); max-width: 52em; margin: 8px 0 0; }
@media (min-width: 768px) {
  .plist { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .hdr-search { order: 3; margin-left: 4px; }
  .parts { scroll-margin-top: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
.hero .media { background-color: #1A2333; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
