/* ═══════════════════════════════════════════
   Kavir Trailer — کویر تریلر
   Industrial Multi-Page Website Stylesheet
   ═══════════════════════════════════════════ */

*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}

:root{
  --red:#c0272d;
  --red-dark:#8e1d21;
  --red-light:#e8484f;
  --navy:#1a2744;
  --navy-light:#2a3d5e;
  --navy-deep:#131d33;
  --steel:#e8eaed;
  --steel-dark:#c4c8cd;
  --bg:#f4f5f7;
  --ink:#1a1a1e;
  --ink-muted:#5a5e68;
  --white:#ffffff;
  --shadow-sm:0 1px 3px rgba(0,0,0,.08);
  --shadow-md:0 4px 16px rgba(0,0,0,.1);
  --shadow-lg:0 8px 32px rgba(0,0,0,.12);
  --radius:8px;
  --max-w:1200px;
  --font:'Vazirmatn',system-ui,sans-serif;
}

html{scroll-behavior:smooth;font-size:16px}
body{font-family:var(--font);color:var(--ink);background:var(--bg);line-height:1.7;-webkit-font-smoothing:antialiased}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
ul{list-style:none}

/* ═══ HEADER ═══ */
.header{position:fixed;top:0;left:0;right:0;z-index:100;background:rgba(19,29,51,.96);backdrop-filter:blur(12px);border-bottom:1px solid rgba(255,255,255,.08)}
.header.scrolled{box-shadow:0 2px 20px rgba(0,0,0,.35)}
.header-inner{max-width:var(--max-w);margin:0 auto;display:flex;align-items:center;justify-content:space-between;padding:0 24px;height:80px}
.logo{display:flex;align-items:center;gap:12px}
.logo-icon{width:56px;height:56px;flex-shrink:0;border-radius:6px;overflow:hidden}
.logo-icon svg{width:100%;height:100%}
.logo-icon img{width:100%;height:100%;object-fit:contain}
.logo-text{display:flex;flex-direction:column;line-height:1.15}
.logo-text-fa{font-size:22px;font-weight:900;color:#fff;letter-spacing:.3px}
.logo-text-en{font-size:11px;color:var(--red);font-weight:600;font-family:system-ui,sans-serif;letter-spacing:1.5px}
nav{display:flex;gap:28px;align-items:center}
nav a{color:rgba(255,255,255,.7);font-size:14px;font-weight:500;transition:color .2s;position:relative;padding:4px 0}
nav a::after{content:'';position:absolute;bottom:-2px;right:0;left:0;height:2px;background:var(--red);transform:scaleX(0);transition:transform .2s}
nav a:hover,nav a.active{color:#fff}
nav a:hover::after,nav a.active::after{transform:scaleX(1)}
.header-cta{background:var(--red);color:#fff!important;padding:8px 20px;border-radius:6px;font-size:13px;font-weight:600;transition:background .2s}
.header-cta::after{display:none}
.header-cta:hover{background:var(--red-dark)}
.menu-toggle{display:none;background:none;border:none;color:#fff;font-size:24px;cursor:pointer;padding:8px}

/* ═══ HERO ═══ */
.hero{margin-top:80px;background:linear-gradient(135deg,var(--navy-deep) 0%,var(--navy) 45%,var(--red-dark) 130%);position:relative;overflow:hidden}
.hero::before{content:'';position:absolute;inset:0;background:url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")}
.hero-inner{max-width:var(--max-w);margin:0 auto;padding:80px 24px;position:relative;z-index:2}
.hero-badge{display:inline-flex;align-items:center;gap:8px;background:rgba(192,39,45,.25);border:1px solid rgba(192,39,45,.4);color:var(--red-light);padding:6px 16px;border-radius:20px;font-size:12px;font-weight:600;margin-bottom:20px}
.hero-badge svg{width:14px;height:14px;fill:var(--red-light)}
.hero h1{font-size:clamp(28px,4vw,44px);font-weight:900;color:#fff;line-height:1.35;margin-bottom:16px;max-width:640px}
.hero h1 span{color:var(--red-light)}
.hero p{font-size:16px;color:rgba(255,255,255,.7);line-height:1.9;margin-bottom:32px;max-width:520px}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap}
.hero-stats{display:flex;gap:40px;margin-top:48px;flex-wrap:wrap}
.hero-stat{text-align:center}
.hero-stat-num{font-size:30px;font-weight:800;color:var(--red-light);display:block}
.hero-stat-label{font-size:12px;color:rgba(255,255,255,.5)}
.hero-wave{position:absolute;bottom:-2px;left:0;right:0;width:100%}

/* page hero (subpages) */
.page-hero{margin-top:80px;background:linear-gradient(135deg,var(--navy-deep),var(--navy));padding:64px 24px 56px;position:relative;overflow:hidden}
.page-hero::before{content:'';position:absolute;inset:0;background:url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")}
.page-hero-inner{max-width:var(--max-w);margin:0 auto;position:relative;z-index:2}
.breadcrumb{display:flex;gap:8px;align-items:center;font-size:12px;color:rgba(255,255,255,.4);margin-bottom:12px}
.breadcrumb a{color:rgba(255,255,255,.55);transition:color .2s}
.breadcrumb a:hover{color:#fff}
.breadcrumb .sep{color:var(--red-light)}
.page-hero h1{font-size:clamp(26px,3.5vw,38px);font-weight:800;color:#fff;margin-bottom:10px}
.page-hero p{color:rgba(255,255,255,.6);font-size:15px;max-width:600px}

/* ═══ BUTTONS ═══ */
.btn-primary{background:var(--red);color:#fff;padding:14px 32px;border-radius:8px;font-size:15px;font-weight:600;display:inline-flex;align-items:center;gap:8px;transition:all .2s;border:none;cursor:pointer;font-family:inherit}
.btn-primary:hover{background:var(--red-light);transform:translateY(-1px);box-shadow:0 4px 16px rgba(192,39,45,.4)}
.btn-outline{background:transparent;color:#fff;padding:14px 32px;border-radius:8px;font-size:15px;font-weight:600;display:inline-flex;align-items:center;gap:8px;border:2px solid rgba(255,255,255,.25);transition:all .2s;cursor:pointer;font-family:inherit}
.btn-outline:hover{border-color:rgba(255,255,255,.5);background:rgba(255,255,255,.05)}

/* ═══ SECTIONS ═══ */
.section{padding:80px 24px}
.section-header{text-align:center;margin-bottom:56px}
.section-tag{display:inline-block;background:rgba(192,39,45,.08);color:var(--red);padding:6px 16px;border-radius:20px;font-size:13px;font-weight:600;margin-bottom:12px}
.section-title{font-size:clamp(24px,3vw,36px);font-weight:800;color:var(--ink);margin-bottom:12px}
.section-subtitle{font-size:15px;color:var(--ink-muted);max-width:600px;margin:0 auto}
.container{max-width:var(--max-w);margin:0 auto}

/* ═══ PRODUCT CARDS ═══ */
.products{background:var(--white)}
.product-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.product-card{background:var(--bg);border-radius:12px;overflow:hidden;border:1px solid var(--steel);transition:all .3s;position:relative;display:flex;flex-direction:column}
.product-card:hover{border-color:var(--red);transform:translateY(-4px);box-shadow:var(--shadow-lg)}
.product-card a.card-link{display:flex;flex-direction:column;flex:1}
.product-img{aspect-ratio:16/10;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center}
.product-img svg.trailer-icon{width:70px;height:44px;opacity:.35}
.product-badge{position:absolute;top:12px;right:12px;background:var(--red);color:#fff;padding:4px 12px;border-radius:4px;font-size:11px;font-weight:700}
.product-body{padding:20px;flex:1}
.product-name{font-size:17px;font-weight:700;color:var(--ink);margin-bottom:4px;line-height:1.5}
.product-model{font-size:12px;color:var(--red);font-weight:600;margin-bottom:14px;direction:ltr;text-align:right}
.product-specs{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.spec-item{display:flex;flex-direction:column}
.spec-label{font-size:11px;color:var(--ink-muted)}
.spec-value{font-size:13px;font-weight:600;color:var(--ink)}
.product-footer{padding:0 20px 20px;display:flex;justify-content:space-between;align-items:center}
.product-link{font-size:13px;color:var(--red);font-weight:600;display:flex;align-items:center;gap:4px;transition:gap .2s}
.product-link:hover{gap:10px}

/* ═══ ABOUT / FEATURES ═══ */
.about{background:var(--bg)}
.about-grid{display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:center}
.about-content h2{font-size:clamp(24px,3vw,36px);font-weight:800;color:var(--ink);margin-bottom:16px;line-height:1.4}
.about-content>p{color:var(--ink-muted);font-size:15px;margin-bottom:24px;line-height:1.9}
.about-features{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.about-feature{display:flex;gap:12px;align-items:flex-start;padding:16px;background:var(--white);border-radius:10px;border:1px solid var(--steel);transition:border-color .2s}
.about-feature:hover{border-color:var(--red)}
.feature-icon{width:40px;height:40px;min-width:40px;border-radius:8px;background:rgba(192,39,45,.08);display:flex;align-items:center;justify-content:center;color:var(--red)}
.feature-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.about-feature h4{font-size:14px;font-weight:700;color:var(--ink);margin-bottom:2px}
.about-feature p{font-size:12px;color:var(--ink-muted);margin:0}
.about-visual-card{background:linear-gradient(135deg,var(--navy),var(--navy-light));border-radius:16px;padding:40px;color:#fff;position:relative;overflow:hidden}
.about-visual-card::before{content:'';position:absolute;top:-50%;left:-50%;width:200%;height:200%;background:radial-gradient(circle at 30% 30%,rgba(192,39,45,.15),transparent 50%)}
.about-visual-card h3{font-size:20px;font-weight:700;margin-bottom:10px;position:relative}
.about-visual-card p{color:rgba(255,255,255,.7);font-size:14px;line-height:1.8;position:relative}
.about-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:32px;position:relative}
.about-stat-item{text-align:center;padding:16px;background:rgba(255,255,255,.08);border-radius:8px;border:1px solid rgba(255,255,255,.1)}
.about-stat-item strong{font-size:24px;font-weight:800;color:var(--red-light);display:block}
.about-stat-item span{font-size:11px;color:rgba(255,255,255,.5)}

/* ═══ SPECS TABLE (detail page) ═══ */
.specs-section{background:var(--white)}
.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.spec-card{background:var(--bg);border-radius:12px;padding:24px;border:1px solid var(--steel)}
.spec-card h4{font-size:16px;font-weight:700;color:var(--ink);padding-bottom:12px;border-bottom:1px solid var(--steel-dark);margin-bottom:14px}
.spec-row{display:flex;justify-content:space-between;gap:16px;padding:8px 0;font-size:13.5px;border-bottom:1px dashed var(--steel)}
.spec-row:last-child{border-bottom:none}
.spec-row .label{color:var(--ink-muted)}
.spec-row .value{color:var(--ink);font-weight:600;text-align:left}
.detail-side{position:sticky;top:96px;display:flex;flex-direction:column;gap:20px}
.key-specs-card{background:var(--navy);border-radius:12px;padding:24px;color:#fff}
.key-specs-card h4{font-size:15px;font-weight:700;margin-bottom:16px;color:#fff}
.key-specs-card .spec-row{border-bottom-color:rgba(255,255,255,.12)}
.key-specs-card .spec-row .label{color:rgba(255,255,255,.55)}
.key-specs-card .spec-row .value{color:#fff}
.cta-box{background:var(--red);border-radius:12px;padding:24px;color:#fff;text-align:center}
.cta-box h4{font-size:16px;font-weight:700;margin-bottom:8px}
.cta-box p{font-size:13px;color:rgba(255,255,255,.85);margin-bottom:16px}
.cta-box .btn-white{background:#fff;color:var(--red);padding:10px 24px;border-radius:8px;font-size:14px;font-weight:700;display:inline-block;transition:transform .2s}
.cta-box .btn-white:hover{transform:translateY(-1px)}

/* ═══ PROCESS / TIMELINE ═══ */
.process{background:var(--bg)}
.process-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}
.process-step{background:var(--white);border-radius:12px;padding:28px 24px;border:1px solid var(--steel);position:relative;transition:border-color .2s}
.process-step:hover{border-color:var(--red)}
.step-num{font-size:40px;font-weight:900;color:rgba(192,39,45,.12);position:absolute;top:12px;left:16px;line-height:1}
.process-step h4{font-size:15px;font-weight:700;margin-bottom:8px;color:var(--ink)}
.process-step p{font-size:13px;color:var(--ink-muted);line-height:1.7}

/* ═══ CONTACT ═══ */
.contact{background:linear-gradient(135deg,var(--navy-deep),var(--navy))}
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:60px}
.contact-info{color:#fff}
.contact-info .section-tag{background:rgba(192,39,45,.2);color:var(--red-light)}
.contact-info h2{font-size:clamp(24px,3vw,36px);font-weight:800;margin-bottom:16px}
.contact-info>p{color:rgba(255,255,255,.6);font-size:15px;margin-bottom:40px;line-height:1.8}
.contact-item{display:flex;gap:16px;align-items:flex-start;margin-bottom:28px}
.contact-icon{width:44px;height:44px;min-width:44px;border-radius:10px;background:rgba(192,39,45,.2);display:flex;align-items:center;justify-content:center}
.contact-icon svg{width:20px;height:20px;fill:var(--red-light)}
.contact-item h4{font-size:14px;font-weight:600;color:#fff;margin-bottom:4px}
.contact-item p,.contact-item a{font-size:13px;color:rgba(255,255,255,.55);line-height:1.7;display:block;transition:color .2s}
.contact-item a:hover{color:#fff}
.contact-form-wrap{background:rgba(255,255,255,.05);border-radius:16px;border:1px solid rgba(255,255,255,.1);padding:32px}
.contact-form-wrap h3{color:#fff;font-size:18px;font-weight:700;margin-bottom:24px}
.form-group{margin-bottom:16px}
.form-group label{display:block;color:rgba(255,255,255,.6);font-size:13px;margin-bottom:6px;font-weight:500}
.form-group input,.form-group textarea,.form-group select{width:100%;padding:12px 16px;border-radius:8px;border:1px solid rgba(255,255,255,.15);background:rgba(255,255,255,.05);color:#fff;font-family:inherit;font-size:14px;transition:border-color .2s}
.form-group input::placeholder,.form-group textarea::placeholder{color:rgba(255,255,255,.3)}
.form-group input:focus,.form-group textarea:focus,.form-group select:focus{outline:none;border-color:var(--red)}
.form-group textarea{min-height:110px;resize:vertical}
.form-group select option{color:var(--ink);background:var(--white)}
.form-submit{width:100%;padding:14px;background:var(--red);color:#fff;border:none;border-radius:8px;font-size:15px;font-weight:700;cursor:pointer;transition:background .2s;font-family:inherit}
.form-submit:hover{background:var(--red-light)}

/* ═══ FOOTER ═══ */
.footer{background:var(--navy-deep);border-top:1px solid rgba(255,255,255,.05);padding:56px 24px 32px}
.footer-grid{max-width:var(--max-w);margin:0 auto;display:grid;grid-template-columns:2fr 1fr 1fr 1.5fr;gap:40px;margin-bottom:40px}
.footer-brand p{color:rgba(255,255,255,.45);font-size:13px;line-height:1.8;margin-top:14px;max-width:280px}
.footer h5{color:#fff;font-size:14px;font-weight:700;margin-bottom:16px}
.footer-col ul{display:flex;flex-direction:column;gap:10px}
.footer-col a{color:rgba(255,255,255,.45);font-size:13px;transition:color .2s}
.footer-col a:hover{color:#fff}
.footer-contact li{color:rgba(255,255,255,.45);font-size:13px;margin-bottom:10px;display:flex;gap:8px;align-items:flex-start;line-height:1.6}
.footer-contact svg{width:16px;height:16px;fill:rgba(255,255,255,.3);flex-shrink:0;margin-top:3px}
.footer-bottom{max-width:var(--max-w);margin:0 auto;padding-top:24px;border-top:1px solid rgba(255,255,255,.06);display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px}
.footer-copy{color:rgba(255,255,255,.3);font-size:12px}

/* ═══ RESPONSIVE ═══ */
@media(max-width:960px){
  .hero-stats{gap:24px}
  .product-grid{grid-template-columns:1fr 1fr}
  .about-grid{grid-template-columns:1fr}
  .contact-grid{grid-template-columns:1fr}
  .detail-grid{grid-template-columns:1fr}
  .detail-side{position:static}
  .process-grid{grid-template-columns:1fr 1fr}
  .footer-grid{grid-template-columns:1fr 1fr}
  nav{display:none}
  .menu-toggle{display:block}
  nav.open{display:flex;position:fixed;top:80px;left:0;right:0;background:var(--navy-deep);flex-direction:column;padding:20px 24px;gap:16px;border-bottom:1px solid rgba(255,255,255,.1);z-index:99}
}
@media(max-width:640px){
  .product-grid{grid-template-columns:1fr}
  .about-features{grid-template-columns:1fr}
  .process-grid{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr}
  .section{padding:56px 16px}
  .hero-inner{padding:56px 16px}
}

/* ═══ ANIMATION ═══ */
.reveal{opacity:0;transform:translateY(24px);transition:opacity .6s ease,transform .6s ease}
.reveal.visible{opacity:1;transform:translateY(0)}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important}
  .reveal{opacity:1;transform:none}
  html{scroll-behavior:auto}
}


/* Product images - transparent background */
.product-img{background:transparent!important}
.product-img img{width:100%;height:100%;object-fit:cover}

/* Hero two-column layout */
.hero-inner{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:center}
.hero-text{max-width:560px}
.hero-visual{display:flex;justify-content:center;align-items:center;min-height:340px}
.hero-illustration{width:100%;max-width:480px;height:auto}
@keyframes float{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}
.float-card{animation:float 4s ease-in-out infinite}
@media(max-width:960px){.hero-inner{grid-template-columns:1fr}.hero-visual{display:none}}
@media(prefers-reduced-motion:reduce){.float-card{animation:none}}
