/* =====================================================
   SERVINO DESIGN SYSTEM - VARIABLES
===================================================== */

:root {
    --servino-purple: #512072;
    --servino-purple-light: #613085;
    --servino-purple-soft: #F7F3FB;
    --servino-orange: #F09D18;
    --servino-orange-light: #FFBD4A;
    --servino-navy-dark: #071525;
    --servino-blue: #0A1628;
    --servino-navy: #172B46;
    --servino-green: #477149;
    --white: #FFFFFF;
    --black: #111827;
    --text-dark: #172B46;
    --text-muted: #6B7280;
    --border-light: #EDF0F5;
    --shadow-sm: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.10);
    --shadow-lg: 0 20px 50px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
}

/* =====================================================
   RESET & BASE
===================================================== */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    direction: rtl;
    font-family: "Vazirmatn", "IRANSans", Tahoma, Arial, sans-serif;
    background: #F8FAFC;
    color: var(--text-dark);
    line-height: 1.8;
    overflow-x: hidden;
}

a { transition: var(--transition); }
img { max-width: 100%; height: auto; }

/* =====================================================
   NAVBAR - PURPLE THEME
===================================================== */

.servino-navbar {
    position: sticky;
    top: 0;
    z-index: 1050;
    width: 100%;
    background: var(--white) !important;
    border-bottom: 6px solid var(--servino-purple) !important;
    box-shadow: 0 4px 20px rgba(81, 32, 114, 0.12) !important;
}

.servino-navbar-container {
    width: 100%;
    max-width: 1250px;
    margin: auto;
    padding: 0 20px;
    position: relative;
    z-index: 1051;
}

/* =====================================================
   LOGO
===================================================== */

.servino-logo {
    display: flex;
    align-items: center;
    padding: 0;
    text-decoration: none;
}

.servino-logo img {
    width: 280px;
    height: 65px;
    object-fit: contain;
    transition: var(--transition);
}

.servino-logo img:hover { transform: scale(1.05); }

/* =====================================================
   MAIN MENU LINKS
===================================================== */

.servino-main-menu {
    display: flex;
    align-items: center;
    gap: 0;
}

/* فاصله بین آیتم‌های منو */
.servino-main-menu .nav-item {
    margin-left: 6px;
    margin-right: 6px;
}

/* فاصله بیشتر برای خانه تا درباره ما */
.servino-main-menu .nav-item:first-child {
    margin-right: 12px;
}

.servino-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 9px !important;
    color: var(--black) !important;
    font-size: 0.84rem;
    font-weight: 600;
    border-radius: 10px;
    white-space: nowrap;
    transition: var(--transition);
    background: transparent !important;
}

.servino-link i {
    color: var(--servino-purple) !important;
    margin-left: 3px;
    font-size: 0.85rem;
}

.servino-link:hover {
    color: var(--servino-purple) !important;
    background: var(--servino-purple-soft) !important;
    transform: translateY(-2px);
}

.servino-link.active {
    background: var(--servino-purple) !important;
    color: var(--white) !important;
}

.servino-link.active i {
    color: var(--white) !important;
}

/* =====================================================
   DROPDOWN
===================================================== */

.servino-dropdown {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    left: auto !important;
    z-index: 99999 !important;
    min-width: 240px;
    margin-top: 8px !important;
    padding: 8px;
    background: var(--white) !important;
    border: none;
    border-top: 4px solid var(--servino-purple);
    border-radius: 0 0 14px 14px;
    box-shadow: var(--shadow-md);
    animation: dropdownShow 0.25s ease;
}

@keyframes dropdownShow {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.servino-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 10px 14px;
    color: var(--black);
    font-size: 0.88rem;
    border-radius: 9px;
    white-space: nowrap;
    transition: var(--transition);
}

.servino-dropdown .dropdown-item i {
    width: 25px;
    color: var(--servino-purple);
    margin-left: 7px;
}

.servino-dropdown .dropdown-item:hover {
    color: var(--servino-purple);
    background: var(--servino-purple-soft);
    padding-right: 20px;
}

/* =====================================================
   AUTH MENU
===================================================== */

.servino-auth-menu {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-right: auto;
}

.servino-auth-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 9px;
    color: var(--black);
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 600;
    border-radius: 10px;
    transition: var(--transition);
}

.servino-auth-link:hover {
    color: var(--servino-purple);
    background: var(--servino-purple-soft);
}

.servino-auth-link i {
    color: var(--servino-purple);
}

/* =====================================================
   REGISTER BUTTON - PURPLE
===================================================== */

.servino-register-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 11px;
    color: var(--white) !important;
    background: var(--servino-purple) !important;
    border: 2px solid var(--servino-purple) !important;
    border-radius: 11px;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 700;
    transition: var(--transition);
}

.servino-register-btn:hover {
    background: var(--servino-purple-light) !important;
    border-color: var(--servino-purple-light) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(81, 32, 114, 0.3);
}

/* =====================================================
   HERO WITH WAVES
===================================================== */

.servino-hero-wave {
    position: relative;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px 100px;
    background: linear-gradient(180deg, #F8F5FF 0%, #FFFFFF 100%);
    overflow: hidden;
}

.servino-hero-wave .wave-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.servino-hero-wave .wave {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 200%;
    height: 280px;
    border-radius: 45%;
    background: linear-gradient(to top, rgba(91,43,140,0.20), rgba(6,214,160,0.12), transparent);
    animation: servinoWaveFloat 8s ease-in-out infinite;
}

.servino-hero-wave .wave:nth-child(1) {
    animation-delay: 0s;
    opacity: 0.6;
    height: 250px;
}
.servino-hero-wave .wave:nth-child(2) {
    animation-delay: -2s;
    opacity: 0.4;
    height: 200px;
    bottom: -30px;
}
.servino-hero-wave .wave:nth-child(3) {
    animation-delay: -4s;
    opacity: 0.3;
    height: 160px;
    bottom: -10px;
}

@keyframes servinoWaveFloat {
    0% { transform: translateX(0) translateY(80px) rotate(0deg); }
    25% { transform: translateX(-25%) translateY(40px) rotate(2deg); }
    50% { transform: translateX(-50%) translateY(80px) rotate(0deg); }
    75% { transform: translateX(-25%) translateY(40px) rotate(-2deg); }
    100% { transform: translateX(0) translateY(80px) rotate(0deg); }
}

.servino-hero-wave .bubble-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.servino-hero-wave .bubble {
    position: absolute;
    bottom: -40px;
    border-radius: 50%;
    background: rgba(142, 219, 236, 0.5);
    animation: servinoBubbleFloat 12s linear infinite;
}

.servino-hero-wave .bubble:nth-child(1) { left: 5%; width: 18px; height: 18px; animation-delay: 0s; }
.servino-hero-wave .bubble:nth-child(2) { left: 15%; width: 12px; height: 12px; animation-delay: 2s; }
.servino-hero-wave .bubble:nth-child(3) { left: 28%; width: 24px; height: 24px; animation-delay: 4s; }
.servino-hero-wave .bubble:nth-child(4) { left: 40%; width: 16px; height: 16px; animation-delay: 1s; }
.servino-hero-wave .bubble:nth-child(5) { left: 55%; width: 20px; height: 20px; animation-delay: 3s; }
.servino-hero-wave .bubble:nth-child(6) { left: 70%; width: 14px; height: 14px; animation-delay: 5s; }
.servino-hero-wave .bubble:nth-child(7) { left: 85%; width: 22px; height: 22px; animation-delay: 2.5s; }
.servino-hero-wave .bubble:nth-child(8) { left: 95%; width: 10px; height: 10px; animation-delay: 4.5s; }

@keyframes servinoBubbleFloat {
    0% { transform: translateY(0) scale(0.5); opacity: 0; }
    20% { opacity: 0.8; }
    100% { transform: translateY(-700px) scale(1.4); opacity: 0; }
}

.servino-hero-wave .shine-wave {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: servinoShineWave 8s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes servinoShineWave {
    from { transform: translateX(-100%) skewX(-20deg); }
    to { transform: translateX(100%) skewX(-20deg); }
}

.servino-hero-wave .hero-content {
    position: relative;
    z-index: 3;
}

.servino-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    margin-bottom: 28px;
    background: rgba(91,43,140,0.08);
    border-radius: 100px;
    color: var(--servino-purple);
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.servino-hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.servino-hero-title .gradient-text {
    background: linear-gradient(135deg, var(--servino-purple), #06D6A0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.servino-hero-subtitle {
    font-size: clamp(1rem, 1.4vw, 1.25rem);
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 auto 40px;
    line-height: 1.9;
}

/* =====================================================
   SEARCH WAVE
===================================================== */

.servino-search-wave {
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(16px);
    border-radius: 32px;
    box-shadow: var(--shadow-lg);
    padding: 6px;
    position: relative;
    z-index: 3;
    border: 1px solid rgba(91,43,140,0.06);
    transition: var(--transition);
}

.servino-search-wave:focus-within {
    box-shadow: var(--shadow-lg);
    border-color: rgba(91,43,140,0.15);
}

.servino-search-wave .search-field {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 20px;
    background: transparent;
    border-radius: var(--radius-lg);
}

.servino-search-wave .search-field i {
    color: var(--text-muted);
    font-size: 1.1rem;
    opacity: 0.6;
}

.servino-search-wave .search-field select {
    width: 100%;
    height: 56px;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--black);
    outline: none;
    cursor: pointer;
}

.servino-search-wave .search-divider {
    width: 1px;
    background: var(--border-light);
    flex-shrink: 0;
}

.servino-search-wave .search-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    background: linear-gradient(135deg, var(--servino-purple), var(--servino-purple-light));
    border: none;
    border-radius: var(--radius-lg);
    color: white;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.servino-search-wave .search-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(91,43,140,0.3);
}

/* =====================================================
   TRUST WAVE
===================================================== */

.servino-trust-wave {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-top: 40px;
    position: relative;
    z-index: 3;
    padding: 16px 24px;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.3);
}

.servino-trust-wave .trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.servino-trust-wave .trust-item i {
    color: #06D6A0;
    font-size: 1rem;
}

.servino-trust-wave .trust-item strong {
    color: var(--black);
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 991px) {
    .servino-navbar-container { padding: 0 15px; }
    
    .servino-main-menu {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        margin-top: 15px;
    }
    
    .servino-main-menu .nav-item {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .servino-link {
        width: 100%;
        justify-content: flex-start;
        padding: 11px !important;
    }
    
    .servino-auth-menu {
        width: 100%;
        margin-right: 0;
        margin-top: 15px;
        padding-bottom: 15px;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    
    .servino-dropdown {
        position: static !important;
        width: 100%;
        min-width: 0;
        margin-top: 0 !important;
        background: var(--white) !important;
        border-top: none;
        border-right: 3px solid var(--servino-purple);
        border-radius: 0 10px 10px 0;
        box-shadow: none;
    }
    
    .servino-logo img { height: 55px; }
    .servino-hero-wave { min-height: 60vh; padding: 40px 16px 80px; }
    .servino-hero-wave .wave { height: 180px !important; }
    
    .servino-search-wave {
        flex-direction: column;
        padding: 16px;
        gap: 12px;
        border-radius: var(--radius-lg);
    }
    
    .servino-search-wave .search-field { padding: 0 12px; }
    .servino-search-wave .search-field select { height: 48px; font-size: 0.9rem; }
    .servino-search-wave .search-divider { display: none; }
    .servino-search-wave .search-btn { width: 100%; justify-content: center; padding: 14px; }
    
    .servino-trust-wave { gap: 16px; padding: 12px 16px; flex-wrap: wrap; justify-content: center; }
    .servino-hero-wave .bubble { display: none; }
}

@media (max-width: 768px) {
    .servino-footer-grid { grid-template-columns: 1fr 1fr; }
    .servino-slider { height: 320px; border-radius: 16px; }
    .servino-slider .carousel-item,
    .servino-slider .carousel-item img { height: 320px; }
    .servino-slider-caption { right: 5%; left: 5%; max-width: none; text-align: center; }
    .servino-slider-caption h2 { font-size: 1.7rem; }
    .servino-slider-caption p { font-size: 0.9rem; }
}

@media (max-width: 600px) {
    body { font-size: 14px; }
    .servino-logo img { height: 52px; }
    .servino-slider { height: 260px; }
    .servino-slider .carousel-item,
    .servino-slider .carousel-item img { height: 260px; }
    .servino-slider-caption h2 { font-size: 1.35rem; }
    .servino-slider-caption p { font-size: 0.8rem; }
    .servino-footer { padding: 40px 18px 18px; }
    .servino-footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .servino-trust-bar { flex-direction: column; align-items: flex-start; }
    .servino-footer-bottom { flex-direction: column; align-items: flex-start; }
    .servino-footer-bottom-links { gap: 15px; }
}

/* =====================================================
   UTILITY & SCROLLBAR
===================================================== */

::selection {
    background: var(--servino-orange);
    color: white;
}

::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: #F1F5F9; }
::-webkit-scrollbar-thumb {
    background: var(--servino-orange);
    border-radius: 20px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--servino-navy);
}