@font-face {
    font-family: 'BigVesta';
    src: url('../fonts/BigVesta-Arabic-Bold.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
}

@font-face {
    font-family: 'SFPro';
    src: url('../fonts/Almarai-Regular.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
}

/* ===================================
   Saudi Perlite Brand Colors (from Logo)
   Logo: Dark Green #1B4332 | Medium Green #2D9B4F | Red #C41E3A
   =================================== */
:root {
    /* Primary brand colors extracted from logo */
    --brand-dark-green: #1B4332;
    /* Main dark green (S shape background) */
    --brand-medium-green: #2D9B4F;
    /* Medium green (logo highlights) */
    --brand-light-green: #52B788;
    /* Light green accent */
    --brand-red: #C41E3A;
    /* Brand red (S-curve element) */
    --brand-red-dark: #9B1C1C;
    /* Darker red shade */
    --brand-text: #1A1A1A;
    /* Primary text */
    --brand-text-muted: #555E5B;
    /* Muted text */
    --brand-surface: #F7FAF8;
    /* Slightly green-tinted surface */
    --brand-border: #D4E6DA;
    /* Green-tinted border */
}

::-webkit-scrollbar {
    display: none;
}

.nav-scrolled {
    background-color: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.05) !important;
    backdrop-filter: blur(12px);
}

/* ===================================
   Breadcrumb Component - Unified Design
   =================================== */
.breadcrumb-section {
    background: linear-gradient(135deg, #f0f7f3 0%, #e8f4ed 100%);
    border-bottom: 1px solid var(--brand-border);
    padding: 12px 0;
}

.breadcrumb-section.dark {
    background: linear-gradient(135deg, rgba(27, 67, 50, 0.95) 0%, rgba(18, 52, 35, 0.98) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.breadcrumb-nav ol {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumb-nav li {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.breadcrumb-nav li a {
    color: var(--brand-dark-green);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.breadcrumb-nav li a:hover {
    color: var(--brand-medium-green);
}

.breadcrumb-nav li.active span {
    color: var(--brand-text-muted);
    font-weight: 400;
}

.breadcrumb-nav .separator {
    color: #A3B5AB;
    font-size: 12px;
    user-select: none;
}

.breadcrumb-section.dark .breadcrumb-nav li a {
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb-section.dark .breadcrumb-nav li.active span {
    color: rgba(255, 255, 255, 0.6);
}

.breadcrumb-section.dark .breadcrumb-nav .separator {
    color: rgba(255, 255, 255, 0.4);
}

/* ===================================
   Interactive Map Styles
   =================================== */
.map-pin {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.map-pin:hover {
    transform: scale(1.2);
}

.leaflet-popup-content-wrapper {
    border-radius: 12px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid var(--brand-border) !important;
    direction: rtl;
}

.leaflet-popup-content {
    margin: 16px !important;
    min-width: 220px !important;
}

/* ===================================
   Breadcrumb Component - Unified Design (legacy)
   =================================== */
.breadcrumb-section {
    background: linear-gradient(135deg, #f0f7f3 0%, #e8f4ed 100%);
    border-bottom: 1px solid var(--brand-border);
    padding: 12px 0;
}

.breadcrumb-section.dark {
    background: linear-gradient(135deg, rgba(27, 67, 50, 0.95) 0%, rgba(18, 52, 35, 0.98) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.breadcrumb-nav ol {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumb-nav li {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.breadcrumb-nav li a {
    color: var(--brand-dark-green);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.breadcrumb-nav li a:hover {
    color: var(--brand-medium-green);
}

.breadcrumb-nav li.active span {
    color: var(--brand-text-muted);
    font-weight: 400;
}

.breadcrumb-nav .separator {
    color: #A3B5AB;
    font-size: 12px;
    user-select: none;
}

.breadcrumb-section.dark .breadcrumb-nav li a {
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb-section.dark .breadcrumb-nav li.active span {
    color: rgba(255, 255, 255, 0.6);
}

.breadcrumb-section.dark .breadcrumb-nav .separator {
    color: rgba(255, 255, 255, 0.4);
}

/* ===================================
   Page Hero - Premium Unified Design
   =================================== */
.page-hero {
    position: relative;
    width: 100%;
    min-height: 380px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #0a1f14;
}

.page-hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 0% 35%;
    transform: scale(1.05);
    transition: transform 8s ease;
    opacity: 0.55;
}

@keyframes slowZoom {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.hero-image-animate {
    animation: slowZoom 20s ease-in-out infinite;
}

.page-hero:hover .page-hero__bg {
    transform: scale(1.0);
}

/* Multi-layered gradient overlay for premium depth */
.page-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(100deg, rgba(10, 25, 15, 0.92) 0%, rgba(27, 67, 50, 0.60) 45%, rgba(27, 67, 50, 0.20) 100%),
        linear-gradient(to top, rgba(5, 15, 8, 0.85) 0%, transparent 60%);
}

/* Decorative green accent bar on the start side (RTL = right) */
.page-hero__accent {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #2D9B4F 0%, #1B4332 60%, transparent 100%);
}

/* Geometric decoration */
.page-hero__geo {
    position: absolute;
    left: -80px;
    top: 50%;
    transform: translateY(-50%);
    width: 320px;
    height: 320px;
    border: 1px solid rgba(45, 155, 79, 0.12);
    border-radius: 50%;
    pointer-events: none;
}

.page-hero__geo::before {
    content: '';
    position: absolute;
    inset: 24px;
    border: 1px solid rgba(45, 155, 79, 0.08);
    border-radius: 50%;
}

.page-hero__content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 110px 80px 60px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
}

/* Breadcrumb inside hero */
.page-hero__breadcrumb {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    padding: 7px 16px;
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 100px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.page-hero__breadcrumb li {
    display: flex;
    align-items: center;
    gap: 0;
}

.page-hero__breadcrumb a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 2px 6px;
    border-radius: 4px;
}

.page-hero__breadcrumb a:hover {
    color: rgba(255, 255, 255, 1);
    background: rgba(255, 255, 255, 0.05);
}

.page-hero__breadcrumb .bc-sep {
    color: rgba(255, 255, 255, 0.25);
    font-size: 14px;
    margin: 0 2px;
    user-select: none;
}

.page-hero__breadcrumb .bc-current {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 700;
    padding: 2px 8px;
    background: rgba(45, 155, 79, 0.25);
    border-radius: 4px;
    margin: 0 2px;
}

/* Page label */
.page-hero__label {
    display: none;
    /* hidden — title is enough */
}

.page-hero__title {
    color: #ffffff;
    font-size: clamp(36px, 5vw, 60px);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
    max-width: 700px;
}

.page-hero__title .accent {
    color: #52C47A;
}

.page-hero__title-underline {
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, #C41E3A, #2D9B4F);
    border-radius: 3px;
    margin-top: 4px;
}

.page-hero__subtitle {
    color: rgba(255, 255, 255, 0.65);
    font-size: 15px;
    line-height: 1.75;
    max-width: 520px;
}

/* Decorative bottom border */
.page-hero__bottom-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, #1B4332 0%, #2D9B4F 50%, #C41E3A 100%);
    opacity: 0.8;
}

/* Scroll indicator */
.page-hero__scroll {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: rgba(255, 255, 255, 0.35);
    font-size: 10px;
    letter-spacing: 0.1em;
    animation: heroScrollBounce 2.5s ease infinite;
}

.page-hero__scroll span {
    font-size: 18px;
}

@keyframes heroScrollBounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 0.35;
    }

    50% {
        transform: translateX(-50%) translateY(6px);
        opacity: 0.6;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .page-hero__content {
        padding: 100px 40px 55px;
    }
}

@media (max-width: 768px) {
    .page-hero {
        min-height: 290px;
    }

    .page-hero__content {
        padding: 88px 20px 48px;
        gap: 14px;
    }

    .page-hero__title {
        font-size: 30px;
    }

    .page-hero__geo {
        display: none;
    }

    .page-hero__scroll {
        display: none;
    }
}

.project-popup-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 8px;
}

/* ===================================
   Client Cards
   =================================== */
.client-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.client-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(27, 67, 50, 0.12);
}

/* ===================================
   Gallery Grid (Project Detail)
   =================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.gallery-grid .gallery-main {
    grid-column: span 2;
    grid-row: span 2;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid .gallery-main {
        grid-column: span 1;
        grid-row: span 1;
    }
}

/* ===================================
   Media animations
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease both;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

/* client */
.client-card {
    transition: transform .3s, box-shadow .3s
}

.client-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(27, 67, 50, .12)
}

.clw {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f7f3, #e8f4ed);
    border: 1px solid #D4E6DA;
    flex-shrink: 0;
    overflow: hidden
}

.stat-c {
    background: linear-gradient(135deg, #1B4332, #2D5A44);
    color: #fff;
    border-radius: 16px;
    padding: 24px;
    text-align: center
}

/* end client */

/* product */

.product-list-view {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
}

.product-list-view article {
    flex-direction: row !important;
    min-height: 200px !important;
    max-height: 220px !important;
    align-items: stretch !important;
}

.product-list-view article > .relative {
    width: 220px !important;
    height: auto !important;
    flex-shrink: 0 !important;
}

.product-list-view article .p-unit-lg {
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 16px !important;
    justify-content: center;
}

@media (max-width: 768px) {
    .product-list-view article {
        flex-direction: column !important;
        max-height: none !important;
        min-height: auto !important;
    }

    .product-list-view article > .relative {
        width: 100% !important;
        height: 200px !important;
    }
}

/* end product */

/* start quote */
.industry-card {
    transition: transform .25s ease, box-shadow .25s ease, border-color .2s ease, background-color .2s ease
}

.industry-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(1, 45, 29, .12)
}

.peer:checked~.industry-card {
    border-color: #012d1d !important;
    border-width: 2px !important;
    background: rgba(1, 45, 29, .04) !important
}

.peer:checked~.industry-card .chk {
    display: flex !important
}

.product-card {
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(1, 45, 29, .1)
}

.peer:checked~.product-card {
    border-color: #012d1d !important;
    border-width: 2px !important;
    background: rgba(1, 45, 29, .04) !important
}

.peer:checked~.product-card .chk {
    display: flex !important
}

.field-input {
    transition: border-color .2s, box-shadow .2s
}

.field-input:focus {
    outline: none;
    border-color: #012d1d;
    border-width: 2px;
    box-shadow: 0 0 0 4px rgba(1, 45, 29, .08)
}

.step-dot {
    transition: background-color .3s, color .3s, transform .3s, box-shadow .3s
}

.step-dot.active {
    transform: scale(1.15);
    box-shadow: 0 0 0 5px rgba(1, 45, 29, .15)
}

.step-line {
    height: 2px;
    background: #e1e3e4;
    flex: 1;
    transition: background-color .4s;
    margin-top: -20px
}

.step-line.done {
    background: linear-gradient(to left, #2D9B4F, #012d1d)
}

.form-step {
    animation: stepIn .35s ease both
}

@keyframes stepIn {
    from {
        opacity: 0;
        transform: translateY(12px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

#mobile-progress {
    height: 4px;
    background: #e1e3e4
}

#mobile-progress-fill {
    height: 100%;
    background: linear-gradient(to left, #2D9B4F, #012d1d);
    transition: width .4s ease
}

@keyframes successPop {
    0% {
        transform: scale(.6);
        opacity: 0
    }

    70% {
        transform: scale(1.08);
        opacity: 1
    }

    100% {
        transform: scale(1)
    }
}

.success-icon {
    animation: successPop .55s cubic-bezier(.36, .07, .19, .97) both
}

@keyframes btnPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(1, 45, 29, .4)
    }

    50% {
        box-shadow: 0 0 0 8px rgba(1, 45, 29, 0)
    }
}

.btn-primary-cta {
    animation: btnPulse 2.5s ease infinite
}

.chk {
    display: none
}

textarea {
    resize: vertical
}

/* end quote */

/* Map Layout */

/* Hide scrollbar for list container */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Map Layout */
 

/* Custom map markers */
.custom-map-marker {
    background-color: white;
    border: 2px solid #2563EB;
    /* Default blue, will be overridden */
    border-radius: 20px;
    padding: 4px 10px;
    font-family: 'SFPro', sans-serif;
    font-weight: 700;
    font-size: 13px;
    color: #2563EB;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    white-space: nowrap;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.custom-map-marker:hover {
    transform: scale(1.05);
    z-index: 1000 !important;
}

.custom-map-marker::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px 6px 0;
    border-style: solid;
    border-color: #2563EB transparent transparent transparent;
}

.custom-map-marker.active {
    background-color: #2563EB;
    color: white;
}

.custom-map-marker.active::after {
    border-color: #2563EB transparent transparent transparent;
}

/* Leaflet popups */
.leaflet-popup-content-wrapper {
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.leaflet-popup-content {
    margin: 0;
    width: 280px !important;
}


/* end Map Layout */

/* ===================================
   Saudi Identity & Vision 2030 UI Enhancements
   =================================== */

/* Subtle Najdi / Islamic geometric pattern background */
.saudi-pattern-bg {
    background-color: var(--brand-surface);
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 0l20 20-20 20L0 20z M20 4l16 16-16 16L4 20z' fill='%231B4332' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 60px 60px;
}

/* Add a subtle green border and micro-animation to standard cards to feel more premium */
.premium-saudi-card {
    border-top: 3px solid rgba(45, 155, 79, 0.4) !important;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.premium-saudi-card:hover {
    border-top-color: var(--brand-medium-green) !important;
    box-shadow: 0 16px 40px rgba(27, 67, 50, 0.08) !important;
    transform: translateY(-4px);
}

/* Vision 2030 inspired subtle watermark for hero/vision sections */
.vision-watermark {
    position: absolute;
    bottom: -10%;
    right: -5%;
    width: 60%;
    height: 120%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 10 L90 30 L90 70 L50 90 L10 70 L10 30 Z' fill='none' stroke='%232D9B4F' stroke-width='0.5' stroke-opacity='0.15'/%3E%3Cpath d='M50 20 L80 35 L80 65 L50 80 L20 65 L20 35 Z' fill='none' stroke='%23C41E3A' stroke-width='0.5' stroke-opacity='0.1'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
}

/* Najdi subtle separator line */
.najdi-separator {
    width: 100%;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='12' viewBox='0 0 40 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 0 L40 12 L0 12 Z' fill='%231B4332' fill-opacity='0.08'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
}

/* ===================================
   Mobile Navigation Drawer Styles
   =================================== */
#mobile-nav-drawer {
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-nav-panel {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

#mobile-nav-drawer.active,
#mobile-nav-drawer:not(.opacity-0) {
    opacity: 1 !important;
    pointer-events: auto !important;
    visibility: visible !important;
}

#mobile-nav-drawer.active #mobile-nav-panel,
#mobile-nav-drawer:not(.opacity-0) #mobile-nav-panel {
    transform: translateX(0) !important;
}

