/*
Theme Name: Song Song Industrial
Theme URI: https://new.songsong.com.vn/
Author: Song Song
Description: Prototype theme for a cleaner B2B industrial catalogue website.
Version: 0.1.1
Requires at least: 6.5
Tested up to: 6.9
Requires PHP: 8.1
Text Domain: songsong-industrial
*/

:root {
  --ss-ink: #172033;
  --ss-muted: #647083;
  --ss-line: #d8dee8;
  --ss-panel: #ffffff;
  --ss-soft: #f4f6f8;
  --ss-steel: #24425f;
  --ss-blue: #0e5f97;
  --ss-red: #c7192f;
  --ss-red-dark: #9f1426;
  --ss-green: #2c7a55;
  --ss-max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ss-ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.ss-shell {
  width: min(var(--ss-max), calc(100% - 40px));
  margin: 0 auto;
}

.ss-topbar {
  border-bottom: 1px solid var(--ss-line);
  background: #fff;
}

.ss-nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.ss-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.ss-brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ss-red);
  color: var(--ss-red);
  font-size: 18px;
  font-weight: 800;
}

.ss-brand span {
  display: block;
}

.ss-brand small {
  display: block;
  color: var(--ss-muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.ss-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #344054;
  font-size: 14px;
  font-weight: 700;
}

.ss-menu a:hover {
  color: var(--ss-red);
}

.ss-hero {
  position: relative;
  min-height: min(690px, 72vh);
  display: grid;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.88) 42%, rgba(255,255,255,.42) 78%),
    url("https://songsong.com.vn/upload/images/03_products_b.jpg") center / cover no-repeat;
  border-bottom: 1px solid var(--ss-line);
}

.ss-hero-content {
  width: min(780px, 100%);
  padding: 74px 0 86px;
}

.ss-kicker {
  margin: 0 0 18px;
  color: var(--ss-red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ss-hero h1 {
  margin: 0;
  font-size: clamp(44px, 7vw, 76px);
  line-height: .98;
  letter-spacing: 0;
}

.ss-hero p {
  width: min(650px, 100%);
  margin: 22px 0 0;
  color: #344054;
  font-size: 19px;
}

.ss-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.ss-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--ss-red);
  background: var(--ss-red);
  color: #fff;
  font-weight: 800;
}

.ss-button:hover {
  background: var(--ss-red-dark);
}

.ss-button.secondary {
  background: #fff;
  color: var(--ss-red);
}

.ss-button.secondary:hover {
  background: #fff4f5;
}

.ss-band {
  padding: 62px 0;
}

.ss-band.soft {
  background: var(--ss-soft);
}

.ss-page-hero,
.ss-detail-hero {
  padding: 70px 0;
  border-bottom: 1px solid var(--ss-line);
  background: var(--ss-soft);
}

.ss-page-hero h1,
.ss-detail-hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(42px, 6vw, 70px);
  line-height: 1;
  letter-spacing: 0;
}

.ss-page-hero p,
.ss-detail-hero p {
  max-width: 720px;
  margin: 18px 0 0;
  color: #344054;
  font-size: 18px;
}

.ss-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, .65fr);
  gap: 52px;
  align-items: center;
}

.ss-detail-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #fff;
  border: 1px solid var(--ss-line);
}

.ss-copy {
  max-width: 860px;
  color: #344054;
  font-size: 18px;
}

.ss-copy p:first-child {
  margin-top: 0;
}

.ss-section-head {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(280px, .55fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 34px;
}

.ss-section-head h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: 0;
}

.ss-section-head p {
  margin: 0;
  color: var(--ss-muted);
}

.ss-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--ss-line);
  border-bottom: 1px solid var(--ss-line);
}

.ss-metric {
  padding: 24px;
  border-right: 1px solid var(--ss-line);
}

.ss-metric:last-child {
  border-right: 0;
}

.ss-metric strong {
  display: block;
  color: var(--ss-red);
  font-size: 34px;
  line-height: 1;
}

.ss-metric span {
  display: block;
  margin-top: 9px;
  color: var(--ss-muted);
  font-size: 14px;
  font-weight: 700;
}

.ss-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.ss-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.ss-card {
  height: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ss-line);
  background: var(--ss-panel);
  overflow: hidden;
}

.ss-click-card {
  transition: transform .18s ease, border-color .18s ease;
}

.ss-click-card:hover {
  transform: translateY(-2px);
  border-color: #aeb8c7;
}

.ss-card-media {
  display: block;
  width: 100%;
  flex: 0 0 auto;
  aspect-ratio: 4 / 3;
  background: #edf1f5;
  overflow: hidden;
}

.ss-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ss-card-body {
  flex: 1;
  padding: 20px;
}

.ss-card.no-media .ss-card-body {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border-top: 4px solid var(--ss-red);
}

.ss-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0;
}

.ss-card-kind {
  margin: 0 0 9px;
  color: var(--ss-red);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.ss-card p {
  margin: 0;
  color: var(--ss-muted);
  font-size: 15px;
  overflow-wrap: anywhere;
}

.ss-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ss-list li {
  border-left: 3px solid var(--ss-red);
  background: #fff;
  padding: 14px 16px;
  color: #344054;
  font-weight: 700;
}

.ss-principals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 70px;
  align-items: center;
}

.ss-principal {
  min-height: 182px;
  display: grid;
  place-items: center;
  padding: 26px 18px;
  background: #fff;
  text-align: center;
  font-weight: 800;
}

.ss-principal img {
  width: min(100%, 310px);
  max-height: 118px;
  object-fit: contain;
}

.ss-logo-stage {
  min-height: 260px;
  display: grid;
  place-items: center;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--ss-line);
}

.ss-logo-stage img {
  width: min(100%, 420px);
  max-height: 170px;
  object-fit: contain;
}

.ss-principal.tall img {
  max-height: 150px;
}

.ss-principal.wide img {
  width: min(100%, 360px);
}

.ss-process {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 42px;
  align-items: start;
}

.ss-process-title {
  position: sticky;
  top: 20px;
}

.ss-process-title h2 {
  margin: 0 0 14px;
  font-size: 40px;
  line-height: 1.08;
}

.ss-steps {
  display: grid;
  gap: 12px;
}

.ss-step {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--ss-line);
  background: #fff;
}

.ss-step b {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: var(--ss-steel);
  color: #fff;
}

.ss-step h3 {
  margin: 0 0 6px;
  font-size: 19px;
}

.ss-step p {
  margin: 0;
  color: var(--ss-muted);
}

.ss-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.ss-meta-line span,
.ss-meta-line a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--ss-line);
  background: #fff;
  color: var(--ss-steel);
  font-size: 13px;
  font-weight: 800;
}

.ss-downloads {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ss-downloads a {
  display: block;
  padding: 16px 18px;
  border: 1px solid var(--ss-line);
  background: #fff;
  color: var(--ss-steel);
  font-weight: 800;
}

.ss-downloads a:hover {
  color: var(--ss-red);
}

.ss-cta {
  background: var(--ss-steel);
  color: #fff;
}

.ss-cta .ss-section-head p {
  color: #dbe6ef;
}

.ss-footer {
  position: relative;
  z-index: 1;
  padding: 30px 0;
  border-top: 1px solid var(--ss-line);
  background: #fff;
  color: var(--ss-muted);
  font-size: 14px;
}

@media (max-width: 920px) {
  .ss-menu {
    display: none;
  }

  .ss-section-head,
  .ss-detail-grid,
  .ss-process {
    grid-template-columns: 1fr;
  }

  .ss-metrics,
  .ss-grid-3,
  .ss-grid-4,
  .ss-principals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ss-process-title {
    position: static;
  }
}

@media (max-width: 640px) {
  .ss-shell {
    width: min(100% - 28px, var(--ss-max));
  }

  .ss-hero {
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.9) 100%),
      url("https://songsong.com.vn/upload/images/03_products_b.jpg") center / cover no-repeat;
  }

  .ss-hero-content {
    padding: 48px 0 56px;
  }

  .ss-hero h1 {
    font-size: 42px;
  }

  .ss-hero p {
    font-size: 17px;
  }

  .ss-metrics,
  .ss-grid-3,
  .ss-grid-4,
  .ss-list,
  .ss-principals {
    grid-template-columns: 1fr;
  }

  .ss-principal {
    min-height: 150px;
  }

  .ss-principal img {
    max-height: 108px;
  }

  .ss-metric {
    border-right: 0;
    border-bottom: 1px solid var(--ss-line);
  }

  .ss-metric:last-child {
    border-bottom: 0;
  }
}
