/* --- Global Styles & Variables --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&amp;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 h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 992px) {
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
    }

    .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 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 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 --- */

/* 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: transparent !important;
    padding: 1.15rem 0;
    box-shadow: none;
    position: relative;
    z-index: 20;
}

.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;
}

body > header {
    background: var(--heuro-midnight);
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

body > header .navbar {
    background: var(--heuro-midnight) !important;
    box-shadow: none;
}

.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 {
    background: linear-gradient(44.67deg, #006 22.63%, #374bfe 62.02%) !important;
    color: #fff;
    padding: 0 0 0;
    overflow: hidden;
    position: relative;
    min-height: 780px;
}

.home-hero {
    background:
        url("/images/home_part1-AEQ66NQM.png?t=1787661948") center 8.75rem no-repeat,
        linear-gradient(44.67deg, #006 22.63%, #374bfe 62.02%) !important;
}

.hero-section::before,
.hero-section::after {
    display: none;
}

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

.hero-section .hero-text {
    padding-top: 5rem;
    padding-bottom: 8rem;
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    max-width: 600px;
    margin-bottom: 1.75rem;
    font-size: clamp(2.6rem, 5vw, 4.8rem);
    line-height: 1.02;
    font-weight: 500;
    color: #fff !important;
}

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

body > main > .hero-section.text-center {
    min-height: 220px;
    padding: 4.5rem 0;
    display: flex;
    align-items: center;
    background: var(--heuro-soft) !important;
    color: var(--heuro-ink);
}

body > main > .hero-section.text-center h1 {
    max-width: none;
    margin: 0 auto;
    color: var(--heuro-ink) !important;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.1;
}

.hero-section .hero-image-col {
    position: static;
}

.hero-section .hero-img {
    position: absolute;
    right: -6vw;
    top: 50%;
    transform: translateY(-62%);
    width: 75vw;
    max-width: 1300px;
    height: auto;
    z-index: 1;
    pointer-events: none;
}

.about-hero .hero-img[src$=".svg"] {
    right: -10vw;
    width: 50vw;
    max-width: 820px;
    transform: translateY(-58%);
    opacity: 1;
}

.contact-hero .hero-img[src$=".svg"] {
    top: 58%;
    transform: translateY(-46%);
}

.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 h5,
.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: #000033 !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: 3.5rem 0 0;
        text-align: left !important;
        min-height: unset;
    }

    .hero-section .hero-text {
        padding-top: 1rem;
        padding-bottom: 2rem;
    }

    .hero-section .hero-img {
        position: relative;
        right: auto;
        bottom: auto;
        width: 100%;
        max-width: 100%;
        display: block;
        margin-top: 2rem;
        transform: none;
    }

    .about-hero .hero-img[src$=".svg"] {
        width: min(100%, 520px);
        margin-left: auto;
        margin-right: auto;
    }

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

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

/* --- About page hero --- */
.about-hero {
    min-height: 720px;
}

.about-hero .navbar {
    background: transparent !important;
    box-shadow: none;
}

.about-hero-text {
    padding-top: 3rem;
    padding-bottom: 4rem;
}

.about-hero-actions .btn-outline-light {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.78);
    background-color: rgba(255, 255, 255, 0.08);
}

.about-hero-actions .btn-outline-light:hover,
.about-hero-actions .btn-outline-light:focus {
    background: #fff;
    border-color: #fff;
    color: var(--heuro-blue);
}

.about-hero-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.about-hero-metric strong {
    display: block;
    color: #fff;
    font-size: 1.35rem;
    line-height: 1.1;
}

.about-hero-metric span {
    display: block;
    margin-top: 0.25rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.85rem;
}

@media (max-width: 991.98px) {
    .about-hero {
        min-height: unset;
    }

    .about-hero-text {
        padding-top: 1rem;
        padding-bottom: 1.5rem;
    }
}

/* --- Language switcher --- */
.lang-switcher {
    position: relative;
    z-index: 1050;
}

.lang-switcher .dropdown-menu {
    z-index: 1055;
}

.lang-switcher .dropdown-toggle {
    display: inline-flex;
    align-items: center;
    min-width: 4.25rem;
    justify-content: center;
    border-color: rgba(255, 255, 255, 0.55);
    color: #fff;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.lang-switcher .dropdown-toggle:hover,
.lang-switcher .dropdown-toggle:focus,
.lang-switcher .dropdown-toggle.show {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
    color: #fff;
}

.lang-switcher .dropdown-menu {
    min-width: 9rem;
}

.lang-switcher .dropdown-item.active,
.lang-switcher .dropdown-item:active {
    background: var(--primary-color);
    color: #fff;
}

@media (max-width: 991.98px) {
    .lang-switcher {
        margin: 0.75rem 0 1rem;
    }

    .lang-switcher .dropdown-toggle {
        width: 100%;
    }
}
