/* =============================================
   CAT PARADISE - FARSI (PERSIAN) STYLES
   RTL Layout + Vazirmatn Font
   ============================================= */

/* ===== FARSI FONT — self-hosted Vazirmatn variable (no external CDN) ===== */
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/vazirmatn-variable.woff2') format('woff2-variations'),
         url('../fonts/vazirmatn-variable.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                   U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                   U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD,
                   U+0600-06FF, U+0750-077F, U+0870-088E, U+08A0-08FF,
                   U+FB50-FDFF, U+FE70-FEFF;
}

/* Apply Vazirmatn to all text when language is Persian */
html[lang="fa"] body,
html[lang="fa"] button,
html[lang="fa"] input,
html[lang="fa"] textarea,
html[lang="fa"] select {
    font-family: 'Vazirmatn', 'Segoe UI', Tahoma, 'Iranian Sans', sans-serif;
    direction: rtl;
}

/* ===== RTL LAYOUT ===== */
html[lang="fa"] {
    direction: rtl;
}

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

/* ===== NAVIGATION ===== */
/* html[lang="fa"] is already direction: rtl, so flex `row` flows right-to-left.
   `row-reverse` here would double-reverse the order (LTR again). */
html[lang="fa"] .navbar .container {
    flex-direction: row;
}

html[lang="fa"] .nav-menu {
    flex-direction: row;
}

html[lang="fa"] .logo {
    flex-direction: row;
}

html[lang="fa"] .logo-text {
    text-align: right;
}

/* Dropdown positioning for RTL */
html[lang="fa"] .nav-menu .dropdown-menu {
    left: auto;
    right: 50%;
    transform: translateX(50%) translateY(10px);
}

html[lang="fa"] .nav-menu .dropdown:hover .dropdown-menu {
    transform: translateX(50%) translateY(0);
}

html[lang="fa"] .nav-menu .dropdown-menu li a:hover {
    padding-left: 20px;
    padding-right: 25px;
}

/* ===== HERO SECTION ===== */
html[lang="fa"] .hero-content {
    text-align: right;
}

html[lang="fa"] .hero-buttons {
    flex-direction: row-reverse;
    justify-content: flex-start;
}

html[lang="fa"] .hero-features {
    flex-direction: row-reverse;
    justify-content: flex-start;
}

html[lang="fa"] .feature {
    flex-direction: row-reverse;
}

/* ===== ABOUT SECTION ===== */
html[lang="fa"] .about-content {
    direction: rtl;
}

html[lang="fa"] .about-feature {
    flex-direction: row-reverse;
}

html[lang="fa"] .experience-badge {
    right: auto;
    left: -40px;
}

/* ===== CAT VISION SECTION ===== */
html[lang="fa"] .vision-content {
    direction: rtl;
}

html[lang="fa"] .fact-card {
    flex-direction: row-reverse;
}

html[lang="fa"] .fact-card:hover {
    transform: translateX(-10px);
}

html[lang="fa"] .vision-comparison {
    flex-direction: row-reverse;
}

/* ===== SERVICES ===== */
html[lang="fa"] .service-features li {
    text-align: right;
}

/* ===== TESTIMONIALS ===== */
html[lang="fa"] .testimonial-author {
    flex-direction: row-reverse;
}

/* ===== CONTACT ===== */
html[lang="fa"] .contact-item {
    flex-direction: row-reverse;
}

html[lang="fa"] .contact-item i {
    margin-left: 0;
    margin-right: 0;
}

/* ===== FOOTER ===== */
html[lang="fa"] .footer-social {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

html[lang="fa"] .newsletter-form {
    flex-direction: row-reverse;
}

/* ===== BUTTONS ===== */
html[lang="fa"] .btn-primary i,
html[lang="fa"] .btn-secondary i,
html[lang="fa"] .btn-outline i {
    margin-left: 8px;
    margin-right: 0;
}

/* ===== CONTENT PAGES (nutrition, diseases, etc) ===== */
html[lang="fa"] .content-layout {
    direction: rtl;
}

html[lang="fa"] .content-sidebar ul li a {
    border-left: none;
    border-right: 3px solid transparent;
    padding-right: 12px;
    padding-left: 0;
}

html[lang="fa"] .content-sidebar ul li a:hover {
    border-right-color: var(--primary-yellow);
    padding-right: 18px;
    padding-left: 0;
}

html[lang="fa"] .content-section h2 i {
    margin-right: 0;
    margin-left: 15px;
}

html[lang="fa"] .content-list li {
    padding-right: 35px;
    padding-left: 0;
}

html[lang="fa"] .content-list li::before {
    left: auto;
    right: 0;
}

html[lang="fa"] .content-table th,
html[lang="fa"] .content-table td {
    text-align: right;
}

html[lang="fa"] .accordion-header {
    text-align: right;
}

html[lang="fa"] .danger-item i {
    margin-right: 0;
    margin-left: 8px;
}

html[lang="fa"] .info-box {
    border-left: none;
    border-right: 5px solid var(--primary-yellow);
}

html[lang="fa"] .info-box.warning {
    border-right-color: #FF9800;
}

html[lang="fa"] .info-box ul li {
    padding-right: 25px;
    padding-left: 0;
}

html[lang="fa"] .info-box ul li::before {
    left: auto;
    right: 0;
}

/* ===== BOOKING PAGE ===== */
/* Suite feature rows: in RTL, `row` already puts the check icon on the right
   and packs the text at the right edge. `row-reverse` would left-align it. */

html[lang="fa"] .addon-card label {
    flex-direction: row-reverse;
}

/* Summary rows: in RTL, `row` already puts the label on the right edge,
   so `row-reverse` would flip label/value (value right, label left). */
html[lang="fa"] .summary-row,
html[lang="fa"] .sidebar-row {
    flex-direction: row;
}

html[lang="fa"] .contact-item i {
    flex-shrink: 0;
}

html[lang="fa"] .form-buttons {
    flex-direction: row-reverse;
}

/* Radio options: in RTL, `row` already starts from the right edge. */

/* ===== AI CHAT ASSISTANT ===== */
html[lang="fa"] .ai-chat-window {
    direction: rtl;
}

html[lang="fa"] .ai-message {
    flex-direction: row-reverse;
}

html[lang="fa"] .user-message {
    flex-direction: row-reverse;
}

html[lang="fa"] .ai-bubble {
    border-radius: 18px 18px 4px 18px;
}

html[lang="fa"] .user-message .ai-bubble {
    border-radius: 18px 18px 18px 4px;
}

html[lang="fa"] .ai-chat-input {
    flex-direction: row-reverse;
}

html[lang="fa"] .quick-q {
    font-family: 'Vazirmatn', sans-serif;
}

/* ===== LOGO TEXT ===== */
html[lang="fa"] .logo-text h1,
html[lang="fa"] .logo-title {
    font-family: 'Vazirmatn', sans-serif;
    letter-spacing: 0;
}

html[lang="fa"] .logo-text span {
    letter-spacing: 1px;
}

/* ===== NUMBER OVERRIDE ===== */
/* Keep English numbers even in Farsi layout */
html[lang="fa"] input[type="tel"],
html[lang="fa"] input[type="number"],
html[lang="fa"] input[type="date"] {
    direction: ltr;
    text-align: right;
}

/* ===== HERO DOTS/PARTICLES - keep as is ===== */
html[lang="fa"] .hero-particle,
html[lang="fa"] .hero-paw,
html[lang="fa"] .hero-dot,
html[lang="fa"] .hero-fish,
html[lang="fa"] .hero-cat {
    direction: ltr;
}

/* ===== FLOATING ELEMENTS - keep as is ===== */
html[lang="fa"] .floating-elements {
    direction: ltr;
}

/* ===== FARSI MOBILE FIXES ===== */
@media (max-width: 968px) {
    html[lang="fa"] .nav-menu > li > a {
        text-align: right;
        padding-right: 10px;
    }
    
    html[lang="fa"] .nav-menu .dropdown-menu {
        margin: 0 20px 0 0;
        border-right: 3px solid var(--primary-yellow);
        border-left: none;
    }
    
    html[lang="fa"] .nav-menu .dropdown-menu li a {
        text-align: right;
        padding-right: 20px;
    }
    
    html[lang="fa"] .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    html[lang="fa"] .hero-buttons a {
        width: 100%;
        text-align: center;
    }
    
    html[lang="fa"] .hero-features {
        flex-direction: column;
    }
}
/* ===== FARSI MOBILE: keep the opened menu vertical =====
   The desktop rule above forces `row`, which breaks the mobile dropdown. */
@media (max-width: 968px) {
    html[lang="fa"] .nav-menu {
        flex-direction: column;
    }

    html[lang="fa"] .nav-menu.active {
        flex-direction: column;
    }
}
