/*
 * industry.css — Industry landing pages (rs_industry CPT).
 * Ported exactly from agriculture-revamp.html.
 */

/* ════════════════════════════════════════════
   HERO — 2-column grid layout
   ════════════════════════════════════════════ */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 480px;
  overflow: hidden;
  background: var(--navy-dark);
  align-items: stretch;
}
/* Center the hero within the 1380px content rail (both edges). Symmetric padding
   keeps the 50/50 column split visually balanced at every zoom level instead of
   scaling only the left side. Mobile (<960px) stacks, so desktop-only. */
@media (min-width: 960px) {
  .hero { padding-left: max(48px, calc((100vw - 1380px) / 2)); padding-right: max(48px, calc((100vw - 1380px) / 2)); }
}

.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(135deg, rgba(12,30,61,0.96) 0%, rgba(21,47,92,0.88) 45%, rgba(12,30,61,0.92) 100%),
    url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 600'><defs><linearGradient id='g1' x1='0%25' y1='0%25' x2='100%25' y2='100%25'><stop offset='0%25' stop-color='%231F4788'/><stop offset='100%25' stop-color='%230C1E3D'/></linearGradient></defs><rect fill='url(%23g1)' width='1200' height='600'/><circle cx='200' cy='300' r='180' fill='%23152F5C' opacity='.4'/><circle cx='900' cy='200' r='250' fill='%232B5BA0' opacity='.15'/></svg>");
  background-size: cover; background-position: center;
  transition: transform 0.1s linear;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
}

#hero-particles {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden;
}

/* Left text column */
.hero-text-col {
  position: relative; z-index: 2;
  display: flex; align-items: center;
  padding: 56px 56px 56px 0;
  grid-column: 1 / 2;
}
.hero-text {
  display: flex; flex-direction: column; justify-content: center;
  max-width: 620px; width: 100%;
}
.hero-text h1 {
  font-size: 42px; font-weight: 800; color: var(--white);
  letter-spacing: -0.8px; line-height: 1.15; margin-bottom: 14px;
}
.hero-text .tagline {
  font-size: 16px; color: var(--text-on-dark); line-height: 1.65;
  max-width: 540px; margin-bottom: 28px;
}

/* Hero chips */
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.hero-chip {
  display: flex; align-items: center; gap: 7px; padding: 7px 14px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md); font-size: 12px; font-weight: 600;
  color: rgba(255,255,255,0.85); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.hero-chip svg { color: var(--accent); flex-shrink: 0; }

/* Hero CTAs */
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-cta {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px;
  background: var(--accent); color: var(--navy-dark); font-family: var(--font);
  font-size: 14px; font-weight: 700; border: none; border-radius: var(--radius-md);
  cursor: pointer; text-decoration: none; transition: all 0.2s var(--ease);
  letter-spacing: -0.1px;
}
.hero-cta:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(232,168,56,0.3); }
.hero-cta-secondary {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px;
  background: transparent; color: var(--white); font-family: var(--font);
  font-size: 14px; font-weight: 600; border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-md); cursor: pointer; text-decoration: none; transition: all 0.15s;
}
.hero-cta-secondary:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.05); }

/* Right photo column */
.hero-photo {
  position: relative; z-index: 2;
  grid-column: 2 / 3;
  width: 100%; height: 100%;
  overflow: hidden;
  background: var(--navy-dark);
}
.hero-photo img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center; display: block;
}
.hero-photo::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 35%;
  background: linear-gradient(180deg, rgba(12,30,61,0) 0%, rgba(12,30,61,0.55) 100%);
  pointer-events: none; z-index: 2;
}
.hero-photo-label {
  position: absolute; bottom: 18px; left: 20px; z-index: 3;
  font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.9);
  background: rgba(0,0,0,0.35); backdrop-filter: blur(8px);
  padding: 7px 14px; border-radius: var(--radius-sm); letter-spacing: 0.3px;
}
/* No-image fallback: animated gradient fills the hero photo column */
.hero-photo--gradient {
  background: linear-gradient(145deg, #1a3a6b 0%, #0C1E3D 60%, #0a1628 100%);
}
.hero-photo--gradient::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(ellipse 70% 60% at 70% 40%, rgba(31,71,136,0.45) 0%, transparent 70%);
  pointer-events: none;
}

/* ════════════════════════════════════════════
   TAB BAR
   top = header(56px) + breadcrumbs(~44px) = 100px
   ════════════════════════════════════════════ */
.tab-bar {
  position: sticky; top: 100px; z-index: 98;
  background: var(--white); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-xs);
}
.tab-bar-inner {
  padding: 0 max(48px, calc((100vw - 1380px) / 2));
  display: flex; gap: 0; overflow-x: auto;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.tab-bar-inner::-webkit-scrollbar { display: none; }
.tab-btn {
  display: flex; align-items: center; gap: 7px; padding: 15px 22px;
  font-family: var(--font); font-size: 13px; font-weight: 600; color: var(--text-muted);
  background: none; border: none; border-bottom: 2px solid transparent;
  margin-bottom: -1px; cursor: pointer; transition: all 0.2s var(--ease);
  white-space: nowrap; letter-spacing: -0.1px;
}
.tab-btn:hover { color: var(--navy); }
.tab-btn.active { color: var(--navy); border-bottom-color: var(--navy); }
.tab-btn svg { flex-shrink: 0; opacity: 0.6; }
.tab-btn.active svg { opacity: 1; }

/* ════════════════════════════════════════════
   TAB PANELS
   ════════════════════════════════════════════ */
.tab-panel { display: none; animation: panelFadeIn 0.35s var(--ease) both; }
.tab-panel.active { display: block; }
@keyframes panelFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.panel-inner { padding: 48px max(48px, calc((100vw - 1380px) / 2)) 64px; }
.section-eyebrow {
  font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--navy);
  text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 8px;
}
.section-title { font-size: 24px; font-weight: 700; color: var(--navy-dark); letter-spacing: -0.4px; margin-bottom: 8px; }
.section-desc  { font-size: 14px; color: var(--text-secondary); max-width: 580px; line-height: 1.65; margin-bottom: 36px; }

/* ════════════════════════════════════════════
   OVERVIEW PANEL
   ════════════════════════════════════════════ */
.overview-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 48px;
}
.overview-text h2 {
  font-size: 26px; font-weight: 700; color: var(--navy-dark);
  letter-spacing: -0.4px; line-height: 1.25; margin-bottom: 14px;
}
.overview-text p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 16px; }
.overview-photo {
  border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/10;
  background: linear-gradient(145deg, #1a3a6b, #0C1E3D); position: relative;
}
.overview-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.supply-categories { margin-top: 40px; }
.supply-categories h3 { font-size: 16px; font-weight: 700; color: var(--navy-dark); margin-bottom: 16px; }
.category-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-pill {
  padding: 9px 18px; background: var(--navy-wash); border: 1px solid var(--border-light);
  border-radius: var(--radius-md); font-size: 13px; font-weight: 600; color: var(--navy);
  cursor: pointer; transition: all 0.15s var(--ease);
}
.cat-pill:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

.overview-cta-row {
  margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--border-light);
  display: flex; align-items: center; gap: 16px;
}

/* ════════════════════════════════════════════
   SEGMENT TOGGLE
   ════════════════════════════════════════════ */
.segment-toggle {
  display: inline-flex; gap: 0; background: var(--surface);
  border: 1px solid var(--border-light); border-radius: var(--radius-md);
  padding: 3px; margin-bottom: 28px;
}
.seg-btn {
  padding: 8px 20px; font-family: var(--font); font-size: 12px; font-weight: 600;
  color: var(--text-muted); background: transparent; border: none;
  border-radius: var(--radius-sm); cursor: pointer; transition: all 0.15s var(--ease); white-space: nowrap;
}
.seg-btn:hover { color: var(--navy); }
.seg-btn.active { background: var(--white); color: var(--navy); box-shadow: var(--shadow-sm); }

/* ════════════════════════════════════════════
   TILE GRID — Door A
   ════════════════════════════════════════════ */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.tile-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 22px; cursor: pointer; transition: all 0.2s var(--ease); position: relative;
  text-decoration: none; color: inherit; display: block;
}
.tile-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: var(--navy); border-radius: 0 0 var(--radius-md) var(--radius-md);
  opacity: 0; transition: opacity 0.2s;
}
.tile-card:hover { border-color: var(--navy-light); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.tile-card:hover::after { opacity: 1; }
.tile-card .t-title { font-size: 15px; font-weight: 700; color: var(--navy-dark); margin-bottom: 6px; letter-spacing: -0.2px; }
.tile-card .t-desc  { font-size: 12px; color: var(--text-secondary); line-height: 1.55; margin-bottom: 14px; }
.tile-card .t-action { font-size: 12px; font-weight: 600; color: var(--navy); display: flex; align-items: center; gap: 5px; }
.tile-card .t-action svg { transition: transform 0.15s var(--ease); }
.tile-card:hover .t-action svg { transform: translateX(4px); }

/* ════════════════════════════════════════════
   FAMILY CARDS — Door B
   ════════════════════════════════════════════ */
.families-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.family-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 22px; cursor: pointer; transition: all 0.2s var(--ease); position: relative;
  text-decoration: none; color: inherit; display: block;
}
.family-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: var(--navy); border-radius: 0 0 var(--radius-md) var(--radius-md);
  opacity: 0; transition: opacity 0.2s;
}
.family-card:hover { border-color: var(--navy-light); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.family-card:hover::after { opacity: 1; }
.family-card .f-badge {
  display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 700;
  padding: 4px 10px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 12px;
}
.badge-available { background: var(--badge-available-bg); color: var(--badge-available); }
.badge-sourcing  { background: var(--badge-sourcing-bg);  color: var(--badge-sourcing);  }
.family-card .f-name    { font-size: 15px; font-weight: 700; color: var(--navy-dark); margin-bottom: 6px; letter-spacing: -0.2px; }
.family-card .f-purpose { font-size: 12px; color: var(--text-secondary); line-height: 1.55; margin-bottom: 14px; }
.family-card .f-roles   { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 16px; }
.chip {
  font-size: 10px; font-weight: 600; padding: 4px 9px; border-radius: 3px;
  background: var(--navy-wash); color: var(--navy); text-transform: uppercase;
  letter-spacing: 0.3px; border: 1px solid transparent;
}
.family-card .f-chems { padding: 8px 0 12px; border-top: 1px solid var(--border-light); margin-top: 4px; }
.family-card .f-chem-item {
  display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; font-size: 11px;
}
.family-card .f-chem-name { color: var(--text-secondary); font-family: var(--mono); }
.family-card .f-chem-cas  { color: var(--text-muted); font-family: var(--mono); font-size: 10px; }
.family-card .f-more { font-size: 10px; color: var(--text-muted); }
.family-card .f-action { font-size: 12px; font-weight: 600; color: var(--navy); display: flex; align-items: center; gap: 5px; }
.family-card .f-action svg { transition: transform 0.15s var(--ease); }
.family-card:hover .f-action svg { transform: translateX(4px); }

/* ════════════════════════════════════════════
   PROCUREMENT CARDS — Door C
   ════════════════════════════════════════════ */
.proc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.proc-card {
  padding: 28px 24px; border: 1px solid var(--border); border-radius: var(--radius-md);
  background: var(--white); text-align: center; transition: all 0.15s var(--ease);
  cursor: pointer; text-decoration: none; color: inherit; display: block;
}
.proc-card:hover { border-color: var(--navy-light); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.proc-icon-wrap {
  width: 52px; height: 52px; background: var(--navy-wash); border-radius: var(--radius-md);
  display: grid; place-items: center; margin: 0 auto 14px;
}
.proc-icon-wrap svg { color: var(--navy); }
.proc-card h4  { font-size: 15px; font-weight: 700; color: var(--navy-dark); margin-bottom: 5px; }
.proc-card p   { font-size: 12px; color: var(--text-secondary); line-height: 1.55; margin-bottom: 14px; }
.proc-card .proc-action { font-size: 12px; font-weight: 600; color: var(--navy); }

/* ════════════════════════════════════════════
   FLOATING RFQ SIDEBAR
   ════════════════════════════════════════════ */
.rfq-float {
  position: fixed; top: 110px; right: 32px; width: 360px; z-index: 9990;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-xl);
  transform: translateX(0); transition: all 0.3s var(--ease);
}
.rfq-float.collapsed { transform: translateX(calc(100% + 32px)); }
.rfq-float.collapsed .rfq-toggle { transform: translateX(calc(-100% - 14px)); opacity: 1; pointer-events: auto; }
.rfq-toggle {
  position: absolute; top: 0; left: 0; transform: translateX(-100%);
  opacity: 0; pointer-events: none;
  background: var(--navy); color: var(--white); padding: 12px 14px;
  border-radius: var(--radius-md) 0 0 var(--radius-md); cursor: pointer;
  font-size: 12px; font-weight: 700; writing-mode: vertical-lr;
  text-orientation: mixed; letter-spacing: 0.5px; transition: all 0.3s var(--ease);
  border: none; font-family: var(--font);
}
.rfq-head {
  background: var(--navy); padding: 14px 18px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: flex; align-items: center; justify-content: space-between;
}
.rfq-head h3 { color: var(--white); font-size: 13px; font-weight: 700; letter-spacing: -0.1px; }
.rfq-head-actions { display: flex; align-items: center; gap: 8px; }
.rfq-badge {
  background: var(--accent); color: var(--navy-dark);
  font-size: 10px; font-weight: 700; padding: 3px 8px;
  border-radius: 20px; text-transform: uppercase; letter-spacing: 0.4px;
}
.rfq-minimize {
  background: none; border: none; color: rgba(255,255,255,0.6);
  cursor: pointer; padding: 4px; display: grid; place-items: center; transition: color 0.15s;
}
.rfq-minimize:hover { color: var(--white); }
.rfq-body { padding: 18px; }
.rfq-field { margin-bottom: 12px; }
.rfq-field label {
  display: block; font-size: 11px; font-weight: 600; color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 5px;
}
.rfq-field input, .rfq-field select, .rfq-field textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-family: var(--font); font-size: 13px;
  color: var(--text-primary); background: var(--white); outline: none; transition: border-color 0.15s;
}
.rfq-field input:focus, .rfq-field select:focus, .rfq-field textarea:focus { border-color: var(--navy); }
.rfq-field textarea { resize: vertical; min-height: 56px; }
.rfq-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rfq-advanced-toggle {
  display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600;
  color: var(--text-muted); cursor: pointer; background: none; border: none;
  font-family: var(--font); padding: 4px 0; margin-bottom: 12px; transition: color 0.15s;
}
.rfq-advanced-toggle:hover { color: var(--navy); }
.rfq-advanced-toggle svg { transition: transform 0.2s; }
.rfq-advanced-toggle.open svg { transform: rotate(180deg); }
.rfq-advanced { display: none; margin-bottom: 12px; }
.rfq-advanced.show { display: block; }
.rfq-submit {
  width: 100%; padding: 12px; background: var(--accent); color: var(--navy-dark);
  font-family: var(--font); font-size: 13px; font-weight: 700; border: none;
  border-radius: var(--radius-sm); cursor: pointer; transition: all 0.15s var(--ease); letter-spacing: -0.1px;
}
.rfq-submit:hover { background: var(--accent-hover); }
.rfq-note { text-align: center; font-size: 11px; color: var(--text-muted); margin-top: 8px; }

/* ════════════════════════════════════════════
   RESPONSIVE — TABLET LARGE (≤1199px)
   ════════════════════════════════════════════ */
@media (max-width: 1199px) {
  .rfq-float { display: none; }
  .hero { grid-template-columns: 1fr 40%; }
  .hero-text-col { padding: 48px 32px; }
  .hero-text h1 { font-size: 32px; }
  .overview-grid { grid-template-columns: 1fr; gap: 32px; }
  .panel-inner { padding: 40px 32px 56px; }
  .tab-bar-inner { padding: 0 24px; }
  .section-title { font-size: 22px; }
}

/* ════════════════════════════════════════════
   RESPONSIVE — TABLET (≤959px)
   ════════════════════════════════════════════ */
@media (max-width: 959px) {
  .tab-bar { top: 92px; }
  .hero { min-height: 300px; grid-template-columns: 1fr; height: auto; }
  .hero-bg { grid-column: auto; }
  #hero-particles { grid-column: auto; }
  .hero-text-col { padding: 40px 20px; order: 1; grid-column: auto; }
  .hero-photo { order: 2; aspect-ratio: 16/9; max-height: unset; width: 100%; min-height: auto; grid-column: auto; }
  .hero-text h1 { font-size: 28px; margin-bottom: 12px; }
  .hero-text .tagline { font-size: 14px; margin-bottom: 20px; }
  .hero-ctas { gap: 10px; }
  .hero-cta, .hero-cta-secondary { padding: 11px 20px; font-size: 13px; }
  .hero-chips { gap: 8px; margin-bottom: 24px; }
  .hero-chip { padding: 6px 12px; font-size: 11px; }
  .tab-bar-inner { padding: 0 20px; overflow-x: auto; }
  .tab-btn { padding: 12px 16px; font-size: 12px; gap: 5px; }
  .panel-inner { padding: 32px 20px 48px; }
  .section-eyebrow { font-size: 10px; margin-bottom: 6px; }
  .section-title { font-size: 20px; }
  .section-desc { font-size: 13px; margin-bottom: 28px; }
  .overview-text h2 { font-size: 22px; margin-bottom: 12px; }
  .overview-text p { font-size: 13px; }
  .families-grid, .tile-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .proc-grid { grid-template-columns: 1fr; }
  .segment-toggle { flex-wrap: wrap; margin-bottom: 20px; }
  .seg-btn { padding: 8px 14px; font-size: 11px; }
}

/* ════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤767px)
   ════════════════════════════════════════════ */
@media (max-width: 767px) {
  .tab-bar { top: 84px; }
  .hero { min-height: auto; height: auto; }
  .hero-text-col { padding: 32px 16px; align-items: flex-start; }
  .hero-text h1 { font-size: 24px; line-height: 1.2; margin-bottom: 10px; }
  .hero-text .tagline { font-size: 13px; margin-bottom: 16px; }
  .hero-chips { gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
  .hero-chip { padding: 5px 10px; font-size: 10px; flex: 0 1 calc(50% - 3px); }
  .hero-ctas { gap: 8px; width: 100%; justify-content: center; }
  .hero-cta, .hero-cta-secondary { padding: 10px 16px; font-size: 12px; width: max-content; }
  .hero-photo { border-radius: var(--radius-md); aspect-ratio: 16/9; order: 2; margin-top: 8px; }
  .tab-bar { overflow-x: auto; }
  .tab-bar-inner { padding: 0 16px; gap: 4px; }
  .tab-btn { padding: 10px 12px; font-size: 11px; gap: 4px; min-height: 44px; }
  .panel-inner { padding: 24px 16px 40px; }
  .section-eyebrow { font-size: 9px; margin-bottom: 5px; }
  .section-title { font-size: 18px; margin-bottom: 5px; }
  .section-desc { font-size: 12px; margin-bottom: 20px; }
  .overview-grid { gap: 20px; }
  .overview-text h2 { font-size: 19px; margin-bottom: 10px; }
  .overview-text p { font-size: 12px; margin-bottom: 12px; }
  .supply-categories { margin-top: 24px; }
  .supply-categories h3 { font-size: 14px; margin-bottom: 12px; }
  .category-pills { gap: 6px; flex-wrap: wrap; }
  .cat-pill { padding: 7px 12px; font-size: 11px; flex: 0 1 calc(50% - 3px); }
  .overview-cta-row { flex-direction: column; gap: 10px; }
  .btn-primary, .btn-ghost { width: 100%; }
  .families-grid, .tile-grid { grid-template-columns: 1fr; gap: 10px; }
  .tile-card, .family-card { padding: 16px; }
  .proc-grid { grid-template-columns: 1fr; gap: 10px; }
  .proc-card { padding: 20px 16px; }
  .rfq-float { bottom: 20px; left: 16px; width: calc(100vw - 32px); max-width: 360px; }
}

/* ════════════════════════════════════════════
   RESPONSIVE — MOBILE SMALL (≤480px)
   ════════════════════════════════════════════ */
@media (max-width: 480px) {
  .tab-bar { top: 44px; }
  .hero-text-col { padding: 24px 12px; }
  .hero-text h1 { font-size: 20px; line-height: 1.25; margin-bottom: 8px; }
  .hero-text .tagline { font-size: 12px; margin-bottom: 12px; }
  .hero-chips { gap: 5px; margin-bottom: 12px; }
  .hero-chip { padding: 4px 8px; font-size: 9px; flex: 0 1 calc(50% - 2.5px); }
  .hero-ctas { gap: 6px; width: 100%; }
  .hero-cta, .hero-cta-secondary { padding: 9px 14px; font-size: 11px; gap: 6px; }
  .hero-photo { border-radius: var(--radius-sm); aspect-ratio: 16/9; margin-top: 8px; }
  .tab-bar-inner { padding: 0 12px; gap: 2px; }
  .tab-btn { padding: 8px 10px; font-size: 10px; gap: 3px; min-height: 44px; }
  .panel-inner { padding: 20px 12px 32px; }
  .section-title { font-size: 16px; margin-bottom: 4px; }
  .section-desc { font-size: 11px; margin-bottom: 16px; }
  .overview-text h2 { font-size: 17px; margin-bottom: 8px; }
  .overview-text p { font-size: 11px; margin-bottom: 10px; }
  .cat-pill { padding: 6px 10px; font-size: 10px; flex: 0 1 calc(50% - 2.5px); }
  .overview-cta-row { margin-top: 16px; padding-top: 16px; flex-direction: column; gap: 8px; }
  .btn-primary, .btn-ghost { width: 100%; padding: 9px 14px; font-size: 11px; }
  .tile-card, .family-card, .proc-card { padding: 12px; }
  .tile-card .t-title, .family-card .f-name { font-size: 12px; }
  .tile-card .t-desc, .family-card .f-purpose { font-size: 10px; }
  .families-grid, .tile-grid { grid-template-columns: 1fr; gap: 8px; }
  .proc-grid { grid-template-columns: 1fr; gap: 8px; }
  .proc-icon-wrap { width: 40px; height: 40px; }
  .rfq-float { width: calc(100vw - 24px); max-width: 340px; left: 12px; bottom: 16px; }
  .rfq-head { padding: 12px 14px; }
  .rfq-head h3 { font-size: 11px; }
  .rfq-body { padding: 10px 12px; }
  .rfq-field { margin-bottom: 8px; }
  .rfq-field label { font-size: 9px; margin-bottom: 3px; }
  .rfq-field input, .rfq-field select, .rfq-field textarea { padding: 7px 9px; font-size: 11px; }
  .rfq-row { gap: 6px; }
  .rfq-submit { padding: 8px; font-size: 11px; }
  .seg-btn { padding: 6px 10px; font-size: 9px; flex: 0 1 calc(50% - 1px); }
}
