/* IRAN Rounded + Mahboubeh Mehravar — site-wide Persian typography */
@font-face {
    font-family: "IRAN Rounded";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("fonts/IRAN-Rounded.woff") format("woff");
}

@font-face {
    font-family: "Mahboubeh Mehravar";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("fonts/mahboubeh_mehravar.woff2") format("woff2"),
         url("fonts/mahboubeh_mehravar.woff") format("woff");
}

:root {
    --font-gabarito: "Mahboubeh Mehravar", "IRAN Rounded", Tahoma, sans-serif;
    --font-kantumruy-pro: "IRAN Rounded", Tahoma, sans-serif;
    --font-persian-body: "IRAN Rounded", Tahoma, sans-serif;
    --font-persian-display: "Mahboubeh Mehravar", "IRAN Rounded", Tahoma, sans-serif;
}

body,
.font-kantumruy-pro,
[class*="kantumruy"] {
    font-family: var(--font-persian-body) !important;
}

h1, h2, h3, h4, h5, h6,
.font-gabarito,
[class*="gabarito"] {
    font-family: var(--font-persian-display) !important;
}

input, textarea, button, select {
    font-family: inherit;
}

html[lang="fa"],
html[dir="rtl"] {
    direction: rtl;
}

html[lang="fa"] body,
html[dir="rtl"] body {
    text-align: right;
}

/* ─── Site-wide RTL ─── */
html {
    direction: rtl;
}

html, body {
    text-align: right;
}

/* Keep Persian headings right-aligned throughout the first-slide layouts. */
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6,
html[dir="rtl"] .text-right {
    text-align: right !important;
}

html[dir="rtl"] h1.text-center,
html[dir="rtl"] h2.text-center,
html[dir="rtl"] h3.text-center,
html[dir="rtl"] h4.text-center,
html[dir="rtl"] h5.text-center,
html[dir="rtl"] h6.text-center {
    text-align: center !important;
}

[dir="rtl"] .text-start,
.text-start {
    text-align: right !important;
}

[dir="rtl"] .text-end,
.text-end {
    text-align: left !important;
}

[dir="rtl"] .text-left {
    text-align: right !important;
}

[dir="rtl"] .text-right {
    text-align: left !important;
}

.text-center {
    text-align: center !important;
}

ul, ol {
    padding-inline-start: 0;
    padding-inline-end: 1.25rem;
}

[dir="rtl"] .mr-auto {
    margin-right: 0 !important;
    margin-left: auto !important;
}

[dir="rtl"] .ml-auto {
    margin-left: 0 !important;
    margin-right: auto !important;
}

[dir="rtl"] footer.flex-row-reverse {
    flex-direction: row !important;
}

@media (min-width: 768px) {
    [dir="rtl"] footer {
        flex-direction: row !important;
    }
}

main,
article,
section p,
blockquote,
figcaption,
dd {
    text-align: right;
}

input,
textarea,
select,
button {
    direction: rtl;
    text-align: right;
}

/* Headings: ~1 step smaller than default; body text slightly reduced */
.text-5xl {
    font-size: 2.5rem !important;
    line-height: 2.875rem !important;
}

.text-4xl,
.md\:text-4xl {
    font-size: 3rem !important;
    line-height: 3.375rem !important;
}

.text-3xl,
.md\:text-3xl {
    font-size: 2.25rem !important;
    line-height: 2.75rem !important;
}

.text-2xl,
.md\:text-2xl {
    font-size: 2rem !important;
    line-height: 2.5rem !important;
}

.text-xl,
.md\:text-xl {
    font-size: 1.5rem !important;
    line-height: 2rem !important;
}

.text-lg,
.md\:text-lg {
    font-size: 1.25rem !important;
    line-height: 1.75rem !important;
}

.text-md,
.md\:text-md {
    font-size: 1rem !important;
    line-height: 1.5rem !important;
}

.text-sm,
.md\:text-sm {
    font-size: 0.875rem !important;
    line-height: 1.25rem !important;
}

.text-xs,
.md\:text-xs {
    font-size: 0.75rem !important;
    line-height: 1.125rem !important;
}

/* Panaah brand logo — large and clear */
.panaah-brand-logo {
    width: auto !important;
    height: 4.25rem !important;
    max-width: none;
    object-fit: contain;
    display: block;
}

@media (min-width: 768px) {
    .panaah-brand-logo {
        height: 5rem !important;
    }
}

footer .panaah-brand-logo {
    height: 3.75rem !important;
}

header nav:has(.panaah-brand-logo) {
    min-height: 5.75rem;
    height: auto;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.panaah-hero-logo-brand {
    width: auto;
    height: 11rem;
    max-width: min(260px, 82vw);
    object-fit: contain;
    display: block;
    margin: 0 auto 1rem;
}

@media (min-width: 768px) {
    .panaah-hero-logo-brand {
        height: 15rem;
        max-width: 300px;
        margin: 0 0 1rem;
    }
}
