/* =========================================================
   ALHAMSAD RICE MILL — FRONTEND DESIGN SYSTEM
   ========================================================= */

#alhamsad-site-wrapper {
  --arm-bg-primary: #05190e;
  --arm-bg-secondary: #04140b;
  --arm-bg-tertiary: #031009;
  --arm-panel: #0d2818;
  --arm-panel-light: #0f2f1c;
  --arm-border: rgba(212, 175, 55, 0.14);
  --arm-border-strong: rgba(212, 175, 55, 0.4);
  --arm-gold: #d4af37;
  --arm-gold-light: #f1ca49;
  --arm-white: #ffffff;
  --arm-text: #d9e4de;
  --arm-text-muted: #9fb5a9;
  --arm-text-dim: #6d8578;
  --arm-radius-sm: 8px;
  --arm-radius-md: 14px;
  --arm-radius-lg: 22px;
  --arm-shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.28);
  --arm-shadow-hover: 0 22px 48px rgba(0, 0, 0, 0.4);
  --arm-gold-glow: 0 0 0 1px rgba(212, 175, 55, 0.5), 0 14px 34px rgba(212, 175, 55, 0.14);
  --arm-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'Inter', sans-serif;

  background-color: var(--arm-bg-primary);
  color: var(--arm-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  position: relative;
  width: 100%;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

#alhamsad-site-wrapper * { box-sizing: border-box; }
#alhamsad-site-wrapper img { max-width: 100%; display: block; }

#alhamsad-site-wrapper h1,
#alhamsad-site-wrapper h2,
#alhamsad-site-wrapper h3,
#alhamsad-site-wrapper h4,
#alhamsad-site-wrapper .condensed-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--arm-white);
}

#alhamsad-site-wrapper a { transition: color 0.25s var(--arm-ease); }

/* ---------- Motion base ---------- */
@media (prefers-reduced-motion: reduce) {
  #alhamsad-site-wrapper * { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
}

.arm-reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--arm-ease), transform 0.8s var(--arm-ease); }
.arm-reveal.is-visible { opacity: 1; transform: translateY(0); }
.arm-reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.arm-reveal-stagger > * { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--arm-ease), transform 0.7s var(--arm-ease); }
.arm-reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.arm-reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.15s; }
.arm-reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.25s; }
.arm-reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.35s; }

/* ---------- Layout helpers ---------- */
.arm-container { max-width: 1280px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 80px); }
.arm-section { padding: clamp(56px, 8vw, 120px) 0; position: relative; width: 100%; }
.bg-darker { background-color: var(--arm-bg-tertiary); }
.arm-section-header-tag {
  color: var(--arm-gold); font-size: 0.85rem; font-weight: 700;
  letter-spacing: 2px; margin-bottom: 12px; display: inline-flex; align-items: center; gap: 10px;
  text-transform: uppercase;
}
.arm-section-header-tag::before { content: ''; width: 28px; height: 2px; background: var(--arm-gold); display: inline-block; border-radius: 2px; }
.arm-section-title { font-size: clamp(1.7rem, 1.1rem + 2.4vw, 2.7rem); line-height: 1.15; margin: 0 0 20px 0; }
.arm-section-lead { color: var(--arm-text-muted); font-size: clamp(1rem, 0.95rem + 0.3vw, 1.1rem); max-width: 640px; margin: 0 0 50px 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 60px); align-items: center; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }

/* ---------- Buttons ---------- */
.arm-btn-gold, .arm-btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.6px; text-decoration: none; border-radius: var(--arm-radius-sm);
  cursor: pointer; border: 0; transition: transform 0.3s var(--arm-ease), box-shadow 0.3s var(--arm-ease), background 0.3s var(--arm-ease), color 0.3s var(--arm-ease);
  will-change: transform;
}
.arm-btn-gold {
  background: linear-gradient(135deg, var(--arm-gold-light), var(--arm-gold));
  color: var(--arm-bg-primary); padding: 16px 34px; font-size: 1.05rem;
  box-shadow: 0 10px 26px rgba(212, 175, 55, 0.18);
}
.arm-btn-gold:hover, .arm-btn-gold:focus-visible {
  transform: translateY(-3px) scale(1.015);
  box-shadow: 0 16px 34px rgba(212, 175, 55, 0.32);
  color: var(--arm-bg-primary);
}
.arm-btn-gold:active { transform: translateY(-1px) scale(0.99); }

.arm-btn-outline {
  border: 1.5px solid var(--arm-gold); color: var(--arm-gold); background: transparent;
  padding: 14.5px 32px; font-size: 1rem;
}
.arm-btn-outline:hover, .arm-btn-outline:focus-visible {
  background: var(--arm-gold); color: var(--arm-bg-primary); transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(212, 175, 55, 0.22);
}
.arm-btn-outline:active { transform: translateY(-1px); }

/* ---------- Header / Nav ---------- */
.arm-header {
  background-color: rgba(4, 20, 11, 0.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--arm-border); padding: 18px clamp(20px, 4vw, 56px);
  display: flex; justify-content: space-between; align-items: center;
  position: sticky; top: 0; z-index: 999; transition: box-shadow 0.3s ease;
}
.arm-header.is-scrolled { box-shadow: 0 10px 30px rgba(0,0,0,0.35); }
.arm-logo-area { display: flex; align-items: center; gap: 14px; }
.arm-logo-img { height: 46px; width: auto; object-fit: contain; transition: transform 0.3s var(--arm-ease); }
.arm-logo-area:hover .arm-logo-img { transform: scale(1.05); }
.arm-logo-text { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--arm-gold); text-transform: uppercase; letter-spacing: 0.8px; }
.arm-header-brand { font-family: var(--font-display); font-size: 1.5rem; color: var(--arm-gold); text-transform: uppercase; }

.arm-nav { display: flex; align-items: center; gap: clamp(16px, 2vw, 32px); }
.arm-nav a:not(.arm-btn-gold) {
  color: var(--arm-text-muted); text-decoration: none; font-size: 0.95rem; font-weight: 500;
  position: relative; padding: 4px 0;
}
.arm-nav a:not(.arm-btn-gold)::after {
  content: ''; position: absolute; left: 0; bottom: -3px; width: 0; height: 2px;
  background: var(--arm-gold); transition: width 0.3s var(--arm-ease);
}
.arm-nav a:not(.arm-btn-gold):hover { color: var(--arm-white); }
.arm-nav a:not(.arm-btn-gold):hover::after { width: 100%; }
.arm-nav .arm-btn-gold { padding: 11px 22px; font-size: 0.82rem; }

.arm-menu-toggle {
  display: none; background: none; border: 1px solid var(--arm-border-strong); border-radius: var(--arm-radius-sm);
  color: var(--arm-gold); font-size: 1.3rem; width: 44px; height: 40px; cursor: pointer;
  align-items: center; justify-content: center; transition: background 0.25s ease;
}
.arm-menu-toggle:hover { background: rgba(212,175,55,0.1); }

@media (max-width: 1024px) {
  .arm-menu-toggle { display: flex; }
  .arm-header-brand { font-size: 0.85rem; }
  .arm-nav {
    display: none; flex-direction: column; align-items: stretch; width: 100%;
    background: var(--arm-bg-secondary); position: absolute; top: 100%; left: 0;
    padding: 20px clamp(20px, 4vw, 56px) 26px; border-bottom: 1px solid var(--arm-border);
    gap: 18px; text-align: center;
  }
  .arm-nav.active { display: flex; animation: armNavDrop 0.35s var(--arm-ease); }
  .arm-nav .arm-btn-gold { width: 100%; }
}
@keyframes armNavDrop { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Hero ---------- */
.arm-hero {
  position: relative; min-height: 92vh; min-height: 92svh; display: flex; align-items: center;
  justify-content: flex-start; padding: 140px clamp(20px, 6vw, 80px) 130px; overflow: hidden;
}
.arm-hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.06); transition: opacity 1.8s ease-in-out, transform 8s linear; z-index: 1;
}
.arm-hero-slide::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(5,25,14,0.96) 10%, rgba(5,25,14,0.72) 55%, rgba(5,25,14,0.5) 100%);
}
.arm-hero-slide.active { opacity: 1; z-index: 2; transform: scale(1); }
.arm-hero-fade {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 160px; z-index: 3;
  background: linear-gradient(to bottom, rgba(5,25,14,0) 0%, var(--arm-bg-primary) 92%);
  pointer-events: none;
}
.arm-hero-content { position: relative; z-index: 4; max-width: 780px; }
.arm-badge {
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--arm-border-strong);
  background: rgba(212,175,55,0.06); color: var(--arm-gold); padding: 7px 18px; border-radius: 50px;
  font-size: 0.8rem; text-transform: uppercase; font-weight: 600; letter-spacing: 1.4px; margin-bottom: 26px;
}
.arm-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--arm-gold); box-shadow: 0 0 0 0 rgba(212,175,55,0.6); animation: armPulse 2s infinite; }
@keyframes armPulse { 0% { box-shadow: 0 0 0 0 rgba(212,175,55,0.55);} 70% { box-shadow: 0 0 0 9px rgba(212,175,55,0);} 100% { box-shadow: 0 0 0 0 rgba(212,175,55,0);} }
.arm-hero-content h1 { font-size: clamp(2.3rem, 1.4rem + 4vw, 4.3rem); line-height: 1.08; margin: 0 0 24px 0; }
.arm-hero-content p { font-size: clamp(1rem, 0.9rem + 0.4vw, 1.2rem); color: var(--arm-text-muted); margin-bottom: 38px; max-width: 640px; }
.arm-hero-dots { position: absolute; z-index: 4; bottom: 34px; left: clamp(20px, 6vw, 80px); display: flex; gap: 8px; }
.arm-hero-dot { width: 30px; height: 4px; border-radius: 4px; background: rgba(255,255,255,0.25); cursor: pointer; transition: background 0.3s ease, transform 0.3s ease; border: 0; padding: 0; }
.arm-hero-dot.active { background: var(--arm-gold); transform: scaleX(1.1); }

@media (max-width: 768px) {
  .arm-hero { min-height: 82vh; min-height: 82svh; padding: 120px 20px 90px; align-items: flex-end; }
}

/* ---------- Metric / product / catalog cards (shared) ---------- */
.arm-card-metric, .arm-b2b-card, .arm-heritage-wrapper, .arm-location-info {
  background: var(--arm-panel); border: 1px solid var(--arm-border); border-radius: var(--arm-radius-md);
  transition: transform 0.35s var(--arm-ease), box-shadow 0.35s var(--arm-ease), border-color 0.35s var(--arm-ease);
}
.arm-card-metric { padding: 32px; }
.arm-card-metric:hover, .arm-b2b-card:hover {
  transform: translateY(-6px); border-color: var(--arm-border-strong); box-shadow: var(--arm-shadow-hover);
}
.arm-card-metric i { color: var(--arm-gold); font-size: 1.5rem; margin-bottom: 18px; display: block; transition: transform 0.35s var(--arm-ease); }
.arm-card-metric:hover i { transform: scale(1.15) rotate(-4deg); }
.arm-card-metric h4 { font-size: 1.3rem; margin: 0 0 12px 0; }
.arm-card-metric p { font-size: 0.95rem; color: var(--arm-text-muted); margin: 0; line-height: 1.6; }

.arm-metric-card-box { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 50px; }
@media (max-width: 1200px) { .arm-metric-card-box { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .arm-metric-card-box { grid-template-columns: 1fr; } }

.arm-specs-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .arm-specs-grid { grid-template-columns: 1fr; } }

.arm-heritage-wrapper { padding: clamp(28px, 4vw, 46px); }
.arm-heritage-line { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--arm-border); }
.arm-heritage-line:last-child { border-bottom: none; }
.arm-heritage-lbl { color: var(--arm-text-muted); font-size: 0.95rem; }
.arm-heritage-val { color: var(--arm-gold); font-weight: 600; font-size: 0.95rem; text-align: right; }

/* ---------- Image frames w/ zoom-on-hover ---------- */
.arm-img-frame { border-radius: var(--arm-radius-lg); overflow: hidden; border: 1px solid var(--arm-border); box-shadow: var(--arm-shadow-soft); position: relative; }
.arm-img-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--arm-ease); }
.arm-img-frame:hover img { transform: scale(1.08); }
.arm-img-frame.empty { display: flex; align-items: center; justify-content: center; background: var(--arm-panel); color: var(--arm-text-dim); font-size: 0.85rem; min-height: 220px; text-align: center; padding: 20px; }

/* ---------- Volumetric calculator ---------- */
.arm-calculator-panel { background: var(--arm-panel); border: 1px solid var(--arm-border); border-radius: var(--arm-radius-lg); padding: clamp(28px, 4vw, 48px); }
.arm-calc-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: center; }
@media (max-width: 900px) { .arm-calc-layout { grid-template-columns: 1fr; gap: 34px; } }
.arm-range-input {
  -webkit-appearance: none; width: 100%; max-width: 100%; box-sizing: border-box; height: 8px; border-radius: 6px;
  background: linear-gradient(90deg, var(--arm-gold) 0%, var(--arm-gold) var(--arm-fill, 0%), rgba(255,255,255,0.08) var(--arm-fill, 0%));
  outline: none; cursor: pointer; margin: 18px 0 14px;
}
.arm-range-input::-webkit-slider-thumb {
  -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--arm-gold-light); border: 3px solid var(--arm-bg-primary);
  box-shadow: 0 0 0 2px var(--arm-gold); cursor: pointer; transition: transform 0.25s var(--arm-ease);
}
.arm-range-input::-webkit-slider-thumb:hover { transform: scale(1.15); }
.arm-range-input::-moz-range-thumb {
  width: 24px; height: 24px; border-radius: 50%; background: var(--arm-gold-light);
  border: 3px solid var(--arm-bg-primary); box-shadow: 0 0 0 2px var(--arm-gold); cursor: pointer;
}
.arm-calc-readouts { display: flex; flex-direction: column; gap: 18px; }
.arm-readout { background: var(--arm-bg-tertiary); border: 1px solid var(--arm-border); border-radius: var(--arm-radius-sm); padding: 18px 22px; transition: border-color 0.3s ease; }
.arm-readout:hover { border-color: var(--arm-border-strong); }
.arm-readout label { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1px; color: var(--arm-text-muted); margin-bottom: 6px; }
.arm-readout .value { font-family: var(--font-display); font-size: 1.6rem; color: var(--arm-gold); font-weight: 700; }

/* ---------- B2B cards ---------- */
.arm-b2b-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
@media (max-width: 900px) { .arm-b2b-grid { grid-template-columns: 1fr; } }
.arm-b2b-card { padding: 38px 30px; display: flex; flex-direction: column; justify-content: space-between; }
.arm-b2b-card h3 { font-size: 1.5rem; margin: 0 0 14px 0; text-transform: none; }
.arm-b2b-card p { color: var(--arm-text-muted); font-size: 0.95rem; margin-bottom: 28px; flex-grow: 1; }

/* ---------- Location ---------- */
.arm-location-split { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: stretch; }
@media (max-width: 900px) { .arm-location-split { grid-template-columns: 1fr; } }
.arm-location-info { display: flex; flex-direction: column; justify-content: center; padding: clamp(28px, 4vw, 42px); background: var(--arm-bg-tertiary); }
.arm-map-frame-holder { border-radius: var(--arm-radius-md); overflow: hidden; border: 1px solid var(--arm-border); min-height: 340px; }
.arm-map-frame-holder iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; filter: grayscale(0.15) contrast(1.05); }

/* ---------- Social icons (per approved sample style) ---------- */
.arm-social-row { display: flex; flex-wrap: wrap; gap: 12px; }
.arm-social-icon {
  width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--arm-border-strong); border-radius: var(--arm-radius-sm);
  color: var(--arm-gold); text-decoration: none; background: rgba(212,175,55,0.04);
  transition: background 0.3s var(--arm-ease), color 0.3s var(--arm-ease), transform 0.3s var(--arm-ease), box-shadow 0.3s var(--arm-ease);
}
.arm-social-icon svg { width: 19px; height: 19px; fill: currentColor; }
.arm-social-icon:hover, .arm-social-icon:focus-visible {
  background: var(--arm-gold); color: var(--arm-bg-primary); transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(212,175,55,0.3);
}
.arm-social-icon:active { transform: translateY(-1px); }

/* ---------- Floating WhatsApp ---------- */
.arm-whatsapp-float {
  position: fixed; bottom: 26px; right: 26px; width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center; z-index: 998;
  box-shadow: 0 10px 28px rgba(0,0,0,0.35); transition: transform 0.3s var(--arm-ease), box-shadow 0.3s var(--arm-ease);
  animation: armFloatIn 0.6s var(--arm-ease) 1s both;
}
.arm-whatsapp-float svg { width: 30px; height: 30px; fill: #ffffff; }
.arm-whatsapp-float:hover { transform: scale(1.08) translateY(-3px); box-shadow: 0 16px 34px rgba(0,0,0,0.45); }
@keyframes armFloatIn { from { opacity: 0; transform: scale(0.5) translateY(30px); } to { opacity: 1; transform: scale(1) translateY(0); } }

/* ---------- Footer ---------- */
.arm-footer { background-color: var(--arm-bg-tertiary); border-top: 1px solid var(--arm-border); padding: clamp(50px, 6vw, 90px) 0 34px; }
.arm-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 44px; margin-bottom: 54px; }
@media (max-width: 900px) { .arm-footer-grid { grid-template-columns: 1fr; gap: 34px; text-align: center; } .arm-footer-grid .arm-social-row { justify-content: center; } }
.arm-footer-brand { font-family: var(--font-display); font-size: 1.5rem; color: var(--arm-gold); text-transform: uppercase; margin-bottom: 14px; }
.arm-footer-brand-row { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.arm-footer-brand-row .arm-footer-brand { margin-bottom: 0; }
.arm-footer-logo-img { height: 40px; width: auto; object-fit: contain; }
@media (max-width: 900px) { .arm-footer-brand-row { justify-content: center; } }
.arm-footer-col h5 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1.4px; color: var(--arm-white); margin: 0 0 18px 0; }
.arm-footer-col p, .arm-footer-col a { color: var(--arm-text-muted); font-size: 0.92rem; text-decoration: none; }
.arm-footer-links-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.arm-footer-links-list a:hover { color: var(--arm-gold); }
.arm-footer-bottom { border-top: 1px solid var(--arm-border); padding-top: 26px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--arm-text-dim); font-size: 0.85rem; }
@media (max-width: 600px) { .arm-footer-bottom { flex-direction: column; text-align: center; } }

/* ---------- Lead capture pages ---------- */
.arm-lead-page { background: var(--arm-bg-primary); min-height: 100vh; padding: clamp(60px, 8vw, 100px) 20px; overflow-x: hidden; }
.arm-lead-form-container { max-width: 820px; margin: 0 auto; background: var(--arm-panel); border: 1px solid var(--arm-border); border-radius: var(--arm-radius-lg); padding: clamp(30px, 5vw, 50px); box-shadow: var(--arm-shadow-soft); position: relative; overflow: hidden; }
.arm-back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--arm-gold); text-decoration: none; margin-bottom: 26px; font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.6px; transition: gap 0.25s ease; }
.arm-back-link:hover { gap: 12px; color: var(--arm-gold-light); }
.arm-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 700px) { .arm-form-grid { grid-template-columns: 1fr; } }
.arm-form-group { display: flex; flex-direction: column; }
.arm-form-group.full-width { grid-column: span 2; }
@media (max-width: 700px) { .arm-form-group.full-width { grid-column: span 1; } }
.arm-form-group label { font-size: 0.82rem; font-weight: 600; text-transform: uppercase; color: var(--arm-text-muted); margin-bottom: 9px; letter-spacing: 0.5px; }
.arm-form-group input, .arm-form-group select, .arm-form-group textarea {
  background: var(--arm-bg-tertiary); border: 1.5px solid var(--arm-border); padding: 14px 16px;
  color: var(--arm-white); border-radius: var(--arm-radius-sm); font-size: 1rem; font-family: var(--font-body);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.arm-form-group input:focus, .arm-form-group select:focus, .arm-form-group textarea:focus {
  border-color: var(--arm-gold); outline: none; box-shadow: 0 0 0 3px rgba(212,175,55,0.15);
}
.arm-submit-btn { width: 100%; border: 0; cursor: pointer; font-size: 1.05rem; margin-top: 28px; }
.arm-submit-btn:disabled { opacity: 0.6; cursor: progress; transform: none !important; }
.arm-feedback-box { margin-top: 20px; padding: 16px 18px; border-radius: var(--arm-radius-sm); font-weight: 600; text-align: center; display: none; }
.arm-feedback-box.arm-success { display: block; background: rgba(37, 211, 102, 0.1); border: 1px solid rgba(37, 211, 102, 0.4); color: #6fe3a0; }
.arm-feedback-box.arm-error { display: block; background: rgba(220, 60, 60, 0.1); border: 1px solid rgba(220, 60, 60, 0.4); color: #ef8a8a; }

/* ---------- 404 ---------- */
.arm-404-container { min-height: 100vh; display: flex; align-items: center; justify-content: center; background-color: var(--arm-bg-primary); color: var(--arm-white); font-family: var(--font-body); text-align: center; padding: 40px 24px; }
.arm-404-card { max-width: 600px; background: var(--arm-panel); border: 1px solid var(--arm-border-strong); padding: 60px 40px; border-radius: var(--arm-radius-lg); box-shadow: var(--arm-shadow-soft); }
.arm-404-card h1 { font-family: var(--font-display); color: var(--arm-gold); font-size: clamp(3rem, 4vw + 1rem, 4.5rem); margin: 0 0 18px 0; }
.arm-404-card h2 { font-size: 1.6rem; color: var(--arm-white); margin: 0 0 15px 0; }
.arm-404-card p { color: var(--arm-text-muted); font-size: 1.05rem; line-height: 1.6; margin: 0 0 32px 0; }

/* Generic tap feedback for touch devices (simulated hover) */
@media (hover: none) {
  .arm-card-metric:active, .arm-b2b-card:active { transform: scale(0.98); }
  .arm-btn-gold:active, .arm-btn-outline:active, .arm-social-icon:active { transform: scale(0.95); }
}

/* ==========================================================
   VOLUME SLIDER — manual number input (procurement form)
   ========================================================== */
.arm-volume-display-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    gap: 12px;
    flex-wrap: wrap;
}
.arm-volume-manual-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--arm-bg-tertiary);
    border: 1.5px solid var(--arm-border-strong);
    border-radius: var(--arm-radius-sm);
    padding: 6px 16px 6px 12px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.arm-volume-manual-wrap:focus-within {
    border-color: var(--arm-gold);
    box-shadow: 0 0 0 3px rgba(212,175,55,0.18);
}
.arm-volume-number-input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--arm-gold);
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 700;
    width: 94px;
    text-align: right;
    letter-spacing: 0.5px;
    -moz-appearance: textfield;
}
.arm-volume-number-input::-webkit-inner-spin-button,
.arm-volume-number-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.arm-volume-unit {
    color: var(--arm-text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
}
#arm_metric_weight_display { color: var(--arm-text-muted); font-size: 0.85rem; }

/* ==========================================================
   SUCCESS STATE — animated form takeover
   ========================================================== */
.arm-success-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: clamp(44px, 7vw, 80px) 20px clamp(40px, 6vw, 64px);
    position: relative;
    animation: armSuccessIn 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes armSuccessIn {
    from { opacity: 0; transform: scale(0.86) translateY(28px); }
    to   { opacity: 1; transform: scale(1)    translateY(0); }
}

/* ── Emanating rings ── */
.arm-success-rings {
    position: absolute;
    top: clamp(100px, 16vw, 148px);
    left: 50%;
    width: 0; height: 0;
    pointer-events: none;
    z-index: 0;
}
.arm-sring {
    display: block;
    position: absolute;
    border-radius: 50%;
    border: 1.5px solid var(--arm-gold);
    animation: armRingPulse 2s ease-out both;
}
.arm-sring-1 { width: 150px; height: 150px; margin: -75px;  animation-delay: 0.95s; }
.arm-sring-2 { width: 220px; height: 220px; margin: -110px; animation-delay: 1.15s; }
.arm-sring-3 { width: 300px; height: 300px; margin: -150px; animation-delay: 1.35s; }
@keyframes armRingPulse {
    0%   { transform: scale(0.2); opacity: 0.7; }
    100% { transform: scale(1);   opacity: 0;   }
}

/* ── Gold particles (spawned by JS) ── */
.arm-success-particles {
    position: absolute;
    top: clamp(100px, 16vw, 148px);
    left: 50%;
    width: 0; height: 0;
    pointer-events: none;
    z-index: 1;
}
.arm-particle {
    position: absolute;
    transform: translate(-50%, -50%);
    animation: armParticleOut var(--dur, 1s) ease-out var(--delay, 0s) both;
}
@keyframes armParticleOut {
    0%   { opacity: 1;   transform: translate(-50%, -50%) translate(0px, 0px) scale(1); }
    75%  { opacity: 0.7; }
    100% { opacity: 0;   transform: translate(-50%, -50%) translate(var(--tx, 0px), var(--ty, 0px)) scale(0.15); }
}

/* ── Animated checkmark circle ── */
.arm-success-circle {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.06);
    border: 1.5px solid rgba(212, 175, 55, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 34px;
    position: relative;
    z-index: 2;
    animation: armCirclePop 0.55s cubic-bezier(0.175, 0.885, 0.32, 1.4) 0.1s both;
}
@keyframes armCirclePop {
    0%   { transform: scale(0);    opacity: 0; }
    60%  { transform: scale(1.08); opacity: 1; }
    100% { transform: scale(1);    opacity: 1; }
}

.arm-checkmark { width: 58px; height: 58px; }
.arm-ck-circle {
    stroke: var(--arm-gold);
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    transform-origin: center;
    animation: armStrokeDraw 0.65s cubic-bezier(0.65, 0, 0.45, 1) 0.5s both;
}
.arm-ck-check {
    stroke: var(--arm-gold-light);
    stroke-dasharray: 62;
    stroke-dashoffset: 62;
    animation: armStrokeDraw 0.45s cubic-bezier(0.65, 0, 0.45, 1) 1.05s both;
}
@keyframes armStrokeDraw { to { stroke-dashoffset: 0; } }

/* ── Text content ── */
.arm-success-body { margin-bottom: 32px; position: relative; z-index: 2; }

.arm-success-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5.5vw, 3rem);
    line-height: 1.05;
    color: var(--arm-white);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 18px 0;
    animation: armSlideUp 0.5s var(--arm-ease) 0.65s both;
}
.arm-success-msg {
    color: var(--arm-text-muted);
    font-size: 1.05rem;
    line-height: 1.75;
    max-width: 460px;
    margin: 0 auto 28px;
    animation: armSlideUp 0.5s var(--arm-ease) 0.8s both;
}
@keyframes armSlideUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

.arm-success-ref-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    background: var(--arm-panel);
    border: 1px solid var(--arm-border-strong);
    padding: 14px 32px;
    border-radius: var(--arm-radius-md);
    animation: armSlideUp 0.5s var(--arm-ease) 0.95s both;
}
.arm-success-ref-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--arm-text-dim);
}
.arm-success-ref-code {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--arm-gold);
    font-weight: 700;
    letter-spacing: 2px;
}

/* ── Reset button ── */
.arm-success-reset-btn {
    position: relative;
    z-index: 2;
    background: transparent;
    border: 1.5px solid var(--arm-border-strong);
    border-radius: var(--arm-radius-sm);
    color: var(--arm-text-muted);
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 13px 30px;
    cursor: pointer;
    transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
    animation: armSlideUp 0.5s var(--arm-ease) 1.1s both;
}
.arm-success-reset-btn:hover {
    border-color: var(--arm-gold);
    color: var(--arm-gold);
    background: rgba(212,175,55,0.06);
}

/* ── Mobile tightening ── */
@media (max-width: 480px) {
    .arm-volume-display-row { flex-direction: column; align-items: flex-start; }
    .arm-success-state { padding: 40px 12px; }
    .arm-sring-3 { display: none; }
}
