html {
    -webkit-text-size-adjust: 100%;
    -moz-tab-size: 4;
    tab-size: 4;
    scroll-behavior: smooth;
    direction: rtl;
    text-align: right;
}

html[dir="ltr"],
html[data-lang="en"] {
    direction: ltr;
    text-align: left;
}

body {
    background-color: var(--talayar-bg-base, #0E0F11);
    color: var(--talayar-text-primary, #F7F8F9);
    font-family: var(--talayar-font-fa);
    font-size: 16px;
    line-height: 1.8;
    overflow-x: hidden;
    direction: inherit;
    text-align: inherit;
    transition: background-color var(--talayar-transition-smooth), color var(--talayar-transition-smooth);
}

/* Container */
.talayar-container {
    width: 100%;
    max-width: var(--talayar-container-max, 1320px);
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

@media (max-width: 768px) {
    .talayar-container {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--talayar-font-fa);
    color: var(--talayar-text-primary);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.talayar-display-heading {
    font-family: var(--talayar-font-display);
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* --------------------------------------------------------------------------
   Liquid Glass & Modern Glassmorphism Cards
   -------------------------------------------------------------------------- */
.talayar-card-glass,
.talayar-glass {
    background: var(--talayar-glass-bg);
    backdrop-filter: var(--talayar-glass-blur);
    -webkit-backdrop-filter: var(--talayar-glass-blur);
    border: var(--talayar-glass-border);
    box-shadow: var(--talayar-shadow-card), var(--talayar-specular);
    border-radius: var(--talayar-radius-card);
    transition: all var(--talayar-transition-smooth);
    position: relative;
    overflow: hidden;
}

/* Fallback for browsers that do not support backdrop-filter */
@supports not ((-webkit-backdrop-filter: blur(10px)) or (backdrop-filter: blur(10px))) {
    .talayar-card-glass,
    .talayar-glass,
    .talayar-header-glass {
        background: var(--talayar-bg-surface);
    }
}

.talayar-card-glass:hover {
    background: var(--talayar-glass-bg-hover);
    border: var(--talayar-glass-border-gold);
    box-shadow: var(--talayar-shadow-elevated), var(--talayar-specular-gold), var(--talayar-glow-gold);
    transform: translateY(-4px);
}

/* --------------------------------------------------------------------------
   Buttons (Pill Shapes, Gold Foil Reflections)
   -------------------------------------------------------------------------- */
.talayar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    font-size: 14.5px;
    font-weight: 600;
    border-radius: var(--talayar-radius-button);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--talayar-transition-fast);
    border: none;
    outline: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.talayar-btn-gold {
    background: var(--talayar-gold-gradient);
    color: #0E0F11;
    box-shadow: 0 4px 18px rgba(201, 162, 75, 0.35);
}

.talayar-btn-gold:hover {
    box-shadow: 0 6px 26px rgba(201, 162, 75, 0.6);
    transform: translateY(-2px) scale(1.02);
    color: #000;
}

.talayar-btn-outline {
    background: transparent;
    color: var(--talayar-text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.talayar-btn-outline:hover {
    border-color: var(--talayar-gold);
    color: var(--talayar-gold);
    background: rgba(201, 162, 75, 0.08);
}

/* --------------------------------------------------------------------------
   SVG Monogram Base Sizing
   -------------------------------------------------------------------------- */
.talayar-svg-monogram {
    width: 48px;
    height: 48px;
    color: var(--talayar-gold);
    display: block;
}

/* 404 Page Styling */
.talayar-404-container {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 100px;
    padding-bottom: 100px;
}

.talayar-404-card {
    padding: 60px 40px;
    text-align: center;
    max-width: 580px;
    margin: 0 auto;
}

.talayar-404-badge {
    margin: 0 auto 24px auto;
    width: 64px;
    height: 64px;
}

.talayar-404-code {
    font-family: var(--talayar-font-display);
    font-size: 82px;
    color: var(--talayar-gold);
    line-height: 1;
    margin-bottom: 16px;
    letter-spacing: 4px;
}

.talayar-404-title {
    font-size: 24px;
    margin-bottom: 14px;
}

.talayar-404-desc {
    color: var(--talayar-text-muted);
    font-size: 15px;
    margin-bottom: 30px;
}

/* --------------------------------------------------------------------------
   Dynamic Brand Logos (Dark & Light Mode Switcher & Fallback)
   -------------------------------------------------------------------------- */
.talayar-logo-img {
    height: var(--talayar-header-logo-height, 58px);
    width: auto;
    max-width: 280px;
    object-fit: contain;
    display: inline-block;
    transition: opacity 0.25s ease;
}

.talayar-dynamic-badge-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    display: inline-block;
}

.talayar-notre-badge-default {
    border-radius: 50%;
    border: 2px solid #FF6A00;
    box-shadow: 0 0 16px rgba(255, 106, 0, 0.45);
}

/* Light / Dark Mode toggling for brand logos */
[data-theme="light"] .talayar-logo-dark {
    display: none !important;
}
[data-theme="light"] .talayar-logo-light {
    display: inline-block !important;
}

[data-theme="dark"] .talayar-logo-light,
:root:not([data-theme="light"]) .talayar-logo-light {
    display: none !important;
}
[data-theme="dark"] .talayar-logo-dark,
:root:not([data-theme="light"]) .talayar-logo-dark {
    display: inline-block !important;
}

/* Hero Visual Brand Logo */
.talayar-hero-brand-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.talayar-hero-brand-logo {
    max-width: 120px;
    max-height: 90px;
    object-fit: contain;
}

.talayar-hero-notre-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid #FF6A00;
    box-shadow: 0 0 24px rgba(255, 106, 0, 0.45);
    margin-bottom: 6px;
}

/* ==========================================================================
   Elementor Deep Typography & Theme Color Synchronizer
   Guarantees 100% Vazirmatn font inheritance and zero invisible text in Light/Dark modes
   ========================================================================== */
.elementor,
.elementor-widget,
.elementor-widget-heading .elementor-heading-title,
.elementor-widget-text-editor,
.elementor-widget-text-editor p,
.elementor-widget-counter,
.elementor-widget-counter .elementor-counter-title,
.elementor-widget-counter .elementor-counter-number-wrapper,
.elementor-widget-button .elementor-button,
.elementor-element {
    font-family: var(--talayar-font-fa, 'Vazirmatn', sans-serif);
}

/* Base element color defaults connected to design tokens */
.elementor-widget-heading .elementor-heading-title {
    color: var(--talayar-text-primary);
}

.elementor-widget-text-editor {
    color: var(--talayar-text-secondary);
}

/* Light Mode Overrides for Elementor containers and widgets */
html[data-theme="light"] .elementor-widget-heading .elementor-heading-title,
html[data-theme="light"] .elementor-heading-title,
html[data-theme="light"] h1.elementor-heading-title,
html[data-theme="light"] h2.elementor-heading-title,
html[data-theme="light"] h3.elementor-heading-title,
html[data-theme="light"] .talayar-hero-title,
html[data-theme="light"] .talayar-rates-title,
html[data-theme="light"] .talayar-about-title,
html[data-theme="light"] .talayar-showrooms-title,
html[data-theme="light"] .talayar-section-title,
html[data-theme="light"] .talayar-vip-title,
html[data-theme="light"] .talayar-cat-title,
html[data-theme="light"] .talayar-showroom-title,
html[data-theme="light"] .talayar-calc-title,
html[data-theme="light"] .talayar-rate-item-title,
html[data-theme="light"] .talayar-rate-item-name {
    color: var(--talayar-text-primary, #18191B) !important;
}

html[data-theme="light"] .elementor-widget-text-editor,
html[data-theme="light"] .elementor-widget-text-editor p,
html[data-theme="light"] .elementor-text-editor p,
html[data-theme="light"] .talayar-hero-subtitle,
html[data-theme="light"] .talayar-rates-notice,
html[data-theme="light"] .talayar-about-desc,
html[data-theme="light"] .talayar-showrooms-desc,
html[data-theme="light"] .talayar-section-desc,
html[data-theme="light"] .talayar-persian-copy,
html[data-theme="light"] .talayar-vip-desc,
html[data-theme="light"] .talayar-cat-desc,
html[data-theme="light"] .talayar-showroom-address,
html[data-theme="light"] .talayar-showroom-manager,
html[data-theme="light"] .talayar-stat-label,
html[data-theme="light"] .talayar-calc-desc,
html[data-theme="light"] .talayar-calc-label,
html[data-theme="light"] .talayar-calc-toggle-item span,
html[data-theme="light"] .breakdown-item-label,
html[data-theme="light"] .breakdown-legal-badge span {
    color: var(--talayar-text-secondary, #3D4046) !important;
}

html[data-theme="light"] .elementor-widget-counter .elementor-counter-title {
    color: var(--talayar-text-muted, #565961) !important;
}

html[data-theme="light"] .elementor-widget-counter .elementor-counter-number-wrapper {
    color: var(--talayar-gold-dark, #9A7424);
}


