/* ──────────────────────────────────────────────
   پارس تراس — استایل مشترک
   ────────────────────────────────────────────── */

:root{
  --bg:#0e0c0a;
  --bg-panel:#161310;
  --bg-panel-2:#1d1811;
  --line: rgba(237,231,222,.09);
  --text:#ede7de;
  --text-muted:#9c9284;
  --bronze:#b08d57;
  --bronze-deep:#7c5a32;
  --bronze-bright:#d9b676;
}

*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:auto;}
body{
  background:var(--bg);
  color:var(--text);
  font-family:'Vazirmatn', sans-serif;
  line-height:1.75;
  -webkit-tap-highlight-color: transparent;
}
.lat{ font-family:'Inter', sans-serif; }
::selection{ background:var(--bronze-deep); color:#fff; }
a, button{ touch-action: manipulation; }
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }

.wrap{ max-width:1180px; margin:0 auto; padding:0 clamp(16px,4vw,64px); }

/* ── NAV ── */
header.nav{
  position:fixed; top:0; left:0; right:0; z-index:50;
  background:#1e1b16;
  border-bottom:1px solid var(--line);
  transition:transform .35s ease, opacity .35s ease;
  transform:translateY(0);
  opacity:1;
}
header.nav.nav-hidden{
  transform:translateY(-100%);
  opacity:0;
  pointer-events:none;
}
body{ padding-top:60px; } /* جبران ارتفاع nav fixed */

.nav-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px clamp(16px,4vw,64px); gap:12px;
  max-width:1180px; margin:0 auto;
}
.brand{
  display:flex; align-items:center; gap:10px;
  font-weight:800; font-size:1.05rem; letter-spacing:.02em; flex-shrink:0;
  color:var(--text);
}
.brand-mark{ width:44px; height:51px; object-fit:contain; flex-shrink:0; }

nav.links{
  display:flex; align-items:center; gap:clamp(10px,1.8vw,24px);
  font-size:.88rem; color:var(--text-muted); font-weight:700;
}
nav.links a{ position:relative; padding:6px 4px; transition:color .25s ease; white-space:nowrap; }
nav.links a::after{
  content:''; position:absolute; right:0; left:0; bottom:-2px;
  height:2px; transform:scaleX(0); transform-origin:right;
  background:linear-gradient(90deg,var(--bronze),var(--bronze-bright));
  transition:transform .25s ease;
}
nav.links a:hover, nav.links a.active{
  color:var(--bronze-bright);
  text-shadow:0 0 8px rgba(217,182,118,.4);
}
nav.links a:hover::after, nav.links a.active::after{
  transform:scaleX(1);
  background:linear-gradient(90deg,var(--bronze),var(--bronze-bright),#f0c36f);
}

/* ── NAV ACTIONS (اینستاگرام + تماس) ── */
.nav-actions{
  display:flex; align-items:center; gap:16px; flex-shrink:0;
}

.instagram-link{
  display:inline-flex !important; align-items:center; gap:7px;
  color:#f2c98b !important; font-weight:700; font-size:.88rem;
  transition:filter .2s ease;
}
.instagram-link svg{ width:18px; height:18px; }
.instagram-link:hover{ filter:drop-shadow(0 0 8px rgba(240,195,111,.35)); }

.nav-cta{
  padding:10px 22px !important;
  font-size:.9rem !important;
  border-radius:4px !important;
  box-shadow:0 2px 12px rgba(176,141,87,.25);
  white-space:nowrap;
}
.nav-cta:hover{
  box-shadow:0 4px 20px rgba(176,141,87,.4);
  transform:translateY(-1px);
}

/* ── HAMBURGER ── */
.hamburger{
  display:none; flex-direction:column; gap:0; cursor:pointer;
  width:36px; height:36px; justify-content:center; align-items:center;
  background:none; border:none; padding:0; position:relative; z-index:60;
}
.hamburger span{
  display:block; width:22px; height:2px; background:var(--text);
  border-radius:2px; transition:transform .35s cubic-bezier(.4,0,.2,1), opacity .25s ease;
  position:absolute; left:50%; transform:translateX(-50%);
}
.hamburger span:nth-child(1){ top:11px; }
.hamburger span:nth-child(2){ top:17px; }
.hamburger span:nth-child(3){ top:23px; }
.hamburger.open span:nth-child(1){ transform:translateX(-50%) rotate(45deg) translate(0,6px); }
.hamburger.open span:nth-child(2){ opacity:0; }
.hamburger.open span:nth-child(3){ transform:translateX(-50%) rotate(-45deg) translate(0,-6px); }

/* ── MOBILE DRAWER — Full-screen like Digiato ── */
.drawer-backdrop{
  position:fixed; top:60px; bottom:0; left:0; right:0; z-index:998;
  background:rgba(0,0,0,.6); backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px);
  opacity:0; visibility:hidden;
  transition:opacity .3s ease, visibility .3s ease;
}
.drawer-backdrop.open{ opacity:1; visibility:visible; }

.drawer{
  position:fixed; top:60px; bottom:0; right:0; left:0; z-index:999;
  background:var(--bg,#0e0c0a);
  opacity:0; visibility:hidden;
  transition:opacity .35s ease, visibility .35s ease;
  display:flex; flex-direction:column;
  overflow-y:auto; overscroll-behavior:contain;
}
.drawer.open{ opacity:1; visibility:visible; }



/* ── Drawer Links ── */
.drawer-links{
  display:flex; flex-direction:column; padding:8px 0; flex:1;
}
.drawer-links a{
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 24px; color:var(--text); font-size:1.05rem; font-weight:600;
  text-decoration:none; transition:background .2s, color .2s;
  border-bottom:1px solid var(--line);
}
.drawer-links a:hover, .drawer-links a.active{
  color:var(--bronze-bright); background:rgba(217,182,118,.06);
}
.drawer-links .link-left{ display:flex; align-items:center; gap:14px; }
.drawer-links .link-left svg{ width:20px; height:20px; flex-shrink:0; opacity:.5; color:var(--bronze); }
.drawer-links .link-arrow{
  width:18px; height:18px; color:var(--text-muted); opacity:.4; flex-shrink:0;
}

/* ── Drawer Bottom Bar — 4 icon boxes ── */
.drawer-bottom{
  display:grid; grid-template-columns:repeat(4,1fr); gap:8px;
  padding:16px 20px; border-top:1px solid var(--line); flex-shrink:0;
}
.drawer-bottom a{
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px;
  padding:12px 4px; border-radius:12px; text-decoration:none;
  background:rgba(255,255,255,.04); border:1px solid var(--line);
  color:var(--text-muted); font-size:.72rem; font-weight:600;
  transition:all .2s;
}
.drawer-bottom a:hover{
  background:rgba(217,182,118,.08); color:var(--bronze-bright); border-color:rgba(217,182,118,.2);
}
.drawer-bottom a svg{ width:22px; height:22px; flex-shrink:0; }

/* ── MOBILE ONLY ── */
.mobile-only{ display:none; }

/* ── MOBILE OVERRIDE ── */
@media (max-width:820px){
  header.nav{ background:#1e1b16; }
  .nav-inner{ padding:10px 16px; }
  .nav-actions{ display:none; }
  nav.links{ display:none; }
  .hamburger{ display:flex; order:1; }
  .brand{ order:2; margin-right:auto; margin-left:0; }
  .mobile-only{ display:flex; }
  .drawer-links a{ min-height:48px; }
}

/* ── BUTTONS ── */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:10px 20px; border-radius:3px; font-size:.88rem;
  border:1px solid var(--bronze); transition:.25s ease; min-height:42px;
}
.btn.primary{ background:var(--bronze); color:#161310; font-weight:700; }
.btn.primary:hover{ background:var(--bronze-bright); border-color:var(--bronze-bright); }
.btn.ghost{ color:var(--text); }
.btn.ghost:hover{ border-color:var(--bronze-bright); color:var(--bronze-bright); }

/* ── HERO (base — pages override min-height) ── */
.hero{
  position:relative; display:flex; align-items:center;
  overflow:hidden; border-bottom:1px solid var(--line);
}
.hero-motif{ position:absolute; inset:0; z-index:0; opacity:.16; pointer-events:none; }
.hero-motif svg{ position:absolute; top:50%; left:50%; width:min(1400px,180vw); transform:translate(-50%,-50%); }
.hero-content{ position:relative; z-index:1; padding:60px 0 50px; }
.eyebrow{
  font-size:.8rem; letter-spacing:.15em; color:var(--bronze-bright);
  margin-bottom:16px; display:inline-flex; align-items:center; gap:10px; font-weight:700;
}
.eyebrow::before{ content:''; width:24px; height:1px; background:var(--bronze); }
h1.headline{
  font-weight:800; font-size:clamp(1.9rem,5.4vw,4.2rem);
  line-height:1.25; margin-bottom:22px;
}
h1.headline span{ color:var(--bronze-bright); }
.hero-sub{ color:var(--text-muted); font-size:clamp(.95rem,1.4vw,1.15rem); max-width:52ch; margin-bottom:32px; }
.cta-row{ display:flex; gap:12px; flex-wrap:wrap; }

/* ── SECTIONS ── */
.section{ padding:60px 0; border-bottom:1px solid var(--line); scroll-margin-top:70px; width:100%; }
@media (min-width:769px){ .section{ padding:90px 0; } }
.section-head{
  display:flex; align-items:flex-end; justify-content:space-between;
  flex-wrap:wrap; gap:16px; margin-bottom:36px;
}
.section-head h2{ font-weight:800; font-size:clamp(1.45rem,3vw,2.3rem); }
.section-head p{ color:var(--text-muted); max-width:46ch; font-size:.9rem; }

/* ── LIGHTBOX ── */
.lightbox-overlay{
  position:fixed; inset:0; z-index:9999; background:rgba(0,0,0,.92);
  display:flex; align-items:center; justify-content:center;
  opacity:0; pointer-events:none; transition:opacity .3s ease;
}
.lightbox-overlay.open{ opacity:1; pointer-events:auto; }
.lightbox-overlay img{ max-width:90vw; max-height:85vh; border-radius:6px; object-fit:contain; }
.lightbox-close{
  position:absolute; top:20px; right:20px; background:none; border:none;
  color:#fff; font-size:2.5rem; cursor:pointer; line-height:1; opacity:.7; transition:opacity .2s;
}
.lightbox-close:hover{ opacity:1; }
.lightbox-prev, .lightbox-next{
  position:absolute; top:50%; transform:translateY(-50%);
  background:rgba(255,255,255,.1); border:none; color:#fff; font-size:2rem;
  cursor:pointer; padding:16px 12px; transition:background .2s;
}
.lightbox-prev:hover, .lightbox-next:hover{ background:rgba(255,255,255,.25); }
.lightbox-prev{ left:0; } .lightbox-next{ right:0; }
.lightbox-body{ position:relative; text-align:center; }
.lightbox-counter{
  position:absolute; bottom:-40px; left:50%; transform:translateX(-50%);
  color:rgba(255,255,255,.7); font-size:.85rem;
}

/* ── FOOTER ── */
footer{ padding:50px 0 30px; scroll-margin-top:70px; }
@media(min-width:769px){ footer{ padding:90px 0 50px; } }
.contact-grid{ display:grid; grid-template-columns:1fr 1fr; gap:40px; }
@media (max-width:820px){ .contact-grid{ grid-template-columns:1fr; gap:30px; } }
.contact-list{ display:flex; flex-direction:column; gap:20px; margin-top:24px; }
.contact-item{ display:flex; gap:14px; align-items:flex-start; }
.contact-item .ic{ width:20px; height:20px; flex-shrink:0; margin-top:3px; color:var(--bronze-bright); }
.contact-item .lab{ font-size:.75rem; color:var(--text-muted); margin-bottom:2px; }
.contact-item .val{ font-size:.95rem; transition:color .2s ease; }
.contact-item a.val:hover{ color:var(--bronze-bright); }
.map-box{
  border:1px solid var(--line); min-height:240px;
  background:linear-gradient(var(--line) 1px,transparent 1px) 0 0/32px 32px,
    linear-gradient(90deg,var(--line) 1px,transparent 1px) 0 0/32px 32px,var(--bg-panel);
  display:flex; align-items:center; justify-content:center; text-align:center;
  padding:20px; color:var(--text-muted); font-size:.85rem; position:relative; border-radius:6px;
}
.foot-bottom{
  margin-top:40px; padding-top:20px; border-top:1px solid var(--line);
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px;
  color:var(--text-muted); font-size:.8rem;
}

/* ── VIEWER LOADING ── */
.viewer-loading{
  position:absolute; inset:0; display:flex; flex-direction:column;
  align-items:center; justify-content:center; gap:12px;
  background:rgba(14,12,10,.8); z-index:2; transition:opacity .4s ease;
}
.viewer-loading.hide{ opacity:0; pointer-events:none; }
.viewer-spinner{
  width:36px; height:36px; border:3px solid var(--line);
  border-top-color:var(--bronze-bright); border-radius:50%;
  animation:spin .8s linear infinite;
}
@keyframes spin{ to{ transform:rotate(360deg); } }
.viewer-loading span{ font-size:.82rem; color:var(--text-muted); }

/* ── BACK TO TOP ── */
.back-to-top{
  position:fixed; bottom:24px; left:24px; z-index:40;
  width:44px; height:44px; border-radius:50%;
  background:var(--bronze); color:#161310; border:none; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  font-size:1.3rem; opacity:0; pointer-events:none;
  transition:opacity .3s ease, transform .3s ease, background .2s ease;
  box-shadow:0 4px 20px rgba(0,0,0,.3);
}
.back-to-top.show{ opacity:1; pointer-events:auto; }
.back-to-top:hover{ background:var(--bronze-bright); transform:translateY(-2px); }

/* ── FOCUS VISIBLE ── */
.model-card:focus-visible{
  outline:2px solid var(--bronze-bright);
  outline-offset:2px;
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion:reduce){
  *, *::before, *::after{
    animation-duration:0.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:0.01ms !important;
  }
  html{ scroll-behavior:auto; }
}

/* ── TOUCH FEEDBACK (موبایل) ── */
@media (hover:none){
  .model-card:active{ transform:scale(.98); }
  .antler-card:active{ transform:scale(.98); }
  .why-card:active{ transform:scale(.98); }
}

/* ── موبایل کوچک ── */
@media (max-width:500px){
  .section{ padding:40px 0; }
  .eyebrow{ font-size:.75rem; }
  .btn{ padding:8px 16px; font-size:.82rem; min-height:38px; }
  .viewer-stage{ min-height:280px; }
}

/* بازخورد کپی شماره تماس روی PC */
.copied-ok{ color:#25D366 !important; border-color:rgba(37,211,102,.5) !important; }

/* ── نوار پیشرفت اسکرول (بالای صفحه) ── */
.read-progress{ position:fixed; top:0; right:0; height:3px; width:0; background:linear-gradient(90deg, var(--bronze), var(--bronze-bright)); z-index:1001; box-shadow:0 0 8px rgba(217,182,118,.6); pointer-events:none; }
