@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700&display=swap');

:root {
    --primary: #002147; /* Assurex Navy Blue */
    --secondary: #223f61; /* Assurex Dark Blue for hover/backgrounds */
    --accent: #F19E1F;    /* Assurex Yellow */
    --light: #F8F9FA;
    --dark: #111111;
    --white: #ffffff;
    --text-grey: #666666;
}
html { scroll-behavior: smooth; }
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0; padding: 0;
    color: var(--dark);
    background-color: var(--light);
}

/* Top Contact Bar */
.top-bar {
    background: var(--accent);
    color: var(--primary);
    padding: 5px 5%;
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 600;
}
.top-bar a { color: var(--primary); text-decoration: none; margin-left: 15px; }
.top-bar i { margin-right: 5px; }

/* Navbar */
nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.5rem 5%; background: var(--white);
    position: sticky; width: 90%; top: 0; z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}
nav img.logo { 
    height: 50px; 
}
.nav-logo-text { color: var(--primary); transition: color 0.3s ease; }
nav ul { list-style: none; display: flex; gap: 1.5rem; align-items: center; }
nav a { text-decoration: none; color: var(--primary); font-weight: 600; transition: color 0.3s; font-size: 0.95rem; }
nav a:hover { color: var(--accent); }

/* Hamburger Menu Toggle */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

/* Scrolled Navbar Attributes */
nav.scrolled { background: #001630; box-shadow: 0 4px 15px rgba(0,0,0,0.3); }
nav.scrolled .nav-logo-text { color: var(--white); }
nav.scrolled ul li a { color: var(--white); }
nav.scrolled ul li a:hover { color: var(--accent); }
nav.scrolled .nav-enquiry-btn { color: var(--white) !important; background: var(--accent); }
nav.scrolled .nav-enquiry-btn:hover { background: #d98a1a; }

/* Hero Slider */
.slider-container { padding: 0; position: relative; overflow: hidden; height: 85vh; }
.slide { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; transition: opacity 1s ease-in-out;
    background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: flex-start;
    padding-left: 10%;
}
.slide.active { opacity: 1; z-index: 1; }
/* Dark overlay matching Assurex */
.slide::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 33, 71, 0.6); 
    z-index: -1;
}

.slide-content {
    max-width: 600px;
    z-index: 2;
}
.slide-content h1 { font-size: 4rem; color: var(--white); margin-bottom: 1rem; line-height: 1.2; }
.slide-content h1 span { color: var(--accent); }
.slide-content p { font-size: 1.25rem; margin-bottom: 2rem; color: rgba(255,255,255,0.9); }
.slider-nav { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 2;}
.dot { height: 12px; width: 12px; margin: 0 5px; background-color: rgba(255,255,255,0.4); border-radius: 50%; display: inline-block; cursor: pointer; transition: background-color 0.3s ease; }
.dot.active, .dot:hover { background-color: var(--accent); }

/* Hero Floating Badges */
.hero-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 20px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    z-index: 10;
    pointer-events: none;
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(5px);
}
.hero-badge i {
    width: 40px; height: 40px;
    background: var(--accent);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.hero-badge span {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
}

/* Individual Badge Positioning & Animations */
.badge-1 { top: 15%; right: 10%; animation: floatHero 5s ease-in-out infinite; }
.badge-2 { top: 40%; right: 5%; animation: floatHero 6s ease-in-out infinite reverse; }
.badge-3 { bottom: 25%; right: 15%; animation: floatHero 7s ease-in-out infinite 1s; }
.badge-4 { top: 25%; right: 30%; animation: floatHero 5.5s ease-in-out infinite 0.5s; }
.badge-5 { bottom: 15%; right: 35%; animation: floatHero 6.5s ease-in-out infinite 1.5s; }

@keyframes floatHero {
    0% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(10px, -15px) rotate(2deg); }
    66% { transform: translate(-10px, 10px) rotate(-2deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

@media (max-width: 1000px) {
    .hero-badge { display: none; } /* Hide on small screens to avoid clutter */
}

.btn {
    padding: 1rem 2rem; background: var(--accent); color: var(--white);
    text-decoration: none; border-radius: 30px; font-weight: 600; font-size: 1rem;
    transition: background 0.3s; border: none; cursor: pointer; display: inline-flex; align-items: center; gap: 10px;
}
.btn:hover { background: #d98a1a; }
.btn-outline {
    background: transparent; border: 2px solid var(--white); color: var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--primary); }

/* Enquiry Button Navbar */
.nav-enquiry-btn {
    background: var(--accent);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 25px;
}
.nav-enquiry-btn:hover { background: #d98a1a; color: white !important;}

/* Sections */
section { padding: 2rem 5%; }
.section-title { text-align: center; font-size: 2.8rem; color: var(--primary); margin-bottom: 1rem; font-weight: 700; }
.section-subtitle { text-align: center; font-size: 1.1rem; color: var(--text-grey); margin-bottom: 3rem; }

/* About (Dribbble Refactor) */
.about { background: #e9ecef; text-align: left; overflow: hidden; }
.about-pill {
    background: #e2e8f0; color: var(--text-grey); font-weight: 600; font-size: 0.85rem;
    padding: 8px 15px; border-radius: 20px; display: inline-block; margin-bottom: 2rem;
}
.about-header {
    max-width: 900px; margin-bottom: 4rem;
}
.about-header h2 {
    font-size: 3.5rem; color: var(--primary); font-weight: 800; line-height: 1.2; margin: 0;
}
.about-header h2 span {
    color: #b0bfc6; font-weight: 600;
}
.about-visual-split {
    display: flex; position: relative; max-width: 1200px; margin: 0 auto; min-height: 600px;
}
.about-main-img {
    width: 75%; height: 600px; object-fit: cover; border-radius: 30px;
}
.about-floating-card {
    position: absolute; right: 0; top: 50px; width: 35%;
    background: var(--white); border-radius: 20px; padding: 3rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1); z-index: 5;
}
.about-floating-card h3 {
    font-size: 1.8rem; color: var(--primary); margin-bottom: 1rem; line-height: 1.3;
}
.about-floating-card > p {
    color: var(--text-grey); font-size: 0.95rem; line-height: 1.6; margin-bottom: 2rem;
}
.about-floating-card .btn-outline {
    color: var(--primary); border: 2px solid #e0e0e0; margin-bottom: 2.5rem;
}
.about-floating-card .btn-outline:hover {
    background: var(--primary); color: white; border-color: var(--primary);
}
.about-feature-list { list-style: none; padding: 0; margin: 0; }
.about-feature-item { display: flex; margin-bottom: 1.5rem; }
.about-feature-num { 
    font-size: 1.2rem; font-weight: 700; color: var(--accent); margin-right: 15px; 
}
.about-feature-text h4 { margin: 0 0 5px 0; color: var(--primary); font-size: 1rem; }
.about-feature-text p { margin: 0; font-size: 0.85rem; color: var(--text-grey); line-height: 1.5;}

/* Floating Animated Stamps */
.about-stamp {
    position: absolute; background: var(--white); padding: 15px 25px; border-radius: 15px;
    display: flex; align-items: center; gap: 15px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); z-index: 10;
    animation: floatUpDown 4s ease-in-out infinite; border: 1px solid rgba(0,0,0,0.02);
}
.about-stamp.stamp-left { bottom: 80px; left: -100px; }
.about-stamp.stamp-right { top: -20px; right: -50px; left: auto; animation-delay: 2s; z-index: 20; }
.stamp-icon {
    width: 55px; height: 55px; border-radius: 50%; background: rgba(241,158,31,0.15);
    color: var(--accent); display: flex; justify-content: center; align-items: center; font-size: 1.5rem;
}
.stamp-text h4 { margin: 0; font-size: 1.4rem; color: var(--primary); font-weight: 800; }
.stamp-text p { margin: 0; font-size: 0.85rem; color: var(--text-grey); font-weight: 600; }
@keyframes floatUpDown {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@media (max-width: 1000px) {
    .about-header h2 { font-size: 2.5rem; }
    .about-visual-split { flex-direction: column; min-height: auto; }
    .about-main-img { width: 100%; height: 400px; }
    .about-floating-card { position: relative; width: 90%; margin: -100px auto 0; top: 0; padding: 2rem; }
    .about-stamp.stamp-left { left: 10px; bottom: 150px; padding: 10px 15px; }
    .about-stamp.stamp-right { left: auto; right: 10px; top: 20px; padding: 10px 15px; }
    .stamp-text h4 { font-size: 1.1rem; }
    .stamp-icon { width: 40px; height: 40px; font-size: 1.2rem; }
}

/* Services */
#services { background: var(--white); border-top: 1px solid #eaeaea; }
.services-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; max-width: 1400px; margin: 0 auto;
}
@media (max-width: 1200px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; } .about-flex {flex-direction: column;} }
.service-card {
    background: var(--white); border-radius: 20px; padding: 2.5rem 2rem; text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06); transition: transform 0.3s, box-shadow 0.3s;
    display: flex; flex-direction: column; align-items: center; border: 1px solid rgba(0,0,0,0.03);
}
.service-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.12); border-color: rgba(241,158,31,0.3);}
.service-icon-wrap {
    background: rgba(241, 158, 31, 0.15); /* Pale yellow circle */
    width: 80px; height: 80px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.5rem;
}
.service-icon-wrap i { font-size: 30px; color: var(--primary); }
.service-card h3 { color: var(--primary); margin-bottom: 1rem; font-size: 1.3rem; font-weight: 700;}
.service-card p { color: var(--text-grey); font-size: 0.95rem; line-height: 1.6; margin-bottom: 1.5rem; flex-grow: 1;}
.service-link { color: var(--accent); font-weight: 600; text-decoration: none; font-size: 0.95rem; display: inline-flex; align-items: center; gap: 5px; transition: color 0.3s;}
.service-link:hover { color: var(--primary); }

/* Enquiry Wizard Redesign */
#enquiry { 
    background: #fdfdfd; 
    padding: 6rem 5%; 
    position: relative;
    background-image: 
        linear-gradient(rgba(0,0,0,0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.015) 1px, transparent 1px);
    background-size: 40px 40px;
}
.wizard-container {
    max-width: 1000px; margin: 0 auto; display: flex;
    background: var(--white); border-radius: 30px; overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1); border: 1px solid #f0f0f0;
}
.wizard-sidebar {
    width: 35%; background: var(--primary); padding: 4rem 3rem; color: white;
    display: flex; flex-direction: column; justify-content: space-between;
    position: relative; overflow: hidden;
}
.wizard-sidebar::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0, rgba(255,255,255,0.03) 1px, transparent 0, transparent 50%);
    background-size: 15px 15px;
    z-index: 0;
}
.sidebar-bg-icon {
    position: absolute; top: 10%; right: -20px; font-size: 10rem;
    color: rgba(255,255,255,0.03); z-index: 0; transform: rotate(-15deg);
}
.sidebar-top, .sidebar-stamps { position: relative; z-index: 1; }
.sidebar-top h3 { font-size: 2.2rem; margin-bottom: 1.5rem; line-height: 1.2; font-weight: 800; color: white; }
.sidebar-top p { font-size: 0.95rem; color: rgba(255,255,255,0.7); line-height: 1.6; }

.sidebar-stamps { display: flex; flex-direction: column; gap: 1rem; }
.mini-stamp {
    background: rgba(255,255,255,0.1); padding: 12px 15px; border-radius: 12px;
    display: flex; align-items: center; gap: 10px; border: 1px solid rgba(255,255,255,0.1);
}
.mini-stamp i { color: var(--accent); }
.mini-stamp span { font-size: 0.85rem; font-weight: 600; }

.wizard-form-area { flex: 1; padding: 4rem; position: relative; background: white; overflow: hidden; }
.wizard-bg-icon {
    position: absolute;
    color: rgba(0, 0, 0, 0.07); /* Slightly darker gray and more opaque */
    z-index: 0;
    pointer-events: none;
    line-height: 1;
}
.bg-icon-1 { top: -30px; left: -30px; font-size: 10rem; transform: rotate(-15deg); }
.bg-icon-2 { bottom: -40px; right: -30px; font-size: 12rem; transform: rotate(15deg); }
.bg-icon-3 { top: 45%; left: -40px; font-size: 8rem; transform: rotate(25deg); }
.bg-icon-4 { top: 15%; right: -50px; font-size: 9rem; transform: rotate(-10deg); }

.wizard-progress, .wizard-step, #enquiryForm { position: relative; z-index: 1; }
.wizard-progress {
    display: flex; justify-content: space-between; margin-bottom: 3rem;
    position: relative; padding-bottom: 15px; border-bottom: 1px solid #eee;
}
.progress-step {
    font-size: 0.9rem; font-weight: 700; color: #ccc; position: relative;
}
.progress-step.active { color: var(--primary); }
.progress-step.active::after {
    content: ''; position: absolute; bottom: -16px; left: 0; width: 100%; height: 3px; background: var(--accent);
}

.wizard-step { display: none; }
.wizard-step.active { display: block; animation: fadeInForm 0.4s ease-in-out; }
@keyframes fadeInForm { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

.wizard-step h3 { font-size: 1.8rem; color: var(--primary); margin-bottom: 2rem; font-weight: 700; }

.form-group { margin-bottom: 1.5rem; }
.form-input {
    width: 100%; box-sizing: border-box; padding: 1.2rem;
    border: none; border-bottom: 2px solid #eee; font-family: 'Montserrat';
    font-size: 1rem; transition: all 0.3s; background: #fafafa; border-radius: 8px 8px 0 0;
}
.form-input:focus { outline: none; border-color: var(--accent); background: #fff; }

.step-buttons { display: flex; gap: 1rem; margin-top: 3rem; }
.step-buttons .btn { flex: 1; justify-content: center; display: flex; align-items: center; }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }

.file-label {
    display: block; padding: 1.5rem; border: 2px dashed #ddd; text-align: center;
    border-radius: 12px; cursor: pointer; color: var(--text-grey); transition: 0.3s;
}
.file-label:hover { border-color: var(--accent); color: var(--primary); background: #fffdf9; }

@media (max-width: 900px) {
    .wizard-container { flex-direction: column; }
    .wizard-sidebar { width: 100%; padding: 3rem; }
    .wizard-form-area { padding: 3rem 2rem; }
}

/* Service Tags Marquee */
.service-tags-wrapper {
    overflow: hidden; white-space: nowrap; width: 100%; position: relative;
    padding: 3rem 0; margin-top: 4rem; border-top: 1px solid #eaeaea;
}
.service-tags-track {
    display: inline-flex; gap: 1.5rem; animation: marqueeScroll 40s linear infinite;
}
.service-tags-wrapper:hover .service-tags-track {
    animation-play-state: paused;
}
.service-tag {
    background: #e2e8f0; color: var(--text-grey); font-weight: 600; font-size: 0.95rem;
    padding: 8px 25px 8px 10px; border-radius: 30px; display: inline-flex; align-items: center; gap: 12px;
    cursor: default; transition: background 0.3s ease, color 0.3s ease; box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}
.service-tag:hover {
    background: var(--primary); color: var(--white);
}
.tag-icon {
    width: 32px; height: 32px; border-radius: 50%; background: rgba(241,158,31,0.15);
    color: var(--accent); display: flex; justify-content: center; align-items: center; font-size: 0.9rem;
    transition: background 0.3s ease, color 0.3s ease;
}
.service-tag:hover .tag-icon {
    background: rgba(255,255,255,0.2); color: var(--white);
}
@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}

/* Testimonials */
.testimonials { background: var(--primary); color: var(--white); }
.testimonials .section-title { color: var(--white); }
.testimonials .section-subtitle { color: rgba(255,255,255,0.7); }
.slider-wrapper { overflow: hidden; max-width: 100%; margin: 0 auto; position: relative; padding-bottom: 10px; }
.test-grid { display: flex; gap: 2rem; transition: transform 0.6s ease-in-out; }
.test-card { 
    flex: 0 0 calc(33.333% - 1.35rem); 
    background: var(--secondary); padding: 2.5rem; border-radius: 20px; text-align: left; position: relative;
}
@media (max-width: 900px) { .test-card { flex: 0 0 calc(50% - 1rem); } }
@media (max-width: 600px) { .test-card { flex: 0 0 100%; } }
.test-card img { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; margin-right: 15px;}
.test-header { display: flex; align-items: center; margin-bottom: 1.5rem; }
.test-card p { font-style: italic; margin-bottom: 1rem; color: rgba(255,255,255,0.9); line-height: 1.7;}
.stars { color: var(--accent); margin-bottom: 10px; font-size: 0.9rem; }
.quote-icon { position: absolute; top: 20px; right: 30px; font-size: 3rem; color: rgba(241,158,31,0.2); }

/* Footer */
footer { background: #001630; color: var(--white); padding: 4rem 5% 2rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 3rem; margin-bottom: 3rem; }
.footer-col h4 { color: var(--accent); font-size: 1.2rem; margin-bottom: 1.5rem; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 0.8rem; }
.footer-col a { color: rgba(255,255,255,0.7); text-decoration: none; transition: color 0.3s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.5); font-size: 0.9rem; }

/* WhatsApp Floating Icon */
.whatsapp-float {
    position: fixed; bottom: 30px; right: 30px;
    background: #25d366; color: white; width: 60px; height: 60px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 35px; box-shadow: 0 4px 15px rgba(37,211,102,0.4); z-index: 100;
    transition: transform 0.3s; text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.1); color: white; }

/* Responsive Media Queries */
@media (max-width: 991px) {
    .top-bar { display: none; } /* Hide top bar on mobile */
    
    nav { width: 92%; padding: 0.8rem 4%; position: fixed; top: 0; left: 0; right: 0; }
    .nav-logo-text { font-size: 1.4rem !important; }
    
    .menu-toggle { display: block; }
    
    .nav-links {
        position: fixed;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        height: calc(100vh - 70px);
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        padding: 2rem 0;
        gap: 1.5rem !important;
        align-items: center !important;
        z-index: 1000;
        display: none;
    }
    
    .nav-links.active {
        display: flex;
        right: 0;
    }

    nav.scrolled .menu-toggle { color: var(--white); }
}

@media (max-width: 768px) {
    .section-title { font-size: 2rem; }
    .slide-content h1 { font-size: 2.5rem; }
    .slide-content p { font-size: 1rem; }
    .slider-container { height: 70vh; }
    section { padding: 3rem 5%; }
    
    .about-header h2 { font-size: 1.8rem; }
    .about-floating-card { padding: 1.5rem; width: 95%; margin-top: -50px; }
    .about-main-img { height: 350px; }
    
    .wizard-sidebar { padding: 2rem; }
    .wizard-form-area { padding: 2rem 1.5rem; }
    .wizard-step h3 { font-size: 1.5rem; }
    
    .step-buttons { flex-direction: column; }
    .step-buttons .btn { width: 100%; }
    
    footer h2 { font-size: 1.4rem !important; }
}

@media (max-width: 480px) {
    .slide-content h1 { font-size: 2rem; }
    .btn { padding: 0.8rem 1.5rem; font-size: 0.9rem; }
    .about-main-img { height: 250px; }
    .nav-logo-text span { display: block; font-size: 0.9rem; }
}

