/*
Theme Name: Hongfeng Precision
Theme URI: https://cnc.industryapex.com/
Author: Hongfeng Precision
Description: Lightweight block theme for global precision CNC manufacturing lead generation.
Version: 1.0.5
Requires at least: 6.8
Requires PHP: 8.1
Text Domain: hongfeng-precision
*/

:root {
  --hf-ink: #111316;
  --hf-graphite: #1b1f24;
  --hf-steel: #64707d;
  --hf-silver: #d9dee3;
  --hf-mist: #f3f5f6;
  --hf-white: #ffffff;
  --hf-red: #dc1717;
  --hf-red-dark: #a70c0c;
  --hf-line: rgba(17, 19, 22, 0.12);
  --hf-shadow: 0 24px 70px rgba(17, 19, 22, 0.12);
  --hf-radius: 18px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--hf-white);
  color: var(--hf-ink);
  text-rendering: optimizeLegibility;
}

a {
  text-underline-offset: 0.18em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--hf-red);
  outline-offset: 3px;
}

.hf-site-shell {
  overflow: visible;
}

header.wp-block-template-part {
  position: sticky;
  top: 0;
  z-index: 100;
}

.admin-bar header.wp-block-template-part {
  top: 32px;
}

.hf-site-header {
  position: static;
  border-bottom: 1px solid rgba(17, 19, 22, 0.08);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}

.hf-header-inner {
  min-height: 82px;
}

.hf-brand {
  min-width: 236px;
}

.hf-brand .wp-block-site-logo img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.hf-brand .wp-block-site-title {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: 0.105em;
  line-height: 1.15;
}

.hf-brand .wp-block-site-title a {
  color: var(--hf-ink);
  text-decoration: none;
}

.hf-brand-line {
  margin: 0.2rem 0 0;
  color: var(--hf-steel);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hf-primary-nav {
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.hf-primary-nav a {
  color: var(--hf-ink);
  text-decoration: none;
}

.hf-primary-nav a:hover {
  color: var(--hf-red);
}

.hf-header-cta .wp-block-button__link,
.hf-button-primary .wp-block-button__link {
  border: 1px solid var(--hf-red);
  border-radius: 999px;
  background: var(--hf-red);
  color: var(--hf-white);
  font-weight: 750;
  box-shadow: 0 10px 24px rgba(220, 23, 23, 0.22);
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.hf-header-cta .wp-block-button__link:hover,
.hf-button-primary .wp-block-button__link:hover {
  transform: translateY(-2px);
  background: var(--hf-red-dark);
  box-shadow: 0 14px 30px rgba(220, 23, 23, 0.28);
}

.hf-button-secondary .wp-block-button__link {
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: transparent;
  color: var(--hf-white);
  font-weight: 700;
}

.hf-button-secondary .wp-block-button__link:hover {
  border-color: var(--hf-white);
  background: rgba(255, 255, 255, 0.09);
}

.hf-hero {
  position: relative;
  min-height: 720px;
  padding: clamp(4.8rem, 8vw, 8rem) 24px clamp(4rem, 7vw, 6.5rem);
  background:
    radial-gradient(circle at 72% 26%, rgba(220, 23, 23, 0.13), transparent 26%),
    linear-gradient(130deg, #111316 0%, #1b2026 62%, #0d0f12 100%);
  color: var(--hf-white);
}

.hf-hero::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  content: "";
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.78), transparent 90%);
  pointer-events: none;
}

.hf-hero > .wp-block-group__inner-container,
.hf-hero-grid {
  position: relative;
  z-index: 1;
}

.hf-eyebrow {
  margin: 0 0 1.2rem;
  color: #f1b0b0;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hf-hero h1 {
  max-width: 780px;
  margin-top: 0;
  color: var(--hf-white);
  font-size: clamp(3rem, 6vw, 6.2rem);
  letter-spacing: -0.055em;
  line-height: 0.96;
}

.hf-hero-copy {
  max-width: 700px;
  color: #c7cdd3;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.7;
}

.hf-hero-visual {
  filter: drop-shadow(0 35px 55px rgba(0, 0, 0, 0.42));
}

.hf-trust-row {
  margin-top: 3.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.hf-trust-item {
  color: #e5e9ec;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.035em;
}

.hf-section {
  padding: clamp(4.5rem, 8vw, 7.5rem) 24px;
}

.hf-page-hero {
  padding: clamp(5rem, 10vw, 9rem) 24px clamp(3.5rem, 7vw, 6rem);
  background: linear-gradient(135deg, #111316 0%, #1b1f24 72%, #301b1d 100%);
  color: #ffffff;
}

.hf-page-hero h1 {
  max-width: 980px;
  margin: 0.65rem 0 1.2rem;
  color: #ffffff;
  font-size: clamp(2.8rem, 6.5vw, 6.2rem);
  letter-spacing: -0.045em;
}

.hf-page-hero .hf-section-intro {
  max-width: 780px;
  margin-left: 0;
  color: #cbd1d6;
}

.hf-section-muted {
  background: var(--hf-mist);
}

.hf-section-dark {
  background: var(--hf-graphite);
  color: var(--hf-white);
}

.hf-section-dark h2,
.hf-section-dark h3 {
  color: var(--hf-white);
}

.hf-section-kicker {
  margin-bottom: 0.7rem;
  color: var(--hf-red);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hf-section h2 {
  max-width: 850px;
  margin-top: 0;
  font-size: clamp(2.15rem, 4vw, 4.25rem);
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.hf-section-intro {
  max-width: 760px;
  color: var(--hf-steel);
  font-size: 1.08rem;
  line-height: 1.75;
}

.hf-section-dark .hf-section-intro {
  color: #b8c0c8;
}

.hf-card-grid {
  margin-top: 2.5rem;
}

.hf-card {
  height: 100%;
  padding: clamp(1.45rem, 2.6vw, 2.2rem);
  border: 1px solid var(--hf-line);
  border-radius: var(--hf-radius);
  background: var(--hf-white);
  box-shadow: 0 10px 35px rgba(17, 19, 22, 0.055);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.hf-card:hover {
  transform: translateY(-5px);
  border-color: rgba(220, 23, 23, 0.34);
  box-shadow: var(--hf-shadow);
}

.hf-card-index {
  margin: 0 0 2.4rem;
  color: var(--hf-red);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.hf-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.3rem;
  line-height: 1.25;
}

.hf-card p:last-child {
  margin-bottom: 0;
  color: var(--hf-steel);
  line-height: 1.65;
}

.hf-industry-list {
  margin-top: 2.7rem;
  border-top: 1px solid var(--hf-line);
}

.hf-industry-item {
  margin: 0;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--hf-line);
  font-size: clamp(1.15rem, 2vw, 1.7rem);
  font-weight: 730;
}

.hf-process {
  margin-top: 2.75rem;
  counter-reset: hf-process;
}

.hf-process-step {
  position: relative;
  padding: 1.25rem 1rem 1.25rem 3.3rem;
  border-left: 1px solid var(--hf-line);
  counter-increment: hf-process;
}

.hf-process-step::before {
  position: absolute;
  top: 1.1rem;
  left: 1rem;
  color: var(--hf-red);
  content: "0" counter(hf-process);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.hf-process-step strong {
  display: block;
  margin-bottom: 0.3rem;
}

.hf-application {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.98), rgba(243, 245, 246, 0.96)),
    repeating-linear-gradient(90deg, transparent 0 29px, rgba(17, 19, 22, 0.05) 30px);
}

.hf-application::after {
  position: absolute;
  right: -42px;
  bottom: -58px;
  width: 210px;
  height: 210px;
  border: 24px solid rgba(100, 112, 125, 0.1);
  border-radius: 46px;
  content: "";
  transform: rotate(22deg);
}

.hf-application .hf-label {
  position: relative;
  z-index: 1;
  color: var(--hf-red);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hf-quality-points {
  margin-top: 2.5rem;
}

.hf-quality-point {
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  color: #e8ebed;
}

.hf-stat {
  padding: 1.5rem 0;
  border-top: 1px solid var(--hf-line);
}

.hf-stat strong {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--hf-ink);
  font-size: clamp(2.2rem, 4vw, 4rem);
  letter-spacing: -0.055em;
  line-height: 1;
}

.hf-stat span {
  color: var(--hf-steel);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.035em;
}

.hf-rfq {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(120deg, var(--hf-red) 0%, #ba0f0f 54%, #8d0808 100%);
  color: var(--hf-white);
  box-shadow: 0 34px 80px rgba(167, 12, 12, 0.25);
}

.hf-rfq::after {
  position: absolute;
  top: -65%;
  right: -12%;
  width: 500px;
  height: 500px;
  border: 70px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  content: "";
}

.hf-rfq h2,
.hf-rfq p,
.hf-rfq .wp-block-buttons {
  position: relative;
  z-index: 1;
}

.hf-rfq h2 {
  color: var(--hf-white);
}

.hf-rfq p {
  max-width: 690px;
  color: #ffe2e2;
  font-size: 1.1rem;
}

.hf-rfq .hf-button-primary .wp-block-button__link {
  border-color: var(--hf-white);
  background: var(--hf-white);
  color: var(--hf-red-dark);
  box-shadow: none;
}

.hf-site-footer {
  padding: 4.5rem 24px 2rem;
  background: #0d0f12;
  color: #c6cbd0;
}

.hf-site-footer .wp-block-site-title a,
.hf-site-footer h2,
.hf-site-footer h3 {
  color: var(--hf-white);
}

.hf-site-footer a {
  color: #e1e5e8;
  text-decoration: none;
}

.hf-site-footer a:hover {
  color: var(--hf-white);
  text-decoration: underline;
}

.hf-footer-meta {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #87919a;
  font-size: 0.76rem;
}

.hf-mobile-cta {
  display: none;
}

@media (max-width: 1080px) {
  .hf-header-cta {
    display: none !important;
  }

  .hf-brand {
    min-width: 210px;
  }

  .hf-primary-nav {
    font-size: 0.78rem;
  }
}

@media (max-width: 782px) {
  body {
    padding-bottom: 66px;
  }

  .hf-site-header {
    position: static;
    backdrop-filter: none;
  }

  .admin-bar header.wp-block-template-part {
    top: 46px;
  }

  .hf-header-inner {
    min-height: 68px;
  }

  .hf-brand .wp-block-site-logo img {
    width: 44px;
    height: 44px;
  }

  .hf-brand .wp-block-site-title {
    font-size: 0.78rem;
  }

  .hf-brand-line {
    font-size: 0.58rem;
  }

  .hf-primary-nav .wp-block-navigation__responsive-container.is-menu-open {
    min-height: 100dvh;
    padding: 2rem;
    background: var(--hf-graphite) !important;
    color: var(--hf-white) !important;
  }

  .hf-primary-nav .wp-block-navigation__responsive-container-close {
    color: var(--hf-white);
  }

  .hf-primary-nav .wp-block-navigation__responsive-container.is-menu-open a {
    color: var(--hf-white);
    font-size: 1.15rem;
  }

  .hf-hero {
    min-height: auto;
    padding-top: 4.4rem;
  }

  .hf-hero h1 {
    font-size: clamp(2.5rem, 12vw, 3.4rem);
  }

  .hf-hero .wp-block-buttons {
    align-items: stretch;
    flex-direction: column;
  }

  .hf-hero .wp-block-button,
  .hf-hero .wp-block-button__link {
    width: 100%;
  }

  .hf-trust-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .hf-section {
    padding-right: 20px;
    padding-left: 20px;
  }

  .hf-card {
    min-height: auto;
  }

  .hf-rfq {
    border-radius: 20px;
  }

  .hf-mobile-cta {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 120;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    padding: 7px;
    background: rgba(13, 15, 18, 0.96);
    box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.22);
  }

  .hf-mobile-cta a {
    display: flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--hf-red);
    color: var(--hf-white);
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
  }

  .hf-mobile-cta a:last-child {
    background: #30363d;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
