/* ==========================================================
   HAMMER SALT — OFFICIAL INDUSTRIAL BRAND THEME / V3
   Brand colors are intentionally restrained. Red and yellow
   are used as accents only; graphite and warm white dominate.
   ========================================================== */
:root {
  --brand-red: #a62228;
  --brand-red-deep: #7f1d22;
  --brand-yellow: #b99a24;
  --brand-yellow-soft: #e7ddb1;
  --graphite: #1a1c1e;
  --graphite-2: #24272a;
  --steel: #646a70;
  --steel-soft: #8b9196;
  --paper: #f6f5f1;
  --paper-2: #efeee9;
  --line-official: #dcd9d0;
  --white: #ffffff;
}

html { background: var(--paper); }
body {
  background: var(--paper) !important;
  color: #202326;
  font-family: "Vazirmatn", "Vazir", Tahoma, Arial, sans-serif !important;
}
html[lang="fa"] body, html[lang="ar"] body { font-family: "Vazirmatn", "Vazir", Tahoma, Arial, sans-serif !important; }
.display-font { font-family: "Vazirmatn", "Vazir", Tahoma, sans-serif !important; letter-spacing: -.03em; }
body::before { opacity: .018; }
::selection { background: rgba(185,154,36,.24); color:#161718; }

/* Header / navigation */
.glass {
  background: rgba(250,250,247,.92) !important;
  border-color: rgba(207,204,195,.78) !important;
  box-shadow: 0 12px 42px rgba(24,26,28,.07) !important;
}
.header-shell { position:relative; }
.header-shell::before {
  content:""; position:absolute; inset-inline:22px; top:-1px; height:2px; border-radius:0 0 8px 8px;
  background: linear-gradient(90deg, transparent 0 5%, var(--brand-red) 5% 34%, #343638 34% 70%, var(--brand-yellow) 70% 94%, transparent 94% 100%);
  opacity:.82;
}
.brand-logo {
  width:48px; height:48px; flex:0 0 auto; display:grid; place-items:center; overflow:hidden;
  border:1px solid #dedbd2; border-radius:12px; background:#fff; padding:3px;
  box-shadow:0 4px 13px rgba(23,25,27,.08);
}
.brand-logo img { display:block; width:100%; height:100%; object-fit:contain; }
.brand-logo.footer-logo { width:58px; height:58px; border-color:rgba(255,255,255,.12); box-shadow:none; }
.brand-link strong { color:#202224 !important; letter-spacing:.14em !important; }
.nav-link::after { background: var(--brand-red) !important; height:2px; }
.nav-link.active { color:var(--graphite) !important; }
.language-trigger { background:#fbfbf8 !important; border-color:#dedbd2 !important; color:#45494d !important; }
.language-trigger:hover { border-color:#c9bb7d !important; }
.header-phone { background:var(--graphite) !important; box-shadow:0 7px 18px rgba(20,22,24,.14) !important; }
.mobile-toggle { border-color:#d9d6ce !important; background:#fbfbf8 !important; }
.mobile-nav-link.active { color:var(--brand-red) !important; background:#f4f0e5 !important; }
.lang-option.active { border-color:#c2ad52 !important; background:#f7f3e6 !important; color:#5f4d0d !important; }
.mobile-call { background:var(--graphite) !important; }

/* General surfaces */
.soft-card {
  background:#fbfbf9 !important;
  border-color:#dedbd3 !important;
  box-shadow:0 13px 34px rgba(25,27,29,.055) !important;
}
.soft-card-hover:hover {
  transform:translateY(-4px) !important;
  border-color:#cfc5a3 !important;
  box-shadow:0 18px 42px rgba(25,27,29,.09) !important;
}
[class~="rounded-[30px]"], [class~="rounded-[32px]"], [class~="rounded-[36px]"], [class~="rounded-[40px]"] { border-radius:24px !important; }
.section-title { color:#202326 !important; }
.section-copy { color:#666c71 !important; }
.kicker { color:var(--brand-red-deep) !important; letter-spacing:.055em; }
.kicker::before { background:var(--brand-yellow) !important; width:34px; }

/* Buttons */
.btn-primary {
  color:#fff !important;
  background:linear-gradient(135deg,#1c1e20,#2b2e31) !important;
  border:1px solid #1a1c1e;
  border-radius:13px !important;
  box-shadow:0 8px 22px rgba(21,23,25,.16) !important;
}
.btn-primary:hover { transform:translateY(-2px); border-color:#9b8425; box-shadow:0 12px 26px rgba(21,23,25,.2) !important; }
.btn-secondary {
  color:#2a2d30 !important; background:#fafaf7 !important; border-color:#d7d4cb !important; border-radius:13px !important;
}
.btn-secondary:hover { border-color:#b6a256 !important; background:#fff !important; }

/* Hero: official / industrial rather than promotional */
.hero-mesh {
  background:
    linear-gradient(rgba(40,42,44,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(40,42,44,.028) 1px, transparent 1px),
    radial-gradient(circle at 84% 19%, rgba(166,34,40,.045), transparent 25%),
    radial-gradient(circle at 12% 26%, rgba(185,154,36,.07), transparent 25%),
    linear-gradient(135deg,#faf9f5 0%,#f0efea 52%,#fafaf8 100%) !important;
  background-size:48px 48px,48px 48px,auto,auto,auto !important;
}
.hero-orbit { border-color:rgba(185,154,36,.22) !important; }
.hero-orbit::before { border-color:rgba(32,35,38,.09) !important; }
.hero-orbit::after { border-color:rgba(166,34,40,.13) !important; }
.salt-particle { background:rgba(255,255,255,.9) !important; box-shadow:0 3px 10px rgba(40,42,44,.1) !important; }
.product-stage::before {
  background:radial-gradient(circle,rgba(255,255,255,.98) 0 28%,rgba(185,154,36,.11) 29%,rgba(49,52,54,.04) 51%,transparent 72%) !important;
}
.product-stage::after { background:rgba(26,28,30,.14) !important; }
.hero-mesh h1 { color:#202326 !important; }
.brand-gradient-text {
  background:linear-gradient(90deg,var(--brand-red-deep),#413d2b 48%,var(--graphite)) !important;
  -webkit-background-clip:text !important; background-clip:text !important; color:transparent !important;
}

/* Industrial iconography / status */
.icon-box { background:#f0ede2 !important; color:#776419 !important; border-color:#dbd1a9 !important; border-radius:11px !important; }
.timeline-line::before { background:linear-gradient(var(--brand-yellow),rgba(185,154,36,.06)) !important; }
.timeline-dot { border-color:#eee7c9 !important; box-shadow:0 0 0 1px rgba(185,154,36,.34) !important; }
.metric-number { color:#232527; }

/* Page heroes and dark surfaces */
.page-hero {
  background:linear-gradient(145deg,#181a1c,#25282b 70%,#1e2022) !important;
}
.page-hero::before { background:rgba(185,154,36,.09) !important; }
.page-hero::after { background:rgba(166,34,40,.07) !important; }
[class~="bg-[#07111f]"], [class~="bg-[#0a1c2a]"] { background-color:#1c1e20 !important; }
[class~="text-[#07111f]"] { color:#202326 !important; }
.glass-dark { background:rgba(28,30,32,.78) !important; }

/* Tables / forms */
.table-wrap { border-color:#dcd9d1 !important; box-shadow:0 12px 30px rgba(25,27,29,.05) !important; border-radius:18px !important; }
.product-table th { background:#202224 !important; border-bottom:3px solid #9a8121; }
.product-table td { border-bottom-color:#e9e6df !important; color:#555b60 !important; }
.product-table tbody tr:hover { background:#f5f2e8 !important; }
.form-input { border-color:#d9d6cf !important; background:#fbfbf9 !important; border-radius:13px !important; }
.form-input:focus { border-color:#b29a42 !important; box-shadow:0 0 0 4px rgba(185,154,36,.10) !important; }
.filter-btn.active { background:#202224 !important; border-color:#202224 !important; }

/* Normalize previous blue/cyan/rose palette into subdued brand accents */
[class*="text-sky-300"] { color:#d2c36d !important; }
[class*="text-sky-"], [class*="text-cyan-"] { color:#7a671e !important; }
[class*="text-rose-"], [class*="text-red-"] { color:#9d252b !important; }
[class*="text-emerald-"] { color:#52645a !important; }
[class*="bg-sky-"] { background-color:#f1eee4 !important; }
[class*="bg-cyan-"] { background-color:#edf0ed !important; }
[class*="bg-rose-"] { background-color:#f3e9e8 !important; }
[class*="bg-emerald-"] { background-color:#e9efeb !important; }
[class*="border-sky-"] { border-color:#ddd3ad !important; }

/* Product image trays */
.product-card > div:first-child { border:1px solid #e4e1da; background:linear-gradient(145deg,#f7f6f1,#ffffff) !important; }

/* Footer */
footer { background:#181a1c !important; border-top:3px solid #8e7720; }
footer .brand-logo { background:#fff; }
footer a:hover { color:#e0d28a !important; }

/* Tiny official brand cue on key cards */
.soft-card::before { content:none; }

@media (max-width:1180px) {
  .header-shell::before { inset-inline:16px; }
  .brand-logo { width:45px; height:45px; }
}
@media (max-width:640px) {
  .header-shell { border-radius:17px !important; }
  .brand-logo { width:42px; height:42px; border-radius:10px; }
  .brand-link strong { font-size:12px !important; }
  .hero-mesh { background-size:36px 36px,36px 36px,auto,auto,auto !important; }
}
