/* Explain: Adds styles for the new chatbot widget components. */
.eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.logo-mark {
    display: inline-flex;
    height: 2.75rem;
    width: 2.75rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.9rem;
    background: linear-gradient(135deg, var(--primary-color), var(--navy-soft));
    color: var(--accent-color);
    font-size: 1.15rem;
    box-shadow: 0 10px 24px rgba(16, 35, 63, 0.22);
}

/* Navigation */
.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 2.75rem;
    padding: 0 0.6rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 250ms ease, background-color 250ms ease;
}

.nav-link:hover {
    color: var(--primary-color);
    background: color-mix(in srgb, var(--primary-color) 7%, transparent);
}

.nav-link.is-active {
    color: var(--primary-color);
    background: color-mix(in srgb, var(--primary-color) 9%, transparent);
}

.mobile-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 3rem;
    padding: 0.5rem 0.25rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 200ms ease;
}

.mobile-link:hover,
.mobile-link.is-active {
    color: var(--accent-hover);
}

/* Buttons */
.btn-brand,
.btn-navy,
.btn-outline,
.btn-outline-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 3rem;
    padding: 0.6rem 1.6rem;
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform 250ms ease, background-color 250ms ease, border-color 250ms ease, color 250ms ease, box-shadow 250ms ease;
}

.btn-brand {
    background: var(--accent-color);
    color: var(--on-navy-color);
    box-shadow: 0 12px 26px var(--accent-shadow);
}

.btn-brand:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 16px 32px var(--accent-shadow-strong);
}

.btn-navy {
    background: var(--primary-color);
    color: #fff;
}

.btn-navy:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    border-color: var(--accent-color);
    color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

.btn-outline-light {
    background: color-mix(in srgb, white 8%, transparent);
    color: #fff;
    border-color: color-mix(in srgb, white 26%, transparent);
}

.btn-outline-light:hover {
    background: color-mix(in srgb, white 16%, transparent);
    border-color: color-mix(in srgb, var(--accent-color) 70%, transparent);
    transform: translateY(-2px);
}

/* Cards */
.icon-badge {
    display: inline-flex;
    height: 3.25rem;
    width: 3.25rem;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: color-mix(in srgb, var(--accent-color) 18%, transparent);
    color: var(--accent-hover);
    font-size: 1.15rem;
}

.icon-badge-navy {
    background: color-mix(in srgb, var(--primary-color) 10%, transparent);
    color: var(--primary-color);
}

.service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 1.5rem;
    border: 1px solid var(--border-color);
    background: var(--surface-color);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: transform 300ms ease, box-shadow 300ms ease, border-color 300ms ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-soft);
    border-color: color-mix(in srgb, var(--accent-color) 50%, transparent);
}

.info-card {
    border-radius: 1.5rem;
    border: 1px solid var(--border-color);
    background: var(--surface-color);
    box-shadow: var(--shadow-card);
    padding: 1.75rem;
    transition: transform 300ms ease, border-color 300ms ease;
}

.info-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--accent-color) 45%, transparent);
}

.floating-card {
    border-radius: 1.25rem;
    border: 1px solid var(--border-color);
    background: var(--surface-color);
    box-shadow: var(--shadow-soft);
    padding: 1rem 1.15rem;
}

.stat-tile {
    border-radius: 1rem;
    background: color-mix(in srgb, var(--primary-color) 6%, transparent);
    padding: 0.85rem 1rem;
}

/* Details / FAQ */
.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    background: var(--surface-color);
    overflow: hidden;
    transition: border-color 300ms ease, box-shadow 300ms ease;
}

.faq-item[open] {
    border-color: color-mix(in srgb, var(--accent-color) 55%, transparent);
    box-shadow: var(--shadow-card);
}

.faq-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    list-style: none;
    padding: 1.25rem 1.5rem;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-color);
}

.faq-summary::-webkit-details-marker {
    display: none;
}

.faq-chevron {
    flex-shrink: 0;
    color: var(--accent-hover);
    transition: transform 300ms ease;
}

.faq-item[open] > .faq-summary .faq-chevron {
    transform: rotate(180deg);
}

.faq-body {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-muted);
    line-height: 1.85;
}

/* Forms */
.field-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.field-input {
    width: 100%;
    min-height: 3rem;
    border-radius: 0.9rem;
    border: 1px solid var(--border-color);
    background: var(--surface-color);
    padding: 0.65rem 1rem;
    color: var(--text-color);
    font-size: 0.95rem;
    transition: border-color 200ms ease, box-shadow 200ms ease;
}

.field-input::placeholder {
    color: #9AA7B8;
}

.field-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-color) 18%, transparent);
}

.form-status {
    display: none;
    border-radius: 0.9rem;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    line-height: 1.55;
}

.form-status.success {
    display: block;
    border: 1px solid color-mix(in srgb, var(--success-color) 45%, transparent);
    background: color-mix(in srgb, var(--success-color) 12%, transparent);
    color: var(--success-color);
}

.form-status.error {
    display: block;
    border: 1px solid color-mix(in srgb, var(--error-color) 45%, transparent);
    background: color-mix(in srgb, var(--error-color) 10%, transparent);
    color: var(--error-color);
}

/* Quote modal */
.quote-modal {
    z-index: 9500;
    overflow-y: auto;
}

.quote-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 24, 48, 0.62);
    backdrop-filter: blur(8px);
}

.quote-modal-panel {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

@media (min-width: 640px) {
    .quote-modal-panel {
        padding: 2rem;
    }
}

.quote-modal-card {
    position: relative;
    width: 100%;
    max-width: 32rem;
    border-radius: 1.75rem;
    border: 1px solid var(--border-color);
    background: var(--surface-color);
    box-shadow: var(--shadow-soft);
    padding: 1.75rem;
}

@media (min-width: 640px) {
    .quote-modal-card {
        padding: 2.25rem;
    }
}

.quote-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: inline-flex;
    height: 2.5rem;
    width: 2.5rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--surface-color);
    color: var(--secondary-color);
    transition: background-color 200ms ease, color 200ms ease;
}

.quote-close:hover {
    background: var(--muted-surface);
    color: var(--primary-color);
}

/* Investment calculator */
.calculator-tab {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--surface-color);
    padding: 0.55rem 1rem;
    color: var(--secondary-color);
    font-size: 0.82rem;
    font-weight: 700;
    transition: color 200ms ease, background-color 200ms ease, border-color 200ms ease, transform 200ms ease;
}

.calculator-tab:hover {
    border-color: var(--accent-color);
    color: var(--accent-hover);
    transform: translateY(-1px);
}

.calculator-tab.is-active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: var(--on-navy-color);
    box-shadow: 0 10px 22px rgba(7, 47, 98, 0.18);
}

.calculator-result {
    border-radius: 1.15rem;
    border: 1px solid var(--border-color);
    background: var(--muted-surface);
    padding: 1rem;
}

/* Testimonials slider */
.testimonial-swiper {
    padding-bottom: 0.5rem;
}

.testimonial-swiper .swiper-slide {
    height: auto;
}

.testimonial-nav {
    display: inline-flex;
    height: 2.75rem;
    width: 2.75rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--surface-color);
    color: var(--primary-color);
    transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 200ms ease;
}

.testimonial-nav:hover {
    background: var(--primary-color);
    color: var(--on-navy-color);
    transform: translateY(-2px);
}

.testimonial-swiper .swiper-pagination-bullet {
    background: var(--secondary-color);
    opacity: 0.35;
}

.testimonial-swiper .swiper-pagination-bullet-active {
    width: 1.6rem;
    border-radius: 999px;
    background: var(--accent-color);
    opacity: 1;
}

/* Category image slideshow */
.category-swiper {
    position: relative;
}

.category-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(4, 28, 59, 0.94) 0%, rgba(7, 47, 98, 0.82) 48%, rgba(7, 47, 98, 0.42) 100%);
}

.category-swiper .swiper-pagination {
    bottom: 1.1rem;
}

.category-swiper .swiper-pagination-bullet {
    background: #ffffff;
    opacity: 0.4;
}

.category-swiper .swiper-pagination-bullet-active {
    width: 1.8rem;
    border-radius: 999px;
    background: var(--accent-color);
    opacity: 1;
}

.category-arrow {
    display: inline-flex;
    height: 2.9rem;
    width: 2.9rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    transition: background-color 200ms ease, border-color 200ms ease, transform 200ms ease;
}

.category-arrow::after {
    font-size: 0.95rem;
}

.category-arrow:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

@media (max-width: 640px) {
    .category-arrow {
        display: none;
    }
}

/* Help assistant (chatbot) */
.chat-launch {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 9400;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 3.25rem;
    padding: 0.6rem 1.15rem;
    border: none;
    border-radius: 999px;
    background: var(--accent-color);
    color: var(--on-navy-color);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    box-shadow: 0 16px 34px var(--accent-shadow-strong);
    transition: transform 250ms ease, background-color 250ms ease, box-shadow 250ms ease;
}

.chat-launch:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.chat-launch-icon {
    display: inline-flex;
    height: 2rem;
    width: 2rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    font-size: 0.95rem;
}

@media (max-width: 480px) {
    .chat-launch {
        height: 3.5rem;
        width: 3.5rem;
        padding: 0;
        justify-content: center;
    }

    .chat-launch-text {
        display: none;
    }

    .chat-launch-icon {
        height: 100%;
        width: 100%;
        background: transparent;
        font-size: 1.25rem;
    }
}

.chat-panel {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 9450;
    display: none;
    flex-direction: column;
    width: min(23rem, calc(100vw - 2rem));
    max-height: min(34rem, calc(100vh - 2rem));
    overflow: hidden;
    border-radius: 1.5rem;
    border: 1px solid var(--border-color);
    background: var(--surface-color);
    box-shadow: var(--shadow-soft);
}

.chat-panel.is-open {
    display: flex;
}

@media (max-width: 480px) {
    .chat-panel {
        left: 0.75rem;
        right: 0.75rem;
        bottom: 0.75rem;
        width: auto;
        max-height: calc(100vh - 1.5rem);
    }
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    background: var(--primary-color);
    color: var(--on-navy-color);
}

.chat-avatar {
    display: inline-flex;
    height: 2.5rem;
    width: 2.5rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent-color) 72%, transparent);
    color: var(--on-navy-color);
}

.chat-title {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 0.98rem;
    font-weight: 700;
}

.chat-subtitle {
    margin: 0.15rem 0 0;
    font-size: 0.72rem;
    color: var(--on-navy-muted);
}

.chat-close {
    display: inline-flex;
    height: 2.25rem;
    width: 2.25rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.12);
    color: var(--on-navy-color);
    transition: background-color 200ms ease;
}

.chat-close:hover {
    background: rgba(255, 255, 255, 0.26);
}

.chat-messages {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 12rem;
    overflow-y: auto;
    padding: 1.1rem;
    background: var(--muted-surface);
}

.chat-row {
    display: flex;
}

.chat-row-user {
    justify-content: flex-end;
}

.chat-row-bot {
    justify-content: flex-start;
}

.chat-bubble {
    max-width: 85%;
    padding: 0.7rem 0.95rem;
    border-radius: 1.1rem;
    font-size: 0.88rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

.chat-bubble-user {
    background: var(--accent-color);
    color: var(--on-navy-color);
    border-bottom-right-radius: 0.3rem;
}

.chat-bubble-bot {
    background: var(--surface-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-bottom-left-radius: 0.3rem;
}

.chat-typing {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.chat-typing span {
    height: 0.4rem;
    width: 0.4rem;
    border-radius: 999px;
    background: var(--text-muted);
    animation: chatBlink 1.2s infinite ease-in-out both;
}

.chat-typing span:nth-child(2) {
    animation-delay: 0.2s;
}

.chat-typing span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes chatBlink {
    0%, 60%, 100% {
        opacity: 0.25;
        transform: translateY(0);
    }
    30% {
        opacity: 1;
        transform: translateY(-2px);
    }
}

.chat-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.75rem 1.1rem 0;
    background: var(--muted-surface);
}

.chat-suggestions.is-hidden {
    display: none;
}

.chat-suggestion {
    min-height: 2rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--surface-color);
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 600;
    transition: border-color 200ms ease, color 200ms ease;
}

.chat-suggestion:hover {
    border-color: var(--accent-color);
    color: var(--accent-hover);
}

.chat-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.1rem 1.1rem;
    border-top: 1px solid var(--border-color);
    background: var(--surface-color);
}

.chat-input {
    flex: 1;
    min-height: 2.75rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--muted-surface);
    padding: 0.55rem 1rem;
    color: var(--text-color);
    font-size: 0.88rem;
    transition: border-color 200ms ease, box-shadow 200ms ease;
}

.chat-input::placeholder {
    color: #9AA7B8;
}

.chat-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-color) 18%, transparent);
}

.chat-send {
    display: inline-flex;
    height: 2.75rem;
    width: 2.75rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 999px;
    background: var(--primary-color);
    color: var(--on-navy-color);
    transition: background-color 200ms ease, transform 200ms ease;
}

.chat-send:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.chat-send:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}