/* global-polishing-and-unification.css */

/* 1. STICKY GLASSMORPHISM NAVBAR & SHRINK RULES */
.navbar-wrapper {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 1320px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(11, 31, 58, 0.08);
    box-shadow: 0 10px 30px rgba(11, 31, 58, 0.08);
    border-radius: 24px;
    transition: all 300ms ease;
    padding: 14px 0;
    box-sizing: border-box;
}

.navbar-wrapper.shrink {
    top: 10px;
    padding: 8px 0;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(11, 31, 58, 0.12);
}

.navbar {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-cta {
    display: flex;
    align-items: center;
}

.brand-logo-img {
    max-height: 48px;
    width: auto;
    display: block;
    transition: max-height 300ms ease;
}

.navbar-wrapper.shrink .brand-logo-img {
    max-height: 38px;
}

/* Nav Menu Active styling */
.nav-menu a {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 14.5px;
    color: #4A5D78;
    text-decoration: none;
    transition: color 300ms ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #D4AF37;
}

/* Book service navbar CTA button styling */
.btn-book-service-trigger-global {
    background-color: #2563EB;
    color: #FFFFFF !important;
    border: none;
    border-radius: 10px;
    padding: 10px 22px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: background-color 300ms ease, transform 300ms ease;
}

.btn-book-service-trigger-global:hover {
    background-color: #1D4ED8;
    transform: translateY(-1px);
}

/* 2. PREMIUM SPLASH SCREEN */
#splashScreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #FFFFFF;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 500ms ease, visibility 500ms ease;
    opacity: 1;
    visibility: visible;
}

#splashScreen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.splash-logo-container {
    position: relative;
    text-align: center;
}

.splash-logo {
    max-height: 100px;
    width: auto;
    animation: splashZoom 1.5s ease-out forwards;
}

.splash-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.splash-progress-track {
    width: 200px;
    height: 3px;
    background-color: #EEF5FF;
    border-radius: 10px;
    margin-top: 30px;
    overflow: hidden;
}

.splash-progress-fill {
    height: 100%;
    background-color: #2563EB;
    width: 0;
    animation: splashProgress 1.6s ease-in-out forwards;
}

@keyframes splashZoom {
    0% { transform: scale(0.9); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes splashProgress {
    0% { width: 0; }
    100% { width: 100%; }
}

/* 3. PREMIUM BOOK SERVICE GLASS MODAL */
#bookServiceModal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(2, 8, 23, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 300ms ease;
    padding: 20px;
    box-sizing: border-box;
}

#bookServiceModal.active {
    opacity: 1;
    pointer-events: auto;
}

.book-modal-card {
    background-color: #FFFFFF;
    border: 1px solid rgba(11, 31, 58, 0.08);
    border-radius: 24px;
    width: 100%;
    max-width: 650px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-height: 90vh;
    box-sizing: border-box;
    transform: translateY(20px);
    transition: transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1);
}

#bookServiceModal.active .book-modal-card {
    transform: translateY(0);
}

.book-modal-header {
    background-color: #F8FAFF;
    border-bottom: 1px solid rgba(11, 31, 58, 0.05);
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.book-modal-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #0B1F3A;
    margin: 0;
}

.btn-close-modal {
    background: none;
    border: none;
    font-size: 28px;
    color: #8899A6;
    cursor: pointer;
    line-height: 1;
    transition: color 300ms ease;
}

.btn-close-modal:hover {
    color: #EA4335;
}

.book-modal-body {
    padding: 24px;
    overflow-y: auto;
    box-sizing: border-box;
}

/* Fields structures */
.modal-fields-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.modal-span-full {
    grid-column: span 2;
}

.modal-checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.modal-checkbox-input {
    width: 16px;
    height: 16px;
    accent-color: #2563EB;
}

.checkbox-label {
    font-size: 12.5px;
    color: #556987;
    font-weight: 500;
}

.modal-buttons-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.btn-modal-cancel {
    background-color: #F8FAFF;
    border: 1px solid rgba(11, 31, 58, 0.08);
    color: #4A5D78;
    border-radius: 10px;
    padding: 12px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 300ms ease;
}

.btn-modal-cancel:hover {
    background-color: #EEF2F6;
}

/* 4. SCROLL UTILITIES & SCROLL PROGRESS BAR */
#scrollProgressBar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background-color: #FFBC05;
    z-index: 10001;
    width: 0%;
    transition: width 100ms ease;
}

/* Back to Top button */
#btnBackToTop {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background-color: #0B1F3A;
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    z-index: 998;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    transition: opacity 300ms ease, visibility 300ms ease, transform 300ms ease, background-color 300ms ease;
}

#btnBackToTop.visible {
    opacity: 1;
    visibility: visible;
}

#btnBackToTop:hover {
    background-color: #2563EB;
    transform: translateY(-3px);
}

.backtop-icon {
    font-size: 16px;
    font-weight: bold;
}

/* Floating Mobile Action Buttons */
.mobile-sticky-cta-strip {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(11, 31, 58, 0.08);
    padding: 12px 20px;
    z-index: 999;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.05);
}

.mobile-cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.btn-mobile-call {
    background-color: #D4AF37;
    color: #0B1F3A;
    border: none;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.btn-mobile-book {
    background-color: #2563EB;
    color: #FFFFFF;
    border: none;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

/* 5. INVALID FIELD HIGHLIGHTS & ERROR LABELS */
.field-validation-invalid {
    border-color: #EA4335 !important;
    background-color: rgba(234, 67, 53, 0.02) !important;
}

.form-validation-error-label {
    display: block;
    margin-top: 4px;
    color: #EA4335;
    font-size: 11px;
    font-weight: 700;
}

/* 6. ACCESSIBILITY FOCUS INDICATORS */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #2563EB;
    outline-offset: 2px;
}

/* RESPONSIVE OPTIMIZATION LAYOUTS */
@media (max-width: 768px) {
    .mobile-sticky-cta-strip {
        display: block;
    }
    
    #btnBackToTop {
        bottom: 74px; /* offset to avoid overlap with sticky CTA */
    }
    
    .modal-fields-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-span-full {
        grid-column: span 1;
    }
}

@media (max-width: 1024px) {
    .navbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 24px;
    }
}
