:root {
    --primary-green: #0d3d2e;
    --green-2: #145c44;
    --green-3: #1a704f;
    --primary-gold: #c9a227;
    --gold-light: #e8d48b;
    --bg-light: #f8faf9;
    --hero-gradient: linear-gradient(135deg, #0d3d2e 0%, #145c44 50%, #1a704f 100%);
    --pattern-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a227' fill-opacity='0.055'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

* {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    letter-spacing: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #fff;
}

.gradient-hero {
    background-color: var(--primary-green);
    background-image: var(--hero-gradient);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.pattern-bg {
    background-image: var(--pattern-image);
    background-repeat: repeat;
    background-size: 60px 60px;
}

.gradient-hero.pattern-bg {
    background-color: var(--primary-green);
    background-image: var(--pattern-image), var(--hero-gradient);
    background-repeat: repeat, no-repeat;
    background-size: 60px 60px, cover;
    background-position: center, center;
}

.gold-gradient {
    background: linear-gradient(135deg, #c9a227 0%, #ddb84a 50%, #c9a227 100%);
}

.text-white-strong {
    color: #ffffff !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.text-gold-bright {
    color: #e8d48b !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.gradient-hero .safe-light-text,
.gradient-hero p,
.gradient-hero h1,
.gradient-hero h2,
.gradient-hero h3,
.gradient-hero h4,
.gradient-hero span {
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.28);
}

.gradient-hero a,
.gradient-hero button,
.gradient-hero svg,
.gradient-hero .no-shadow {
    text-shadow: none;
}

.nav-blur {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.brand-logo {
    height: 58px;
    width: auto;
    max-width: 225px;
    object-fit: contain;
}

.brand-logo-footer {
    height: 82px;
    width: auto;
    max-width: 270px;
    object-fit: contain;
}

.brand-mark {
    width: 86px;
    height: 86px;
    border-radius: 999px;
    object-fit: cover;
    background: #fff;
    padding: 4px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
}

.page-hero {
    min-height: 380px;
}

.home-hero {
    min-height: 700px;
}

.home-hero-inner {
    padding-top: 3.25rem;
    padding-bottom: 3.25rem;
}

.home-hero .hero-service-panel {
    width: 100%;
    max-width: 430px;
}

.home-hero .brand-mark {
    width: 72px;
    height: 72px;
}

.custom-map-card {
    border-radius: 24px;
}

.custom-map-visual {
    position: relative;
    height: 340px;
    min-height: 0;
    overflow: hidden;
    background: #0d3d2e;
}

.custom-map-visual svg {
    width: 100%;
    height: 100%;
    display: block;
}

.map-grid-line {
    fill: none;
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 1;
}

.map-ksa-shape {
    fill: rgba(255, 255, 255, 0.07);
    stroke: rgba(232, 212, 139, 0.42);
    stroke-width: 2.5;
    filter: url("#mapGlow");
}

.map-route {
    fill: none;
    stroke: #e8d48b;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 16 18;
    opacity: 0.8;
    animation: map-route-flow 7s linear infinite;
    filter: url("#mapGlow");
}

.map-marker-pulse {
    fill: rgba(201, 162, 39, 0.25);
    animation: map-marker-pulse 2.6s ease-out infinite;
}

.map-marker-core {
    fill: #c9a227;
    stroke: #fff4bc;
    stroke-width: 3;
    filter: url("#mapGlow");
}

.map-pin-icon {
    fill: none;
    stroke: #0d3d2e;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.map-city-label,
.map-office-label {
    direction: rtl;
    unicode-bidi: plaintext;
    font-family: 'Cairo', 'Tajawal', sans-serif;
    paint-order: stroke;
    stroke: rgba(13, 61, 46, 0.55);
    stroke-width: 5px;
    stroke-linejoin: round;
}

.map-city-label {
    fill: #fff;
    font-size: 34px;
    font-weight: 900;
}

.map-office-label {
    fill: #e8d48b;
    font-size: 20px;
    font-weight: 800;
}

.map-info-strip {
    position: absolute;
    right: 24px;
    left: 24px;
    bottom: 24px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 18px;
    border: 1px solid rgba(232, 212, 139, 0.28);
    border-radius: 18px;
    background: rgba(13, 61, 46, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: #fff;
}

.map-info-strip span {
    display: block;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 700;
}

.map-info-strip strong {
    display: block;
    color: #e8d48b;
    font-size: 22px;
    font-weight: 900;
}

.map-info-strip a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    border-radius: 999px;
    background: #25d366;
    color: #fff;
    padding: 12px 18px;
    font-weight: 800;
    transition: transform 0.25s ease, background 0.25s ease;
}

.map-info-strip a:hover {
    background: #128c7e;
    transform: translateY(-2px);
}

@keyframes map-route-flow {
    to {
        stroke-dashoffset: -240;
    }
}

@keyframes map-marker-pulse {
    0% {
        opacity: 0.85;
        transform: scale(0.75);
    }
    100% {
        opacity: 0;
        transform: scale(1.7);
    }
}

.slider-vector-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.58;
    overflow: visible;
}

.vector-rings circle {
    fill: none;
    stroke: rgba(232, 212, 139, 0.2);
    stroke-width: 1.5;
    transform-origin: 760px 350px;
    animation: vector-ring-spin 34s linear infinite;
}

.vector-rings circle:nth-child(2) {
    animation-duration: 27s;
    animation-direction: reverse;
}

.vector-rings circle:nth-child(3) {
    animation-duration: 19s;
}

.vector-line {
    fill: none;
    stroke: url("#vectorGold");
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-dasharray: 14 20;
    opacity: 0.42;
    filter: url("#softVectorGlow");
    animation: vector-line-flow 9s linear infinite;
}

.line-two {
    opacity: 0.28;
    animation-duration: 12s;
    animation-direction: reverse;
}

.line-three {
    opacity: 0.24;
    animation-duration: 15s;
}

.service-node {
    transform-box: fill-box;
    transform-origin: center;
    opacity: 0.68;
    animation: service-node-float 7s ease-in-out infinite;
}

.node-follow {
    animation-delay: -1.1s;
}

.node-license {
    animation-delay: -2.2s;
}

.node-contract {
    animation-delay: -3.3s;
}

.node-docs {
    animation-delay: -4.4s;
}

.node-care {
    animation-delay: -5.5s;
}

.node-glow {
    fill: url("#vectorGlow");
    animation: vector-node-glow 2.8s ease-in-out infinite;
}

.node-core {
    fill: rgba(13, 61, 46, 0.56);
    stroke: rgba(232, 212, 139, 0.68);
    stroke-width: 2;
    filter: url("#softVectorGlow");
}

.node-icon {
    fill: none;
    stroke: #fff4bc;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.vector-sparkles path {
    fill: #e8d48b;
    opacity: 0.45;
    transform-box: fill-box;
    transform-origin: center;
    animation: vector-sparkle 4s ease-in-out infinite;
}

.vector-sparkles path:nth-child(2) {
    animation-delay: -1.4s;
}

.vector-sparkles path:nth-child(3) {
    animation-delay: -2.6s;
}

@keyframes service-node-float {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(0, -18px, 0) scale(1.04);
    }
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes vector-line-flow {
    to {
        stroke-dashoffset: -260;
    }
}

@keyframes vector-node-glow {
    0%,
    100% {
        opacity: 0.42;
        transform: scale(0.94);
    }
    50% {
        opacity: 0.82;
        transform: scale(1.08);
    }
}

@keyframes vector-ring-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes vector-sparkle {
    0%,
    100% {
        opacity: 0.22;
        transform: scale(0.82) rotate(0deg);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.15) rotate(45deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .slider-vector-bg * {
        animation: none;
    }
}

.slide-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.card-hover {
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px -12px rgba(13, 61, 46, 0.22);
}

.service-icon {
    transition: all 0.35s ease;
}

.card-hover:hover .service-icon {
    transform: scale(1.12) rotate(5deg);
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.counter {
    font-variant-numeric: tabular-nums;
}

.floating-actions {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.floating-action {
    width: 62px;
    height: 62px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.22);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    border: none;
}

.floating-action:hover {
    transform: scale(1.1);
}

.floating-whatsapp {
    background: linear-gradient(145deg, #25d366, #128c7e);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.42);
}

.floating-whatsapp::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: #25d366;
    animation: pulse-ring 2s infinite;
}

.floating-call {
    background: linear-gradient(145deg, #c9a227, #0d3d2e);
    box-shadow: 0 8px 25px rgba(201, 162, 39, 0.35);
}

.floating-label {
    position: absolute;
    left: 74px;
    background: #0d3d2e;
    color: #fff;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-8px);
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.floating-action:hover .floating-label {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 760px) {
    .brand-logo {
        height: 46px;
        max-width: 168px;
    }
}

@media (max-width: 1023px) {
    .home-hero {
        min-height: auto;
    }

    .home-hero-inner {
        padding-top: 3rem;
        padding-bottom: 2.75rem;
    }

    .home-hero .hero-service-panel {
        max-width: 400px;
    }

    .page-hero {
        min-height: 340px;
    }

    .custom-map-visual {
        height: 320px;
    }
}

@media (max-width: 640px) {
    .home-hero-inner {
        padding-top: 2.5rem;
        padding-bottom: 2.25rem;
    }

    .home-hero .hero-stats {
        flex-wrap: wrap;
        justify-content: center;
    }

    .home-hero .hero-stats .w-px {
        display: none;
    }

    .page-hero {
        min-height: 310px;
    }

    .custom-map-card {
        border-radius: 18px;
    }

    .custom-map-visual {
        height: 320px;
    }

    .map-city-label {
        font-size: 28px;
    }

    .map-office-label {
        font-size: 17px;
    }

    .map-info-strip {
        right: 14px;
        left: 14px;
        bottom: 14px;
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 10px;
        padding: 12px;
    }

    .map-info-strip strong {
        font-size: 18px;
    }

    .map-info-strip a {
        width: 100%;
        padding: 10px 14px;
    }

    body:not(.show-floating-actions) .floating-actions {
        opacity: 0;
        pointer-events: none;
        transform: translateY(14px);
    }

    .floating-actions {
        bottom: 20px;
        left: 20px;
        gap: 10px;
        transition: opacity 0.25s ease, transform 0.25s ease;
    }

    .floating-action {
        width: 56px;
        height: 56px;
    }

    .floating-label {
        display: none;
    }
}
