/* Base styles shared by the public site and the lawyer panel (Tailwind handles the rest) */

/* Vazirmatn v33.0.3 variable font, self-hosted (was jsdelivr: render-blocking and unreliable from Iran). One file covers weights 100–900; preloaded in _Head. License: fonts/vazirmatn/OFL.txt */
@font-face {
    font-family: Vazirmatn;
    src: url('../fonts/vazirmatn/Vazirmatn-Variable.woff2') format('woff2-variations'),
         url('../fonts/vazirmatn/Vazirmatn-Variable.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

html { scroll-behavior: smooth; }
body { margin: 0; background: #F5F6F3; color: #16323D; font-family: Vazirmatn, system-ui, sans-serif; font-size: 16px; line-height: 1.9; -webkit-font-smoothing: antialiased; }
::selection { background: #16323D; color: #fff; }

.tnum { font-feature-settings: 'tnum'; }
.text-pretty { text-wrap: pretty; }
.focus-ring:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid #9C6B28; outline-offset: 2px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid #9C6B28; outline-offset: 1px; }

@keyframes vkFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.vk-fade { animation: vkFade .35s ease; }

.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Hatched placeholders from the design (license image / map) */
.hatch { background: repeating-linear-gradient(45deg, #E9E7DE 0 10px, #F0EEE6 10px 20px); }
.map-placeholder { background: repeating-conic-gradient(#EDEBE3 0% 25%, #F3F1EA 0% 50%) 50% / 28px 28px; }

/* FAQ accordion (<details>) */
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
details[open] .faq-icon { transform: rotate(45deg); }

/* Horizontal scroll rows without visible scrollbar */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { scrollbar-width: none; }

/* Star rating input (review form) — RTL: first star on the right */
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.star-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-input label { font-size: 34px; line-height: 1; color: #E2DFD6; cursor: pointer; transition: color .15s; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: #9C6B28; }
.star-input input:focus-visible + label { outline: 2px solid #9C6B28; outline-offset: 2px; border-radius: 4px; }
