/* GALVA home-page sections — uses the same tokens as the cart (rfq-theme.css). */
@import url("../assets/rfq-theme.css");

.gh { color: var(--grfq-text); font-family: var(--grfq-font-stack); line-height: 1.55; }
.gh *, .gh *::before, .gh *::after { box-sizing: border-box; }
.gh-sec { padding: 56px 0; border-top: 1px solid var(--grfq-line); }
.gh-sec:first-child { border-top: 0; }
.gh-head { max-width: 760px; margin-bottom: 28px; }
.gh-kicker { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--grfq-lime); }
.gh[lang="ar"] .gh-kicker, .gh[lang="zh"] .gh-kicker, .gh[lang="hi"] .gh-kicker { letter-spacing: 0; }
.gh-head h2 { margin: 0 0 10px; font-size: clamp(24px, 3.2vw, 34px); line-height: 1.15; color: #fff; font-weight: 800; }
.gh-lead { margin: 0; color: var(--grfq-muted); font-size: 16px; }
.gh-h3 { margin: 32px 0 14px; font-size: 18px; color: #fff; }
.gh-note { margin: 12px 0 0; font-size: 12px; color: var(--grfq-muted); }

.gh-points { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.gh-points li { position: relative; padding: 14px 16px 14px 40px; background: var(--grfq-surface); border: 1px solid var(--grfq-line); border-radius: var(--grfq-radius-sm); }
.gh-points li::before { content: ""; position: absolute; inset-inline-start: 16px; top: 21px; width: 10px; height: 10px; border-radius: 50%; background: var(--grfq-lime); }
.gh[dir="rtl"] .gh-points li { padding: 14px 40px 14px 16px; }
.gh-mobile .gh-points { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.gh-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 10px 16px; border-radius: var(--grfq-radius-sm);
  border: 1px solid var(--grfq-lime-line); background: var(--grfq-lime-soft); color: var(--grfq-lime); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: filter .15s ease; }
.gh-btn:hover { filter: brightness(1.15); }
.gh-btn:focus-visible, .gh-tab:focus-visible, .gh input:focus-visible, .gh select:focus-visible, .gh textarea:focus-visible { outline: 2px solid var(--grfq-lime); outline-offset: 2px; }
.gh-btn.is-in { background: transparent; color: var(--grfq-text); border-color: var(--grfq-line-strong); }
.gh-btn-strong { background: var(--grfq-lime); color: var(--grfq-lime-ink); border-color: var(--grfq-lime); }
.gh-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.gh-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.gh-card { display: flex; flex-direction: column; padding: 18px; background: var(--grfq-surface); border: 1px solid var(--grfq-line); border-radius: var(--grfq-radius); }
.gh-card h3 { margin: 0 0 8px; font-size: 16px; color: #fff; line-height: 1.3; }
.gh-card p { margin: 0 0 16px; color: var(--grfq-muted); font-size: 14px; flex: 1; }
.gh-card-foot { display: flex; flex-wrap: wrap; gap: 8px; }
.gh-card-foot.is-variants .gh-btn { flex: 1 1 auto; }

/* mobile app mock-ups */
.gh-mobile { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
.gh-mobile > * { min-width: 0; }
.gh-phones { display: grid; gap: 18px; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 1080px; }
.gh-phone { margin: 0; padding: 8px; border-radius: 30px; background: #0f1c24; border: 1px solid var(--grfq-line-strong); box-shadow: var(--grfq-shadow); }
.gh-phone-screen { border-radius: 23px; background: linear-gradient(180deg, var(--grfq-glow) -40%, var(--grfq-navy) 40%); padding: 10px 12px 16px; min-height: 380px; overflow: hidden; }
.gh-phone-bar { display: flex; justify-content: space-between; align-items: center; font-size: 10px; color: var(--grfq-muted); direction: ltr; }
.gh-phone-notch { width: 44px; height: 12px; border-radius: 8px; background: #000; }
.gh-app { display: flex; justify-content: space-between; align-items: center; margin: 12px 0 6px; direction: ltr; }
.gh-app-logo { font-size: 10px; font-weight: 800; letter-spacing: .12em; color: #fff; }
.gh-live { font-size: 9px; font-weight: 800; color: var(--grfq-lime-ink); background: var(--grfq-lime); padding: 2px 6px; border-radius: 6px; }
.gh-phone h4 { margin: 4px 0 12px; font-size: 15px; color: #fff; }
.gh-metric { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; margin-bottom: 8px; background: var(--grfq-surface-2); border-radius: 10px; }
.gh-metric-l { font-size: 10px; color: var(--grfq-muted); }
.gh-metric-v { font-size: 16px; font-weight: 800; color: #fff; }
.gh-metric-v small { font-size: 11px; font-weight: 600; color: var(--grfq-muted); }
.gh-metric.is-big .gh-metric-v { font-size: 30px; color: var(--grfq-lime); }
.gh-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gh-bar { margin-bottom: 9px; }
.gh-bar-top { display: flex; justify-content: space-between; font-size: 10px; color: var(--grfq-text); margin-bottom: 4px; gap: 6px; }
.gh-bar-track { height: 6px; border-radius: 4px; background: var(--grfq-line); overflow: hidden; }
.gh-bar-fill { height: 100%; background: var(--grfq-lime); border-radius: 4px; }
.gh[dir="rtl"] .gh-bar-track { transform: scaleX(-1); }
.gh-sub { margin: 10px 0 6px; font-size: 10px; color: var(--grfq-muted); text-transform: uppercase; letter-spacing: .08em; }
.gh-alarm { font-size: 11px; padding: 7px 9px; border-radius: 8px; margin-bottom: 6px; border-inline-start: 3px solid; background: var(--grfq-surface-2); }
.gh-alarm.is-ok { border-color: var(--grfq-lime); }
.gh-alarm.is-warn { border-color: var(--grfq-err); color: #ffd2cb; }
.gh-alarm.is-ai { border-color: #7fc8ff; margin-top: 10px; }
.gh-cams { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.gh-cam { position: relative; height: 92px; border-radius: 8px; padding: 6px; font-size: 9px; color: #fff; display: flex; align-items: flex-end;
  background: linear-gradient(135deg, #1c3442, #0a1820); overflow: hidden; }
.gh-cam::after { content: ""; position: absolute; inset: 30% 20% 25% 25%; border: 1px solid rgba(212, 237, 49, .7); border-radius: 3px; }
.gh-cam-2 { background: linear-gradient(160deg, #26404d, #0b1b23); } .gh-cam-2::after { inset: 20% 45% 35% 15%; }
.gh-cam-3 { background: linear-gradient(110deg, #213743, #0a1820); } .gh-cam-3::after { display: none; }
.gh-cam-4 { background: linear-gradient(200deg, #2b4552, #0c1c25); } .gh-cam-4::after { inset: 35% 15% 20% 50%; }
.gh-rec { position: absolute; top: 6px; inset-inline-end: 6px; width: 7px; height: 7px; border-radius: 50%; background: #ff5d4d; }
.gh-spark { display: flex; align-items: flex-end; gap: 6px; height: 80px; padding: 8px; background: var(--grfq-surface-2); border-radius: 10px; direction: ltr; }
.gh-spark i { flex: 1; background: var(--grfq-lime); border-radius: 3px 3px 0 0; opacity: .85; }
.gh-spark i:last-child { opacity: 1; }

/* table-like rows that become cards on small screens */
.gh-rows { border: 1px solid var(--grfq-line); border-radius: var(--grfq-radius); overflow: hidden; }
.gh-rows-head, .gh-rows-row { display: grid; grid-template-columns: 1fr 1.6fr 1.8fr; gap: 0; }
.gh-rows-head span { padding: 12px 16px; font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--grfq-lime); background: var(--grfq-surface-2); }
.gh-rows-row { border-top: 1px solid var(--grfq-line); }
.gh-rows-row:nth-child(odd) { background: var(--grfq-surface); }
.gh-rows-row > div { padding: 12px 16px; font-size: 14px; }
.gh-rows-row > div:first-child { font-weight: 700; color: #fff; }
.gh-rows-row > div:not(:first-child) { color: var(--grfq-text); }
.gh-rows-label { display: none; }

.gh-std { display: grid; grid-template-columns: max-content 1fr; gap: 0; margin: 0; border: 1px solid var(--grfq-line); border-radius: var(--grfq-radius); overflow: hidden; }
.gh-std dt, .gh-std dd { margin: 0; padding: 11px 16px; border-top: 1px solid var(--grfq-line); }
.gh-std dt:first-of-type, .gh-std dt:first-of-type + dd { border-top: 0; }
.gh-std dt { font-weight: 800; color: var(--grfq-lime); white-space: nowrap; background: var(--grfq-surface); }
.gh-std dd { color: var(--grfq-text); }
.gh[dir="rtl"] .gh-std dt { text-align: right; }

.gh-regs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.gh-regs li { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; background: var(--grfq-surface); border: 1px solid var(--grfq-line); border-radius: var(--grfq-radius-sm); }
.gh-regs strong { color: #fff; font-size: 14px; unicode-bidi: isolate; }
.gh[dir="rtl"] .gh-regs strong { text-align: right; }
.gh-regs span { color: var(--grfq-muted); font-size: 13px; }

/* market data */
.gh-mk-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.gh-mk-card h3 { font-size: 18px; }
.gh-mk-card p { margin: 0; }
.gh-mk-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 10px; }
.gh-mk-v { font-size: 20px; font-weight: 800; color: var(--grfq-lime); }
.gh-mk-v small { font-size: 12px; font-weight: 600; color: var(--grfq-muted); }
.gh-mk-c { font-size: 13px; font-weight: 700; } .gh-mk-c.is-up { color: var(--grfq-lime); } .gh-mk-c.is-down { color: var(--grfq-err); }
.gh-mk-s { flex-basis: 100%; color: var(--grfq-muted); font-size: 12px; }
.gh-mk-fxrow { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); max-width: 760px; }
.gh-mk-fx { padding: 16px 18px; border: 1px solid var(--grfq-line); border-radius: var(--grfq-radius); background: var(--grfq-surface); }
.gh-mk-fx strong { display: block; margin-bottom: 6px; color: #fff; }

/* forms */
.gh-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.gh-tab { padding: 9px 14px; border-radius: 999px; border: 1px solid var(--grfq-line-strong); background: transparent; color: var(--grfq-text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.gh-tab:hover { border-color: var(--grfq-lime); }
.gh-tab[aria-selected="true"] { background: var(--grfq-lime); border-color: var(--grfq-lime); color: var(--grfq-lime-ink); }
.gh-form { padding: 22px; background: var(--grfq-surface); border: 1px solid var(--grfq-line); border-radius: var(--grfq-radius-lg); }
.gh-form h3 { margin: 0 0 4px; color: #fff; font-size: 18px; }
.gh-form-intro { margin: 0 0 18px; color: var(--grfq-muted); font-size: 14px; }
.gh-fields { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.gh-field { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; }
.gh-field.is-wide { grid-column: 1 / -1; }
.gh-field label { font-size: 13px; font-weight: 600; color: var(--grfq-text); }
.gh input, .gh select, .gh textarea { width: 100%; padding: 11px 12px; border-radius: var(--grfq-radius-sm); border: 1px solid var(--grfq-line-strong);
  background: var(--grfq-bg); color: var(--grfq-text); font: inherit; font-size: 15px; }
.gh select option { background: var(--grfq-bg); color: var(--grfq-text); }
.gh-form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 18px; }
.gh-form-msg { margin: 0; font-size: 13px; }
.gh-form-msg.is-ok { color: var(--grfq-lime); }
.gh-form-msg.is-err { color: var(--grfq-err); }

@media (max-width: 1000px) {
  .gh-phones { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 560px; }
}
@media (max-width: 720px) {
  .gh-sec { padding: 40px 0; }
  .gh-phones { grid-template-columns: repeat(4, 78%); max-width: none; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .gh-phone { scroll-snap-align: start; }
  .gh-rows-head { display: none; }
  .gh-rows-row { grid-template-columns: 1fr; padding: 6px 0; }
  .gh-rows-row > div { padding: 6px 16px; }
  .gh-rows-label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--grfq-muted); text-transform: uppercase; }
  .gh-std { grid-template-columns: 1fr; }
  .gh-std dt { border-top: 1px solid var(--grfq-line); white-space: normal; }
  .gh-std dd { border-top: 0; padding-top: 0; }
  .gh-form { padding: 16px; }
}

/* logos (same rule as rfq-cart.css, repeated so the module also works on a page without the cart stylesheet) */
#galva-home .grfq-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 0 0 20px; text-decoration: none; }
#galva-home .grfq-logos img { display: block; height: 38px; width: auto; max-width: 100%; }
#galva-home .grfq-logos img + img { padding-inline-start: 20px; border-inline-start: 1px solid var(--grfq-line-strong); box-sizing: content-box; }
@media (max-width: 520px) { #galva-home .grfq-logos { gap: 10px 12px; flex-wrap: nowrap; } #galva-home .grfq-logos img { height: 28px; } #galva-home .grfq-logos img + img { padding-inline-start: 12px; } }
