/* =====================================================================
   YAXIN Industrial Supplies — content.css
   Styles for the three editorial pages: about.html, services.html and
   contact.html. Loaded after base.css on those pages only, so nothing in
   here can leak into the shop, the product pages or the member centre.
   Everything is namespaced to a block that only these pages use.
   ===================================================================== */

/* ===== Page hero ===== */
/* One dark band carries all three page titles, so about / services / contact
   read as siblings rather than three unrelated templates. The art sits behind
   the text and is decorative — hence aria-hidden on the markup. */
.page-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(115deg, #23272d 0%, #3a4048 62%, #565e68 100%);
  color: #fff;
  padding: clamp(44px, 6.5vw, 84px) 0 clamp(40px, 6vw, 72px);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero-kicker {
  display: inline-block;
  padding: 5px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .34);
  font-size: 12.5px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase;
  margin-bottom: 18px;
}
.page-hero h1 {
  font-size: clamp(27px, 4vw, 44px); font-weight: 800; line-height: 1.15;
  max-width: 20ch;
}
.page-hero p {
  font-size: clamp(15px, 1.5vw, 17.5px); line-height: 1.65;
  color: rgba(255, 255, 255, .8);
  max-width: 62ch; margin-top: 16px;
}
.page-hero-art {
  position: absolute; right: 4%; top: 50%; transform: translateY(-50%);
  width: clamp(180px, 22vw, 300px); opacity: .9; pointer-events: none;
}

/* ===== Section furniture ===== */
/* .band is the light-grey interlude that separates two white sections; it is
   applied on the section itself so the background runs edge to edge. */
.section.band { background: var(--bg); }
.section.tight-band { padding: clamp(26px, 4vw, 44px) 0; }

.block-head { max-width: 720px; margin: 0 auto 34px; text-align: center; }
.block-head .eyebrow {
  color: var(--red); font-size: 13px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
}
.block-head h2 {
  font-size: clamp(22px, 3vw, 30px); font-weight: 800;
  margin-top: 6px; line-height: 1.25;
}
.block-head p { color: var(--gray); font-size: 15.5px; line-height: 1.65; margin-top: 12px; }

/* Cards sit in the left-aligned half of the section shell when no .block-head
   is used, so headings and grid always share a left edge. */
.split-body .eyebrow,
.svc-card .eyebrow {
  color: var(--red); font-size: 13px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
}
.split-body h2 { font-size: clamp(21px, 2.6vw, 29px); font-weight: 800; margin: 6px 0 16px; line-height: 1.25; }

/* ===== Two-column split (image ↔ copy) ===== */
.split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(24px, 4vw, 56px); align-items: center;
}
.split.reverse .split-media { order: 2; }

.split-media { position: relative; border-radius: 12px; overflow: hidden; }
.split-media img { width: 100%; height: 100%; min-height: 260px; max-height: 460px; object-fit: cover; display: block; }
/* The plate that names the founding year. Sits inside the photo so the two
   read as one object rather than a caption floating under an image. */
.split-tag {
  position: absolute; left: 16px; bottom: 16px;
  background: rgba(255, 255, 255, .94); border-radius: 9px;
  padding: 10px 16px; line-height: 1.3;
  box-shadow: 0 8px 24px rgba(18, 22, 26, .16);
}
.split-tag b { display: block; color: var(--red); font-size: 16px; font-weight: 800; }
.split-tag span { font-size: 12.5px; color: var(--gray); }

.split-body p { color: #3d444b; font-size: 15.5px; line-height: 1.72; }
.split-body p + p { margin-top: 14px; }

/* Tick lists: the check is drawn in the gap so wrapped lines stay aligned
   with the text, not under the glyph. */
.ticks { margin-top: 20px; }
.ticks li {
  position: relative; padding-left: 28px;
  font-size: 15px; line-height: 1.6; color: var(--dark);
}
.ticks li + li { margin-top: 11px; }
.ticks li::before {
  content: ''; position: absolute; left: 4px; top: 8px;
  width: 11px; height: 6px;
  border-left: 2.2px solid var(--red); border-bottom: 2.2px solid var(--red);
  transform: rotate(-45deg);
}

/* ===== Numbers band ===== */
.stats-band {
  background: var(--bg);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: clamp(30px, 4vw, 48px) 0;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 30px);
}
.stat { text-align: center; }
.stat b {
  display: block; color: var(--red);
  font-size: clamp(24px, 2.9vw, 34px); font-weight: 800;
  letter-spacing: -.5px; line-height: 1.1;
}
/* The unit rides with the figure but must not compete with it. */
.stat b span { font-size: .62em; font-weight: 700; margin-left: 2px; }
.stat > span { display: block; margin-top: 8px; font-size: 13px; color: var(--gray); line-height: 1.4; }

/* ===== Card grids ===== */
.card-grid { display: grid; gap: 20px; }
.card-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid.tight { gap: 16px; }

.card-ico {
  width: 46px; height: 46px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: var(--red-light); color: var(--red);
  margin-bottom: 16px;
}
.card-ico svg { width: 24px; height: 24px; }

.value-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  padding: 24px 22px 26px;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.value-card:hover {
  border-color: #f3c9c7;
  box-shadow: 0 12px 28px rgba(18, 22, 26, .07);
  transform: translateY(-3px);
}
.value-card h3 { font-size: 17.5px; font-weight: 700; margin-bottom: 9px; }
.value-card p { font-size: 14.5px; line-height: 1.68; color: var(--gray); }

/* Compact text-only cards — used for supporting capabilities. */
.mini-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 10px;
  padding: 20px 20px 22px;
}
.mini-card h4 { font-size: 15.5px; font-weight: 700; margin-bottom: 7px; }
.mini-card h4::before {
  content: ''; display: block; width: 22px; height: 3px; border-radius: 2px;
  background: var(--red); margin-bottom: 12px;
}
.mini-card p { font-size: 14px; line-height: 1.65; color: var(--gray); }

/* ===== Certification chips ===== */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip-cert {
  display: inline-flex; align-items: center;
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--white);
  font-size: 13px; font-weight: 600; color: var(--dark); letter-spacing: .2px;
}

/* ===== Services page ===== */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

.svc-card {
  position: relative;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  padding: 26px 24px 28px;
  display: flex; flex-direction: column;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.svc-card:hover {
  border-color: #f3c9c7;
  box-shadow: 0 12px 30px rgba(18, 22, 26, .08);
  transform: translateY(-3px);
}
.svc-ico {
  width: 50px; height: 50px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--red-light); color: var(--red);
  margin-bottom: 16px;
}
.svc-ico svg { width: 25px; height: 25px; }
/* Faint step number in the corner — reads as sequence, not as a heading. */
.svc-num {
  position: absolute; right: 20px; top: 16px;
  font-size: 30px; font-weight: 800; color: #eceff2; letter-spacing: -1px;
}
.svc-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.svc-card > p { font-size: 14.5px; line-height: 1.68; color: var(--gray); }

.mini-ticks { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }
.mini-ticks li {
  position: relative; padding-left: 22px;
  font-size: 13.5px; line-height: 1.55; color: #4a5158;
}
.mini-ticks li + li { margin-top: 9px; }
.mini-ticks li::before {
  content: ''; position: absolute; left: 3px; top: 7px;
  width: 9px; height: 5px;
  border-left: 2px solid var(--red); border-bottom: 2px solid var(--red);
  transform: rotate(-45deg);
}

/* Ordered process. Each step is its own tile; the number is the only thing
   that carries the order, so it is the only thing coloured. */
.process {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px; list-style: none;
}
.step {
  position: relative;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  padding: 22px 22px 24px;
}
.step::before {
  content: ''; position: absolute; left: 0; top: 22px;
  width: 3px; height: 26px; border-radius: 0 3px 3px 0; background: var(--red);
}
.step-num { display: block; font-size: 13px; font-weight: 800; color: var(--red); letter-spacing: 1px; }
.step h4 { font-size: 16px; font-weight: 700; margin: 8px 0 8px; }
.step p { font-size: 14px; line-height: 1.65; color: var(--gray); }

/* ===== CTA band ===== */
.cta-band {
  background: linear-gradient(115deg, #b81a16 0%, #e2211c 58%, #f0563e 100%);
  color: #fff;
  padding: clamp(34px, 4.6vw, 56px) 0;
}
.cta-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 26px; flex-wrap: wrap;
}
.cta-inner h2 { font-size: clamp(20px, 2.6vw, 28px); font-weight: 800; line-height: 1.25; }
.cta-inner p { margin-top: 10px; font-size: 15.5px; line-height: 1.6; color: rgba(255, 255, 255, .88); max-width: 62ch; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-solid {
  display: inline-block; border: 1px solid transparent; border-radius: 6px;
  background: var(--red); color: #fff;
  padding: 13px 28px; font-size: 15px; font-weight: 700; font-family: inherit;
  cursor: pointer;
  transition: background .16s, transform .16s, box-shadow .16s;
}
.btn-solid:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(18, 22, 26, .18); }
.btn-solid:active { transform: translateY(0); }
.btn-solid.wide { display: block; width: 100%; padding: 14px 28px; font-size: 15.5px; }

/* On the red band the filled button would disappear, so it flips to white and
   the outline button becomes the secondary option. */
.cta-band .btn-solid { background: #fff; color: var(--red); }
.cta-band .btn-solid:hover { background: #fff; color: var(--red-dark); }
.btn-line {
  display: inline-block; border: 1px solid rgba(255, 255, 255, .55); border-radius: 6px;
  color: #fff; padding: 13px 26px; font-size: 15px; font-weight: 600;
  transition: background .16s, border-color .16s;
}
.btn-line:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }

/* ===== Contact page ===== */
.contact-grid {
  display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(22px, 3.4vw, 44px); align-items: start;
}

/* Left column stacks three small cards plus one tinted note. */
.contact-info { display: grid; gap: 14px; }
.info-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 11px;
  padding: 20px 20px 22px;
}
.info-card .card-ico { width: 40px; height: 40px; border-radius: 10px; margin-bottom: 13px; }
.info-card .card-ico svg { width: 20px; height: 20px; }
.info-card h3 { font-size: 15.5px; font-weight: 700; margin-bottom: 7px; }
.info-card p { font-size: 14px; line-height: 1.7; color: var(--gray); }
.info-card a { color: var(--red); font-weight: 600; }
.info-card a:hover { text-decoration: underline; }

.info-note {
  background: var(--red-light); border: 1px solid #f6c9c7; border-radius: 11px;
  padding: 18px 20px;
}
.info-note b { display: block; color: var(--red-dark); font-size: 14.5px; font-weight: 700; margin-bottom: 6px; }
.info-note p { font-size: 13.5px; line-height: 1.65; color: #8a2a26; }

/* Right column: the form card. */
.contact-form-wrap {
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  padding: clamp(22px, 3vw, 32px);
}
.form-head h2 { font-size: clamp(20px, 2.4vw, 25px); font-weight: 800; }
.form-head p { font-size: 14px; color: var(--gray); margin: 9px 0 24px; line-height: 1.6; }

/* Two fields side by side on wide screens, stacked as soon as the card gets
   cramped — the pairs are name/email and company/phone. */
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; }
.field .req { color: var(--red); margin-left: 2px; }

.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap input,
.input-wrap textarea,
.select-wrap select {
  width: 100%;
  border: 1px solid var(--line); border-radius: 8px;
  padding: 0 14px; font-family: inherit; font-size: 14.5px; color: var(--dark);
  background: var(--white); outline: none;
  transition: border-color .16s, box-shadow .16s, background .16s;
}
.input-wrap input { height: 46px; }
.input-wrap textarea { height: auto; padding: 12px 14px; line-height: 1.6; resize: vertical; min-height: 132px; }
.input-wrap input::placeholder,
.input-wrap textarea::placeholder { color: #a8aeb4; }
.input-wrap input:hover,
.input-wrap textarea:hover,
.select-wrap select:hover { border-color: #d8dde2; }
.input-wrap input:focus,
.input-wrap textarea:focus,
.select-wrap select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(226, 33, 28, .12);
}

/* Native select needs its arrow drawn, otherwise the OS one ignores the
   border radius and the height. */
.select-wrap { position: relative; }
.select-wrap select { height: 46px; appearance: none; -webkit-appearance: none; padding-right: 42px; cursor: pointer; }
.select-wrap::after {
  content: ''; position: absolute; right: 17px; top: 50%;
  width: 8px; height: 8px; margin-top: -6px;
  border-right: 2px solid var(--gray); border-bottom: 2px solid var(--gray);
  transform: rotate(45deg); pointer-events: none;
}

/* Validation states — same language as the login form. */
.field.invalid .input-wrap input,
.field.invalid .input-wrap textarea,
.field.invalid .select-wrap select { border-color: var(--red); background: #fef7f7; }
.field-err {
  display: none; align-items: flex-start; gap: 5px;
  font-size: 12.5px; color: var(--red); margin-top: 6px; line-height: 1.4;
}
.field.invalid .field-err { display: flex; }
.field-err svg { width: 13px; height: 13px; flex-shrink: 0; margin-top: 2px; }

/* Form-level banner. .ok is the send acknowledgement; .bad is the "fix the
   highlighted fields" summary. */
.form-msg { display: none; border-radius: 8px; padding: 12px 14px; font-size: 13.5px; line-height: 1.5; margin-bottom: 20px; }
.form-msg.show { display: flex; gap: 9px; align-items: flex-start; }
.form-msg svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }
.form-msg.bad { background: var(--red-light); color: var(--red-dark); border: 1px solid #f6c9c7; }
.form-msg.ok { background: #eef8f1; color: #1e7a3c; border: 1px solid #cbe9d5; }

.check {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13.5px; color: var(--gray); line-height: 1.5;
  margin: 2px 0 20px; cursor: pointer;
}
.check input { margin-top: 2px; accent-color: var(--red); flex-shrink: 0; }

.form-foot { font-size: 12.5px; color: #9aa0a6; margin-top: 12px; text-align: center; }

/* ===== Channel cards ===== */
.channel-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 11px;
  padding: 22px 22px 24px;
}
.channel-card h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 8px; }
.channel-card p { font-size: 14px; line-height: 1.65; color: var(--gray); margin-bottom: 14px; }
.channel-card a { color: var(--red); font-weight: 600; font-size: 14.5px; }
.channel-card a:hover { text-decoration: underline; }

/* ===== FAQ ===== */
.faq { border-top: 1px solid var(--line); max-width: 860px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 18px 40px 18px 0;
  font-size: 15.5px; font-weight: 600; color: var(--dark);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-size: 21px; font-weight: 400; color: var(--red); line-height: 1;
}
.faq details[open] summary::after { content: '\2013'; }
.faq summary:hover { color: var(--red); }
.faq p { font-size: 14.5px; line-height: 1.72; color: var(--gray); padding: 0 40px 20px 0; }

/* ===== News page ===== */
/* Cards are deliberately not links: there is no article page behind them yet,
   and a grid of dead "Read more" targets would be worse than a plain listing.
   The date carries the red, the category sits in a neutral pill, and the card
   itself stays flat so nothing suggests it is clickable. */
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.news-card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  padding: 22px 22px 24px;
}
.news-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 13px; }
.news-date { font-size: 12.5px; font-weight: 700; color: var(--red); letter-spacing: .4px; }
.news-tag {
  font-size: 11.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
  color: #6a737c; background: var(--bg); border: 1px solid var(--line);
  border-radius: 999px; padding: 3px 9px;
}
.news-card h3 { font-size: 17px; font-weight: 700; line-height: 1.4; margin-bottom: 10px; }
.news-card p { font-size: 14.5px; line-height: 1.68; color: var(--gray); }
.news-foot {
  margin-top: auto; padding-top: 15px; border-top: 1px dashed var(--line);
  font-size: 12.5px; color: #9aa0a6;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 20px; }
}

@media (max-width: 900px) {
  /* Image stacks above the copy; the .reverse variant keeps the photo on top
     too, because a two-column order swap has nothing to swap once the grid
     collapses to one column. */
  .split { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .split.reverse .split-media { order: 0; }
  .split-media img { min-height: 0; height: 260px; }
  .svc-grid { grid-template-columns: minmax(0, 1fr); }
  .card-grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .page-hero-art { width: 130px; opacity: .45; right: -14px; }
  .page-hero h1, .page-hero p { max-width: none; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid.cols-3 { grid-template-columns: minmax(0, 1fr); }
  .process { grid-template-columns: minmax(0, 1fr); }
  .news-grid { grid-template-columns: minmax(0, 1fr); }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .split-media img { height: 210px; }
  .cta-actions { width: 100%; }
  .cta-actions .btn-solid, .cta-actions .btn-line { flex: 1 1 auto; text-align: center; }
}
