:root{
  --cream-1:#F8F4EA;
  --cream-2:#EFE7D6;
  --line:#D9CEB4;
  --ink:#2C2A24;
  --ink-soft:#6B6656;
  --steel:#3E4A52;
  --steel-soft:#5B6B74;
  --copper:#A85C34;
}
*{box-sizing:border-box;margin:0;padding:0}
html{
  scroll-behavior:smooth;
  overflow-x:hidden;
  width:100%;
  touch-action:pan-y pinch-zoom;
}
body{
  font-family:'Vazirmatn', sans-serif;
  background:var(--cream-1);
  color:var(--ink);
  line-height:1.9;
  overflow-x:hidden;
  width:100%;
  max-width:100vw;
  touch-action:pan-y pinch-zoom;
}

/* ---------- HERO ---------- */
.hero{
  min-height:78vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:6vh 6vw;
  position:relative;
  background:
    radial-gradient(circle at 50% 15%, rgba(168,92,52,0.06), transparent 60%),
    var(--cream-1);
}
.hero-logo{width:240px;height:240px;margin-bottom:28px;object-fit:contain}
.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}
.hero h1{
  font-size:clamp(28px,5vw,46px);
  font-weight:800;
  letter-spacing:-.01em;
  color:var(--ink);
}
.hero p{
  margin-top:16px;
  max-width:520px;
  color:var(--ink-soft);
  font-size:17px;
}
.hero .tagline{
  margin-top:28px;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  width:min(620px,100%);
  font-size:clamp(17px,3vw,22px);
  color:var(--steel-soft);
}
.hero .tagline span{
  min-height:76px;
  padding:10px 20px;
  border:1px solid rgba(217,206,180,.18);
  border-radius:48px;
  background:rgba(20,20,18,.72);
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  box-sizing:border-box;
}

/* The old animated down-arrow/line has been intentionally removed. */
.scroll-hint{display:none !important;}

/* ---------- SPINE (mobile-first, single layout for all screens) ---------- */
.spine-wrap{
  position:relative;
  max-width:480px;
  margin:0 auto;
  padding:40px 0 100px;
  overflow-x:hidden;
}
.spine-wrap::before{
  content:"خدمات ما";
  display:block;
  text-align:center;
  font-size:13px;
  color:var(--ink-soft);
  letter-spacing:.05em;
  margin-bottom:60px;
}

.card{
  position:relative;
  width:100%;
  margin:0 0 24px;
  background:var(--cream-2);
  border:1px solid var(--line);
  border-radius:6px;
  padding:18px;
  opacity:1;
  display:flex;
  align-items:flex-start;
  gap:16px;
}
.card h3{
  font-size:18px;
  font-weight:700;
  margin-bottom:10px;
  color:var(--ink);
}
.card p{
  font-size:14.5px;
  color:var(--ink-soft);
}
.connector{ display:none; }

/* placeholder box for the per-service image (link to be added later)
   1:1 image, taking roughly a third of the card's width */
.card-media{
  flex-shrink:0;
  width:33%;
  aspect-ratio:1/1;
  border-radius:8px;
  background:var(--cream-1);
  border:1px dashed var(--line);
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--ink-soft);
  overflow:hidden;
}
.card-media svg{width:38%;height:38%;opacity:.55}
.card-media img{width:100%;height:100%;object-fit:cover;display:block}
.card-body{flex:1;min-width:0}

/* the text-only wide block, like the bottom sketch item */
.card-note{
  width:100%;
  margin:0 0 40px;
  background:transparent;
  border:none;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  border-radius:0;
  padding:24px 4px;
  text-align:center;
}
.card-note h3{font-size:17px;margin-bottom:12px;}
.card-note p{font-size:14px;color:var(--ink-soft);max-width:520px;margin:0 auto;}

/* reveal animation: each card starts fully outside the visible
   viewport (off-canvas) and slides into place as it scrolls into view.
   .reveal-io is the stationary box the IntersectionObserver watches;
   .reveal is the actual element that gets transformed/animated. It must
   stay separate from the observed box, otherwise the observer would
   never see it "intersecting" while it sits off-screen. */
.reveal-io{
  overflow:hidden;
}
.js-ready .reveal{
  transition:transform .8s cubic-bezier(.2,.7,.2,1), opacity .8s ease;
  opacity:0;
  will-change:transform;
}
.js-ready .reveal.from-right{ transform:translateX(100vw); }
.js-ready .reveal.from-left{ transform:translateX(-100vw); }
.js-ready .reveal-io.in-view .reveal{
  opacity:1;
  transform:translateX(0);
}
@media (prefers-reduced-motion: reduce){
  .js-ready .reveal{ transition:none; opacity:1; transform:none; }
}

/* ---------- FOOTER ---------- */
footer{
  background:var(--steel);
  color:#EFE9DC;
  text-align:center;
  padding:50px 6vw;
}
footer h4{font-size:20px;margin-bottom:10px;font-weight:700;}
footer p{color:#C9CFD2;font-size:14.5px;}
footer .contact{
  margin-top:24px;
  display:flex;
  justify-content:center;
  gap:28px;
  flex-wrap:wrap;
  font-size:14.5px;
}



/* ---------- GOOGLE-STYLE SEARCH ---------- */
.site-search{
  width:min(620px, 92vw);
  height:54px;
  margin:24px auto 0;
  display:flex;
  direction:ltr;
  align-items:center;
  background:#fff;
  border:1px solid #d9dce0;
  border-radius:28px;
  box-shadow:0 2px 7px rgba(0,0,0,.10);
  overflow:hidden;
  transition:box-shadow .2s ease, border-color .2s ease;
}
.site-search:focus-within{
  border-color:#c9cdd2;
  box-shadow:0 2px 10px rgba(0,0,0,.16);
}
.site-search input{
  flex:1;
  min-width:0;
  height:100%;
  border:0;
  outline:0;
  background:transparent;
  padding:0 20px;
  direction:rtl;
  text-align:right;
  font:500 15px 'Vazirmatn',sans-serif;
  color:var(--ink);
}
.site-search input::placeholder{color:#8b8f94}
.site-search button{
  flex:0 0 52px;
  width:52px;
  height:100%;
  border:0;
  background:transparent;
  color:#687078;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.site-search button:hover{background:#f5f6f7}
.site-search svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}

/* ---------- CONTACT + MAP ---------- */
footer .contact{
  max-width:900px;
  margin:28px auto 0;
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:14px;
  align-items:stretch;
}
.contact-item{
  display:flex;
  flex-direction:column;
  gap:5px;
  padding:18px;
  border:1px solid rgba(239,233,220,.18);
  border-radius:10px;
  background:rgba(255,255,255,.045);
  font-size:13.5px;
}
.contact-label{
  font-weight:700;
  font-size:14px;
  margin-bottom:3px;
}
.contact-item a{
  color:#EFE9DC;
  text-decoration:none;
}
.contact-item a:hover{text-decoration:underline}
.map-section{
  max-width:900px;
  margin:34px auto 0;
  text-align:right;
}
.map-section h5{
  margin-bottom:12px;
  font-size:17px;
  font-weight:700;
}
.map-frame{
  width:100%;
  height:330px;
  border-radius:12px;
  overflow:hidden;
  border:1px solid rgba(239,233,220,.22);
  background:#dfe2e3;
}
.map-frame iframe{
  width:100%;
  height:100%;
  border:0;
  display:block;
}
.map-link{
  display:inline-block;
  margin-top:12px;
  color:#EFE9DC;
  font-size:13.5px;
  text-decoration:none;
}
.map-link:hover{text-decoration:underline}
.search-empty{
  text-align:center;
  color:var(--ink-soft);
  padding:24px 12px;
  font-size:14px;
  display:none;
}
.search-hidden{display:none !important}

@media (max-width:700px){
  footer .contact{grid-template-columns:1fr}
  .map-frame{height:280px}
  .site-search{height:52px;margin-top:20px}
}

/* Contact phones in one horizontal row */
.contact-item.phones{
  flex-direction:row;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:8px 18px;
}
.contact-item.phones .contact-label{
  flex:0 0 100%;
  text-align:center;
}
.contact-item.phones a{
  white-space:nowrap;
}
@media (max-width:520px){
  .contact-item.phones{
    flex-direction:column;
    gap:6px;
  }
  .contact-item.phones .contact-label{flex:auto}
}

/* Advanced search visibility */
.search-hidden{display:none !important}
#searchStatus{margin:16px auto;max-width:900px}

/* Phone numbers: always together in one row on normal screens */
.contact-item.phones{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}
.contact-item.phones .contact-label{
  flex:none;
  width:auto;
  text-align:center;
}
.phone-row{
  width:100%;
  display:flex;
  flex-direction:row;
  align-items:center;
  justify-content:center;
  gap:14px;
  flex-wrap:nowrap;
  direction:rtl;
}
.phone-link{
  flex:1 1 0;
  min-width:0;
  text-align:center;
  white-space:nowrap;
  padding:9px 8px;
  border-radius:8px;
}
.phone-link:hover{
  background:rgba(255,255,255,.08);
  text-decoration:none !important;
}
@media (max-width:520px){
  .phone-row{
    gap:6px;
  }
  .phone-link{
    font-size:12px;
    padding:8px 3px;
  }
}

@media (max-width:520px){
  .hero .tagline{
    grid-template-columns:1fr;
    gap:10px;
  }
  .hero .tagline span{
    min-height:62px;
    border-radius:36px;
  }
}

/* ---------- SERVICE TABS (خودرو / موتورسیکلت) ---------- */
.service-tabs{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  margin:0 18px 32px;
  padding:6px;
  background:var(--cream-2);
  border:1px solid var(--line);
  border-radius:14px;
}
.service-tab{
  font:700 16px 'Vazirmatn',sans-serif;
  padding:12px 8px;
  border:0;
  border-radius:10px;
  background:transparent;
  color:var(--ink-soft);
  cursor:pointer;
  transition:background .2s ease,color .2s ease,box-shadow .2s ease;
}
.service-tab:hover{color:var(--copper)}
.service-tab.active{
  background:var(--copper);
  color:#fff;
  box-shadow:0 2px 8px rgba(168,92,52,.3);
}
.service-panel[hidden]{display:none}


/* ================= SEO redesign additions ================= */
.h1-sub{display:block;margin-top:8px;font-size:clamp(15px,2.6vw,20px);font-weight:600;color:var(--steel-soft);letter-spacing:0}
.search-back-button{display:none;margin:10px auto 0;padding:8px 18px;border:1px solid rgba(255,255,255,.25);border-radius:10px;background:transparent;color:inherit;cursor:pointer;font-family:inherit;font-size:14px}
.search-back-button.show{display:block}
.site-search-link{display:flex !important;align-items:center;gap:8px;width:min(620px,100%);margin:16px auto 0;padding:8px;text-decoration:none !important;color:var(--ink);background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 2px 8px rgba(44,42,36,.06);box-sizing:border-box;transition:box-shadow .2s ease,border-color .2s ease}
.site-search-link:hover{border-color:var(--copper);box-shadow:0 2px 10px rgba(168,92,52,.15)}
.site-search-link .search-placeholder{flex:1;min-width:0;padding:10px 12px;text-align:right;color:var(--ink-soft);font-size:15px}
.site-search-link .search-button-icon{width:44px;height:44px;display:flex;align-items:center;justify-content:center;flex:none;border-radius:9px;background:var(--cream-2);color:var(--steel)}
.site-search-link svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}

body{padding-bottom:64px}
.call-bar{position:fixed;bottom:0;left:0;right:0;z-index:50;display:flex;gap:8px;padding:8px 10px calc(8px + env(safe-area-inset-bottom));background:rgba(26,26,26,.96)}
.call-bar a{flex:1;text-align:center;padding:11px 8px;border-radius:10px;background:var(--copper);color:#fff;text-decoration:none;font-weight:700;font-size:14.5px}
.call-bar a:hover{filter:brightness(1.08)}

.card h3 a{color:inherit;text-decoration:none}
.card h3 a:hover{color:var(--copper);text-decoration:underline}
.cat-more{text-align:center;margin:8px 0 30px;font-size:15px}
.cat-more a{color:var(--copper);font-weight:700;text-decoration:none}
.cat-more a:hover{text-decoration:underline}

.site-nav{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 16px;padding:12px 18px;background:#1a1a1a;color:#fff}
.site-brand{color:#fff;font-weight:800;font-size:18px;text-decoration:none}
.site-nav nav{display:flex;flex-wrap:wrap;gap:4px 14px}
.site-nav nav a{color:#e6dfcd;text-decoration:none;font-size:14px;padding:4px 2px}
.site-nav nav a:hover,.site-nav nav a[aria-current]{color:#fff;border-bottom:2px solid var(--copper)}

.page{max-width:760px;margin:0 auto;padding:22px 18px 40px}
.breadcrumb ol{display:flex;flex-wrap:wrap;gap:4px 8px;list-style:none;font-size:13px;color:var(--ink-soft);margin-bottom:14px}
.breadcrumb li+li::before{content:"‹";margin-inline-end:8px;color:var(--line)}
.breadcrumb a{color:var(--steel);text-decoration:none}
.breadcrumb a:hover{color:var(--copper)}
.page-title{font-size:clamp(24px,4.5vw,34px);font-weight:800;line-height:1.5;margin-bottom:14px}
.page h2{font-size:20px;font-weight:700;margin:26px 0 10px}
.lead{font-size:16.5px;color:var(--ink);margin-bottom:12px}
.service-figure{float:left;width:150px;margin:0 16px 10px 0;border-radius:10px;overflow:hidden;border:1px solid var(--line)}
.service-figure img{width:100%;height:auto;display:block}
.check-list,.step-list{margin:0 22px 8px 0;font-size:15.5px}
.check-list li,.step-list li{margin-bottom:6px}
.check-list{list-style:none;margin-right:0}
.check-list li::before{content:"✓";color:var(--copper);font-weight:800;margin-inline-end:8px}
.service-list{margin-top:18px}
.page .spine-wrap{max-width:none}

.faq-block{margin:30px 0 10px}
.faq-block h2{font-size:20px;font-weight:700;margin:0 0 12px}
.faq-item{background:var(--cream-2);border:1px solid var(--line);border-radius:8px;margin-bottom:10px;padding:2px 14px}
.faq-item summary{cursor:pointer;list-style:none;padding:10px 0}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary h3{display:inline;font-size:15.5px;font-weight:700}
.faq-item p{font-size:14.5px;color:var(--ink-soft);padding:0 0 12px}
.spine-wrap .faq-block{padding:0 14px}

.cta-box{margin:34px 0 10px;padding:22px 16px;text-align:center;background:var(--steel);color:#fff;border-radius:12px}
.cta-box h2{font-size:19px;margin:0 0 6px !important}
.cta-box p{font-size:14px;opacity:.85;margin-bottom:14px}
.cta-row{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}
.btn{display:inline-block;padding:11px 18px;border-radius:10px;background:var(--copper);color:#fff;text-decoration:none;font-weight:700;font-size:15px}
.related ul{list-style:none;display:grid;gap:8px;margin:0}
.related a{display:block;padding:11px 14px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);text-decoration:none;font-size:15px}
.related a:hover{border-color:var(--copper);color:var(--copper)}
.footer-links{display:flex;flex-wrap:wrap;justify-content:center;gap:6px 16px;margin:22px 0 4px}
.footer-links a{color:inherit;opacity:.85;font-size:14px;text-decoration:none}
.footer-links a:hover{opacity:1;text-decoration:underline}
@media(max-width:520px){.service-figure{float:none;width:55%;margin:0 auto 14px}}

/* ---------- نظرات مشتریان ---------- */
.reviews-block{margin:0 0 40px;padding:0 14px}
.reviews-block h2{font-size:20px;font-weight:700;margin:0 0 14px}
.reviews-list{display:grid;grid-template-columns:1fr;gap:12px}
@media(min-width:700px){.reviews-list{grid-template-columns:1fr 1fr}}
.review-card{background:var(--cream-2);border:1px solid var(--line);border-radius:14px;padding:14px 16px}
.review-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.review-head strong{font-size:15px;color:var(--ink)}
.review-stars{color:var(--copper);letter-spacing:2px;font-size:14px;white-space:nowrap}
.review-service{font-size:12.5px;color:var(--steel-soft);margin-top:2px}
.review-card p{font-size:14px;color:var(--ink-soft);margin-top:8px;line-height:1.9;overflow-wrap:anywhere}
.reviews-empty{font-size:14px;color:var(--ink-soft);text-align:center;padding:10px 0}
.review-form-wrap{margin-top:14px;border:1px solid var(--line);border-radius:14px;background:var(--cream-1)}
.review-form-wrap>summary{cursor:pointer;padding:12px 16px;font-weight:700;font-size:15px;color:var(--steel);list-style:none}
.review-form-wrap>summary::-webkit-details-marker{display:none}
.review-form{display:flex;flex-direction:column;gap:10px;padding:0 16px 16px}
.review-form label{display:flex;flex-direction:column;gap:4px;font-size:13.5px;color:var(--ink-soft)}
.review-form input,.review-form select,.review-form textarea{font:inherit;font-size:15px;color:var(--ink);background:#fff;border:1px solid var(--line);border-radius:10px;padding:9px 12px;width:100%}
.review-form textarea{resize:vertical;min-height:96px}
.review-form button{font:inherit;font-weight:700;background:var(--steel);color:#fff;border:0;border-radius:10px;padding:11px 16px;cursor:pointer}
.review-form button:disabled{opacity:.6;cursor:default}
.review-msg{font-size:13.5px;min-height:1.4em}
.review-msg.ok{color:#2f6b3a}
.review-msg.err{color:#a33}
.hp-field{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;opacity:0}
