/* =====================================================================
   WordPress theme additions (beyond the static mockup in site.css)
   ===================================================================== */
:lang(en) body, body:lang(en) { font-family: Montserrat, Vazirmatn, sans-serif; }
:lang(en) .h2, :lang(en) .hero h1 { letter-spacing: -.02em; }
:lang(en) .hero h1 { font-size: clamp(38px, 4.3vw, 62px); line-height: 1.12; }
.hero .wrap > .facts { grid-column: 1 / -1; }
/* LTR mirrors the strata cut so it keeps running away from the text column */
[dir="ltr"] .cut { clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% 100%, var(--cut) 100%); }
[dir="ltr"] .hero-media .bar { transform: skewX(var(--slope)); }
[dir="ltr"] .banner .panel { clip-path: polygon(0 0, 100% 0, 74% 100%, 0 100%); background: linear-gradient(135deg, var(--gold-hi), var(--gold) 60%, var(--gold-lo)); }
[dir="ltr"] .port .photo::after { background: linear-gradient(270deg, rgba(16,22,29,.75), rgba(16,22,29,0) 60%); }
[dir="ltr"] .btn svg.dir, [dir="ltr"] .banner .more svg { transform: scaleX(-1); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.skip-link:focus { position: fixed; top: 8px; inset-inline-start: 8px; z-index: 100; background: var(--gold); color: var(--night); padding: 10px 16px; clip: auto; width: auto; height: auto; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.admin-bar header.nav { top: calc(40px + 32px); }
.admin-bar header.nav.solid { top: auto; }

/* language switcher */
.langs a { color: var(--on-dark-muted); }
.langs a:hover { color: var(--gold-hi); }

/* mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 60; background: var(--night); color: var(--on-dark); padding: 24px 24px 40px; display: none; flex-direction: column; overflow-y: auto; }
.drawer.open { display: flex; }
.drawer .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.drawer .top img { height: 34px; }
.drawer nav a { display: block; font-size: 22px; font-weight: 800; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.drawer nav .sub a { font-size: 15px; font-weight: 500; padding: 9px 18px; color: var(--on-dark-muted); border: 0; }
.drawer .btn { margin-top: 28px; justify-content: center; }
.drawer .langs { margin-top: 24px; }
.burger { background: none; cursor: pointer; }
body.drawer-open { overflow: hidden; }

/* inner page hero */
.page-hero { background: var(--night); color: var(--on-dark); padding: 40px 0 72px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; top: 0; bottom: 0; inset-inline-end: -60px; width: 380px; background: repeating-linear-gradient(calc(90deg - var(--slope)), rgba(201,160,99,.08) 0 8px, transparent 8px 30px); }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(34px, 4.4vw, 60px); font-weight: 900; margin: 14px 0 12px; line-height: 1.25; }
.page-hero p { color: var(--on-dark-muted); max-width: 640px; line-height: 2; margin: 0; font-size: 17px; }
.page-hero .crumbs { padding: 0 0 26px; }
.crumbs a:hover { color: var(--gold-hi); }

/* products archive */
.archive-cats { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.archive-cats a { padding: 10px 18px; border: 1px solid var(--line); border-radius: 2px; font-weight: 700; font-size: 14.5px; background: #fff; }
.archive-cats a.on, .archive-cats a:hover { background: var(--ink); color: var(--gold-hi); border-color: var(--ink); }
.cat-block + .cat-block { margin-top: 88px; }
.cat-panel[hidden] { display: none; }
.cats a { cursor: pointer; }

/* product page extras */
.p-actions { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 18px; }
.p-actions a { font-size: 13.5px; color: var(--on-dark-muted); display: inline-flex; gap: 6px; align-items: center; }
.p-actions a:hover { color: var(--gold-hi); }
.p-actions svg { width: 15px; height: 15px; }
.gallery .main { background-color: var(--ink-soft); }
.gallery .thumbs div { cursor: pointer; }
.p-body { padding: 96px 0 0; }
.p-body .content { max-width: 860px; }
.ticket-section { background: var(--stone); padding: 104px 0; }
.ticket-section .grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }

/* ticket form */
.nk-ticket { background: #fff; border-radius: 4px; padding: 36px; box-shadow: 0 30px 70px -40px rgba(16,22,29,.35); position: relative; }
.nk-ticket .nk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.nk-ticket .nk-field.wide { grid-column: 1 / -1; }
.nk-ticket label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.nk-ticket label b { color: var(--gold-lo); }
.nk-ticket input, .nk-ticket select, .nk-ticket textarea { width: 100%; height: 50px; border: 1px solid var(--line); background: var(--paper); border-radius: 2px; padding: 0 14px; font: inherit; font-size: 15px; color: var(--ink); transition: border-color .2s, background .2s; }
.nk-ticket textarea { height: auto; padding: 12px 14px; line-height: 1.9; resize: vertical; }
.nk-ticket input:focus, .nk-ticket select:focus, .nk-ticket textarea:focus { outline: none; border-color: var(--gold); background: #fff; }
.nk-ticket .err { color: #B3412E; font-size: 12px; display: block; margin-top: 4px; }
.nk-ticket .invalid input, .nk-ticket .invalid textarea, .nk-ticket .invalid select { border-color: #B3412E; }
.nk-ticket .btn { margin-top: 22px; width: 100%; justify-content: center; }
.nk-ticket .btn[disabled] { opacity: .6; cursor: wait; }
.nk-ticket .nk-note { font-size: 12.5px; color: var(--muted); text-align: center; margin: 14px 0 0; }
.nk-ticket .nk-hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; }
.nk-ticket .nk-done { background: var(--ink); color: #fff; border-radius: 2px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.nk-ticket .nk-done[hidden] { display: none; }
.nk-ticket .nk-done code { color: var(--gold-hi); font-size: 20px; font-weight: 700; }
.nk-ticket.sent .nk-grid, .nk-ticket.sent > .btn, .nk-ticket.sent .nk-note { display: none; }
.nk-ticket .form-error { color: #B3412E; font-size: 13.5px; margin-top: 12px; text-align: center; }
.contact-cards { display: grid; gap: 12px; margin-top: 32px; }
.contact-cards a, .contact-cards div { display: flex; gap: 14px; align-items: center; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 4px; }
.contact-cards a:hover { border-color: var(--gold); }
.contact-cards svg { width: 24px; height: 24px; color: var(--gold-lo); flex: none; }
.contact-cards span { display: block; font-size: 12.5px; color: var(--muted); }
.contact-cards b { font-size: 16px; }

/* blog */
.blog-feature { display: grid; grid-template-columns: 1.2fr 1fr; background: #fff; border-radius: 4px; overflow: hidden; margin-bottom: 56px; border: 1px solid var(--line); }
.blog-feature .img { min-height: 380px; background: var(--ink) center / cover; }
.blog-feature .txt { padding: 44px; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.blog-feature h2 { font-size: 32px; font-weight: 900; line-height: 1.5; margin: 10px 0; }
.blog-feature p { color: var(--muted); line-height: 2; }
.post-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); align-items: center; }
.post-meta .cat { color: var(--gold-lo); font-weight: 700; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(16,22,29,.35); }
.post-card .img { height: 210px; background: var(--stone) center / cover; position: relative; }
.post-card .img::after { content: ""; position: absolute; inset-inline-end: 0; bottom: 0; width: 40%; height: 4px; background: var(--gold); }
.post-card .t { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card h3 { font-size: 19px; font-weight: 800; line-height: 1.7; margin: 0; }
.post-card p { color: var(--muted); font-size: 14.5px; line-height: 1.95; margin: 0; }
.blog-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 36px; }
.blog-cats a { padding: 8px 16px; border-radius: 2px; border: 1px solid var(--line); font-size: 14px; background: #fff; }
.blog-cats a.on, .blog-cats a:hover { background: var(--ink); color: var(--gold-hi); border-color: var(--ink); }
.pagination .nav-links { display: flex; gap: 6px; justify-content: center; margin-top: 56px; }
.pagination .page-numbers { min-width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 2px; background: #fff; font-weight: 700; padding: 0 12px; }
.pagination .current { background: var(--ink); color: var(--gold-hi); border-color: var(--ink); }
.article { display: grid; grid-template-columns: 1fr 280px; gap: 64px; align-items: start; padding: 72px 0 96px; }
.article .cover { height: 440px; border-radius: 4px; background: var(--ink) center / cover; margin-bottom: 44px; }
.prose { font-size: 17.5px; line-height: 2.15; color: #2B323A; }
:lang(en) .prose { line-height: 1.85; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font-size: 28px; font-weight: 900; margin: 48px 0 14px; line-height: 1.6; scroll-margin-top: 24px; color: var(--ink); }
.prose h3 { font-size: 21px; font-weight: 800; margin: 34px 0 10px; scroll-margin-top: 24px; color: var(--ink); }
.prose a { color: var(--gold-lo); text-decoration: underline; text-underline-offset: 4px; }
.prose img { border-radius: 4px; height: auto; }
.prose blockquote { margin: 32px 0; padding: 4px 24px; border-inline-start: 3px solid var(--gold); color: var(--ink); font-weight: 700; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 14px; }
.prose th { background: var(--stone); }
.toc { position: sticky; top: 24px; background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 22px; }
.toc b { display: block; font-size: 14px; margin-bottom: 12px; }
.toc ol { margin: 0; padding-inline-start: 18px; font-size: 14px; line-height: 2.2; color: var(--muted); }
.toc a:hover { color: var(--gold-lo); }
.toc .share { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); }
.toc .share a { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 2px; color: var(--ink); }
.toc .share a:hover { border-color: var(--gold); }
.toc .share svg { width: 16px; height: 16px; }
.author-box { display: flex; gap: 18px; align-items: center; margin-top: 56px; padding: 24px; background: var(--stone); border-radius: 4px; }
.author-box img { width: 64px; height: 64px; border-radius: 50%; }
.author-box b { display: block; }
.author-box span { color: var(--muted); font-size: 14px; }
.post-cta { margin-top: 32px; background: var(--ink); color: #fff; border-radius: 4px; padding: 28px 30px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.post-cta b { font-size: 19px; }
.related-posts { background: var(--stone); padding: 96px 0; }

/* generic page content */
.page-content { padding: 80px 0 104px; }
.page-content .prose { max-width: 860px; }
.empty { text-align: center; padding: 80px 0; color: var(--muted); }
.search-form { display: flex; gap: 8px; max-width: 520px; }
.search-form input { flex: 1; height: 50px; border: 1px solid var(--line); padding: 0 14px; font: inherit; border-radius: 2px; }

/* footer additions */
footer .social { display: flex; gap: 10px; margin-top: 18px; }
footer .social a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.12); border-radius: 2px; }
footer .social a:hover { border-color: var(--gold); color: var(--gold-hi); }
footer .social svg { width: 18px; height: 18px; }
footer ul a:hover { color: var(--gold-hi); }
.wa-float { position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(0,0,0,.4); }
.wa-float svg { width: 28px; height: 28px; }

@media (max-width: 900px) {
  .ticket-section .grid, .article { grid-template-columns: 1fr; gap: 36px; }
  .toc { position: static; }
  .nk-ticket { padding: 22px; }
  .nk-ticket .nk-grid { grid-template-columns: 1fr; }
  .blog-feature { grid-template-columns: 1fr; }
  .blog-feature .img { min-height: 240px; }
  .blog-feature .txt { padding: 26px; }
  .blog-feature h2 { font-size: 24px; }
  .post-grid { grid-template-columns: 1fr; }
  .article .cover { height: 240px; }
  .admin-bar header.nav { top: calc(40px + 46px); }
}
