/* ==========================================================================
   Ahanyab — shared stylesheet for service pages (/services/*.html)
   Extracted from upload/index.html (2026-11-27). Same palette, same font,
   same header/footer as the home page. Link from a page at /services/ as:
     <link rel="stylesheet" href="services.css" />
   (pages live in the same folder as this file, so no ../ needed for the CSS)
   ========================================================================== */

/* ---------- Design tokens (exact values from index.html :root) ---------- */
:root{
  --bg:#f4f3f0; --surface:#ffffff; --surface2:#eceae5; --ink:#1b1d21; --muted:#5c6068;
  --line:#ddd9d0; --accent:#d94f04; --accent-ink:#ffffff; --accent-soft:#fdeee3;
  --green:#157347; --green-bg:#e3f2e9; --red:#b3261e; --red-bg:#fbe9e7;
  --blue:#1565c0; --blue-bg:#e3eefb;
  --header:#17191d; --header-ink:#f2f1ed;
  --brand:#ffc400; --brand-deep:#dfa900; --brand-ink:#22242a; --brand-soft:#fff3c2;
  --radius:14px;
  --header-h:69px;
}
@media (prefers-color-scheme: dark){
  :root{
    --bg:#121316; --surface:#1c1e22; --surface2:#24262c; --ink:#eceae4; --muted:#a7abb3;
    --line:#33363e; --accent:#f06723; --accent-soft:#3a2417;
    --green:#5cc98d; --green-bg:#173326; --red:#ff8a80; --red-bg:#3a1d1a;
    --blue:#7db3f0; --blue-bg:#16283f;
    --header:#0c0d0f; --header-ink:#f2f1ed;
    --brand-soft:#38300e;
  }
}

/* ---------- Base ---------- */
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0; background:var(--bg); color:var(--ink);
  font-family:"Vazirmatn",Tahoma,system-ui,sans-serif;
  line-height:1.75; font-size:16px;
}
a{color:inherit}
button,[role="button"],select,summary,input:not([type="checkbox"],[type="radio"]){min-height:2.25rem}
.wrap{max-width:1180px;margin:0 auto;padding:0 16px}
.tel{direction:ltr;unicode-bidi:isolate;display:inline-block}

/* ---------- Header (exact copy of index.html header.top) ---------- */
header.top{background:var(--header);color:var(--header-ink);position:sticky;top:0;z-index:50;border-bottom:3px solid var(--brand)}
.topbar{display:flex;align-items:center;gap:14px;padding:10px 0;flex-wrap:wrap}
.brand{display:flex;align-items:center;gap:10px;font-weight:900;font-size:1.35rem;letter-spacing:-.01em;text-decoration:none;color:inherit;cursor:pointer}
.brand:focus-visible{outline:3px solid var(--brand,#ffc400);outline-offset:3px;border-radius:8px}
.brand .logo{width:46px;height:46px;border-radius:50%;flex:none;display:block}
.brand small{display:block;font-size:.72rem;font-weight:500;color:#b9bcc2;line-height:1.3}
nav.main{margin-inline-start:auto;display:flex;gap:4px;flex-wrap:wrap}
nav.main a{text-decoration:none;padding:8px 12px;border-radius:9px;font-size:.92rem;color:var(--header-ink)}
nav.main a:hover{background:rgba(255,255,255,.1)}
nav.main a[aria-current="page"]{background:rgba(255,196,0,.18);color:var(--brand)}
.callbtn{background:var(--brand);color:var(--brand-ink) !important;font-weight:800}
.callbtn:hover{background:var(--brand-deep) !important}

/* ---------- Page container (mirrors .article-page on article pages) ---------- */
.service-page{padding:28px 0 60px}
.service-page h1{font-size:1.9rem;line-height:1.35;margin:0 0 8px;font-weight:900}
.service-page h1::before{content:"";display:inline-block;width:7px;height:.95em;background:var(--brand);border-radius:4px;margin-inline-end:10px;vertical-align:-.1em}
.service-page h2{font-size:1.45rem;margin:0 0 10px;font-weight:900}
.service-page h2::before{content:"";display:inline-block;width:7px;height:.95em;background:var(--brand);border-radius:4px;margin-inline-end:10px;vertical-align:-.1em}
.service-page .lead{color:var(--muted);max-width:760px;margin:0 0 22px}
.crumbs{font-size:.85rem;color:var(--muted);margin-bottom:14px}
.crumbs a{color:var(--accent);font-weight:700;text-decoration:none}

/* ---------- Section cards (same look as .card / .art on the home page) ---------- */
.svc-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:20px;margin-bottom:16px}
.svc-card h2,.svc-card h3{margin-top:0}
.svc-card h3{font-size:1.12rem;line-height:1.6;margin:0 0 8px}
.svc-card p{color:var(--muted);font-size:.95rem;margin:0 0 10px}
.svc-card p:last-child{margin-bottom:0}
.svc-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:16px;align-items:start}
.svc-tag{display:inline-block;font-size:.75rem;font-weight:800;background:var(--brand);color:var(--brand-ink);border-radius:999px;padding:3px 10px;margin-bottom:10px}

/* ---------- Buttons (same as .btn / .btn-accent on the home page) ---------- */
.btn{display:inline-flex;align-items:center;gap:8px;text-decoration:none;font-weight:800;padding:10px 20px;border-radius:11px;font-size:1rem;border:1px solid transparent;min-height:48px;cursor:pointer;font-family:inherit;background:var(--brand);color:var(--brand-ink)}
.btn:hover{background:var(--brand-deep)}
.btn-accent{background:var(--brand);color:var(--brand-ink)}
.btn-accent:hover{background:var(--brand-deep)}
.btn-outline{background:var(--surface);color:var(--ink);border-color:var(--line)}
.btn-outline:hover{border-color:var(--brand-deep)}
.btn-ghost{background:rgba(255,255,255,.08);color:var(--ink);border-color:var(--line)}
.btn-block{width:100%;justify-content:center}
.btn:disabled{opacity:.55;cursor:not-allowed}

/* ---------- Forms (no form styles exist on index.html — built to match
   .searchbox / .pill / .btn: same radius, border, focus ring) ---------- */
.svc-form{display:grid;gap:14px}
.field{display:grid;gap:6px}
.field label{font-weight:800;font-size:.92rem}
.field .hint{font-size:.82rem;color:var(--muted);font-weight:400}
.field input,.field select,.field textarea{
  font:inherit;color:var(--ink);background:var(--surface);
  border:1px solid var(--line);border-radius:12px;padding:10px 14px;
  width:100%;outline:none;min-height:48px;
}
.field textarea{min-height:110px;resize:vertical}
.field input:focus,.field select:focus,.field textarea:focus{
  border-color:var(--brand-deep);box-shadow:0 0 0 3px var(--brand-soft);
}
.field input:invalid{border-color:var(--red)}
.field-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px}
.field .unit{font-size:.82rem;color:var(--muted)}

/* ---------- Result boxes ---------- */
.result{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:20px;margin-top:16px}
.result[hidden]{display:none}
.result .big{font-size:1.6rem;font-weight:900;line-height:1.4}
.result .big small{font-size:.85rem;font-weight:500;color:var(--muted)}
.result .rows{display:grid;gap:8px;margin-top:12px}
.result .row{display:flex;justify-content:space-between;gap:12px;border-top:1px solid var(--line);padding-top:8px;font-size:.95rem}
.result .row b{font-variant-numeric:tabular-nums;white-space:nowrap}
.result .note{font-size:.88rem;color:var(--muted);margin-top:14px}
.result .cta{margin-top:16px;display:flex;gap:10px;flex-wrap:wrap}
.result.ok{border-top:3px solid var(--green)}
.result.warn{border-top:3px solid var(--brand)}

/* ---------- Tables (same as .card table on the home page) ---------- */
table{width:100%;border-collapse:collapse;font-size:.95rem}
th,td{padding:8px 16px;text-align:right}
thead th{color:var(--muted);font-size:.8rem;font-weight:700;border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:var(--surface2)}
tbody tr+tr td{border-top:1px solid var(--line)}
tbody tr:hover td{background:var(--brand-soft)}
td.num,td.price{font-weight:800;white-space:nowrap;text-align:left;font-variant-numeric:tabular-nums}
td.price small{font-weight:500;color:var(--muted);font-size:.75rem}
.table-wrap{overflow-x:auto;margin:0 -20px;padding:0 20px}

/* ---------- Badges (same as .badge on the home page) ---------- */
.badge{display:inline-block;font-size:.75rem;font-weight:800;padding:3px 10px;border-radius:999px;margin-bottom:4px}
.badge.flat{background:var(--blue-bg);color:var(--blue)}
.badge.up{background:var(--green-bg);color:var(--green)}
.badge.down{background:var(--red-bg);color:var(--red)}
.badge.brand{background:var(--brand);color:var(--brand-ink)}
.badge.soft{background:var(--accent-soft);color:var(--accent)}

/* ---------- Call / contact strip (same idea as .citem / .fab) ---------- */
.svc-call{display:flex;gap:12px;align-items:center;flex-wrap:wrap;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:18px 20px;margin-top:20px}
.svc-call p{margin:0;flex:1;min-width:220px;font-weight:700}
.fab{position:fixed;bottom:18px;inset-inline-start:18px;z-index:60;background:var(--brand);color:var(--brand-ink);text-decoration:none;font-weight:900;padding:13px 22px;border-radius:999px;box-shadow:0 8px 24px rgba(0,0,0,.3);display:none;align-items:center;gap:8px;min-height:52px}

/* ---------- Footer (exact copy of index.html footer.site) ---------- */
footer.site{background:var(--header);color:#b9bcc2;padding:26px 0;font-size:.9rem}
footer.site .wrap{display:flex;gap:12px;flex-wrap:wrap;align-items:center;justify-content:space-between}
footer.site a{color:#f2f1ed;text-decoration:none;font-weight:700}
footer.site .copyright{justify-content:center;text-align:center;font-size:.78rem;color:#8f9299;margin-top:14px}
.trust-seal{background:#fff;border-radius:14px;padding:10px 14px;display:inline-flex;align-items:center;line-height:0}
.trust-seal img{width:120px;height:auto;display:block;cursor:pointer}

/* ---------- Mobile (same 720px breakpoint as index.html) ---------- */
@media (max-width:720px){
  :root{--header-h:46px}
  .fab{display:inline-flex}
  .topbar{padding:5px 0;gap:8px}
  .brand{font-size:1rem}
  .brand .logo{width:30px;height:30px}
  .brand small{display:none}
  nav.main a:not(.callbtn){display:none}
  nav.main a{padding:5px 9px;font-size:.8rem}
  .service-page{padding:20px 0 96px}
  .service-page h1{font-size:1.55rem}
  .service-page h2{font-size:1.25rem}
  .svc-card{padding:16px}
  .svc-grid{grid-template-columns:1fr}
  table{font-size:.82rem}
  th,td{white-space:nowrap;padding:6px 8px}
  .result .big{font-size:1.35rem}
}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
}
