/* ============ RYMECH.COM — Industrial Trade Site ============ */
:root {
  --navy-950: #0a1420;
  --navy-900: #0f1b2d;
  --navy-800: #16263c;
  --navy-700: #1f3450;
  --steel-100: #f4f6f8;
  --steel-200: #e4e9ee;
  --steel-400: #9aa8b5;
  --steel-600: #5b6b7b;
  --ink: #17222e;
  --accent: #f26522;
  --accent-dark: #d9531a;
  --accent-soft: rgba(242, 101, 34, 0.12);
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(10, 20, 32, 0.10);
  --font: "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: var(--steel-100); line-height: 1.65; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: min(1180px, 92%); margin: 0 auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 20, 32, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--white); font-weight: 800; font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  font-family: Georgia, serif;
}
.logo-text { color: var(--white); font-weight: 800; font-size: 20px; letter-spacing: 2px; }
.logo-sub { color: var(--accent); font-size: 11px; letter-spacing: 4px; margin-left: 6px; font-weight: 600; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { color: var(--steel-400); font-weight: 600; font-size: 15px; transition: color 0.2s; }
.main-nav a:hover, .main-nav a.active { color: var(--white); }
.nav-cta {
  background: var(--accent); color: var(--white) !important;
  padding: 10px 20px; border-radius: 6px; transition: background 0.2s;
}
.nav-cta:hover { background: var(--accent-dark); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--white); margin: 5px 0; border-radius: 2px; transition: 0.3s; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(242, 101, 34, 0.14), transparent 55%),
    linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--navy-800) 100%);
  color: var(--white);
  padding: 96px 0 110px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ""; 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: 44px 44px;
  pointer-events: none;
}
.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.hero-kicker {
  color: var(--accent); font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; font-size: 13px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.18; font-weight: 800; margin-bottom: 20px; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-sub { color: #c3cedb; font-size: 17px; max-width: 560px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-points { display: flex; gap: 22px; flex-wrap: wrap; color: #9fb2c5; font-size: 14px; font-weight: 600; }

.hero-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px; padding: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.hero-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 22px; }
.stat {
  background: rgba(255, 255, 255, 0.06); border-radius: 10px;
  padding: 14px 10px; text-align: center;
}
.stat strong { display: block; font-size: 26px; color: var(--accent); }
.stat span { font-size: 12px; color: #9fb2c5; }
.hero-lines { display: flex; flex-direction: column; gap: 8px; }
.line {
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid var(--accent);
  border-radius: 6px; padding: 9px 14px;
  font-size: 14px; font-weight: 600; color: #dbe4ee;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 13px 28px; border-radius: 8px;
  font-weight: 700; font-size: 15px; transition: all 0.2s; cursor: pointer; border: none;
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--white); border: 2px solid rgba(255, 255, 255, 0.35); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-outline { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
.btn-outline:hover { background: var(--accent); color: var(--white); }
.btn-lg { padding: 16px 36px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------- Trust bar ---------- */
.trustbar { background: var(--accent); color: var(--white); }
.trustbar-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 22px 0; }
.trust-item { text-align: center; }
.trust-item strong { display: block; font-size: 16px; }
.trust-item span { font-size: 13px; opacity: 0.85; }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-dark { background: var(--navy-900); color: var(--white); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 54px; }
.kicker {
  color: var(--accent); text-transform: uppercase; letter-spacing: 2.5px;
  font-size: 13px; font-weight: 700; margin-bottom: 12px;
}
.section-head h2, .page-hero h1 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; }
.section-sub { color: var(--steel-600); margin-top: 14px; font-size: 16px; }
.section-dark .section-sub { color: #9fb2c5; }

/* ---------- Cards / grid ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--white); border-radius: var(--radius); padding: 30px 26px;
  box-shadow: var(--shadow); transition: transform 0.2s, box-shadow 0.2s;
  display: flex; flex-direction: column; border: 1px solid var(--steel-200);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(10, 20, 32, 0.16); }
.card-icon { font-size: 34px; margin-bottom: 16px; }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--steel-600); font-size: 15px; flex: 1; }
.card-link { color: var(--accent); font-weight: 700; font-size: 14px; margin-top: 16px; }
.card-cta {
  background: var(--navy-900); color: var(--white); border-color: var(--navy-900);
  align-items: flex-start; justify-content: center;
}
.card-cta h3 { color: var(--white); }
.card-cta p { color: #9fb2c5; }
.card-cta:hover { border-color: var(--accent); }

/* ---------- Features (dark section) ---------- */
.feature {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius); padding: 30px 28px;
}
.feature h3 { font-size: 19px; margin-bottom: 10px; }
.feature p { color: #aebccd; font-size: 15px; }

/* ---------- Steps ---------- */
.steps {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px;
}
.step {
  background: var(--white); border-radius: var(--radius); padding: 26px 20px;
  box-shadow: var(--shadow); border: 1px solid var(--steel-200); text-align: center;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  font-weight: 800; font-size: 18px; margin-bottom: 14px;
}
.step h4 { font-size: 16px; margin-bottom: 8px; }
.step p { font-size: 13.5px; color: var(--steel-600); }
.section-dark .step { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.1); }
.section-dark .step h4 { color: var(--white); }
.section-dark .step p { color: #aebccd; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
  color: var(--white); padding: 64px 0;
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-inner h2 { font-size: 26px; margin-bottom: 8px; }
.cta-inner p { color: #aebccd; }

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  background:
    radial-gradient(ellipse at 15% 0%, rgba(242, 101, 34, 0.16), transparent 50%),
    linear-gradient(160deg, var(--navy-950), var(--navy-800));
  color: var(--white); padding: 80px 0;
}
.page-hero .section-sub { color: #aebccd; max-width: 680px; }

/* ---------- Product blocks ---------- */
.product-block { padding: 80px 0; }
.product-alt { background: var(--white); }
.product-inner {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 60px; align-items: center;
}
.product-reverse { direction: rtl; }
.product-reverse > * { direction: ltr; }
.product-text h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 14px; }
.product-text > p { color: var(--steel-600); margin-bottom: 22px; }
.spec-list { margin-bottom: 26px; }
.spec-list li {
  padding: 8px 0 8px 28px; position: relative; color: var(--ink); font-size: 15px;
  border-bottom: 1px dashed var(--steel-200);
}
.spec-list li::before {
  content: "▸"; position: absolute; left: 6px; color: var(--accent); font-weight: 800;
}
.product-visual {
  background: linear-gradient(150deg, var(--navy-900), var(--navy-700));
  border-radius: 18px; min-height: 300px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
}
.pv-icon { font-size: 96px; filter: drop-shadow(0 12px 24px rgba(0,0,0,0.4)); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 40px; align-items: start; }
.contact-form-wrap {
  background: var(--white); border-radius: var(--radius); padding: 40px;
  box-shadow: var(--shadow); border: 1px solid var(--steel-200);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 18px; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; margin-top: 6px; padding: 12px 14px;
  border: 1.5px solid var(--steel-200); border-radius: 8px;
  font-family: inherit; font-size: 15px; background: var(--steel-100);
  transition: border-color 0.2s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--accent); background: var(--white);
}
.form-alt { margin-top: 16px; font-size: 14px; color: var(--steel-600); }
.form-alt a { color: var(--accent); font-weight: 700; }
.contact-aside { display: flex; flex-direction: column; gap: 20px; }
.aside-card {
  background: var(--navy-900); color: var(--white);
  border-radius: var(--radius); padding: 26px;
}
.aside-card h3 { font-size: 17px; margin-bottom: 12px; color: var(--accent); }
.aside-card p, .aside-card li { font-size: 14.5px; color: #c3cedb; margin-bottom: 6px; }
.aside-card a { color: var(--white); font-weight: 600; }
.aside-card ul { list-style: none; }
.aside-card li { padding-left: 18px; position: relative; }
.aside-card li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: var(--steel-400); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.site-footer h4 { color: var(--white); font-size: 15px; margin-bottom: 16px; letter-spacing: 1px; }
.site-footer ul li { margin-bottom: 10px; font-size: 14px; }
.site-footer ul a:hover { color: var(--accent); }
.footer-note { font-size: 14px; margin-top: 16px; max-width: 300px; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding: 20px 0; border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner, .product-inner, .contact-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .trustbar-inner { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .main-nav {
    position: fixed; top: 72px; right: 0; width: 260px; height: calc(100vh - 72px);
    background: var(--navy-950); flex-direction: column; align-items: flex-start;
    padding: 30px 24px; gap: 20px; transform: translateX(100%);
    transition: transform 0.3s; box-shadow: -10px 0 30px rgba(0,0,0,0.4);
  }
  .main-nav.open { transform: translateX(0); }
  .nav-toggle { display: block; }
}
@media (max-width: 600px) {
  .grid-3, .grid-2, .steps, .form-row { grid-template-columns: 1fr; }
  .hero { padding: 64px 0; }
  .section { padding: 60px 0; }
  .product-visual { min-height: 200px; }
  .pv-icon { font-size: 64px; }
}
