/* Main Styles for Abacus Facilities Services Website */
/* Modernised Design - 2025 */

:root {
    /* Primary brand colors */
    --primary: #0088ab;
    --primary-dark: #006b88;
    --primary-light: #00a8d4;
    --primary-rgb: 0, 136, 171;
    --secondary: #f0ad4e;
    --secondary-dark: #e09b3d;
    --accent: #10b981;
    --light: #f8fafc;
    --dark: #1e293b;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --white: #ffffff;
    --black: #0f172a;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    --gradient-hero: linear-gradient(135deg, rgba(0, 136, 171, 0.95) 0%, rgba(0, 107, 136, 0.9) 100%);
    --gradient-dark: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    --shadow-glow: 0 0 40px rgba(var(--primary-rgb), 0.15);
    
    /* Border radius */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Font families */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-headers: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

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

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--dark);
    overflow-x: hidden;
    padding-top: 80px;
    line-height: 1.7;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headers);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--black);
    line-height: 1.3;
    letter-spacing: -0.02em;
}

p {
    color: var(--gray);
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* Modern Button Styles */
.btn {
    border-radius: var(--radius-full);
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--gradient-primary);
    border-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.4);
    background: var(--gradient-primary);
    border-color: var(--primary);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--gradient-primary);
    border-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.3);
}

.btn-outline-light {
    border-color: rgba(255,255,255,0.6);
    color: var(--white);
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

.btn-outline-light:hover {
    background: var(--white);
    border-color: var(--white);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-light {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
    box-shadow: var(--shadow);
}

.btn-light:hover {
    background: var(--light);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-lg {
    padding: 1rem 2.25rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
}

/* Section Title Styles */
.section-title {
    margin-bottom: 3.5rem;
}

.section-title h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
    font-weight: 800;
    font-size: 2.5rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -12px;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

.section-title p {
    font-size: 1.125rem;
    color: var(--gray);
    max-width: 600px;
    margin: 1.5rem auto 0;
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: none;
    padding: 1rem 1.5rem;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar.navbar-scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    padding: 0.75rem 1.5rem;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--dark);
    font-weight: 500;
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    border-radius: var(--radius);
    transition: var(--transition);
    position: relative;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.08);
}

.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

.logo {
    height: 48px;
    width: auto;
    transition: var(--transition);
}

.navbar.navbar-scrolled .logo {
    height: 42px;
}

/* Hero Banner */
.hero {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 100%), 
                url('../images/herobannernew.png') center/cover no-repeat;
    min-height: 85vh;
    display: flex;
    align-items: center;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top, var(--white), transparent);
    pointer-events: none;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--white);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.hero .tagline {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    max-width: 600px;
}

.hero .btn {
    margin-right: 1rem;
    margin-bottom: 1rem;
}

/* Services Overview */
.services-overview {
    padding: 6rem 0;
    background: var(--white);
}

.service-card {
    padding: 2.5rem 2rem;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-xl);
    height: 100%;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card .icon-container {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1) 0%, rgba(var(--primary-rgb), 0.05) 100%);
    border-radius: var(--radius-lg);
    margin: 0 auto 1.5rem;
    font-size: 1.75rem;
    color: var(--primary);
    transition: var(--transition);
}

.service-card:hover .icon-container {
    background: var(--gradient-primary);
    color: var(--white);
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Trust Signals */
.trust-signals {
    background: linear-gradient(180deg, var(--light) 0%, var(--white) 100%);
    padding: 5rem 0;
}

.trust-card {
    padding: 2rem;
    text-align: center;
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

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

.trust-card .icon-container {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--white);
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.3);
}

.trust-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.trust-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Testimonials */
.testimonial-featured {
    padding: 6rem 0;
    background: var(--white);
}

.testimonial-card {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-primary);
    border-radius: var(--radius-2xl);
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

.testimonial-card:hover::before {
    opacity: 1;
}

.testimonial-card .quote-icon {
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.3;
    margin-bottom: 1rem;
}

.testimonial-card .testimonial-text {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 2rem;
    color: var(--dark);
    line-height: 1.8;
}

.testimonial-card .client-info h5 {
    margin-bottom: 0.25rem;
    font-weight: 700;
    color: var(--black);
}

.testimonial-card .client-info p {
    color: var(--gray);
    font-size: 0.9rem;
}

.testimonial-card .rating {
    color: var(--secondary);
    margin-top: 0.75rem;
    font-size: 1.1rem;
}

/* Contact Panel */
.contact-panel {
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.contact-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
}

.contact-panel::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-full);
}

.contact-panel h2 {
    color: var(--white);
    font-weight: 800;
}

.contact-panel p {
    color: rgba(255, 255, 255, 0.9);
}

/* Footer */
.footer {
    background: var(--gradient-dark);
    color: var(--white);
    padding-top: 5rem;
    padding-bottom: 2rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.footer-logo {
    height: 55px;
    width: auto;
    margin-bottom: 1.5rem;
}

.footer h5 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    list-style: none;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

footer hr {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 3rem 0 2rem;
}

.footer .small {
    color: rgba(255, 255, 255, 0.5);
}

.footer .small a {
    color: rgba(255, 255, 255, 0.7);
}

.footer .small a:hover {
    color: var(--white);
}

/* Page Header */
.page-header {
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
}

.page-header h1 {
    color: var(--white);
    font-weight: 800;
}

.page-header .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
}

.page-header .breadcrumb-item a:hover {
    color: var(--white);
}

/* About Page Styles */
.about-section {
    padding: 5rem 0;
}

.about-image {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.value-card {
    padding: 2rem;
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.value-card .icon-container {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: var(--white);
}

.team-member {
    margin-bottom: 2rem;
    text-align: center;
}

.team-member img,
.team-member .placeholder-image {
    border-radius: var(--radius-full);
    width: 180px;
    height: 180px;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-md);
    border: 4px solid var(--white);
}

/* Services Pages */
.service-detail {
    padding: 5rem 0;
}

.service-detail .service-image {
    height: 300px;
    object-fit: cover;
    margin-bottom: 2rem;
    border-radius: var(--radius-xl);
}

/* Service Tabs */
#servicesTab {
    margin-bottom: 3rem;
    gap: 0.5rem;
    flex-wrap: wrap;
}

#servicesTab .nav-link {
    border-radius: var(--radius-full);
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    color: var(--dark);
    background: var(--light);
    border: none;
    transition: var(--transition);
}

#servicesTab .nav-link:hover {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
}

#servicesTab .nav-link.active {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.35);
}

/* Service Process Step Icons */
.step-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    margin: 0 auto 1.25rem;
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.3);
}

.process-step {
    padding: 2rem 1.5rem;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.process-step:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.process-step h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.process-step p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Projects Gallery */
.project-card {
    margin-bottom: 2rem;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: none;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.project-card img {
    height: 250px;
    object-fit: cover;
    width: 100%;
    transition: var(--transition);
}

.project-card:hover img {
    transform: scale(1.05);
}

.project-card .card-body {
    padding: 1.75rem;
}

/* Testimonials Page */
.testimonials-list .testimonial-card {
    margin-bottom: 2rem;
}

/* Contact Page */
.contact-details {
    margin-bottom: 2rem;
}

.contact-details i {
    color: var(--primary);
    font-size: 1.5rem;
    margin-right: 1rem;
}

.map-container {
    height: 400px;
    margin-bottom: 2rem;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* Forms */
.form-control,
.form-select {
    border-radius: var(--radius-md);
    padding: 0.875rem 1rem;
    border: 2px solid rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    font-size: 1rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.1);
}

.form-label {
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

/* Client Login */
.login-form {
    max-width: 500px;
    margin: 0 auto;
    padding: 3rem;
    background-color: var(--white);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-2xl);
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
}

.cta-section h2 {
    font-weight: 800;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Placeholder styling */
.placeholder-image {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    font-weight: 500;
    text-align: center;
    padding: 2rem;
    border-radius: var(--radius-lg);
}

/* Media Queries */
@media (max-width: 992px) {
    .hero {
        min-height: 70vh;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .tagline {
        font-size: 1.15rem;
        margin-left: auto;
        margin-right: auto;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    #servicesTab {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    .navbar {
        padding: 0.75rem 1rem;
    }
    
    .navbar-light .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
    }
    
    .hero {
        min-height: auto;
        padding: 5rem 0 6rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-title h2 {
        font-size: 1.75rem;
    }
    
    .testimonial-card {
        padding: 2rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    .services-overview,
    .testimonial-featured {
        padding: 4rem 0;
    }
    
    #servicesTab .nav-link {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .hero .btn {
        display: block;
        width: 100%;
        margin-right: 0;
    }
    
    .hero .btn + .btn {
        margin-top: 0.75rem;
    }
    
    .contact-panel .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
}

/* Utility Classes */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: var(--gradient-primary);
}

.shadow-glow {
    box-shadow: var(--shadow-glow);
}
