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

:root {
    --5pw-primary: #0369a1;
    --5pw-secondary: #075985;
    --5pw-accent: #d97706;
    --5pw-background: #f0f9ff;
    --5pw-text: #0c4a6e;
    --5pw-muted: #7dd3fc;
    --5pw-white: #ffffff;
    --5pw-dark: #1a202c;
    --5pw-shadow: rgba(3, 105, 161, 0.1);
    --5pw-border-radius: 8px;
    --5pw-transition-speed: 0.3s ease;

    --bl-font-heading: 'Work Sans', sans-serif;
    --bl-font-body: 'Merriweather', serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--bl-font-body);
    line-height: 1.6;
    color: var(--5pw-text);
    background-color: var(--5pw-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::-moz-selection {
    background-color: var(--5pw-accent);
    color: var(--5pw-white);
}

::selection {
    background-color: var(--5pw-accent);
    color: var(--5pw-white);
}

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

a:hover {
    color: var(--5pw-accent);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography Scale */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--bl-font-heading);
    color: var(--5pw-dark);
    line-height: 1.2;
    margin-bottom: 0.8em;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

h2 {
    font-size: 2.8rem;
    font-weight: 700;
}

h3 {
    font-size: 2.2rem;
    font-weight: 600;
}

h4 {
    font-size: 1.8rem;
    font-weight: 600;
}

h5 {
    font-size: 1.4rem;
    font-weight: 500;
}

h6 {
    font-size: 1.1rem;
    font-weight: 500;
}

p {
    margin-bottom: 1em;
}

/* Utility Classes */
.bl-container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.bl-grid {
    display: grid;
    gap: 1.5rem;
}

.bl-flex {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.bl-text-center {
    text-align: center;
}

.bl-section-padding {
    padding: 80px 0;
}

.bl-section-padding-small {
    padding: 40px 0;
}

.bl-bg-primary {
    background-color: var(--5pw-primary);
    color: var(--5pw-white);
}

.bl-bg-secondary {
    background-color: var(--5pw-secondary);
    color: var(--5pw-white);
}

.bl-bg-muted {
    background-color: var(--5pw-muted);
}

.bl-text-primary {
    color: var(--5pw-primary);
}

.bl-text-accent {
    color: var(--5pw-accent);
}

/* Buttons */
.bl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.8rem;
    font-family: var(--bl-font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: var(--5pw-border-radius);
    cursor: pointer;
    transition: all var(--5pw-transition-speed);
    border: 2px solid transparent;
    white-space: nowrap;
    text-align: center;
}

.bl-btn-primary {
    background-color: var(--5pw-primary);
    color: var(--5pw-white);
    border-color: var(--5pw-primary);
}

.bl-btn-primary:hover {
    background-color: var(--5pw-secondary);
    border-color: var(--5pw-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.bl-btn-secondary {
    background-color: var(--5pw-accent);
    color: var(--5pw-white);
    border-color: var(--5pw-accent);
}

.bl-btn-secondary:hover {
    background-color: darken(var(--5pw-accent), 10%);
    border-color: darken(var(--5pw-accent), 10%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

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

.bl-btn-outline:hover {
    background-color: var(--5pw-primary);
    color: var(--5pw-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Gradient Shimmer Button (CTA Style) */
.bl-btn-gradient-shimmer {
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, var(--5pw-primary) 0%, var(--5pw-secondary) 100%);
    color: var(--5pw-white);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.bl-btn-gradient-shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    transform: skewX(-20deg);
    transition: all 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.bl-btn-gradient-shimmer:hover::before {
    left: 125%;
}

.bl-btn-gradient-shimmer:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* Header & Navigation */
.bl-header {
    background-color: var(--5pw-dark);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.bl-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bl-logo {
    font-family: var(--bl-font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--5pw-white);
    letter-spacing: -0.05em;
}

.bl-logo span {
    color: var(--5pw-accent);
}

.bl-nav-menu {
    display: flex;
    list-style: none;
}

.bl-nav-item {
    margin-left: 2.5rem;
    position: relative;
}

.bl-nav-link {
    color: var(--5pw-white);
    font-family: var(--bl-font-heading);
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 0;
    position: relative;
}

.bl-nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--5pw-accent);
    transition: width var(--5pw-transition-speed);
}

.bl-nav-link:hover::after, .bl-nav-link.active::after {
    width: 100%;
}

/* Mega Dropdown */
.bl-mega-dropdown {
    position: absolute;
    left: -50%; /* Adjust as needed */
    top: 100%;
    background-color: var(--5pw-dark);
    padding: 1.5rem;
    min-width: 600px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    border-radius: var(--5pw-border-radius);
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity var(--5pw-transition-speed), transform var(--5pw-transition-speed);
    pointer-events: none;
}

.bl-nav-item:hover .bl-mega-dropdown {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.bl-mega-dropdown h3 {
    color: var(--5pw-accent);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 0.5rem;
}

.bl-mega-dropdown ul {
    list-style: none;
}

.bl-mega-dropdown li {
    margin-bottom: 0.7rem;
}

.bl-mega-dropdown a {
    color: var(--5pw-muted);
    font-size: 0.95rem;
    transition: color var(--5pw-transition-speed);
}

.bl-mega-dropdown a:hover {
    color: var(--5pw-white);
}

.bl-hamburger {
    display: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.bl-hamburger-line {
    width: 25px;
    height: 3px;
    background-color: var(--5pw-white);
    margin: 5px 0;
    transition: all var(--5pw-transition-speed);
}

/* Mobile Menu */
.bl-mobile-nav {
    position: fixed;
    top: 0;
    right: -300px; /* Hidden off-screen */
    width: 300px;
    height: 100%;
    background-color: var(--5pw-dark);
    box-shadow: -5px 0 15px rgba(0,0,0,0.3);
    padding-top: 5rem;
    transition: right var(--5pw-transition-speed);
    z-index: 999;
}

.bl-mobile-nav.bl-open {
    right: 0;
}

.bl-mobile-nav-list {
    list-style: none;
    padding: 0 1.5rem;
}

.bl-mobile-nav-list li {
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 1rem;
}

.bl-mobile-nav-list a {
    color: var(--5pw-white);
    font-family: var(--bl-font-heading);
    font-size: 1.2rem;
    display: block;
    transition: color var(--5pw-transition-speed);
}

.bl-mobile-nav-list a:hover {
    color: var(--5pw-accent);
}

/* Hero Section */
.bl-hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    color: var(--5pw-white);
    text-align: left;
    overflow: hidden;
}

.bl-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(7, 89, 133, 0.9) 0%, rgba(3, 105, 161, 0.7) 50%, rgba(3, 105, 161, 0.5) 100%);
    z-index: 1;
}

.bl-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.bl-hero h1 {
    font-size: 4.5rem;
    color: var(--5pw-white);
    margin-bottom: 1rem;
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.bl-hero p {
    font-size: 1.5rem;
    line-height: 1.5;
    margin-bottom: 2rem;
    color: var(--5pw-muted);
    font-family: var(--bl-font-body);
}

.bl-hero-buttons .bl-btn {
    margin-right: 1.5rem;
}

.bl-hero-stats {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 2rem;
    border-radius: var(--5pw-border-radius);
}

.bl-hero-stats-item {
    margin-bottom: 1.5rem;
}

.bl-hero-stats-item:last-child {
    margin-bottom: 0;
}

.bl-hero-stats-item h3 {
    font-size: 3rem;
    color: var(--5pw-accent);
    margin-bottom: 0.2rem;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.bl-hero-stats-item p {
    font-size: 1.1rem;
    color: var(--5pw-white);
    margin-bottom: 0;
}

/* Section spacing and backgrounds */
section:nth-of-type(even) {
    background-color: var(--5pw-background);
}

section:nth-of-type(odd) {
    background-color: var(--5pw-white);
}

.bl-section-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    color: var(--5pw-primary);
}

.bl-section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 60px;
    height: 4px;
    background-color: var(--5pw-accent);
    border-radius: 2px;
}

.bl-section-subtitle {
    font-size: 1.3rem;
    color: var(--5pw-dark);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Card Components */
.bl-card {
    background-color: var(--5pw-white);
    border-radius: var(--5pw-border-radius);
    box-shadow: 0 4px 15px var(--5pw-shadow);
    overflow: hidden;
    transition: transform var(--5pw-transition-speed), box-shadow var(--5pw-transition-speed);
}

.bl-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(3, 105, 161, 0.25);
}

.bl-card-img-top {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.bl-card-body {
    padding: 1.5rem;
}

.bl-card-title {
    font-family: var(--bl-font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--5pw-primary);
}

.bl-card-text {
    font-size: 0.95rem;
    color: var(--5pw-text);
    margin-bottom: 1.2rem;
}

/* Form Styling */
.bl-form-group {
    margin-bottom: 1.5rem;
}

.bl-form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--5pw-dark);
    font-family: var(--bl-font-heading);
}

.bl-form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--5pw-muted);
    border-radius: var(--5pw-border-radius);
    font-family: var(--bl-font-body);
    font-size: 1rem;
    color: var(--5pw-text);
    transition: border-color var(--5pw-transition-speed), box-shadow var(--5pw-transition-speed);
}

.bl-form-control:focus {
    outline: none;
    border-color: var(--5pw-primary);
    box-shadow: 0 0 0 3px rgba(3, 105, 161, 0.2);
}

textarea.bl-form-control {
    min-height: 120px;
    resize: vertical;
}

.bl-form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--5pw-border-radius);
    font-weight: 500;
}

.bl-form-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.bl-form-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Trust/Badge Elements */
.bl-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background-color: var(--5pw-background);
    border: 1px solid var(--5pw-muted);
    border-radius: 50px;
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--5pw-dark);
    transition: background-color var(--5pw-transition-speed), transform var(--5pw-transition-speed);
}

.bl-trust-item:hover {
    background-color: var(--5pw-white);
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.bl-trust-item i {
    color: var(--5pw-primary);
    font-size: 1.5rem;
}

/* FAQ Accordion */
.bl-faq-item {
    background-color: var(--5pw-white);
    margin-bottom: 1rem;
    border-radius: var(--5pw-border-radius);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    overflow: hidden;
    border: 1px solid var(--5pw-muted);
}

.bl-faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--5pw-dark);
    background-color: var(--5pw-background);
    transition: background-color var(--5pw-transition-speed);
}

.bl-faq-q:hover {
    background-color: var(--5pw-muted);
}

.bl-faq-q i {
    transition: transform var(--5pw-transition-speed);
    color: var(--5pw-primary);
    font-size: 1.2rem;
}

.bl-faq-item.active .bl-faq-q i {
    transform: rotate(180deg);
}

.bl-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--5pw-transition-speed);
    padding: 0 1.5rem;
}

.bl-faq-item.active .bl-faq-a {
    max-height: 500px; /* Sufficiently large value */
    padding: 1rem 1.5rem 1.5rem;
}

/* Testimonials */
.bl-testimonial-card {
    background-color: var(--5pw-white);
    padding: 2rem;
    border-radius: var(--5pw-border-radius);
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    position: relative;
    border-top: 5px solid var(--5pw-primary);
}

.bl-testimonial-card i {
    font-size: 3rem;
    color: var(--5pw-accent);
    margin-bottom: 1rem;
}

.bl-testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--5pw-dark);
    font-size: 1.1rem;
}

.bl-testimonial-author {
    font-weight: 700;
    color: var(--5pw-primary);
    margin-bottom: 0.2rem;
}

.bl-testimonial-role {
    font-size: 0.9rem;
    color: var(--5pw-text);
}

/* Footer */
.bl-footer {
    background-color: var(--5pw-dark);
    color: var(--5pw-white);
    padding: 4rem 0 2rem;
    font-size: 0.95rem;
}

.bl-footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 2rem;
}

.bl-footer-brand h4 {
    color: var(--5pw-accent);
    margin-bottom: 1rem;
}

.bl-footer-brand p {
    color: var(--5pw-muted);
    margin-bottom: 1.5rem;
}

.bl-footer-cta h3 {
    color: var(--5pw-white);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.bl-footer-list {
    list-style: none;
}

.bl-footer-list li {
    margin-bottom: 0.8rem;
}

.bl-footer-list a {
    color: var(--5pw-muted);
    transition: color var(--5pw-transition-speed);
}

.bl-footer-list a:hover {
    color: var(--5pw-white);
}

.bl-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 3rem;
    padding-top: 2rem;
    text-align: center;
    color: var(--5pw-muted);
}

/* Animations */
.bl-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.bl-animate.bl-animated {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .bl-nav-menu {
        display: none;
    }

    .bl-hamburger {
        display: block;
    }

    .bl-hero h1 {
        font-size: 3.5rem;
    }

    .bl-hero p {
        font-size: 1.2rem;
    }

    .bl-hero-stats {
        position: static;
        transform: none;
        margin-top: 2rem;
        background-color: rgba(0, 0, 0, 0.7);
    }

    .bl-footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .bl-footer-brand, .bl-footer-cta {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.8rem;
    }
    h2 {
        font-size: 2.2rem;
    }
    h3 {
        font-size: 1.8rem;
    }

    .bl-section-padding {
        padding: 48px 0;
    }

    .bl-hero::before {
        background: linear-gradient(0deg, rgba(7, 89, 133, 0.9) 0%, rgba(3, 105, 161, 0.7) 100%);
    }

    .bl-hero-content {
        text-align: center;
        padding: 0 1rem;
    }

    .bl-hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .bl-hero-buttons .bl-btn {
        margin-right: 0;
        margin-bottom: 1rem;
        width: 100%;
        max-width: 300px;
    }

    .bl-footer-grid {
        grid-template-columns: 1fr;
    }

    .bl-footer-brand, .bl-footer-cta {
        grid-column: span 1;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .bl-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .bl-logo {
        font-size: 1.5rem;
    }

    .bl-hero h1 {
        font-size: 2.5rem;
    }

    .bl-hero p {
        font-size: 1rem;
    }
    
    .bl-testimonial-card {
        padding: 1.5rem;
    }
}


/* === Quality polish === */
button, [class*="btn"], [class*="cta"] { transition: all 0.3s ease; cursor: pointer; }
button:hover, [class*="btn"]:hover, [class*="cta"]:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); filter: brightness(1.05); }

@keyframes blFadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.bl-animate { opacity: 0; }
.bl-animate.bl-visible { animation: blFadeInUp 0.6s ease forwards; }