/*
Theme Name: Hengxin Food Machinery
Description: Single-page product catalogue theme for Hengxin commercial food machinery.
Version: 1.3.6
Text Domain: hengxin-food-machinery
*/

:root {
  --ink: #17211f;
  --muted: #60706c;
  --green: #0b5d4b;
  --green-deep: #073f35;
  --gold: #d8a547;
  --cream: #f5f1e8;
  --white: #fff;
  --line: #dfe7e3;
  --shadow: 0 18px 45px rgba(7, 63, 53, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: Inter, "Segoe UI", Arial, sans-serif; line-height: 1.6; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.eyebrow { margin: 0 0 12px; color: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; line-height: 1.12; }
h1 { max-width: 760px; margin-bottom: 22px; font-size: clamp(42px, 7vw, 78px); letter-spacing: -.045em; }
h2 { margin-bottom: 14px; font-size: clamp(30px, 4vw, 48px); letter-spacing: -.03em; }
p { margin-top: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px; border: 1px solid transparent; border-radius: 999px; background: var(--gold); color: #13201d; font-weight: 800; text-decoration: none; transition: transform .2s, background .2s; }
.btn:hover { transform: translateY(-2px); background: #e5b85f; }
.btn-outline { border-color: rgba(255,255,255,.55); background: transparent; color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,.1); }

.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(255,255,255,.12); background: rgba(7,63,53,.95); color: var(--white); backdrop-filter: blur(14px); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 74px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; background: var(--gold); color: var(--green-deep); font-size: 20px; font-weight: 900; }
.brand-copy strong, .brand-copy small { display: block; }
.brand-copy strong { letter-spacing: .08em; }
.brand-copy small { color: rgba(255,255,255,.68); font-size: 11px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-size: 14px; font-weight: 700; text-decoration: none; }
.nav-links .nav-cta { padding: 9px 15px; border-radius: 999px; background: var(--gold); color: var(--green-deep); }
.language-switcher { max-width: 118px; padding: 8px 28px 8px 10px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; background: var(--green-deep); color: var(--white); font: inherit; font-size: 13px; cursor: pointer; }
html[dir="rtl"] body { direction: rtl; }
html[dir="rtl"] .brand, html[dir="rtl"] .nav-links, html[dir="rtl"] .hero-actions, html[dir="rtl"] .check-list li { flex-direction: row-reverse; }

.hero { position: relative; overflow: hidden; padding: 104px 0 86px; background: radial-gradient(circle at 82% 20%, rgba(216,165,71,.18), transparent 28%), linear-gradient(120deg, #073f35, #0b6b56); color: var(--white); }
.hero::after { position: absolute; right: -130px; bottom: -240px; width: 600px; height: 600px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; content: ""; }
.hero-copy { position: relative; z-index: 1; }
.hero .lead { max-width: 670px; color: rgba(255,255,255,.78); font-size: 19px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 50px; }
.trust-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 760px; border-top: 1px solid rgba(255,255,255,.2); padding-top: 26px; gap: 20px; }
.trust-row strong { display: block; font-size: 21px; }
.trust-row span { color: rgba(255,255,255,.65); font-size: 13px; }

.section { padding: 88px 0; }
.section-soft { background: var(--cream); }
.section-dark { background: var(--green-deep); color: var(--white); }
.section-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 36px; gap: 28px; }
.section-head p:not(.eyebrow) { max-width: 560px; margin-bottom: 0; color: var(--muted); }
.section-dark .section-head p:not(.eyebrow) { color: rgba(255,255,255,.68); }

.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.category { min-height: 180px; padding: 26px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); box-shadow: 0 8px 24px rgba(7,63,53,.04); }
.category span { display: inline-grid; width: 38px; height: 38px; margin-bottom: 30px; place-items: center; border-radius: 10px; background: #e4f1ed; color: var(--green); font-weight: 900; }
.category h3 { margin-bottom: 8px; font-size: 21px; }
.category p { margin-bottom: 0; color: var(--muted); font-size: 14px; }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product-card { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--white); box-shadow: var(--shadow); }
.product-visual { display: grid; width: 100%; aspect-ratio: 4/3; overflow: hidden; place-items: center; border-bottom: 1px solid var(--line); background: #f7faf8; }
.product-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-card:hover .product-visual img { transform: scale(1.025); }
.product-body { padding: 21px; }
.product-body small { display: none; }
.product-body h3 { margin: 0 0 8px; font-size: 20px; }
.product-body p { margin-bottom: 0; color: var(--muted); font-size: 14px; }

.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: 72px; }
.about-card { padding: 20px; border-radius: 28px; background: var(--white); box-shadow: var(--shadow); transform: rotate(-2deg); }
.about-visual { display: grid; min-height: 430px; place-items: center; border-radius: 18px; background: radial-gradient(circle at 68% 25%, rgba(216,165,71,.34), transparent 25%), linear-gradient(145deg, var(--green-deep), var(--green)); color: var(--white); text-align: center; }
.about-visual strong { display: block; font-size: clamp(42px, 7vw, 72px); letter-spacing: .08em; }
.about-visual span { color: rgba(255,255,255,.7); font-size: 13px; font-weight: 800; letter-spacing: .18em; }
.check-list { display: grid; margin: 28px 0 0; padding: 0; gap: 14px; list-style: none; }
.check-list li { display: flex; gap: 12px; }
.check-list li::before { color: var(--gold); content: "✓"; font-weight: 900; }

.contact-card { display: grid; grid-template-columns: 1.3fr .7fr; align-items: center; gap: 40px; padding: 48px; border: 1px solid rgba(255,255,255,.14); border-radius: 26px; background: rgba(255,255,255,.06); }
.contact-card p { max-width: 640px; margin-bottom: 0; color: rgba(255,255,255,.7); }
.contact-actions { display: grid; gap: 12px; }
.contact-number { text-align: center; color: var(--white); font-size: 20px; font-weight: 800; letter-spacing: .02em; }
.whatsapp-qr { display: block; width: 210px; margin: 8px auto 0; padding: 10px; border-radius: 16px; background: var(--white); box-shadow: 0 12px 30px rgba(0,0,0,.18); }
.whatsapp-qr img { width: 100%; height: auto; }

.site-footer { padding: 26px 0; background: #052f28; color: rgba(255,255,255,.62); font-size: 13px; }
.footer-row { display: flex; justify-content: space-between; gap: 20px; }
.floating-wa { position: fixed; right: 22px; bottom: 22px; z-index: 25; display: grid; width: 58px; height: 58px; place-items: center; border-radius: 50%; background: #25d366; color: #062c24; box-shadow: 0 12px 30px rgba(0,0,0,.25); font-size: 25px; font-weight: 900; text-decoration: none; }

@media (max-width: 860px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .trust-row, .category-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-card { grid-template-columns: 1fr; }
  .about-grid { gap: 40px; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 28px, 1160px); }
  .hero { padding: 72px 0 58px; }
  .section { padding: 64px 0; }
  .trust-row, .category-grid, .product-grid { grid-template-columns: 1fr; }
  .section-head, .footer-row { align-items: start; flex-direction: column; }
  .contact-card { padding: 30px 22px; }
  .brand-copy small { display: none; }
  .nav { gap: 10px; }
  .nav-links { gap: 8px; }
  .language-switcher { max-width: 96px; }
}

