﻿@charset "UTF-8";

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    font-family: 'Vazirmatn', sans-serif;
    direction: rtl;
    overflow-x: hidden;
}

/* Vazirmatn font faces - only commonly used weights */
@font-face { font-family: 'Vazirmatn'; src: url('fonts/Vazirmatn-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('fonts/Vazirmatn-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('fonts/Vazirmatn-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('fonts/Vazirmatn-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('fonts/Vazirmatn-ExtraBold.ttf') format('truetype'); font-weight: 800; font-display: swap; }

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}
.blazor-error-boundary::after { content: "خطایی رخ داده است."; }

/* ═══ FOCUS-ON-NAVIGATE PAGE HEADING ═══ */
h1:focus,
h1:focus-visible {
    outline: none;
}

/* ═══ HERO GRADIENT — soft warm premium ═══ */
.hero-gradient {
    background:
        radial-gradient(900px 500px at 12% 0%, rgba(225, 185, 166, 0.28) 0%, rgba(253, 252, 251, 0) 55%),
        radial-gradient(800px 460px at 95% 20%, rgba(243, 231, 237, 0.9) 0%, rgba(253, 252, 251, 0) 55%),
        linear-gradient(180deg, #FDFCFB 0%, #FAF4F4 50%, #F8EDF2 100%);
}

/* ═══ PREMIUM CARD STYLES ═══ */
.card-premium {
    background: #FFFFFF;
    border: 1px solid #EFDFE0;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-premium:hover {
    border-color: #E1B9A6;
    box-shadow: 0 12px 36px -12px rgba(102, 45, 84, 0.14);
    transform: translateY(-3px);
}

/* ═══ GLASS CARD ═══ */
.glass-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* ═══ GRADIENT BORDER ═══ */
.gradient-border {
    position: relative;
    border: 2px solid transparent;
    background-clip: padding-box;
}
.gradient-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, #E1B9A6, #662D54, #542344);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.gradient-border:hover::before {
    opacity: 1;
}

/* ═══ SECTION SEPARATORS ═══ */
.section-wave {
    position: relative;
}
.section-wave::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 60px;
    background: inherit;
    clip-path: ellipse(55% 100% at 50% 0%);
}

/* ═══ FAQ ACCORDION ═══ */
.faq-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-content.faq-open {
    grid-template-rows: 1fr;
}
.faq-content > div {
    overflow: hidden;
}

/* ═══ NAVBAR SCROLL STATE ═══ */
.navbar-scrolled {
    background: rgba(253, 252, 251, 0.92) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    box-shadow: 0 1px 12px rgba(102, 45, 84, 0.06);
    border-bottom-color: #EFDFE0 !important;
}

/* ═══ MOBILE MENU ═══ */
.mobile-menu-enter {
    animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.mobile-menu-exit {
    animation: slideUp 0.2s ease-in both;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-12px); }
}

/* ═══ MOBILE NAVBAR CHECKBOX TOGGLE (Blazor SSR pattern) ═══ */
.hamburger-open { display: block; }
.hamburger-close { display: none; }

#mobile-menu-toggle:checked ~ #main-navbar .hamburger-open { display: none; }
#mobile-menu-toggle:checked ~ #main-navbar .hamburger-close { display: block; }

.mobile-menu-drawer {
    position: relative;
    z-index: 50;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.25s ease;
}

#mobile-menu-toggle:checked ~ #main-navbar .mobile-menu-drawer {
    max-height: 80vh;
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    cursor: pointer;
}

#mobile-menu-toggle:checked ~ #main-navbar .mobile-menu-backdrop {
    display: block;
}

.mobile-menu-link {
    display: block;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    color: #4b5563;
    font-weight: 500;
    border-radius: 0.75rem;
    transition: all 0.2s;
}
.mobile-menu-link:hover {
    color: #662D54;
    background: #F3E7ED;
}

@media (min-width: 1024px) {
    .hamburger-open, .hamburger-close { display: none !important; }
    .mobile-menu-backdrop { display: none !important; }
    .mobile-menu-drawer {
        max-height: none !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        overflow: visible !important;
    }
}

/* ═══ PRICING BILLING-PERIOD TOGGLE ═══ */
.pricing-toggle-input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
    -webkit-appearance: none;
    appearance: none;
}

.pricing-tab-inactive { color: #83647A; }
.pricing-tab-inactive:hover { color: #662D54; }

#billing-monthly:checked ~ .pricing-tabs label[for="billing-monthly"],
#billing-sixmonth:checked ~ .pricing-tabs label[for="billing-sixmonth"] {
    background: linear-gradient(to left, #662D54, #542344);
    color: #ffffff !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
                0 4px 6px -4px rgba(0, 0, 0, 0.1),
                0 0 0 1px rgba(102, 45, 84, 0.25),
                0 16px 40px -12px rgba(102, 45, 84, 0.25);
}

#billing-monthly:focus-visible ~ .pricing-tabs label[for="billing-monthly"],
#billing-sixmonth:focus-visible ~ .pricing-tabs label[for="billing-sixmonth"] {
    outline: 2px solid #662D54;
    outline-offset: 2px;
}

.pricing-grid .pricing-sixmonth-price { display: none; }
#billing-sixmonth:checked ~ .pricing-grid .pricing-monthly-price { display: none; }
#billing-sixmonth:checked ~ .pricing-grid .pricing-sixmonth-price { display: flex; }

/* ═══ COUNTER ANIMATION ═══ */
@keyframes countUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
.count-animate {
    animation: countUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ═══ REDUCED MOTION ═══ */
@media (prefers-reduced-motion: reduce) {
    .faq-content { transition: none; }
    * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ═══ SMOOTH SCROLL ═══ */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

/* ═══ UTILITY ═══ */
.text-gradient-primary {
    background: linear-gradient(135deg, #662D54 0%, #8B426A 60%, #C2947A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.text-gradient-amber {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.text-gradient-emerald {
    background: linear-gradient(135deg, #059669 0%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ═══ MOBILE RESPONSIVE ═══ */
@media (max-width: 639px) {
    .hero-gradient {
        min-height: auto !important;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    .hero-gradient .relative.max-w-7xl {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* ═══ CLS: Reserve space ═══ */
.text-gradient-primary {
    display: inline-block;
}
.feature-card {
    min-height: 180px;
}
