/* =====================================================================
   دهسوند — Dehsavand Co.  |  style.css
   Warm-industrial corporate system (Crimson Paste / Amber Syrup / Iron)
   TABBED-SHOWCASE archetype · RTL · mobile-first
   ===================================================================== */

/* ---------- Fonts (self-hosted, no CDN) ---------- */
@font-face{font-family:'Vazirmatn';src:url('/fonts/Vazirmatn-Light.woff2') format('woff2');font-weight:300;font-display:swap;font-style:normal;}
@font-face{font-family:'Vazirmatn';src:url('/fonts/Vazirmatn-Regular.woff2') format('woff2');font-weight:400;font-display:swap;font-style:normal;}
@font-face{font-family:'Vazirmatn';src:url('/fonts/Vazirmatn-Medium.woff2') format('woff2');font-weight:500;font-display:swap;font-style:normal;}
@font-face{font-family:'Vazirmatn';src:url('/fonts/Vazirmatn-SemiBold.woff2') format('woff2');font-weight:600;font-display:swap;font-style:normal;}
@font-face{font-family:'Vazirmatn';src:url('/fonts/Vazirmatn-Bold.woff2') format('woff2');font-weight:700;font-display:swap;font-style:normal;}
@font-face{font-family:'Vazirmatn';src:url('/fonts/Vazirmatn-ExtraBold.woff2') format('woff2');font-weight:800;font-display:swap;font-style:normal;}

/* ---------- Tokens ---------- */
:root{
  --clr-primary:#8C1C13; --clr-primary-700:#6E140D;
  --clr-secondary:#C4701A; --clr-dark:#1A1F2E; --clr-dark-2:#242b3d;
  --clr-earth:#D4973B; --clr-surface:#F5EEE4; --clr-text:#1E1E1E;
  --clr-muted:#6B6560; --clr-border:#DDD5C8; --clr-white:#FFFFFF;
  --clr-page:#FBF8F2;
  --success:#2F7D4F; --error:#B4231A;

  --font:'Vazirmatn','Tahoma','Arial',sans-serif;

  --sp-1:4px; --sp-2:8px; --sp-3:12px; --sp-4:16px; --sp-5:24px;
  --sp-6:32px; --sp-7:48px; --sp-8:64px; --sp-9:96px; --sp-10:128px;

  --radius-xs:4px; --radius-sm:8px; --radius-md:12px; --radius-lg:18px;
  --radius-xl:26px; --radius-pill:999px;

  --shadow-xs:0 1px 3px rgba(30,30,30,.08);
  --shadow-sm:0 2px 10px rgba(30,30,30,.08);
  --shadow-md:0 6px 20px rgba(30,30,30,.10);
  --shadow-lg:0 14px 40px rgba(30,30,30,.14);
  --shadow-crimson:0 10px 30px rgba(140,28,19,.20);

  --container:1240px;
  --pad:20px;
  --header-h:72px;
}

/* ---------- Reset ---------- */
*,*::before,*::after{box-sizing:border-box;}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;}
body{
  margin:0;font-family:var(--font);color:var(--clr-text);
  background:var(--clr-page);line-height:1.8;font-size:1rem;font-weight:400;
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
  overflow-x:hidden;
}
img{max-width:100%;display:block;height:auto;}
a{color:inherit;text-decoration:none;}
ul,ol{margin:0;padding:0;list-style:none;}
h1,h2,h3,h4{margin:0;line-height:1.3;color:var(--clr-dark);font-weight:700;letter-spacing:-.01em;}
p{margin:0;}
button{font-family:inherit;cursor:pointer;border:none;background:none;color:inherit;}
svg{flex-shrink:0;}
:focus-visible{outline:2px solid var(--clr-primary);outline-offset:2px;border-radius:4px;}

.icon{width:24px;height:24px;}
.icon-sm{width:18px;height:18px;}

.skip-link{position:absolute;inset-inline-start:-999px;top:0;background:var(--clr-primary);color:#fff;padding:10px 16px;z-index:200;border-radius:0 0 8px 8px;}
.skip-link:focus{inset-inline-start:0;}

/* ---------- Layout ---------- */
.container{max-width:var(--container);margin-inline:auto;padding-inline:var(--pad);width:100%;}
.section{padding-block:var(--sp-8);}
.section-alt{background:var(--clr-surface);}
.section-dark{background:var(--clr-dark);color:#E9E6E0;}
.section-dark .section-title{color:#fff;}

/* ---------- Typography helpers ---------- */
.eyebrow{display:inline-flex;align-items:center;gap:var(--sp-2);font-size:.8125rem;font-weight:700;
  color:var(--clr-primary);background:rgba(140,28,19,.08);padding:6px 14px;border-radius:var(--radius-pill);
  letter-spacing:.01em;margin-bottom:var(--sp-4);}
.eyebrow svg{width:16px;height:16px;}
.eyebrow-light{color:var(--clr-earth);background:rgba(212,151,59,.14);}
.section-head{max-width:720px;margin:0 auto var(--sp-7);text-align:center;}
.section-head-light .section-lead{color:#C9C5BE;}
.section-title{font-size:clamp(1.55rem,3.2vw,2.3rem);line-height:1.3;}
.section-lead{margin-top:var(--sp-3);color:var(--clr-muted);font-size:1.0625rem;line-height:1.85;}
.section-dark .section-lead{color:#BDB9B2;}
.section-cta-center{text-align:center;margin-top:var(--sp-7);}

/* ---------- Buttons ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:var(--sp-2);
  font-weight:700;font-size:.9375rem;padding:12px 22px;border-radius:var(--radius-md);
  transition:transform .15s ease,box-shadow .2s ease,background .2s ease,color .2s ease;
  white-space:nowrap;line-height:1;border:1.5px solid transparent;}
.btn svg{width:20px;height:20px;}
.btn-sm{padding:8px 14px;font-size:.85rem;}
.btn-lg{padding:15px 28px;font-size:1rem;}
.btn-block{width:100%;}
.btn-primary{background:var(--clr-primary);color:#fff;box-shadow:var(--shadow-crimson);}
.btn-primary:hover{background:var(--clr-primary-700);transform:translateY(-2px);}
.btn-soft{background:rgba(140,28,19,.07);color:var(--clr-primary);border-color:rgba(140,28,19,.12);}
.btn-soft:hover{background:rgba(140,28,19,.12);}
.btn-ghost{background:transparent;color:var(--clr-dark);border-color:var(--clr-border);}
.btn-ghost:hover{border-color:var(--clr-primary);color:var(--clr-primary);}
.btn-light{background:#fff;color:var(--clr-primary);}
.btn-light:hover{transform:translateY(-2px);box-shadow:var(--shadow-md);}
.btn-outline-light{background:transparent;color:#fff;border-color:rgba(255,255,255,.5);}
.btn-outline-light:hover{background:rgba(255,255,255,.12);border-color:#fff;}
.btn-danger{background:rgba(180,35,26,.1);color:var(--error);border-color:rgba(180,35,26,.2);}
.btn-danger:hover{background:var(--error);color:#fff;}
/* mirror directional arrows in RTL */
[dir="rtl"] .btn svg[class*="icon"]{}

/* ---------- Header ---------- */
.site-header{position:sticky;top:0;z-index:100;background:rgba(251,248,242,.92);
  backdrop-filter:saturate(1.3) blur(10px);border-bottom:1px solid var(--clr-border);}
.header-inner{display:flex;align-items:center;gap:var(--sp-5);height:var(--header-h);}
.brand{display:flex;align-items:center;flex-shrink:0;}
.brand-logo{height:38px;width:auto;}
.main-nav{margin-inline-start:auto;}
.main-nav ul{display:flex;align-items:center;gap:var(--sp-2);}
.main-nav a{display:inline-block;padding:9px 14px;font-size:.9375rem;font-weight:600;color:var(--clr-dark);
  border-radius:var(--radius-sm);transition:color .2s,background .2s;}
.main-nav a:hover{color:var(--clr-primary);background:rgba(140,28,19,.06);}
.main-nav a.is-active{color:var(--clr-primary);}
.main-nav a.is-active::after{content:"";display:block;height:2px;width:20px;margin:4px auto 0;background:var(--clr-primary);border-radius:2px;}
.header-cta{display:flex;align-items:center;gap:var(--sp-3);flex-shrink:0;}
.btn-phone{direction:ltr;}
.btn-phone span{font-weight:600;}
.nav-toggle{display:none;align-items:center;justify-content:center;width:44px;height:44px;border-radius:var(--radius-sm);
  border:1px solid var(--clr-border);color:var(--clr-dark);}

/* ---------- Mobile nav ---------- */
.mobile-nav{position:fixed;inset:0;z-index:150;background:var(--clr-page);
  display:flex;flex-direction:column;padding-block:var(--sp-4);overflow-y:auto;}
.mobile-nav[hidden]{display:none!important;}
.mobile-nav-head{display:flex;align-items:center;justify-content:space-between;padding-bottom:var(--sp-4);
  border-bottom:1px solid var(--clr-border);margin-bottom:var(--sp-4);}
.mobile-nav-title{font-weight:800;font-size:1.25rem;color:var(--clr-primary);}
.nav-close{width:44px;height:44px;display:flex;align-items:center;justify-content:center;
  border:1px solid var(--clr-border);border-radius:var(--radius-sm);}
.mobile-nav ul{display:flex;flex-direction:column;gap:var(--sp-1);}
.mobile-nav li a{display:block;padding:14px 12px;font-size:1.05rem;font-weight:600;border-radius:var(--radius-sm);}
.mobile-nav li a:hover,.mobile-nav li a.is-active{background:rgba(140,28,19,.07);color:var(--clr-primary);}
.mobile-nav-actions{display:flex;flex-direction:column;gap:var(--sp-3);margin-top:var(--sp-5);padding-top:var(--sp-5);border-top:1px solid var(--clr-border);}

/* ---------- Hero slider ---------- */
.hero{position:relative;}
.hero-slider{position:relative;}
.hero-slide{display:none;position:relative;min-height:min(78vh,640px);}
.hero-slide.is-active{display:block;animation:fade .6s ease;}
@keyframes fade{from{opacity:.3}to{opacity:1}}
.hero-media{position:absolute;inset:0;z-index:0;}
.hero-media img{width:100%;height:100%;object-fit:cover;}
.hero-overlay{position:absolute;inset:0;background:linear-gradient(135deg,rgba(26,31,46,.90) 0%,rgba(140,28,19,.74) 100%);}
.hero-content{position:relative;z-index:1;display:flex;flex-direction:column;align-items:flex-start;
  justify-content:center;min-height:min(78vh,640px);padding-block:var(--sp-9) var(--sp-10);color:#fff;max-width:780px;}
.hero-kicker{display:inline-flex;align-items:center;gap:var(--sp-2);background:rgba(212,151,59,.2);
  color:#F3E4CC;border:1px solid rgba(212,151,59,.4);padding:7px 16px;border-radius:var(--radius-pill);
  font-size:.8125rem;font-weight:700;margin-bottom:var(--sp-4);}
.hero-kicker svg{width:16px;height:16px;}
.hero-title{color:#fff;font-size:clamp(2rem,5vw,3.25rem);font-weight:800;line-height:1.2;}
.hero-subtitle{margin-top:var(--sp-3);font-size:clamp(1.1rem,2.4vw,1.5rem);font-weight:600;color:var(--clr-earth);}
.hero-body{margin-top:var(--sp-4);font-size:1.0625rem;line-height:1.85;color:#E6E3DE;max-width:600px;}
.hero-actions{display:flex;flex-wrap:wrap;gap:var(--sp-3);margin-top:var(--sp-6);}
.hero-controls{position:absolute;inset-inline:0;bottom:var(--sp-5);z-index:2;display:flex;align-items:center;
  justify-content:center;gap:var(--sp-4);}
.hero-arrow{width:46px;height:46px;border-radius:var(--radius-pill);display:flex;align-items:center;justify-content:center;
  background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.35);color:#fff;transition:background .2s;}
.hero-arrow:hover{background:rgba(255,255,255,.28);}
.hero-dots{display:flex;align-items:center;gap:var(--sp-2);}
.hero-dot{width:11px;height:11px;border-radius:var(--radius-pill);background:rgba(255,255,255,.4);transition:all .2s;}
.hero-dot.is-active{background:var(--clr-earth);width:30px;}

/* ---------- Stats strip ---------- */
.stats-strip{background:var(--clr-dark);color:#fff;padding-block:var(--sp-6);}
.stats-strip-plain{background:var(--clr-primary);}
.stats-row{display:grid;grid-template-columns:repeat(4,1fr);gap:var(--sp-5);}
.stat{text-align:center;padding:var(--sp-2);}
.stat-value{font-size:clamp(1.8rem,3.5vw,2.6rem);font-weight:800;color:var(--clr-earth);line-height:1.1;}
.stats-strip-plain .stat-value{color:#fff;}
.stat-suffix{font-size:.65em;margin-inline-start:2px;}
.stat-label{margin-top:var(--sp-2);font-size:.9375rem;color:#C9C5BE;font-weight:500;}
.stats-strip-plain .stat-label{color:rgba(255,255,255,.88);}

/* ---------- Tabbed showcase ---------- */
.showcase{background:var(--clr-page);}
.tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:var(--sp-3);margin-bottom:var(--sp-7);}
.tab{display:flex;align-items:center;gap:var(--sp-3);text-align:start;padding:16px 18px;
  background:#fff;border:1.5px solid var(--clr-border);border-radius:var(--radius-md);
  transition:border-color .2s,box-shadow .2s,transform .15s;position:relative;overflow:hidden;}
.tab:hover{border-color:var(--clr-secondary);transform:translateY(-2px);box-shadow:var(--shadow-sm);}
.tab.is-active{border-color:transparent;box-shadow:var(--shadow-crimson);}
.tab.is-active::before{content:"";position:absolute;inset:0;z-index:0;
  background:linear-gradient(90deg,#8C1C13 0%,#C4701A 100%);opacity:1;}
.tab.is-active .tab-title,.tab.is-active .tab-tagline,.tab.is-active .tab-icon{color:#fff;position:relative;z-index:1;}
.tab.is-active .tab-icon{background:rgba(255,255,255,.18);}
.tab-icon{display:flex;align-items:center;justify-content:center;width:46px;height:46px;flex-shrink:0;
  border-radius:var(--radius-sm);background:rgba(140,28,19,.08);color:var(--clr-primary);position:relative;z-index:1;}
.tab-text{display:flex;flex-direction:column;position:relative;z-index:1;min-width:0;}
.tab-title{font-weight:700;font-size:1rem;color:var(--clr-dark);}
.tab-tagline{font-size:.8125rem;color:var(--clr-muted);margin-top:2px;line-height:1.5;}

.tab-panel{display:none;}
.tab-panel.is-active{display:block;animation:fade .4s ease;}
.tab-panel[hidden]{display:none;}

/* ---------- Product grid / cards ---------- */
/* flex + centering keeps sparse categories (2–3 items) balanced, no empty columns */
.product-grid{display:flex;flex-wrap:wrap;justify-content:center;gap:var(--sp-5);align-items:stretch;}
.product-card{display:flex;flex-direction:column;flex:1 1 264px;max-width:300px;background:#fff;border:1px solid var(--clr-border);
  border-radius:var(--radius-md);overflow:hidden;transition:transform .2s,box-shadow .25s;}
.product-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-crimson);}
.product-thumb{position:relative;aspect-ratio:4/3;background:var(--clr-surface);overflow:hidden;}
.product-thumb img{width:100%;height:100%;object-fit:cover;}
.product-badge{position:absolute;inset-block-start:12px;inset-inline-start:12px;display:inline-flex;align-items:center;gap:4px;
  background:var(--clr-earth);color:#3a2a10;font-size:.72rem;font-weight:700;padding:5px 10px;border-radius:var(--radius-pill);}
.product-badge svg{width:14px;height:14px;}
.product-body{display:flex;flex-direction:column;flex:1;padding:var(--sp-5);}
.product-title{font-size:1.0625rem;font-weight:700;line-height:1.55;}
.product-summary{margin-top:var(--sp-2);color:var(--clr-muted);font-size:.9rem;line-height:1.8;}
.product-specs{margin-top:var(--sp-4);display:flex;flex-direction:column;gap:var(--sp-2);}
.product-specs li{display:flex;align-items:center;gap:var(--sp-2);font-size:.85rem;color:var(--clr-text);}
.product-specs svg{width:17px;height:17px;color:var(--clr-secondary);flex-shrink:0;}
.product-cta{margin-top:auto;}
.product-cta{margin-top:var(--sp-5);}
.product-card .product-cta{margin-top:auto;}

/* ---------- Feature grid ---------- */
.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--sp-5);align-items:stretch;}
.feature-card{display:flex;flex-direction:column;height:100%;background:#fff;border:1px solid var(--clr-border);
  border-radius:var(--radius-md);padding:var(--sp-6);transition:transform .2s,box-shadow .25s,border-color .2s;}
.feature-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-md);border-color:var(--clr-secondary);}
.feature-icon{display:flex;align-items:center;justify-content:center;width:56px;height:56px;border-radius:var(--radius-md);
  background:linear-gradient(135deg,rgba(140,28,19,.1),rgba(196,112,26,.14));color:var(--clr-primary);margin-bottom:var(--sp-4);}
.feature-icon svg{width:28px;height:28px;}
.feature-title{font-size:1.15rem;font-weight:700;}
.feature-body{margin-top:var(--sp-3);color:var(--clr-muted);font-size:.95rem;line-height:1.85;}

/* ---------- Process band ---------- */
.process-inner{display:grid;grid-template-columns:1fr 1.05fr;gap:var(--sp-8);align-items:center;}
.process-media img{width:100%;border-radius:var(--radius-lg);box-shadow:var(--shadow-md);aspect-ratio:4/3;object-fit:cover;}
.process-steps{display:flex;flex-direction:column;gap:var(--sp-5);margin-block:var(--sp-5);}
.process-steps li{display:flex;gap:var(--sp-4);align-items:flex-start;}
.step-no{flex-shrink:0;width:40px;height:40px;border-radius:var(--radius-pill);display:flex;align-items:center;justify-content:center;
  background:var(--clr-primary);color:#fff;font-weight:800;font-size:1.05rem;}
.process-steps h3{font-size:1.1rem;margin-bottom:4px;}
.process-steps p{color:var(--clr-muted);font-size:.95rem;line-height:1.8;}

/* ---------- Certificates ---------- */
.cert-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--sp-4);}
.cert-chip{display:flex;align-items:center;gap:var(--sp-4);background:var(--clr-dark-2);border:1px solid rgba(255,255,255,.1);
  border-radius:var(--radius-md);padding:var(--sp-4) var(--sp-5);}
.cert-icon{display:flex;align-items:center;justify-content:center;width:50px;height:50px;border-radius:var(--radius-sm);
  background:rgba(212,151,59,.16);color:var(--clr-earth);flex-shrink:0;}
.cert-title{color:#fff;font-size:1.05rem;font-weight:700;}
.cert-issuer{color:#B5B1AA;font-size:.85rem;margin-top:2px;line-height:1.6;}

.cert-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--sp-5);align-items:stretch;}
.cert-card{display:flex;flex-direction:column;height:100%;background:#fff;border:1px solid var(--clr-border);
  border-radius:var(--radius-md);overflow:hidden;transition:transform .2s,box-shadow .25s;}
.cert-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-md);}
.cert-card-media{aspect-ratio:4/3;background:var(--clr-surface);}
.cert-card-media img{width:100%;height:100%;object-fit:cover;}
.cert-card-body{padding:var(--sp-5);display:flex;flex-direction:column;flex:1;}
.cert-badge{display:inline-flex;align-items:center;gap:6px;align-self:flex-start;background:rgba(140,28,19,.08);
  color:var(--clr-primary);font-weight:700;font-size:.85rem;padding:5px 12px;border-radius:var(--radius-pill);margin-bottom:var(--sp-3);}
.cert-card-title{font-size:1.1rem;font-weight:700;}
.cert-card-text{margin-top:var(--sp-2);color:var(--clr-muted);font-size:.92rem;line-height:1.8;}

/* ---------- Timeline (production/export steps) ---------- */
.timeline{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--sp-5);align-items:stretch;}
.timeline-item{position:relative;display:flex;flex-direction:column;height:100%;background:#fff;border:1px solid var(--clr-border);
  border-radius:var(--radius-md);padding:var(--sp-6);padding-block-start:var(--sp-7);}
.timeline-no{position:absolute;inset-block-start:-18px;inset-inline-start:var(--sp-6);width:40px;height:40px;border-radius:var(--radius-pill);
  display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#8C1C13,#C4701A);color:#fff;font-weight:800;box-shadow:var(--shadow-crimson);}
.timeline-icon{display:flex;align-items:center;justify-content:center;width:50px;height:50px;border-radius:var(--radius-sm);
  background:rgba(196,112,26,.12);color:var(--clr-secondary);margin-bottom:var(--sp-4);}
.timeline-title{font-size:1.1rem;font-weight:700;}
.timeline-body{margin-top:var(--sp-3);color:var(--clr-muted);font-size:.93rem;line-height:1.8;}

/* ---------- Page hero (inner pages) ---------- */
.page-hero{background:linear-gradient(135deg,var(--clr-dark) 0%,var(--clr-primary-700) 140%);color:#fff;
  padding-block:var(--sp-8) var(--sp-8);}
.page-hero .eyebrow{background:rgba(212,151,59,.16);color:var(--clr-earth);}
.page-title{color:#fff;font-size:clamp(1.9rem,4vw,2.9rem);font-weight:800;line-height:1.25;}
.page-lead{margin-top:var(--sp-4);color:#DAD6D0;font-size:1.0625rem;line-height:1.85;max-width:720px;}
.crumbs{display:flex;align-items:center;gap:var(--sp-2);font-size:.85rem;color:#C7C3BC;margin-bottom:var(--sp-4);}
.crumbs a{color:var(--clr-earth);}
.crumbs svg{width:15px;height:15px;opacity:.7;}

/* ---------- About ---------- */
.about-split{display:grid;grid-template-columns:1fr 1.1fr;gap:var(--sp-8);align-items:center;}
.about-media img{width:100%;border-radius:var(--radius-lg);box-shadow:var(--shadow-md);aspect-ratio:4/3;object-fit:cover;}
.about-para{margin-top:var(--sp-4);color:var(--clr-text);line-height:1.95;font-size:1.0rem;}
.values-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--sp-5);align-items:stretch;}
.value-card{display:flex;flex-direction:column;height:100%;background:#fff;border:1px solid var(--clr-border);
  border-radius:var(--radius-md);padding:var(--sp-6);}
.value-card h3{font-size:1.15rem;margin-bottom:var(--sp-2);}
.value-card p{color:var(--clr-muted);font-size:.95rem;line-height:1.85;}

.check-list{display:flex;flex-direction:column;gap:var(--sp-3);margin-top:var(--sp-5);}
.check-list li{display:flex;align-items:flex-start;gap:var(--sp-3);font-size:1rem;line-height:1.7;}
.check-list svg{width:22px;height:22px;color:var(--success);flex-shrink:0;margin-top:2px;}

/* ---------- Gallery ---------- */
.gallery-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--sp-4);}
.gallery-grid-lg{gap:var(--sp-5);}
.gallery-item{margin:0;position:relative;border-radius:var(--radius-md);overflow:hidden;border:1px solid var(--clr-border);background:#fff;}
.gallery-item img{width:100%;aspect-ratio:4/3;object-fit:cover;transition:transform .4s ease;}
.gallery-item:hover img{transform:scale(1.05);}
.gallery-item figcaption{position:absolute;inset-inline:0;bottom:0;padding:var(--sp-4);
  background:linear-gradient(to top,rgba(26,31,46,.88),transparent);color:#fff;display:flex;flex-direction:column;gap:2px;}
.gallery-cap-title{font-weight:700;font-size:.95rem;}
.gallery-cap-sub{font-size:.8rem;color:#D8D4CE;}

/* ---------- Catalog ---------- */
.catalog-cat-head{display:flex;align-items:center;gap:var(--sp-4);margin-bottom:var(--sp-5);}
.catalog-cat-icon{display:flex;align-items:center;justify-content:center;width:56px;height:56px;border-radius:var(--radius-md);
  background:linear-gradient(135deg,rgba(140,28,19,.1),rgba(196,112,26,.14));color:var(--clr-primary);flex-shrink:0;}
.catalog-cat-title{font-size:1.4rem;}
.catalog-cat-tagline{color:var(--clr-muted);font-size:.95rem;margin-top:2px;}
.catalog-table-wrap{overflow-x:auto;border:1px solid var(--clr-border);border-radius:var(--radius-md);background:#fff;}
.catalog-table{width:100%;border-collapse:collapse;min-width:640px;}
.catalog-table th,.catalog-table td{padding:14px 18px;text-align:start;border-bottom:1px solid var(--clr-border);vertical-align:top;}
.catalog-table thead th{background:var(--clr-surface);font-weight:700;font-size:.9rem;color:var(--clr-dark);}
.catalog-table tbody tr:last-child td{border-bottom:none;}
.catalog-table strong{font-size:.98rem;}
.catalog-sum{display:block;color:var(--clr-muted);font-size:.83rem;margin-top:3px;line-height:1.6;max-width:360px;}

/* ---------- CTA band ---------- */
.cta-band{background:linear-gradient(135deg,var(--clr-primary) 0%,var(--clr-secondary) 115%);color:#fff;}
.cta-band-soft{background:var(--clr-surface);color:var(--clr-text);}
.cta-band-soft .cta-inner{}
.cta-inner{display:flex;align-items:center;justify-content:space-between;gap:var(--sp-6);flex-wrap:wrap;}
.cta-title{font-size:clamp(1.5rem,3vw,2.1rem);color:#fff;font-weight:800;}
.cta-title-light{color:#fff;}
.cta-band-soft .cta-title,.cta-band-soft .section-title{color:var(--clr-dark);}
.cta-sub{margin-top:var(--sp-3);font-size:1.05rem;color:rgba(255,255,255,.92);max-width:560px;line-height:1.85;}
.cta-sub-light{color:rgba(255,255,255,.92);}
.cta-band-soft .cta-sub,.cta-band-soft .section-lead{color:var(--clr-muted);}
.cta-actions{display:flex;gap:var(--sp-3);flex-wrap:wrap;flex-shrink:0;}

/* ---------- Contact ---------- */
.contact-layout{display:grid;grid-template-columns:0.85fr 1.15fr;gap:var(--sp-7);align-items:start;}
.contact-info{background:var(--clr-dark);color:#fff;border-radius:var(--radius-lg);padding:var(--sp-6);}
.contact-info-title{color:#fff;font-size:1.3rem;margin-bottom:var(--sp-5);}
.contact-list{display:flex;flex-direction:column;gap:var(--sp-5);}
.contact-list li{display:flex;gap:var(--sp-4);align-items:flex-start;}
.contact-ic{display:flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:var(--radius-sm);
  background:rgba(212,151,59,.16);color:var(--clr-earth);flex-shrink:0;}
.contact-label{display:block;font-size:.8rem;color:#A9A59E;margin-bottom:2px;}
.contact-val{color:#fff;font-weight:600;font-size:.98rem;line-height:1.7;word-break:break-word;}
.contact-social{display:flex;gap:var(--sp-3);margin-top:var(--sp-6);flex-wrap:wrap;}
.contact-social .btn{background:rgba(255,255,255,.1);color:#fff;border-color:rgba(255,255,255,.2);}
.contact-social .btn:hover{background:rgba(255,255,255,.2);}
.contact-form-wrap{background:#fff;border:1px solid var(--clr-border);border-radius:var(--radius-lg);padding:var(--sp-6);box-shadow:var(--shadow-sm);}

/* ---------- Forms ---------- */
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:var(--sp-4);}
.field{display:flex;flex-direction:column;gap:var(--sp-2);margin-bottom:var(--sp-4);}
.field label{font-weight:600;font-size:.9rem;color:var(--clr-dark);}
.req{color:var(--clr-primary);margin-inline-start:3px;}
.field input,.field textarea,.field select{width:100%;padding:12px 14px;border:1.5px solid var(--clr-border);
  border-radius:var(--radius-sm);font-family:inherit;font-size:.95rem;background:#fff;color:var(--clr-text);
  transition:border-color .2s,box-shadow .2s;}
.field textarea{resize:vertical;line-height:1.8;}
.field input:focus,.field textarea:focus,.field select:focus{outline:none;border-color:var(--clr-primary);
  box-shadow:0 0 0 3px rgba(140,28,19,.12);}
.field-hint{font-size:.78rem;color:var(--clr-muted);}

/* ---------- Alerts ---------- */
.alert{display:flex;align-items:flex-start;gap:var(--sp-3);padding:var(--sp-4);border-radius:var(--radius-sm);
  margin-bottom:var(--sp-5);line-height:1.7;}
.alert svg{flex-shrink:0;margin-top:2px;}
.alert strong{display:block;}
.alert span{font-size:.92rem;}
.alert-success{background:rgba(47,125,79,.1);color:#1f5f3a;border:1px solid rgba(47,125,79,.25);}
.alert-success svg{color:var(--success);}
.alert-error{background:rgba(180,35,26,.08);color:#8a1c14;border:1px solid rgba(180,35,26,.25);}
.alert-error svg{color:var(--error);}

/* ---------- Error page ---------- */
.error-page{text-align:center;}
.error-inner{display:flex;flex-direction:column;align-items:center;}
.error-code{font-size:clamp(4rem,12vw,7rem);font-weight:800;color:var(--clr-primary);line-height:1;
  background:linear-gradient(135deg,#8C1C13,#C4701A);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;}
.error-page .hero-actions{justify-content:center;}

/* ---------- Footer ---------- */
.site-footer{background:var(--clr-dark);color:#C7C3BC;}
.footer-grid{display:grid;grid-template-columns:1.6fr 1fr 1fr 1.4fr;gap:var(--sp-6);padding-block:var(--sp-8) var(--sp-7);}
.footer-logo{height:40px;width:auto;margin-bottom:var(--sp-4);filter:brightness(0) invert(1);}
.footer-about{font-size:.92rem;line-height:1.9;color:#B5B1AA;max-width:340px;}
.footer-social{display:flex;gap:var(--sp-3);margin-top:var(--sp-5);}
.footer-social a{display:flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:var(--radius-sm);
  background:rgba(255,255,255,.08);color:#fff;transition:background .2s,transform .2s;}
.footer-social a:hover{background:var(--clr-primary);transform:translateY(-2px);}
.footer-head{color:#fff;font-size:1.05rem;margin-bottom:var(--sp-4);}
.footer-links{display:flex;flex-direction:column;gap:var(--sp-3);}
.footer-links a,.footer-addr{display:flex;align-items:center;gap:var(--sp-2);font-size:.92rem;color:#B5B1AA;transition:color .2s;line-height:1.7;}
.footer-links a:hover{color:var(--clr-earth);}
.footer-links svg{color:var(--clr-earth);flex-shrink:0;}
.footer-addr{align-items:flex-start;}
.footer-addr svg{margin-top:3px;}
.footer-bottom{border-top:1px solid rgba(255,255,255,.1);}
.footer-bottom-inner{display:flex;align-items:center;justify-content:space-between;gap:var(--sp-3);
  padding-block:var(--sp-4);flex-wrap:wrap;font-size:.85rem;color:#8F8B84;}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width:1024px){
  :root{--pad:24px;}
  .product-grid{grid-template-columns:repeat(2,1fr);}
  .tabs{grid-template-columns:repeat(2,1fr);}
  .feature-grid,.cert-grid,.cert-cards,.timeline,.values-grid,.gallery-grid{grid-template-columns:repeat(2,1fr);}
  .footer-grid{grid-template-columns:1fr 1fr;gap:var(--sp-7);}
  .process-inner,.about-split,.contact-layout{grid-template-columns:1fr;gap:var(--sp-6);}
  .process-media,.about-media{order:-1;}
}

@media (max-width:768px){
  :root{--pad:18px;--header-h:64px;}
  .section{padding-block:var(--sp-7);}
  .main-nav,.header-cta{display:none;}
  .nav-toggle{display:flex;}
  .brand{margin-inline-end:auto;}
  .header-inner{gap:var(--sp-3);}

  .hero-content{padding-block:var(--sp-8) var(--sp-9);min-height:auto;}
  .hero-slide,.hero-content{min-height:560px;}
  .hero-actions .btn{flex:1 1 auto;}

  .stats-row{grid-template-columns:repeat(2,1fr);gap:var(--sp-4);}
  .section-head{margin-bottom:var(--sp-6);}

  .feature-grid,.cert-grid,.cert-cards,.timeline,.values-grid,.gallery-grid,.gallery-grid-lg{grid-template-columns:1fr;}
  .product-card{max-width:none;flex-basis:100%;}

  .cta-inner{flex-direction:column;align-items:flex-start;}
  .cta-actions{width:100%;}
  .cta-actions .btn{flex:1 1 auto;}

  .footer-grid{grid-template-columns:1fr;gap:var(--sp-6);padding-block:var(--sp-7) var(--sp-6);}
  .footer-bottom-inner{flex-direction:column;align-items:flex-start;gap:var(--sp-2);}
}

/* 2-category tab layout */
.tabs{grid-template-columns:repeat(2,1fr);}

/* PNG logo in footer: remove invert, show on subtle frosted bg */
.footer-logo{filter:none;background:rgba(255,255,255,.12);border-radius:var(--radius-sm);padding:4px 8px;}

@media (max-width:540px){
  .product-grid{grid-template-columns:1fr;}
  .tabs{grid-template-columns:1fr;}
  .form-row{grid-template-columns:1fr;gap:0;}
  .hero-title{font-size:1.85rem;}
  .tab{padding:14px 16px;}
}

/* ---------- Catalog mobile cards ---------- */
@media (max-width:768px){
  .catalog-table-wrap{border:none;background:transparent;overflow:visible;}
  .catalog-table{min-width:0;border-collapse:separate;border-spacing:0;}
  .catalog-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);}
  .catalog-table tbody tr{display:block;background:#fff;border:1px solid var(--clr-border);
    border-radius:var(--radius-md);margin-bottom:var(--sp-4);padding:var(--sp-2) var(--sp-4);}
  .catalog-table tbody td{display:flex;justify-content:space-between;gap:var(--sp-4);border-bottom:1px dashed var(--clr-border);
    padding:10px 0;text-align:end;}
  .catalog-table tbody tr td:last-child{border-bottom:none;}
  .catalog-table tbody td::before{content:attr(data-label);font-weight:700;color:var(--clr-dark);text-align:start;}
  .catalog-sum{max-width:none;text-align:end;}
  .catalog-table td[data-label="محصول"]{flex-direction:column;align-items:flex-end;}
  .catalog-table td[data-label="محصول"]::before{align-self:flex-start;}
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;
    transition-duration:.001ms!important;scroll-behavior:auto!important;}
  .gallery-item:hover img{transform:none;}
}

/* =====================================================================
   HERO REDESIGN — split banner, artwork shown whole (no crop)
   ===================================================================== */
.hero{background:linear-gradient(180deg,#F4ECE0 0%,var(--clr-page) 100%);border-bottom:1px solid var(--clr-border);}
.hero-slide{min-height:0;}
.hero-inner{display:grid;grid-template-columns:.95fr 1.05fr;align-items:center;gap:var(--sp-8);padding-block:var(--sp-7) var(--sp-5);}
.hero-content{position:relative;z-index:1;display:flex;flex-direction:column;align-items:flex-start;
  justify-content:center;min-height:0;padding-block:0;max-width:none;color:var(--clr-text);}
.hero-media{position:relative;inset:auto;z-index:0;background:#fff;border:1px solid var(--clr-border);
  border-radius:var(--radius-lg);box-shadow:var(--shadow-lg);overflow:hidden;}
.hero-media img{width:100%;height:auto;max-height:520px;object-fit:contain;object-position:center;}
.hero-overlay{display:none;}
.hero-kicker{background:rgba(140,28,19,.07);color:var(--clr-primary);border-color:rgba(140,28,19,.22);margin-bottom:var(--sp-3);}
.hero-title{color:var(--clr-dark);font-size:clamp(1.85rem,3.4vw,2.85rem);}
.hero-subtitle{margin-top:var(--sp-2);font-size:clamp(1rem,2vw,1.3rem);color:var(--clr-secondary);}
.hero-body{margin-top:var(--sp-3);color:var(--clr-muted);max-width:56ch;}
.hero-actions{margin-top:var(--sp-5);}
.hero-controls{position:static;padding-block:0 var(--sp-6);}
.hero-arrow{background:#fff;border:1px solid var(--clr-border);color:var(--clr-primary);box-shadow:var(--shadow-xs);}
.hero-arrow:hover{background:var(--clr-primary);border-color:var(--clr-primary);color:#fff;}
.hero-dot{background:rgba(26,31,46,.22);}
.hero-dot.is-active{background:var(--clr-primary);}

@media (max-width:1024px){
  .hero-inner{grid-template-columns:1fr;gap:var(--sp-5);padding-block:var(--sp-5) var(--sp-4);}
  .hero-media{order:-1;}
  .hero-media img{max-height:420px;}
}
@media (max-width:768px){
  .hero-slide,.hero-content{min-height:0;padding-block:0;}
  .hero-title{font-size:1.7rem;}
  .hero-media img{max-height:none;}
}

/* Logo slightly larger — the brand must stay the dominant element of the bar */
.header-inner{height:84px;}
.brand-logo{height:54px;width:auto;}
@media (max-width:1100px){
  .header-inner{gap:var(--sp-3);}
  .brand-logo{height:46px;}
  .main-nav a{padding:9px 8px;font-size:.875rem;}
}
@media (max-width:768px){
  .header-inner{height:68px;}
  .brand-logo{height:44px;}
}

/* Product cards: whole packshot visible instead of a cropped frame */
.product-thumb{background:#fff;padding:var(--sp-3);}
.product-thumb img{object-fit:contain;}

/* Stats strip: flexible columns (one counter was removed) */
.stats-row{grid-template-columns:repeat(auto-fit,minmax(190px,1fr));}

/* =====================================================================
   HERO: full-width banner again (was split into two halves)
   ===================================================================== */
.hero{background:none;border-bottom:none;}
.hero-slide{min-height:min(78vh,640px);}
.hero-inner{display:block;padding-block:0;}
.hero-content{position:relative;z-index:1;min-height:min(78vh,640px);max-width:780px;padding-block:var(--sp-9) var(--sp-10);color:#fff;}
.hero-media{position:absolute;inset:0;z-index:0;background:var(--clr-dark);border:0;border-radius:0;box-shadow:none;overflow:hidden;}
.hero-media::after{content:"";position:absolute;inset:0;background:linear-gradient(135deg,rgba(26,31,46,.90) 0%,rgba(140,28,19,.74) 100%);}
.hero-media img{width:100%;height:100%;max-height:none;object-fit:cover;object-position:center;}
.hero-kicker{background:rgba(212,151,59,.2);color:#F3E4CC;border-color:rgba(212,151,59,.4);}
.hero-title{color:#fff;font-size:clamp(2rem,5vw,3.25rem);}
.hero-subtitle{color:var(--clr-earth);}
.hero-body{color:#E6E3DE;max-width:600px;}
.hero-controls{position:absolute;inset-inline:0;bottom:var(--sp-5);z-index:2;padding-block:0;}
.hero-arrow{background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.35);color:#fff;box-shadow:none;}
.hero-arrow:hover{background:rgba(255,255,255,.28);border-color:#fff;color:#fff;}
.hero-dot{background:rgba(255,255,255,.4);}
.hero-dot.is-active{background:var(--clr-earth);}
@media (max-width:1024px){
  .hero-inner{gap:0;padding-block:0;}
  .hero-media{order:0;}
}
@media (max-width:768px){
  .hero-slide,.hero-content{min-height:480px;padding-block:var(--sp-7);}
  .hero-media img{max-height:none;}
}

/* ---------- Mobile nav: smooth slide-in from the left ---------- */
@media (max-width:768px){
  .mobile-nav{
    transform:translateX(-100%);
    opacity:0;
    visibility:hidden;
    will-change:transform,opacity;
    backface-visibility:hidden;
    transition:transform .38s cubic-bezier(.22,.61,.36,1),
               opacity .3s ease,
               visibility 0s linear .38s;
  }
  .mobile-nav.is-open{
    transform:translateX(0);
    opacity:1;
    visibility:visible;
    transition:transform .38s cubic-bezier(.22,.61,.36,1),
               opacity .3s ease,
               visibility 0s linear 0s;
  }
}
@media (max-width:768px) and (prefers-reduced-motion:reduce){
  .mobile-nav,.mobile-nav.is-open{transition:none;}
  .mobile-nav{transform:none;}
}

/* ---------- Phone number: keep E.164 order (+98...) intact in RTL ---------- */
.phone-num{direction:ltr;unicode-bidi:isolate;display:inline-block;text-align:left;letter-spacing:0;}

/* =====================================================================
   HERO BANNER — bright banner: headline beside the product photo,
   light background, pill CTA, dots under the banner (reference layout)
   ===================================================================== */
.hero{background:linear-gradient(180deg,#F7F0E4 0%,var(--clr-page) 100%);border-bottom:1px solid var(--clr-border);}
.hero-slide{min-height:0;}
.hero-inner{display:grid;grid-template-columns:1fr 1.08fr;align-items:center;
  gap:var(--sp-7);padding-block:var(--sp-7) var(--sp-5);}
.hero-content{position:relative;z-index:1;min-height:0;max-width:none;
  padding-block:0;color:var(--clr-text);justify-content:center;}
.hero-media{position:relative;inset:auto;z-index:0;background:#fff;
  border:0;border-radius:var(--radius-lg);box-shadow:var(--shadow-lg);overflow:hidden;}
.hero-media::after{content:none;}
.hero-media img{width:100%;height:auto;max-height:min(60vh,520px);object-fit:contain;object-position:center;}
.hero-kicker{background:rgba(140,28,19,.07);color:var(--clr-primary);border-color:rgba(140,28,19,.22);}
.hero-title{color:var(--clr-dark);font-size:clamp(1.9rem,3.6vw,2.9rem);}
.hero-subtitle{color:var(--clr-secondary);}
.hero-body{color:var(--clr-muted);max-width:56ch;}
.hero-actions .btn{border-radius:var(--radius-pill);}
.hero-controls{position:static;inset-inline:auto;bottom:auto;padding-block:0 var(--sp-6);}
.hero-arrow{background:#fff;border:1px solid var(--clr-border);color:var(--clr-primary);box-shadow:var(--shadow-xs);}
.hero-arrow:hover{background:var(--clr-primary);border-color:var(--clr-primary);color:#fff;}
.hero-dot{background:rgba(26,31,46,.22);}
.hero-dot.is-active{background:var(--clr-primary);}

@media (max-width:1024px){
  .hero-inner{grid-template-columns:1fr;gap:var(--sp-5);padding-block:var(--sp-5) var(--sp-4);}
  .hero-media{order:-1;}
  .hero-media img{max-height:min(45vh,400px);}
}
@media (max-width:768px){
  .hero-slide,.hero-content{min-height:0;padding-block:0;}
  .hero-title{font-size:1.75rem;}
  .hero-media img{max-height:none;}
}

/* Footer logo: bright chip so the dark wordmark stays legible on the dark bar */
.site-footer .footer-logo{background:#FBF8F2;padding:6px 10px;border-radius:var(--radius-sm);}

/* =====================================================================
   HERO REDESIGN — reference composition: copy on the left, product photo
   on the right, soft cream light, forest-green pill CTA, centred dots.
   Slides cross-fade in place so image and copy change together.
   ===================================================================== */
.hero{
  background:
    radial-gradient(130% 120% at 88% 18%,#FCF7EE 0%,#F7EFE0 52%,#F1E6D3 100%);
  border-bottom:1px solid var(--clr-border);
  overflow:hidden;
}
.hero-slider{display:grid;position:relative;}
.hero-slide{
  grid-area:1/1;display:block;position:relative;min-height:0;
  opacity:0;visibility:hidden;pointer-events:none;
  transition:opacity .85s ease,visibility 0s linear .85s;
}
.hero-slide.is-active{
  opacity:1;visibility:visible;pointer-events:auto;animation:none;
  transition:opacity .85s ease,visibility 0s linear 0s;
}
.hero-inner{
  display:grid;direction:ltr;
  grid-template-columns:minmax(0,1fr) minmax(0,1.02fr);
  grid-template-areas:"content media";
  align-items:center;
  column-gap:clamp(20px,4vw,60px);
  min-height:clamp(400px,37vw,525px);
  padding-block:clamp(26px,3.6vw,48px) clamp(60px,6vw,82px);
}
.hero-content{
  grid-area:content;direction:rtl;position:relative;z-index:1;min-height:0;max-width:none;
  display:flex;flex-direction:column;align-items:flex-start;justify-content:center;
  padding-block:0;color:var(--clr-text);text-align:right;
}
.hero-media{
  grid-area:media;direction:rtl;position:relative;inset:auto;z-index:0;
  display:flex;align-items:center;justify-content:center;
  height:100%;min-height:clamp(300px,32vw,470px);
  background:transparent;border:0;border-radius:0;box-shadow:none;overflow:visible;
}
.hero-media::after{content:none;}
.hero-media img{
  width:auto;max-width:100%;height:auto;
  max-height:clamp(310px,35vw,485px);
  object-fit:contain;object-position:center;
  border-radius:clamp(14px,1.8vw,22px);
  box-shadow:0 26px 55px -34px rgba(26,31,46,.45);
}

.hero-kicker{
  background:none;border:0;border-radius:0;padding:0;margin-bottom:10px;
  color:#2F5D4A;font-size:.8125rem;font-weight:700;letter-spacing:.03em;
}
.hero-kicker svg{width:16px;height:16px;color:#2F5D4A;}
.hero-title{
  color:#171717;font-size:clamp(1.9rem,3.7vw,3rem);font-weight:800;
  line-height:1.3;letter-spacing:-.015em;
}
.hero-subtitle{
  margin-top:12px;color:#403F3C;
  font-size:clamp(1.05rem,1.9vw,1.4rem);font-weight:600;
}
.hero-body{
  margin-top:14px;color:#625D57;font-size:1rem;line-height:1.9;max-width:48ch;
}
.hero-actions{margin-top:clamp(20px,2.4vw,30px);gap:12px;}
.hero-actions .btn{border-radius:var(--radius-pill);}
.hero-actions .btn-primary{
  background:#1F4D3D;border-color:#1F4D3D;color:#fff;
  box-shadow:0 14px 28px -18px rgba(31,77,61,.85);
}
.hero-actions .btn-primary:hover{background:#173D30;border-color:#173D30;}
.hero-actions .btn-ghost{
  background:transparent;border:1px solid rgba(31,77,61,.35);color:#1F4D3D;
}
.hero-actions .btn-ghost:hover{
  background:rgba(31,77,61,.06);border-color:#1F4D3D;color:#173D30;
}

.hero-controls{
  position:absolute;inset-inline:0;bottom:clamp(10px,1.6vw,18px);
  z-index:3;display:grid;grid-template-columns:auto 1fr auto;align-items:center;
  gap:12px;padding-inline:clamp(16px,3vw,34px);pointer-events:none;
}
.hero-arrow{
  pointer-events:auto;width:40px;height:40px;
  background:rgba(255,255,255,.78);border:1px solid rgba(26,31,46,.10);
  color:#1F4D3D;box-shadow:0 8px 20px -14px rgba(26,31,46,.65);
}
.hero-arrow:hover{background:#1F4D3D;border-color:#1F4D3D;color:#fff;}
.hero-dots{
  grid-column:2;justify-self:center;pointer-events:auto;
  gap:8px;padding:7px 12px;border-radius:var(--radius-pill);
  background:rgba(255,255,255,.66);border:1px solid rgba(26,31,46,.07);
  backdrop-filter:blur(6px);
}
.hero-dot{width:8px;height:8px;background:rgba(26,31,46,.24);}
.hero-dot:hover{background:rgba(26,31,46,.42);}
.hero-dot.is-active{background:#1F4D3D;width:26px;}

@media (max-width:1024px){
  .hero-inner{
    grid-template-columns:1fr;
    grid-template-areas:"media" "content";
    row-gap:clamp(14px,2.4vw,22px);
    min-height:0;padding-block:clamp(20px,3vw,30px) clamp(56px,6vw,70px);
  }
  .hero-media{order:0;min-height:0;height:auto;}
  .hero-media img{max-height:min(42vh,380px);max-width:100%;}
  .hero-content{align-items:center;text-align:center;}
  .hero-body{max-width:52ch;}
}
@media (max-width:768px){
  .hero-slide,.hero-content{min-height:0;padding-block:0;}
  .hero-inner{
    column-gap:0;padding-block:18px 58px;
  }
  .hero-media img{max-height:min(38vh,320px);border-radius:14px;}
  .hero-kicker{margin-bottom:8px;font-size:.75rem;}
  .hero-title{font-size:clamp(1.55rem,6.4vw,1.95rem);line-height:1.35;}
  .hero-subtitle{margin-top:8px;font-size:1rem;}
  .hero-body{margin-top:10px;font-size:.9375rem;line-height:1.85;max-width:46ch;}
  .hero-actions{margin-top:18px;gap:10px;}
  .hero-arrow{width:34px;height:34px;}
  .hero-dots{padding:6px 10px;gap:7px;}
}
@media (max-width:480px){
  .hero-inner{padding-inline:16px;padding-block:14px 54px;}
  .hero-media img{max-height:min(34vh,250px);}
  .hero-actions{width:100%;flex-direction:column;align-items:stretch;}
  .hero-actions .btn{width:100%;padding:13px 18px;font-size:.9375rem;}
  .hero-controls{padding-inline:12px;}
}
@media (prefers-reduced-motion:reduce){
  .hero-slide,.hero-slide.is-active{transition:none;}
}

/* =====================================================================
   HERO — full-bleed per-slide background images (overrides split layout)
   ===================================================================== */
.hero{
  background:var(--clr-dark);
  border-bottom:none;
  overflow:hidden;
}
.hero-slide{
  min-height:min(78vh,640px);
  background-size:cover;
  background-position:center center;
  background-repeat:no-repeat;
}
/* Dark overlay removed — images shown at full brightness */
.hero-slide::before{
  display:none;
}
/* Full-width single-column content — no split grid */
.hero-inner{
  display:block;
  padding-block:clamp(72px,9vw,110px) clamp(80px,10vw,120px);
}
.hero-content{
  position:relative;
  z-index:1;
  min-height:0;
  max-width:700px;
  padding-block:0;
  color:var(--clr-dark);
  align-items:flex-start;
  text-align:right;
}
/* The standalone media element is gone; hide it if any residual markup exists */
.hero-media{display:none;}
/* Text colours — adjusted for legibility on bright hero images */
.hero-kicker{background:rgba(212,151,59,.18);color:var(--clr-dark);border:1px solid rgba(212,151,59,.5);padding:7px 16px;}
.hero-kicker svg{color:var(--clr-secondary);}
.hero-title{color:var(--clr-dark);font-size:clamp(2rem,5vw,3.25rem);}
.hero-subtitle{color:var(--clr-primary);}
.hero-body{color:var(--clr-dark);max-width:600px;}
/* CTA buttons */
.hero-actions .btn-primary{background:#1F4D3D;border-color:#1F4D3D;color:#fff;box-shadow:0 14px 28px -18px rgba(31,77,61,.85);border-radius:var(--radius-pill);}
.hero-actions .btn-primary:hover{background:#173D30;border-color:#173D30;}
.hero-actions .btn-ghost{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.35);color:#fff;border-radius:var(--radius-pill);}
.hero-actions .btn-ghost:hover{background:rgba(255,255,255,.22);border-color:#fff;}
/* Slider controls — dark overlay context */
.hero-controls{position:absolute;inset-inline:0;bottom:clamp(10px,1.6vw,18px);z-index:3;padding-block:0;}
.hero-arrow{background:rgba(0,0,0,.22);border-color:rgba(0,0,0,.30);color:#fff;box-shadow:none;}
.hero-arrow:hover{background:rgba(0,0,0,.38);border-color:rgba(0,0,0,.50);color:#fff;}
.hero-dot{background:rgba(0,0,0,.30);}
.hero-dot.is-active{background:var(--clr-earth);}
.hero-dots{background:rgba(0,0,0,.12);border-color:rgba(0,0,0,.18);}
@media (max-width:1024px){
  .hero-slide{min-height:min(70vh,520px);}
  .hero-inner{padding-block:clamp(50px,7vw,80px) clamp(70px,8vw,100px);}
  .hero-content{align-items:flex-start;text-align:right;}
  .hero-slide::before{display:none;}
}
@media (max-width:768px){
  .hero-slide{min-height:460px;}
  .hero-inner{padding-block:40px 70px;}
  .hero-content{max-width:none;}
  .hero-slide::before{display:none;}
}
@media (max-width:480px){
  .hero-slide{min-height:360px;}
  .hero-inner{padding-inline:16px;padding-block:32px 60px;}
}

/* =====================================================================
   Main header menu (desktop): all items on one line, even spacing
   Only the navigation items are sized/spaced; the rest of the header,
   the logo, the phone/CTA buttons and the <=1024px layout stay as-is.
   ===================================================================== */
@media (min-width:1201px){
  .main-nav ul{flex-wrap:nowrap;gap:4px;}
  .main-nav li{flex:0 0 auto;}
  .main-nav a{white-space:nowrap;padding:9px 11px;font-size:.9063rem;line-height:1.4;}
}
@media (min-width:1025px) and (max-width:1200px){
  .main-nav ul{flex-wrap:nowrap;gap:2px;}
  .main-nav li{flex:0 0 auto;}
  .main-nav a{white-space:nowrap;padding:9px 7px;font-size:.875rem;line-height:1.4;}
}

/* =====================================================================
   HERO — text group centred in the whole banner
   Kicker, title, subtitle, body and buttons form one block that is
   centred horizontally and vertically inside the full hero area (not
   inside a leftover column), identically on every slide so switching
   slides never shifts the copy.
   ===================================================================== */
.hero-slide,
.hero-slide.is-active{
  display:flex;
  align-items:center;
  justify-content:center;
}
.hero-inner{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  width:100%;
  padding-block:clamp(56px,7vw,92px);
}
.hero-content{
  align-items:center;
  justify-content:center;
  text-align:center;
  max-width:760px;
  margin-inline:auto;
}
.hero-kicker{margin-bottom:clamp(8px,1vw,12px);}
.hero-title{text-align:center;}
.hero-subtitle{margin-top:clamp(10px,1.1vw,14px);text-align:center;}
.hero-body{
  margin-top:clamp(12px,1.3vw,18px);
  max-width:62ch;
  margin-inline:auto;
  text-align:center;
}
.hero-actions{
  justify-content:center;
  margin-top:clamp(18px,2.2vw,28px);
}
@media (max-width:1024px){
  .hero-inner{grid-template-columns:none;padding-block:clamp(46px,6vw,70px);}
  .hero-content{align-items:center;text-align:center;}
  .hero-body{max-width:56ch;}
}
@media (max-width:768px){
  .hero-inner{padding-block:clamp(38px,7vw,52px);}
  .hero-body{max-width:50ch;}
}
@media (max-width:480px){
  .hero-inner{padding-block:clamp(32px,8vw,44px);}
  .hero-body{max-width:100%;}
}

/* Remove background from footer logo */
.site-footer .footer-logo,.footer-logo{background:none !important;padding:0 !important;border-radius:0 !important;}

/* =====================================================================
   HERO — glass content panel for better readability
   The background photos stay untouched: no overlay, darkening filter or
   gradient is applied. Only the copy block (kicker, title, subtitle,
   body, CTA) sits in a light frosted-glass panel. Applies equally to
   every slide, so switching slides never shifts the layout.
   ===================================================================== */
.hero-inner{
  padding-block:clamp(36px,4vw,52px) clamp(96px,10vw,140px);
}
.hero-content{
  width:min(100%,720px);
  max-width:720px;
  margin-inline:auto;
  padding:clamp(24px,2.8vw,40px) clamp(22px,3.2vw,44px);
  background:rgba(255,255,255,.55);
  border:1px solid rgba(255,255,255,.7);
  border-radius:clamp(16px,2vw,24px);
  box-shadow:0 12px 32px -26px rgba(26,31,46,.38), inset 0 1px 0 rgba(255,255,255,.7);
  -webkit-backdrop-filter:blur(12px) saturate(135%);
  backdrop-filter:blur(12px) saturate(135%);
}
/* Slightly deeper text tones inside the light panel */
.hero-title{color:var(--clr-dark);}
.hero-subtitle{color:var(--clr-primary-700);}
.hero-body{color:#262B36;max-width:58ch;}
.hero-actions{margin-top:clamp(18px,2.2vw,26px);}
/* Opaque fallback where backdrop-filter is unsupported */
@supports not ((-webkit-backdrop-filter:blur(2px)) or (backdrop-filter:blur(2px))){
  .hero-content{background:rgba(255,255,255,.84);}
}
@media (max-width:1024px){
  .hero-inner{padding-block:clamp(30px,4vw,48px) clamp(88px,9vw,112px);}
  .hero-content{max-width:640px;padding:clamp(20px,2.6vw,30px) clamp(18px,3vw,30px);}
}
@media (max-width:768px){
  .hero-inner{padding-block:32px 78px;}
  .hero-content{width:100%;max-width:100%;padding:22px 18px;border-radius:16px;background:rgba(255,255,255,.62);}
  .hero-body{max-width:100%;}
}
@media (max-width:480px){
  .hero-inner{padding-block:26px 70px;}
  .hero-content{padding:18px 15px;border-radius:14px;}
}

/* =====================================================================
   HERO — plain headline + single CTA (glass panel removed)
   Only the slide title and the "مشاهده محصولات" button remain. The pair
   is centred horizontally and placed in the upper part of the banner so
   the products in the artwork stay uncovered. No panel, blur layer,
   gradient or darkening is drawn over the background photos.
   ===================================================================== */
.hero-slide,
.hero-slide.is-active{
  align-items:flex-start;
  justify-content:center;
}
.hero-inner{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  width:100%;
  min-height:0;
  padding-block:clamp(40px,6vw,88px) clamp(110px,12vw,150px);
}
.hero-content{
  width:min(100%,880px);
  max-width:880px;
  margin-inline:auto;
  padding:0;
  background:none;
  border:0;
  border-radius:0;
  box-shadow:none;
  -webkit-backdrop-filter:none;
  backdrop-filter:none;
  align-items:center;
  justify-content:flex-start;
  text-align:center;
}
.hero-title{
  color:#171717;
  font-size:clamp(1.9rem,4.4vw,3.1rem);
  font-weight:800;
  line-height:1.35;
  text-align:center;
  max-width:22ch;
  margin-inline:auto;
}
.hero-actions{
  width:auto;
  margin-top:clamp(18px,2.6vw,30px);
  justify-content:center;
  align-items:center;
}
@media (max-width:1024px){
  .hero-inner{padding-block:clamp(34px,5vw,56px) clamp(96px,11vw,120px);}
  .hero-title{font-size:clamp(1.75rem,4.6vw,2.4rem);max-width:20ch;}
}
@media (max-width:768px){
  .hero-inner{padding-block:30px clamp(86px,12vw,110px);}
  .hero-title{font-size:clamp(1.5rem,6vw,2rem);line-height:1.4;max-width:18ch;}
  .hero-actions{width:auto;margin-top:18px;flex-direction:row;justify-content:center;}
}
@media (max-width:480px){
  .hero-inner{padding-block:26px 84px;padding-inline:16px;}
  .hero-title{font-size:clamp(1.4rem,7vw,1.75rem);line-height:1.45;max-width:16ch;}
  .hero-actions{width:100%;margin-top:16px;flex-direction:column;align-items:stretch;}
  .hero-actions .btn{width:100%;}
}

/* =====================================================================
   HOMEPAGE — hero 65px taller, stats strip 60px high
   1) Each hero slide gets 65px more height, so the strip that follows it
      in normal flow sits 65px lower and more of the hero photo is shown.
      No transform, margin or absolute offset is used.
   2) The strip itself is exactly 60px tall on tablet/desktop; the numbers
      and labels are scaled down and vertically centred inside it.
      On phones the stats grid uses two columns, so the bar keeps a 60px
      minimum and grows with its own content instead of clipping it.
   ===================================================================== */
.hero-slide{min-height:calc(min(78vh,640px) + 65px);}

.stats-strip-home{
  min-height:60px;
  padding-block:var(--sp-2);
  display:flex;
  align-items:center;
}
.stats-strip-home .stats-row{
  width:100%;
  align-items:center;
  row-gap:var(--sp-2);
}
.stats-strip-home .stat{
  padding:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:3px;
}
.stats-strip-home .stat-value{
  font-size:clamp(1.25rem,2.2vw,1.625rem);
  line-height:1.15;
}
.stats-strip-home .stat-label{
  margin-top:0;
  font-size:clamp(.75rem,1.05vw,.8125rem);
  line-height:1.3;
}
@media (min-width:769px){
  .stats-strip-home{height:60px;padding-block:0;}
}
@media (max-width:1024px){
  .hero-slide{min-height:calc(min(70vh,520px) + 65px);}
}
@media (max-width:768px){
  .hero-slide{min-height:calc(460px + 65px);}
}
@media (max-width:480px){
  .hero-slide{min-height:calc(360px + 65px);}
}

/* =====================================================================
   HERO — 16:9 aspect ratio for 1920×1080 background photos
   Height tracks viewport width at 9/16 so the whole image is visible
   without cropping. min-height guards prevent the content from being
   squeezed on very narrow screens. Stats strip sits in normal document
   flow directly after the hero with explicit no-overlap guard.
   ===================================================================== */
.hero-slide,
.hero-slide.is-active {
  aspect-ratio: 16/9;
  min-height: 420px;
}
@media (max-width:1024px){
  .hero-slide,
  .hero-slide.is-active { aspect-ratio: 16/9; min-height: 380px; }
}
@media (max-width:768px){
  .hero-slide,
  .hero-slide.is-active { aspect-ratio: 16/9; min-height: 320px; }
}
@media (max-width:480px){
  .hero-slide,
  .hero-slide.is-active { aspect-ratio: 16/9; min-height: 300px; }
}

/* Stats strip: explicit normal-flow positioning — no overlap with hero */
.stats-strip-home {
  position: static;
  margin-top: 0;
  transform: none;
}

/* =====================================================================
   HERO — mobile-only vertical redesign  (≤767 px only)
   Three zones top → bottom:
     1. Title (right-aligned, top)
     2. Product background photo visible and unobstructed in the middle
     3. Full-width forest-green CTA button → touch-friendly slider controls
   Desktop and tablet (≥768 px) are completely unchanged.
   ===================================================================== */
@media (max-width:767px){
  /* Replace landscape 16:9 ratio with a portrait-friendly fixed height.
     The taller container makes the cover-scaled background photo appear
     larger (more zoom) so products are more prominent. */
  .hero-slide,
  .hero-slide.is-active{
    aspect-ratio:auto;
    min-height:520px;
    align-items:flex-start;
  }
  /* Full-height flex column so title and button span the whole slide */
  .hero-inner{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    justify-content:flex-start;
    min-height:520px;
    padding-block:0;
  }
  /* Title pinned to top; CTA button pushed to bottom via auto margin */
  .hero-content{
    flex:1;
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    justify-content:flex-start;
    text-align:right;
    max-width:none;
    width:100%;
    margin-inline:0;
    padding:0;
    padding-top:24px;
    padding-bottom:80px; /* clear the absolute slider controls */
  }
  /* Right-aligned title, mobile-friendly font size and line-height */
  .hero-title{
    text-align:right;
    font-size:clamp(1.35rem,5.5vw,1.7rem);
    line-height:1.4;
    max-width:none;
    margin-inline:0;
  }
  /* Full-width CTA at the bottom of the content column */
  .hero-actions{
    margin-top:auto;
    width:100%;
    justify-content:center;
    flex-direction:row;
    margin-inline:0;
  }
  .hero-actions .btn{
    width:100%;
    padding:15px 20px;
    font-size:1rem;
    justify-content:center;
  }
  /* Touch-friendly slider controls at very bottom, don't overlap button */
  .hero-controls{
    bottom:14px;
    padding-inline:16px;
    gap:16px;
  }
  .hero-arrow{width:44px;height:44px;}
  .hero-dots{padding:7px 12px;}
  .hero-dot{width:9px;height:9px;}
  .hero-dot.is-active{width:24px;}
}
@media (max-width:420px){
  .hero-slide,
  .hero-slide.is-active{min-height:460px;}
  .hero-inner{min-height:460px;}
  .hero-title{font-size:clamp(1.2rem,5.2vw,1.45rem);}
  .hero-controls{padding-inline:12px;}
  .hero-arrow{width:40px;height:40px;}
}

/* =====================================================================
   HERO — photos cropped to 1920×880 (bottom 200 px removed in the file)
   The background endpoint serves the top-anchored 1920×880 crop, so the
   container follows the same 2.18:1 ratio and shows the whole photo with
   no further cropping or stretching. On tablets/phones the photo keeps
   its proportions (cover, anchored at the top) so the upper, important
   part stays visible. The stats strip stays in normal flow below the
   hero and keeps its previous 70 px height.
   ===================================================================== */
.hero-slide,
.hero-slide.is-active{
  aspect-ratio:1920/880;
  min-height:360px;
  background-size:cover;
  background-position:center top;
  background-repeat:no-repeat;
}
@media (max-width:1024px){
  .hero-slide,
  .hero-slide.is-active{aspect-ratio:1920/880;min-height:340px;}
}
@media (max-width:767px){
  .hero-slide,
  .hero-slide.is-active{aspect-ratio:auto;min-height:500px;background-position:center top;}
}
@media (max-width:420px){
  .hero-slide,
  .hero-slide.is-active{min-height:460px;}
}

/* Stats strip: always after the hero in normal flow, 70 px high as before */
.stats-strip-home{
  position:static;
  margin-top:0;
  clear:both;
  min-height:70px;
}
@media (min-width:769px){
  .stats-strip-home{height:70px;}
}

/* =====================================================================
   PROFORMA REQUEST FORM
   ===================================================================== */
.pf-layout{display:grid;grid-template-columns:1fr 2fr;gap:var(--sp-7);align-items:start;}
.pf-info{background:var(--clr-surface);border:1px solid var(--clr-border);border-radius:var(--radius-lg);padding:var(--sp-6);}
.pf-info-title{font-size:1.15rem;font-weight:700;display:flex;align-items:center;gap:var(--sp-2);margin-bottom:var(--sp-5);}
.pf-info-title svg{color:var(--clr-secondary);}
.pf-info-list{list-style:none;padding:0;margin:0 0 var(--sp-5);display:flex;flex-direction:column;gap:var(--sp-3);}
.pf-info-list li{display:flex;align-items:flex-start;gap:var(--sp-2);font-size:.95rem;line-height:1.6;}
.pf-info-list li svg{color:var(--clr-primary);flex-shrink:0;margin-top:2px;}
.pf-info-note{display:flex;align-items:center;gap:var(--sp-2);font-size:.88rem;color:var(--clr-muted);border-top:1px solid var(--clr-border);padding-top:var(--sp-4);}
.pf-info-note a{color:var(--clr-primary);font-weight:600;}
.pf-form-wrap{background:#fff;border:1px solid var(--clr-border);border-radius:var(--radius-lg);padding:var(--sp-6);box-shadow:var(--shadow-sm);}
.pf-section-head{font-size:1rem;font-weight:700;display:flex;align-items:center;gap:var(--sp-2);margin:var(--sp-5) 0 var(--sp-4);padding-bottom:var(--sp-3);border-bottom:1px solid var(--clr-border);}
.pf-section-head:first-of-type{margin-top:0;}
.pf-section-head svg{color:var(--clr-secondary);}
.pf-required-note{font-size:.82rem;color:var(--clr-muted);margin-bottom:var(--sp-4);}
.pf-sent-alert{margin-bottom:var(--sp-5);}
.pf-ref-code{font-family:monospace;font-weight:700;color:var(--clr-primary);letter-spacing:.03em;font-size:1rem;}
.pf-form .field-error{display:block;color:var(--error);font-size:.82rem;margin-top:var(--sp-1);}
.product-actions{display:flex;flex-direction:column;gap:var(--sp-2);margin-top:var(--sp-3);}
.product-cta-sec{font-size:.88rem;}
@media (max-width:1024px){.pf-layout{grid-template-columns:1fr;}.pf-info{order:2;}}
@media (max-width:600px){.pf-form-wrap{padding:var(--sp-4);}.pf-info{padding:var(--sp-4);}}

/* =====================================================================
   PRODUCT CATALOGUE DOWNLOADS
   ===================================================================== */
.cat-downloads{background:var(--clr-page);}
.cat-dl-head{display:flex;align-items:flex-end;justify-content:space-between;gap:var(--sp-5);flex-wrap:wrap;margin-bottom:var(--sp-5);}
.cat-dl-filters{display:flex;flex-wrap:wrap;gap:var(--sp-4) var(--sp-6);align-items:center;padding:var(--sp-4);
  background:#fff;border:1px solid var(--clr-border);border-radius:var(--radius-md);margin-bottom:var(--sp-6);}
.cat-dl-filter-group{display:flex;align-items:center;gap:var(--sp-2);flex-wrap:wrap;}
.cat-dl-filter-label{display:inline-flex;align-items:center;gap:4px;font-size:.85rem;font-weight:700;color:var(--clr-muted);}
.cat-dl-pills{display:flex;flex-wrap:wrap;gap:6px;}
.cat-dl-pill{display:inline-flex;align-items:center;gap:5px;padding:6px 12px;border:1px solid var(--clr-border);
  border-radius:var(--radius-pill);background:var(--clr-surface);font-size:.82rem;font-weight:600;
  color:var(--clr-text);text-decoration:none;transition:background .15s,color .15s,border-color .15s;}
.cat-dl-pill span{font-size:.72rem;color:var(--clr-muted);}
.cat-dl-pill:hover{background:#fff;border-color:var(--clr-primary);color:var(--clr-primary);}
.cat-dl-pill.is-active{background:var(--clr-primary);border-color:var(--clr-primary);color:#fff;}
.cat-dl-pill.is-active span{color:rgba(255,255,255,.82);}
.cat-dl-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(258px,1fr));gap:var(--sp-5);}
.cat-dl-card{display:flex;flex-direction:column;background:#fff;border:1px solid var(--clr-border);
  border-radius:var(--radius-lg);overflow:hidden;box-shadow:var(--shadow-sm);}
.cat-dl-cover{position:relative;aspect-ratio:3/4;max-height:270px;display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,#f7f1e8,#eee2d2);overflow:hidden;}
.cat-dl-cover img{width:100%;height:100%;object-fit:cover;}
.cat-dl-cover-fallback{display:flex;flex-direction:column;align-items:center;gap:6px;color:var(--clr-secondary);}
.cat-dl-cover-fallback svg{width:44px;height:44px;}
.cat-dl-cover-fallback span{font-size:.8rem;font-weight:700;letter-spacing:.08em;}
.cat-dl-type{position:absolute;top:10px;inset-inline-start:10px;padding:3px 10px;border-radius:var(--radius-pill);
  font-size:.72rem;font-weight:700;border:1px solid transparent;background:rgba(255,255,255,.95);}
.cat-type-general{background:#e8f1fd;color:#1a4f9b;border-color:rgba(26,79,155,.18);}
.cat-type-export{background:#e9f5ee;color:#2F7D4F;border-color:rgba(47,125,79,.2);}
.cat-type-retail{background:#fdf0e0;color:#8b5e00;border-color:rgba(196,112,26,.25);}
.cat-dl-body{display:flex;flex-direction:column;gap:var(--sp-2);padding:var(--sp-4);flex:1;}
.cat-dl-title{font-size:1.05rem;font-weight:700;color:var(--clr-dark);margin:0;line-height:1.6;}
.cat-dl-desc{font-size:.88rem;color:var(--clr-muted);line-height:1.8;margin:0;}
.cat-dl-meta{list-style:none;display:flex;flex-wrap:wrap;gap:6px 14px;margin:var(--sp-1) 0 var(--sp-2);padding:0;
  font-size:.8rem;color:var(--clr-muted);}
.cat-dl-meta li{display:inline-flex;align-items:center;gap:4px;}
.cat-dl-meta svg{color:var(--clr-secondary);flex-shrink:0;}
.cat-dl-meta strong{color:var(--clr-text);}
.cat-dl-actions{margin-top:auto;display:flex;flex-direction:column;gap:6px;}
.cat-dl-view{font-size:.8rem;color:var(--clr-secondary);text-align:center;text-decoration:underline;padding:3px 0;}
.cat-dl-unavailable{display:block;text-align:center;font-size:.8rem;color:var(--clr-muted);
  background:var(--clr-surface);border:1px dashed var(--clr-border);border-radius:var(--radius-sm);padding:8px 10px;}
.cat-dl-empty{padding:var(--sp-6);border:1px dashed var(--clr-border);border-radius:var(--radius-md);
  background:#fff;text-align:center;color:var(--clr-muted);display:flex;flex-direction:column;align-items:center;gap:var(--sp-3);}
.cat-dl-empty p{margin:0;}

/* related catalogue strip on the products page */
.cat-related-box{margin-top:var(--sp-5);padding:var(--sp-4) var(--sp-5);background:var(--clr-surface);
  border:1px solid var(--clr-border);border-radius:var(--radius-md);}
.cat-related-head{display:flex;align-items:center;gap:var(--sp-2);font-size:1rem;font-weight:700;
  color:var(--clr-dark);margin:0 0 var(--sp-3);}
.cat-related-head svg{color:var(--clr-primary);}
.cat-related-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:var(--sp-2);}
.cat-related-item{display:flex;align-items:center;gap:var(--sp-3);flex-wrap:wrap;padding:10px 12px;background:#fff;
  border:1px solid var(--clr-border);border-radius:var(--radius-sm);}
.cat-related-icon{display:flex;align-items:center;justify-content:center;width:34px;height:34px;flex-shrink:0;
  border-radius:var(--radius-sm);background:rgba(140,28,19,.08);color:var(--clr-primary);}
.cat-related-info{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1;}
.cat-related-info strong{font-size:.94rem;color:var(--clr-dark);}
.cat-related-info small{font-size:.78rem;color:var(--clr-muted);}
.cat-related-actions{display:flex;gap:6px;flex-wrap:wrap;margin-inline-start:auto;}
.cat-related-unavailable{font-size:.78rem;color:var(--clr-muted);}
@media (max-width:600px){
  .cat-dl-filters{gap:var(--sp-3);padding:var(--sp-3);}
  .cat-dl-grid{grid-template-columns:1fr;}
  .cat-dl-cover{aspect-ratio:4/3;max-height:220px;}
  .cat-related-box{padding:var(--sp-4);}
  .cat-related-actions{margin-inline-start:0;width:100%;}
  .cat-related-actions .btn{flex:1;}
}

/* ---------- Homepage product-family poster cards ---------- */
.showcase-posters .poster-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--sp-5);}
.poster-card{position:relative;display:flex;flex-direction:column;gap:var(--sp-5);
  min-height:clamp(250px,26vw,320px);padding:clamp(24px,3vw,40px);
  background:radial-gradient(120% 120% at 100% 0%,rgba(196,112,26,.10),rgba(196,112,26,0) 62%),#fff;
  border:1px solid var(--clr-border);border-radius:var(--radius-xl);overflow:hidden;isolation:isolate;
  text-decoration:none;color:inherit;
  transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease;}
.poster-card::before{content:"";position:absolute;inset-block-start:0;inset-inline:0;height:4px;
  background:linear-gradient(90deg,#8C1C13 0%,#C4701A 100%);}
.poster-card::after{content:"";position:absolute;inset-block-end:-90px;inset-inline-start:-70px;
  width:240px;height:240px;border-radius:50%;background:rgba(140,28,19,.05);z-index:-1;}
.poster-card:hover,.poster-card:focus-visible{transform:translateY(-5px);border-color:rgba(196,112,26,.55);
  box-shadow:var(--shadow-lg);}
.poster-card:focus-visible{outline:2px solid var(--clr-secondary);outline-offset:3px;}
.poster-top{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--sp-4);}
.poster-icon{display:flex;align-items:center;justify-content:center;width:64px;height:64px;flex-shrink:0;
  border-radius:var(--radius-lg);background:rgba(140,28,19,.08);color:var(--clr-primary);
  transition:background .25s ease,color .25s ease;}
.poster-icon svg{width:30px;height:30px;}
.poster-card:hover .poster-icon,.poster-card:focus-visible .poster-icon{background:rgba(196,112,26,.14);color:var(--clr-secondary);}
.poster-index{font-size:2rem;font-weight:800;line-height:1;color:rgba(140,28,19,.16);letter-spacing:.02em;}
.poster-text{display:flex;flex-direction:column;gap:var(--sp-3);margin-block-start:auto;}
.poster-title{font-size:clamp(1.35rem,2.4vw,1.85rem);font-weight:800;line-height:1.45;color:var(--clr-dark);}
.poster-desc{font-size:clamp(.9rem,1.1vw,1rem);line-height:1.9;color:var(--clr-muted);max-width:34ch;}
.poster-arrow{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;
  border:1.5px solid var(--clr-border);border-radius:var(--radius-pill);
  color:var(--clr-secondary);transition:transform .25s ease,background .25s ease,border-color .25s ease,color .25s ease;}
.poster-arrow svg{width:20px;height:20px;}
.poster-card:hover .poster-arrow,.poster-card:focus-visible .poster-arrow{background:var(--clr-secondary);
  border-color:var(--clr-secondary);color:#fff;transform:translateX(-4px);}
@media (max-width:860px){
  .showcase-posters .poster-grid{grid-template-columns:1fr;gap:var(--sp-4);}
  .poster-card{min-height:0;gap:var(--sp-4);}
  .poster-icon{width:56px;height:56px;}
  .poster-index{font-size:1.65rem;}
}
@media (prefers-reduced-motion:reduce){
  .poster-card,.poster-icon,.poster-arrow{transition:none;}
  .poster-card:hover,.poster-card:focus-visible{transform:none;}
  .poster-card:hover .poster-arrow,.poster-card:focus-visible .poster-arrow{transform:none;}
}

/* ---------- Trust features when related cards are hidden ---------- */
/* The remaining cards share each row evenly, so no empty grid slot is left
   behind at any breakpoint. */
.feature-grid.feature-grid-auto{display:flex;flex-wrap:wrap;align-items:stretch;}
.feature-grid.feature-grid-auto .feature-card{flex:1 1 260px;}
@media (max-width:1024px){
  .feature-grid.feature-grid-auto .feature-card{flex-basis:calc(50% - 12px);}
}
@media (max-width:768px){
  .feature-grid.feature-grid-auto .feature-card{flex-basis:100%;}
}

/* ---------- Footer credit ---------- */
.footer-madeby a{color:inherit;text-decoration:none;border-bottom:1px solid rgba(255,255,255,.28);
  padding-bottom:1px;transition:color .2s ease,border-color .2s ease;}
.footer-madeby a:hover,.footer-madeby a:focus-visible{color:var(--clr-earth);border-bottom-color:var(--clr-earth);}

/* ---------- Per-image display settings from the admin image editor ---------- */
/* The saved inline style carries the desktop values; this layer only makes
   the mobile values win below the same breakpoint used by the layout. */
.hero-bg-layer{position:absolute;inset:0;z-index:0;overflow:hidden;pointer-events:none;}
.hero-bg-layer img{width:100%;height:100%;display:block;object-fit:cover;object-position:center center;transform-origin:center;}
img[data-img-edited]{transform-origin:center;}
@media (max-width:768px){
  img[data-img-edited]{
    object-fit:var(--ie-fit-m,cover)!important;
    object-position:var(--ie-pos-m,50% 50%)!important;
    transform:scale(var(--ie-zoom-m,1))!important;
  }
}

/* =====================================================================
   MOBILE FOOTER — compact redesign (mobile-only, desktop unchanged)
   ===================================================================== */

/* footer-nav-cols: transparent to the desktop grid on all non-mobile sizes */
.footer-nav-cols{display:contents;}

/* Accordion toggle is mobile-only; desktop keeps the original h3 heading */
.footer-acc-toggle{display:none;}
.footer-acc-chevron{display:none;}

@media(max-width:768px){
  /* Tighter overall grid spacing */
  .footer-grid{gap:var(--sp-4);padding-block:var(--sp-5) var(--sp-4);}

  /* Logo slightly smaller */
  .footer-brand .footer-logo{height:34px;margin-bottom:var(--sp-2);}

  /* Compact about text */
  .footer-brand .footer-about{font-size:.82rem;line-height:1.6;margin-bottom:0;}

  /* Social icons: tighter gap and slightly smaller touch targets */
  .footer-brand .footer-social{margin-top:var(--sp-3);gap:var(--sp-2);}
  .footer-brand .footer-social a{width:36px;height:36px;}

  /* Products + Company: two columns side by side */
  .footer-nav-cols{display:grid;grid-template-columns:1fr 1fr;gap:var(--sp-4);}
  .footer-nav-cols .footer-head{font-size:.88rem;margin-bottom:var(--sp-2);}
  .footer-nav-cols .footer-links{gap:var(--sp-1);}
  .footer-nav-cols .footer-links a{font-size:.82rem;}

  /* Contact accordion: only when JS has initialized it */
  .js-footer-acc .footer-contact-head{display:none;}
  .js-footer-acc .footer-acc-toggle{
    display:flex;align-items:center;justify-content:space-between;
    width:100%;background:none;border:0;border-top:1px solid rgba(255,255,255,.12);
    padding-block:var(--sp-3);margin:0;
    color:#fff;font:inherit;font-size:.88rem;font-weight:700;
    text-align:start;cursor:pointer;
  }
  .js-footer-acc .footer-acc-chevron{
    display:block;color:#B5B1AA;
    transition:transform .25s ease;flex-shrink:0;
  }
  .js-footer-acc .footer-contact.is-open .footer-acc-chevron{transform:rotate(180deg);}

  /* Collapsed state: visibility:hidden also removes the links from the tab order */
  .js-footer-acc #footerContactLinks{
    max-height:0;overflow:hidden;visibility:hidden;
    transition:max-height .28s ease, visibility 0s linear .28s;
  }
  .js-footer-acc .footer-contact.is-open #footerContactLinks{
    max-height:420px;visibility:visible;
    transition:max-height .28s ease, visibility 0s;
  }
  #footerContactLinks{padding-block:var(--sp-2) var(--sp-3);gap:var(--sp-2);}
  #footerContactLinks a,#footerContactLinks .footer-addr{font-size:.82rem;}
  #footerContactLinks a span{min-width:0;overflow-wrap:anywhere;}

  /* Compact bottom bar */
  .footer-bottom-inner{padding-block:var(--sp-3);font-size:.82rem;}
}

/* =====================================================================
   HOMEPAGE «مزیت همکاری» — compact mobile timeline (mobile only)
   Desktop and tablet keep the original card grid; the whole block is
   scoped to .feature-grid.feature-timeline inside the mobile breakpoint.
   ===================================================================== */
@media (max-width:768px){
  /* Less air around the section itself */
  .home-trust.section{padding-block:var(--sp-5);}
  .home-trust .section-head{margin-bottom:var(--sp-4);}
  .home-trust .eyebrow{margin-bottom:var(--sp-2);padding:4px 12px;font-size:.75rem;}
  .home-trust .section-title{font-size:1.3rem;line-height:1.45;}
  .home-trust .section-lead{margin-top:var(--sp-2);font-size:.88rem;line-height:1.7;}

  /* Vertical timeline spine */
  .feature-grid.feature-timeline{
    position:relative;display:flex;flex-direction:column;gap:0;
    margin:0;padding:0;
  }
  .feature-grid.feature-timeline .feature-card{
    position:relative;display:grid;
    grid-template-columns:40px minmax(0,1fr);
    grid-template-areas:"icon title" "icon body";
    column-gap:var(--sp-3);
    flex:0 0 auto;height:auto;min-width:0;
    background:transparent;border:0;border-radius:0;box-shadow:none;
    padding:0 0 var(--sp-4);transition:none;
  }
  .feature-grid.feature-timeline .feature-card:hover{transform:none;box-shadow:none;border:0;}
  .feature-grid.feature-timeline .feature-card:last-child{padding-bottom:0;}

  /* Connector between two icons (hidden after the last benefit) */
  .feature-grid.feature-timeline .feature-card:not(:last-child)::before{
    content:"";position:absolute;top:40px;bottom:-4px;inset-inline-start:19px;
    width:2px;border-radius:2px;
    background:linear-gradient(to bottom,rgba(140,28,19,.20),rgba(196,112,26,.14));
  }

  /* Icon sits on the spine inside a small tinted node */
  .feature-grid.feature-timeline .feature-icon{
    grid-area:icon;align-self:start;
    width:40px;height:40px;margin:0;border-radius:11px;
    background:linear-gradient(135deg,#fff 25%,rgba(196,112,26,.16));
    border:1.5px solid rgba(140,28,19,.18);
    color:var(--clr-primary);
    box-shadow:0 0 0 4px var(--clr-surface),0 1px 3px rgba(30,30,30,.06);
  }
  .feature-grid.feature-timeline .feature-icon svg{width:20px;height:20px;}

  /* Text block beside the icon, aligned with its top edge */
  .feature-grid.feature-timeline .feature-title{
    grid-area:title;padding-top:7px;
    font-size:1rem;line-height:1.5;letter-spacing:0;
  }
  .feature-grid.feature-timeline .feature-body{
    grid-area:body;margin-top:2px;
    color:var(--clr-muted);font-size:.85rem;line-height:1.65;
    overflow-wrap:break-word;
  }
}

/* =====================================================================
   HOMEPAGE «مزیت همکاری» — refinement pass (mobile only)
   Softer surfaces, balanced timeline spine, clearer type hierarchy and a
   lightweight scroll-reveal. Desktop/tablet rules are untouched.
   ===================================================================== */
@media (max-width:768px){
  .home-trust.section{
    padding-block:26px 22px;
    background:
      radial-gradient(150px 130px at 90% 0%,rgba(196,112,26,.09),rgba(196,112,26,0) 72%),
      var(--clr-surface);
  }

  /* Heading block: tighter rhythm, calmer hierarchy */
  .home-trust .section-head{margin-bottom:16px;max-width:33rem;}
  .home-trust .eyebrow{
    margin-bottom:9px;padding:4px 12px;font-size:.72rem;letter-spacing:.015em;
    box-shadow:inset 0 0 0 1px rgba(140,28,19,.10);
  }
  .home-trust .eyebrow svg{width:14px;height:14px;}
  .home-trust .section-title{
    font-size:1.28rem;line-height:1.55;font-weight:800;
    color:var(--clr-dark);letter-spacing:-.006em;
  }
  .home-trust .section-lead{
    margin-top:9px;font-size:.855rem;line-height:1.8;color:var(--clr-muted);
  }

  /* Timeline container */
  .home-trust .feature-grid.feature-timeline{
    --ft-icon:44px;
    --ft-gap:14px;
    --ft-card-pad:12px;
    position:relative;display:flex;flex-direction:column;
    row-gap:0;margin:0;padding:0;align-items:stretch;
  }

  /* Benefit row: icon node + soft content panel */
  .home-trust .feature-grid.feature-timeline .feature-card{
    position:relative;display:grid;
    grid-template-columns:var(--ft-icon) minmax(0,1fr);
    grid-template-areas:"icon title" "icon body";
    grid-template-rows:auto 1fr;
    column-gap:var(--ft-gap);
    align-items:start;
    flex:0 0 auto;height:auto;min-width:0;
    padding:0 0 var(--ft-card-pad);
    background:transparent;border:0;border-radius:0;box-shadow:none;
  }

  /* Content panel sits behind the text only, leaving the spine gutter clear */
  .home-trust .feature-grid.feature-timeline .feature-card::after{
    content:"";position:absolute;z-index:0;pointer-events:none;
    inset-block:0 5px;
    inset-inline-start:calc(var(--ft-icon) + 6px);
    inset-inline-end:0;
    border-radius:14px;
    background:linear-gradient(180deg,rgba(255,255,255,.80),rgba(255,255,255,.46));
    border:1px solid rgba(221,213,200,.72);
    box-shadow:0 1px 2px rgba(26,31,46,.035);
  }
  /* Alternating warm tint keeps the list lively without extra decoration */
  .home-trust .feature-grid.feature-timeline .feature-card:nth-child(even)::after{
    background:linear-gradient(180deg,rgba(196,112,26,.055),rgba(255,255,255,.52));
    border-color:rgba(196,112,26,.17);
  }
  .home-trust .feature-grid.feature-timeline .feature-card:first-child::after{
    border-color:rgba(140,28,19,.18);
    box-shadow:0 2px 7px rgba(140,28,19,.055);
  }

  /* Spine: runs from icon centre to the next icon centre */
  .home-trust .feature-grid.feature-timeline .feature-card:not(:last-child)::before{
    content:"";position:absolute;z-index:1;
    top:22px;bottom:calc(0px - var(--ft-card-pad) - 22px);
    inset-inline-start:21px;width:2px;border-radius:2px;
    background:linear-gradient(to bottom,rgba(140,28,19,.30),rgba(196,112,26,.16));
  }

  /* Icon node: consistent size, refined border and soft accent */
  .home-trust .feature-grid.feature-timeline .feature-icon{
    grid-area:icon;align-self:start;z-index:2;
    width:var(--ft-icon);height:var(--ft-icon);margin:0;
    border-radius:13px;
    background:linear-gradient(145deg,#fff 28%,rgba(196,112,26,.20));
    border:1.5px solid rgba(140,28,19,.16);
    color:var(--clr-primary);
    box-shadow:0 0 0 4px var(--clr-surface),0 2px 6px rgba(26,31,46,.07);
    transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease;
  }
  .home-trust .feature-grid.feature-timeline .feature-card:nth-child(even) .feature-icon{
    background:linear-gradient(145deg,#fff 28%,rgba(140,28,19,.14));
    border-color:rgba(196,112,26,.30);
    color:var(--clr-primary-700);
  }
  .home-trust .feature-grid.feature-timeline .feature-card:first-child .feature-icon{
    background:linear-gradient(145deg,var(--clr-primary),var(--clr-primary-700));
    border-color:rgba(110,20,13,.45);
    color:#fff;
    box-shadow:0 0 0 4px var(--clr-surface),0 4px 10px rgba(140,28,19,.22);
  }
  .home-trust .feature-grid.feature-timeline .feature-icon svg{width:21px;height:21px;}
  .home-trust .feature-grid.feature-timeline .feature-card:active .feature-icon{
    transform:scale(.96);
  }

  /* Type hierarchy: compact title, lighter supporting copy */
  .home-trust .feature-grid.feature-timeline .feature-title{
    grid-area:title;z-index:1;
    padding-block-start:9px;padding-inline-end:12px;
    font-size:1rem;line-height:1.55;font-weight:700;
    color:var(--clr-dark);letter-spacing:0;
  }
  .home-trust .feature-grid.feature-timeline .feature-body{
    grid-area:body;z-index:1;
    margin:3px 0 0;padding-inline-end:12px;padding-block-end:11px;
    color:var(--clr-muted);font-size:.85rem;line-height:1.72;
    overflow-wrap:break-word;
  }
  .home-trust .feature-grid.feature-timeline .feature-card:last-child{
    padding-bottom:2px;
  }

  /* Scroll reveal (class is added by JS only on phones without reduced motion) */
  .js-ft-reveal .home-trust .feature-grid.feature-timeline .feature-card{
    opacity:0;transform:translate3d(0,16px,0);
    transition:opacity .55s cubic-bezier(.22,.61,.36,1),
               transform .55s cubic-bezier(.22,.61,.36,1);
  }
  .js-ft-reveal .home-trust .feature-grid.feature-timeline .feature-card.is-visible{
    opacity:1;transform:none;
  }
}

@media (max-width:768px) and (prefers-reduced-motion:reduce){
  .home-trust .feature-grid.feature-timeline .feature-icon{transition:none;}
  .js-ft-reveal .home-trust .feature-grid.feature-timeline .feature-card,
  .js-ft-reveal .home-trust .feature-grid.feature-timeline .feature-card.is-visible{
    opacity:1;transform:none;transition:none;
  }
}

/* =====================================================================
   HERO — dedicated mobile composition (≤767 px only)
   Desktop/tablet markup and slider behaviour stay exactly as they are.
   On phones the banner becomes three stacked, non-overlapping zones:
     1. slide title on the cream page background (tight top spacing)
     2. the product photo full-bleed at its native 1920:880 ratio, so no
        packaging is stretched or cut off
     3. the full-width CTA on cream, followed by a slim control bar with
        refined round arrows and small pill indicators
   Hero height therefore grows with the screen width instead of using a
   fixed ~500 px box. Nothing is drawn on top of the product photo.
   ===================================================================== */
@media (max-width:767px){
  .hero,
  .hero-slider{
    background:linear-gradient(180deg,#F7F1E7 0%,var(--clr-page) 100%);
  }
  .hero-slider{
    display:flex;
    flex-direction:column;
  }

  /* Only the active slide is rendered; it stretches across the width.
     Inactive slides are stretched over the same grid cell on desktop, so
     on phones they are taken out of the flow instead of stacking up. */
  .hero-slide,
  .hero-slide.is-active{
    aspect-ratio:auto;
    min-height:0;
    background:transparent;
  }
  .hero-slide{
    display:none;
    grid-area:auto;
    opacity:1;
    visibility:visible;
  }
  .hero-slide.is-active{
    display:flex;
    flex-direction:column;
    align-items:stretch;
    opacity:1;
    visibility:visible;
    pointer-events:auto;
    animation:fade .4s ease;
  }

  /* Flatten the wrappers so title, photo and CTA can be ordered freely */
  .hero-slide.is-active > .hero-inner,
  .hero-slide.is-active > .hero-inner > .hero-content{
    display:contents;
  }

  /* 1 — title: right-aligned, close to the product photo */
  .hero-slide.is-active .hero-title{
    order:1;
    box-sizing:border-box;
    width:100%;
    max-width:none;
    margin:0;
    padding:18px 20px 12px;
    text-align:right;
    font-size:clamp(1.3rem,5.6vw,1.65rem);
    font-weight:800;
    line-height:1.45;
    color:var(--clr-dark);
  }
  .hero-slide.is-active .hero-title::before{
    content:"";
    display:block;
    width:40px;
    height:3px;
    margin-bottom:10px;
    margin-inline-start:0;
    margin-inline-end:auto;
    border-radius:3px;
    background:linear-gradient(90deg,rgba(140,28,19,.95),rgba(196,112,26,.55));
  }

  /* 2 — product photo: full-bleed, un-cropped (native banner ratio) */
  .hero-slide.is-active .hero-bg-layer{
    order:2;
    position:relative;
    inset:auto;
    display:block;
    width:100%;
    aspect-ratio:1920/880;
    overflow:hidden;
    background:#EFE6D8;
  }
  .hero-slide.is-active .hero-bg-layer img{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center center;
  }

  /* 3 — CTA on the cream background, never on top of the artwork */
  .hero-slide.is-active .hero-actions{
    order:3;
    box-sizing:border-box;
    width:100%;
    margin:0;
    padding:14px 20px 18px;
    flex-direction:row;
    align-items:stretch;
    justify-content:stretch;
  }
  .hero-slide.is-active .hero-actions .btn{
    width:100%;
    justify-content:center;
    padding:14px 18px;
    font-size:1rem;
  }

  /* Control bar: sits in normal flow below the CTA (no overlap) */
  .hero-controls{
    position:static;
    inset:auto;
    bottom:auto;
    display:grid;
    grid-template-columns:auto 1fr auto;
    align-items:center;
    gap:10px;
    width:100%;
    max-width:none;
    box-sizing:border-box;
    margin:0;
    padding:0 20px 18px;
    background:transparent;
  }
  .hero-arrow{
    width:36px;
    height:36px;
    border-radius:50%;
    background:#fff;
    border:1px solid rgba(26,31,46,.12);
    color:#1F4D3D;
    box-shadow:0 2px 6px rgba(26,31,46,.06);
  }
  .hero-arrow svg{width:16px;height:16px;}
  .hero-arrow:hover,
  .hero-arrow:focus-visible{
    background:#1F4D3D;
    border-color:#1F4D3D;
    color:#fff;
  }
  .hero-dots{
    grid-column:2;
    justify-self:center;
    gap:6px;
    padding:0;
    border:0;
    background:transparent;
    -webkit-backdrop-filter:none;
    backdrop-filter:none;
  }
  .hero-dot{
    display:flex;
    align-items:center;
    justify-content:center;
    width:20px;
    height:20px;
    padding:0;
    background:transparent;
    border-radius:0;
    box-shadow:none;
  }
  .hero-dot::before{
    content:"";
    display:block;
    width:6px;
    height:6px;
    border-radius:99px;
    background:rgba(26,31,46,.20);
    transition:width .25s ease,background-color .2s ease;
  }
  .hero-dot:hover{background:transparent;}
  .hero-dot:hover::before{background:rgba(26,31,46,.36);}
  .hero-dot.is-active{
    width:32px;
    background:transparent;
  }
  .hero-dot.is-active::before{
    width:22px;
    background:#1F4D3D;
  }
}

@media (max-width:767px) and (prefers-reduced-motion:reduce){
  .hero-slide.is-active{animation:none;}
  .hero-dot,
  .hero-dot::before{transition:none;}
}

/* =====================================================================
   MOBILE HEADER — compact, balanced proportions (≤768 px only)
   Header height, logo, menu button and page-edge padding are tuned as
   one set: 60 px bar, 38 px logo, 40 px square menu button, 16 px side
   padding. The bar uses the hero's cream tone and no backdrop blur, so
   the transition from header to hero is seamless and scrolling is
   cheaper on phones. Desktop/tablet header (≥769 px) is not touched.
   ===================================================================== */
@media (max-width:768px){
  .site-header{
    background:#F7F1E7;
    border-bottom-color:rgba(221,213,200,.9);
    -webkit-backdrop-filter:none;
    backdrop-filter:none;
  }
  .site-header .header-inner{
    height:60px;
    gap:12px;
    padding-inline:16px;
  }
  .site-header .brand-logo{
    height:38px;
    width:auto;
  }
  .site-header .nav-toggle{
    width:40px;
    height:40px;
    flex:0 0 40px;
    border-radius:10px;
    background:#FDFBF7;
    border-color:rgba(221,213,200,.95);
  }
  .site-header .nav-toggle .icon{
    width:20px;
    height:20px;
  }

  /* Drawer head matches the compact header: same edge padding and a
     close button of the same size as the hamburger. Behaviour unchanged. */
  .mobile-nav .container{
    padding-inline:16px;
  }
  .mobile-nav .nav-close{
    width:40px;
    height:40px;
    flex:0 0 40px;
    border-radius:10px;
    background:#FDFBF7;
  }
  .mobile-nav .nav-close .icon{
    width:20px;
    height:20px;
  }
}

/* Align the phone hero's text and controls with the header edge padding */
@media (max-width:767px){
  .hero-slide.is-active .hero-title{
    padding:16px 16px 12px;
  }
  .hero-slide.is-active .hero-actions{
    padding:14px 16px 18px;
  }
  .hero-controls{
    padding:0 16px 18px;
  }
}

/* =====================================================================
   MOBILE PRODUCT-FAMILY CARDS — one compact row structure (≤860 px)
   Both cards share the same layout: brand icon tile at the inline start,
   title and a two-line description in the middle, round arrow at the
   inline end. The numbering, the 4 px top rule and the decorative circle
   are dropped on phones; the softer cream gradient and the arrow carry
   the brand accent instead. Card height now follows its content and the
   whole card stays a single link. Desktop/tablet-wide layout untouched.
   ===================================================================== */
@media (max-width:860px){
  .showcase-posters .poster-grid{
    gap:10px;
  }

  .poster-card{
    display:grid;
    grid-template-columns:44px minmax(0,1fr) 34px;
    grid-template-areas:"icon text arrow";
    align-items:center;
    gap:4px 14px;
    min-height:0;
    padding:14px 16px;
    border-radius:var(--radius-lg);
    background:linear-gradient(135deg,#FFFFFF 0%,#FBF7F0 100%);
    border-color:rgba(221,213,200,.95);
    box-shadow:var(--shadow-xs);
  }
  .poster-card::before,
  .poster-card::after{
    display:none;
  }
  .poster-card:hover,
  .poster-card:focus-visible{
    transform:translateY(-2px);
    border-color:rgba(196,112,26,.5);
    box-shadow:var(--shadow-md);
  }

  .poster-top{
    display:contents;
  }
  .poster-icon{
    grid-area:icon;
    align-self:center;
    width:44px;
    height:44px;
    border-radius:12px;
    background:rgba(140,28,19,.07);
  }
  .poster-icon svg{
    width:22px;
    height:22px;
  }
  .poster-index{
    display:none;
  }

  .poster-text{
    grid-area:text;
    gap:2px;
    margin-block-start:0;
    min-width:0;
  }
  .poster-title{
    font-size:1.02rem;
    line-height:1.5;
  }
  .poster-desc{
    font-size:.8rem;
    line-height:1.7;
    max-width:none;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
  }

  .poster-arrow{
    grid-area:arrow;
    width:34px;
    height:34px;
    border:0;
    background:rgba(196,112,26,.10);
  }
  .poster-arrow svg{
    width:16px;
    height:16px;
  }
  .poster-card:hover .poster-arrow,
  .poster-card:focus-visible .poster-arrow{
    transform:none;
    background:var(--clr-secondary);
    color:#fff;
  }
}

@media (max-width:400px){
  .poster-card{
    grid-template-columns:40px minmax(0,1fr) 30px;
    gap:4px 10px;
    padding:12px 14px;
  }
  .poster-icon{
    width:40px;
    height:40px;
  }
  .poster-icon svg{
    width:20px;
    height:20px;
  }
  .poster-title{
    font-size:.96rem;
  }
  .poster-desc{
    font-size:.76rem;
  }
  .poster-arrow{
    width:30px;
    height:30px;
  }
}

/* =====================================================================
   HOMEPAGE «مزیت همکاری» — clean unified mobile layout (≤768 px only)
   Replaces the decorative timeline (spine, tinted panels, alternating
   accents) with calm, evenly spaced benefit cards: one icon + heading
   row, readable copy below, hairline borders and near-flat shadows.
   Desktop/tablet rules stay untouched.
   ===================================================================== */
@media (max-width:768px){
  .home-trust.section{
    padding-block:32px 28px;
    background:var(--clr-surface);
  }

  /* Calm heading block with a comfortable reading rhythm */
  .home-trust .section-head{margin-bottom:20px;max-width:34rem;padding-inline:2px;}
  .home-trust .eyebrow{
    margin-bottom:10px;padding:5px 13px;font-size:.72rem;letter-spacing:.01em;
    box-shadow:none;
  }
  .home-trust .eyebrow svg{width:14px;height:14px;}
  .home-trust .section-title{
    font-size:1.35rem;line-height:1.55;font-weight:800;
    color:var(--clr-dark);letter-spacing:-.006em;
  }
  .home-trust .section-lead{
    margin-top:10px;font-size:.9rem;line-height:1.85;color:var(--clr-muted);
  }

  /* Evenly spaced list of self-contained benefit cards */
  .home-trust .feature-grid.feature-timeline,
  .home-trust .feature-grid.feature-timeline.feature-grid-auto{
    display:flex;flex-direction:column;
    gap:10px;margin:0;padding:0;align-items:stretch;
  }

  .home-trust .feature-grid.feature-timeline .feature-card,
  .home-trust .feature-grid.feature-timeline .feature-card:last-child,
  .home-trust .feature-grid.feature-timeline.feature-grid-auto .feature-card{
    position:relative;display:grid;
    grid-template-columns:46px minmax(0,1fr);
    grid-template-areas:"icon title" "body body";
    grid-template-rows:auto auto;
    column-gap:13px;row-gap:9px;
    align-items:center;
    flex:0 0 auto;height:auto;min-width:0;
    margin:0;padding:15px 16px 16px;
    background:#fff;
    border:1px solid rgba(221,213,200,.85);
    border-radius:14px;
    box-shadow:0 1px 2px rgba(26,31,46,.04);
  }
  .home-trust .feature-grid.feature-timeline .feature-card:hover,
  .home-trust .feature-grid.feature-timeline .feature-card:active{
    transform:none;box-shadow:0 1px 2px rgba(26,31,46,.04);
    border-color:rgba(196,112,26,.32);
  }

  /* Remove the old spine and floating content panels entirely */
  .home-trust .feature-grid.feature-timeline .feature-card::before,
  .home-trust .feature-grid.feature-timeline .feature-card::after{
    content:none!important;display:none!important;
    background:none!important;border:0!important;box-shadow:none!important;
  }

  /* Uniform, quiet icon tile — no rings, gradients or special first item */
  .home-trust .feature-grid.feature-timeline .feature-card .feature-icon,
  .home-trust .feature-grid.feature-timeline .feature-card:first-child .feature-icon,
  .home-trust .feature-grid.feature-timeline .feature-card:nth-child(even) .feature-icon,
  .home-trust .feature-grid.feature-timeline .feature-card:active .feature-icon{
    grid-area:icon;align-self:center;justify-self:start;
    width:46px;height:46px;margin:0;
    border-radius:12px;
    background:rgba(196,112,26,.10);
    border:0;
    color:var(--clr-primary);
    box-shadow:none;
    transform:none;
    transition:none;
  }
  .home-trust .feature-grid.feature-timeline .feature-icon svg{width:23px;height:23px;}

  /* Integrated text: heading beside the icon, full-width description below */
  .home-trust .feature-grid.feature-timeline .feature-title{
    grid-area:title;align-self:center;
    margin:0;padding:0;
    font-size:1.02rem;line-height:1.55;font-weight:700;
    color:var(--clr-dark);letter-spacing:0;
    overflow-wrap:break-word;
  }
  .home-trust .feature-grid.feature-timeline .feature-body{
    grid-area:body;align-self:start;
    margin:0;padding:0;
    color:var(--clr-muted);font-size:.9rem;line-height:1.85;
    overflow-wrap:break-word;
  }
}

/* =====================================================================
   HOMEPAGE CTA «آمادهٔ همکاری با فروشگاه‌ها و شرکت‌های پخش»
   Scoped to the home collaboration band: brand-tuned gradient, calmer
   typography and a clear primary/secondary button hierarchy on mobile.
   ===================================================================== */
.cta-band-collab{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  background:
    radial-gradient(120% 160% at 88% -10%,rgba(212,151,59,.30) 0%,rgba(212,151,59,0) 55%),
    radial-gradient(110% 150% at 5% 110%,rgba(110,20,13,.55) 0%,rgba(110,20,13,0) 60%),
    linear-gradient(135deg,var(--clr-primary) 0%,var(--clr-secondary) 118%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.10),inset 0 -1px 0 rgba(0,0,0,.14);
}
.cta-band-collab::before{
  content:"";position:absolute;z-index:-1;pointer-events:none;
  inset-inline-start:-110px;top:-150px;
  width:340px;height:340px;border-radius:50%;
  background:radial-gradient(circle at 30% 30%,rgba(255,255,255,.14),rgba(255,255,255,0) 70%);
}
.cta-band-collab .cta-text{max-width:640px;}
.cta-band-collab .cta-title{line-height:1.45;letter-spacing:-.01em;text-wrap:balance;}
.cta-band-collab .cta-sub{max-width:520px;}

@media (max-width:768px){
  .cta-band-collab.section{padding-block:34px 36px;}

  .cta-band-collab .cta-inner{gap:20px;align-items:stretch;}
  .cta-band-collab .cta-text{max-width:none;}

  .cta-band-collab .cta-title{
    font-size:clamp(1.28rem,5.6vw,1.55rem);
    line-height:1.55;letter-spacing:0;max-width:22rem;
  }
  .cta-band-collab .cta-sub{
    margin-top:9px;max-width:26rem;
    font-size:.92rem;line-height:1.85;color:rgba(255,255,255,.9);
  }

  .cta-band-collab .cta-actions{
    display:flex;flex-direction:column;align-items:stretch;
    gap:10px;width:100%;margin-top:2px;
  }
  .cta-band-collab .cta-actions .btn{
    width:100%;flex:0 0 auto;
    min-height:50px;padding:14px 18px;
    font-size:.97rem;line-height:1.35;
    border-radius:12px;white-space:normal;text-align:center;
  }
  .cta-band-collab .cta-actions .btn svg{width:20px;height:20px;}

  .cta-band-collab .btn-light{
    background:#fff;color:var(--clr-primary);
    box-shadow:0 8px 20px rgba(26,31,46,.22);
  }
  .cta-band-collab .btn-light:active{transform:none;}
  .cta-band-collab .btn-outline-light{
    background:rgba(255,255,255,.10);
    border-color:rgba(255,255,255,.55);color:#fff;
  }
  .cta-band-collab .btn-outline-light:active{background:rgba(255,255,255,.18);}
}

@media (max-width:400px){
  .cta-band-collab.section{padding-block:30px 32px;}
  .cta-band-collab .cta-title{font-size:1.22rem;}
}

/* =====================================================================
   MOBILE FOOTER — v2 readable redesign (mobile only)
   Larger type, stronger contrast and a clear section hierarchy; the
   desktop footer stays exactly as before.
   ===================================================================== */
@media (max-width:768px){
  .site-footer{color:#E2DED7;}
  .footer-grid{
    grid-template-columns:1fr;
    gap:0;
    padding-block:28px 24px;
  }

  /* Brand: logo, description, social row */
  .footer-brand{
    padding-bottom:22px;
    border-bottom:1px solid rgba(255,255,255,.14);
  }
  .footer-brand .footer-logo{
    height:46px;width:auto;
    margin:0 0 14px;
  }
  .footer-brand .footer-about{
    max-width:none;
    margin:0;
    font-size:.95rem;
    line-height:1.95;
    color:#DDD8D0;
  }
  .footer-brand .footer-social{
    display:flex;
    gap:10px;
    margin-top:18px;
  }
  .footer-brand .footer-social a{
    width:44px;height:44px;
    border-radius:12px;
    background:rgba(255,255,255,.09);
    border:1px solid rgba(255,255,255,.18);
    color:#fff;
  }
  .footer-brand .footer-social a svg{width:20px;height:20px;}
  .footer-brand .footer-social a:active{background:var(--clr-primary);}

  /* Quick links: two balanced columns with accent-underline headings */
  .footer-nav-cols{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:22px 20px;
    padding-block:22px;
    border-bottom:1px solid rgba(255,255,255,.14);
  }
  .footer-nav-cols .footer-head{
    position:relative;
    margin:0 0 10px;
    padding-bottom:9px;
    font-size:1rem;
    font-weight:700;
    color:#fff;
  }
  .footer-nav-cols .footer-head::after{
    content:"";
    position:absolute;
    inset-inline-start:0;
    bottom:0;
    width:30px;height:3px;
    border-radius:2px;
    background:var(--clr-earth);
  }
  .footer-nav-cols .footer-links{gap:0;}
  .footer-nav-cols .footer-links a{
    display:flex;
    padding-block:8px;
    font-size:.95rem;
    line-height:1.55;
    color:#DDD8D0;
  }
  .footer-nav-cols .footer-links a:active{color:var(--clr-earth);}

  /* Contact: always expanded, each row as a clear card */
  .footer-contact{padding-top:22px;}
  .footer-acc-toggle{display:none !important;}
  .footer-contact-head{
    display:block !important;
    position:relative;
    margin:0 0 14px;
    padding-bottom:9px;
    font-size:1rem;
    font-weight:700;
    color:#fff;
  }
  .footer-contact-head::after{
    content:"";
    position:absolute;
    inset-inline-start:0;
    bottom:0;
    width:30px;height:3px;
    border-radius:2px;
    background:var(--clr-earth);
  }
  #footerContactLinks{
    display:flex;
    flex-direction:column;
    gap:9px;
    max-height:none !important;
    padding:0;
    overflow:visible !important;
    visibility:visible !important;
  }
  #footerContactLinks > li > a,
  #footerContactLinks > .footer-addr{
    display:flex;
    align-items:center;
    gap:11px;
    min-height:46px;
    padding:11px 13px;
    font-size:.95rem;
    line-height:1.65;
    color:#E2DED7;
    background:rgba(255,255,255,.06);
    border:1px solid rgba(255,255,255,.12);
    border-radius:12px;
  }
  #footerContactLinks > .footer-addr{align-items:flex-start;}
  #footerContactLinks svg{width:20px;height:20px;color:var(--clr-earth);}
  #footerContactLinks > .footer-addr svg{margin-top:2px;}
  #footerContactLinks a span{min-width:0;overflow-wrap:anywhere;}
  #footerContactLinks .phone-num{
    direction:ltr;
    font-weight:600;
    color:#fff;
    letter-spacing:.02em;
  }

  /* Bottom bar: readable copyright and designer credit */
  .footer-bottom{border-top:1px solid rgba(255,255,255,.14);}
  .footer-bottom-inner{
    flex-direction:column;
    align-items:center;
    gap:8px;
    padding-block:18px;
    font-size:.92rem;
    line-height:1.8;
    color:#CFCAC2;
    text-align:center;
  }
  .footer-bottom-inner p{margin:0;}
  .footer-bottom-inner p:first-child{color:#E6E1D9;font-size:.94rem;}
  .footer-madeby{
    font-size:.9rem;
    color:#C4BFB7;
  }
  .footer-madeby a{
    color:#F2EDE5;
    border-bottom-color:rgba(242,237,229,.5);
  }
}

/* =====================================================================
   HOMEPAGE — unified mobile design system (≤768 px only)
   One consistent rhythm for every homepage section: 16 px page gutters,
   equal vertical spacing, a single type scale, shared 14/12 px radii,
   calm borders and shadows, unified icon tiles and button sizing, plus
   stronger small-text contrast. Scoped to the homepage so inner pages
   keep their existing layout. Desktop/tablet rules stay untouched.
   ===================================================================== */
@media (max-width:768px){
  body.page-home{
    --pad:16px;
    --m-section-y:38px;
    --m-radius:14px;
    --m-radius-sm:12px;
    --m-border:rgba(221,213,200,.92);
    --m-shadow:0 2px 8px rgba(26,31,46,.06);
    --m-muted:#56504A;
  }

  body.page-home h1,
  body.page-home h2,
  body.page-home h3{letter-spacing:0;}

  /* Equal vertical rhythm between all homepage sections */
  body.page-home main > .section{padding-block:var(--m-section-y);}
  body.page-home .home-trust.section,
  body.page-home .process.section,
  body.page-home .cta-band-collab.section{padding-block:var(--m-section-y);}

  /* Shared heading hierarchy: right-aligned for Persian reading flow */
  body.page-home .section-head{
    max-width:none;
    margin:0 0 20px;
    padding:0;
    text-align:right;
  }
  body.page-home .eyebrow{
    margin-bottom:8px;
    padding:5px 12px;
    font-size:.72rem;
    line-height:1.4;
    font-weight:700;
    letter-spacing:0;
  }
  body.page-home .eyebrow svg{width:15px;height:15px;}
  body.page-home .section-title,
  body.page-home .process-text .section-title{
    font-size:clamp(1.28rem,5.2vw,1.45rem);
    line-height:1.55;
    font-weight:800;
    letter-spacing:0;
    text-wrap:balance;
  }
  body.page-home .section-lead{
    margin-top:8px;
    font-size:.9rem;
    line-height:1.9;
    color:var(--m-muted);
  }

  /* One button scale across the page */
  body.page-home .btn{
    min-height:46px;
    padding:12px 18px;
    border-radius:var(--m-radius-sm);
    font-size:.9375rem;
    line-height:1.4;
  }
  body.page-home .btn-lg{min-height:50px;padding:14px 20px;font-size:1rem;}
  body.page-home .btn svg{width:19px;height:19px;}
  body.page-home .btn:hover{transform:none;}

  /* Stats band: compact, evenly divided, no fixed-height clipping */
  body.page-home .stats-strip-home{
    min-height:0;
    padding-block:18px;
    display:block;
  }
  body.page-home .stats-strip-home .stats-row{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(88px,1fr));
    gap:16px 8px;
    align-items:start;
  }
  body.page-home .stats-strip-home .stat{padding:0;gap:2px;}
  body.page-home .stats-strip-home .stat-value{
    font-size:clamp(1.3rem,5.6vw,1.55rem);
    line-height:1.15;
  }
  body.page-home .stats-strip-home .stat-label{
    margin-top:0;
    font-size:.78rem;
    line-height:1.55;
    font-weight:500;
    color:#D3CFC8;
  }

  /* Product-family cards */
  body.page-home .showcase-posters .section-head{margin-bottom:18px;}
  body.page-home .showcase-posters .poster-grid{gap:10px;}
  body.page-home .poster-card{
    grid-template-columns:44px minmax(0,1fr) 34px;
    gap:3px 12px;
    padding:13px 14px;
    border:1px solid var(--m-border);
    border-radius:var(--m-radius);
    background:linear-gradient(135deg,#FFFFFF 0%,#FBF7F0 100%);
    box-shadow:var(--m-shadow);
    transform:none;
  }
  body.page-home .poster-card:hover,
  body.page-home .poster-card:focus-visible{
    transform:none;
    box-shadow:var(--m-shadow);
  }
  body.page-home .poster-icon{
    width:44px;
    height:44px;
    border-radius:var(--m-radius-sm);
    background:rgba(140,28,19,.07);
    color:var(--clr-primary);
  }
  body.page-home .poster-icon svg{width:22px;height:22px;}
  body.page-home .poster-title{font-size:1.02rem;line-height:1.55;font-weight:700;}
  body.page-home .poster-desc{font-size:.82rem;line-height:1.8;color:var(--m-muted);}
  body.page-home .poster-arrow{
    width:34px;
    height:34px;
    border:0;
    background:rgba(196,112,26,.10);
    color:var(--clr-primary);
  }

  /* Benefit cards: same tile, radius, border and shadow as the products */
  body.page-home .home-trust .section-head{margin-bottom:18px;max-width:none;padding:0;}
  body.page-home .home-trust .section-title{
    font-size:clamp(1.28rem,5.2vw,1.45rem);
    line-height:1.55;
  }
  body.page-home .home-trust .section-lead{margin-top:8px;font-size:.9rem;line-height:1.9;color:var(--m-muted);}
  body.page-home .home-trust .feature-grid.feature-timeline{gap:10px;margin:0;}
  body.page-home .home-trust .feature-grid.feature-timeline .feature-card{
    grid-template-columns:44px minmax(0,1fr);
    column-gap:12px;
    row-gap:8px;
    padding:13px 14px 14px;
    border:1px solid var(--m-border);
    border-radius:var(--m-radius);
    box-shadow:var(--m-shadow);
  }
  body.page-home .home-trust .feature-grid.feature-timeline .feature-card:hover,
  body.page-home .home-trust .feature-grid.feature-timeline .feature-card:active{
    transform:none;
    border-color:var(--m-border);
    box-shadow:var(--m-shadow);
  }
  body.page-home .home-trust .feature-grid.feature-timeline .feature-card .feature-icon,
  body.page-home .home-trust .feature-grid.feature-timeline .feature-card:first-child .feature-icon,
  body.page-home .home-trust .feature-grid.feature-timeline .feature-card:nth-child(even) .feature-icon{
    width:44px;
    height:44px;
    border:0;
    border-radius:var(--m-radius-sm);
    background:rgba(140,28,19,.07);
    color:var(--clr-primary);
    box-shadow:none;
    transform:none;
  }
  body.page-home .home-trust .feature-grid.feature-timeline .feature-icon svg{width:22px;height:22px;}
  body.page-home .home-trust .feature-grid.feature-timeline .feature-title{
    font-size:1rem;
    line-height:1.55;
    font-weight:700;
    padding:0;
  }
  body.page-home .home-trust .feature-grid.feature-timeline .feature-body{
    margin:0;
    padding:0;
    font-size:.88rem;
    line-height:1.85;
    color:var(--m-muted);
  }

  /* Production path: tighter list, aligned step markers, clear CTA */
  body.page-home .process-inner{gap:18px;}
  body.page-home .process-media img{
    aspect-ratio:4/3;
    border-radius:var(--m-radius);
    box-shadow:var(--m-shadow);
  }
  body.page-home .process-text .eyebrow{margin-bottom:8px;}
  body.page-home .process-steps{gap:12px;margin-block:16px 18px;}
  body.page-home .process-steps li{gap:12px;}
  body.page-home .process-steps .step-no{
    width:34px;
    height:34px;
    font-size:.95rem;
    box-shadow:none;
  }
  body.page-home .process-steps h3{font-size:1rem;line-height:1.6;margin-bottom:3px;}
  body.page-home .process-steps p{font-size:.87rem;line-height:1.85;color:var(--m-muted);}
  body.page-home .process-text > .btn{width:100%;margin-top:2px;}

  /* Collaboration band */
  body.page-home .cta-band-collab .cta-inner{gap:14px;}
  body.page-home .cta-band-collab .cta-title{
    font-size:clamp(1.28rem,5.2vw,1.45rem);
    line-height:1.55;
    max-width:none;
  }
  body.page-home .cta-band-collab .cta-sub{
    margin-top:8px;
    font-size:.9rem;
    line-height:1.85;
    max-width:none;
  }
  body.page-home .cta-band-collab .cta-actions{margin-top:2px;gap:10px;}
  body.page-home .cta-band-collab .cta-actions .btn{min-height:48px;}
}

/* Hero: keep the existing three-zone mobile composition, aligned to the
   same gutters, type scale and button radius as the rest of the page. */
@media (max-width:767px){
  body.page-home .hero-slide,
  body.page-home .hero-slide.is-active{
    min-height:0;
    aspect-ratio:auto;
  }
  body.page-home .hero .hero-title{
    padding:18px 16px 12px;
    font-size:clamp(1.3rem,5.4vw,1.55rem);
    line-height:1.5;
    font-weight:800;
    letter-spacing:0;
  }
  body.page-home .hero .hero-title::before{
    width:36px;
    height:3px;
    margin-bottom:9px;
  }
  body.page-home .hero-slide.is-active .hero-actions{padding:13px 16px 16px;}
  body.page-home .hero-slide.is-active .hero-actions .btn{
    min-height:48px;
    padding:13px 18px;
    border-radius:var(--m-radius-sm);
    font-size:.98rem;
    line-height:1.4;
  }
  body.page-home .hero-controls{padding:0 16px 18px;gap:8px;}
  body.page-home .hero-arrow{width:36px;height:36px;}
  body.page-home .hero-dot{width:18px;height:18px;}
  body.page-home .hero-dot.is-active{width:30px;}
}

@media (max-width:400px){
  body.page-home{--m-section-y:34px;}
  body.page-home .poster-card{
    grid-template-columns:40px minmax(0,1fr) 30px;
    gap:3px 10px;
    padding:12px 13px;
  }
  body.page-home .poster-icon{width:40px;height:40px;}
  body.page-home .poster-icon svg{width:20px;height:20px;}
  body.page-home .poster-title{font-size:.98rem;}
  body.page-home .poster-desc{font-size:.78rem;}
  body.page-home .home-trust .feature-grid.feature-timeline .feature-card{
    grid-template-columns:40px minmax(0,1fr);
    column-gap:10px;
  }
  body.page-home .home-trust .feature-grid.feature-timeline .feature-card .feature-icon,
  body.page-home .home-trust .feature-grid.feature-timeline .feature-card:first-child .feature-icon,
  body.page-home .home-trust .feature-grid.feature-timeline .feature-card:nth-child(even) .feature-icon{
    width:40px;
    height:40px;
  }
  body.page-home .hero .hero-title{font-size:1.24rem;}
}

/* =====================================================================
   HOMEPAGE — MOBILE QA PASS (≤768 px only)
   Result of the responsive review of the homepage on phones:
   1) no unintended horizontal scrolling at any phone width,
   2) headings/copy wrap inside their card instead of widening the page,
   3) 44 px touch targets for the slider arrows/dots, the menu button and
      the footer link rows (WCAG 2.5.5 / Apple HIG minimum),
   4) leftover fixed min-heights removed so every section sizes to its
      own content instead of clipping it.
   Desktop and tablet (≥769 px) stay exactly as they were.
   ===================================================================== */
@media (max-width:768px){
  /* Defensive clip: nothing may widen the page sideways */
  html{overflow-x:clip;}
  body{overflow-x:clip;}

  /* Grid/flex children may shrink below their content width */
  body.page-home .container,
  body.page-home .stats-row,
  body.page-home .poster-grid,
  body.page-home .feature-grid,
  body.page-home .process-inner,
  body.page-home .cta-inner,
  body.page-home .footer-grid{min-width:0;max-width:100%;}
  body.page-home .process-inner > *,
  body.page-home .cta-inner > *,
  body.page-home .footer-grid > *,
  body.page-home .stat{min-width:0;}

  /* Long words wrap instead of overflowing the viewport */
  body.page-home .hero-title,
  body.page-home .section-title,
  body.page-home .section-lead,
  body.page-home .poster-title,
  body.page-home .poster-desc,
  body.page-home .feature-title,
  body.page-home .feature-body,
  body.page-home .process-steps h3,
  body.page-home .process-steps p,
  body.page-home .stat-label,
  body.page-home .cta-title,
  body.page-home .cta-sub{overflow-wrap:break-word;}

  /* Fixed heights that are not needed: content decides the size */
  body.page-home .hero-slide,
  body.page-home .hero-slide.is-active,
  body.page-home .hero-inner,
  body.page-home .hero-content{min-height:0;}
  body.page-home .stats-strip-home,
  body.page-home .stats-strip-home .stat{min-height:0;height:auto;}

  /* Hero photo keeps its native ratio, never stretched */
  body.page-home .hero-slide.is-active .hero-bg-layer{max-width:100%;overflow:hidden;}
  body.page-home .hero-slide.is-active .hero-bg-layer img{width:100%;height:100%;object-fit:cover;}

  /* Slider controls: 44 px usable area, dots keep a stable position */
  body.page-home .hero-controls{gap:12px;padding:0 16px 14px;}
  body.page-home .hero-arrow{
    width:44px;height:44px;min-width:44px;min-height:44px;
  }
  body.page-home .hero-arrow svg{width:20px;height:20px;}
  body.page-home .hero-dots{gap:4px;min-width:0;max-width:100%;flex-wrap:wrap;justify-content:center;}
  body.page-home .hero-dot,
  body.page-home .hero-dot.is-active{
    flex:0 0 auto;
    width:40px;min-width:40px;
    height:44px;min-height:44px;
    padding:0;border-radius:12px;
  }
  body.page-home .hero-dot::before{width:7px;height:7px;}
  body.page-home .hero-dot.is-active::before{width:22px;height:7px;}

  /* Header, drawer and footer controls: same 44 px minimum */
  .site-header .nav-toggle,
  .mobile-nav .nav-close{width:44px;height:44px;flex:0 0 44px;}
  .site-header .brand{padding-block:3px;}
  .footer-nav-cols .footer-links a{
    min-height:44px;
    align-items:center;
    padding-block:10px;
  }
}

@media (max-width:380px){
  /* Very narrow phones: two even counter columns instead of three cramped ones */
  body.page-home .stats-strip-home .stats-row{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px 10px;
  }
  body.page-home .stats-strip-home .stats-row > .stat:last-child:nth-child(odd){
    grid-column:1 / -1;
  }
  body.page-home .hero-controls{padding:0 12px 12px;gap:8px;}
  body.page-home .hero-dot,
  body.page-home .hero-dot.is-active{width:36px;min-width:36px;}
}

/* =====================================================================
   HERO — mobile composition balance (≤767 px only)
   The existing three-zone mobile structure stays untouched: title on the
   cream page, product photo full-bleed, then the CTA and the slider
   controls. Only the framing and rhythm are refined:
   1) the photo frame is slightly shorter and anchored to its bottom edge,
      so the empty area above the packaging is cropped while the full
      width and the packshot proportions stay intact (cover, no stretch,
      no side crop);
   2) title, photo, CTA and controls share the same 16 px gutters and an
      even 12 px vertical rhythm;
   3) the CTA and arrow shadows are softened for a cleaner surface.
   Desktop and tablet (≥768 px) are not affected.
   ===================================================================== */
@media (max-width:767px){
  body.page-home .hero-slide.is-active .hero-bg-layer{
    aspect-ratio:8/3;
  }
  body.page-home .hero-slide.is-active .hero-bg-layer img{
    object-fit:cover;
    object-position:center bottom;
  }
  body.page-home .hero-slide.is-active .hero-title{
    padding:16px 16px 8px;
  }
  body.page-home .hero-slide.is-active .hero-actions{
    padding:12px 16px;
  }
  body.page-home .hero-slide.is-active .hero-actions .btn{
    box-shadow:0 5px 14px -10px rgba(31,77,61,.38);
  }
  body.page-home .hero-controls{
    padding:0 16px 16px;
    gap:10px;
  }
  body.page-home .hero-arrow{
    border-color:rgba(26,31,46,.08);
    box-shadow:0 1px 3px rgba(26,31,46,.04);
  }
}

/* =====================================================================
   HOMEPAGE — MOBILE TYPOGRAPHY REVIEW (≤768 px only)
   Clear four-level type hierarchy for phones, without enlarging copy
   beyond ~1 rem:
     1) eyebrow / meta labels        .75–.8125rem · 500–700
     2) section title                clamp(1.32rem,5.4vw,1.5rem) · 800
     3) card title (product/benefit) 1.0625rem · 700
     4) card copy                    .9rem · 400 · 1.9
   Card descriptions, benefit cards and footer texts step up from the
   old .78–.88rem range to a comfortable .9rem, line-height is opened
   up and the muted tone is darkened for stronger contrast. Desktop and
   tablet (≥769 px) stay exactly as they were.
   ===================================================================== */
@media (max-width:768px){
  body.page-home{
    --m-muted:#4C4640;      /* card copy: darker, still warm */
  }

  /* Level 1 — eyebrow and secondary labels */
  body.page-home .eyebrow{
    margin-bottom:8px;
    font-size:.75rem;
    line-height:1.5;
    font-weight:700;
    letter-spacing:0;
  }
  body.page-home .stats-strip-home .stat-label{
    font-size:.8125rem;
    line-height:1.6;
    font-weight:500;
    color:#DAD6CF;
  }
  body.page-home .poster-index{
    font-size:1.55rem;
    font-weight:800;
    line-height:1;
  }

  /* Level 2 — section titles and their intro line */
  body.page-home .section-head .section-title,
  body.page-home .process-text .section-title{
    font-size:clamp(1.32rem,5.4vw,1.5rem);
    line-height:1.5;
    font-weight:800;
    color:var(--clr-dark);
  }
  body.page-home .section-head .section-lead,
  body.page-home .home-trust .section-lead{
    margin-top:9px;
    font-size:.9375rem;
    line-height:1.95;
    font-weight:400;
    color:var(--m-muted);
  }

  /* Level 3 — card titles */
  body.page-home .poster-title{
    font-size:1.0625rem;
    line-height:1.55;
    font-weight:700;
    color:var(--clr-dark);
  }
  body.page-home .home-trust .feature-grid.feature-timeline .feature-title{
    font-size:1.0625rem;
    line-height:1.55;
    font-weight:700;
    color:var(--clr-dark);
  }
  body.page-home .process-steps h3{
    margin-bottom:4px;
    font-size:1.0625rem;
    line-height:1.6;
    font-weight:700;
    color:var(--clr-dark);
  }

  /* Level 4 — descriptions under the card titles */
  body.page-home .poster-text{gap:7px;}
  body.page-home .poster-desc{
    max-width:none;
    font-size:.9rem;
    line-height:1.9;
    font-weight:400;
    color:var(--m-muted);
  }
  body.page-home .home-trust .feature-grid.feature-timeline .feature-body{
    margin-top:7px;
    font-size:.9rem;
    line-height:1.9;
    font-weight:400;
    color:var(--m-muted);
  }
  body.page-home .process-steps p{
    font-size:.9rem;
    line-height:1.9;
    color:var(--m-muted);
  }

  /* Collaboration band: keep the white copy on the coloured gradient */
  body.page-home .cta-band-collab .cta-title{
    font-size:clamp(1.32rem,5.4vw,1.5rem);
    line-height:1.5;
    font-weight:800;
    color:#fff;
  }
  body.page-home .cta-band-collab .cta-sub{
    margin-top:9px;
    font-size:.9375rem;
    line-height:1.9;
    color:rgba(255,255,255,.96);
  }

  /* Footer — column heads > links/copy > legal line */
  body.page-home .site-footer{color:#E4DFD7;}
  body.page-home .footer-brand .footer-about{
    font-size:.9375rem;
    line-height:1.95;
    font-weight:400;
    color:#E4DFD7;
  }
  body.page-home .footer-nav-cols .footer-head,
  body.page-home .footer-contact-head{
    font-size:1.0625rem;
    line-height:1.5;
    font-weight:700;
    color:#fff;
  }
  body.page-home .footer-nav-cols .footer-links a{
    font-size:.9375rem;
    line-height:1.6;
    font-weight:500;
    color:#E0DBD3;
  }
  body.page-home #footerContactLinks > li > a,
  body.page-home #footerContactLinks > .footer-addr{
    font-size:.9375rem;
    line-height:1.75;
    font-weight:400;
    color:#E7E2DA;
  }
  body.page-home .footer-bottom-inner{
    font-size:.875rem;
    line-height:1.85;
    color:#C9C4BC;
  }
  body.page-home .footer-bottom-inner p:first-child{
    font-size:.9rem;
    color:#E8E3DB;
  }
  body.page-home .footer-madeby{
    font-size:.84rem;
    line-height:1.7;
    color:#BEB9B1;
  }
}

@media (max-width:400px){
  /* Narrow phones: keep the same hierarchy, only the jump is smaller */
  body.page-home .section-head .section-title,
  body.page-home .process-text .section-title,
  body.page-home .cta-band-collab .cta-title{font-size:1.3rem;}
  body.page-home .poster-title,
  body.page-home .home-trust .feature-grid.feature-timeline .feature-title,
  body.page-home .process-steps h3{font-size:1.03rem;}
  body.page-home .poster-desc,
  body.page-home .home-trust .feature-grid.feature-timeline .feature-body,
  body.page-home .process-steps p{font-size:.875rem;line-height:1.9;}
}

/* =====================================================================
   PRODUCT-FAMILY CARDS — UNIFIED VISUAL DETAILS (desktop, >860 px)
   The two-column card structure, the 4 px top rule and the decorative
   circle stay exactly as they are. Icon tile, index, title, description
   and the round entry arrow are placed on one shared grid, so both cards
   line up at the same heights even when the stored taglines have
   different lengths. The arrow keeps one identical, soft accent in the
   normal state on both cards and always sits in the same card corner.
   ===================================================================== */
@media (min-width:861px){
  .showcase-posters .poster-card{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-areas:"top top" "text arrow";
    grid-template-rows:auto minmax(0,1fr);
    column-gap:var(--sp-4);
    row-gap:var(--sp-5);
    padding:clamp(22px,2.6vw,32px);
    box-shadow:0 1px 2px rgba(26,31,46,.04),0 14px 34px -26px rgba(26,31,46,.30);
  }
  .showcase-posters .poster-card:hover,
  .showcase-posters .poster-card:focus-visible{
    box-shadow:var(--shadow-lg);
  }
  .showcase-posters .poster-top{
    grid-area:top;
    align-items:center;
    min-height:60px;
  }
  .showcase-posters .poster-icon{
    width:60px;
    height:60px;
  }
  .showcase-posters .poster-icon svg{
    width:28px;
    height:28px;
  }
  .showcase-posters .poster-index{
    font-size:1.9rem;
    line-height:1;
  }
  .showcase-posters .poster-text{
    grid-area:text;
    align-self:start;
    min-width:0;
    gap:10px;
    margin-block-start:0;
  }
  .showcase-posters .poster-title{
    font-size:clamp(1.3rem,2.2vw,1.7rem);
    line-height:1.5;
  }
  .showcase-posters .poster-desc{
    max-width:38ch;
    font-size:clamp(.9rem,1.05vw,.98rem);
    line-height:1.85;
  }
  .showcase-posters .poster-arrow{
    grid-area:arrow;
    align-self:end;
    justify-self:start;
    width:42px;
    height:42px;
    border:1px solid rgba(196,112,26,.30);
    background:rgba(196,112,26,.08);
    color:var(--clr-secondary);
    box-shadow:none;
  }
  .showcase-posters .poster-arrow svg{
    width:19px;
    height:19px;
  }
  .showcase-posters .poster-card:hover .poster-arrow,
  .showcase-posters .poster-card:focus-visible .poster-arrow{
    background:var(--clr-secondary);
    border-color:var(--clr-secondary);
    color:#fff;
  }
}

/* Phones/tablets: the entry arrows use the same accent as on desktop in
   their normal state, so both category cards read identically. */
@media (max-width:860px){
  .showcase-posters .poster-arrow{
    background:rgba(196,112,26,.10);
    color:var(--clr-secondary);
  }
  .showcase-posters .poster-card:hover .poster-arrow,
  .showcase-posters .poster-card:focus-visible .poster-arrow{
    background:var(--clr-secondary);
    color:#fff;
  }
}

/* =====================================================================
   HOMEPAGE «مزیت همکاری» — card refinement (tablet/desktop only)
   The existing grid design is kept; only the card details are unified:
   one gap, one inner padding, one icon size, one title/description rhythm.
   The border and shadow are quieter, and each card sizes to its content.
   ===================================================================== */
@media (min-width:769px){
  .home-trust .feature-grid{gap:20px;align-items:start;}
  .home-trust .feature-card{
    height:auto;
    padding:26px 24px 24px;
    border:1px solid rgba(30,30,30,.07);
    border-radius:var(--radius-md);
    box-shadow:0 1px 2px rgba(30,30,30,.04);
    transition:transform .2s ease,box-shadow .25s ease,border-color .2s ease;
  }
  .home-trust .feature-card:hover{
    transform:translateY(-2px);
    border-color:rgba(196,112,26,.20);
    box-shadow:0 4px 14px rgba(30,30,30,.06);
  }
  .home-trust .feature-icon{
    width:48px;height:48px;
    border-radius:12px;
    margin-bottom:16px;
  }
  .home-trust .feature-icon svg{width:24px;height:24px;}
  .home-trust .feature-title{
    margin:0;
    font-size:1.1rem;line-height:1.5;
  }
  .home-trust .feature-body{
    margin-top:8px;
    font-size:.95rem;line-height:1.85;
  }
}

/* =====================================================================
   HOMEPAGE — UNIFIED MOBILE SPACING SYSTEM (≤768 px only)
   One 4 px-based scale for the whole homepage scroll:
     4 / 8 / 12 / 16 / 20 / 24 / 32 px
   Related items sit close (label → title 8 px, title → copy 8 px,
   card title → card copy 8 px, buttons 12 px), a heading block keeps a
   clear 20 px gap to its content, and every section uses the same 32 px
   top/bottom padding, so consecutive sections form one continuous
   rhythm (64 px between contents) without oversized empty bands.
   Desktop/tablet and inner pages stay exactly as they are.
   ===================================================================== */
@media (max-width:768px){
  body.page-home{
    --msp-1:4px; --msp-2:8px; --msp-3:12px; --msp-4:16px;
    --msp-5:20px; --msp-6:24px; --msp-7:32px;
    --m-section-y:var(--msp-7);
    --msp-head:var(--msp-5);
    --msp-card:var(--msp-3);
  }

  /* 1 — Section rhythm: identical top/bottom padding on every band */
  body.page-home main > .section,
  body.page-home .home-trust.section,
  body.page-home .process.section,
  body.page-home .cta-band-collab.section{
    padding-block:var(--m-section-y);
  }

  /* Stats strip is attached to the hero, so it stays compact */
  body.page-home .stats-strip-home{padding-block:var(--msp-4);}
  body.page-home .stats-strip-home .stats-row{gap:var(--msp-4) var(--msp-2);}

  /* 2 — Heading block: label → title → lead → content */
  body.page-home .section-head,
  body.page-home .showcase-posters .section-head,
  body.page-home .home-trust .section-head{
    margin:0 0 var(--msp-head);
  }
  body.page-home .eyebrow,
  body.page-home .home-trust .eyebrow,
  body.page-home .process-text .eyebrow{
    margin-bottom:var(--msp-2);
  }
  body.page-home .section-lead,
  body.page-home .home-trust .section-lead{
    margin-top:var(--msp-2);
  }

  /* 3 — Hero: title, photo, CTA and slider controls share one rhythm */
  body.page-home .hero-slide.is-active .hero-title{
    padding:var(--msp-4) var(--msp-4) var(--msp-2);
  }
  body.page-home .hero-slide.is-active .hero-actions{
    padding:var(--msp-3) var(--msp-4);
  }
  body.page-home .hero-controls{
    padding:0 var(--msp-4) var(--msp-4);
    gap:var(--msp-3);
  }

  /* 4 — Cards: one grid gap, one inner padding, one text rhythm */
  body.page-home .showcase-posters .poster-grid{
    gap:var(--msp-card);
  }
  body.page-home .poster-card{
    padding:var(--msp-3) var(--msp-4);
  }
  body.page-home .poster-text{gap:var(--msp-2);}
  body.page-home .home-trust .feature-grid.feature-timeline{gap:var(--msp-card);}
  body.page-home .home-trust .feature-grid.feature-timeline .feature-card{
    padding:var(--msp-3) var(--msp-4);
  }
  body.page-home .home-trust .feature-grid.feature-timeline .feature-body{
    margin-top:var(--msp-2);
  }

  /* 5 — Production path: photo → text → steps → button */
  body.page-home .process-inner{gap:var(--msp-5);}
  body.page-home .process-steps{
    gap:var(--msp-3);
    margin-block:var(--msp-4) var(--msp-4);
  }
  body.page-home .process-steps li{gap:var(--msp-3);}
  body.page-home .process-steps h3{margin-bottom:var(--msp-1);}
  body.page-home .process-text > .btn{margin-top:0;}

  /* 6 — Collaboration band and its button stack */
  body.page-home .cta-band-collab .cta-inner{gap:var(--msp-4);}
  body.page-home .cta-band-collab .cta-sub{margin-top:var(--msp-2);}
  body.page-home .cta-band-collab .cta-actions{
    gap:var(--msp-3);
    margin-top:0;
  }
}

@media (max-width:400px){
  /* Narrow phones keep the same proportions, on a slightly shorter scale */
  body.page-home{
    --m-section-y:28px;
  }
  body.page-home .poster-card,
  body.page-home .home-trust .feature-grid.feature-timeline .feature-card{
    padding:var(--msp-3) var(--msp-4);
  }
  body.page-home .poster-grid{gap:var(--msp-card);}
}

/* =====================================================================
   HOMEPAGE CTA «آمادهٔ همکاری…» — final refinement
   Same markup and same (vertical on mobile) button order; only a calmer
   two-stop gradient, subtler ornament and a tighter type/button rhythm.
   ===================================================================== */
.cta-band-collab{
  background:
    radial-gradient(95% 130% at 100% 0%,rgba(212,151,59,.16) 0%,rgba(212,151,59,0) 62%),
    linear-gradient(135deg,var(--clr-primary) 0%,var(--clr-secondary) 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
}
.cta-band-collab::before{
  inset-inline-start:auto;
  inset-inline-end:-70px;
  top:-130px;
  width:280px;height:280px;
  background:none;
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 0 0 38px rgba(255,255,255,.035);
}
.cta-band-collab .cta-title{
  margin:0;
  line-height:1.5;
  font-weight:800;
  letter-spacing:-.005em;
}
.cta-band-collab .cta-sub{
  margin-top:14px;
  line-height:1.9;
  color:rgba(255,255,255,.94);
}
.cta-band-collab .cta-actions{
  gap:12px;
  margin-top:2px;
}
.cta-band-collab .cta-actions .btn{
  border-radius:12px;
  font-weight:700;
}
.cta-band-collab .btn-light{
  background:#fff;
  color:var(--clr-primary);
  box-shadow:0 10px 24px rgba(20,12,10,.20);
}
.cta-band-collab .btn-light:hover{
  background:#fff;
  box-shadow:0 12px 28px rgba(20,12,10,.26);
}
.cta-band-collab .btn-outline-light{
  background:rgba(255,255,255,.07);
  border-color:rgba(255,255,255,.42);
  color:#fff;
  box-shadow:none;
}
.cta-band-collab .btn-outline-light:hover{
  background:rgba(255,255,255,.14);
  border-color:rgba(255,255,255,.6);
}

@media (max-width:768px){
  body.page-home .cta-band-collab .cta-inner{gap:18px;}
  body.page-home .cta-band-collab .cta-title{
    margin-bottom:0;
    line-height:1.55;
  }
  body.page-home .cta-band-collab .cta-sub{
    margin-top:10px;
    line-height:1.85;
  }
  body.page-home .cta-band-collab .cta-actions{
    margin-top:4px;
    gap:11px;
  }
  body.page-home .cta-band-collab .cta-actions .btn{
    min-height:50px;
    padding:14px 18px;
    border-radius:12px;
  }
  body.page-home .cta-band-collab .btn-light{
    box-shadow:0 10px 22px rgba(20,12,10,.24);
  }
}

/* =====================================================================
   MOBILE FOOTER — final density & hierarchy pass (≤768 px only)
   Same markup, columns and information; only the vertical rhythm is
   tightened. Contact rows become slim divided lines instead of boxed
   cards, icons sit in a small amber tile, and the legal/designer bar
   gets calmer type and contrast. Desktop footer is untouched.
   ===================================================================== */
@media (max-width:768px){
  /* Overall footer rhythm */
  .site-footer .footer-grid{gap:0;padding-block:20px 16px;}

  /* Brand block */
  .footer-brand{padding-bottom:14px;}
  .footer-brand .footer-logo{height:32px;margin:0 0 9px;}
  .footer-brand .footer-about{font-size:.84rem;line-height:1.8;color:#CBC6BE;}
  .footer-brand .footer-social{gap:8px;margin-top:12px;}
  .footer-brand .footer-social a{width:36px;height:36px;border-radius:10px;border-color:rgba(255,255,255,.14);}
  .footer-brand .footer-social a svg{width:17px;height:17px;}

  /* Quick-link columns */
  .footer-nav-cols{gap:14px 18px;padding-block:14px;}
  .footer-nav-cols .footer-head{margin:0 0 7px;padding-bottom:7px;font-size:.9rem;line-height:1.4;}
  .footer-nav-cols .footer-head::after{width:22px;height:2px;}
  .footer-nav-cols .footer-links a{padding-block:4px;font-size:.84rem;line-height:1.5;color:#D3CEC6;}

  /* Contact: compact divided rows, no heavy card chrome */
  .footer-contact{padding-top:14px;}
  .footer-contact-head{margin:0 0 8px;padding-bottom:7px;font-size:.9rem;line-height:1.4;}
  .footer-contact-head::after{width:22px;height:2px;}

  #footerContactLinks{display:flex;flex-direction:column;gap:0;padding:0;
    max-height:none!important;overflow:visible!important;visibility:visible!important;}

  #footerContactLinks > li > a,
  #footerContactLinks > .footer-addr{
    display:flex;align-items:center;gap:10px;
    min-height:0;padding:8px 2px;
    font-size:.85rem;line-height:1.6;color:#D6D1C9;
    background:none;border:0;border-bottom:1px solid rgba(255,255,255,.08);border-radius:0;
  }
  #footerContactLinks > li:last-child > a,
  #footerContactLinks > li:last-child.footer-addr{border-bottom:0;}
  #footerContactLinks > .footer-addr{align-items:flex-start;}
  #footerContactLinks > li > a:active,
  #footerContactLinks > li > a:hover{color:var(--clr-earth);}

  /* Small amber icon tiles keep the row scannable without bulk */
  #footerContactLinks svg{
    width:16px;height:16px;padding:7px;box-sizing:content-box;
    color:var(--clr-earth);background:rgba(212,151,59,.13);border-radius:8px;
  }
  #footerContactLinks > .footer-addr svg{margin-top:0;}

  /* Phone and e-mail always read left-to-right */
  #footerContactLinks .phone-num,
  #footerContactLinks .footer-email{
    direction:ltr;unicode-bidi:isolate;
    font-weight:600;letter-spacing:.01em;color:#F0ECE4;
  }
  #footerContactLinks a span{min-width:0;overflow-wrap:anywhere;}

  /* Legal + designer bar: tighter, quieter, better contrast */
  .footer-bottom{border-top:1px solid rgba(255,255,255,.10);}
  .footer-bottom-inner{
    flex-direction:column;align-items:center;gap:3px;
    padding-block:12px;font-size:.8rem;line-height:1.7;color:#BDB8B0;text-align:center;
  }
  .footer-bottom-inner p:first-child{font-size:.82rem;color:#E2DED7;}
  .footer-madeby{font-size:.76rem;line-height:1.7;color:#B0ABA3;}
  .footer-madeby a{color:#EDE8E0;border-bottom-color:rgba(237,232,224,.35);}

  /* Homepage overrides live earlier with body.page-home — match the new scale */
  body.page-home .footer-brand .footer-about{font-size:.84rem;line-height:1.8;color:#CBC6BE;}
  body.page-home .footer-nav-cols .footer-head,
  body.page-home .footer-contact-head{font-size:.9rem;line-height:1.4;}
  body.page-home .footer-nav-cols .footer-links a{font-size:.84rem;line-height:1.5;color:#D3CEC6;}
  body.page-home #footerContactLinks > li > a,
  body.page-home #footerContactLinks > .footer-addr{font-size:.85rem;line-height:1.6;color:#D6D1C9;}
  body.page-home .footer-bottom-inner{font-size:.8rem;line-height:1.7;color:#BDB8B0;}
  body.page-home .footer-bottom-inner p:first-child{font-size:.82rem;color:#E2DED7;}
  body.page-home .footer-madeby{font-size:.76rem;line-height:1.7;color:#B0ABA3;}
}

/* =====================================================================
   MOBILE UI POLISH — site-wide consistency pass (≤768 px only)
   A review pass over the phone layout only; the desktop/tablet design,
   the markup and all content stay exactly as they are:
   1) one page gutter (16 px) and no sideways scrolling on any page,
   2) the hero slider uses the crimson brand accent again instead of the
      off-palette green CTA/arrows, and inactive dots get real contrast,
   3) inner pages share the homepage phone type scale and card padding, so
      long Persian headings wrap instead of dominating the screen,
   4) 44 px touch targets for buttons, catalogue pills and footer icons,
   5) 16 px form fields (no iOS zoom-on-focus) and calmer form panels.
   ===================================================================== */
@media (max-width:768px){
  /* 1 — Page shell */
  :root{--pad:16px;}
  html{scroll-padding-top:68px;}
  html,body{overflow-x:clip;}
  .page-title,
  .page-lead,
  .section-title,
  .section-lead,
  .feature-title,
  .feature-body,
  .product-title,
  .product-summary,
  .value-card h3,
  .value-card p,
  .timeline-title,
  .timeline-body,
  .catalog-cat-title,
  .contact-val{overflow-wrap:break-word;}

  /* 2 — Hero slider: brand palette and clearer controls */
  .hero-actions .btn-primary{
    background:var(--clr-primary);
    border-color:var(--clr-primary);
    box-shadow:0 10px 22px -14px rgba(140,28,19,.55);
  }
  .hero-actions .btn-primary:hover,
  .hero-actions .btn-primary:focus-visible{
    background:var(--clr-primary-700);
    border-color:var(--clr-primary-700);
  }
  .hero-arrow{color:var(--clr-primary);}
  .hero-arrow:hover,
  .hero-arrow:focus-visible{
    background:var(--clr-primary);
    border-color:var(--clr-primary);
    color:#fff;
  }
  .hero-dot::before{background:rgba(26,31,46,.50);}
  .hero-dot:hover::before{background:rgba(26,31,46,.66);}
  .hero-dot.is-active::before{background:var(--clr-primary);}

  /* 3 — Inner pages: homepage phone type scale and card rhythm */
  .page-hero{padding-block:32px 36px;}
  .page-title{font-size:clamp(1.55rem,6vw,1.85rem);line-height:1.45;letter-spacing:0;}
  .page-lead{margin-top:10px;font-size:.9375rem;line-height:1.95;}
  .crumbs{margin-bottom:12px;font-size:.8rem;flex-wrap:wrap;}
  .page-hero .eyebrow{margin-bottom:10px;}
  .section-head{margin-bottom:24px;}
  .section-title{font-size:clamp(1.3rem,5.2vw,1.5rem);line-height:1.55;letter-spacing:0;}
  .section-lead{margin-top:8px;font-size:.9375rem;line-height:1.9;color:#4C4640;}

  .feature-card,
  .value-card{padding:16px;}
  .feature-icon{width:44px;height:44px;border-radius:10px;margin-bottom:12px;}
  .feature-icon svg{width:22px;height:22px;}
  .feature-title{font-size:1.0625rem;line-height:1.55;}
  .feature-body{margin-top:6px;font-size:.9rem;line-height:1.9;color:#4C4640;}
  .value-card h3{font-size:1.0625rem;line-height:1.55;}
  .value-card p{margin-top:6px;font-size:.9rem;line-height:1.9;color:#4C4640;}
  .timeline-item{padding:16px;padding-block-start:34px;}
  .timeline-no{width:34px;height:34px;inset-block-start:-16px;inset-inline-start:16px;}
  .timeline-title{font-size:1.0625rem;line-height:1.55;}
  .timeline-body{margin-top:6px;font-size:.9rem;line-height:1.9;color:#4C4640;}
  .timeline-icon{width:44px;height:44px;margin-bottom:12px;}
  .timeline-icon svg{width:22px;height:22px;}
  .about-media img,
  .process-media img{border-radius:14px;}
  .about-para{font-size:.95rem;line-height:1.95;}

  /* Collaboration bands on inner pages */
  .cta-band .cta-title{font-size:clamp(1.35rem,5.4vw,1.6rem);line-height:1.55;}
  .cta-band .cta-sub{margin-top:10px;font-size:.95rem;line-height:1.9;}

  /* 4 — Touch targets */
  .btn{min-height:44px;padding:12px 18px;border-radius:12px;}
  .btn-lg{min-height:48px;padding:14px 20px;}
  .btn-sm{min-height:40px;padding:9px 14px;}
  .btn svg{width:19px;height:19px;}
  .cta-actions .btn{min-height:48px;}
  .cat-dl-pill{min-height:40px;padding:9px 14px;border-radius:10px;}
  .cat-dl-view{padding:8px 0;font-size:.85rem;}
  .footer-brand .footer-social a{width:44px;height:44px;border-radius:12px;}
  .footer-brand .footer-social a svg{width:19px;height:19px;}
  .tabs{gap:8px;margin-bottom:20px;}
  .tab{padding:12px 14px;border-radius:12px;gap:10px;}
  .tab-icon{width:40px;height:40px;border-radius:10px;}
  .tab-icon svg{width:20px;height:20px;}
  .tab-title{font-size:.98rem;}
  .tab-tagline{font-size:.78rem;line-height:1.55;}

  /* 5 — Forms and info panels */
  .contact-layout{gap:16px;}
  .contact-info,
  .contact-form-wrap,
  .pf-info,
  .pf-form-wrap{padding:16px;border-radius:16px;}
  .contact-list{gap:16px;}
  .contact-ic{width:40px;height:40px;border-radius:10px;}
  .contact-val{font-size:.9375rem;}
  .field label{font-size:.9rem;}
  .field input,
  .field textarea,
  .field select{font-size:1rem;min-height:48px;padding:12px 14px;border-radius:10px;}
  .field textarea{min-height:132px;}
  .alert{padding:12px;border-radius:10px;font-size:.9rem;line-height:1.8;}
  .alert svg{width:20px;height:20px;}

  /* 6 — Counter band, catalogue head and download cards */
  .stats-strip{padding-block:18px;}
  .stats-strip-plain .stats-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 10px;}
  .stat-value{font-size:1.6rem;}
  .stat-label{font-size:.8125rem;line-height:1.6;}
  .catalog-cat-head{gap:12px;margin-bottom:14px;}
  .catalog-cat-icon{width:44px;height:44px;border-radius:10px;}
  .catalog-cat-icon svg{width:22px;height:22px;}
  .catalog-cat-title{font-size:1.15rem;line-height:1.55;}
  .catalog-cat-tagline{font-size:.9rem;line-height:1.8;}
  .catalog-sum{font-size:.875rem;}
  .cat-dl-filters{padding:12px;}
  .cat-dl-desc{font-size:.9rem;line-height:1.85;}

  /* 7 — No hover lift on phones: a tap would leave the card raised/zoomed */
  .product-card:hover,
  .feature-card:hover,
  .cert-card:hover,
  .value-card:hover{transform:none;box-shadow:none;}
  .gallery-item:hover img{transform:none;}
}

@media (max-width:400px){
  .page-title{font-size:1.45rem;}
  .section-title{font-size:1.28rem;}
  .contact-info,
  .contact-form-wrap,
  .pf-info,
  .pf-form-wrap{padding:14px;}
  .contact-list{gap:14px;}
  .contact-ic{width:38px;height:38px;}
  .contact-val{font-size:.9rem;}
}

