/* =========================================================
   TINCI.ir — معرفی و عرضه محصولات Tinci در ایران (DIT GmbH)
   سیستم طراحی: پالت آزمایشگاهی/گیاهی، تایپوگرافی وزیرمتن
   ========================================================= */

:root{
  --ink:        #0B0B0C;   /* متن اصلی / مشکی تقریبی */
  --ink-soft:   #4A4A4C;   /* متن ثانویه */
  --sage:       #8A8A8E;   /* متن کم‌رنگ / کپشن */
  --paper:      #FFFFFF;   /* پس‌زمینه اصلی */
  --paper-deep: #F2F2F0;   /* پس‌زمینه بخش‌های متناوب */
  --line:       #E3E3E1;   /* خط‌های ظریف / بوردر */
  --white:      #FFFFFF;

  --green:      #0B0B0C;   /* رنگ اصلی برند — مونوکروم مشکی */
  --green-deep: #000000;
  --amber:      #0B0B0C;   /* رنگ ثانویه — مونوکروم */
  --amber-deep: #000000;

  --radius-s: 0px;
  --radius-m: 0px;

  --maxw: 1200px;
}

/* شماره‌های تلفن/اعداد لاتین همیشه چپ‌به‌راست و ایزوله از متن فارسی اطرافشان */
.ltr-num, .tel-link{
  direction:ltr;
  unicode-bidi:isolate;
  display:inline-block;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }

body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:'Vazirmatn', 'Tahoma', sans-serif;
  font-size:16px;
  line-height:1.8;
  direction:rtl;
  -webkit-font-smoothing:antialiased;
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family:inherit; cursor:pointer; }

.wrap{
  max-width:var(--maxw);
  margin:0 auto;
  padding:0 28px;
}

h1,h2,h3,h4{
  margin:0 0 .5em;
  font-weight:700;
  color:var(--ink);
  line-height:1.35;
}
h1,h2{ font-family:'Noto Serif Arabic', 'Vazirmatn', serif; font-weight:700; }
h1{ font-size:clamp(30px,4.2vw,48px); font-weight:700; letter-spacing:-.005em; }
h2{ font-size:clamp(24px,3vw,32px); font-weight:700; }
h3{ font-size:19px; font-family:'Vazirmatn', sans-serif; }
p{ margin:0 0 1em; color:var(--ink-soft); }

.lead{ font-size:18px; color:var(--ink-soft); max-width:62ch; }

/* ---------- عناصر مشترک ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:13px 28px;
  border-radius:var(--radius-s);
  font-weight:600;
  font-size:14.5px;
  letter-spacing:.02em;
  border:1px solid transparent;
  white-space:nowrap; flex:none;
  transition:background .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary{ background:var(--ink); color:var(--white); border-color:var(--ink); }
.btn-primary:hover{ background:#292929; border-color:#292929; }
.btn-outline{ background:transparent; color:var(--ink); border-color:var(--ink); }
.btn-outline:hover{ background:var(--ink); color:var(--white); }
.btn-amber{ background:var(--white); color:var(--ink); border-color:var(--white); }
.btn-amber:hover{ background:#D9D9D9; border-color:#D9D9D9; }
.btn-sm{ padding:9px 18px; font-size:13.5px; }

.tag{
  display:inline-block;
  font-size:11.5px;
  font-weight:600;
  padding:3px 11px;
  border-radius:20px;
  background:transparent;
  color:var(--ink-soft);
  border:1px solid var(--line);
  letter-spacing:.01em;
}
.tag-reach{ color:var(--ink); border-color:var(--ink); }
.tag-cosmos{ color:var(--ink); border-color:var(--ink); }
.tag-halal{ color:var(--ink); border-color:var(--ink); }
.tag-new{ color:var(--white); border-color:var(--ink); background:var(--ink); }

.section{ padding:88px 0; }
.section-tight{ padding:56px 0; }
.section-deep{ background:var(--paper-deep); }
.section-ink{ background:var(--ink); color:var(--white); }
.section-ink p{ color:rgba(255,255,255,.65); }
.section-ink h2{ color:var(--white); }

.section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:24px;
  margin-bottom:40px;
  flex-wrap:wrap;
}
.section-head .lead{ margin-bottom:0; }

.kicker{
  color:var(--ink-soft);
  font-weight:700;
  font-size:12.5px;
  letter-spacing:.08em;
  display:block;
  margin-bottom:12px;
  position:relative;
  padding-inline-start:22px;
}
.kicker::before{
  content:""; position:absolute; inset-inline-start:0; top:50%; transform:translateY(-50%);
  width:14px; height:1px; background:var(--ink);
}

/* ---------- هدر ---------- */
.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
  gap:18px;
}
.logo{
  display:flex; align-items:center; gap:9px;
  font-weight:700; font-size:20px; color:var(--ink);
  font-family:'Noto Serif Arabic', 'Vazirmatn', serif;
  white-space:nowrap; flex:none;
}
.logo small{
  display:block; font-weight:500; font-size:11px; color:var(--sage);
  margin-top:1px; letter-spacing:.01em; white-space:nowrap;
}
.logo-mark{
  height:26px; width:auto; object-fit:contain; display:block;
}
.footer-logo-mark{ height:24px; filter:brightness(0) invert(1); }
.main-nav{ display:flex; align-items:center; gap:2px; flex:none; }
.main-nav a{
  padding:9px 11px; border-radius:6px; font-size:14px; font-weight:600; color:var(--ink-soft);
  white-space:nowrap;
  transition:background .15s, color .15s;
}
.main-nav a:hover, .main-nav a.active{ background:var(--paper-deep); color:var(--green-deep); }
.header-cta{ display:flex; align-items:center; gap:10px; flex:none; }
.header-cta .tel{
  display:flex; flex-direction:column; align-items:flex-end; font-size:12.5px; color:var(--sage);
  white-space:nowrap;
}
.header-cta .tel b{ font-size:14.5px; color:var(--ink); font-weight:700; white-space:nowrap; }
.nav-toggle{
  display:none; width:40px; height:40px; align-items:center; justify-content:center;
  background:var(--paper-deep); border:1px solid var(--line); border-radius:8px; flex:none;
}
.mobile-nav{ display:none; flex-direction:column; padding:6px 0 14px; border-top:1px solid var(--line); }
.mobile-nav.is-open{ display:flex; }
.mobile-nav a{ padding:12px 4px; font-weight:600; color:var(--ink-soft); border-bottom:1px solid var(--paper-deep); }
.mobile-nav a.active{ color:var(--green-deep); }

/* ---------- هیرو (تیره، مونوکروم، الهام از قالب Roid) ---------- */
.hero{
  padding:76px 0 0; margin-top:-1px;
  background:var(--ink); color:var(--white);
  position:relative; overflow:hidden;
}
.hero-bg{
  position:absolute; inset:0; z-index:0;
  background-size:cover; background-position:92% 30%;
  filter:grayscale(1) contrast(1.05) brightness(.55);
}
.hero-bg-overlay{
  position:absolute; inset:0; z-index:1;
  background:linear-gradient(180deg, rgba(11,11,12,.55) 0%, rgba(11,11,12,.82) 65%, rgba(11,11,12,.97) 100%);
}
.hero-photo .wrap{ position:relative; z-index:2; }
.hero-grid{
  display:grid; grid-template-columns:1.05fr .95fr; gap:56px; align-items:center;
  padding-bottom:56px;
}
.hero-eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-size:13px; font-weight:700; color:#fff;
  background:transparent; border:1px solid rgba(255,255,255,.3);
  padding:6px 16px; border-radius:0; margin-bottom:26px; letter-spacing:.04em;
}
.hero h1{ margin-bottom:20px; color:#fff; letter-spacing:-.01em; }
.hero .lead{ color:rgba(255,255,255,.68); }
.hero-stats{
  display:flex; gap:0; margin-top:38px; border-top:1px solid rgba(255,255,255,.16); padding-top:24px;
}
.hero-stats div{ flex:1; padding-inline-end:20px; }
.hero-stats b{ display:block; font-size:26px; color:#fff; font-weight:800; }
.hero-stats span{ font-size:13.5px; color:rgba(255,255,255,.5); }
.hero-actions{ display:flex; gap:14px; margin-top:32px; flex-wrap:wrap; }
.hero .btn-primary{ background:#fff; color:var(--ink); border-color:#fff; }
.hero .btn-primary:hover{ background:#D9D9D9; border-color:#D9D9D9; }
.hero .btn-outline{ color:#fff; border-color:rgba(255,255,255,.4); }
.hero .btn-outline:hover{ background:#fff; color:var(--ink); border-color:#fff; }

.spec-panel{
  background:#141414; border:1px solid rgba(255,255,255,.14); border-radius:0;
  padding:8px;
}
.spec-panel-head{
  display:flex; justify-content:space-between; align-items:center;
  padding:14px 16px; border-bottom:1px dashed rgba(255,255,255,.18);
}
.spec-panel-head b{ color:#fff; font-weight:700; }
.spec-panel-head span{ font-size:13px; color:rgba(255,255,255,.5); font-weight:600; }
.spec-row{
  display:grid; grid-template-columns:1fr auto auto; gap:14px; align-items:center;
  padding:13px 16px; border-bottom:1px solid rgba(255,255,255,.09); font-size:14px;
}
.spec-row:last-child{ border-bottom:none; }
.spec-row .name{ font-weight:700; color:#fff; }
.spec-row .inci{ display:block; font-weight:400; color:rgba(255,255,255,.5); font-size:12px; margin-top:2px; }
.spec-row .tag{ border-color:rgba(255,255,255,.3); color:#fff; }
.swatch{
  width:8px; height:8px; border-radius:50%; display:inline-block; margin-inline-start:6px;
}
.swatch-liquid{ background:#2B2B2B; }
.swatch-powder{ background:#B0B0B0; }
.swatch-paste{ background:#5B5B5B; }
.swatch-granule{ background:#8C8C8C; }
.swatch-other{ background:#454545; }
.spec-panel .swatch-liquid{ background:#EDEDED; }
.spec-panel .swatch-powder{ background:#B5B5B5; }
.spec-panel .swatch-paste{ background:#7C7C7C; }
.spec-panel .swatch-granule{ background:#9A9A9A; }
.spec-panel .swatch-other{ background:#5C5C5C; }

/* ---------- گالری تصاویر (درباره ما) ---------- */
.photo-gallery{
  display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin-top:48px;
}
.photo-gallery figure{ margin:0; }
.photo-gallery img{
  width:100%; height:220px; object-fit:cover; border-radius:var(--radius-m);
  border:1px solid var(--line); filter:grayscale(.15);
}
.photo-gallery figcaption{ font-size:13px; color:var(--sage); margin-top:10px; text-align:center; }
@media (max-width:860px){
  .photo-gallery{ grid-template-columns:1fr; }
}

/* ---------- نوار اعتماد ---------- */
.trust-bar{
  border-top:1px solid var(--line); border-bottom:1px solid var(--line);
  background:var(--white);
}
.trust-bar .wrap{
  display:flex; align-items:center; justify-content:space-between;
  padding:22px 28px; flex-wrap:wrap; gap:18px;
}
.trust-item{ display:flex; align-items:center; gap:10px; font-size:14px; color:var(--ink-soft); font-weight:600; }
.trust-item svg{ flex:none; color:var(--green); }

/* ---------- گرید دسته‌بندی ---------- */
.cat-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:1px;
  background:var(--line); border:1px solid var(--line); border-radius:var(--radius-m); overflow:hidden;
}
.cat-card{
  background:var(--white); padding:30px 26px; display:flex; flex-direction:column; gap:14px;
  transition:background .15s, color .15s;
}
.cat-card:hover{ background:var(--ink); color:var(--white); }
.cat-card:hover p{ color:rgba(255,255,255,.65); }
.cat-card:hover h3{ color:var(--white); }
.cat-card:hover .cat-count{ color:rgba(255,255,255,.5); }
.cat-card:hover .cat-link{ color:var(--white); }
.cat-card:hover .cat-icon{ background:rgba(255,255,255,.12); color:var(--white); }
.cat-icon{
  width:44px; height:44px; border-radius:0; background:var(--cat-tint, var(--paper-deep));
  display:flex; align-items:center; justify-content:center; color:var(--cat-c, var(--ink));
  transition:background .15s, color .15s;
}
.cat-card h3{ margin-bottom:2px; }
.cat-count{ font-size:13px; color:var(--sage); font-weight:600; }
.cat-card p{ font-size:14.5px; margin-bottom:6px; flex:1; }
.cat-link{ font-size:14px; font-weight:700; color:var(--ink); }

/* ---------- کارت محصول ---------- */
.product-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.product-card{
  background:var(--white); border:1px solid var(--line); border-inline-start:4px solid var(--cat-c, var(--line));
  border-radius:var(--radius-m);
  padding:22px; display:flex; flex-direction:column; gap:10px; cursor:pointer;
  transition:box-shadow .15s, border-color .15s;
}
.product-card:hover{ border-color:var(--ink); border-inline-start-color:var(--cat-c, var(--ink)); box-shadow:0 2px 0 var(--ink); }
.tag-cat{ font-weight:700; border-width:1px; border-style:solid; }
.product-card-top{ display:flex; justify-content:space-between; align-items:flex-start; gap:10px; }
.product-card h3{ font-size:16.5px; margin-bottom:2px; }
.product-card .inci{ font-size:12.5px; color:var(--sage); }
.product-card .feature{
  font-size:13.5px; color:var(--ink-soft); margin:0;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.product-card-tags{ display:flex; gap:6px; flex-wrap:wrap; margin-top:auto; padding-top:8px; }
.appearance-pill{
  font-size:12px; color:var(--ink-soft); background:var(--paper-deep);
  border-radius:20px; padding:3px 10px; display:inline-flex; align-items:center; gap:6px;
}

/* ---------- فیلتر محصولات ---------- */
.filter-bar{
  display:flex; gap:12px; align-items:center; flex-wrap:wrap;
  background:var(--white); border:1px solid var(--line); border-radius:var(--radius-m);
  padding:16px; margin-bottom:28px;
}
.filter-bar select, .filter-bar input[type=search]{
  border:1px solid var(--line); border-radius:var(--radius-s); padding:11px 14px;
  font-family:inherit; font-size:14.5px; background:var(--paper); color:var(--ink);
}
.filter-bar input[type=search]{ flex:1; min-width:220px; }
.filter-count{ font-size:13.5px; color:var(--sage); margin-inline-start:auto; }
.chips{ display:flex; gap:8px; flex-wrap:wrap; }
.chip{
  padding:7px 14px; border-radius:20px; font-size:13.5px; font-weight:600;
  border:1px solid var(--line); color:var(--ink-soft); background:var(--white);
}
.chip.is-active{ background:var(--ink); color:var(--white); border-color:var(--ink); }

/* ---------- مودال محصول ---------- */
.modal-backdrop{
  position:fixed; inset:0; background:rgba(11,11,12,.6);
  display:none; align-items:center; justify-content:center; padding:20px; z-index:100;
}
.modal-backdrop.is-open{ display:flex; }
.modal{
  background:var(--white); border-radius:var(--radius-m); max-width:560px; width:100%;
  max-height:88vh; overflow-y:auto; padding:32px;
}
.modal-close{
  float:left; background:var(--paper-deep); border:none; width:32px; height:32px; border-radius:0;
  font-size:16px; color:var(--ink-soft); display:flex; align-items:center; justify-content:center;
}
.modal h3{ font-size:22px; }
.modal .inci{ color:var(--sage); font-size:14px; margin-bottom:18px; }
.modal-grid{
  display:grid; grid-template-columns:1fr 1fr; gap:14px; margin:20px 0;
  border-top:1px solid var(--paper-deep); border-bottom:1px solid var(--paper-deep); padding:18px 0;
}
.modal-grid div span{ display:block; font-size:12.5px; color:var(--sage); margin-bottom:3px; }
.modal-grid div b{ font-size:14.5px; }
.modal-actions{ display:flex; gap:10px; margin-top:22px; flex-wrap:wrap; }

/* ---------- بلاگ ---------- */
.blog-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.blog-card{
  background:var(--white); border:1px solid var(--line); border-radius:var(--radius-m); overflow:hidden;
  display:flex; flex-direction:column;
}
.blog-thumb{
  height:150px; display:flex; align-items:center; justify-content:center;
  color:var(--white); font-weight:800; font-size:14px; text-align:center; padding:16px;
}
.blog-card .body{ padding:22px; display:flex; flex-direction:column; gap:8px; flex:1; }
.blog-meta{ font-size:12.5px; color:var(--sage); }
.blog-card h3{ font-size:17px; }
.blog-card p{ font-size:14px; flex:1; }
.blog-read{ font-size:13.5px; font-weight:700; color:var(--ink); }

.blog-post-body{ max-width:70ch; }
.blog-post-body p{ font-size:16.5px; }
.blog-post-body h2{ margin-top:1.3em; }

/* ---------- درباره ما / تایم‌لاین ---------- */
.two-col{ display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:start; }
.pillars{ display:grid; grid-template-columns:1fr 1fr; gap:18px; margin-top:10px; }
.pillar{
  background:var(--white); border:1px solid var(--line); border-radius:var(--radius-m);
  padding:22px; border-top:2px solid var(--ink);
}
.pillar h4{ font-size:15.5px; margin-bottom:6px; }
.pillar p{ font-size:13.5px; margin:0; }

/* ---------- تماس ---------- */
.contact-grid{ display:grid; grid-template-columns:1fr 1.1fr; gap:48px; }
.contact-card{
  background:var(--white); border:1px solid var(--line); border-radius:var(--radius-m); padding:24px;
  display:flex; gap:16px; align-items:flex-start; margin-bottom:14px;
}
.contact-card .ic{
  width:42px; height:42px; border-radius:0; background:var(--paper-deep);
  display:flex; align-items:center; justify-content:center; color:var(--ink); flex:none;
}
.contact-card h4{ margin-bottom:4px; font-size:15.5px; }
.contact-card a{ display:block; font-size:14.5px; color:var(--ink-soft); }
.contact-card a:hover{ color:var(--ink); }
.contact-card.primary{ border-color:var(--ink); background:var(--paper-deep); }

.form-field{ margin-bottom:16px; display:flex; flex-direction:column; gap:6px; }
.form-field label{ font-size:14px; font-weight:600; color:var(--ink); }
.form-field input, .form-field select, .form-field textarea{
  border:1px solid var(--line); border-radius:var(--radius-s); padding:12px 14px;
  font-family:inherit; font-size:14.5px; background:var(--white); color:var(--ink); resize:vertical;
}
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }

/* ---------- فوتر ---------- */
.site-footer{ background:var(--ink); color:#B8B8B8; padding:60px 0 24px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1.2fr; gap:36px; margin-bottom:44px; }
.footer-grid h4{ color:var(--white); font-size:14.5px; margin-bottom:16px; }
.footer-grid a, .footer-grid p{ font-size:14px; color:#9A9A9A; margin-bottom:10px; display:block; }
.footer-grid a:hover{ color:var(--white); }
.footer-logo{ display:flex; align-items:center; gap:10px; font-weight:800; font-size:19px; color:var(--white); margin-bottom:14px; }
.footer-bottom{
  border-top:1px solid #2A2A2A; padding-top:22px; display:flex; justify-content:space-between;
  font-size:13px; color:#727272; flex-wrap:wrap; gap:10px;
}

/* ---------- breadcrumb ---------- */
/* ---------- ردیف دسته‌بندی (صفحه دسته‌بندی‌ها) ---------- */
.cat-row{
  display:grid; grid-template-columns:auto 1fr auto; gap:26px; align-items:flex-start;
  padding:32px 0; border-bottom:1px solid var(--line);
}
.cat-row-btn{ align-self:center; white-space:nowrap; }

.breadcrumb{ font-size:13.5px; color:var(--sage); margin-bottom:18px; }
.breadcrumb a{ color:var(--ink); font-weight:600; }

/* ---------- صفحه‌بندی عمومی ---------- */
.page-hero{ padding:52px 0 40px; border-bottom:1px solid var(--line); }
.page-hero .lead{ margin-top:10px; }
.page-hero-photo{
  position:relative; overflow:hidden; border-bottom:none;
  background:var(--ink); color:#fff; padding:64px 0 52px;
}
.page-hero-photo .wrap{ position:relative; z-index:2; }
.page-hero-photo .breadcrumb{ color:rgba(255,255,255,.62); }
.page-hero-photo .breadcrumb a{ color:#fff; }
.page-hero-photo .kicker{ color:#fff; }
.page-hero-photo .kicker::before{ background:#fff; }
.page-hero-photo h1{ color:#fff; }
.page-hero-photo .lead{ color:rgba(255,255,255,.72); }

/* ---------- Responsive ---------- */
@media (max-width:1180px){
  .header-cta .tel{ display:none; }
}
@media (max-width:1100px){
  .logo small{ display:none; }
}
@media (max-width:960px){
  .main-nav{ display:none; }
  .nav-toggle{ display:flex; }
  .hero-grid, .two-col, .contact-grid{ grid-template-columns:1fr; }
  .cat-grid{ grid-template-columns:repeat(2,1fr); }
  .product-grid{ grid-template-columns:repeat(2,1fr); }
  .blog-grid{ grid-template-columns:repeat(2,1fr); }
  .footer-grid{ grid-template-columns:1fr 1fr; }
  .form-row{ grid-template-columns:1fr; }
  .cat-row{ grid-template-columns:auto 1fr; }
  .cat-row-btn{ grid-column:1/-1; justify-self:start; margin-top:6px; }
}
@media (max-width:640px){
  .wrap{ padding:0 18px; }
  .cat-grid, .product-grid, .blog-grid{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr; }
  .pillars{ grid-template-columns:1fr; }
  .hero-stats{ flex-wrap:wrap; gap:20px 0; }
  .hero-stats div{ flex:0 0 50%; }
  .header-cta .tel{ display:none; }
  .header-inner{ padding:12px 0; gap:8px; }
  .logo{ gap:6px; }
  .logo > span{ display:none; }
  .logo-mark{ height:22px; }
  .header-cta{ gap:6px; }
  .header-cta .btn{ padding:9px 12px; font-size:12.5px; }
  .nav-toggle{ width:36px; height:36px; }
  .section{ padding:56px 0; }
  .section-tight{ padding:40px 0; }
  .trust-bar .wrap{ padding:16px 18px; gap:14px 22px; }
  .filter-bar{ flex-direction:column; align-items:stretch; }
  .filter-bar select, .filter-bar input[type=search]{ width:100%; min-width:0; }
  .modal{ padding:24px; }
  .cat-row{ padding:24px 0; gap:16px; }
}
@media (max-width:420px){
  .modal-grid{ grid-template-columns:1fr; }
  .hero-stats div{ flex:0 0 100%; padding-inline-end:0; }
  .hero-stats{ gap:16px 0; }
}
