/* ============================================================
   SRIJAN PARALLEL COMPUTING
   GLOBAL COMPONENT SYSTEM

   File:
   /css/components.css

   Components:
   01. Variables
   02. Base
   03. Header
   04. Desktop navigation
   05. Mobile navigation
   06. Footer
   07. Floating actions
   08. Chatbot
   09. Responsive system
   10. Accessibility
============================================================ */


/* ============================================================
   01. VARIABLES
============================================================ */

:root {

    --spc-primary: #197da6;
    --spc-primary-dark: #125f7c;
    --spc-primary-deep: #0c4d65;
    --spc-primary-light: #71c5df;

    --spc-dark: #17343d;
    --spc-dark-2: #102a34;
    --spc-dark-3: #214651;

    --spc-bg: #f7f4ed;
    --spc-surface: #fffdf8;
    --spc-surface-2: #f1ede4;

    --spc-white: #ffffff;

    --spc-heading: #17343d;
    --spc-text: #43565d;
    --spc-muted: #748188;

    --spc-accent: #d59a3a;

    --spc-border:
        rgba(23, 52, 61, 0.10);

    --spc-border-primary:
        rgba(25, 125, 166, 0.18);

    --spc-shadow-sm:
        0 7px 22px rgba(23, 52, 61, 0.08);

    --spc-shadow-md:
        0 15px 38px rgba(23, 52, 61, 0.13);

    --spc-shadow-lg:
        0 25px 70px rgba(23, 52, 61, 0.22);

    --spc-radius-sm: 10px;
    --spc-radius-md: 14px;
    --spc-radius-lg: 20px;
    --spc-radius-xl: 28px;
    --spc-radius-pill: 999px;

    --spc-container-width: 1200px;

    --spc-header-height: 82px;

    --spc-action-size: 50px;
    --spc-action-gap: 9px;
    --spc-action-bottom: 22px;

    --spc-transition:
        220ms cubic-bezier(.22, .61, .36, 1);

}


/* ============================================================
   02. BASE
============================================================ */

.spc-header *,
.spc-footer *,
.spc-floating-actions *,
.spc-chatbot * {
    box-sizing: border-box;
}


.spc-header a,
.spc-footer a,
.spc-floating-actions a,
.spc-chatbot a {
    text-decoration: none;
}


.spc-header button,
.spc-footer button,
.spc-floating-actions button,
.spc-chatbot button,
.spc-chatbot input {
    font-family: inherit;
}


.spc-header img,
.spc-footer img {
    max-width: 100%;
}


.spc-container {
    width:
        min(
            calc(100% - 48px),
            var(--spc-container-width)
        );

    margin-inline: auto;
}


html {
    scroll-padding-top:
        calc(
            var(--spc-header-height) + 20px
        );
}


body.spc-menu-open {
    overflow: hidden;
}


/* ============================================================
   03. HEADER
============================================================ */

/*
   IMPORTANT:

   The header itself is sticky rather than fixed.

   This means it remains visible while scrolling but still
   occupies normal document space.

   Therefore page content cannot disappear underneath it.
*/

.spc-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;

    z-index: 10000;

    background:
        rgba(247, 244, 237, 0.94);

    border-bottom:
        1px solid var(--spc-border);

    backdrop-filter:
        blur(18px);

    -webkit-backdrop-filter:
        blur(18px);

    transition:
        background var(--spc-transition),
        box-shadow var(--spc-transition),
        border-color var(--spc-transition);
}


.spc-header--scrolled {
    background:
        rgba(255, 253, 248, 0.97);

    border-color:
        rgba(25, 125, 166, 0.14);

    box-shadow:
        0 10px 35px rgba(23, 52, 61, 0.10);
}


.spc-header__bar {
    min-height:
        var(--spc-header-height);
}


.spc-header__inner {
    min-height:
        var(--spc-header-height);

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;
}


/* ============================================================
   BRAND
============================================================ */

.spc-brand {
    display: inline-flex;

    align-items: center;

    gap: 11px;

    min-width: 0;

    flex-shrink: 0;

    color: var(--spc-heading);

    transition:
        transform var(--spc-transition);
}


.spc-brand:hover {
    color: var(--spc-heading);

    transform:
        translateY(-1px);
}


.spc-brand__logo-wrap {
    width: 52px;
    height: 52px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 50%;

    background:
        var(--spc-white);

    border:
        1px solid rgba(25, 125, 166, 0.10);

    box-shadow:
        0 6px 18px rgba(23, 52, 61, 0.10);
}


.spc-brand__logo {
    width: 46px;
    height: 46px;

    object-fit: contain;

    display: block;
}


.spc-brand__text {
    min-width: 0;

    display: flex;

    flex-direction: column;
}


.spc-brand__name {
    display: block;

    color: var(--spc-heading);

    font-size: 0.96rem;

    font-weight: 800;

    line-height: 1.15;

    letter-spacing: -0.02em;

    white-space: nowrap;
}


.spc-brand__tagline {
    display: block;

    margin-top: 4px;

    color: var(--spc-primary);

    font-size: 0.52rem;

    font-weight: 800;

    line-height: 1;

    letter-spacing: 0.17em;

    text-transform: uppercase;
}


/* ============================================================
   04. DESKTOP NAVIGATION
============================================================ */

.spc-navigation {
    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 3px;

    min-width: 0;
}


.spc-navigation > a {
    position: relative;

    min-height: 46px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding:
        0 10px;

    border-radius:
        var(--spc-radius-sm);

    color:
        #38525b;

    font-size:
        0.82rem;

    font-weight:
        650;

    line-height:
        1;

    white-space:
        nowrap;

    transition:
        color var(--spc-transition),
        background var(--spc-transition),
        transform var(--spc-transition);
}


.spc-navigation > a:hover {
    color:
        var(--spc-primary);

    background:
        rgba(25, 125, 166, 0.07);

    transform:
        translateY(-1px);
}


.spc-navigation > a.active {
    color:
        var(--spc-primary);
}


.spc-navigation > a.active::after {
    content: "";

    position: absolute;

    left: 10px;
    right: 10px;

    bottom: 3px;

    height: 2px;

    border-radius:
        var(--spc-radius-pill);

    background:
        var(--spc-primary);
}


/* Navigation numbering */

.spc-navigation > a[data-spc-nav]::before {
    margin-right: 5px;

    color:
        var(--spc-primary);

    font-size:
        0.47rem;

    font-weight:
        900;

    letter-spacing:
        0.04em;

    opacity:
        0.75;
}


.spc-navigation > a[data-spc-nav="home"]::before {
    content: "01";
}

.spc-navigation > a[data-spc-nav="about"]::before {
    content: "02";
}

.spc-navigation > a[data-spc-nav="courses"]::before {
    content: "03";
}

.spc-navigation > a[data-spc-nav="team"]::before {
    content: "04";
}

.spc-navigation > a[data-spc-nav="why-us"]::before {
    content: "05";
}

.spc-navigation > a[data-spc-nav="testimonials"]::before {
    content: "06";
}

.spc-navigation > a[data-spc-nav="faq"]::before {
    content: "07";
}

.spc-navigation > a[data-spc-nav="test"]::before {
    content: "08";
}


/* Contact CTA */

.spc-navigation__cta {
    min-height:
        46px !important;

    margin-left:
        8px;

    padding:
        0 17px !important;

    gap:
        7px;

    border-radius:
        var(--spc-radius-pill) !important;

    color:
        var(--spc-white) !important;

    background:
        var(--spc-primary) !important;

    box-shadow:
        0 9px 22px rgba(25, 125, 166, 0.20);

    font-size:
        0.76rem !important;

    font-weight:
        750 !important;
}


.spc-navigation__cta::before {
    display: none !important;
}


.spc-navigation__cta:hover {
    color:
        var(--spc-white) !important;

    background:
        var(--spc-primary-dark) !important;

    transform:
        translateY(-2px);
}


/* ============================================================
   05. MOBILE MENU BUTTON
============================================================ */

.spc-menu-toggle {
    display: none;

    width: 46px;
    height: 46px;

    flex-shrink: 0;

    align-items: center;
    justify-content: center;

    flex-direction: column;

    gap: 5px;

    padding: 0;

    border:
        1px solid rgba(25, 125, 166, 0.17);

    border-radius:
        13px;

    color:
        var(--spc-heading);

    background:
        rgba(255, 253, 248, 0.82);

    cursor: pointer;

    box-shadow:
        0 5px 15px rgba(23, 52, 61, 0.06);

    transition:
        background var(--spc-transition),
        border-color var(--spc-transition),
        box-shadow var(--spc-transition);
}


.spc-menu-toggle:hover {
    background:
        var(--spc-white);

    border-color:
        rgba(25, 125, 166, 0.35);

    box-shadow:
        var(--spc-shadow-sm);
}


.spc-menu-toggle span {
    display: block;

    width: 21px;
    height: 2px;

    flex-shrink: 0;

    border-radius:
        999px;

    background:
        var(--spc-heading);

    transition:
        transform var(--spc-transition),
        opacity var(--spc-transition);
}


.spc-menu-toggle.is-open span:nth-child(1) {
    transform:
        translateY(7px)
        rotate(45deg);
}


.spc-menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}


.spc-menu-toggle.is-open span:nth-child(3) {
    transform:
        translateY(-7px)
        rotate(-45deg);
}


/* ============================================================
   MOBILE NAVIGATION — FIXED
============================================================ */

.spc-mobile-navigation {
    position: fixed;

    top: var(--spc-header-height);
    left: 0;
    right: 0;
    bottom: 0;

    width: 100%;
    height: calc(100dvh - var(--spc-header-height));

    display: block !important;

    z-index: 99999;

    overflow: hidden;

    visibility: hidden;
    opacity: 0;

    pointer-events: none;

    background: rgba(12, 35, 44, 0.48);

    transition:
        opacity 220ms ease,
        visibility 220ms ease;
}


/* ============================================================
   OPEN STATE

   IMPORTANT:
   !important prevents older component CSS from hiding
   the navigation with display:none.
============================================================ */

.spc-mobile-navigation.is-open {
    display: block !important;

    visibility: visible !important;

    opacity: 1 !important;

    pointer-events: auto !important;
}


/* ============================================================
   BACKDROP
============================================================ */

.spc-mobile-navigation__backdrop {
    position: absolute;

    inset: 0;

    display: block;

    background:
        rgba(12, 35, 44, 0.48);

    backdrop-filter:
        blur(4px);

    -webkit-backdrop-filter:
        blur(4px);
}


/* ============================================================
   PANEL
============================================================ */

.spc-mobile-navigation__panel {
    position: absolute;

    top: 0;
    right: 0;
    bottom: 0;

    width: min(100%, 520px);

    height: 100%;

    min-height: 0;

    display: flex;

    flex-direction: column;

    overflow: hidden;

    padding:
        0 20px 18px;

    background:
        linear-gradient(
            180deg,
            #fffdf8 0%,
            #f3efe6 100%
        );

    box-shadow:
        -18px 0 55px
        rgba(10, 31, 38, 0.22);

    transform:
        translateX(100%);

    transition:
        transform 280ms
        cubic-bezier(.22,.61,.36,1);
}


.spc-mobile-navigation.is-open
.spc-mobile-navigation__panel {
    transform:
        translateX(0);
}


/* ============================================================
   MOBILE NAVIGATION LINKS
============================================================ */

.spc-mobile-navigation__links {
    flex: 1 1 auto;

    min-height: 0;

    display: flex;

    flex-direction: column;

    overflow-x: hidden;

    overflow-y: auto;

    padding:
        6px 0;

    overscroll-behavior:
        contain;
}


.spc-mobile-navigation__links a {
    min-height: 54px;

    flex-shrink: 0;

    display: grid;

    grid-template-columns:
        32px minmax(0, 1fr) 28px;

    align-items: center;

    gap: 9px;

    padding:
        0 7px;

    border-bottom:
        1px solid
        rgba(23, 52, 61, 0.07);

    color:
        var(--spc-heading);

    font-size:
        0.90rem;

    font-weight:
        400;

    font-style:
        italic;

    text-decoration:
        none;

    transition:
        color 200ms ease,
        background 200ms ease,
        padding-left 200ms ease;
}


.spc-mobile-navigation__links a:hover,
.spc-mobile-navigation__links a.active {
    padding-left:
        13px;

    color:
        var(--spc-primary);

    background:
        rgba(25, 125, 166, 0.055);
}


.spc-mobile-navigation__number {
    color:
        var(--spc-primary);

    font-size:
        0.50rem;

    font-weight:
        800;

    font-style:
        normal;
}


.spc-mobile-navigation__label {
    min-width: 0;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

    color: inherit;

    font-size:
        0.90rem;

    font-weight:
        400;

    font-style:
        italic;
}


.spc-mobile-navigation__arrow {
    width: 28px;
    height: 28px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color:
        var(--spc-primary);

    background:
        rgba(25, 125, 166, 0.07);

    font-size:
        0.72rem;

    transition:
        transform 200ms ease,
        background 200ms ease;
}


.spc-mobile-navigation__links a:hover
.spc-mobile-navigation__arrow,
.spc-mobile-navigation__links a.active
.spc-mobile-navigation__arrow {
    transform:
        translate(2px, -2px);

    background:
        rgba(25, 125, 166, 0.14);
}


/* ============================================================
   MOBILE BREAKPOINT
============================================================ */

@media (max-width: 991.98px) {

    .spc-navigation {
        display: none !important;
    }

    .spc-menu-toggle {
        display: flex !important;
    }

    .spc-mobile-navigation {
        display: block !important;

        top:
            var(--spc-header-height);

        height:
            calc(100dvh - var(--spc-header-height));
    }

}


/* ============================================================
   SMALL MOBILE
============================================================ */

@media (max-width: 575.98px) {

    .spc-mobile-navigation {
        top:
            var(--spc-header-height);

        height:
            calc(100dvh - var(--spc-header-height));
    }

    .spc-mobile-navigation__panel {
        width: 100%;

        padding:
            0 14px 14px;
    }

    .spc-mobile-navigation__links a {
        min-height: 49px;
    }

    .spc-mobile-navigation__label {
        font-size: 0.84rem;

        font-weight: 400;

        font-style: italic;
    }

}
/* Mobile footer */

.spc-mobile-navigation__footer {
    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    margin-top: 10px;

    padding:
        14px;

    border-radius:
        var(--spc-radius-md);

    background:
        var(--spc-dark-2);
}


.spc-mobile-navigation__footer span {
    display: block;

    color:
        var(--spc-primary-light);

    font-size:
        0.48rem;

    font-weight:
        850;

    letter-spacing:
        0.10em;

    text-transform:
        uppercase;
}


.spc-mobile-navigation__footer strong {
    display: block;

    margin-top: 4px;

    color:
        var(--spc-white);

    font-size:
        0.74rem;

    font-weight:
        650;

    line-height:
        1.35;
}


.spc-mobile-navigation__footer a {
    min-height: 40px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 6px;

    flex-shrink: 0;

    padding:
        0 14px;

    border-radius:
        var(--spc-radius-pill);

    color:
        var(--spc-white);

    background:
        var(--spc-primary);

    font-size:
        0.63rem;

    font-weight:
        750;

    white-space:
        nowrap;

    transition:
        background var(--spc-transition),
        transform var(--spc-transition);
}


.spc-mobile-navigation__footer a:hover {
    color:
        var(--spc-white);

    background:
        var(--spc-primary-dark);

    transform:
        translateY(-2px);
}


/* ============================================================
   06. FOOTER
============================================================ */

.spc-footer {
    position: relative;

    overflow: hidden;

    color:
        rgba(255, 255, 255, 0.72);

    background:
        var(--spc-dark);
}


.spc-footer__glow {
    position: absolute;

    width: 280px;
    height: 280px;

    border-radius: 50%;

    pointer-events: none;

    opacity: 0.15;

    filter:
        blur(60px);

    background:
        var(--spc-primary);
}


.spc-footer__glow--one {
    top: -170px;
    right: -80px;
}


.spc-footer__glow--two {
    bottom: -200px;
    left: -100px;
}


/* Footer main */

.spc-footer__main {
    position: relative;

    padding:
        76px 0 60px;
}


.spc-footer__grid {
    display: grid;

    grid-template-columns:
        minmax(280px, 1.7fr)
        repeat(3, minmax(150px, 1fr));

    gap:
        48px;
}


/* Brand */

.spc-footer__brand-link {
    display: inline-flex;

    align-items: center;

    gap: 11px;

    color:
        var(--spc-white);
}


.spc-footer__brand-link:hover {
    color:
        var(--spc-white);
}


.spc-footer__logo-wrap {
    width: 50px;
    height: 50px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        rgba(255,255,255,0.96);
}


.spc-footer__logo-wrap img {
    width: 44px;
    height: 44px;

    object-fit: contain;
}


.spc-footer__brand-text {
    display: flex;

    flex-direction: column;
}


.spc-footer__brand-text strong {
    color:
        var(--spc-white);

    font-size:
        0.92rem;

    font-weight:
        800;

    line-height:
        1.2;
}


.spc-footer__brand-text span {
    margin-top: 4px;

    color:
        var(--spc-primary-light);

    font-size:
        0.50rem;

    font-weight:
        800;

    letter-spacing:
        0.15em;

    text-transform:
        uppercase;
}


.spc-footer__brand p {
    max-width: 440px;

    margin:
        21px 0 0;

    color:
        rgba(255,255,255,0.58);

    font-size:
        0.78rem;

    line-height:
        1.8;
}


/* Social */

.spc-footer__social {
    display: flex;

    gap: 8px;

    margin-top:
        23px;
}


.spc-footer__social a {
    width: 40px;
    height: 40px;

    display: flex;

    align-items: center;
    justify-content: center;

    border:
        1px solid rgba(255,255,255,0.12);

    border-radius:
        11px;

    color:
        rgba(255,255,255,0.72);

    background:
        rgba(255,255,255,0.045);

    transition:
        color var(--spc-transition),
        background var(--spc-transition),
        transform var(--spc-transition),
        border-color var(--spc-transition);
}


.spc-footer__social a:hover {
    color:
        var(--spc-white);

    background:
        var(--spc-primary);

    border-color:
        var(--spc-primary);

    transform:
        translateY(-3px);
}


/* Footer columns */

.spc-footer__column {
    display: flex;

    flex-direction: column;

    align-items: flex-start;
}


.spc-footer__column-label {
    margin-bottom: 7px;

    color:
        var(--spc-primary-light);

    font-size:
        0.48rem;

    font-weight:
        850;

    letter-spacing:
        0.15em;

    text-transform:
        uppercase;
}


.spc-footer__column h3 {
    margin:
        0 0 18px;

    color:
        var(--spc-white);

    font-size:
        0.88rem;

    font-weight:
        800;
}


.spc-footer__column h3::after {
    content: "";

    display: block;

    width: 28px;
    height: 2px;

    margin-top: 8px;

    border-radius:
        999px;

    background:
        var(--spc-primary);
}


.spc-footer__column > a {
    display: inline-flex;

    align-items: center;

    gap: 6px;

    margin-bottom:
        11px;

    color:
        rgba(255,255,255,0.60);

    font-size:
        0.75rem;

    line-height:
        1.5;

    transition:
        color var(--spc-transition),
        transform var(--spc-transition);
}


.spc-footer__column > a:hover {
    color:
        var(--spc-primary-light);

    transform:
        translateX(4px);
}


/* Contact */

.spc-footer__contact-item {
    width: 100%;
}


.spc-footer__contact-icon {
    width: 29px;
    height: 29px;

    flex-shrink: 0;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    border-radius: 9px;

    color:
        var(--spc-primary-light);

    background:
        rgba(25,125,166,0.12);

    font-size:
        0.68rem;
}


.spc-footer__address {
    display: flex;

    align-items: flex-start;

    gap: 9px;

    margin-top: 2px;

    color:
        rgba(255,255,255,0.57);

    font-size:
        0.71rem;

    line-height:
        1.65;
}


/* CTA strip */

.spc-footer__cta {
    position: relative;

    border-top:
        1px solid rgba(255,255,255,0.08);

    border-bottom:
        1px solid rgba(255,255,255,0.08);

    background:
        rgba(255,255,255,0.025);
}


.spc-footer__cta-inner {
    min-height: 100px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;
}


.spc-footer__cta-inner > div span {
    display: block;

    color:
        var(--spc-primary-light);

    font-size:
        0.50rem;

    font-weight:
        850;

    letter-spacing:
        0.14em;
}


.spc-footer__cta-inner strong {
    display: block;

    margin-top: 5px;

    color:
        var(--spc-white);

    font-size:
        0.92rem;

    font-weight:
        650;
}


.spc-footer__cta-button {
    min-height: 43px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 7px;

    padding:
        0 17px;

    flex-shrink: 0;

    border-radius:
        var(--spc-radius-pill);

    color:
        var(--spc-white);

    background:
        var(--spc-primary);

    font-size:
        0.68rem;

    font-weight:
        750;

    transition:
        background var(--spc-transition),
        transform var(--spc-transition);
}


.spc-footer__cta-button:hover {
    color:
        var(--spc-white);

    background:
        var(--spc-primary-dark);

    transform:
        translateY(-2px);
}


/* Footer bottom */

.spc-footer__bottom {
    position: relative;

    background:
        rgba(0,0,0,0.14);
}


.spc-footer__bottom-inner {
    min-height: 68px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;
}


.spc-footer__bottom-inner > span {
    color:
        rgba(255,255,255,0.44);

    font-size:
        0.65rem;

    line-height:
        1.5;
}


.spc-footer__legal {
    display: flex;

    align-items: center;

    gap: 20px;
}


.spc-footer__legal a {
    color:
        rgba(255,255,255,0.50);

    font-size:
        0.65rem;

    transition:
        color var(--spc-transition);
}


.spc-footer__legal a:hover {
    color:
        var(--spc-primary-light);
}


/* ============================================================
   07. FLOATING ACTIONS
============================================================ */

.spc-floating-actions {
    position: fixed;

    right:
        var(--spc-action-bottom);

    bottom:
        var(--spc-action-bottom);

    width:
        var(--spc-action-size);

    height:
        calc(
            var(--spc-action-size) * 3 +
            var(--spc-action-gap) * 2
        );

    z-index:
        9200;

    pointer-events:
        none;
}


.spc-floating-action {
    position: absolute;

    right: 0;

    width:
        var(--spc-action-size);

    min-width:
        var(--spc-action-size);

    height:
        var(--spc-action-size);

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 0;

    border: 0;

    border-radius: 50%;

    color:
        var(--spc-white);

    cursor: pointer;

    pointer-events: auto;

    box-shadow:
        0 10px 27px rgba(8, 32, 40, 0.22);

    transition:
        transform var(--spc-transition),
        box-shadow var(--spc-transition),
        background var(--spc-transition);
}


.spc-floating-action:hover {
    color:
        var(--spc-white);

    transform:
        translateY(-3px);

    box-shadow:
        0 15px 35px rgba(8,32,40,0.28);
}


/*
   Visual vertical order from bottom:

   WhatsApp = 0
   Call     = 1
   Chatbot  = 2
   Go Top   = 3

   Chatbot is outside this container, so the top action
   occupies the fourth position.
*/

.spc-floating-action--whatsapp {
    bottom: 0;

    background:
        #159447;
}


.spc-floating-action--whatsapp:hover {
    background:
        #117f3d;
}


.spc-floating-action--call {
    bottom:
        calc(
            var(--spc-action-size) +
            var(--spc-action-gap)
        );

    background:
        var(--spc-primary);
}


.spc-floating-action--call:hover {
    background:
        var(--spc-primary-dark);
}


.spc-floating-action--top {
    bottom:
        calc(
            (var(--spc-action-size) +
            var(--spc-action-gap)) * 2
        );

    background:
        var(--spc-dark-2);
}


.spc-floating-action--top:hover {
    background:
        var(--spc-primary);
}


.spc-floating-action__icon {
    width: 32px;
    height: 32px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color:
        inherit;

    background:
        rgba(255,255,255,0.10);

    font-size:
        0.96rem;
}


.spc-floating-action__label {
    display: none !important;
}


/* ============================================================
   08. CHATBOT
============================================================ */

.spc-chatbot {
    position: fixed;

    /*
       Same right rail as floating buttons.
    */

    right:
        var(--spc-action-bottom);

    /*
       Chatbot is the third position:
       WhatsApp
       Call
       Chatbot
       Go Top
    */

    bottom:
        calc(
            var(--spc-action-bottom) +
            (var(--spc-action-size) +
            var(--spc-action-gap)) * 2
        );

    width:
        var(--spc-action-size);

    height:
        var(--spc-action-size);

    z-index:
        9400;
}


/* Chat window */

.spc-chatbot__window {
    position: fixed;

    /*
       Keep window to the LEFT of the floating rail.
       This prevents the chat panel from covering the
       action buttons.
    */

    right:
        calc(
            var(--spc-action-size) +
            var(--spc-action-bottom) +
            14px
        );

    /*
       Never enter the header zone.
    */

    top:
        calc(
            var(--spc-header-height) +
            14px
        );

    bottom:
        calc(
            var(--spc-action-bottom) +
            (var(--spc-action-size) +
            var(--spc-action-gap)) * 3 +
            10px
        );

    width:
        min(
            390px,
            calc(100vw - 100px)
        );

    height:
        min(
            610px,
            calc(
                100dvh -
                var(--spc-header-height) -
                118px
            )
        );

    min-height:
        360px;

    display: flex;

    flex-direction: column;

    overflow: hidden;

    border:
        1px solid var(--spc-border-primary);

    border-radius:
        var(--spc-radius-lg);

    background:
        var(--spc-surface);

    box-shadow:
        var(--spc-shadow-lg);

    opacity:
        0;

    visibility:
        hidden;

    pointer-events:
        none;

    transform:
        translateY(15px)
        scale(0.97);

    transform-origin:
        bottom right;

    transition:
        opacity 220ms ease,
        visibility 220ms ease,
        transform 260ms cubic-bezier(.22,.61,.36,1);
}


.spc-chatbot.is-open
.spc-chatbot__window {
    opacity:
        1;

    visibility:
        visible;

    pointer-events:
        auto;

    transform:
        translateY(0)
        scale(1);
}


/* Chat header */

.spc-chatbot__header {
    min-height: 72px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;

    padding:
        11px 14px;

    color:
        var(--spc-white);

    background:
        linear-gradient(
            135deg,
            var(--spc-dark),
            var(--spc-dark-2)
        );
}


.spc-chatbot__identity {
    min-width: 0;

    display: flex;

    align-items: center;

    gap: 10px;
}


.spc-chatbot__avatar {
    width: 42px;
    height: 42px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius:
        12px;

    color:
        var(--spc-primary-light);

    background:
        rgba(25,125,166,0.17);

    font-size:
        1rem;
}


.spc-chatbot__identity strong {
    display: block;

    color:
        var(--spc-white);

    font-size:
        0.85rem;

    font-weight:
        800;
}


.spc-chatbot__identity span {
    display: block;

    margin-top: 4px;

    color:
        rgba(255,255,255,0.57);

    font-size:
        0.60rem;
}


.spc-chatbot__close {
    width: 36px;
    height: 36px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 0;

    border:
        1px solid rgba(255,255,255,0.13);

    border-radius: 50%;

    color:
        rgba(255,255,255,0.76);

    background:
        rgba(255,255,255,0.05);

    cursor: pointer;

    transition:
        background var(--spc-transition),
        transform var(--spc-transition);
}


.spc-chatbot__close:hover {
    color:
        var(--spc-white);

    background:
        var(--spc-primary);

    transform:
        rotate(90deg);
}


/* Messages */

.spc-chatbot__messages {
    flex:
        1 1 auto;

    min-height: 0;

    overflow-x: hidden;

    overflow-y: auto;

    overscroll-behavior:
        contain;

    padding:
        16px 13px;

    background:
        linear-gradient(
            180deg,
            #faf8f3,
            #f2eee6
        );
}


.spc-chatbot__message {
    display: flex;

    align-items: flex-end;

    gap: 8px;

    margin-bottom: 12px;
}


.spc-chatbot__message--user {
    justify-content: flex-end;
}


.spc-chatbot__message-avatar {
    width: 28px;
    height: 28px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius:
        9px;

    color:
        var(--spc-primary);

    background:
        rgba(25,125,166,0.10);

    font-size:
        0.65rem;
}


.spc-chatbot__bubble {
    max-width:
        82%;

    padding:
        10px 12px;

    color:
        var(--spc-text);

    background:
        var(--spc-white);

    border:
        1px solid rgba(25,125,166,0.08);

    border-radius:
        14px 14px 14px 4px;

    box-shadow:
        0 5px 15px rgba(18,45,55,0.05);

    font-size:
        0.73rem;

    line-height:
        1.65;

    overflow-wrap:
        anywhere;
}


.spc-chatbot__message--user
.spc-chatbot__bubble {
    color:
        var(--spc-white);

    background:
        var(--spc-primary);

    border: 0;

    border-radius:
        14px 14px 4px 14px;
}


/* Quick actions */

.spc-chatbot__quick-actions {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0,1fr));

    gap: 7px;

    margin-top:
        15px;

    margin-bottom:
        15px;
}


.spc-chatbot__quick-actions button {
    min-height: 40px;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 6px;

    padding:
        5px;

    border:
        1px solid rgba(25,125,166,0.13);

    border-radius:
        10px;

    color:
        var(--spc-text);

    background:
        rgba(255,255,255,0.80);

    cursor:
        pointer;

    font-size:
        0.63rem;

    font-weight:
        700;

    transition:
        color var(--spc-transition),
        background var(--spc-transition),
        border-color var(--spc-transition),
        transform var(--spc-transition);
}


.spc-chatbot__quick-actions button:hover {
    color:
        var(--spc-primary);

    border-color:
        rgba(25,125,166,0.30);

    background:
        var(--spc-white);

    transform:
        translateY(-2px);
}


/* Input */

.spc-chatbot__input {
    min-height: 65px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    gap: 8px;

    padding:
        9px 10px;

    border-top:
        1px solid rgba(25,125,166,0.10);

    background:
        var(--spc-white);
}


.spc-chatbot__input input {
    flex:
        1 1 auto;

    min-width: 0;

    height: 43px;

    padding:
        0 12px;

    outline: none;

    border:
        1px solid rgba(25,125,166,0.18);

    border-radius:
        11px;

    color:
        var(--spc-text);

    background:
        var(--spc-bg);

    font-size:
        0.70rem;
}


.spc-chatbot__input input::placeholder {
    color:
        #77888e;
}


.spc-chatbot__input input:focus {
    border-color:
        rgba(25,125,166,0.45);

    background:
        var(--spc-white);

    box-shadow:
        0 0 0 3px rgba(25,125,166,0.07);
}


.spc-chatbot__input button {
    width: 43px;
    height: 43px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 0;

    border: 0;

    border-radius:
        11px;

    color:
        var(--spc-white);

    background:
        var(--spc-primary);

    cursor:
        pointer;

    transition:
        background var(--spc-transition),
        transform var(--spc-transition);
}


.spc-chatbot__input button:hover {
    background:
        var(--spc-primary-dark);

    transform:
        translateY(-2px);
}


/* Response links */

.spc-chatbot__response-link {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 38px;

    margin-bottom: 5px;

    padding:
        0 13px;

    border:
        1px solid rgba(25,125,166,0.17);

    border-radius:
        10px;

    color:
        var(--spc-primary) !important;

    background:
        var(--spc-white);

    font-size:
        0.64rem;

    font-weight:
        800;

    transition:
        transform var(--spc-transition),
        color var(--spc-transition),
        background var(--spc-transition);
}


.spc-chatbot__response-link:hover {
    color:
        var(--spc-white) !important;

    background:
        var(--spc-primary);

    transform:
        translateY(-2px);
}


/* Typing */

.spc-chatbot__typing {
    display: none;

    align-items: center;

    gap: 8px;

    margin-bottom:
        10px;
}


.spc-chatbot__typing.is-visible {
    display: flex;
}


.spc-chatbot__typing-dots {
    display: flex;

    gap: 4px;

    padding:
        10px 12px;

    border-radius:
        13px;

    background:
        var(--spc-white);
}


.spc-chatbot__typing-dots span {
    width: 5px;
    height: 5px;

    border-radius: 50%;

    background:
        var(--spc-primary);

    animation:
        spcTyping 1s infinite ease-in-out;
}


.spc-chatbot__typing-dots span:nth-child(2) {
    animation-delay:
        120ms;
}


.spc-chatbot__typing-dots span:nth-child(3) {
    animation-delay:
        240ms;
}


@keyframes spcTyping {

    0%,
    60%,
    100% {
        opacity: 0.35;
        transform: translateY(0);
    }

    30% {
        opacity: 1;
        transform: translateY(-3px);
    }

}


/* Chat toggle */

.spc-chatbot__toggle {
    position: absolute;

    inset: 0;

    width:
        var(--spc-action-size);

    height:
        var(--spc-action-size);

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 0;

    border:
        3px solid var(--spc-surface);

    border-radius: 50%;

    color:
        var(--spc-white);

    background:
        var(--spc-primary);

    cursor:
        pointer;

    box-shadow:
        0 12px 32px rgba(5,31,40,0.27);

    transition:
        transform var(--spc-transition),
        background var(--spc-transition);
}


.spc-chatbot__toggle:hover {
    color:
        var(--spc-white);

    background:
        var(--spc-primary-dark);

    transform:
        translateY(-3px);
}


.spc-chatbot__toggle-icon {
    position: absolute;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size:
        1rem;

    transition:
        opacity 180ms ease,
        transform 220ms ease;
}


.spc-chatbot__toggle-icon--chat {
    opacity: 1;

    transform:
        scale(1);
}


.spc-chatbot__toggle-icon--close {
    opacity: 0;

    transform:
        scale(0.7)
        rotate(-90deg);
}


.spc-chatbot.is-open
.spc-chatbot__toggle-icon--chat {
    opacity: 0;

    transform:
        scale(0.7)
        rotate(90deg);
}


.spc-chatbot.is-open
.spc-chatbot__toggle-icon--close {
    opacity: 1;

    transform:
        scale(1)
        rotate(0);
}


/* Notification */

.spc-chatbot__notification {
    position: absolute;

    top: -2px;
    right: -2px;

    width: 18px;
    height: 18px;

    display: flex;

    align-items: center;
    justify-content: center;

    border:
        2px solid var(--spc-surface);

    border-radius: 50%;

    color:
        var(--spc-white);

    background:
        #df4848;

    font-size:
        0.50rem;

    font-weight:
        900;

    transition:
        opacity 180ms ease,
        transform 180ms ease;
}


.spc-chatbot.is-open
.spc-chatbot__notification {
    opacity: 0;

    transform:
        scale(0);
}


/* ============================================================
   09. RESPONSIVE
============================================================ */


/* Small desktop */

@media (max-width: 1199.98px) {

    .spc-navigation {
        gap: 0;
    }

    .spc-navigation > a {
        padding-inline:
            7px;

        font-size:
            0.76rem;
    }

    .spc-navigation > a[data-spc-nav]::before {
        display: none;
    }

    .spc-navigation__cta {
        margin-left:
            5px;

        padding-inline:
            14px !important;
    }

    .spc-footer__grid {
        gap:
            32px;
    }

}


/* Tablet */

@media (max-width: 991.98px) {

    :root {
        --spc-header-height: 76px;

        --spc-action-size: 48px;
        --spc-action-gap: 8px;
        --spc-action-bottom: 16px;
    }


    .spc-container {
        width:
            calc(100% - 32px);
    }


    .spc-navigation {
        display:
            none !important;
    }


    .spc-menu-toggle {
        display:
            flex !important;
    }


    .spc-footer__grid {
        grid-template-columns:
            repeat(2, minmax(0,1fr));

        gap:
            38px;
    }


    .spc-footer__brand {
        grid-column:
            1 / -1;
    }


    .spc-chatbot__window {
        width:
            min(
                390px,
                calc(100vw - 92px)
            );

        min-height:
            350px;
    }

}


/* Mobile */

@media (max-width: 767.98px) {

    .spc-container {
        width:
            calc(100% - 28px);
    }


    .spc-header__inner {
        gap:
            10px;
    }


    .spc-brand {
        gap:
            8px;
    }


    .spc-brand__logo-wrap {
        width: 46px;
        height: 46px;
    }


    .spc-brand__logo {
        width: 41px;
        height: 41px;
    }


    .spc-brand__name {
        font-size:
            0.82rem;
    }


    .spc-brand__tagline {
        font-size:
            0.45rem;
    }


    .spc-mobile-navigation__panel {
        width:
            100%;
    }


    .spc-footer__main {
        padding:
            60px 0 48px;
    }


    .spc-footer__grid {
        grid-template-columns:
            1fr;

        gap:
            34px;
    }


    .spc-footer__brand {
        grid-column:
            auto;
    }


    .spc-footer__cta-inner {
        min-height:
            auto;

        padding:
            20px 0;

        flex-direction:
            column;

        align-items:
            flex-start;
    }


    .spc-footer__cta-button {
        width:
            100%;
    }


    .spc-footer__bottom-inner {
        min-height:
            auto;

        padding:
            19px 0;

        flex-direction:
            column;

        align-items:
            flex-start;
    }


    .spc-footer__legal {
        flex-wrap:
            wrap;

        gap:
            8px 16px;
    }


    /*
       Chat window uses almost all available width but leaves
       the floating rail completely clear.
    */

    .spc-chatbot__window {
        right:
            calc(
                var(--spc-action-size) +
                var(--spc-action-bottom) +
                10px
            );

        width:
            calc(
                100vw -
                var(--spc-action-size) -
                var(--spc-action-bottom) -
                22px
            );

        height:
            min(
                560px,
                calc(
                    100dvh -
                    var(--spc-header-height) -
                    105px
                )
            );

        min-height:
            330px;

        border-radius:
            18px;
    }


    .spc-chatbot__bubble {
        max-width:
            86%;

        font-size:
            0.71rem;
    }

}


/* Small mobile */

@media (max-width: 575.98px) {

    :root {
        --spc-header-height: 70px;

        --spc-action-size: 44px;
        --spc-action-gap: 8px;
        --spc-action-bottom: 10px;
    }


    .spc-header__bar,
    .spc-header__inner {
        min-height:
            70px;
    }


    .spc-brand__logo-wrap {
        width: 43px;
        height: 43px;
    }


    .spc-brand__logo {
        width: 38px;
        height: 38px;
    }


    .spc-brand__name {
        max-width:
            210px;

        overflow:
            hidden;

        text-overflow:
            ellipsis;

        font-size:
            0.76rem;
    }


    .spc-brand__tagline {
        font-size:
            0.41rem;
    }


    .spc-menu-toggle {
        width: 42px;
        height: 42px;
    }


    .spc-mobile-navigation {
        top:
            var(--spc-header-height);
    }


    .spc-mobile-navigation__header {
        min-height:
            66px;
    }


    .spc-mobile-navigation__links a {
        min-height:
            50px;

        grid-template-columns:
            30px minmax(0,1fr) 26px;
    }


    /*
       Requested thin + slightly italic mobile typography.
    */

    .spc-mobile-navigation__label {
        font-size:
            0.84rem;

        font-weight:
            400;

        font-style:
            italic;
    }


    .spc-mobile-navigation__footer {
        flex-direction:
            column;

        align-items:
            stretch;
    }


    .spc-mobile-navigation__footer a {
        width:
            100%;
    }


    .spc-chatbot__window {
        right:
            calc(
                var(--spc-action-size) +
                var(--spc-action-bottom) +
                8px
            );

        width:
            calc(
                100vw -
                var(--spc-action-size) -
                var(--spc-action-bottom) -
                18px
            );

        height:
            min(
                530px,
                calc(
                    100dvh -
                    var(--spc-header-height) -
                    90px
                )
            );

        min-height:
            315px;
    }


    .spc-chatbot__header {
        min-height:
            64px;
    }


    .spc-chatbot__messages {
        padding:
            13px 11px;
    }


    .spc-chatbot__quick-actions button {
        font-size:
            0.60rem;
    }


    .spc-footer__bottom-inner > span {
        font-size:
            0.60rem;
    }

}


/* Very small phones */

@media (max-width: 360px) {

    .spc-container {
        width:
            calc(100% - 22px);
    }


    .spc-brand__name {
        max-width:
            175px;

        font-size:
            0.70rem;
    }


    .spc-brand__tagline {
        font-size:
            0.38rem;
    }


    .spc-mobile-navigation__links a {
        min-height:
            47px;
    }


    .spc-mobile-navigation__label {
        font-size:
            0.79rem;
    }


    .spc-floating-action__icon {
        width:
            29px;

        height:
            29px;

        font-size:
            0.86rem;
    }


    .spc-chatbot__window {
        width:
            calc(
                100vw -
                var(--spc-action-size) -
                var(--spc-action-bottom) -
                14px
            );

        min-height:
            300px;
    }


    .spc-chatbot__quick-actions {
        grid-template-columns:
            1fr;
    }

}


/* Short viewport protection */

@media (max-height: 620px) {

    .spc-chatbot__window {
        top:
            calc(
                var(--spc-header-height) +
                8px
            );

        bottom:
            calc(
                var(--spc-action-bottom) +
                var(--spc-action-size) +
                8px
            );

        height:
            auto;

        min-height:
            280px;
    }


    .spc-mobile-navigation__header {
        min-height:
            60px;
    }


    .spc-mobile-navigation__links a {
        min-height:
            45px;
    }

}


/* ============================================================
   10. ACCESSIBILITY
============================================================ */

.spc-header a:focus-visible,
.spc-header button:focus-visible,
.spc-footer a:focus-visible,
.spc-footer button:focus-visible,
.spc-floating-action:focus-visible,
.spc-chatbot button:focus-visible,
.spc-chatbot input:focus-visible {
    outline:
        3px solid
        rgba(113,197,223,0.75);

    outline-offset:
        3px;
}


/* Reduced motion */

@media (prefers-reduced-motion: reduce) {

    .spc-header *,
    .spc-footer *,
    .spc-floating-actions *,
    .spc-chatbot *,
    .spc-mobile-navigation * {
        animation:
            none !important;

        transition:
            none !important;

        scroll-behavior:
            auto !important;
    }

}


/* Overflow protection */

.spc-header,
.spc-mobile-navigation,
.spc-footer,
.spc-floating-actions,
.spc-chatbot {
    max-width:
        100vw;
}


/* ============================================================
   END
============================================================ */

/* ============================================================
   FINAL RESPONSIVE COMPATIBILITY LAYER
   ------------------------------------------------------------
   This layer intentionally preserves the existing component
   class/JS contract while resolving mobile viewport conflicts.
============================================================ */

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

.spc-container {
    width: min(1200px, calc(100% - 48px));
    margin-inline: auto;
}

/* Keep fixed mobile navigation independent of the header's blur
   containing block. The menu remains visually attached to it. */
@media (max-width: 991.98px) {
    .spc-header {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(247, 244, 237, 0.98);
    }

    .spc-navigation {
        display: none !important;
    }

    .spc-menu-toggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .spc-mobile-navigation {
        position: fixed !important;
        top: var(--spc-header-height) !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: calc(100dvh - var(--spc-header-height)) !important;
        display: block !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        z-index: 10001 !important;
        overflow: hidden !important;
    }

    .spc-mobile-navigation.is-open {
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    .spc-mobile-navigation__panel {
        position: absolute !important;
        inset: 0 0 0 auto !important;
        width: min(520px, 100%) !important;
        max-width: 100% !important;
        height: 100% !important;
        overflow: hidden !important;
        transform: translateX(100%);
    }

    .spc-mobile-navigation.is-open .spc-mobile-navigation__panel {
        transform: translateX(0);
    }
}

/* Safe compact layout for phones. */
@media (max-width: 575.98px) {
    :root {
        --spc-header-height: 70px;
        --spc-action-size: 44px;
        --spc-action-gap: 8px;
        --spc-action-bottom: 10px;
    }

    .spc-container {
        width: calc(100% - 28px);
    }

    .spc-header__inner {
        gap: 8px;
    }

    .spc-brand {
        min-width: 0;
        max-width: calc(100% - 54px);
    }

    .spc-brand__text {
        min-width: 0;
    }

    .spc-brand__name {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .spc-mobile-navigation__panel {
        padding-inline: 14px !important;
    }

    .spc-mobile-navigation__links a {
        min-height: 50px;
        grid-template-columns: 28px minmax(0, 1fr) 26px;
        gap: 8px;
    }

    .spc-mobile-navigation__label {
        font-size: clamp(0.78rem, 3.4vw, 0.86rem);
        font-weight: 400;
        font-style: italic;
    }

    .spc-mobile-navigation__footer {
        flex-direction: column;
        align-items: stretch;
    }

    .spc-mobile-navigation__footer a {
        width: 100%;
    }

    .spc-chatbot {
        right: var(--spc-action-bottom);
        bottom: calc(var(--spc-action-bottom) + (var(--spc-action-size) + var(--spc-action-gap)) * 2);
    }

    .spc-chatbot__window {
        top: calc(var(--spc-header-height) + 10px) !important;
        right: calc(var(--spc-action-size) + var(--spc-action-bottom) + 8px) !important;
        bottom: calc(var(--spc-action-bottom) + var(--spc-action-size) + 8px) !important;
        width: calc(100vw - var(--spc-action-size) - var(--spc-action-bottom) - 18px) !important;
        height: auto !important;
        min-height: 300px;
        max-height: calc(100dvh - var(--spc-header-height) - 90px);
    }
}

@media (max-width: 360px) {
    .spc-container { width: calc(100% - 22px); }

    .spc-brand__name { font-size: 0.70rem; }
    .spc-brand__tagline { font-size: 0.38rem; }

    .spc-menu-toggle {
        width: 40px;
        height: 40px;
    }

    .spc-mobile-navigation__links a {
        min-height: 47px;
        grid-template-columns: 25px minmax(0, 1fr) 24px;
    }

    .spc-mobile-navigation__label {
        font-size: 0.78rem;
    }

    .spc-chatbot__window {
        right: 8px !important;
        left: 8px !important;
        width: auto !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .spc-mobile-navigation__panel,
    .spc-menu-toggle span,
    .spc-chatbot__window,
    .spc-floating-action,
    .spc-header {
        transition: none !important;
    }
}
