/* ==========================================================================
   Advikey Shared Site Theme
   Extracted from the ServisCore page design. Include this file on every
   page (after Bootstrap 5 + Font Awesome + Google Fonts) to get identical
   colors, typography, navbar, footer, cards, sections and chatbot styling
   across the whole site. Page-specific content should use these classes
   instead of one-off inline styles wherever possible.
   ========================================================================== */

/* === ROOT COLORS & VARS === */
:root {
    --primary-blue: #2863a7;
    --primary-navy: #1b2733;
    --accent-orange: #ff7700;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --text-dark: #333333;
    --text-muted: #666666;
    --border-color: #e5e5e5;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-dark);
    overflow-x: hidden;
}

/* === NAVBAR === */
.navbar-custom {
    background-color: var(--primary-navy) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 15px 0;
}
.navbar-custom .nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}
.navbar-custom .nav-link:hover, .navbar-custom .nav-link.active {
    color: var(--accent-orange) !important;
}
.navbar-brand img {
    height: 60px;
    transition: transform 0.3s ease;
}
.navbar-brand img:hover {
    transform: scale(1.05);
}
.btn-contact {
    background-color: var(--primary-blue);
    color: var(--white);
    border-radius: 8px;
    padding: 8px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-contact:hover {
    background-color: var(--accent-orange);
    color: var(--white);
}

/* === HERO SECTION === */
.hero-section {
    position: relative;
    background: linear-gradient(rgba(27, 39, 51, 0.85), rgba(40, 99, 167, 0.85)), url('https://images.unsplash.com/photo-1504384308090-c894fdcc538d?q=80&w=2070&auto=format&fit=crop') center/cover;
    padding: 120px 0 100px;
    color: var(--white);
    text-align: center;
}
.hero-title {
    font-weight: 800;
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}
.hero-subtitle {
    font-weight: 300;
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

/* === TABS NAVIGATION === */
.tab-container {
    margin-top: -50px;
    position: relative;
    z-index: 10;
}
.custom-tabs {
    background: var(--white);
    border-radius: 50px;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 40px;
    border: none;
}
.custom-tabs .nav-item {
    margin: 0 5px;
}
.custom-tabs .nav-link {
    border: none;
    color: var(--primary-navy);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 40px;
    transition: all 0.4s ease;
}
.custom-tabs .nav-link:hover {
    background-color: rgba(40, 99, 167, 0.1);
    color: var(--primary-blue);
}
.custom-tabs .nav-link.active {
    background-color: var(--accent-orange);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 119, 0, 0.4);
    transform: translateY(-2px);
}

/* === TAB CONTENT STYLES === */
.tab-content-wrapper {
    background: var(--white);
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    margin-bottom: 60px;
}

/* Section Headers */
.section-eyebrow {
    color: var(--primary-blue);
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.9rem;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}
.section-title {
    font-weight: 800;
    color: var(--primary-navy);
    margin-bottom: 20px;
}

/* Platform Overview Table */
.platform-table {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}
.platform-table .cell {
    padding: 25px;
    border-bottom: 1px solid var(--border-color);
    background: var(--white);
    transition: background 0.3s ease;
}
.platform-table .cell:hover {
    background: rgba(40, 99, 167, 0.03);
}
.platform-table .cell:nth-child(odd) {
    border-right: 1px solid var(--border-color);
}
.platform-table .tag {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    color: #9aa3ad;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
}
.platform-table .val {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-navy);
}

/* Info Cards (image + title + text) */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.info-card {
    background-color: var(--white);
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
    padding: 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}
.info-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: var(--primary-blue);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}
.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(40, 99, 167, 0.15);
}
.info-card:hover::before {
    transform: scaleX(1);
}
.info-card img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-bottom: 20px;
    transition: transform 0.4s ease;
}
.info-card:hover img {
    transform: scale(1.1);
}
.info-card h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 12px;
}

/* Highlight Cards */
.highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.highlight-card {
    background: var(--white);
    border-radius: 14px;
    border-top: 5px solid var(--primary-blue);
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    padding: 30px;
    transition: transform 0.3s ease;
}
.highlight-card:hover {
    transform: translateY(-5px);
}
.highlight-card .pill {
    display: inline-block;
    background: rgba(40, 99, 167, 0.1);
    color: var(--primary-blue);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    margin: 15px 8px 15px 0;
    letter-spacing: 0.5px;
}
.metric-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    margin-bottom: 12px;
    color: var(--text-dark);
    font-weight: 600;
}
.metric-row .bar-bg {
    flex: 1;
    height: 10px;
    background: #eef1f4;
    border-radius: 5px;
    margin: 0 15px;
    overflow: hidden;
}
.metric-row .bar-fill {
    height: 100%;
    background: var(--accent-orange);
    border-radius: 5px;
    animation: fillBar 1.5s ease-out forwards;
}
@keyframes fillBar { from { width: 0; } }

/* Numbered / Icon Feature Grid */
.diff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}
.diff-card {
    display: flex;
    gap: 20px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}
.diff-card:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 8px 20px rgba(40, 99, 167, 0.1);
    transform: translateX(5px);
}
.diff-card .num {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(40, 99, 167, 0.1);
    color: var(--primary-blue);
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.diff-card h5 {
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary-navy);
    font-size: 1.05rem;
}
.diff-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.5;
}

/* === EXTRA SECTIONS (sector, stats, integrations, deployment, references) === */

/* Stats Counter Band */
.stats-section {
    background: linear-gradient(135deg, var(--primary-navy), var(--primary-blue));
    padding: 60px 0;
}
.stat-box {
    text-align: center;
    color: var(--white);
    padding: 15px;
}
.stat-box .stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-orange);
    line-height: 1;
    margin-bottom: 10px;
}
.stat-box .stat-label {
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.85);
    font-weight: 500;
}

/* Section wrapper alternation */
.alt-section { padding: 90px 0; }
.alt-section.bg-light-alt { background-color: var(--light-bg); }
.alt-section.bg-white-alt { background-color: var(--white); }

/* Sector / Feature Cards (icon-badge style) */
.sector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 25px;
}
.sector-card {
    background: var(--white);
    border-radius: 14px;
    padding: 35px 25px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.35s ease;
}
.sector-card:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 12px 28px rgba(40,99,167,0.12);
    transform: translateY(-8px);
}
.sector-card .sector-icon {
    width: 64px; height: 64px; border-radius: 50%;
    background: rgba(40,99,167,0.1); color: var(--primary-blue);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; margin: 0 auto 18px;
    transition: all 0.35s ease;
}
.sector-card:hover .sector-icon {
    background: var(--accent-orange);
    color: var(--white);
}
.sector-card .sector-abbr {
    font-size: 0.75rem; letter-spacing: 1.5px; color: var(--accent-orange);
    font-weight: 700; text-transform: uppercase; display: block; margin-bottom: 8px;
}
.sector-card h5 { font-weight: 700; color: var(--primary-navy); margin-bottom: 10px; font-size: 1.05rem; }
.sector-card p { font-size: 0.85rem; color: var(--text-muted); margin: 0; line-height: 1.5; }

/* FAQ Accordion */
.faq-accordion .accordion-item {
    border: 1px solid var(--border-color);
    border-radius: 12px !important;
    margin-bottom: 15px;
    overflow: hidden;
}
.faq-accordion .accordion-button {
    font-weight: 700;
    color: var(--primary-navy);
    background: var(--white);
    padding: 20px 25px;
}
.faq-accordion .accordion-button:not(.collapsed) {
    background: rgba(40,99,167,0.06);
    color: var(--primary-blue);
    box-shadow: none;
}
.faq-accordion .accordion-button:focus { box-shadow: none; border-color: var(--border-color); }
.faq-accordion .accordion-body { padding: 5px 25px 25px; color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; }

/* CTA Banner */
.cta-section {
    background: linear-gradient(120deg, var(--accent-orange), #ff9640);
    padding: 70px 0;
    text-align: center;
    color: var(--white);
}
.cta-section h2 { font-weight: 800; margin-bottom: 15px; }
.cta-section p { font-size: 1.05rem; margin-bottom: 30px; opacity: 0.95; max-width: 700px; margin-left: auto; margin-right: auto; }

/* Integration Badges */
.integration-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 20px; }
.integration-badge {
    background: var(--white); border: 1px solid var(--border-color); border-radius: 14px;
    padding: 25px 15px; text-align: center; transition: all 0.3s ease;
}
.integration-badge:hover {
    border-color: var(--primary-blue); transform: translateY(-5px);
    box-shadow: 0 10px 22px rgba(40,99,167,0.1);
}
.integration-badge i { font-size: 1.8rem; color: var(--primary-blue); margin-bottom: 12px; display: block; }
.integration-badge span { font-weight: 700; font-size: 0.9rem; color: var(--primary-navy); display: block; margin-bottom: 4px; }
.integration-badge small { color: var(--text-muted); font-size: 0.78rem; }

/* Deployment / Option Cards */
.deploy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.deploy-card {
    background: var(--white); border-radius: 16px; padding: 35px;
    border: 1px solid var(--border-color); text-align: center;
    transition: all 0.35s ease; position: relative;
}
.deploy-card:hover { border-color: var(--primary-blue); box-shadow: 0 15px 30px rgba(40,99,167,0.1); transform: translateY(-6px); }
.deploy-card .deploy-icon {
    width: 70px; height: 70px; border-radius: 18px; background: var(--primary-navy); color: var(--white);
    display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin: 0 auto 20px;
}
.deploy-card h4 { font-weight: 700; color: var(--primary-navy); margin-bottom: 12px; }
.deploy-card p { font-size: 0.9rem; color: var(--text-muted); }

/* Reference Logo Strip */
.ref-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; }
.ref-logo {
    background: var(--white); border: 1px solid var(--border-color); border-radius: 10px;
    padding: 18px 26px; font-weight: 700; color: var(--primary-navy); font-size: 0.95rem;
    letter-spacing: 0.3px; transition: all 0.3s ease;
}
.ref-logo:hover { border-color: var(--accent-orange); color: var(--accent-orange); transform: translateY(-3px); }

/* === CHATBOT & UTILITIES === */
#chat-toggle {
    position: fixed; bottom: 30px; right: 30px; z-index: 999;
    background-color: var(--accent-orange); color: #fff;
    border: none; padding: 15px 25px; border-radius: 50px;
    cursor: pointer; font-weight: 700; font-size: 16px;
    box-shadow: 0 6px 20px rgba(255, 119, 0, 0.4);
    transition: transform 0.3s, background-color 0.3s;
}
#chat-toggle:hover {
    transform: scale(1.05); background-color: #e66b00;
}
#chatbox {
    position: fixed; bottom: 100px; right: 30px; width: 380px; height: 520px;
    background: #fff; border: none; border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden; z-index: 999; display: none; flex-direction: column;
    animation: slideUp 0.4s ease;
}
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
#chatbox.active { display: flex; }
#chat-header {
    background: var(--primary-navy); color: #fff;
    padding: 20px; font-size: 18px; font-weight: bold;
    display: flex; align-items: center;
}
#chat-content { flex: 1; overflow-y: auto; padding: 20px; background: #f4f6f9; }
.message { margin-bottom: 20px; font-size: 15px; background: #fff; padding: 15px; border-radius: 0 15px 15px 15px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); border-left: 4px solid var(--primary-blue); }
.answer-btn { display: block; width: 100%; padding: 12px 20px; margin-bottom: 10px; background-color: var(--white); border: 1px solid var(--border-color); border-radius: 12px; cursor: pointer; font-size: 14px; font-weight: 600; text-align: left; transition: all 0.3s ease; color: var(--primary-navy); }
.answer-btn:hover { background-color: var(--primary-blue); color: var(--white); border-color: var(--primary-blue); }

/* Footer */
.ftco-footer {
    background: var(--primary-navy);
    color: rgba(255,255,255,0.7);
    padding: 80px 0 40px;
}
.ftco-footer h2 { color: #fff; font-weight: 700; margin-bottom: 30px; font-size: 1.5rem; }
.ftco-footer a { color: rgba(255,255,255,0.7); text-decoration: none; transition: color 0.3s; }
.ftco-footer a:hover { color: var(--accent-orange); }
.contact-form input, .contact-form textarea {
    width: 100%; padding: 15px; margin-bottom: 15px;
    border-radius: 8px; border: none; background: rgba(255,255,255,0.1); color: #fff;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(255,255,255,0.5); }
.contact-form input[type="submit"] {
    background-color: var(--accent-orange); font-weight: 700; cursor: pointer; transition: background 0.3s;
}
.contact-form input[type="submit"]:hover { background-color: #e66b00; }

@media (max-width: 767px) {
    .platform-table { grid-template-columns: 1fr; }
    .platform-table .cell:nth-child(odd) { border-right: none; }
    .hero-title { font-size: 2.5rem; }
    .custom-tabs .nav-link { padding: 10px 20px; font-size: 14px; }
    .tab-content-wrapper { padding: 30px 20px; }
    .stat-box .stat-number { font-size: 2.2rem; }
    .alt-section { padding: 60px 0; }
}

/* Mobile: the fixed TR/ENG language switcher sits on top of the navbar's
   hamburger toggle at narrow widths, making it unclickable. Push it below
   the navbar row instead of overlapping it. */
@media (max-width: 991px) {
    #lang-switcher {
        top: 90px !important;
    }
}
