/* ============================================================
   RoboSpati — Components
   Buttons · Navbar · Cards · Forms · Footer · Utility UI
   ============================================================ */

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    font-family: var(--font-heading);
    font-weight: var(--fw-bold);
    border-radius: var(--radius-pill);
    padding: .8rem 1.6rem;
    transition: transform var(--transition), box-shadow var(--transition),
                background-color var(--transition), border-color var(--transition),
                color var(--transition);
    letter-spacing: .01em;
    border-width: 1px;
}
.btn:focus-visible { outline: 3px solid rgba(3, 22, 47, .45); }

.btn-gradient {
    background: var(--gradient-blue);
    color: #fff;
    border: none;
    box-shadow: 0 10px 24px rgba(3, 22, 47, .32);
}
.btn-gradient:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(3, 22, 47, .42);
}

.btn-outline-primary {
    border-color: var(--cta);
    color: var(--cta);
    background: transparent;
}
.btn-outline-primary:hover {
    background: var(--cta);
    color: #fff;
    border-color: var(--cta);
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(3, 22, 47, .3);
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, .65);
    color: #fff;
}
.btn-outline-light:hover {
    background: #fff;
    color: var(--navy);
    border-color: #fff;
    transform: translateY(-3px);
}

.btn-light {
    background: #fff;
    color: var(--navy);
    border: none;
}
.btn-light:hover {
    color: var(--navy);
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(3, 27, 58, .25);
}

.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }
.btn-sm { padding: .55rem 1.15rem; font-size: .875rem; }

.btn-icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--text-color);
    transition: all var(--transition);
}
.btn-icon:hover {
    border-color: var(--cta);
    color: #fff;
    background: var(--gradient-blue);
    transform: translateY(-3px);
}

/* ---- Filter pills ---- */
.btn-filter {
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    color: var(--muted);
    background: var(--white);
    font-size: var(--fs-small);
    font-weight: var(--fw-medium);
    padding: .55rem 1.25rem;
    transition: all var(--transition);
}
.btn-filter:hover,
.btn-filter.active {
    background: var(--gradient-blue);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(3, 22, 47, .28);
}

/* ============================================================
   BADGES / PILLS
   ============================================================ */
.pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    border-radius: var(--radius-pill);
    padding: .4rem 1rem;
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: .08em;
}

.pill--blue {
    background: rgba(3, 22, 47, .08);
    color: var(--navy);
}

.pill--dark {
    background: rgba(3, 27, 58, .08);
    color: var(--navy);
}

/* ============================================================
   CARDS (shared shell)
   ============================================================ */
.card-shell {
    background: var(--white);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-card);
    padding: 2rem;
    box-shadow: var(--shadow-card);
    transition: transform var(--transition), box-shadow var(--transition),
                border-color var(--transition);
    height: 100%;
}
.card-shell:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(3, 22, 47, .35);
}

/* ============================================================
   HEADER & NAVBAR — Exact Pill Design from Mockup
   ============================================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    padding: 1.25rem 0;
    background: transparent !important;
    transition: all 0.3s ease;
}
.site-header.scrolled {
    padding: 0.85rem 0;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
}

.navbar-wrapper {
    width: 100%;
}

/* Brand styling: white circular avatar + uppercase blue title */
.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0;
    margin: 0;
    text-decoration: none;
}
.brand-avatar-circle {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    color: #03162F;
    overflow: hidden;
    transition: transform 0.25s ease;
}
.navbar-brand:hover .brand-avatar-circle {
    transform: scale(1.05);
}
.brand-avatar-circle .brand-img,
.brand-avatar-circle svg.brand-logo {
    width: 26px;
    height: 26px;
    max-height: 26px;
    object-fit: contain;
}
.brand-avatar-circle svg.brand-logo path {
    fill: #03162F;
}

.brand-title-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.1em;
    color: #03162F;
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
    transition: color 0.25s ease;
}

body:has(.page-header) .site-header:not(.scrolled) .brand-title-text {
    color: #FFFFFF;
}

/* The solid white pill navigation from Mockup Image 1 */
.nav-white-pill {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 9999px;
    height: 52px;
    padding: 4px 6px 4px 8px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
    flex: 1;
    max-width: 960px;
    margin-left: clamp(20px, 3.5vw, 44px);
    transition: all 0.3s ease;
}

.site-header.scrolled .nav-white-pill {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.nav-pill-links {
    gap: 4px;
    padding-left: 2px;
}

.nav-pill-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #334155;
    font-family: var(--font-heading);
    font-size: 14.5px;
    font-weight: 500;
    padding: 7px 18px;
    border-radius: 9999px;
    text-decoration: none;
    line-height: 1.2;
    transition: all 0.2s ease;
}
.nav-pill-link:hover {
    color: #03162F;
    background: transparent;
}

/* Active navigation item: soft baby-blue pill badge with blue indicator dot */
.nav-pill-link.active {
    background: #EEF6FC;
    color: #03162F;
    font-weight: 600;
    padding: 6px 20px 5px 20px;
}
.nav-pill-dot {
    display: block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #03162F;
    margin-top: 3px;
}

/* Actions inside the white pill */
.nav-pill-actions {
    margin-left: auto;
    gap: 8px;
    display: flex;
    align-items: center;
}

.btn-pill-lang,
.btn-pill-theme {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #E2E8F0;
    background: #F8FAFC;
    color: #334155;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-pill-lang:hover,
.btn-pill-theme:hover {
    background: #EEF6FC;
    color: #03162F;
    border-color: #03162F;
}
.lang-code-pill {
    font-size: 10.5px;
    margin-left: 2px;
}

/* Solid button inside white pill */
.btn-pill-start {
    background: linear-gradient(135deg, #03162F 0%, #062246 100%);
    color: #ffffff !important;
    font-family: var(--font-heading);
    font-size: 14.5px;
    font-weight: 600;
    border-radius: 9999px;
    padding: 9px 24px;
    text-decoration: none !important;
    border: none;
    box-shadow: 0 4px 12px rgba(3, 22, 47, 0.28);
    transition: all 0.2s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-pill-start:hover {
    background: #062246;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(3, 22, 47, 0.38);
}

/* Mobile Toggle and Menu */
.navbar-toggler-mobile {
    background: rgba(3, 22, 47, 0.08);
    border: 1px solid rgba(3, 22, 47, 0.12);
    border-radius: 12px;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.navbar-toggler-mobile:hover {
    background: rgba(3, 22, 47, 0.12);
}
.mobile-toggle-bar {
    width: 22px;
    height: 2px;
    background: #03162F;
    border-radius: 2px;
    transition: all 0.2s ease;
}
/* When header is over a dark page header */
body:has(.page-header) .site-header:not(.scrolled) .navbar-toggler-mobile {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.3);
}
body:has(.page-header) .site-header:not(.scrolled) .mobile-toggle-bar {
    background: #FFFFFF;
}

.mobile-nav-collapse {
    border-radius: 20px;
    overflow: hidden;
}
.mobile-nav-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 20px 48px rgba(3, 22, 47, 0.18);
}
.mobile-nav-link {
    display: block;
    padding: 10px 14px;
    font-size: 16px;
    font-weight: 600;
    color: #334155;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: #EEF6FF;
    color: #03162F;
    transform: translateX(4px);
}
.theme-icon-dark { display: none; }
.theme-icon-light { display: inline-block; }
[data-bs-theme="dark"] .theme-icon-dark { display: inline-block; }
[data-bs-theme="dark"] .theme-icon-light { display: none; }

.navbar-toggler {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: .45rem .6rem;
}
/* Keep the hamburger icon dark so it stays visible on the light pill in
   both themes (Bootstrap's dark scheme would otherwise lighten the icon). */
.navbar-toggler-icon {
    --bs-navbar-toggler-icon-bg: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(17,24,39,.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

@media (max-width: 991.98px) {
    .navbar-pill { border-radius: 1.5rem; }
    .navbar-site .navbar-collapse {
        margin-top: .6rem;
        padding: .75rem .5rem;
        background: rgba(255, 255, 255, .98);
        border-radius: var(--radius-card);
        border: 1px solid var(--border-card);
        box-shadow: var(--shadow-lg);
        /* Tall menus must scroll instead of being cut off on short screens. */
        max-height: calc(100vh - 8rem);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
    .navbar-site .navbar-nav { width: 100%; gap: .1rem; }
    .navbar-site .navbar-nav .nav-item { width: 100%; }
    .navbar-site .nav-link {
        padding: .75rem 1.1rem;
        font-size: 1rem;
        color: var(--navy);
    }
    .navbar-site .nav-tools {
        width: 100%;
        padding: .5rem .35rem;
        border-top: 1px solid var(--border);
        margin-top: .5rem;
    }
    /* The language dropdown must stay inside the viewport on narrow screens. */
    .navbar-site .dropdown-menu {
        left: 0;
        right: auto;
        min-width: 9.5rem;
        max-width: calc(100vw - 2.5rem);
    }
}

@media (max-width: 575.98px) {
    .brand-text { font-size: 1.15rem; }
    .navbar-site .nav-tools { flex-wrap: wrap; gap: .4rem; }
    .navbar-site .nav-tools .btn { height: 42px; }
}

/* ============================================================
   PRELOADER
   ============================================================ */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    transition: opacity .4s ease, visibility .4s ease;
}
#preloader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.preloader-wrapper {
    position: relative;
    width: 96px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Spinning ring using brand main color #03162F */
.preloader-spinner-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid rgba(3, 22, 47, 0.14);
    border-top-color: #03162F;
    border-right-color: #03162F;
    animation: preloaderSpin 0.85s cubic-bezier(0.5, 0.1, 0.5, 0.9) infinite;
}
/* Rounded white background badge with logo inside */
.preloader-circle-badge {
    width: 74px;
    height: 74px;
    background: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(3, 22, 47, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    z-index: 2;
    transition: transform 0.25s ease;
}
.preloader-circle-badge svg.brand-logo {
    width: 40px;
    height: 40px;
    display: block;
}
.preloader-circle-badge svg.brand-logo path {
    fill: #03162F;
}
@keyframes preloaderSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================================
   ANNOUNCEMENT BAR
   ============================================================ */
.announcement-bar {
    background: var(--gradient-dark);
    color: #fff;
    padding: .5rem 0;
    font-size: var(--fs-small);
    position: relative;
    z-index: 1031;
}
.announcement-bar .btn-close { font-size: .7rem; }

/* ============================================================
   FORMS
   ============================================================ */
.form-label {
    font-family: var(--font-heading);
    font-weight: var(--fw-bold);
    font-size: var(--fs-small);
    color: var(--heading-color);
    margin-bottom: .45rem;
}

.form-control,
.form-select {
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--text-color);
    padding: .85rem 1.15rem;
    border-radius: var(--radius-input);
    font-size: var(--fs-small);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control::placeholder { color: var(--muted); opacity: .75; }
.form-control:focus,
.form-select:focus {
    background: var(--white);
    border-color: var(--cta);
    box-shadow: 0 0 0 4px rgba(3, 22, 47, .14);
    color: var(--text-color);
}

.form-check-input:checked {
    background-color: var(--cta);
    border-color: var(--cta);
}

/* ============================================================
   ACCORDION / FAQ
   ============================================================ */
.faq-item {
    background: var(--white);
    border: 1px solid var(--border-card) !important;
    border-radius: var(--radius-card) !important;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-xs);
}
.faq-item .accordion-button {
    background: var(--white);
    color: var(--heading-color);
    font-family: var(--font-heading);
    font-weight: var(--fw-bold);
    font-size: var(--fs-body);
    padding: 1.4rem 1.6rem;
    box-shadow: none;
}
.faq-item .accordion-button:not(.collapsed) {
    color: var(--accent);
    background: rgba(3, 22, 47, .05);
}
.faq-item .accordion-button:focus { box-shadow: none; }
.faq-item .accordion-button::after {
    filter: hue-rotate(160deg);
    opacity: .7;
}
.faq-item .accordion-body { color: var(--body-color); }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination .page-link {
    border: 1px solid var(--border);
    border-radius: var(--radius-md) !important;
    color: var(--body-color);
    margin: 0 .2rem;
    padding: .5rem .9rem;
    font-weight: var(--fw-medium);
}
.pagination .page-item.active .page-link {
    background: var(--gradient-blue);
    border-color: transparent;
    color: #fff;
}
.pagination .page-link:hover { color: var(--accent); }

/* ============================================================
   BACK TO TOP & WHATSAPP (fixed, must never be covered)
   ============================================================ */
.btn-backtotop {
    position: fixed;
    left: 1.4rem;
    bottom: 1.4rem;
    z-index: 1050;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-blue);
    color: #fff;
    font-size: 1.2rem;
    border: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: all var(--transition);
    box-shadow: 0 12px 30px rgba(3, 22, 47, .4);
}
.btn-backtotop.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.btn-backtotop:hover { color: #fff; transform: translateY(-4px); }

.btn-whatsapp-float {
    position: fixed;
    right: 1.4rem;
    bottom: 1.4rem;
    z-index: 1050;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25d366;
    color: #fff;
    font-size: 1.8rem;
    border: none;
    box-shadow: 0 8px 24px rgba(37, 211, 102, .45);
    transition: transform var(--transition), box-shadow var(--transition);
}
.btn-whatsapp-float:hover {
    color: #fff;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 14px 34px rgba(37, 211, 102, .55);
}
@media (max-width: 575.98px) {
    .btn-whatsapp-float { right: 1rem; bottom: 1rem; width: 54px; height: 54px; font-size: 1.65rem; }
    .btn-backtotop { left: 1rem; bottom: 1rem; }
}

/* ============================================================
   SOCIAL ICONS
   ============================================================ */
.social-icons { display: flex; gap: .55rem; flex-wrap: wrap; }
.social-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--body-color);
    font-size: 1.05rem;
    transition: all var(--transition);
}
.social-icon:hover {
    background: var(--gradient-blue);
    color: #fff;
    border-color: transparent;
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(3, 22, 47, .32);
}
.section-dark .social-icon,
.footer .social-icon {
    border: 1px solid rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .85);
}
.section-dark .social-icon:hover,
.footer .social-icon:hover {
    background: var(--gradient-blue);
    color: #fff;
    transform: translateY(-4px);
}

/* ============================================================
/* Reading Progress Indicator Bar */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #0077C8 0%, #38BDF8 100%);
    z-index: 10000;
    pointer-events: none;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
    transition: width 0.05s linear;
}

/* ============================================================
   FOOTER (Exact layout from Mockup Image 1)
   ============================================================ */
.footer {
    position: relative;
    background: linear-gradient(135deg, #03162F 0%, #041C3A 50%, #062246 100%);
    color: #94A3B8;
    overflow: hidden;
    padding-top: 1.5rem;
}
.footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--pattern-mesh);
    background-size: 140px 140px;
    opacity: 0.18;
    pointer-events: none;
}
.footer > .container { position: relative; z-index: 1; }

/* Footer Brand Text in Pure Crisp White */
.footer-brand .brand-title-text,
.footer-robospati-text,
.footer-brand-title {
    color: #FFFFFF !important;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: opacity 0.25s ease;
}
.footer-brand:hover .brand-title-text,
.footer-brand:hover .footer-robospati-text,
.footer-brand:hover .footer-brand-title {
    color: #FFFFFF !important;
    opacity: 0.88;
}
.footer-brand .brand-avatar-circle {
    background: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.footer-brand .brand-avatar-circle svg.brand-logo path {
    fill: #03162F !important;
}

/* Footer Social Icon Buttons */
.footer-social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #CBD5E1;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.footer-social-btn:hover {
    background: #0077C8;
    border-color: #0077C8;
    color: #FFFFFF;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 119, 200, 0.35);
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    color: #94A3B8;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1.35rem;
}

.footer-desc {
    color: #94A3B8;
    font-size: 0.92rem;
    line-height: 1.65;
    max-width: 330px;
}

.footer-nav-list li {
    margin-bottom: 0.75rem;
}
.footer-nav-list li a {
    color: #CBD5E1;
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: color 0.2s ease, transform 0.2s ease;
}
.footer-nav-list li a:hover {
    color: #FFFFFF;
    transform: translateX(4px);
}

.footer-contact-list {
    color: #CBD5E1;
    font-size: 0.92rem;
}
.footer-contact-list a {
    color: #CBD5E1;
    text-decoration: none;
    transition: color 0.2s ease;
}
.footer-contact-list a:hover {
    color: #FFFFFF;
}
.footer-contact-icon {
    color: #38BDF8;
    font-size: 1.05rem;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.08);
}

.footer-legal a {
    color: #94A3B8;
    text-decoration: none;
    transition: color 0.2s ease;
}
.footer-legal a:hover {
    color: #FFFFFF;
}
.footer-links li,
.footer-contact li { margin-bottom: .6rem; }
.footer-links a,
.footer-contact a {
    color: rgba(255, 255, 255, .7);
    font-size: var(--fs-small);
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    transition: color var(--transition), transform var(--transition);
}
.footer-links a:hover {
    color: #fff;
    transform: translateX(4px);
}
.footer-contact i { color: #6CC3FF; }
.footer-about {
    font-size: var(--fs-small);
    color: rgba(255, 255, 255, .66);
    line-height: 1.75;
}
.footer-divider { border-color: rgba(255, 255, 255, .13); opacity: 1; }
.footer-legal a {
    color: rgba(255, 255, 255, .58);
    font-size: var(--fs-xs);
}
.footer-legal a:hover { color: #fff; }
.footer .small { color: rgba(255, 255, 255, .55); }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar-card {
    background: var(--white);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-card);
    padding: 1.6rem;
    margin-bottom: 1.2rem;
    box-shadow: var(--shadow-xs);
}
.sidebar-cta {
    background: var(--gradient-dark);
    color: #fff;
    border: none;
}
.sidebar-links { list-style: none; padding: 0; margin: 0; }
.sidebar-links li { margin-bottom: .35rem; }
.sidebar-links a {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .6rem .8rem;
    border-radius: var(--radius-md);
    color: var(--text-color);
    font-size: var(--fs-small);
    transition: all var(--transition);
}
.sidebar-links a:hover {
    background: rgba(3, 22, 47, .08);
    color: var(--accent);
    padding-left: 1.1rem;
}

/* ============================================================
   CTA BAND (Exact layout from Mockup Image 1)
   ============================================================ */
.cta-band {
    padding: 4.5rem 0 2rem;
    background: #03162F;
}
.cta-box {
    position: relative;
    background: linear-gradient(135deg, #03162F 0%, #062246 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    padding: clamp(3rem, 5vw, 4rem) clamp(2.5rem, 5vw, 4.5rem);
    color: #fff;
    box-shadow: 0 16px 40px rgba(3, 22, 47, 0.4);
    overflow: hidden;
}
.cta-box-grid {
    position: absolute;
    inset: 0;
    background-image: var(--pattern-mesh);
    background-size: 140px 140px;
    opacity: 0.22;
    pointer-events: none;
}
.cta-dash-tag {
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 0.85rem;
    display: inline-block;
}
.cta-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.8vw, 3rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.18;
    margin: 0;
}

.btn-cta-white {
    background: #FFFFFF;
    color: #0B192C !important;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 12px;
    padding: 14px 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    transition: all 0.25s ease;
    white-space: nowrap;
}
.btn-cta-white:hover {
    background: #F8FAFC;
    color: #03162F !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

/* ============================================================
   DARK INNER CTA (Used inside Services, Team, About, Portfolio)
   ============================================================ */
.section-dark-cta {
    position: relative;
    background: linear-gradient(135deg, #03162F 0%, #041C3A 50%, #062246 100%);
    border-radius: var(--radius-card);
    padding: clamp(3rem, 6vw, 4.5rem) clamp(2rem, 5vw, 4rem);
    color: #fff;
    box-shadow: 0 24px 60px rgba(3, 22, 47, 0.25);
    overflow: hidden;
    margin: 2rem 0;
}
.section-dark-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--pattern-mesh);
    background-size: 140px 140px;
    opacity: 0.25;
    pointer-events: none;
}
.section-dark-cta > * { position: relative; z-index: 2; }
.section-dark-cta .cta-tag {
    color: #6CC3FF;
    font-family: var(--font-heading);
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: .14em;
    margin-bottom: .75rem;
    display: inline-block;
}
.section-dark-cta h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    font-weight: var(--fw-bold);
    color: #fff;
    letter-spacing: -.02em;
    margin-bottom: .9rem;
}
.section-dark-cta p {
    color: rgba(255, 255, 255, .8);
    font-size: var(--fs-body);
    max-width: 600px;
    margin-bottom: 2rem;
}
.section-dark-cta .btn-white-cta {
    background: #fff;
    color: var(--navy);
    font-family: var(--font-heading);
    font-weight: var(--fw-bold);
    border-radius: var(--radius-pill);
    padding: .85rem 1.8rem;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: transform var(--transition), box-shadow var(--transition);
}
.section-dark-cta .btn-white-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.3);
    color: var(--cta);
}

/* ============================================================
   PAGE HERO / HEADER (shared across About, Services, Portfolio, Team, Contact)
   Exact match to Mockup Image 3
   ============================================================ */
.page-header {
    position: relative;
    padding: clamp(9rem, 14vw, 12rem) 0 clamp(4rem, 6vw, 5.5rem);
    background: linear-gradient(135deg, #03162F 0%, #041C3A 50%, #062246 100%) !important;
    color: #fff !important;
    overflow: hidden;
}
.page-header-short { padding-bottom: 3rem; }

.page-header-bg {
    position: absolute;
    inset: 0;
    background-image: var(--pattern-mesh) !important;
    background-size: 140px 140px !important;
    background-repeat: repeat !important;
    opacity: 0.25 !important;
    pointer-events: none;
    display: block !important;
}

.page-header > .container { position: relative; z-index: 2; }

.page-header .page-label {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: #6CC3FF !important;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 1rem;
}
.page-header .page-label::before {
    content: "";
    display: inline-block;
    width: 22px;
    height: 2px;
    background: #6CC3FF;
    border-radius: 2px;
}

.page-title {
    font-family: var(--font-heading);
    font-size: clamp(2.3rem, 4.8vw, 3.8rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
    background: none !important;
    margin: 0;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}
.page-header .page-title,
.page-header .text-gradient,
.page-header h1,
.page-header h2,
.page-header h3 {
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
    background: none !important;
}
.page-lead {
    color: rgba(255, 255, 255, 0.9) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.9) !important;
    font-size: clamp(0.98rem, 1.4vw, 1.12rem);
    max-width: 640px;
    line-height: 1.65;
    margin-top: 1.25rem;
}

/* ---- Page Breadcrumbs & Elements Visibility on Dark Header ---- */
.page-header .page-breadcrumb {
    display: block !important;
    margin-bottom: 0.85rem !important;
}
/* Hide breadcrumbs only on top-level interior pages that have a section-tag page-label, matching Mockup 3 */
section.page-header:has(.page-label) .page-breadcrumb {
    display: none !important;
}
section.page-header-short .page-breadcrumb {
    display: block !important;
}

.page-header .breadcrumb {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    padding: 0 !important;
    margin: 0 0 0.85rem 0 !important;
    list-style: none !important;
    background: transparent !important;
    font-size: 0.88rem !important;
    font-weight: 500 !important;
}
.page-header .breadcrumb-item {
    display: inline-flex !important;
    align-items: center !important;
    color: rgba(255, 255, 255, 0.78) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.78) !important;
}
.page-header .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.85) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.85) !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}
.page-header .breadcrumb-item a:hover {
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
    text-decoration: underline !important;
}
.page-header .breadcrumb-item.active {
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
    font-weight: 600 !important;
}
.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.45) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.45) !important;
    padding: 0 0.55rem !important;
    content: "/" !important;
}

/* Category & feature pills on dark page header — made crisp white instead of dark blue */
.page-header .pill,
.page-header .pill--blue,
.page-header .pill--dark,
.pill-on-dark {
    background: rgba(255, 255, 255, 0.16) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.06em !important;
    padding: 0.45rem 1.15rem !important;
    border-radius: 9999px !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2) !important;
    margin-top: 0.85rem !important;
}
.page-header .pill i,
.page-header .pill--blue i,
.page-header .pill--dark i,
.pill-on-dark i {
    color: #6CC3FF !important;
    -webkit-text-fill-color: #6CC3FF !important;
    font-size: 0.95rem !important;
}

/* Service icon on dark page header */
.page-header .service-detail-icon {
    background: rgba(255, 255, 255, 0.18) !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2) !important;
}
.page-header .service-detail-icon i {
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
}

.page-number {
    display: none !important;
}
.page-divider {
    display: none;
}

/* ============================================================
   MISC COMPONENTS
   ============================================================ */
.tech-tag {
    display: inline-block;
    background: #F1F8FE;
    border: 1px solid #DCEBF8;
    color: var(--navy-2);
    border-radius: var(--radius-pill);
    padding: .25rem .85rem;
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    margin-bottom: .35rem;
}

.project-outcome {
    display: flex;
    align-items: center;
    gap: .5rem;
    background: #F1F8FE;
    border: 1px dashed rgba(3, 22, 47, .4);
    border-radius: var(--radius-md);
    padding: .6rem .9rem;
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    color: var(--accent);
    margin-bottom: .9rem;
}

.map-frame {
    border-radius: var(--radius-card);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}
.map-frame iframe { display: block; }

.benefit-list { list-style: none; padding: 0; margin: 0; }
.benefit-list li {
    display: flex;
    gap: .6rem;
    align-items: flex-start;
    padding: .5rem 0;
    color: var(--body-color);
}
.benefit-list i { color: var(--cta); margin-top: .3rem; }

.error-code {
    font-size: clamp(4rem, 12vw, 9rem);
    font-weight: var(--fw-black);
    letter-spacing: -.04em;
}

.legal-content h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: var(--fw-bold);
    margin-top: 2.4rem;
    color: var(--heading-color);
}
.legal-content p,
.legal-content li { color: var(--body-color); }

/* ---- Alerts ---- */
.alert { border-radius: var(--radius-lg); border-width: 1px; }
