/*
Theme Name: Jinduo Industrial
Theme URI: https://example.com/jinduo-industrial
Author: OpenAI Codex
Author URI: https://openai.com
Description: Custom WordPress theme package for the Guangdong Jinduo industrial refrigeration website.
Version: 1.3.0
Text Domain: jinduo-industrial
*/

:root {
  --j-bg: #f7fafc;
  --j-surface: #ffffff;
  --j-surface-muted: #f2f5f8;
  --j-surface-soft: #edf3f8;
  --j-ink: #111827;
  --j-ink-soft: #61728a;
  --j-ink-faint: #98a5b8;
  --j-line: rgba(17, 24, 39, 0.08);
  --j-accent: #2d5bff;
  --j-accent-deep: #173db5;
  --j-accent-soft: rgba(45, 91, 255, 0.12);
  --j-dark: #171b20;
  --j-dark-soft: #20252b;
  --j-shadow-lg: 0 28px 80px rgba(35, 63, 126, 0.09);
  --j-shadow-md: 0 18px 54px rgba(35, 63, 126, 0.08);
  --j-radius-xl: 34px;
  --j-radius-lg: 24px;
  --j-radius-md: 16px;
  --j-content: min(1200px, calc(100vw - 56px));
  --j-nav-h: 96px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--j-ink);
  background:
    radial-gradient(circle at top left, rgba(45, 91, 255, 0.08), transparent 24%),
    linear-gradient(180deg, #f9fbfd 0%, #ffffff 28%, #f7fafc 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

.j-shell {
  width: var(--j-content);
  margin: 0 auto;
}

.j-page-shell {
  padding-top: calc(var(--j-nav-h) + 34px);
}

.j-page-section {
  padding: 56px 0;
}

.j-page-section.j-alt {
  background: linear-gradient(180deg, rgba(242, 245, 248, 0.94), rgba(247, 249, 252, 1));
}

.j-eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 4px 10px;
  background: var(--j-surface-soft);
  color: var(--j-accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.52rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.j-icon {
  width: 1em;
  height: 1em;
  display: block;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.j-site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.07);
  transition: background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.j-site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-color: var(--j-line);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.1);
}

.j-nav-wrap {
  width: min(1380px, calc(100vw - 28px));
  margin: 0 auto;
  min-height: var(--j-nav-h);
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  gap: 20px;
  padding: 0 8px;
}

.j-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 1.08rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  white-space: nowrap;
  justify-self: start;
}

.j-brand-mark {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: linear-gradient(180deg, #84a6ff 0%, var(--j-accent) 100%);
  box-shadow: 0 0 0 9px rgba(45, 91, 255, 0.08);
}

.j-nav-primary {
  display: flex;
  justify-content: center;
  justify-self: center;
  min-width: 0;
}

.j-nav-links,
.j-mobile-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.j-nav-links {
  display: flex;
  align-items: center;
  gap: clamp(22px, 2.4vw, 38px);
  font-size: clamp(0.76rem, 0.7rem + 0.2vw, 0.86rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--j-ink-soft);
  justify-content: center;
  flex-wrap: nowrap;
}

.j-nav-links li,
.j-mobile-nav li {
  margin: 0;
  list-style: none;
}

.j-nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 6px;
  border-radius: 999px;
  transition: color 220ms ease, background-color 220ms ease, transform 220ms ease;
  white-space: nowrap;
}

.j-nav-links a::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 4px;
  height: 2px;
  background: var(--j-accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 220ms ease;
}

.j-nav-links a:hover,
.j-nav-links a.is-active,
.j-nav-links a[aria-current="page"],
.j-nav-links .current-menu-item > a,
.j-nav-links .current_page_item > a,
.j-nav-links .current-menu-ancestor > a {
  color: var(--j-ink);
  background: rgba(45, 91, 255, 0.05);
}

.j-nav-links a:hover::after,
.j-nav-links a.is-active::after,
.j-nav-links a[aria-current="page"]::after,
.j-nav-links .current-menu-item > a::after,
.j-nav-links .current_page_item > a::after,
.j-nav-links .current-menu-ancestor > a::after {
  transform: scaleX(1);
}

.j-nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-self: end;
}

.j-icon-button,
.j-menu-toggle {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: var(--j-ink);
  background: rgba(255, 255, 255, 0.74);
  transition: transform 220ms ease, border-color 220ms ease, background-color 220ms ease;
}

.j-icon-button:hover,
.j-menu-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(45, 91, 255, 0.24);
  background: rgba(255, 255, 255, 0.96);
}

.j-menu-toggle {
  display: none;
}

.j-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 12px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1;
  white-space: nowrap;
  transition: transform 220ms ease, box-shadow 220ms ease, background-color 220ms ease, color 220ms ease, border-color 220ms ease;
}

.j-nav-actions .j-button {
  min-width: 146px;
}

.j-button:hover {
  transform: translateY(-1px);
}

.j-button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--j-accent) 0%, #1943d6 100%);
  box-shadow: 0 18px 34px rgba(45, 91, 255, 0.28);
}

.j-button-dark {
  color: #fff;
  background: #151b24;
  box-shadow: 0 16px 32px rgba(21, 27, 36, 0.18);
}

.j-button-light {
  color: var(--j-accent);
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.j-button-outline {
  color: var(--j-ink);
  border: 1px solid rgba(17, 24, 39, 0.12);
  background: transparent;
}

.j-mobile-panel {
  position: fixed;
  inset: 72px 16px auto;
  z-index: 39;
  padding: 20px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease;
}

.j-mobile-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.j-mobile-panel nav {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.j-mobile-panel nav a {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  font-size: 1rem;
  font-weight: 700;
  color: var(--j-ink-soft);
}

.j-mobile-panel .j-button {
  width: 100%;
  min-height: 42px;
}

.j-hero-title {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(3rem, 7vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.j-lead {
  margin: 0;
  color: var(--j-ink-soft);
  font-size: 1rem;
  line-height: 1.8;
}

.j-split {
  display: grid;
  gap: 34px;
}

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

.j-card {
  background: var(--j-surface);
  box-shadow: var(--j-shadow-md);
}

.j-card.soft {
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(241, 245, 248, 0.96));
}

.j-media {
  overflow: hidden;
  border-radius: 4px;
  background: var(--j-surface);
}

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

.j-kicker {
  margin: 0 0 14px;
  color: var(--j-ink-faint);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.54rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.j-section-title {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.j-section-copy {
  margin: 14px 0 0;
  color: var(--j-ink-soft);
  font-size: 0.9rem;
  line-height: 1.72;
}

.j-link-inline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--j-accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.54rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.j-link-inline .j-icon {
  transition: transform 220ms ease;
}

.j-link-inline:hover .j-icon {
  transform: translateX(4px);
}

.j-footer {
  border-top: 1px solid var(--j-line);
  background: rgba(247, 249, 252, 0.96);
}

.j-footer-wrap {
  width: var(--j-content);
  margin: 0 auto;
  padding: 22px 0 26px;
  display: grid;
  grid-template-columns: minmax(180px, 0.95fr) minmax(280px, 1.3fr) minmax(160px, 0.75fr);
  gap: 16px;
  align-items: start;
}

.j-footer-brand {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.j-footer-note {
  margin-top: 8px;
  color: var(--j-ink-faint);
  font-size: 0.5rem;
  line-height: 1.8;
}

.j-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  align-self: center;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.52rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--j-ink-faint);
}

.j-footer-legal {
  color: var(--j-ink-faint);
  font-size: 0.5rem;
  line-height: 1.7;
  text-align: right;
}

.j-reveal,
.reveal {
  opacity: 1;
  transform: translateY(0);
}

.js-animations .j-reveal,
.js-animations .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 720ms ease, transform 720ms ease;
}

.js-animations .j-reveal.is-visible,
.js-animations .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1220px) {
  .j-nav-primary {
    display: none;
  }

  .j-icon-button,
  .j-nav-actions .j-button {
    display: none;
  }

  .j-menu-toggle {
    display: inline-flex;
  }

  .j-nav-wrap {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

@media (max-width: 980px) {
  .j-shell,
  .j-footer-wrap {
    width: min(1200px, calc(100vw - 36px));
  }

  .j-nav-wrap {
    width: min(1380px, calc(100vw - 22px));
  }

  .j-footer-wrap {
    grid-template-columns: 1fr;
  }

  .j-footer-links,
  .j-footer-legal {
    justify-content: flex-start;
    text-align: left;
  }
}

@media (max-width: 640px) {
  :root {
    --j-content: calc(100vw - 26px);
    --j-nav-h: 82px;
  }

  .j-page-shell {
    padding-top: var(--j-nav-h);
  }

  .j-shell,
  .j-nav-wrap,
  .j-footer-wrap {
    width: var(--j-content);
  }

  .j-split.cols-2 {
    grid-template-columns: 1fr;
  }

  .j-hero-title {
    font-size: clamp(2.8rem, 12vw, 4.8rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js-animations .j-reveal,
  .js-animations .reveal {
    opacity: 1;
    transform: none;
  }
}
