@import url('../lib/vazirmatn/Vazirmatn-font-face.css');
@import url('../lib/bootstrap-icons/font/bootstrap-icons.min.css');

:root {
    --font-primary: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    
    /* Official Corporate & Luxury Architectural Palette */
    --primary: #04367d;
    --primary-hover: #032557;
    --primary-dark: #021a3e;
    --primary-light: #eef4ff;
    --primary-subtle: #dbeafe;
    --primary-glow: rgba(4, 54, 125, 0.28);
    --primary-gradient: linear-gradient(135deg, #04367d 0%, #0d5ddb 100%);
    --primary-gradient-radial: radial-gradient(circle at top right, #0d5ddb 0%, #04367d 70%, #021a3e 100%);
    --primary-gradient-subtle: linear-gradient(135deg, #f0f7ff 0%, #e0effe 100%);

    --dark-base: #070d18;
    --dark-surface: #0f172a;
    --dark-card: #131f37;
    --dark-border: rgba(255, 255, 255, 0.1);
    --dark-gradient: linear-gradient(135deg, #070d18 0%, #0c182c 50%, #042557 100%);

    --light-base: #f8fafc;
    --light-surface: #ffffff;
    --light-card: #ffffff;
    --light-border: #e2e8f0;
    --light-border-subtle: #f1f5f9;

    --accent-gold: #f59e0b;
    --accent-gold-gradient: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    --accent-gold-glow: rgba(245, 158, 11, 0.35);

    --accent-emerald: #10b981;
    --accent-emerald-gradient: linear-gradient(135deg, #059669 0%, #10b981 100%);

    --accent-rose: #ef4444;
    --accent-indigo: #4f46e5;
    --accent-cyan: #0284c7;

    --text-main: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-light-muted: #94a3b8;
    
    --shadow-subtle: 0 2px 4px rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.06);
    --shadow-card: 0 12px 32px -4px rgba(4, 54, 125, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
    --shadow-hover: 0 20px 40px -8px rgba(4, 54, 125, 0.16), 0 8px 16px -4px rgba(15, 23, 42, 0.06);
    --shadow-float: 0 24px 48px -12px rgba(4, 54, 125, 0.25);
    --shadow-glow-gold: 0 10px 25px -3px rgba(245, 158, 11, 0.4);
    --shadow-dark: 0 20px 45px rgba(0, 0, 0, 0.4);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
    font-family: var(--font-primary) !important;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    direction: rtl;
    text-align: right;
    background-color: var(--light-base);
    color: var(--text-main);
    line-height: 1.85;
    overflow-x: hidden;
    letter-spacing: -0.015em;
    min-height: 100vh;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Luxury Scrollbar */
::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.03em;
    line-height: 1.45;
}

.fw-black { font-weight: 900 !important; }
.fw-extrabold { font-weight: 800 !important; }
.fw-bold { font-weight: 700 !important; }
.fw-semibold { font-weight: 600 !important; }
.fw-medium { font-weight: 500 !important; }

/* Global Utilities */
.max-w-700 { max-width: 700px; }
.max-w-850 { max-width: 850px; }
.leading-relaxed { line-height: 1.95 !important; }

/* Frosted Glass & Ambient Cards */
.glass-panel {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-card);
    border-radius: var(--radius-lg);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-dark);
    border-radius: var(--radius-lg);
}

.card-luxury {
    background: var(--light-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--light-border);
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.card-luxury:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(4, 54, 125, 0.25);
}

/* Public Header & Sticky Navbar */
.navbar-main {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transition: var(--transition-smooth);
    z-index: 1030;
}

.navbar-scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.08);
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

.brand-logo-img {
    transition: var(--transition-bounce);
}

.navbar-brand:hover .brand-logo-img {
    transform: rotate(-8deg) scale(1.08);
}

.nav-link-custom {
    color: #334155;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.6rem 1.1rem;
    border-radius: var(--radius-full);
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    text-decoration: none;
    position: relative;
}

.nav-link-custom:hover {
    color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-1px);
}

.nav-link-custom.active {
    color: var(--primary);
    background: var(--primary-light);
    font-weight: 700;
}

/* Luxury Action Buttons */
.btn-primary-luxury {
    background: var(--primary-gradient);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.65rem 1.5rem;
    border-radius: var(--radius-full);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    box-shadow: 0 6px 18px -2px rgba(4, 54, 125, 0.35);
    transition: var(--transition-smooth);
    text-decoration: none;
    cursor: pointer;
}

.btn-primary-luxury:hover {
    background: linear-gradient(135deg, #032a63 0%, #0b4fc0 100%);
    box-shadow: 0 10px 24px -2px rgba(4, 54, 125, 0.5);
    transform: translateY(-2px);
    color: #ffffff !important;
}

.btn-primary-luxury:active {
    transform: translateY(0);
}

.btn-outline-luxury {
    background: transparent;
    color: var(--primary) !important;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.6rem 1.4rem;
    border-radius: var(--radius-full);
    border: 2px solid var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
    text-decoration: none;
    cursor: pointer;
}

.btn-outline-luxury:hover {
    background: var(--primary);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -3px rgba(4, 54, 125, 0.3);
}

.btn-gold-luxury {
    background: var(--accent-gold-gradient);
    color: #1e1b4b !important;
    font-weight: 800;
    font-size: 1rem;
    padding: 0.75rem 1.8rem;
    border-radius: var(--radius-full);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    box-shadow: var(--shadow-glow-gold);
    transition: var(--transition-smooth);
    text-decoration: none;
    cursor: pointer;
}

.btn-gold-luxury:hover {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    box-shadow: 0 12px 30px 0 rgba(245, 158, 11, 0.5);
    transform: translateY(-3px);
    color: #1e1b4b !important;
}

/* Hero Carousel & Overlay */
.hero-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-float);
}

.hero-slide {
    position: relative;
    min-height: 560px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.hero-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(7, 13, 24, 0.95) 0%, rgba(7, 13, 24, 0.8) 55%, rgba(4, 54, 125, 0.5) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    max-width: 780px;
    padding: 3.5rem 2rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fbbf24;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 0.45rem 1.1rem;
    border-radius: var(--radius-full);
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hero-title {
    font-size: clamp(1.85rem, 4vw, 2.9rem);
    font-weight: 900;
    line-height: 1.35;
    margin-bottom: 1.25rem;
    color: #ffffff;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
    font-size: clamp(0.95rem, 1.8vw, 1.18rem);
    line-height: 1.95;
    color: #e2e8f0;
    margin-bottom: 2.2rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Stat Cards */
.stat-card-luxury {
    background: var(--light-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--light-border);
    box-shadow: var(--shadow-card);
    padding: 1.5rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.stat-card-luxury::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.stat-card-luxury:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.stat-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.stat-card-luxury:hover .stat-icon-wrap {
    transform: scale(1.1) rotate(5deg);
}

.stat-icon-wrap.blue {
    background: #e0effe;
    color: #0284c7;
}

.stat-icon-wrap.emerald {
    background: #d1fae5;
    color: #059669;
}

.stat-icon-wrap.gold {
    background: #fef3c7;
    color: #d97706;
}

.stat-icon-wrap.indigo {
    background: #e0e7ff;
    color: #4338ca;
}

.stat-value {
    font-size: 1.85rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.1;
    margin-bottom: 0.25rem;
}

.stat-label-text {
    font-size: 0.92rem;
    font-weight: 600;
    color: #64748b;
}

/* Service Card Luxury */
.service-card-luxury {
    background: var(--light-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--light-border);
    padding: 2rem 1.75rem;
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card-luxury::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    background: var(--primary-gradient-subtle);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: -1;
}

.service-card-luxury:hover {
    transform: translateY(-6px);
    border-color: rgba(4, 54, 125, 0.3);
    box-shadow: var(--shadow-hover);
}

.service-card-luxury:hover::after {
    opacity: 1;
}

/* Project Cards */
.project-card-luxury {
    background: var(--light-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--light-border);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition-smooth);
}

.project-card-luxury:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(4, 54, 125, 0.25);
}

.project-thumbnail-wrapper {
    position: relative;
    height: 230px;
    overflow: hidden;
    background: #0f172a;
}

.project-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card-luxury:hover .project-thumbnail {
    transform: scale(1.08);
}

.project-location-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(7, 13, 24, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.8rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.progress-track {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
    transition: width 1s ease-in-out;
}

/* FAQ Accordion Styling */
.faq-accordion .accordion-item {
    border: 1px solid var(--light-border);
    border-radius: var(--radius-md) !important;
    margin-bottom: 0.85rem;
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
    background: var(--light-surface);
    transition: var(--transition-smooth);
}

.faq-accordion .accordion-item:hover {
    border-color: var(--primary);
}

.faq-accordion .accordion-button {
    font-weight: 700;
    font-size: 1.02rem;
    color: var(--text-main);
    padding: 1.25rem 1.5rem;
    background: transparent;
    box-shadow: none !important;
}

.faq-accordion .accordion-button:not(.collapsed) {
    color: var(--primary);
    background: var(--primary-light);
}

.faq-accordion .accordion-body {
    padding: 1.25rem 1.5rem;
    color: var(--text-secondary);
    line-height: 1.9;
    font-size: 0.95rem;
    background: #ffffff;
}

/* Floating Action / Back to Top Button */
#backToTopBtn {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 8px 25px rgba(4, 54, 125, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    z-index: 1040;
    cursor: pointer;
}

#backToTopBtn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#backToTopBtn:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 12px 30px rgba(4, 54, 125, 0.6);
}

/* Floating WhatsApp / Quick Contact */
.floating-contact-pill {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #25d366;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    z-index: 1040;
    text-decoration: none;
    transition: var(--transition-bounce);
}

.floating-contact-pill:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.55);
    color: #ffffff !important;
}

/* Mobile Responsiveness */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: #ffffff;
        border-radius: var(--radius-lg);
        padding: 1.25rem;
        box-shadow: var(--shadow-float);
        margin-top: 1rem;
        border: 1px solid var(--light-border);
    }
    .hero-slide {
        min-height: 480px;
    }
    .hero-content {
        padding: 2.5rem 1.25rem;
    }
    .floating-contact-pill span {
        display: none;
    }
    .floating-contact-pill {
        padding: 0.75rem;
        border-radius: 50%;
        width: 48px;
        height: 48px;
        justify-content: center;
    }
}