/* =========================================================
   DENNJEN TECH SOLUTIONS

   GLOBAL / SHARED STYLES
========================================================= */


/* =========================================================
   VARIABLES
========================================================= */

:root {

    --primary: #0757c9;
    --primary-dark: #043d91;
    --primary-light: #2d8cff;

    --navy: #071b3a;
    --navy-dark: #031126;

    --accent: #f5b900;
    --accent-dark: #d99f00;

    --white: #ffffff;
    --black: #101828;

    --text: #263447;
    --muted: #667085;

    --light: #f6f9fd;
    --light-blue: #eef6ff;

    --border: #e4eaf2;

    --success: #18a957;

    --danger: #c62828;

    --container: 1180px;

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;

    --shadow-sm:
        0 6px 22px rgba(7, 40, 85, 0.06);

    --shadow-md:
        0 14px 40px rgba(7, 40, 85, 0.10);

    --shadow-lg:
        0 25px 70px rgba(7, 40, 85, 0.15);

    --transition:
        0.3s ease;
}


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;

    background: var(--white);

    color: var(--text);

    line-height: 1.6;

    overflow-x: hidden;
}

img {
    max-width: 100%;

    display: block;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    border: 0;
}

a {
    color: inherit;
}

ul {
    list-style: none;
}


/* =========================================================
   CONTAINER
========================================================= */

.container {
    width: min(
        var(--container),
        calc(100% - 48px)
    );

    margin-inline: auto;
}


/* =========================================================
   TOP BAR
========================================================= */

.top-bar {
    height: 38px;

    display: flex;

    align-items: center;

    overflow: hidden;

    background: var(--navy-dark);

    border-bottom:
        1px solid rgba(245, 185, 0, 0.35);

    color:
        rgba(255, 255, 255, 0.78);

    font-size: 11px;
}

.top-bar-track {
    display: flex;

    width: max-content;

    align-items: center;

    gap: 55px;

    white-space: nowrap;

    animation:
        topBarMove 34s linear infinite;
}

.top-bar-track span {
    display: inline-flex;

    align-items: center;

    gap: 7px;
}

.top-bar-track i {
    color: var(--accent);
}

.top-bar-track a {
    color: inherit;

    text-decoration: none;

    transition:
        color var(--transition);
}

.top-bar-track a:hover {
    color: var(--accent);
}

.top-bar-track strong {
    color:
        rgba(255, 255, 255, 0.35);
}

@keyframes topBarMove {

    from {
        transform: translateX(20vw);
    }

    to {
        transform: translateX(-100%);
    }
}


/* =========================================================
   NAVBAR
========================================================= */

.navbar {
    position: sticky;

    top: 0;

    z-index: 1000;

    background:
        rgba(255, 255, 255, 0.96);

    backdrop-filter: blur(16px);

    border-bottom:
        1px solid var(--border);

    box-shadow:
        0 5px 25px rgba(7, 40, 85, 0.04);
}

.nav-container {
    width: min(
        var(--container),
        calc(100% - 48px)
    );

    min-height: 76px;

    margin-inline: auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}


/* =========================================================
   LOGO
========================================================= */

.nav-logo {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    color: var(--navy);

    text-decoration: none;

    flex-shrink: 0;
}

.nav-logo-img {
    width: 48px;

    height: 48px;

    object-fit: contain;
}

.nav-brand {
    display: flex;

    flex-direction: column;

    line-height: 1;
}

.nav-brand strong {
    font-family:
        'Space Grotesk',
        sans-serif;

    font-size: 20px;

    font-weight: 700;

    letter-spacing: -0.5px;
}

.nav-brand small {
    margin-top: 4px;

    color: var(--primary);

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 2px;

    text-transform: uppercase;
}


/* =========================================================
   NAV MENU
========================================================= */

.nav-menu {
    display: flex;

    align-items: center;

    gap: 7px;
}

.nav-link {
    position: relative;

    display: inline-flex;

    align-items: center;

    gap: 7px;

    padding: 10px 12px;

    color: #475467;

    text-decoration: none;

    border-radius: 9px;

    font-size: 13px;

    font-weight: 600;

    transition:
        color var(--transition),
        background var(--transition);
}

.nav-link i {
    color: #98a2b3;

    font-size: 12px;

    transition:
        color var(--transition);
}

.nav-link::after {
    content: '';

    position: absolute;

    left: 12px;

    right: 12px;

    bottom: 4px;

    height: 2px;

    background: var(--accent);

    transform: scaleX(0);

    transform-origin: center;

    transition:
        transform var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);

    background:
        rgba(7, 87, 201, 0.055);
}

.nav-link:hover i,
.nav-link.active i {
    color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}


/* =========================================================
   NAV CTA
========================================================= */

.btn-nav-cta {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 11px 17px;

    margin-left: 8px;

    color: white !important;

    background: var(--primary);

    border-radius: 10px;

    box-shadow:
        0 8px 22px
        rgba(7, 87, 201, 0.20);

    text-decoration: none;

    font-size: 12px;

    font-weight: 700;

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        background var(--transition);
}

.btn-nav-cta:hover {
    background: var(--primary-dark);

    transform: translateY(-2px);

    box-shadow:
        0 12px 28px
        rgba(7, 87, 201, 0.27);
}


/* =========================================================
   HAMBURGER
========================================================= */

.hamburger {
    display: none;

    width: 44px;

    height: 44px;

    padding: 10px;

    align-items: center;

    justify-content: center;

    flex-direction: column;

    gap: 5px;

    cursor: pointer;

    background: var(--light-blue);

    border:
        1px solid rgba(7, 87, 201, 0.12);

    border-radius: 11px;
}

.hamburger .bar {
    width: 22px;

    height: 2px;

    background: var(--navy);

    border-radius: 10px;

    transition:
        transform var(--transition),
        opacity var(--transition);
}

.hamburger.active .bar:nth-child(1) {
    transform:
        translateY(7px)
        rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform:
        translateY(-7px)
        rotate(-45deg);
}


/* =========================================================
   SHARED SECTION HEADING
========================================================= */

.section-heading {
    max-width: 700px;

    margin-bottom: 50px;
}

.section-heading.centered {
    margin-inline: auto;

    text-align: center;
}

.eyebrow {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 13px;

    color: var(--primary);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 2px;

    text-transform: uppercase;
}

.eyebrow::before {
    content: '';

    width: 22px;

    height: 2px;

    background: var(--accent);

    border-radius: 99px;
}

.eyebrow.light {
    color: #cfe2ff;
}

.section-heading h2 {
    margin-bottom: 13px;

    color: var(--navy);

    font-family:
        'Space Grotesk',
        sans-serif;

    font-size:
        clamp(30px, 4vw, 46px);

    line-height: 1.08;

    letter-spacing: -1.6px;
}

.section-heading h2 span {
    color: var(--primary);
}

.section-heading p {
    color: var(--muted);

    font-size: 15px;

    line-height: 1.8;
}


/* =========================================================
   SHARED BUTTONS
========================================================= */

.btn {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    min-height: 48px;

    padding: 0 20px;

    border-radius: 10px;

    text-decoration: none;

    font-size: 13px;

    font-weight: 700;

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        background var(--transition),
        border-color var(--transition);
}

.btn-primary {
    color: white;

    background: var(--primary);

    box-shadow:
        0 12px 25px
        rgba(7, 87, 201, 0.25);
}

.btn-primary:hover {
    background: var(--primary-light);

    transform: translateY(-3px);

    box-shadow:
        0 17px 32px
        rgba(7, 87, 201, 0.30);
}

.btn-outline {
    color: white;

    border:
        1px solid
        rgba(255, 255, 255, 0.25);

    background:
        rgba(255, 255, 255, 0.05);
}

.btn-outline:hover {
    background:
        rgba(255, 255, 255, 0.11);

    border-color:
        rgba(255, 255, 255, 0.55);

    transform: translateY(-3px);
}

.btn-dark {
    color: white;

    background: var(--navy);

    box-shadow: var(--shadow-sm);
}

.btn-dark:hover {
    background: var(--primary);

    transform: translateY(-3px);

    box-shadow: var(--shadow-md);
}

.btn-yellow {
    color: var(--navy);

    background: var(--accent);

    box-shadow:
        0 12px 30px
        rgba(245, 185, 0, 0.20);
}

.btn-yellow:hover {
    background: #ffd34f;

    transform: translateY(-3px);

    box-shadow:
        0 17px 34px
        rgba(245, 185, 0, 0.28);
}


/* =========================================================
   WHATSAPP
========================================================= */

.floating-wa {
    position: fixed;

    right: 25px;

    bottom: 82px;

    width: 48px;

    height: 48px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: #25d366;

    color: #ffffff;

    font-size: 1.25rem;

    text-decoration: none;

    z-index: 940;

    box-shadow:
        0 8px 22px
        rgba(37, 211, 102, 0.25);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.floating-wa:hover {
    color: white;

    transform:
        translateY(-4px)
        scale(1.05);

    box-shadow:
        0 15px 35px
        rgba(37, 211, 102, 0.40);
}


/* =========================================================
   BACK TO TOP
========================================================= */

.back-to-top {
    position: fixed;

    right: 25px;

    bottom: 25px;

    width: 44px;

    height: 44px;

    display: flex;

    align-items: center;

    justify-content: center;

    border: none;

    border-radius: 50%;

    background: #0756a3;

    color: #ffffff;

    font-size: 0.85rem;

    cursor: pointer;

    z-index: 950;

    opacity: 0;

    visibility: hidden;

    transform: translateY(10px);

    box-shadow:
        0 8px 22px
        rgba(7, 86, 163, 0.25);

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease,
        transform 0.3s ease,
        background 0.25s ease;
}

.back-to-top.show {
    opacity: 1;

    visibility: visible;

    transform: translateY(0);
}

.back-to-top:hover {
    color: white;

    background: var(--primary);
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
    padding: 65px 0 0;

    color:
        rgba(255, 255, 255, 0.70);

    background:
        linear-gradient(
            145deg,
            #04132d,
            #061e44
        );

    border-top:
        3px solid var(--accent);
}

.footer-container {
    display: grid;

    grid-template-columns:
        1.6fr 0.8fr 1fr 1.1fr;

    gap: 45px;

    padding-bottom: 55px;
}


/* FOOTER BRAND */

.footer-brand {
    display: inline-flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 16px;

    color: white;

    text-decoration: none;
}

.footer-brand img {
    width: 47px;

    height: 47px;

    object-fit: contain;
}

.footer-brand div {
    display: flex;

    flex-direction: column;
}

.footer-brand strong {
    font-family:
        'Space Grotesk',
        sans-serif;

    font-size: 19px;
}

.footer-brand span {
    margin-top: 2px;

    color: var(--accent);

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 1.8px;

    text-transform: uppercase;
}

.footer-brand-column > p {
    max-width: 330px;

    margin-bottom: 20px;

    font-size: 13px;

    line-height: 1.8;
}


/* SOCIAL */

.footer-social {
    display: flex;

    gap: 8px;
}

.footer-social a {
    width: 37px;

    height: 37px;

    display: flex;

    align-items: center;

    justify-content: center;

    color:
        rgba(255, 255, 255, 0.72);

    background:
        rgba(255, 255, 255, 0.07);

    border:
        1px solid
        rgba(255, 255, 255, 0.08);

    border-radius: 9px;

    text-decoration: none;

    transition:
        transform var(--transition),
        color var(--transition),
        background var(--transition);
}

.footer-social a:hover {
    color: var(--navy);

    background: var(--accent);

    transform: translateY(-3px);
}


/* FOOTER COLUMNS */

.footer-column h3 {
    margin-bottom: 18px;

    color: white;

    font-family:
        'Space Grotesk',
        sans-serif;

    font-size: 15px;
}

.footer-column h3::after {
    content: '';

    display: block;

    width: 25px;

    height: 2px;

    margin-top: 8px;

    background: var(--accent);
}

.footer-column ul {
    display: flex;

    flex-direction: column;

    gap: 9px;
}

.footer-column a {
    color:
        rgba(255, 255, 255, 0.66);

    text-decoration: none;

    font-size: 13px;

    transition:
        color var(--transition),
        padding var(--transition);
}

.footer-column a:hover {
    color: white;

    padding-left: 4px;
}


/* CONTACT */

.footer-contact li {
    display: flex;

    align-items: flex-start;

    gap: 9px;

    color:
        rgba(255, 255, 255, 0.66);

    font-size: 13px;
}

.footer-contact i {
    width: 16px;

    margin-top: 4px;

    color: var(--accent);

    text-align: center;
}


/* FOOTER BOTTOM */

.footer-bottom {
    min-height: 58px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding: 0 24px;

    border-top:
        1px solid
        rgba(255, 255, 255, 0.08);

    color:
        rgba(255, 255, 255, 0.42);

    font-size: 11px;
}

.footer-bottom span {
    color:
        rgba(255, 255, 255, 0.30);
}


/* =========================================================
   LIVE CHAT
========================================================= */


/* ---------------------------------------------------------
   CHAT WIDGET

   Original positioning preserved.
--------------------------------------------------------- */

.chat-widget {
    position: fixed;

    right: 25px;

    bottom: 145px;

    z-index: 1000;
}


/* ---------------------------------------------------------
   CHAT TOGGLE
--------------------------------------------------------- */

.chat-toggle {
    width: 54px;

    height: 54px;

    display: flex;

    align-items: center;

    justify-content: center;

    color: white;

    background: var(--primary);

    border-radius: 50%;

    cursor: pointer;

    font-size: 21px;

    box-shadow:
        0 12px 30px
        rgba(7, 87, 201, 0.28);

    transition:
        transform var(--transition),
        background var(--transition);
}

.chat-toggle:hover {
    background: var(--primary-light);

    transform:
        translateY(-3px);
}


/* ---------------------------------------------------------
   CHAT WINDOW

   ORIGINAL SIZE / POSITIONING PRESERVED.

   Header:
       62px

   Conversation:
       390px

   Total active-chat height:
       approximately 452px
--------------------------------------------------------- */

.chat-window {
    position: absolute;

    right: 0;

    bottom: 18px;

    width: 350px;
    overflow: hidden;

    background: white;

    border:
        1px solid var(--border);

    border-radius: 18px;

    box-shadow: var(--shadow-lg);

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transform:
        translateY(15px)
        scale(0.97);

    transform-origin: bottom right;

    transition:
        opacity var(--transition),
        visibility var(--transition),
        transform var(--transition);

    display: flex;

    flex-direction: column;
}

.chat-window.open {
    opacity: 1;

    visibility: visible;

    pointer-events: auto;

    transform:
        translateY(0)
        scale(1);
}


/* =========================================================
   CHAT HEADER
========================================================= */

.chat-header {
    width: 100%;

    height: 62px;

    min-height: 62px;

    max-height: 62px;

    flex:
        0 0 62px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    padding: 10px 13px;

    color: white;

    background: var(--navy);

    overflow: hidden;
}


/* =========================================================
   CHAT BRAND
========================================================= */

.chat-brand {
    min-width: 0;

    flex: 1 1 auto;

    display: flex;

    align-items: center;

    gap: 9px;

    color: white;

    font-size: 12px;

    font-weight: 700;

    overflow: hidden;
}

.chat-brand img {
    width: 34px;

    height: 34px;

    min-width: 34px;

    min-height: 34px;

    flex:
        0 0 34px;

    object-fit: contain;

    border-radius: 50%;
}

.chat-brand span {
    min-width: 0;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}


/* =========================================================
   CHAT HEADER ACTIONS
========================================================= */

.chat-header-actions {
    flex:
        0 0 auto;

    display: flex;

    align-items: center;

    gap: 5px;
}

.chat-header-actions button {
    width: 30px;

    height: 30px;

    min-width: 30px;

    min-height: 30px;

    display: flex;

    align-items: center;

    justify-content: center;

    color:
        rgba(255, 255, 255, 0.70);

    background:
        rgba(255, 255, 255, 0.07);

    border-radius: 7px;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        opacity 0.2s ease;
}

.chat-header-actions button:hover {
    color: white;

    background:
        rgba(255, 255, 255, 0.15);
}

.chat-header-actions button:disabled {
    opacity: 0.35;

    cursor: not-allowed;
}


/* =========================================================
   START CHAT SCREEN
========================================================= */

.chat-start {
    width: 100%;

    min-height: 390px;

    padding:
        28px 22px;

    background: white;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    overflow-y: auto;

    overflow-x: hidden;
}


/* =========================================================
   START CHAT ICON
========================================================= */

.chat-start-icon {
    width: 50px;

    height: 50px;

    min-width: 50px;

    min-height: 50px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin:
        0 auto 13px;

    color: white;

    background: var(--primary);

    border-radius: 14px;

    font-size: 20px;
}


/* =========================================================
   START CHAT HEADING
========================================================= */

.chat-start h3 {
    margin-bottom: 5px;

    color: var(--navy);

    font-family:
        'Space Grotesk',
        sans-serif;

    text-align: center;

    font-size: 19px;

    line-height: 1.3;
}


/* =========================================================
   START CHAT TEXT
========================================================= */

.chat-start p {
    max-width: 290px;

    margin-bottom: 17px;

    color: var(--muted);

    text-align: center;

    font-size: 12px;

    line-height: 1.6;
}


/* =========================================================
   START CHAT INPUTS
========================================================= */

.chat-input-field {
    width: 100%;

    height: 43px;

    min-height: 43px;

    margin-bottom: 9px;

    padding:
        0 12px;

    color: var(--text);

    background: #f8fafc;

    border:
        1px solid var(--border);

    border-radius: 9px;

    outline: none;

    font-size: 12px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.chat-input-field:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 3px
        rgba(7, 87, 201, 0.07);
}


/* =========================================================
   START CHAT BUTTON
========================================================= */

.chat-start-btn {
    width: 100%;

    height: 43px;

    min-height: 43px;

    color: white;

    background: var(--primary);

    border-radius: 9px;

    cursor: pointer;

    font-size: 12px;

    font-weight: 700;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.chat-start-btn:hover {
    background: var(--primary-dark);

    transform: translateY(-1px);
}


/* =========================================================
   ACTIVE CHAT SCREEN

   EXACT STRUCTURE:

   ┌─────────────────────────────┐
   │        CHAT MESSAGES        │
   │                             │
   │     scrollable middle       │
   │                             │
   ├─────────────────────────────┤
   │      TYPE MESSAGE...    ➤   │
   └─────────────────────────────┘

   The bottom row is FIXED at 58px.
========================================================= */

.chat-screen {
    width: 100%;

    height: 390px;

    min-height: 390px;

    max-height: 390px;

    /*
       CSS Grid is being used deliberately.

       Row 1:
       remaining available space

       Row 2:
       exactly 58px for input
    */
    display: grid;

    grid-template-columns: 1fr;

    grid-template-rows:
        minmax(0, 1fr)
        58px;

    background: #f7f9fc;

    overflow: hidden;
}


/*
   Preserve initial hidden state.
*/

.chat-screen[style*="display:none"] {
    display: none !important;
}


/*
   If JavaScript temporarily sets display:block,
   force it into the correct grid structure.
*/

.chat-screen[style*="display: block"] {
    display: grid !important;
}

.chat-screen[style*="display:flex"] {
    display: grid !important;
}

.chat-screen[style*="display: flex"] {
    display: grid !important;
}


/* =========================================================
   MESSAGE AREA

   ONLY THIS AREA SCROLLS.
========================================================= */

.chat-messages {
    grid-row: 1;

    width: 100%;

    min-width: 0;

    min-height: 0;

    height: auto;

    padding:
        14px;

    overflow-x: hidden;

    overflow-y: auto;

    background: #f7f9fc;

    display: flex;

    flex-direction: column;

    align-items: stretch;

    justify-content: flex-start;

    gap: 8px;

    scrollbar-width: thin;

    overscroll-behavior: contain;
}


/* =========================================================
   MESSAGE SCROLLBAR
========================================================= */

.chat-messages::-webkit-scrollbar {
    width: 5px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #c7ced8;

    border-radius: 10px;
}


/* =========================================================
   MESSAGE BUBBLES
========================================================= */

.chat-message {
    width: fit-content;

    max-width: 78%;

    flex:
        0 0 auto;

    margin: 0;

    padding:
        8px 11px;

    border-radius: 13px;

    font-size: 12px;

    line-height: 1.55;

    word-break: break-word;

    overflow-wrap: anywhere;
}

.chat-message p {
    margin: 0;

    color: inherit;
}


/* =========================================================
   CLIENT MESSAGE
   RIGHT SIDE
========================================================= */

.chat-message.user,
.chat-message.client,
.chat-message.client-message,
.chat-message.message-user {
    align-self: flex-end;

    margin-left: auto;

    margin-right: 0;

    color: #ffffff;

    background: var(--primary);

    border:
        1px solid var(--primary);

    border-bottom-right-radius: 4px;

    box-shadow:
        0 2px 5px
        rgba(7, 87, 201, 0.13);
}


/* =========================================================
   BOT / SUPPORT / ADMIN MESSAGE
   LEFT SIDE
========================================================= */

.chat-message.bot,
.chat-message.support,
.chat-message.admin,
.chat-message.bot-message,
.chat-message.admin-message,
.chat-message.support-message,
.chat-message.message-support,
.chat-message.message-admin {
    align-self: flex-start;

    margin-left: 0;

    margin-right: auto;

    color: var(--text);

    background: #ffffff;

    border:
        1px solid var(--border);

    border-bottom-left-radius: 4px;

    box-shadow:
        0 2px 5px
        rgba(7, 40, 85, 0.05);
}


/* =========================================================
   TYPING INDICATOR
========================================================= */

.chat-message.typing,
.chat-message.typing-indicator {
    align-self: flex-start;

    width: fit-content;

    min-width: 46px;

    height: 31px;

    min-height: 31px;

    padding:
        6px 9px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 4px;

    color: #98a2b3;

    background: #ffffff;

    border:
        1px solid var(--border);

    border-radius: 13px;

    border-bottom-left-radius: 4px;
}

.chat-message.typing span,
.chat-message.typing-indicator span {
    width: 5px;

    height: 5px;

    border-radius: 50%;

    background: #98a2b3;

    animation:
        chatTyping 1.2s
        infinite
        ease-in-out;
}

.chat-message.typing span:nth-child(2),
.chat-message.typing-indicator span:nth-child(2) {
    animation-delay: 0.15s;
}

.chat-message.typing span:nth-child(3),
.chat-message.typing-indicator span:nth-child(3) {
    animation-delay: 0.30s;
}

@keyframes chatTyping {

    0%,
    60%,
    100% {
        transform: translateY(0);

        opacity: 0.40;
    }

    30% {
        transform: translateY(-3px);

        opacity: 1;
    }
}


/* =========================================================
   CHAT INPUT AREA

   GRID ROW 2.

   ALWAYS AT BOTTOM.
========================================================= */

.chat-input-area {
    grid-row: 2;

    width: 100%;

    height: 58px;

    min-height: 58px;

    max-height: 58px;

    display: flex;

    flex-direction: row;

    align-items: center;

    justify-content: center;

    gap: 7px;

    padding:
        9px;

    background: #ffffff;

    border-top:
        1px solid var(--border);

    overflow: hidden;

    position: relative;

    z-index: 5;
}


/* =========================================================
   MESSAGE INPUT
========================================================= */

.chat-input-area input {
    flex:
        1 1 auto;

    width: auto;

    min-width: 0;

    height: 40px;

    min-height: 40px;

    max-height: 40px;

    margin: 0;

    padding:
        0 12px;

    color: var(--text);

    background: #f8fafc;

    border:
        1px solid var(--border);

    border-radius: 20px;

    outline: none;

    font-size: 12px;

    box-sizing: border-box;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.chat-input-area input:focus {
    background: white;

    border-color: var(--primary);

    box-shadow:
        0 0 0 3px
        rgba(7, 87, 201, 0.07);
}

.chat-input-area input::placeholder {
    color: #98a2b3;
}


/* =========================================================
   SEND BUTTON
========================================================= */

.chat-input-area button {
    width: 40px;

    min-width: 40px;

    height: 40px;

    min-height: 40px;

    flex:
        0 0 40px;

    padding: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    color: white;

    background: var(--primary);

    border-radius: 50%;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.chat-input-area button:hover {
    background: var(--primary-dark);

    transform: scale(1.04);
}


/* =========================================================
   CLEAR CHAT CONFIRMATION MODAL
========================================================= */

.clear-confirm-bar {
    position: absolute;

    inset: 0;

    width: 100%;

    height: 100%;

    display: none;

    align-items: center;

    justify-content: center;

    padding:
        18px;

    background:
        rgba(3, 17, 38, 0.62);

    backdrop-filter: blur(3px);

    -webkit-backdrop-filter: blur(3px);

    border-radius: inherit;

    z-index: 100;
}


/* =========================================================
   CLEAR MODAL CARD
========================================================= */

.clear-confirm-card {
    width: 100%;

    max-width: 288px;

    padding:
        22px 20px 19px;

    background: white;

    border:
        1px solid
        rgba(7, 40, 85, 0.08);

    border-radius: 15px;

    text-align: center;

    box-shadow:
        0 18px 45px
        rgba(0, 0, 0, 0.22);

    animation:
        clearModalIn 0.22s ease;
}

@keyframes clearModalIn {

    from {
        opacity: 0;

        transform:
            translateY(10px)
            scale(0.96);
    }

    to {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }
}


/* =========================================================
   CLEAR MODAL ICON
========================================================= */

.clear-confirm-icon {
    width: 48px;

    height: 48px;

    margin:
        0 auto 12px;

    display: flex;

    align-items: center;

    justify-content: center;

    color: var(--danger);

    background:
        rgba(198, 40, 40, 0.09);

    border-radius: 50%;

    font-size: 18px;
}


/* =========================================================
   CLEAR MODAL TITLE
========================================================= */

.clear-confirm-card h3 {
    margin:
        0 0 8px;

    color: var(--navy);

    font-family:
        'Space Grotesk',
        sans-serif;

    font-size: 18px;

    line-height: 1.25;
}


/* =========================================================
   CLEAR MODAL MESSAGE
========================================================= */

.clear-confirm-card p {
    margin:
        0 0 17px;

    color: var(--muted);

    font-size: 11.5px;

    line-height: 1.6;
}


/* =========================================================
   CLEAR MODAL ACTIONS
========================================================= */

.clear-confirm-actions {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 7px;
}

.clear-confirm-actions button {
    width: 100%;

    height: 39px;

    min-height: 39px;

    padding:
        0 7px;

    border-radius: 8px;

    cursor: pointer;

    font-family: inherit;

    font-size: 10.5px;

    font-weight: 700;

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        opacity 0.2s ease;
}


/* NO */

.clear-no-btn {
    color: var(--text);

    background: #eef1f4;

    border:
        1px solid #dce2e8;
}

.clear-no-btn:hover {
    background: #e5e9ed;
}


/* YES */

.clear-yes-btn {
    color: white;

    background: var(--danger);
}

.clear-yes-btn:hover {
    background: #a91f1f;

    transform: translateY(-1px);
}


/* =========================================================
   CLEAR CHAT LOADING STATE
========================================================= */

.clear-chat-loading {
    display: none;

    align-items: center;

    justify-content: center;

    gap: 8px;

    margin:
        -1px 0 16px;

    color: var(--primary);

    font-size: 11px;

    font-weight: 600;
}

.clear-chat-loading[aria-hidden="false"] {
    display: flex;
}

.clear-loading-spinner {
    display: flex;

    align-items: center;

    justify-content: center;

    width: 18px;

    height: 18px;
}

.clear-loading-spinner i {
    font-size: 14px;

    animation:
        clearSpinner 0.8s linear infinite;
}

@keyframes clearSpinner {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


/* Loading modal buttons */

.clear-confirm-card.is-loading
.clear-confirm-actions button {
    pointer-events: none;

    opacity: 0.45;
}

.clear-confirm-card.is-loading
.clear-confirm-actions .clear-yes-btn {
    opacity: 1;

    background: var(--primary);
}


/* =========================================================
   SCROLL REVEAL SUPPORT
========================================================= */

.reveal,
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;

    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.reveal,
.reveal-up {
    transform:
        translateY(25px);
}

.reveal-left {
    transform:
        translateX(-25px);
}

.reveal-right {
    transform:
        translateX(25px);
}

.reveal.revealed,
.reveal-up.revealed,
.reveal-left.revealed,
.reveal-right.revealed {
    opacity: 1;

    transform:
        translate(0);
}


/* =========================================================
   RESPONSIVE NAV / FOOTER
========================================================= */

@media (max-width: 900px) {

    .nav-menu {
        position: absolute;

        top: 76px;

        left: 0;

        right: 0;

        display: none;

        flex-direction: column;

        align-items: stretch;

        gap: 5px;

        padding:
            14px 24px 20px;

        background: white;

        border-bottom:
            1px solid var(--border);

        box-shadow:
            0 18px 30px
            rgba(7, 40, 85, 0.08);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        padding: 12px;
    }

    .nav-link::after {
        display: none;
    }

    .nav-cta {
        margin-top: 4px;
    }

    .btn-nav-cta {
        width: 100%;

        justify-content: center;

        margin-left: 0;
    }

    .hamburger {
        display: flex;
    }

    .footer-container {
        grid-template-columns:
            1fr 1fr;

        gap: 40px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .container,
    .nav-container {
        width:
            calc(100% - 30px);
    }

    .top-bar {
        height: 34px;

        font-size: 10px;
    }

    .nav-container {
        min-height: 68px;
    }

    .nav-menu {
        top: 68px;

        padding-inline: 15px;
    }

    .nav-logo-img {
        width: 42px;

        height: 42px;
    }

    .nav-brand strong {
        font-size: 17px;
    }

    .nav-brand small {
        font-size: 7px;

        letter-spacing: 1.5px;
    }


    /* -----------------------------------------------------
       FOOTER
    ----------------------------------------------------- */

    .footer-container {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;

        justify-content: center;

        padding-block: 16px;

        text-align: center;
    }


    /* -----------------------------------------------------
       WHATSAPP
    ----------------------------------------------------- */

    .floating-wa {
        right: 15px;

        bottom: 15px;

        width: 46px;

        height: 46px;
    }


    /* -----------------------------------------------------
       BACK TO TOP
    ----------------------------------------------------- */

    .back-to-top {
        right: 15px;

        bottom: 78px;

        width: 42px;

        height: 42px;
    }


    /* -----------------------------------------------------
       CHAT WIDGET
    ----------------------------------------------------- */

    .chat-widget {
        right: 15px;

        bottom: 132px;
    }

    .chat-toggle {
        width: 50px;

        height: 50px;
    }


    /* -----------------------------------------------------
       CHAT WINDOW

       Original mobile positioning preserved:
       fixed near the bottom-right.
    ----------------------------------------------------- */

    .chat-window {
        position: fixed;

        right: 12px;

        left: 12px;

        bottom: 48px;

        width: auto;

        max-width: none;

        border-radius: 16px;
    }


    /* -----------------------------------------------------
       HEADER
    ----------------------------------------------------- */

    .chat-header {
        height: 60px;

        min-height: 60px;

        max-height: 60px;

        flex-basis: 60px;

        padding:
            10px 11px;
    }

    .chat-brand {
        gap: 8px;

        font-size: 11.5px;
    }

    .chat-brand img {
        width: 34px;

        height: 34px;

        min-width: 34px;

        min-height: 34px;
    }


    /* -----------------------------------------------------
       START
    ----------------------------------------------------- */

    .chat-start {
        min-height: 385px;

        padding:
            22px 18px;
    }

    .chat-start-icon {
        width: 48px;

        height: 48px;

        min-width: 48px;

        min-height: 48px;
    }

    .chat-start h3 {
        font-size: 18px;
    }

    .chat-start p {
        font-size: 11.5px;

        margin-bottom: 15px;
    }

    .chat-input-field {
        height: 42px;

        min-height: 42px;
    }

    .chat-start-btn {
        height: 42px;

        min-height: 42px;
    }


    /* -----------------------------------------------------
       ACTIVE CHAT
    ----------------------------------------------------- */

    .chat-screen {
        height: 385px;

        min-height: 385px;

        max-height: 385px;

        grid-template-rows:
            minmax(0, 1fr)
            57px;
    }


    /* -----------------------------------------------------
       MESSAGES
    ----------------------------------------------------- */

    .chat-messages {
        padding:
            13px 11px 10px;

        gap: 8px;
    }

    .chat-message {
        max-width: 82%;

        padding:
            8px 10px;

        font-size: 12px;
    }


    /* -----------------------------------------------------
       INPUT

       ALWAYS THE LAST ROW.
    ----------------------------------------------------- */

    .chat-input-area {
        height: 57px;

        min-height: 57px;

        max-height: 57px;

        padding:
            8px;
    }

    .chat-input-area input {
        height: 40px;

        min-height: 40px;

        max-height: 40px;

        font-size: 12px;
    }

    .chat-input-area button {
        width: 40px;

        min-width: 40px;

        height: 40px;

        min-height: 40px;

        flex-basis: 40px;
    }


    /* -----------------------------------------------------
       CLEAR MODAL
    ----------------------------------------------------- */

    .clear-confirm-bar {
        padding:
            14px;
    }

    .clear-confirm-card {
        max-width: 278px;

        padding:
            20px 17px 17px;
    }

    .clear-confirm-card p {
        font-size: 11px;
    }
}


/* =========================================================
   SMALL PHONES
========================================================= */

@media (max-width: 400px) {

    .container,
    .nav-container {
        width:
            calc(100% - 24px);
    }


    /* -----------------------------------------------------
       LOGO
    ----------------------------------------------------- */

    .nav-logo-img {
        width: 40px;

        height: 40px;
    }

    .nav-brand strong {
        font-size: 15px;
    }

    .nav-brand small {
        font-size: 6.5px;

        letter-spacing: 1.2px;
    }


    /* -----------------------------------------------------
       FLOATING CONTROLS
    ----------------------------------------------------- */

    .floating-wa {
        right: 15px;

        bottom: 15px;

        width: 44px;

        height: 44px;
    }

    .back-to-top {
        right: 15px;

        bottom: 72px;

        width: 42px;

        height: 42px;
    }


    /* -----------------------------------------------------
       CHAT
    ----------------------------------------------------- */

    .chat-widget {
        right: 13px;

        bottom: 126px;
    }

    .chat-toggle {
        width: 47px;

        height: 47px;

        font-size: 17px;
    }

    .chat-window {
        position: fixed;

        right: 13px;

        left: 13px;

        bottom: 58px;

        width: auto;

        border-radius: 14px;
    }


    /* -----------------------------------------------------
       HEADER
    ----------------------------------------------------- */

    .chat-header {
        height: 57px;

        min-height: 57px;

        max-height: 57px;

        flex-basis: 57px;

        padding:
            9px 10px;
    }

    .chat-brand {
        gap: 7px;

        font-size: 11px;
    }

    .chat-brand img {
        width: 32px;

        height: 32px;

        min-width: 32px;

        min-height: 32px;
    }

    .chat-header-actions {
        gap: 3px;
    }

    .chat-header-actions button {
        width: 29px;

        height: 29px;

        min-width: 29px;

        min-height: 29px;
    }


    /* -----------------------------------------------------
       START
    ----------------------------------------------------- */

    .chat-start {
        min-height: 375px;

        padding:
            18px 14px;
    }

    .chat-start-icon {
        width: 46px;

        height: 46px;

        min-width: 46px;

        min-height: 46px;

        margin-bottom: 10px;
    }

    .chat-start h3 {
        font-size: 17px;
    }

    .chat-start p {
        font-size: 11px;

        margin-bottom: 13px;
    }

    .chat-input-field {
        height: 40px;

        min-height: 40px;

        margin-bottom: 8px;

        font-size: 11.5px;
    }

    .chat-start-btn {
        height: 40px;

        min-height: 40px;

        font-size: 11.5px;
    }


    /* -----------------------------------------------------
       ACTIVE CHAT
    ----------------------------------------------------- */

    .chat-screen {
        height: 375px;

        min-height: 375px;

        max-height: 375px;

        grid-template-rows:
            minmax(0, 1fr)
            55px;
    }


    /* -----------------------------------------------------
       MESSAGES
    ----------------------------------------------------- */

    .chat-messages {
        padding:
            11px 9px 8px;

        gap: 7px;
    }

    .chat-message {
        max-width: 86%;

        padding:
            7px 9px;

        font-size: 11.5px;
    }


    /* -----------------------------------------------------
       INPUT
    ----------------------------------------------------- */

    .chat-input-area {
        height: 55px;

        min-height: 55px;

        max-height: 55px;

        padding:
            7px;

        gap: 6px;
    }

    .chat-input-area input {
        height: 38px;

        min-height: 38px;

        max-height: 38px;

        padding:
            0 11px;

        font-size: 11.5px;
    }

    .chat-input-area button {
        width: 38px;

        min-width: 38px;

        height: 38px;

        min-height: 38px;

        flex-basis: 38px;
    }


    /* -----------------------------------------------------
       CLEAR MODAL
    ----------------------------------------------------- */

    .clear-confirm-card {
        max-width: 264px;

        padding:
            19px 15px 16px;
    }

    .clear-confirm-icon {
        width: 45px;

        height: 45px;

        font-size: 17px;
    }

    .clear-confirm-card h3 {
        font-size: 17px;
    }

    .clear-confirm-card p {
        font-size: 10.8px;

        line-height: 1.55;
    }

    .clear-confirm-actions button {
        height: 38px;

        min-height: 38px;

        font-size: 10px;
    }
}


/* =========================================================
   VERY SMALL PHONES
========================================================= */

@media (max-width: 340px) {

    .top-bar {
        height: 32px;

        font-size: 9px;
    }

    .top-bar-track {
        gap: 35px;
    }

    .nav-container {
        width:
            calc(100% - 20px);
    }

    .nav-brand strong {
        font-size: 14px;
    }

    .nav-brand small {
        display: none;
    }


    /* -----------------------------------------------------
       FLOATING
    ----------------------------------------------------- */

    .floating-wa {
        right: 12px;

        bottom: 13px;

        width: 42px;

        height: 42px;
    }

    .back-to-top {
        right: 12px;

        bottom: 66px;

        width: 40px;

        height: 40px;
    }


    /* -----------------------------------------------------
       CHAT
    ----------------------------------------------------- */

    .chat-widget {
        right: 10px;

        bottom: 110px;
    }

    .chat-toggle {
        width: 44px;

        height: 44px;

        font-size: 16px;
    }

    .chat-window {
        position: fixed;

        right: 10px;

        left: 10px;

        bottom: 54px;

        width: auto;
    }


    /* -----------------------------------------------------
       HEADER
    ----------------------------------------------------- */

    .chat-header {
        height: 53px;

        min-height: 53px;

        max-height: 53px;

        flex-basis: 53px;

        padding:
            8px 9px;
    }

    .chat-brand {
        gap: 7px;

        font-size: 10px;
    }

    .chat-brand img {
        width: 29px;

        height: 29px;

        min-width: 29px;

        min-height: 29px;
    }

    .chat-header-actions button {
        width: 27px;

        height: 27px;

        min-width: 27px;

        min-height: 27px;
    }


    /* -----------------------------------------------------
       START
    ----------------------------------------------------- */

    .chat-start {
        min-height: 365px;

        padding:
            14px 10px;
    }

    .chat-start-icon {
        width: 43px;

        height: 43px;

        min-width: 43px;

        min-height: 43px;

        margin-bottom: 9px;
    }

    .chat-start h3 {
        font-size: 16px;
    }

    .chat-start p {
        font-size: 10.5px;

        margin-bottom: 11px;
    }

    .chat-input-field {
        height: 38px;

        min-height: 38px;

        font-size: 11px;
    }

    .chat-start-btn {
        height: 38px;

        min-height: 38px;

        font-size: 11px;
    }


    /* -----------------------------------------------------
       ACTIVE CHAT
    ----------------------------------------------------- */

    .chat-screen {
        height: 365px;

        min-height: 365px;

        max-height: 365px;

        grid-template-rows:
            minmax(0, 1fr)
            52px;
    }


    /* -----------------------------------------------------
       MESSAGES
    ----------------------------------------------------- */

    .chat-messages {
        padding:
            8px 7px 7px;

        gap: 6px;
    }

    .chat-message {
        max-width: 89%;

        padding:
            6px 8px;

        font-size: 10.8px;
    }


    /* -----------------------------------------------------
       INPUT
    ----------------------------------------------------- */

    .chat-input-area {
        height: 52px;

        min-height: 52px;

        max-height: 52px;

        padding:
            6px;

        gap: 5px;
    }

    .chat-input-area input {
        height: 36px;

        min-height: 36px;

        max-height: 36px;

        padding:
            0 9px;

        font-size: 10.8px;
    }

    .chat-input-area button {
        width: 36px;

        min-width: 36px;

        height: 36px;

        min-height: 36px;

        flex-basis: 36px;
    }


    /* -----------------------------------------------------
       CLEAR MODAL

       Stack buttons on very narrow phones.
    ----------------------------------------------------- */

    .clear-confirm-bar {
        padding:
            12px;
    }

    .clear-confirm-card {
        max-width: 250px;

        padding:
            17px 13px 14px;
    }

    .clear-confirm-actions {
        grid-template-columns: 1fr;
    }

    .clear-confirm-actions button {
        width: 100%;
    }
}


/* =========================================================
   SHORT SCREENS

   Keep the chat from becoming too tall on laptops/phones
   with short viewport heights.
========================================================= */

@media (max-height: 600px) and (min-width: 601px) {

    .chat-screen {
        height:
            min(
                390px,
                calc(100dvh - 120px)
            );

        min-height:
            min(
                390px,
                calc(100dvh - 120px)
            );

        max-height:
            calc(100dvh - 120px);
    }

    .chat-window {
        max-height:
            calc(100dvh - 70px);
    }
}

@media (max-height: 600px) and (max-width: 600px) {

    .chat-screen {
        height:
            min(
                375px,
                calc(100dvh - 105px)
            );

        min-height:
            min(
                375px,
                calc(100dvh - 105px)
            );

        max-height:
            calc(100dvh - 105px);
    }

    .chat-window {
        max-height:
            calc(100dvh - 45px);
    }
}


/* =========================================================
   TOUCH DEVICES
========================================================= */

@media (hover: none) {

    .chat-toggle:hover {
        transform: none;
    }

    .chat-start-btn:hover {
        transform: none;
    }

    .chat-input-area button:hover {
        transform: none;
    }

    .floating-wa:hover {
        transform: none;
    }

    .back-to-top:hover {
        transform: none;
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .top-bar-track {
        animation: none;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;

        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;
    }

    .chat-messages {
        scroll-behavior: auto;
    }
}