/* Indexora — site styles
   Palette: ink blue (trust, industry), steel greys, signal ochre (cargo labels, safety marking).
   Type: Archivo — wide setting for headings, normal width for text, narrow for references. */

:root {
  --ink: #14233C;
  --ink-2: #2A3B57;
  --steel: #556173;
  --line: #D9DEE4;
  --line-strong: #B8C1CC;
  --paper: #F4F5F3;
  --white: #FFFFFF;
  --ochre: #E0A526;
  --ochre-deep: #A9760E;
  --ochre-tint: #FBF1DA;
  --green: #1F6F5C;
  --red: #B42318;

  --font: "Archivo", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
  --radius: 6px;
  --radius-sm: 4px;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.1875rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem);
  --step-4: clamp(2.125rem, 1.5rem + 2.6vw, 3.25rem);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 1rem;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }

h1, h2, h3 {
  font-stretch: 112%;
  font-variation-settings: "wdth" 112;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); font-weight: 760; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }

p { margin: 0 0 1em; max-width: 68ch; }

a { color: var(--ink); text-decoration-color: var(--ochre); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--ink-2); text-decoration-color: var(--ochre-deep); }

:focus-visible { outline: 3px solid var(--ochre); outline-offset: 2px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }

.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;
}

.skip {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  background: var(--ink); color: var(--white); padding: 0.5rem 1rem; border-radius: var(--radius-sm);
}
.skip:focus { top: 1rem; }

.muted { color: var(--steel); }

/* References: part numbers, CAS numbers. Narrow width with tabular figures. */
.code {
  font-variation-settings: "wdth" 82;
  font-stretch: 82%;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: var(--ink-2);
}

/* ------------------------------------------------------------ buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 44px; padding: 0.6rem 1.15rem;
  font: inherit; font-weight: 650; font-size: var(--step-0); line-height: 1.2;
  border: 2px solid transparent; border-radius: var(--radius-sm);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--ochre); color: var(--ink); border-color: var(--ochre); }
.btn-primary:hover { background: #EBB441; border-color: #EBB441; color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-dark:hover { background: var(--ink-2); border-color: var(--ink-2); color: var(--white); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.55); }
.btn-ghost-light:hover { border-color: var(--white); color: var(--white); background: rgba(255,255,255,0.08); }
.btn-sm { min-height: 38px; padding: 0.4rem 0.85rem; font-size: var(--step--1); }
.btn-lg { min-height: 52px; padding: 0.8rem 1.5rem; font-size: var(--step-1); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.text-link { font-weight: 600; }

/* ------------------------------------------------------------ header */

.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 72px; }

.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  text-decoration: none; color: var(--ink);
  font-weight: 780; font-size: 1.375rem; letter-spacing: -0.01em;
  font-variation-settings: "wdth" 118; font-stretch: 118%;
}
.logo-mark { width: 32px; height: 32px; flex: none; }
.brand-light { color: var(--white); }
.brand-light:hover { color: var(--white); }

.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav ul { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { text-decoration: none; font-weight: 550; color: var(--ink); padding: 0.5rem 0; }
.site-nav ul a:hover { text-decoration: underline; text-decoration-color: var(--ochre); }

.nav-toggle {
  display: none; font: inherit; font-weight: 650; background: none; color: var(--ink);
  border: 2px solid var(--ink); border-radius: var(--radius-sm); padding: 0.4rem 0.9rem; min-height: 44px; cursor: pointer;
}

.dept-bar { background: var(--ink); color: var(--white); }
.dept-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 48px; }
.dept-bar ul { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.dept-bar ul::-webkit-scrollbar { display: none; }
.dept-bar a { color: #DDE3EC; text-decoration: none; font-size: var(--step--1); font-weight: 550; white-space: nowrap; padding: 0.75rem 0; display: block; }
.dept-bar a:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--ochre); }

.dept-search input {
  width: 280px; font: inherit; font-size: var(--step--1);
  padding: 0.45rem 0.75rem; border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.22); background: rgba(255,255,255,0.08); color: var(--white);
}
.dept-search input::placeholder { color: #AAB6C6; }
.dept-search input:focus { background: var(--white); color: var(--ink); outline-offset: 1px; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 72px;
    flex-direction: column; align-items: stretch; gap: 1rem;
    background: var(--white); border-bottom: 1px solid var(--line); padding: 1rem clamp(1rem, 4vw, 2rem) 1.5rem;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
  .dept-search { display: none; }
}

/* ------------------------------------------------------------ hero */

.hero { background: var(--paper); border-bottom: 1px solid var(--line); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
  padding-top: clamp(2.5rem, 6vw, 5rem); padding-bottom: clamp(2.5rem, 6vw, 5rem);
}
.hero h1 { max-width: 18ch; }
.lead { font-size: var(--step-1); color: var(--ink-2); line-height: 1.55; max-width: 58ch; }

.hero-search { display: flex; gap: 0.5rem; margin: 1.75rem 0 0.75rem; max-width: 560px; }
.hero-search input {
  flex: 1; min-width: 0; font: inherit; font-size: var(--step-1);
  padding: 0.75rem 1rem; border: 2px solid var(--ink); border-radius: var(--radius-sm); background: var(--white); color: var(--ink);
}
.hero-search .btn { min-height: 54px; padding-left: 1.5rem; padding-right: 1.5rem; }
.hero-alt { color: var(--steel); font-size: var(--step--1); }

/* The quote slip: modelled on a cargo manifest. The one decorative moment on the site. */
.slip {
  margin: 0; background: var(--white);
  border: 2px solid var(--ink); border-radius: var(--radius-sm);
  box-shadow: 8px 8px 0 var(--ochre);
  transform: rotate(-1.2deg);
  font-size: var(--step--1);
}
.slip-head {
  display: grid; grid-template-columns: 1fr 1fr; border-bottom: 2px solid var(--ink);
}
.slip-head > div { padding: 0.75rem 1rem; display: flex; flex-direction: column; gap: 0.1rem; }
.slip-head > div + div { border-left: 1px solid var(--line-strong); }
.slip-head strong { font-size: var(--step-0); }
.slip-k { color: var(--steel); font-size: 0.8125rem; }
.slip table { width: 100%; border-collapse: collapse; }
.slip th { text-align: left; font-weight: 600; color: var(--steel); font-size: 0.8125rem; padding: 0.6rem 1rem 0.35rem; }
.slip td { padding: 0.55rem 1rem; border-top: 1px dashed var(--line-strong); vertical-align: top; }
.slip td:last-child, .slip th:last-child { text-align: right; white-space: nowrap; }
.slip td.code { white-space: nowrap; }
.slip figcaption {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  border-top: 2px solid var(--ink); padding: 0.7rem 1rem; color: var(--ink-2);
}
.slip-status { color: var(--green); font-weight: 650; }

@media (prefers-reduced-motion: no-preference) {
  .slip { animation: slip-in 0.7s cubic-bezier(.2,.7,.2,1) both 0.15s; }
  @keyframes slip-in {
    from { opacity: 0; transform: translateY(16px) rotate(-3deg); }
    to { opacity: 1; transform: translateY(0) rotate(-1.2deg); }
  }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .slip { transform: none; box-shadow: 6px 6px 0 var(--ochre); }
  @media (prefers-reduced-motion: no-preference) {
    @keyframes slip-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
  }
}

@media (max-width: 520px) {
  .hero-search { flex-direction: column; }
  .slip td:nth-child(1) { display: none; }
  .slip th:nth-child(1) { display: none; }
}

/* ------------------------------------------------------------ sections */

.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.section-head h2 { margin: 0; }

/* Departments: separated by rules rather than boxed cards. */
.dept-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); border-top: 2px solid var(--ink); }
.dept { padding: 1.5rem 1.5rem 1.75rem 0; border-bottom: 1px solid var(--line); }
.dept + .dept { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.dept h3 { font-size: var(--step-2); margin-bottom: 0.4em; }
.dept h3 a { text-decoration: none; }
.dept h3 a:hover { text-decoration: underline; text-decoration-color: var(--ochre); }
.dept > p { color: var(--ink-2); }
.dept-links { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; }
.dept-links a { font-weight: 550; }
.dept-meta { color: var(--steel); font-size: var(--step--1); margin: 0; }

@media (max-width: 960px) {
  .dept, .dept + .dept { padding-left: 0; padding-right: 0; border-left: 0; }
}

/* Steps: a real sequence, so numbered. */
.steps { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 1rem; }
.steps li::before {
  content: counter(step); display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; margin-bottom: 0.75rem;
  background: var(--ochre); color: var(--ink); font-weight: 750; border-radius: 50%;
}
.steps h3 { margin-bottom: 0.35em; }
.steps p { color: var(--ink-2); margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.steps-vertical { grid-template-columns: 1fr; gap: 0; margin-bottom: 3rem; }
.steps-vertical li { display: grid; grid-template-columns: 3rem 1fr; column-gap: 1rem; border-top: 1px solid var(--line); padding: 1.5rem 0; }
.steps-vertical li::before { grid-row: span 2; margin: 0; }
.steps-vertical h2 { font-size: var(--step-2); margin: 0.1rem 0 0.4rem; }

.why { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 3rem; }
.why-list { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem 2.5rem; }
.why-list dt { font-weight: 700; font-size: var(--step-1); margin-bottom: 0.3rem; font-variation-settings: "wdth" 108; font-stretch: 108%; }
.why-list dd { margin: 0; color: var(--ink-2); }
@media (max-width: 900px) { .why { grid-template-columns: 1fr; gap: 1.5rem; } }
@media (max-width: 560px) { .why-list { grid-template-columns: 1fr; } }

.markets { padding: clamp(2.5rem, 5vw, 3.5rem) 0; }
.markets-inner { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 3rem; align-items: baseline; }
.markets h2 { margin: 0; }
.markets-list { font-size: var(--step-2); line-height: 1.45; margin: 0; color: var(--ink-2); font-variation-settings: "wdth" 104; }
@media (max-width: 900px) { .markets-inner { grid-template-columns: 1fr; gap: 1rem; } }

/* Call-to-action band */
.band { background: var(--ink); color: var(--white); }
.band-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-top: clamp(2.5rem, 5vw, 3.5rem); padding-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.band h2 { color: var(--white); margin-bottom: 0.35em; }
.band p { color: #C9D2DE; margin: 0; }
.band-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ------------------------------------------------------------ product cards */

.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem; }
.pcard {
  display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: border-color 0.15s ease;
}
.pcard:hover { border-color: var(--ink); color: var(--ink); }
.pcard:hover h3 { text-decoration: underline; text-decoration-color: var(--ochre); text-decoration-thickness: 2px; }
.pcard-media { aspect-ratio: 4 / 3; background: var(--paper); border-bottom: 1px solid var(--line); }
.pcard-media img { width: 100%; height: 100%; object-fit: contain; padding: 0.75rem; }
.pcard-body { padding: 0.9rem 1rem 1.1rem; display: flex; flex-direction: column; gap: 0.15rem; }
.pcard-body h3 { font-size: var(--step-0); font-variation-settings: "wdth" 104; font-stretch: 104%; margin: 0; line-height: 1.3; }
.pcard-body p { color: var(--steel); font-size: var(--step--1); margin: 0; }
.pcard .code { font-size: var(--step--1); }

/* Placeholder when a product has no photo: a reference tag rather than a broken image. */
.ph {
  width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.35rem;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(20,35,60,0.035) 14px 28px),
    var(--paper);
  text-align: center; padding: 1rem;
}
.ph span {
  font-variation-settings: "wdth" 82; font-stretch: 82%; font-weight: 650; font-size: var(--step-1);
  color: var(--ink-2); border: 1.5px solid var(--ink-2); border-radius: var(--radius-sm); padding: 0.25rem 0.6rem; background: var(--white);
  max-width: 100%; overflow-wrap: anywhere;
}
.ph small { color: var(--steel); font-size: 0.8125rem; }

/* ------------------------------------------------------------ inner pages */

.page { padding-top: 1.5rem; padding-bottom: clamp(3rem, 6vw, 4.5rem); }
.page-narrow { max-width: 860px; }
.page-head { margin: 1.5rem 0 2rem; }
.page-head h1 { font-size: var(--step-4); }

.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; padding: 0; margin: 0; font-size: var(--step--1); color: var(--steel); }
.crumbs li + li::before { content: "/"; margin-right: 0.5rem; color: var(--line-strong); }
.crumbs a { color: var(--steel); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); }

.chips { list-style: none; padding: 0; margin: 0 0 2rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips a {
  display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; font-weight: 600;
  border: 1.5px solid var(--ink); border-radius: 999px; padding: 0.4rem 0.9rem; min-height: 40px;
}
.chips a:hover { background: var(--ink); color: var(--white); }
.chips span { font-size: 0.8125rem; color: var(--steel); font-weight: 500; }
.chips a:hover span { color: #C9D2DE; }

.filter-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.filter-row label { font-weight: 600; }
.filter-row input {
  flex: 1; min-width: 220px; max-width: 420px; font: inherit; padding: 0.6rem 0.85rem;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
}
.filter-row input:focus { border-color: var(--ink); }
.filter-empty { margin-top: 1rem; }

.empty { border: 1.5px dashed var(--line-strong); border-radius: var(--radius); padding: 2rem; background: var(--paper); }
.empty h2 { font-size: var(--step-2); }

.tree-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2.5rem; }
.tree { border-top: 2px solid var(--ink); padding-top: 1rem; }
.tree h2 { font-size: var(--step-2); }
.tree h2 a { text-decoration: none; }
.tree p { color: var(--ink-2); }
.tree ul { list-style: none; padding: 0; margin: 0; }
.tree ul ul { padding-left: 1rem; border-left: 1px solid var(--line); margin: 0.25rem 0 0.5rem 0.25rem; }
.tree li { padding: 0.2rem 0; }
.tree li a { font-weight: 550; }

/* Product page */
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); margin-top: 1.5rem; align-items: start; }
.product-media { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); aspect-ratio: 1 / 1; overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: contain; padding: 1.5rem; }
.product-media .ph span { font-size: var(--step-3); padding: 0.4rem 1rem; }
.product-info h1 { font-size: var(--step-3); }
.code-lg { font-size: var(--step-1); margin: 0 0 0.25rem; }

.terms { margin: 1.5rem 0; border-top: 2px solid var(--ink); }
.terms > div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.terms dt { color: var(--steel); }
.terms dd { margin: 0; font-weight: 600; }

.product-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.fine { color: var(--steel); font-size: var(--step--1); margin-top: 1rem; }

.product-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); margin-top: 3.5rem; }
.product-detail h2, .related h2 { font-size: var(--step-2); }
.related { margin-top: 3.5rem; }

@media (max-width: 860px) {
  .product, .product-detail { grid-template-columns: 1fr; }
}

.spec { width: 100%; border-collapse: collapse; border-top: 2px solid var(--ink); }
.spec th, .spec td { text-align: left; padding: 0.7rem 0.5rem 0.7rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { width: 40%; font-weight: 500; color: var(--steel); }
.spec td { font-weight: 600; }

.prose h2 { font-size: var(--step-2); margin-top: 1.75rem; }
.prose h2:first-child { margin-top: 0; }
.doc-link { margin: 1rem 0 0; font-weight: 600; }
.prose p { color: var(--ink-2); }

.faq { margin-top: 2.5rem; }
.faq h2 { font-size: var(--step-2); }
.faq details { border-top: 1px solid var(--line); padding: 0.9rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 650; list-style-position: outside; }
.faq details p { margin: 0.6rem 0 0; color: var(--ink-2); }

.contact-list { margin: 0; border-top: 2px solid var(--ink); }
.contact-list > div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.contact-list dt { color: var(--steel); }
.contact-list dd { margin: 0; font-weight: 600; font-size: var(--step-1); }

.search-page-form { margin-top: 0; }
.search-summary { color: var(--steel); margin: 1rem 0 1.5rem; }

/* ------------------------------------------------------------ RFQ form */

.rfq fieldset { border: 0; padding: 0; margin: 0 0 2.5rem; min-width: 0; }
.rfq legend { font-size: var(--step-2); font-weight: 700; padding: 0; margin-bottom: 0.5rem; font-variation-settings: "wdth" 112; font-stretch: 112%; }
.hint { color: var(--steel); font-size: var(--step--1); }

.field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1.1rem; flex: 1; min-width: 0; }
.field-row { display: flex; gap: 1rem; }
@media (max-width: 640px) { .field-row { flex-direction: column; gap: 0; } }
.field label { font-weight: 600; font-size: var(--step--1); }
.req { color: var(--steel); font-weight: 400; font-size: 0.8125rem; margin-left: 0.25rem; }

.rfq input, .rfq select, .rfq textarea {
  font: inherit; color: var(--ink); background: var(--white); width: 100%;
  padding: 0.65rem 0.8rem; min-height: 46px;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
}
.rfq textarea { resize: vertical; }
.rfq input:focus, .rfq select:focus, .rfq textarea:focus { border-color: var(--ink); }
.rfq [aria-invalid="true"] { border-color: var(--red); }

.rfq-items { margin: 1rem 0; }
.rfq-items-head, .rfq-item { display: grid; grid-template-columns: 1.1fr 2fr 0.7fr 0.8fr 44px; gap: 0.5rem; align-items: center; }
.rfq-items-head { font-size: 0.8125rem; color: var(--steel); font-weight: 600; padding-bottom: 0.35rem; }
.rfq-item { margin-bottom: 0.5rem; }
.rfq-item input, .rfq-item select { min-height: 44px; }
.rfq-remove {
  width: 44px; height: 44px; border: 1.5px solid var(--line-strong); background: var(--white); border-radius: var(--radius-sm);
  cursor: pointer; color: var(--steel); font-size: 1.25rem; line-height: 1;
}
.rfq-remove .rm-text { display: none; }
.rfq-remove:hover { border-color: var(--red); color: var(--red); }

@media (max-width: 720px) {
  .rfq-items-head { display: none; }
  .rfq-item {
    grid-template-columns: 1fr 1fr; padding: 0.75rem; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 0.75rem;
  }
  .rfq-item .ri-desc { grid-column: 1 / -1; order: -1; }
  .rfq-item .ri-code { grid-column: 1 / -1; order: -2; }
  .rfq-remove { width: 100%; grid-column: 1 / -1; font-size: var(--step--1); font-weight: 600; }
  .rfq-remove [aria-hidden] { display: none; }
  .rfq-remove .rm-text { display: inline; }
}

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.rfq-submit { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.form-status { margin-top: 1rem; font-weight: 600; }
.form-status.is-error { color: var(--red); }

.rfq-done { border: 2px solid var(--green); border-radius: var(--radius); padding: 2rem; background: #F0F7F4; }
.rfq-done h2 { color: var(--green); }
.rfq-done:focus { outline: none; }

/* ------------------------------------------------------------ footer */

.site-footer { background: #0F1B2E; color: #C9D2DE; padding-top: clamp(3rem, 6vw, 4rem); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 2.5rem; }
.site-footer h2 { font-size: var(--step-0); color: var(--white); margin-bottom: 0.9rem; font-variation-settings: "wdth" 108; font-stretch: 108%; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.site-footer a { color: #DDE3EC; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--ochre); }
.site-footer .muted { color: #9AA8BA; }
.footer-brand p { margin-top: 1rem; max-width: 40ch; }
.reg { font-size: var(--step--1); color: #9AA8BA; }
.footer-base { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 3rem; padding-top: 1.25rem; padding-bottom: 1.5rem; }
.footer-base p { font-size: 0.8125rem; color: #8D9BAE; max-width: none; margin: 0; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ WhatsApp */

.wa-float {
  position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 50;
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #1F7A4D; color: var(--white); text-decoration: none; font-weight: 650;
  padding: 0.7rem 1.1rem 0.7rem 0.9rem; border-radius: 999px; min-height: 48px;
  box-shadow: 0 6px 18px rgba(15,27,46,0.25);
}
.wa-float:hover { background: #18663F; color: var(--white); }
.wa-float svg { width: 22px; height: 22px; }
@media (max-width: 560px) { .wa-float span { display: none; } .wa-float { padding: 0.8rem; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .site-header, .site-footer, .wa-float, .band { display: none; }
}
