/* ============================================================
   YUSHUNXIN Fertilizer Machinery — Fertilizer Plant Cost
   Design System v2.0 (Industrial B2B)
   ============================================================ */

:root {
  /* Brand palette */
  --green-950: #06281d;
  --green-900: #0b3d2c;
  --green-800: #0e5039;
  --green-700: #12684a;
  --green-600: #15835b;
  --green-500: #1ba26f;
  --green-400: #3cbf8a;
  --green-100: #dcf2e6;
  --green-50: #f0f8f3;

  --amber-600: #c97f16;
  --amber-500: #e8a33d;
  --amber-400: #f2b134;
  --amber-100: #fdf0d9;

  /* Neutrals */
  --ink: #16241d;
  --ink-soft: #2c3a33;
  --muted: #5c6b63;
  --line: #e2e7e3;
  --bg: #f6f8f6;
  --bg-soft: #eef2ef;
  --white: #ffffff;

  /* Type */
  --font-sans: "Inter", "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-display: "Inter", "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;

  /* Radii & shadows */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(10, 40, 28, 0.06);
  --shadow-md: 0 10px 30px rgba(10, 40, 28, 0.10);
  --shadow-lg: 0 24px 60px rgba(6, 40, 29, 0.16);

  --container: 1240px;
  --header-h: 78px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--green-500); }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--green-950); line-height: 1.18; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.22rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
p { color: var(--ink-soft); }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }

/* ---------- Utility ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--green-600); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--amber-500); border-radius: 2px; }
.section { padding: 88px 0; }
.section--alt { background: var(--bg); }
.section--dark { background: var(--green-950); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: #cfe3d8; }
.section-head { max-width: 780px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p { margin-top: 14px; font-size: 1.05rem; }
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.text-muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: 999px;
  font-weight: 700; font-size: 0.98rem; line-height: 1;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  border: 2px solid transparent; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--green-700); color: #fff; box-shadow: 0 8px 20px rgba(18, 104, 74, 0.28); }
.btn-primary:hover { background: var(--green-800); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(18, 104, 74, 0.34); }
.btn-amber { background: var(--amber-500); color: var(--green-950); box-shadow: 0 8px 20px rgba(232, 163, 61, 0.30); }
.btn-amber:hover { background: var(--amber-400); color: var(--green-950); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--green-700); border-color: var(--green-600); }
.btn-ghost:hover { background: var(--green-50); transform: translateY(-2px); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.1); color: #fff; }
.btn-lg { padding: 18px 38px; font-size: 1.05rem; }
.btn-sm { padding: 10px 20px; font-size: 0.86rem; }

/* ---------- Top bar ---------- */
.topbar { background: var(--green-950); color: #cfe3d8; font-size: 0.82rem; padding: 8px 0; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar a { color: #eaf5ef; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 18px; }
.topbar-item { display: inline-flex; align-items: center; gap: 7px; }
.topbar-item svg { width: 14px; height: 14px; opacity: 0.85; }
.lang-switch { display: inline-flex; gap: 4px; align-items: center; }
.lang-switch a { font-size: 0.74rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.22); color: #cfe3d8; }
.lang-switch a:hover { color: #fff; border-color: rgba(255,255,255,0.5); }
.lang-switch a.active { background: var(--amber-500); color: var(--green-950); border-color: var(--amber-500); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 20px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-img { height: 42px; width: auto; flex: none; }
.footer-brand .logo-img { height: 38px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text strong { font-size: 1.06rem; font-weight: 800; color: var(--green-900); letter-spacing: -0.01em; }
.logo-text span { font-size: 0.68rem; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > li { position: relative; }
.main-nav > li > a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; font-weight: 600; font-size: 0.94rem; color: var(--ink);
  border-radius: 8px; transition: color 0.15s ease, background 0.15s ease;
}
.main-nav > li > a:hover, .main-nav > li > a.active { color: var(--green-700); background: var(--green-50); }
.main-nav .has-drop { cursor: pointer; }
.main-nav .chev { width: 12px; height: 12px; opacity: 0.6; transition: transform 0.2s ease; }
.main-nav li:hover .chev, .main-nav li:focus-within .chev { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  width: 340px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-lg); padding: 14px; opacity: 0; visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.main-nav > li:hover .dropdown, .main-nav > li:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(2px); }
.dropdown--mega { width: 760px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dropdown a { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--ink-soft); font-size: 0.9rem; font-weight: 600; }
.dropdown a:hover { background: var(--green-50); color: var(--green-700); }
.dropdown a small { display: block; font-weight: 400; color: var(--muted); margin-top: 2px; font-size: 0.78rem; }
.dropdown .drop-title { grid-column: 1 / -1; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding: 6px 12px 2px; }

.header-cta { display: flex; align-items: center; gap: 14px; }
.header-cta .btn { padding: 12px 22px; font-size: 0.9rem; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--green-900); border-radius: 2px; transition: 0.2s ease; }

/* ---------- Hero ---------- */
.hero { position: relative; background: linear-gradient(135deg, var(--green-950) 0%, var(--green-800) 55%, var(--green-700) 100%); color: #fff; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 85% 15%, rgba(242,177,52,0.16) 0, transparent 45%), radial-gradient(circle at 15% 90%, rgba(28,163,111,0.25) 0, transparent 40%); }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 48px; align-items: center; padding: 96px 0 84px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.18); color: var(--amber-400); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; padding: 8px 16px; border-radius: 999px; margin-bottom: 24px; }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--amber-400); }
.hero .lead { color: #d7e8df; font-size: 1.12rem; max-width: 620px; margin-bottom: 34px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; border-top: 1px solid rgba(255,255,255,0.16); padding-top: 32px; }
.hero-stat strong { display: block; font-size: 1.7rem; font-weight: 800; color: #fff; }
.hero-stat span { font-size: 0.82rem; color: #b7d2c5; }

.hero-visual { position: relative; }
.hero-card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.16); border-radius: var(--r-lg);
  backdrop-filter: blur(8px); padding: 26px;
}
.hero-card .vc-title { display: flex; align-items: center; gap: 10px; font-weight: 700; color: #fff; margin-bottom: 18px; }
.hero-card .vc-title svg { width: 20px; height: 20px; color: var(--amber-400); }
.flow { display: flex; flex-direction: column; gap: 0; }
.flow-step { display: flex; align-items: center; gap: 14px; padding: 9px 0; position: relative; }
.flow-step::before { content: ""; position: absolute; left: 14px; top: 34px; bottom: -6px; width: 2px; background: rgba(255,255,255,0.14); }
.flow-step:last-child::before { display: none; }
.flow-dot { width: 30px; height: 30px; border-radius: 50%; background: var(--green-600); border: 2px solid rgba(255,255,255,0.35); display: grid; place-items: center; font-size: 0.72rem; font-weight: 800; color: #fff; flex: none; }
.flow-step strong { color: #fff; font-size: 0.92rem; }
.flow-step span { display: block; color: #b7d2c5; font-size: 0.8rem; }
.hero-note { margin-top: 16px; font-size: 0.78rem; color: #9fc0b0; }

/* ---------- Marquee / trust strip ---------- */
.trust-strip { background: var(--green-50); border-block: 1px solid var(--line); }
.trust-strip .container { display: flex; flex-wrap: wrap; gap: 14px 44px; justify-content: center; align-items: center; padding: 22px 24px; }
.trust-item { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.9rem; color: var(--green-900); }
.trust-item svg { width: 22px; height: 22px; color: var(--green-600); }

/* ---------- Cards ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 26px; transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease; position: relative; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--green-200, #cfe8dc); }
.card-icon { width: 54px; height: 54px; border-radius: 14px; background: var(--green-50); color: var(--green-700); display: grid; place-items: center; margin-bottom: 18px; }
.card-icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.93rem; }
.card .card-link { margin-top: 14px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.88rem; color: var(--green-700); }
.card .card-link svg { width: 14px; height: 14px; transition: transform 0.2s ease; }
.card:hover .card-link svg { transform: translateX(4px); }
.card .tag { position: absolute; top: 20px; right: 20px; }

.tag { display: inline-block; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; }
.tag-s { background: var(--amber-100); color: var(--amber-600); }
.tag-a { background: var(--green-100); color: var(--green-700); }
.tag-flagship { background: var(--green-700); color: #fff; }

.product-card { display: flex; flex-direction: column; }
.product-card .pc-visual { background: var(--bg); border-radius: 12px; display: grid; place-items: center; padding: 22px; margin-bottom: 18px; min-height: 150px; }
.product-card .pc-visual svg { width: 120px; height: 90px; }
.product-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.product-card .pc-meta { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; }
.product-card .pc-meta span { font-size: 0.78rem; color: var(--muted); font-weight: 600; }

/* ---------- Process stepper ---------- */
.process { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; counter-reset: step; }
.process-step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px 18px; }
.process-step::after { content: ""; position: absolute; top: 50%; right: -12px; width: 14px; height: 2px; background: var(--amber-500); }
.process-step:last-child::after { display: none; }
.process-num { width: 34px; height: 34px; border-radius: 50%; background: var(--green-700); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 0.9rem; margin-bottom: 14px; }
.process-step h4 { font-size: 0.98rem; margin-bottom: 8px; }
.process-step p { font-size: 0.85rem; }

/* ---------- Feature list ---------- */
.feature-list { display: grid; gap: 16px; }
.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature .f-check { width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--green-100); color: var(--green-700); display: grid; place-items: center; margin-top: 2px; }
.feature .f-check svg { width: 14px; height: 14px; }
.feature strong { color: var(--green-950); }
.feature p { font-size: 0.92rem; }

/* ---------- Split section ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-visual { background: var(--green-50); border-radius: var(--r-lg); padding: 40px; display: grid; place-items: center; min-height: 360px; }
.split-visual svg { width: 100%; max-width: 460px; height: auto; }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { text-align: left; padding: 16px 20px; font-size: 0.94rem; }
th { background: var(--green-900); color: #fff; font-weight: 700; font-size: 0.86rem; letter-spacing: 0.02em; }
tbody tr { border-bottom: 1px solid var(--line); }
tbody tr:last-child { border-bottom: 0; }
tbody tr:nth-child(even) { background: var(--bg); }
td .price { font-weight: 800; color: var(--green-800); white-space: nowrap; }

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: 860px; margin-inline: auto; display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.faq-item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; cursor: pointer; font-weight: 700; color: var(--green-950); font-size: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { width: 18px; height: 18px; color: var(--green-600); transition: transform 0.25s ease; flex: none; }
.faq-item[open] summary svg { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 24px 22px; color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Cases ---------- */
.case-card { display: flex; flex-direction: column; }
.case-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 16px; }
.case-flag { font-size: 0.8rem; font-weight: 700; color: var(--green-700); display: inline-flex; align-items: center; gap: 7px; }
.case-flag svg { width: 16px; height: 16px; }
.case-capacity { font-size: 0.78rem; color: var(--muted); font-weight: 600; }
.case-card h3 { margin-bottom: 10px; font-size: 1.08rem; }
.case-card .highlights { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.chip { font-size: 0.76rem; font-weight: 600; color: var(--green-800); background: var(--green-50); border: 1px solid var(--green-100); padding: 5px 11px; border-radius: 999px; }
.case-result { font-size: 0.9rem; color: var(--ink-soft); border-top: 1px dashed var(--line); padding-top: 14px; margin-top: auto; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; background: linear-gradient(120deg, var(--green-900), var(--green-700)); color: #fff; border-radius: var(--r-lg); padding: 64px; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -60px; top: -60px; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(242,177,52,0.28), transparent 65%); }
.cta-band h2 { color: #fff; max-width: 640px; margin-bottom: 16px; }
.cta-band p { color: #d7e8df; max-width: 620px; margin-bottom: 30px; }
.cta-band .cta-actions { display: flex; gap: 14px; flex-wrap: wrap; position: relative; z-index: 2; }

/* ---------- Form ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-md); padding: 40px; }
.form-card h3 { margin-bottom: 6px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 0.85rem; font-weight: 700; color: var(--green-950); }
.form-group label .req { color: #d64545; }
.form-group input, .form-group select, .form-group textarea {
  font-family: inherit; font-size: 0.95rem; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 13px 15px;
  background: var(--bg); transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease; width: 100%;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--green-500); background: #fff; box-shadow: 0 0 0 4px rgba(27,162,111,0.12);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-hint { font-size: 0.76rem; color: var(--muted); }
.form-note { font-size: 0.8rem; color: var(--muted); margin-top: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-950); color: #b7d2c5; padding: 72px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 52px; }
.footer-brand .logo-text strong { color: #fff; }
.footer-brand p { color: #9fc0b0; font-size: 0.9rem; margin: 18px 0 22px; max-width: 320px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,0.08); display: grid; place-items: center; color: #fff; transition: background 0.2s ease; }
.footer-social a:hover { background: var(--green-600); }
.footer-social svg { width: 17px; height: 17px; }
.footer-col h4 { color: #fff; font-size: 0.95rem; margin-bottom: 18px; letter-spacing: 0.02em; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: #b7d2c5; font-size: 0.9rem; transition: color 0.15s ease; }
.footer-col a:hover { color: var(--amber-400); }
.footer-contact li { display: flex; gap: 11px; align-items: flex-start; font-size: 0.9rem; margin-bottom: 14px; }
.footer-contact svg { width: 17px; height: 17px; color: var(--amber-400); flex: none; margin-top: 3px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.10); padding: 22px 0; font-size: 0.82rem; color: #8fb0a0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Page hero (interior) ---------- */
.page-hero { background: linear-gradient(135deg, var(--green-950), var(--green-800)); color: #fff; padding: 74px 0 66px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(242,177,52,0.22), transparent 65%); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero .crumbs { display: flex; gap: 8px; align-items: center; font-size: 0.82rem; color: #9fc0b0; margin-bottom: 22px; }
.page-hero .crumbs a { color: #cfe3d8; }
.page-hero .crumbs a:hover { color: var(--amber-400); }
.page-hero h1 { color: #fff; max-width: 820px; margin-bottom: 16px; }
.page-hero .lead { color: #d7e8df; max-width: 760px; font-size: 1.06rem; }
.page-hero .hero-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ---------- Breadcrumb on light ---------- */
.crumbs-light { display: flex; gap: 8px; font-size: 0.82rem; color: var(--muted); margin-bottom: 26px; }
.crumbs-light a { color: var(--green-700); }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 34px; }
.tab-btn { padding: 11px 22px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; font-size: 0.9rem; color: var(--muted); transition: 0.18s ease; }
.tab-btn:hover { border-color: var(--green-500); color: var(--green-700); }
.tab-btn.active { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn 0.35s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Spec table ---------- */
.spec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.spec-item { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; }
.spec-item strong { display: block; color: var(--green-900); margin-bottom: 6px; font-size: 0.95rem; }
.spec-item span { font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- Module list ---------- */
.module-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.module-link { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; transition: 0.2s ease; color: var(--ink); font-weight: 700; font-size: 0.95rem; }
.module-link:hover { border-color: var(--green-500); box-shadow: var(--shadow-sm); transform: translateY(-3px); color: var(--green-700); }
.module-link svg { width: 22px; height: 22px; color: var(--green-600); flex: none; }
.module-link small { display: block; font-weight: 400; color: var(--muted); font-size: 0.8rem; margin-top: 3px; }

/* ---------- Sticky inquiry ---------- */
.sticky-cta { position: fixed; right: 22px; bottom: 22px; z-index: 90; display: flex; flex-direction: column; gap: 12px; }
.sticky-cta a { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; box-shadow: var(--shadow-lg); transition: transform 0.2s ease; }
.sticky-cta a:hover { transform: scale(1.08); }
.sticky-cta .wa { background: #25d366; color: #fff; }
.sticky-cta .inq { background: var(--green-700); color: #fff; }
.sticky-cta svg { width: 26px; height: 26px; }

/* ---------- Cost estimator ---------- */
.est-shell { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 34px; align-items: start; }
.est-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 30px; }
.est-card h3 { margin-bottom: 6px; }
.est-card .est-sub { color: var(--muted); font-size: 0.9rem; margin-bottom: 22px; }
.est-label { display: block; font-size: 0.82rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green-700); margin: 22px 0 12px; }
.est-label:first-child { margin-top: 0; }
.route-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.route-opt { text-align: left; background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px; padding: 14px; cursor: pointer; transition: 0.18s ease; }
.route-opt:hover { border-color: var(--green-400); }
.route-opt.active { border-color: var(--green-600); background: var(--green-50); box-shadow: 0 0 0 3px rgba(27,162,111,0.12); }
.route-opt strong { display: block; font-size: 0.92rem; color: var(--green-950); }
.route-opt span { display: block; font-size: 0.78rem; color: var(--muted); margin-top: 3px; }
.route-opt .badge-mini { display: inline-block; font-size: 0.66rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--amber-600); background: var(--amber-100); border-radius: 999px; padding: 3px 9px; margin-bottom: 6px; }
.est-select { width: 100%; font-family: inherit; font-size: 0.95rem; border: 1.5px solid var(--line); border-radius: 10px; padding: 13px 15px; background: var(--bg); color: var(--ink); }
.est-select:focus { outline: none; border-color: var(--green-500); box-shadow: 0 0 0 4px rgba(27,162,111,0.12); background: #fff; }
.est-result { position: sticky; top: 96px; }
.est-range { display: flex; align-items: baseline; gap: 10px; margin: 10px 0 4px; }
.est-range strong { font-size: 1.9rem; font-weight: 800; color: var(--green-800); letter-spacing: -0.02em; }
.est-range .per { color: var(--muted); font-weight: 600; }
.est-bar { height: 10px; border-radius: 999px; background: var(--bg-soft); overflow: hidden; margin: 10px 0 6px; }
.est-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--green-600), var(--amber-500)); width: 0; transition: width 0.5s ease; }
.est-meta { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--muted); }
.est-equip { margin-top: 20px; border-top: 1px dashed var(--line); padding-top: 16px; }
.est-equip h4 { font-size: 0.9rem; margin-bottom: 10px; }
.est-equip li { display: flex; justify-content: space-between; gap: 12px; font-size: 0.86rem; padding: 5px 0; color: var(--ink-soft); }
.est-equip li b { color: var(--green-800); white-space: nowrap; }
.est-note { margin-top: 14px; font-size: 0.78rem; color: var(--muted); background: var(--amber-100); border-radius: 10px; padding: 12px 14px; }
.est-cta { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.est-empty { color: var(--muted); padding: 26px 0; text-align: center; }
@media (max-width: 900px) {
  .est-shell { grid-template-columns: 1fr; }
  .est-result { position: static; }
  .route-grid { grid-template-columns: 1fr; }
}

/* ---------- Animations ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; padding: 64px 0 56px; }
  .hero-visual { max-width: 640px; }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .dropdown--mega { width: 640px; }
}
@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-cta .btn { display: none; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .topbar-right { display: none; }
  .section { padding: 64px 0; }
  .cta-band { padding: 44px 30px; }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .process-step::after { display: none; }
  .page-hero { padding: 54px 0; }
  .form-card { padding: 26px 20px; }
}

/* Mobile drawer */
.mobile-drawer {
  position: fixed; inset: 0; z-index: 200; background: rgba(6,40,29,0.5);
  opacity: 0; visibility: hidden; transition: 0.25s ease; overflow: hidden;
}
.mobile-drawer.open { opacity: 1; visibility: visible; }
.mobile-drawer .drawer-panel {
  position: absolute; right: 0; top: 0; height: 100%; width: min(420px, 92vw);
  background: #fff; padding: 26px; overflow-y: auto;
  transform: translateX(100%); transition: transform 0.3s ease;
}
.mobile-drawer.open .drawer-panel { transform: none; }
.drawer-panel .drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.drawer-close { background: none; border: 0; font-size: 1.6rem; color: var(--ink); line-height: 1; }
.drawer-nav a { display: block; padding: 13px 4px; font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--line); font-size: 1rem; }
.drawer-nav a:hover { color: var(--green-700); }
.drawer-nav .dn-group { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding: 18px 4px 6px; }
.drawer-cta { margin-top: 22px; display: grid; gap: 12px; }

/* ---------- RTL ---------- */
html[dir="rtl"] body { text-align: right; }
html[dir="rtl"] .header-inner, html[dir="rtl"] .topbar .container,
html[dir="rtl"] .footer-grid, html[dir="rtl"] .footer-bottom,
html[dir="rtl"] .hero-inner, html[dir="rtl"] .split, html[dir="rtl"] .case-top {
  direction: rtl;
}
html[dir="rtl"] .main-nav .dropdown { left: auto; right: 50%; transform: translateX(50%); }
html[dir="rtl"] .main-nav > li:hover .dropdown { transform: translateX(50%) translateY(2px); }
html[dir="rtl"] .eyebrow::before { order: 2; }
html[dir="rtl"] .card-link svg, html[dir="rtl"] .btn svg { transform: scaleX(-1); }
html[dir="rtl"] .card:hover .card-link svg { transform: translateX(-4px) scaleX(-1); }
html[dir="rtl"] .process-step::after { right: auto; left: -12px; }
html[dir="rtl"] .sticky-cta { right: auto; left: 22px; }
html[dir="rtl"] .form-card, html[dir="rtl"] .est-card { text-align: right; }
html[dir="rtl"] .topbar-right, html[dir="rtl"] .header-cta { flex-direction: row-reverse; }

/* ---------- Deep-detail components ---------- */
.callout { border-left: 4px solid var(--amber-500); background: var(--amber-100); border-radius: 0 var(--r-md) var(--r-md) 0; padding: 20px 22px; }
html[dir="rtl"] .callout { border-left: 0; border-right: 4px solid var(--amber-500); border-radius: var(--r-md) 0 0 var(--r-md); }
.callout h4 { color: var(--green-950); margin-bottom: 8px; }
.callout p { font-size: 0.92rem; }
.check-list { display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.94rem; color: var(--ink-soft); }
.check-list .f-check { margin-top: 2px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.toc a { font-size: 0.82rem; font-weight: 700; color: var(--green-700); background: var(--green-50); border: 1px solid var(--green-100); padding: 7px 14px; border-radius: 999px; transition: 0.15s ease; }
.toc a:hover { background: var(--green-700); color: #fff; }
.section-anchor { scroll-margin-top: 96px; }
.why-grid .card { background: var(--white); }
.budget-note { font-size: 0.8rem; color: var(--muted); margin-top: 10px; }
.model-quote { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; }
.model-quote label { display: block; font-weight: 800; font-size: 0.9rem; color: var(--green-950); margin-bottom: 10px; }
.model-quote-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.model-quote-row select { flex: 1 1 260px; font-family: inherit; font-size: 0.9rem; border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--bg); color: var(--ink); }
.model-quote-row select:focus { outline: none; border-color: var(--green-500); }
.spare-picker { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; }
.spare-pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.spare-pick { display: flex; gap: 10px; align-items: flex-start; background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; transition: 0.15s ease; }
.spare-pick:hover { border-color: var(--green-400); }
.spare-pick:has(input:checked) { border-color: var(--green-600); background: var(--green-50); box-shadow: 0 0 0 3px rgba(27,162,111,0.12); }
.spare-pick input { margin-top: 4px; accent-color: var(--green-600); width: 16px; height: 16px; }
.spare-pick span { display: flex; flex-direction: column; }
.sp-pick-label { display: flex; gap: 10px; align-items: flex-start; flex: 1; cursor: pointer; }
.spare-pick strong { font-size: 0.9rem; color: var(--green-950); }
.spare-pick small { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }
.spare-pick .sp-stock { align-self: flex-start; font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; padding: 3px 9px; border-radius: 999px; margin-top: 6px; }
.spare-pick .sp-stock.in { color: var(--green-700); background: var(--green-100); }
.spare-pick .sp-stock.req { color: var(--amber-600); background: var(--amber-100); }
.spare-qty { width: 62px; text-align: center; border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 4px; font-family: inherit; font-size: 0.9rem; align-self: center; }
.spare-qty:focus { outline: none; border-color: var(--green-500); }

/* scroll progress */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; background: linear-gradient(90deg, var(--green-600), var(--amber-500)); width: 0; z-index: 300; }

/* back to top */
.to-top { position: fixed; right: 22px; bottom: 92px; width: 44px; height: 44px; border-radius: 50%; background: var(--green-700); color: #fff; border: 0; display: grid; place-items: center; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(10px); transition: 0.25s ease; z-index: 90; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 20px; height: 20px; }
html[dir="rtl"] .to-top { right: auto; left: 22px; }

/* mobile bottom CTA */
.mobile-cta { display: none; }
@media (max-width: 900px) {
  .mobile-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 85; }
  .mobile-cta a { padding: 13px; border-radius: 999px; text-align: center; font-weight: 800; font-size: 0.9rem; }
  .mobile-cta .m-cta-wa { background: #25d366; color: #fff; }
  .mobile-cta .m-cta-q { background: var(--green-700); color: #fff; }
  .sticky-cta { display: none; }
  .to-top { bottom: 86px; }
}

/* stat counters */
.hero-stat strong { font-variant-numeric: tabular-nums; }

.split-visual { position: relative; }
.ai-badge { position: absolute; top: 14px; right: 14px; z-index: 2; background: var(--amber-100); color: var(--amber-600); }

.about-gallery figure { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.about-gallery img { width: 100%; height: 150px; object-fit: cover; }
.about-gallery figcaption { padding: 10px 12px; font-size: 0.8rem; font-weight: 700; color: var(--green-900); }
.case-photo { width: 100%; max-height: 240px; object-fit: cover; border-radius: 12px; margin-bottom: 12px; }
.case-photo-lg { max-height: 420px; margin: 0 0 26px; }
.case-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 10px; }
