/* ==========================================================================
   THANKGAIN HK — "Global" theme layer (draft 2026-11-15)
   Loaded AFTER styles.css. Aligns thankgain.com with thankgainglobal.com:
   - stone background #F4F4F2, white bands, hairline #E2E2DE
   - Outfit (light/regular headings) + IBM Plex Mono labels
   - square corners, one solid orange CTA, the rest arrow text-links
   Remove this file to roll back to the v4 look.
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --orange: #f97c06;
  --orange-hover: #e06d00;
  --orange-soft: #fff4ea;

  --heading: #1a1a1a;
  --text: #3d3d3d;
  --text-2: #4a4a4a;
  --muted: #6b6b6b;

  --bg: #ffffff;
  --bg-soft: #f4f4f2;
  --stone: #f4f4f2;
  --stone-2: #ececea;
  --line: #e2e2de;
  --line-strong: #d3d3ce;

  --radius: 0px;
  --radius-sm: 0px;

  --font-head: "Outfit", "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
  --font-body: "Outfit", "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}

html[lang="ja"] {
  --font-head: "Outfit", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
  --font-body: "Outfit", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
}

/* 2. Base type ------------------------------------------------------------- */
body {
  background: var(--stone);
  color: var(--text);
  font-size: 15.5px;
}

h1, h2, h3, h4 {
  font-weight: 400;
  letter-spacing: -0.015em;
}

h3, h4 { font-weight: 500; }

h1 em, h2 em {
  color: var(--orange);
  font-style: normal;
  font-weight: 500;
  letter-spacing: -0.025em;
}

strong { font-weight: 500; }

/* mono labels everywhere */
.eyebrow,
.hero-panel span,
.title-number,
.pcba-home-group-title b,
.rfq-teaser-steps b {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.06em;
}

.eyebrow {
  font-size: 12px;
  margin-bottom: 12px;
}

.eyebrow .sep { color: #6b6b6b; }
.eyebrow .soft { color: var(--text-2); }

/* 3. Buttons & links ------------------------------------------------------- */
.button {
  min-height: 44px;
  padding: 0 22px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.button.secondary {
  background: transparent;
  border-color: var(--heading);
  color: var(--heading);
}

.arrow-link,
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.arrow-link::after { content: "→"; color: var(--orange); transition: transform var(--ease); }
.arrow-link:hover,
.text-link:hover { color: var(--orange); }
.arrow-link:hover::after { transform: translateX(3px); }

/* 4. Header ---------------------------------------------------------------- */
.site-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}

.site-nav { font-weight: 400; }

.language-switch a.is-active { color: var(--orange); }

/* 5. Hero (centered, like Global) ----------------------------------------- */
.hero {
  display: block;
  padding: 88px var(--gutter) 80px;
  background: var(--stone);
  text-align: center;
}

.hero-content {
  max-width: 860px;
  margin: 0 auto;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: 46px;
  font-weight: 300;
  line-height: 1.14;
  letter-spacing: -0.02em;
}

.hero h1 span { display: block; }

.hero-copy {
  max-width: 640px;
  margin: 0 auto;
  color: var(--text);
  font-size: 16.5px;
  line-height: 1.65;
}

.hero-actions {
  justify-content: center;
  align-items: center;
  gap: 28px;
  margin-top: 30px;
}

/* operating model → one mono line under the CTAs */
.hero-panel {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 14px;
  margin: 44px auto 0;
  padding: 16px 0 0;
  max-width: 640px;
  background: none;
  border: 0;
  border-top: 1px solid var(--line-strong);
}

.hero-panel span {
  width: 100%;
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 11px;
}

.hero-panel strong,
.hero-panel strong:nth-of-type(2) {
  padding: 0;
  background: none;
  border: 0;
  color: var(--heading);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-panel strong:nth-of-type(2) { color: var(--orange); }

.hero-panel i {
  width: 18px;
  height: 1px;
  background: var(--line-strong);
}

/* 6. Two slim intro rows --------------------------------------------------- */
.global-network,
.positioning {
  padding: 44px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.positioning { background: var(--bg); }

.global-network-content h2,
.positioning h2 {
  font-size: 26px;
  font-weight: 400;
  line-height: 1.22;
}

.global-network-content p:not(.eyebrow),
.positioning .two-column > p {
  color: var(--text);
  font-size: 15.5px;
  line-height: 1.7;
}

/* 7. Capabilities ---------------------------------------------------------- */
.capabilities {
  max-width: none;
  padding: 72px max(var(--gutter), calc((100% - var(--max)) / 2)) 80px;
  background: var(--stone);
}

.capabilities .section-heading {
  margin-bottom: 28px;
  text-align: center;
}

.capabilities .section-heading h2 { font-size: 30px; }

.capability-grid { gap: 20px; }

.category-card,
.category-card:hover {
  background: var(--bg);
  border: 0;
}

.capability-header {
  padding: 22px 24px 16px;
  border-bottom: 0;
}

.capability-title { gap: 6px 14px; }

.title-number {
  font-size: 12px;
  color: var(--orange);
}

.title-main {
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.title-dash { display: none; }

.title-desc {
  flex-basis: 100%;
  order: 4;
  color: var(--muted);
  font-size: 14px;
}

.title-link {
  order: 3;
  color: var(--text-2);
  font-size: 13.5px;
  letter-spacing: 0;
  text-transform: none;
}

.title-link::after { content: " →"; color: var(--orange); }
.title-link:hover { color: var(--orange); }

/* tiles = Global product cards */
.product-thumbnails {
  gap: 14px;
  padding: 4px 24px 24px;
}

.product-thumbnails a,
.product-thumbnails a:hover {
  background: var(--stone);
  border: 0;
}

.product-thumbnails a img {
  background: var(--stone);
  mix-blend-mode: multiply;
  padding: 10px;
}

.product-thumbnails a span {
  border-top: 0;
  padding: 2px 12px 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 400;
  text-align: center;
}

.product-thumbnails a:hover span { color: var(--orange); }

.pcba-home-groups { gap: 0; padding: 0 0 8px; }

.pcba-home-group + .pcba-home-group { border-top: 1px solid var(--line); }

.pcba-home-group-title {
  padding: 18px 24px 4px;
  font-size: 15px;
  font-weight: 500;
}

.pcba-home-group .product-thumbnails { padding-top: 10px; padding-bottom: 20px; }

.pcba-home-group .product-thumbnails a span {
  padding: 4px 10px 12px;
  text-align: center;
}

.pcba-home-group .product-thumbnails a span strong {
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.pcba-home-group .product-thumbnails a span small {
  color: var(--muted);
  font-size: 12px;
}

/* cross-link row inside the Electronics card */
.card-crosslink {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  margin: 0 24px 24px;
  padding: 14px 18px;
  background: var(--orange-soft);
  font-size: 14px;
  color: var(--text);
}

.card-crosslink b {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--orange);
  text-transform: uppercase;
  margin-right: 10px;
}

/* General goods: no "coming soon" — an action panel instead */
.sourcing-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: stretch;
  gap: 14px;
  padding: 4px 24px 24px;
}

.sourcing-panel div {
  padding: 16px 18px;
  background: var(--stone);
}

.sourcing-panel div b {
  display: block;
  margin-bottom: 4px;
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.sourcing-panel div span {
  color: var(--heading);
  font-size: 14.5px;
}

.sourcing-panel .arrow-link {
  align-self: center;
  padding: 0 6px;
  white-space: nowrap;
}

/* 8. Stats: light, big thin numbers --------------------------------------- */
.tg-stats-section {
  padding: 80px 0;
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.tg-stats-inner h2 { font-size: 30px; }

.tg-stats-lead { color: var(--muted); margin-bottom: 36px; }

.tg-stats-grid { gap: 0; }

.tg-stat-card,
.tg-stat-card:hover {
  padding: 8px 16px;
  background: none;
  border: 0;
  border-left: 1px solid var(--line);
  transform: none;
}

.tg-stat-card:first-child { border-left: 0; }
.tg-stat-card::before { display: none; }

.tg-stat-number {
  color: var(--heading);
  font-size: 44px;
  font-weight: 300;
  letter-spacing: -0.02em;
}

.tg-stat-unit { color: var(--orange); font-weight: 400; }

.tg-stat-label {
  margin-top: 10px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* 9. Proof ----------------------------------------------------------------- */
.proof { background: var(--stone); padding: 72px 0; }

.proof h2 { font-size: 28px; }

.proof-list p { border-bottom-color: var(--line-strong); padding: 16px 0; }

.proof-list strong { font-size: 16px; font-weight: 500; }

/* 10. RFQ ------------------------------------------------------------------ */
.rfq-teaser {
  padding: 72px 0;
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.rfq-teaser-card {
  padding: 32px;
  background: var(--stone);
  border: 0;
  border-left: 0;
}

.rfq-teaser-text h2 { font-size: 26px; }

.rfq-teaser-steps li {
  background: var(--bg);
  border: 0;
  font-weight: 400;
}

/* 11. Footer (three columns, like Global) --------------------------------- */
.site-footer {
  display: block;
  padding: 0;
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 32px;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 52px var(--gutter) 40px;
}

.footer-brand img { height: 34px; width: auto; margin-bottom: 14px; }

.footer-brand p { color: var(--text-2); font-size: 15px; max-width: 280px; }

.footer-col h4 {
  margin: 0 0 14px;
  color: var(--heading);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-col a,
.footer-col span {
  display: block;
  margin-bottom: 8px;
  color: var(--text-2);
  font-size: 15px;
}

.footer-col a:hover { color: var(--orange); }

.footer-col .sister { color: var(--orange); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 18px var(--gutter) 26px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.footer-bottom .mono {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-bottom a:hover { color: var(--orange); }

/* 12. Responsive ----------------------------------------------------------- */
@media (max-width: 980px) {
  .hero { padding: 64px var(--gutter) 60px; }
  .hero h1 { font-size: 38px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .sourcing-panel { grid-template-columns: 1fr 1fr 1fr; }
  .sourcing-panel .arrow-link { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 640px) {
  .hero { padding: 48px var(--gutter) 44px; }
  .hero h1 { font-size: 30px; }
  .hero-copy { font-size: 15.5px; }
  .hero-actions { flex-direction: column; gap: 16px; }
  .capabilities { padding-top: 48px; padding-bottom: 56px; }
  .capabilities .section-heading h2,
  .tg-stats-inner h2 { font-size: 24px; }
  .capability-header { padding: 18px 16px 12px; }
  .product-thumbnails { padding: 4px 16px 18px; gap: 10px; }
  .pcba-home-group-title { padding: 14px 16px 2px; }
  .card-crosslink { margin: 0 16px 18px; }
  .sourcing-panel { grid-template-columns: 1fr; padding: 4px 16px 18px; }
  .tg-stats-grid { grid-template-columns: 1fr 1fr; row-gap: 24px; }
  .tg-stat-card:nth-child(3) { border-left: 0; }
  .tg-stat-number { font-size: 34px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; padding-top: 40px; }
}

/* tile label: two clean lines */
.capability-item:not(:has(.pcba-home-groups)) .product-thumbnails a span {
  height: auto;
  min-height: calc(2 * 1.35em);
  margin-bottom: 12px;
  padding-top: 8px;
}

@media (max-width: 640px) {
  .hero h1 { font-size: 28px; }
  .hero .eyebrow .sep { display: none; }
  .hero .eyebrow .soft { display: block; margin-top: 4px; }
}

/* ==========================================================================
   13. Inner pages
   ========================================================================== */
html { background: #ffffff; }

.detail-hero { padding-top: 32px; padding-bottom: 36px; }

.detail-hero h1,
.about-banner h1 {
  font-size: 38px;
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.detail-hero .hero-copy { font-size: 16px; color: var(--text); }

.back-link { color: var(--text-2); font-size: 13.5px; }

/* product cards → Global stone cards */
.featured-products > article,
.featured-products > article:hover,
.fan-group-card,
.fan-group-card:hover {
  background: var(--stone);
  border: 0;
  transform: none;
}

.product-photo,
.fan-group-card img {
  background: var(--stone);
  border-bottom: 0;
}

.product-photo img,
.fan-group-card img { mix-blend-mode: multiply; }

.product-copy h3 {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.product-copy h3 a { color: var(--orange); }
.product-copy h3 a:hover { color: var(--orange-hover); }

.product-copy ul { color: var(--text-2); font-size: 13px; }

.product-detail-link {
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.product-detail-link::after { color: var(--orange); }
.product-detail-link:hover { color: var(--orange); }

.fan-group-body h3 { font-weight: 500; }
.fan-group-count { font-family: var(--font-mono); font-size: 12px; }

/* PCBA catalog */
.pcba-chip-nav { background: rgba(255, 255, 255, 0.97); }

.pcba-chip-nav a {
  background: var(--stone);
  border-color: transparent;
  color: var(--text);
  font-weight: 400;
}

.pcba-chip-nav a small { font-family: var(--font-mono); }

.pcba-chip-nav a:hover,
.pcba-chip-nav a.is-active {
  background: var(--orange-soft);
  border-color: var(--orange);
  color: var(--orange);
}

.pcba-major-title {
  padding-left: 14px;
  border-left-width: 2px;
  font-size: 24px;
  font-weight: 400;
}

.pcba-subcategory-title { font-weight: 500; }
.pcba-subcategory-title small { font-family: var(--font-mono); }

/* text blocks / scope boxes / contact table on stone bands */
.pcba-systems article,
.pcba-grid article,
.pcba-flow div,
.contact-list,
.rfq-flow {
  border-color: var(--line);
}

.contact-list dt,
.rfq-step span {
  font-family: var(--font-mono);
  font-weight: 500;
}

.about-banner .overview-label { font-weight: 500; }

.rfq-flow-header h2 { font-weight: 400; }

.rfq-send-card .button { width: 100%; }

/* product detail */
.product-model { font-family: var(--font-mono); color: var(--orange); }
.product-detail-copy h2 { font-weight: 400; }

@media (max-width: 640px) {
  .detail-hero h1,
  .about-banner h1 { font-size: 28px; }
}
