/* --- Global Styles & Variables --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #303df4;
    --dark-blue: #030139;
    --light-gray: #eaf7ff;
    --text-color: #080826;
    --text-light: #f7f8ff;
    --heuro-blue: #303df4;
    --heuro-blue-deep: #0900e8;
    --heuro-ink: #05002e;
    --heuro-midnight: #030139;
    --heuro-sky: #e1f3ff;
    --heuro-soft: #f4f7ff;
    --heuro-line: rgba(5, 0, 46, 0.12);
    --heuro-muted: #60657f;
}

html {
    height: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #ffffff;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Sticky Footer */
    font-size: 16px;
    letter-spacing: 0;
}

main {
    flex-grow: 1; /* Sticky Footer */
}

p {
    line-height: 1.65;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.4rem);
    letter-spacing: 0;
}

/* --- Mobile Responsive Styles --- */
@media (max-width: 1200px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 992px) {
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
    }
    
    .hero-section {
        padding: 50px 0;
    }
    
    .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .statistics .col-md-3 {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    h3 {
        font-size: 1.4rem;
    }
    
    h4, h5, h6 {
        font-size: 1.2rem;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .btn {
        font-size: 14px;
        padding: 10px 20px;
    }
    
    .hero-section {
        padding: 40px 0;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .card-body {
        padding: 1.25rem 1rem;
    }
    
    .statistics .display-4 {
        font-size: 2rem;
    }
    
    .footer {
        text-align: center;
    }
    
    .footer .row > div {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    body {
        font-size: 14px;
    }
    
    .hero-section {
        padding: 30px 0;
    }
    
    .hero-section h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .hero-section p {
        font-size: 0.9rem;
    }
    
    .btn {
        font-size: 13px;
        padding: 8px 16px;
    }
    
    .btn-lg {
        font-size: 14px;
        padding: 10px 20px;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .card-body {
        padding: 1rem 0.75rem;
    }
    
    h2 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    
    .statistics .display-4 {
        font-size: 1.5rem;
    }
    
    .navbar-toggler {
        padding: 0.25rem 0.5rem;
        font-size: 1rem;
    }
    
    .accordion-button {
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
    }
    
    .form-control, .form-select {
        font-size: 14px;
    }
}

/* --- Component Overrides --- */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    padding: 12px 30px; /* Increased padding */
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: white;
    border-color: var(--primary-color);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    padding: 12px 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-danger {
    padding: 12px 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background-color: white;
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-outline-light:hover {
    background-color: white;
    border-color: white;
    color: var(--primary-color);
}

.card {
    border: none;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* --- Header & Footer --- */
.navbar {
    background-color: var(--dark-blue) !important;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar .nav-link:hover {
    color: #fff !important;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.footer {
    background-color: var(--dark-blue);
    color: var(--text-light);
}

.footer a {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.footer .text-danger {
    color: #fff !important; /* Override bootstrap danger for footer headings */
    font-weight: 600;
}


/* --- Page Specific Sections --- */

/* Hero Section */
.hero-section {
    background-color: var(--primary-color);
    color: white;
    padding: 7rem 0; /* Increased padding */
}

.hero-section h1 {
    font-weight: 700;
    font-size: 3.2rem; /* Increased font size */
}

.hero-section .lead {
    font-size: 1.3rem; /* Increased font size */
    max-width: 800px;
    margin: 1rem auto 2rem;
}

/* Features/Services Section */
.features-section .bi {
    font-size: 3.5rem; /* Increased icon size */
}

/* Contact Form */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(0, 102, 204, 0.25);
}

/* FAQ Accordion */
.accordion-button:not(.collapsed) {
    color: #fff;
    background-color: var(--primary-color);
}

.accordion-button:focus {
    z-index: 3;
    border-color: var(--primary-color);
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(0, 102, 204, 0.25);
}

/* --- Heuro redesign layer --- */
::selection {
    background: var(--heuro-blue);
    color: #fff;
}

.container {
    max-width: 1280px;
}

.navbar {
    background: linear-gradient(90deg, var(--heuro-midnight) 0%, var(--heuro-blue) 100%) !important;
    padding: 1.15rem 0;
    box-shadow: none;
}

.navbar-brand img {
    height: 40px !important;
    width: auto;
    object-fit: contain;
}

.navbar .nav-link {
    color: rgba(255, 255, 255, 0.88) !important;
    font-size: 0.95rem;
    font-weight: 500;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
    color: #ffffff !important;
}

.btn {
    border-radius: 999px;
    letter-spacing: 0;
}

.btn-primary {
    background-color: var(--heuro-midnight);
    border-color: var(--heuro-midnight);
    color: #fff;
    box-shadow: none;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #fff;
    border-color: #fff;
    color: var(--heuro-blue);
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(3, 1, 57, 0.16);
}

.btn-light,
.btn-outline-light {
    border-radius: 999px;
    color: var(--heuro-blue);
}

.text-primary {
    color: var(--heuro-blue) !important;
}

.bg-light {
    background-color: var(--heuro-sky) !important;
}

.bg-white {
    background-color: #fff !important;
}

.hero-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: linear-gradient(90deg, var(--heuro-midnight) 0%, var(--heuro-blue) 100%);
    color: #fff;
    padding: clamp(5.5rem, 10vw, 9.5rem) 0;
}

.hero-section::before,
.hero-section::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
}

.hero-section::before {
    inset: 0;
    background:
        repeating-linear-gradient(0deg, rgba(255,255,255,0.045) 0 1px, transparent 1px 82px),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 140px);
    opacity: 0.45;
}

.hero-section::after {
    top: 10%;
    right: 8%;
    width: min(42vw, 620px);
    aspect-ratio: 1.7;
    border: 3px solid rgba(3, 1, 57, 0.2);
    border-radius: 50%;
    box-shadow:
        72px 0 0 -2px rgba(3, 1, 57, 0.17),
        132px 0 0 -4px rgba(3, 1, 57, 0.14),
        188px 0 0 -6px rgba(3, 1, 57, 0.12);
}

.hero-section h1 {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(2.6rem, 6vw, 5.2rem);
    line-height: 1.02;
    font-weight: 500;
    color: #fff !important;
}

.hero-section .lead {
    max-width: 720px;
    color: rgba(255,255,255,0.9) !important;
    font-size: clamp(1rem, 1.8vw, 1.18rem);
}

.hero-section.text-center .container {
    position: relative;
    z-index: 1;
}

.features-section {
    background: #fff;
}

.features-section .row > [class*="col-"] {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

.features-section .bi {
    font-size: 2.25rem;
    color: var(--heuro-blue) !important;
}

.features-section h4,
.card-title,
.section-title,
h1, h2, h3, h4, h5 {
    color: var(--heuro-ink);
}

.card {
    border: 1px solid rgba(5, 0, 46, 0.08);
    border-radius: 24px;
    box-shadow: none;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 60px rgba(3, 1, 57, 0.11);
}

.card .card-body {
    padding: 2rem;
}

.heuro-home .lead,
.text-muted {
    color: var(--heuro-muted) !important;
}

.heuro-home .hero-section .lead {
    color: rgba(255,255,255,0.9) !important;
}

.heuro-home .stats-strip h2 {
    font-size: clamp(2.25rem, 6vw, 5rem);
    font-weight: 500;
}

.heuro-home .image-panel {
    border-radius: 24px;
    min-height: 360px;
    width: 100%;
    object-fit: cover;
    box-shadow: none !important;
}

.heuro-home .service-card {
    min-height: 100%;
    border-radius: 22px;
    background:
        radial-gradient(circle at 100% 100%, rgba(48, 61, 244, 0.28), transparent 35%),
        #ffffff;
}

.heuro-home .service-card:nth-child(even),
.heuro-home .service-card.is-dark {
    background:
        radial-gradient(circle at 100% 100%, rgba(48, 61, 244, 0.45), transparent 42%),
        linear-gradient(135deg, var(--heuro-midnight), #1b1b22);
    color: #fff;
}

.heuro-home .service-card.is-dark h4,
.heuro-home .service-card.is-dark .card-title,
.heuro-home .service-card.is-dark .text-muted,
.heuro-home .service-card.is-dark li {
    color: rgba(255,255,255,0.86) !important;
}

.heuro-home .feature-band {
    background: var(--heuro-sky);
}

.heuro-home .cta-band {
    background:
        radial-gradient(ellipse at 14% 50%, rgba(48, 61, 244, 0.42) 0 1px, transparent 2px 33%, rgba(48, 61, 244, 0.48) 34% 34.5%, transparent 35%),
        radial-gradient(ellipse at 86% 50%, rgba(48, 61, 244, 0.42) 0 1px, transparent 2px 33%, rgba(48, 61, 244, 0.48) 34% 34.5%, transparent 35%),
        linear-gradient(90deg, var(--heuro-midnight), #050071) !important;
    color: #fff;
    text-align: center;
}

.heuro-home .cta-band h3,
.heuro-home .cta-band p {
    color: #fff !important;
}

.footer {
    background: var(--heuro-blue);
    color: #fff;
    padding-top: 4.5rem !important;
}

.footer h5,
.footer h6 {
    color: #fff !important;
}

.footer .text-primary {
    color: #fff !important;
}

.footer a:hover {
    color: #fff;
    opacity: 0.75;
}

.footer hr {
    border-color: rgba(255,255,255,0.2);
}

.form-control,
.form-select {
    border-color: rgba(5, 0, 46, 0.14);
    border-radius: 16px;
    padding: 0.8rem 1rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--heuro-blue);
    box-shadow: 0 0 0 0.25rem rgba(48, 61, 244, 0.16);
}

.accordion-item {
    border: 0;
    border-radius: 16px !important;
    overflow: hidden;
    margin-bottom: 1rem;
}

.accordion-button {
    border-radius: 16px !important;
    color: var(--heuro-ink);
}

.accordion-button:not(.collapsed) {
    background: var(--heuro-blue);
    color: #fff;
}

@media (max-width: 991.98px) {
    .navbar {
        padding: 1rem 0;
    }

    .navbar-brand img {
        height: 54px !important;
    }

    .navbar-toggler {
        width: 58px;
        height: 58px;
        display: inline-grid;
        place-items: center;
        padding: 0;
        border: 2px solid rgba(255,255,255,0.54);
        border-radius: 16px;
    }

    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.22rem rgba(255,255,255,0.18);
    }

    .navbar-collapse {
        margin-top: 1rem;
        padding: 1.25rem;
        border-radius: 20px;
        background: rgba(3, 1, 57, 0.95);
    }

    .navbar-collapse .navbar-nav {
        gap: 0.45rem;
        margin-bottom: 1rem !important;
    }

    .navbar-collapse .nav-item,
    .navbar-collapse .nav-link {
        width: 100%;
    }

    .navbar-collapse .nav-link {
        display: flex;
        align-items: center;
        min-height: 54px;
        padding: 0.9rem 1rem !important;
        border-radius: 16px;
        border: 1px solid rgba(255,255,255,0.1);
        background: rgba(255,255,255,0.055);
        color: #fff !important;
        font-size: 1rem;
        font-weight: 500;
    }

    .navbar-collapse .nav-link:hover,
    .navbar-collapse .nav-link:focus {
        background: rgba(255,255,255,0.1);
        border-color: rgba(255,255,255,0.18);
    }

    .navbar-collapse > .btn {
        width: 100%;
        min-height: 54px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: #fff !important;
        border-color: #fff !important;
        color: var(--heuro-blue) !important;
        font-size: 1rem;
        font-weight: 500;
        box-shadow: none !important;
        transform: none !important;
    }

    .hero-section::after {
        opacity: 0.35;
        right: -30%;
        width: 100vw;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 4.5rem 0;
        text-align: left !important;
    }

    .hero-section h1,
    .hero-section .lead {
        margin-left: 0;
        margin-right: 0;
    }

    .heuro-home .image-panel {
        min-height: 260px;
    }
}
