/* style-neutral.css — نسخه خنثی‌شده برای قالب تکنوپارس (RTL) با محتوای وسط‌چین
   - فونت: Vazirmatn از Google Fonts
   - پالت رنگ: خنثی/طوسی با یک آکسانِ بسیار ملایم
   - محتوا به صورت وسط‌چین (centered) در کانتینر
*/

/* ====== Import Vazirmatn (وزیرمتن) از Google Fonts ====== */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800;900&display=swap');

:root{
  /* layout */
  --max-width:1200px;
  --container-padding:1rem;
  --radius:10px;

  /* Neutralized palette */
  --bg: #f6f7f8;
  --card-bg: #ffffff;
  --text: #0f1724;
  --muted: #6b7280;
  --accent: #334155;
  --accent-2: #475569;

  --card-shadow: 0 6px 20px rgba(15,23,42,0.06);
  --card-shadow-strong: 0 10px 30px rgba(15,23,42,0.08);

  --base-font-size:16px;
  --fluid-min:14px;
  --fluid-max:18px;
}

/* ====== Base / Reset ====== */
*{box-sizing:border-box}
html,body{height:100%;}
html{font-size:var(--base-font-size)}
body{
  direction:rtl;
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, Tahoma, sans-serif;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.6;
  font-size: clamp(var(--fluid-min), 1.4vw + 0.5rem, var(--fluid-max));
}

/* کانتینر اصلی با عرض حداکثر و وسط‌چین */
.container{
  max-width:var(--max-width);
  margin:0 auto;
  padding:0 var(--container-padding);
  width:100%; /* اطمینان از اینکه عرض کامل را می‌گیرد */
}

/* Accessible focus outline */
:focus{outline:3px solid rgba(51,65,85,0.14);outline-offset:3px}

/* Links & images */
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}
img{display:block;max-width:100%;height:auto;object-fit:cover}

/* ====== Header / Topbar ====== */
.site-header{
  background:transparent;
}
.site-header .topbar{
  font-size:0.95rem;
  padding:.4rem 0;
  text-align:center; /* وسط‌چین کردن تاپ‌بار اگر لازم باشد */
}
.site-header .main-nav{
  display:flex;
  gap:.4rem;
  align-items:center;
  justify-content:center; /* وسط‌چین منوی اصلی */
  flex-wrap:wrap;
}
.site-header .main-nav a{
  color:inherit;
  padding:.5rem .6rem;
  border-radius:8px;
}
.site-header .main-nav a:hover{
  background:rgba(51,65,85,0.04);
}
.logo{
  height:48px;
  display:block;
  margin:0 auto; /* لوگو وسط‌چین */
}

.menu-toggle{
  display:none;
  background:transparent;
  border:none;
  padding:.5rem;
  border-radius:8px;
  align-items:center;
  justify-content:center;
}
.menu-toggle svg{width:22px;height:22px}

@media(max-width:900px){
  .menu-toggle{display:flex}
  .site-header .main-nav{
    display:none;
    flex-direction:column;
    width:100%;
    text-align:center; /* وسط‌چین در موبایل */
  }
  .site-header .main-nav.open{display:flex}
}

/* ====== Buttons ====== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.4rem;
  padding:.65rem .9rem;
  border-radius:12px;
  background:transparent;
  border:1px solid rgba(15,23,42,0.06);
  font-weight:700;
  font-size:1rem;
  min-height:44px;
  cursor:pointer;
  touch-action:manipulation;
}
.btn.primary{
  background:linear-gradient(90deg,var(--accent),var(--accent-2));
  color:#fff;
  border:none;
}
.btn.ghost{
  background:transparent;
  border:1px solid rgba(15,23,42,0.06);
  color:var(--text);
}
.btn.flat{
  background:transparent;
  border:none;
  color:var(--accent);
}
.btn.small{
  padding:.45rem .6rem;
  font-size:.95rem;
  min-height:36px;
}

/* ====== Hero ====== */
.hero{
  min-height:48vh;
  display:flex;
  align-items:center;
  background-size:cover;
  background-position:center;
  padding:1rem 0;
}
.hero .hero-content{
  max-width:960px;
  width:100%;
  margin:2rem auto; /* وسط‌چین افقی */
  padding:1.6rem;
  background:rgba(255,255,255,0.96);
  border-radius:12px;
  text-align:center;
  box-shadow:var(--card-shadow);
}
.hero-logo{
  height:78px;
  margin:0 auto .6rem auto;
  display:block;
}
.hero-tag{
  font-size:clamp(1rem,2.4vw,1.4rem);
  margin:.4rem 0;
  color:var(--accent);
}
.hero-sub{
  color:var(--muted);
  font-size:clamp(.9rem,1.6vw,1rem);
  margin:0;
}
.hero-ctas{
  margin-top:1rem;
  display:flex;
  gap:.6rem;
  justify-content:center;
  flex-wrap:wrap;
}

@media(max-width:700px){
  .hero{padding:.8rem 0}
  .hero .hero-content{
    margin:1rem auto;
    padding:1rem;
    border-radius:10px;
  }
}

/* ====== Sections / Headings ====== */
section{
  margin:1rem 0;
}
.page-header h1{
  margin:0 0 .4rem 0;
  font-size:clamp(1.4rem,3vw,2rem);
  text-align:center; /* عنوان صفحه وسط‌چین */
}
.big-phones{
  font-size:1.1rem;
  font-weight:700;
  text-align:center;
}

/* ====== Cards grid (responsive) ====== */
.cards-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap:16px;
  justify-content:center; /* گرید وسط‌چین وقتی ستون‌ها کامل پر نمی‌شوند */
}
.card{
  background:var(--card-bg);
  padding:12px;
  border-radius:var(--radius);
  box-shadow:var(--card-shadow);
  display:flex;
  flex-direction:column;
  text-align:center; /* متن داخل کارت وسط‌چین */
}
.card img{
  height:160px;
  object-fit:cover;
  border-radius:8px;
  width:100%;
}
.card h3{
  margin:.6rem 0 .3rem 0;
  font-size:1.05rem;
}
.card .card-desc{
  color:var(--muted);
  font-size:.95rem;
  flex:1;
}

/* ====== Products list ====== */
.products-container{
  padding:1.5rem 0;
}
.products-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap:16px;
  justify-content:center;
}
.product-card{
  background:var(--card-bg);
  border-radius:12px;
  padding:12px;
  overflow:hidden;
  transition:transform .14s ease, box-shadow .14s ease;
  text-align:center;
}
.product-card:hover{
  transform:translateY(-4px);
  box-shadow:var(--card-shadow-strong);
}
.product-thumb{
  width:100%;
  height:180px;
  overflow:hidden;
  border-radius:8px;
}
.product-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.product-body h3{
  font-size:1.15rem;
  margin:.5rem 0;
}
.product-specs li{
  font-size:.95rem;
}
.product-actions{
  margin-top:.6rem;
  display:flex;
  gap:.5rem;
  flex-wrap:wrap;
  justify-content:center;
}

@media(max-width:560px){
  .product-thumb{height:160px}
  .product-actions{
    flex-direction:column;
    align-items:stretch;
  }
}

/* ====== Gallery ====== */
.gallery-container{
  padding:2rem 0;
}
.gallery-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap:12px;
  justify-content:center;
}
.gallery-item{
  background:var(--card-bg);
  border-radius:10px;
  overflow:hidden;
}
.gallery-item img{
  width:100%;
  height:160px;
  object-fit:cover;
}
.gallery-caption{
  padding:.6rem .8rem;
  font-size:.95rem;
  color:var(--muted);
  text-align:center;
}
.lightbox{display:none}
.lightbox.open{display:flex}

/* ====== Contact form ====== */
form.contact-form{
  background:var(--card-bg);
  padding:16px;
  border-radius:10px;
  box-shadow:var(--card-shadow);
  max-width:800px;
  margin:0 auto; /* فرم تماس وسط‌چین */
}
.form-row{
  display:flex;
  gap:12px;
}
@media(max-width:700px){
  .form-row{flex-direction:column}
}
input[type="text"],input[type="tel"],textarea,select{
  width:100%;
  padding:.75rem;
  border:1px solid #e9e9ea;
  border-radius:8px;
  font-size:1rem;
  min-height:44px;
}
textarea{
  min-height:120px;
  resize:vertical;
}

/* ====== Footer ====== */
.site-footer{
  background:#0b1520;
  color:#fff;
  padding:2rem 0;
  text-align:center; /* فوتر وسط‌چین */
}
.site-footer a{color:inherit}
.site-footer .footer-logo{
  height:44px;
  display:block;
  margin:0 auto .5rem auto;
}

/* ====== Floating phone button ====== */
.floating-phone{
  position:fixed;
  right: calc(18px + env(safe-area-inset-right, 0px));
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  width:56px;
  height:56px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(90deg,var(--accent),var(--accent-2));
  color:#fff;
  box-shadow:0 8px 24px rgba(0,0,0,.16);
  z-index:120;
  cursor:pointer;
  touch-action:manipulation;
}
.floating-phone svg{width:22px;height:22px}

/* ====== Utilities & Accessibility ====== */
.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}
.text-center{text-align:center}
.mute{color:var(--muted)}
.flex{display:flex}
.justify-between{justify-content:space-between}
.center{
  display:flex;
  align-items:center;
  justify-content:center;
}

@media(max-width:900px){
  .hero .hero-content{
    margin:1.25rem auto;
    padding:1rem;
  }
  .product-thumb{
    flex:0 0 auto;
    width:100%;
  }
}

@media print{
  .floating-phone,.site-header,.site-footer{display:none}
  body{background:#fff}
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* small helpers */
.container-padding-small{padding-left: .6rem; padding-right: .6rem}
.card-tight{padding:8px}