/*
Theme Name: Senthai Tools
Theme URI: https://senthaitools.com/
Author: Senthai
Description: Industrial catalogue theme for SENTHAI carbide snow plow blades, inserts and road maintenance wear parts. Home, collection, product, solution, blog and article templates.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: senthai
*/

/* ---------------------------------------------------------------
   1. Design tokens
   --------------------------------------------------------------- */
:root {
  --st-ink: #0e1418;
  --st-ink-2: #16202a;
  --st-heading: #102a43;
  --st-body: #3c4853;
  --st-muted: #6d7885;
  --st-line: #e2e7ea;
  --st-line-strong: #cfd8de;
  --st-soft: #f4f6f7;
  --st-card: #ffffff;
  --st-accent: #bf6f1c;
  --st-accent-2: #e2a144;
  --st-accent-dark: #9d5811;
  --st-steel: #1d4e6b;
  --st-banner-bg: #0e1418;
  --st-banner-ink: #f3f6f8;
  --st-banner-muted: #b7c3cb;
  --font-head: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1240px;
  --wrap-wide: 1400px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-card: 0 18px 44px rgb(14 20 24 / 8%);
}

/* ---------------------------------------------------------------
   2. Base
   --------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--st-body);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--st-accent-dark);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--st-heading);
  text-decoration: underline;
  text-underline-offset: 3px;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-head);
  color: var(--st-heading);
  line-height: 1.24;
  margin: 0 0 0.5em;
  overflow-wrap: break-word;
}

h1 {
  font-size: clamp(2rem, 3.4vw, 2.85rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 2.2vw, 1.95rem);
  letter-spacing: -0.015em;
}

h3 {
  font-size: 1.2rem;
}

h4 {
  font-size: 1.05rem;
}

p {
  margin: 0 0 1.1em;
}

ul,
ol {
  margin: 0 0 1.2em;
  padding-left: 1.35em;
}

li {
  margin-bottom: 0.4em;
}

blockquote {
  margin: 1.6em 0;
  padding: 18px 24px;
  border-left: 4px solid var(--st-accent);
  background: var(--st-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--st-heading);
  font-size: 1.02rem;
}

code,
pre {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

pre {
  background: var(--st-ink);
  color: #e8eef2;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
}

hr {
  border: 0;
  border-top: 1px solid var(--st-line);
  margin: 2.4em 0;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.st-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--st-accent);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 8px 0;
}

.st-skip:focus {
  left: 0;
  color: #fff;
}

/* ---------------------------------------------------------------
   3. Layout helpers
   --------------------------------------------------------------- */
.st-wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

.st-wrap--wide {
  max-width: var(--wrap-wide);
}

.st-main {
  display: block;
}

.st-section {
  padding: clamp(48px, 5.4vw, 84px) 0;
}

.st-section--soft {
  background: var(--st-soft);
}

.st-section--tight {
  padding: clamp(32px, 3.4vw, 52px) 0;
}

.st-sec-head {
  max-width: 760px;
  margin: 0 auto clamp(28px, 3vw, 46px);
  text-align: center;
}

.st-sec-head--left {
  margin-inline: 0;
  text-align: left;
}

.st-sec-head h2 {
  margin-bottom: 12px;
}

.st-sec-head p {
  color: var(--st-muted);
  font-size: 1.03rem;
  margin: 0;
}

.st-eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--st-accent-dark);
  margin-bottom: 12px;
}

.st-grid {
  display: grid;
  gap: 26px;
}

.st-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.st-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.st-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* ---------------------------------------------------------------
   4. Buttons
   --------------------------------------------------------------- */
.st-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 15px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.st-btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.st-btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.st-btn--accent {
  background: var(--st-accent);
  color: #fff;
}

.st-btn--accent:hover {
  background: var(--st-accent-dark);
  color: #fff;
}

.st-btn--dark {
  background: var(--st-ink);
  color: #fff;
}

.st-btn--dark:hover {
  background: var(--st-ink-2);
  color: #fff;
}

.st-btn--ghost {
  background: rgb(255 255 255 / 6%);
  border-color: rgb(255 255 255 / 34%);
  color: #fff;
}

.st-btn--ghost:hover {
  background: rgb(255 255 255 / 14%);
  color: #fff;
}

.st-btn--outline {
  background: #fff;
  border-color: var(--st-line-strong);
  color: var(--st-heading);
}

.st-btn--outline:hover {
  border-color: var(--st-accent);
  color: var(--st-accent-dark);
}

.st-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* ---------------------------------------------------------------
   5. Topline + header
   --------------------------------------------------------------- */
.st-topline {
  background: var(--st-ink);
  color: #b9c4cc;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 9px 16px;
}

.st-topline a {
  color: #e2a144;
}

.st-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgb(255 255 255 / 97%);
  border-bottom: 1px solid var(--st-line);
  backdrop-filter: blur(10px);
}

.st-header__inner {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 72px;
}

.st-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  font-family: var(--font-head);
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--st-ink);
  text-decoration: none;
  white-space: nowrap;
}

.st-logo:hover {
  text-decoration: none;
  color: var(--st-ink);
}

.st-logo b {
  font-weight: 700;
  color: var(--st-accent);
}

.st-logo em {
  font-style: normal;
  font-weight: 500;
  font-size: 0.68em;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--st-muted);
}

.st-nav {
  margin-left: auto;
}

.st-nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.st-nav li {
  margin: 0;
  position: relative;
}

.st-nav a {
  display: block;
  padding: 10px 12px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #26323c;
  border-radius: 8px;
  white-space: nowrap;
}

.st-nav a:hover,
.st-nav .current-menu-item > a,
.st-nav .current_page_item > a,
.st-nav .current-menu-parent > a,
.st-nav .current_page_parent > a {
  color: var(--st-accent-dark);
  background: #fdf6ec;
  text-decoration: none;
}

.st-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 236px;
  display: block;
  padding: 8px;
  margin: 0;
  background: #fff;
  border: 1px solid var(--st-line);
  border-radius: 12px;
  box-shadow: 0 20px 44px rgb(14 20 24 / 12%);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 90;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.st-nav li:hover > .sub-menu,
.st-nav li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.st-nav .sub-menu a {
  padding: 9px 12px;
  font-size: 0.86rem;
}

.st-header__cta {
  padding: 12px 20px;
  font-size: 0.86rem;
  white-space: nowrap;
}

.st-burger {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--st-line-strong);
  border-radius: 8px;
  font-size: 1.1rem;
  line-height: 1;
  padding: 9px 13px;
  color: var(--st-ink);
  cursor: pointer;
}

/* ---------------------------------------------------------------
   6. Footer
   --------------------------------------------------------------- */
.st-footer {
  background: var(--st-ink);
  color: #a9b4bc;
  font-size: 0.9rem;
  line-height: 1.7;
}

.st-footer__inner {
  width: 100%;
  max-width: var(--wrap-wide);
  margin-inline: auto;
  padding: 58px 24px 0;
}

.st-footer__cols {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
}

.st-footer__logo {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  font-family: var(--font-head);
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
  text-decoration: none;
}

.st-footer__logo b {
  color: var(--st-accent-2);
}

.st-footer__logo em {
  font-style: normal;
  font-weight: 500;
  font-size: 0.68em;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8b959c;
}

.st-footer__logo:hover {
  color: #fff;
  text-decoration: none;
}

.st-footer__lead {
  margin: 16px 0 20px;
  max-width: 40ch;
  color: #98a3aa;
}

.st-footer__contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.st-footer__contact li {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  color: #c9d3da;
}

.st-footer__contact span {
  color: #7b868d;
  min-width: 86px;
}

.st-footer a {
  color: #c9d3da;
  text-decoration: none;
}

.st-footer a:hover {
  color: var(--st-accent-2);
  text-decoration: underline;
}

.st-footer__col h2 {
  font-family: var(--font-head);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--st-accent-2);
  margin: 0 0 16px;
}

.st-footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.st-footer__col li {
  margin: 0;
}

.st-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  border-top: 1px solid rgb(255 255 255 / 9%);
  padding: 20px 0 24px;
  font-size: 0.83rem;
  color: #838e95;
}

/* ---------------------------------------------------------------
   7. Mobile navigation + responsive shell
   --------------------------------------------------------------- */
@media (max-width: 1180px) {
  .st-header__inner {
    flex-wrap: wrap;
    min-height: 0;
    padding-block: 10px;
  }

  .st-burger {
    display: block;
  }

  .st-header__cta {
    order: 2;
    margin-left: 10px;
  }

  .st-nav {
    order: 3;
    width: 100%;
    display: none;
    margin: 0;
  }

  .st-nav.is-open {
    display: block;
  }

  .st-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-top: 1px solid var(--st-line);
    padding-top: 8px;
    margin-top: 8px;
  }

  .st-nav a {
    padding: 12px 4px;
    font-size: 0.95rem;
  }

  .st-nav .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    border-radius: 0;
    padding: 0 0 6px 12px;
    min-width: 0;
  }
}

@media (max-width: 1024px) {
  .st-footer__cols {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .st-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .st-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .st-wrap,
  .st-footer__inner {
    padding-inline: 18px;
  }

  .st-grid--2,
  .st-grid--3,
  .st-grid--4 {
    grid-template-columns: minmax(0, 1fr);
  }

  .st-footer__cols {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .st-btn {
    padding: 14px 22px;
  }
}
