@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* --- GLOBAL RESET & BASE STYLES --- */
html, body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    background-color: #F8FAFC !important;
    color: #0F172A !important;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

/* Ensure MudMainContent takes full width without weird padding */
.mud-main-content {
    padding-top: 0 !important;
    background-color: #F8FAFC !important;
}

.mud-layout {
    background-color: #F8FAFC !important;
}

/* --- TOP ANNOUNCEMENT BAR --- */
.top-bar {
    background-color: #030712 !important;
    color: #94A3B8 !important;
    font-size: 0.825rem;
    padding: 8px 0;
    border-bottom: 1px solid #1E293B;
}

.top-bar span, .top-bar a {
    color: #CBD5E1 !important;
    text-decoration: none;
}

.top-bar-icon {
    color: #F59E0B !important;
}

/* --- APP BAR / NAVIGATION --- */
.custom-appbar {
    background: #0F172A !important;
    background-color: #0F172A !important;
    border-bottom: 2px solid #1E293B !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2) !important;
}

.nav-link-custom {
    color: #F8FAFC !important;
    font-weight: 600;
    font-size: 0.925rem;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.nav-link-custom:hover {
    color: #F59E0B !important;
    background-color: rgba(255, 255, 255, 0.08);
}

/* --- HERO SECTION --- */
.hero-container {
    background: linear-gradient(135deg, #091E3A 0%, #112F55 50%, #0F172A 100%) !important;
    background-color: #0F172A !important;
    color: #FFFFFF !important;
    padding: 90px 20px 100px 20px !important;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 -10px 30px rgba(0,0,0,0.3);
}

.hero-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 75% 30%, rgba(245, 158, 11, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background-color: rgba(245, 158, 11, 0.18) !important;
    border: 1px solid #F59E0B !important;
    color: #F59E0B !important;
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 1px;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.hero-title {
    color: #FFFFFF !important;
    font-size: clamp(1.75rem, 4.5vw, 3.25rem) !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    margin-bottom: 20px !important;
    letter-spacing: -0.5px !important;
}

.hero-title-highlight {
    color: #F59E0B !important;
}

.hero-description {
    color: #E2E8F0 !important;
    font-size: clamp(0.95rem, 2vw, 1.15rem) !important;
    line-height: 1.6 !important;
    margin-bottom: 30px !important;
    max-width: 650px;
}

/* Hero Action Buttons - Compact & Professional */
.btn-cta-gold {
    background-color: #F59E0B !important;
    color: #0F172A !important;
    font-weight: 800 !important;
    font-size: 0.875rem !important;
    padding: 9px 20px !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35) !important;
    transition: all 0.25s ease !important;
    text-transform: none !important;
    letter-spacing: 0px !important;
}

.btn-cta-gold:hover {
    background-color: #D97706 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45) !important;
}

.btn-cta-outline {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: #FFFFFF !important;
    border: 1.5px solid rgba(255, 255, 255, 0.5) !important;
    font-weight: 700 !important;
    font-size: 0.875rem !important;
    padding: 9px 20px !important;
    border-radius: 8px !important;
    transition: all 0.25s ease !important;
    text-transform: none !important;
}

.btn-cta-outline:hover {
    border-color: #FFFFFF !important;
    background-color: rgba(255, 255, 255, 0.15) !important;
    transform: translateY(-2px);
}

/* Hero Client Portal Card */
.hero-portal-card {
    background: #FFFFFF !important;
    border-radius: 20px !important;
    border: 1px solid #E2E8F0 !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3) !important;
    padding: 32px !important;
    color: #0F172A !important;
}

.hero-portal-title {
    color: #0F172A !important;
    font-size: 1.35rem !important;
    font-weight: 800 !important;
}

.hero-portal-subtitle {
    color: #64748B !important;
    font-size: 0.875rem !important;
}

/* --- STATS COUNTER BAR --- */
.stats-bar-wrapper {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-box {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(15, 23, 42, 0.4) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 12px !important;
    padding: 14px 16px !important;
    text-align: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.2) !important;
}

/* Shimmer Light Sweep effect on hover */
.stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 65%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transform: skewX(-25deg);
    transition: left 0.75s ease-in-out;
    pointer-events: none;
}

.stat-box:hover::before {
    left: 150%;
}

/* Glowing top accent line */
.stat-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #F59E0B, #FBBF24, #D97706);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 12px 12px 0 0;
}

.stat-box:hover::after {
    opacity: 1;
}

/* Hover transformation & glowing elevation */
.stat-box:hover {
    transform: translateY(-4px) scale(1.02) !important;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.14) 0%, rgba(245, 158, 11, 0.1) 100%) !important;
    border-color: rgba(245, 158, 11, 0.6) !important;
    box-shadow: 0 12px 30px -5px rgba(0, 0, 0, 0.35), 0 0 18px rgba(245, 158, 11, 0.25) !important;
}

.stat-number {
    font-size: 1.6rem !important;
    font-weight: 800 !important;
    color: #F59E0B !important;
    margin-bottom: 2px;
    letter-spacing: -0.5px;
    transition: transform 0.3s ease, text-shadow 0.3s ease, color 0.3s ease !important;
}

.stat-box:hover .stat-number {
    transform: scale(1.05);
    color: #FBBF24 !important;
    text-shadow: 0 0 16px rgba(245, 158, 11, 0.6);
}

.stat-label {
    font-size: 0.825rem !important;
    color: #CBD5E1 !important;
    font-weight: 600 !important;
    line-height: 1.25;
    transition: color 0.3s ease !important;
}

.stat-box:hover .stat-label {
    color: #FFFFFF !important;
}

/* Entrance Keyframes Animation */
@keyframes statBoxFadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.stat-box-animated {
    animation: statBoxFadeInUp 0.75s cubic-bezier(0.165, 0.84, 0.44, 1) both;
}

/* --- SERVICES SECTION --- */
.services-section {
    padding: 100px 20px !important;
    background-color: #F8FAFC !important;
}

.section-head-tag {
    color: #D97706 !important;
    font-weight: 800 !important;
    font-size: 0.85rem !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    margin-bottom: 8px !important;
}

.section-head-title {
    color: #0F172A !important;
    font-size: 2.35rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.5px !important;
    margin-bottom: 12px !important;
}

.section-head-desc {
    color: #475569 !important;
    font-size: 1.1rem !important;
    max-width: 720px;
    margin: 0 auto;
}

/* Service Card Clean & Pro */
.service-card-clean {
    background: #FFFFFF !important;
    border-radius: 20px !important;
    border: 1px solid #E2E8F0 !important;
    box-shadow: 0 4px 25px rgba(15, 23, 42, 0.06) !important;
    padding: 32px !important;
    transition: all 0.3s ease !important;
    height: 100%;
}

.service-card-clean:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12) !important;
    border-color: #CBD5E1 !important;
}

/* --- PRO SERVICE CARDS WITH ADVANCED ANIMATIONS --- */
.service-card-pro {
    background: #FFFFFF !important;
    border-radius: 20px !important;
    border: 1px solid #E2E8F0 !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07) !important;
    overflow: hidden;
    height: 100%;
    position: relative;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    cursor: pointer;
}

/* Shimmer Light Sweep effect on hover */
.service-card-pro::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.35),
        transparent
    );
    transform: skewX(-25deg);
    transition: left 0.75s ease-in-out;
    pointer-events: none;
    z-index: 10;
}

.service-card-pro:hover::before {
    left: 150%;
}

.service-card-pro:hover {
    transform: translateY(-10px) scale(1.02) !important;
    border-color: rgba(245, 158, 11, 0.5) !important;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.18), 0 0 25px rgba(245, 158, 11, 0.15) !important;
}

.service-card-img-container {
    position: relative;
    height: 210px;
    overflow: hidden;
}

.service-card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), filter 0.6s ease !important;
}

.service-card-pro:hover .service-card-img-container img {
    transform: scale(1.1) rotate(0.5deg);
    filter: brightness(1.05);
}

.service-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.2) 0%, rgba(15, 23, 42, 0.92) 100%) !important;
    transition: background 0.4s ease;
}

.service-card-pro:hover .service-card-overlay {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.15) 0%, rgba(15, 23, 42, 0.96) 100%) !important;
}

.service-card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 5;
    font-weight: 800;
    font-size: 0.75rem;
    padding: 6px 14px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.service-card-pro:hover .service-card-badge {
    transform: scale(1.06);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}

.service-card-title {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    z-index: 5;
    font-size: 1.35rem;
    font-weight: 800;
    color: #FFFFFF !important;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
    transition: transform 0.3s ease, color 0.3s ease !important;
}

.service-card-pro:hover .service-card-title {
    transform: translateY(-3px);
    color: #FBBF24 !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.service-card-content {
    padding: 28px 24px !important;
}

.service-card-content p {
    color: #334155 !important;
    font-size: 0.95rem !important;
    line-height: 1.65 !important;
    margin-bottom: 20px !important;
}

.service-check-item {
    color: #1E293B !important;
    font-size: 0.925rem !important;
    font-weight: 600 !important;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    transition: transform 0.3s ease !important;
}

.service-card-pro:hover .service-check-item {
    transform: translateX(5px);
}

@keyframes serviceCardFadeInUp {
    0% {
        opacity: 0;
        transform: translateY(35px) scale(0.96);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.service-card-animated {
    animation: serviceCardFadeInUp 0.75s cubic-bezier(0.165, 0.84, 0.44, 1) both;
}

.service-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: linear-gradient(135deg, #1E40AF 0%, #1D4ED8 100%) !important;
    color: #FFFFFF !important;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 8px 16px rgba(29, 78, 216, 0.25);
}

.service-card-title {
    color: #0F172A !important;
    font-size: 1.3rem !important;
    font-weight: 800 !important;
    margin-bottom: 12px !important;
}

.service-card-text {
    color: #334155 !important;
    font-size: 0.95rem !important;
    line-height: 1.65 !important;
    margin-bottom: 20px !important;
}

.service-list-item {
    color: #1E293B !important;
    font-size: 0.925rem !important;
    font-weight: 600 !important;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.service-list-item-icon {
    color: #16A34A !important;
    margin-right: 10px;
    font-size: 1.2rem !important;
}

/* --- CORRIDORS SECTION --- */
.corridors-section {
    padding: 100px 20px !important;
    background-color: #FFFFFF !important;
    border-top: 1px solid #E2E8F0;
    border-bottom: 1px solid #E2E8F0;
}

.corridor-box {
    background-color: #F8FAFC !important;
    border-left: 5px solid #1D4ED8 !important;
    border-radius: 10px;
    padding: 18px 22px;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.corridor-title {
    color: #0F172A !important;
    font-weight: 800 !important;
    font-size: 1.05rem !important;
    margin-bottom: 4px;
}

.corridor-desc {
    color: #64748B !important;
    font-size: 0.9rem !important;
}

.agency-card-dark {
    background: linear-gradient(145deg, #0F172A 0%, #1E293B 100%) !important;
    color: #FFFFFF !important;
    border-radius: 20px !important;
    padding: 36px !important;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.25) !important;
}

.agency-card-title {
    color: #FFFFFF !important;
    font-size: 1.45rem !important;
    font-weight: 800 !important;
    margin-bottom: 12px !important;
}

.agency-card-text {
    color: #CBD5E1 !important;
    font-size: 1rem !important;
    line-height: 1.65 !important;
}

/* --- DEVIS SECTION --- */
.devis-section {
    padding: 100px 20px !important;
    background-color: #F1F5F9 !important;
}

.devis-form-card {
    background: #FFFFFF !important;
    border-radius: 24px !important;
    border: 1px solid #E2E8F0 !important;
    box-shadow: 0 25px 50px rgba(15, 23, 42, 0.08) !important;
    padding: 44px !important;
}

.devis-form-card label {
    color: #334155 !important;
    font-weight: 700 !important;
}

.devis-form-card input, .devis-form-card textarea, .devis-form-card select {
    color: #0F172A !important;
    font-weight: 600 !important;
}

/* --- FOOTER --- */
.footer-wrapper {
    background-color: #030712 !important;
    color: #94A3B8 !important;
    padding: 70px 20px 35px 20px !important;
    border-top: 4px solid #F59E0B;
}

.footer-heading {
    color: #FFFFFF !important;
    font-size: 1.2rem !important;
    font-weight: 800 !important;
    margin-bottom: 20px !important;
}

.footer-link {
    color: #CBD5E1 !important;
    text-decoration: none;
    font-size: 0.925rem;
    line-height: 2.2;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #F59E0B !important;
}

.footer-bottom {
    border-top: 1px solid #1E293B;
    padding-top: 28px;
    margin-top: 48px;
    font-size: 0.875rem;
    color: #64748B !important;
}

/* --- SIMULATOR INPUT & POPOVER STYLES --- */
.simulator-input .mud-input-slot,
.simulator-input input {
    color: #FFFFFF !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    -webkit-text-fill-color: #FFFFFF !important;
}

.simulator-input .mud-input-label {
    color: #F59E0B !important;
    font-weight: 700 !important;
    background-color: #0F172A !important;
    padding: 0 6px !important;
    border-radius: 4px !important;
}

.simulator-input .mud-input-outlined-border {
    border-color: #475569 !important;
}

.simulator-input:hover .mud-input-outlined-border,
.simulator-input.mud-input-focused .mud-input-outlined-border {
    border-color: #F59E0B !important;
}

.simulator-input .mud-icon-root,
.simulator-input .mud-button-icon {
    color: #F59E0B !important;
}

.simulator-input input::placeholder {
    color: #94A3B8 !important;
    opacity: 0.8 !important;
}

.simulator-popover {
    background-color: #1E293B !important;
    color: #FFFFFF !important;
    border: 1px solid #475569 !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

.simulator-popover .mud-list-item {
    color: #F1F5F9 !important;
    font-weight: 500 !important;
}

.simulator-popover .mud-list-item:hover,
.simulator-popover .mud-list-item.mud-selected {
    background-color: #334155 !important;
    color: #F59E0B !important;
}

/* --- INFINITE MARQUEE TICKER FOR FILIALES LOGOS --- */
.filiales-marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 10px 0;
    mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}

.filiales-marquee-track {
    display: flex;
    align-items: center;
    gap: 20px;
    width: max-content;
    animation: filialesMarqueeScroll 30s linear infinite;
}

.filiales-marquee-track:hover {
    animation-play-state: paused;
}

@keyframes filialesMarqueeScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-33.333333%);
    }
}

.filiale-logo-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50px;
    padding: 5px 16px 5px 8px;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 0.8rem;
    white-space: nowrap;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    cursor: pointer;
}

.filiale-logo-badge.active-filiale {
    border-color: #F59E0B;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25) 0%, rgba(217, 119, 6, 0.3) 100%);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.filiale-logo-badge:hover {
    border-color: #F59E0B;
    background: rgba(245, 158, 11, 0.2);
    transform: translateY(-2px);
}

.filiale-logo-img {
    height: 30px;
    width: 30px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: #FFFFFF;
}

/* --- MOBILE RESPONSIVE ADAPTABILITY --- */
@media (max-width: 768px) {
    .hero-container {
        padding: 40px 14px 50px 14px !important;
    }
    .hero-badge {
        font-size: 0.7rem !important;
        padding: 4px 12px !important;
        margin-bottom: 16px !important;
    }
    .hero-title {
        font-size: 1.7rem !important;
        line-height: 1.25 !important;
        margin-bottom: 14px !important;
    }
    .hero-description {
        font-size: 0.925rem !important;
        line-height: 1.55 !important;
        margin-bottom: 22px !important;
    }
    .stats-bar-wrapper {
        margin-top: 35px !important;
        padding-top: 24px !important;
    }
    .stat-box {
        padding: 14px 6px !important;
        border-radius: 12px !important;
    }
    .stat-number {
        font-size: 1.35rem !important;
        white-space: nowrap !important;
    }
    .stat-icon {
        font-size: 1.35rem !important;
        margin-bottom: 4px !important;
    }
    .stat-label {
        font-size: 0.725rem !important;
        line-height: 1.2 !important;
    }
    .btn-cta-gold, .btn-cta-outline {
        padding: 8px 16px !important;
        font-size: 0.825rem !important;
        width: 100% !important;
        justify-content: center !important;
    }
    .top-bar {
        font-size: 0.75rem !important;
    }
}
