/* =========================
   HILINK ENTERPRISE THEME
========================= */

:root {
    --white: #FFFFFF;
    --blue: #1D8CFF;
    --green: #22C55E;
    --navy: #0B1F3A;
    --slate: #64748B;
    --ice-blue: #EAF5FF;
    --border: #DDE7F0;
    --dark: #111827;
}

/* =========================
        RESET & GENERAL
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    background: var(--white);
    color: var(--dark);
    line-height: 1.6;
    padding-top: 90px;
}

/* =========================
        NAVBAR
========================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--slate);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .15);
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 48px;
    width: auto;
}

nav {
    display: flex;
    align-items: center;
    gap: 35px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: .3s;
}

nav a:hover,
nav a.active {
    color: var(--green);
}

.contact-btn {
    background: var(--green);
    color: white !important;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: bold;
    transition: .3s;
}

.contact-btn:hover {
    background: var(--blue);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 35px;
    left: 0;
    width: 230px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
}

.dropdown-menu a {
    color: var(--navy);
    display: block;
    padding: 14px 18px;
}

.dropdown-menu a:hover {
    background: var(--ice-blue);
    color: var(--blue);
}

.dropdown:hover .dropdown-menu {
    display: block;
}

/* Mobile Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: white;
    border-radius: 2px;
}

/* =========================
        PAGE HERO
========================= */

.page-hero {
    background: white;
    text-align: center;
    padding: 80px 20px 50px;
}

.page-hero h1 {
    font-size: 48px;
    color: var(--navy);
    font-weight: 800;
}

.page-hero p {
    margin-top: 15px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    font-size: 18px;
    color: var(--slate);
}

/* =========================
        FAQ SEARCH
========================= */

.faq-search-section {
    max-width: 700px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

#faqSearchInput {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    border: 2px solid var(--border);
    border-radius: 10px;
    transition: .3s;
}

#faqSearchInput:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, .2);
}

/* =========================
        FAQ SECTION
========================= */

.faq-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

.faq-category {
    margin-bottom: 50px;
}

.faq-category h2 {
    font-size: 24px;
    color: var(--navy);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: var(--ice-blue);
    border-radius: 12px;
    padding: 22px 26px;
    border: 1px solid var(--border);
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    font-size: 17px;
    font-weight: 700;
    color: var(--navy);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-heading {
    flex: 1;
}

.faq-item summary::after {
    content: "+";
    font-size: 22px;
    color: var(--green);
    flex-shrink: 0;
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-item p {
    margin-top: 14px;
    color: var(--slate);
    line-height: 1.7;
    font-size: 15px;
}

.faq-item.hidden {
    display: none;
}

/* =========================
        CONTACT CTA
========================= */

.contact-cta {
    background: var(--navy);
    color: white;
    text-align: center;
    padding: 70px 30px;
}

.contact-cta h2 {
    font-size: 34px;
    margin-bottom: 15px;
}

.contact-cta p {
    color: #CBD5E1;
    font-size: 17px;
    margin-bottom: 30px;
}

.cta-btn {
    display: inline-block;
    background: var(--green);
    color: white;
    padding: 15px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: .3s;
}

.cta-btn:hover {
    background: var(--blue);
    box-shadow: 0 0 20px var(--blue);
}

/* =========================
            FOOTER
========================= */

.footer {
    background: var(--slate);
    color: white;
    padding-top: 70px;
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    padding: 0 40px 50px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 40px;
}

.footer-column h3 {
    color: var(--green);
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(34, 197, 94, .8);
}

.footer-column p {
    color: #D5DCE8;
    line-height: 1.8;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: #D5DCE8;
    text-decoration: none;
    transition: .3s;
}

.footer-column a:hover {
    color: var(--green);
}
/*SOCIALS*/
.social-links {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    transition: 0.3s;
}

.linkedin-icon {
    width: 18px;
    height: 18px;
    fill: var(--white);
}

.social-links a:hover {
    background: var(--green);
    border-color: var(--green);
    transform: translateY(-3px);
}

.social-links a:hover .linkedin-icon {
    fill: var(--navy);
}

/* Newsletter */
.newsletter input {
    width: 100%;
    padding: 13px;
    border-radius: 6px;
    border: none;
    margin-top: 15px;
}

.newsletter button {
    width: 100%;
    margin-top: 12px;
    padding: 13px;
    border: none;
    border-radius: 6px;
    background: var(--green);
    color: white;
    font-weight: bold;
    cursor: pointer;
}

.newsletter button:hover {
    background: var(--blue);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .2);
    text-align: center;
    padding: 20px;
}

.footer-bottom p {
    color: #CBD5E1;
}

/* =========================
        AI CHATBOT
========================= */

.chat-widget {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 2000;
}

.chat-toggle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--green);
    border: none;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, background 0.3s;
}

.chat-toggle-btn:hover {
    transform: scale(1.08);
    background: var(--blue);
}

.chat-icon {
    width: 28px;
    height: 28px;
    fill: white;
}

.chat-window {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 360px;
    height: 480px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(11, 31, 58, 0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border);
}

.chat-window.active {
    display: flex;
}

.chat-header {
    background: var(--navy);
    color: white;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-status {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-dot {
    width: 10px;
    height: 10px;
    background: var(--green);
    border-radius: 50%;
}

.chat-header h4 {
    font-size: 15px;
    margin: 0;
}

.chat-header small {
    color: var(--slate);
    font-size: 12px;
}

.chat-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #F8FAFC;
}

.chat-msg {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
}

.chat-msg.bot {
    background: var(--ice-blue);
    color: var(--navy);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.chat-msg.user {
    background: var(--green);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chat-input-area {
    padding: 12px 16px;
    background: white;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 10px;
}

.chat-input-area input {
    flex: 1;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 10px 16px;
    font-size: 14px;
    outline: none;
}

.chat-input-area input:focus {
    border-color: var(--green);
}

.chat-send-btn {
    background: var(--navy);
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.chat-send-btn svg {
    width: 18px;
    height: 18px;
    fill: white;
}

.chat-send-btn:hover {
    background: var(--blue);
}

/* =========================
        COOKIE CONSENT
========================= */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--navy);
    color: white;
    padding: 20px 30px;
    z-index: 2500;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.2);
    display: none;
}

.cookie-banner.show {
    display: block;
}

.cookie-content {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.cookie-content p {
    flex: 1;
    min-width: 250px;
    font-size: 14px;
    color: #CBD5E1;
    line-height: 1.6;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
}

.btn-cookie-accept {
    background: var(--green);
    color: var(--navy);
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.btn-cookie-accept:hover {
    background: var(--blue);
    color: white;
}

.btn-cookie-decline {
    background: transparent;
    color: #CBD5E1;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-cookie-decline:hover {
    border-color: var(--green);
    color: var(--green);
}

/* =========================
        RESPONSIVE MEDIA
========================= */

@media(max-width: 1000px) {
    .footer-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media(max-width: 700px) {
    body {
        padding-top: 80px;
    }

    .navbar {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 16px 20px;
    }

    .menu-toggle {
        display: flex;
    }

    nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--navy);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: .3s;
    }

    nav.open {
        max-height: 600px;
        padding: 10px 0 20px;
    }

    nav a {
        width: 100%;
        padding: 14px 30px;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        display: none;
    }

    .dropdown.open .dropdown-menu {
        display: block;
    }

    .page-hero h1 {
        font-size: 34px;
    }

    .faq-item summary {
        font-size: 15.5px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        width: 100%;
    }

    .btn-cookie-accept,
    .btn-cookie-decline {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .chat-window {
        width: calc(100vw - 40px);
        right: -10px;
    }
}