/**
 * Survis - Common Global Stylesheet
 * Brand Theme: Royal Blue & White (Appsinvo Inspired)
 * Typography: Poppins (Minimum standard size: 14px)
 */

:root {
    --brand-primary: #006eb5;
    --brand-dark: #071838;
    --brand-light: #f0f7fc;
    --brand-accent: #38bdf8;
}

/* Base Body Styles */
body {
    font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #1e293b;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Enforce minimum 14px standard font size across elements */
body,
p,
span,
a,
button,
input,
select,
textarea,
li,
div {
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
}

/* Header & Nav Styling */
.site-header {
    transition: all 0.3s ease;
}

.site-header.is-scrolled {
    box-shadow: 0 10px 30px -5px rgba(7, 24, 56, 0.1);
    background-color: rgba(255, 255, 255, 0.98);
}

/* Sticky Header Left Light Blue Accent Background (Width 17%, no right border) */
.header-brand-bg {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 17%;
    min-width: 135px;
    /* Ensures logo is preserved on small mobile screens */
    background: linear-gradient(135deg, #e4f2fb 0%, #edf6fd 60%, #f4faff 100%);
    clip-path: polygon(0 0, 100% 0, calc(100% - 20px) 100%, 0 100%);
    transition: width 0.3s ease, background 0.3s ease;
}

/* Nav Link Hover Underline Indicator (Appsinvo Style) */
.nav-link-item {
    position: relative;
}

.nav-link-item::after {
    content: '';
    position: absolute;
    bottom: 16px;
    left: 0;
    width: 0;
    height: 2px;
    background: #006eb5;
    transition: width 0.25s ease;
    border-radius: 2px;
}

.nav-link-item:hover::after,
.nav-link-item.text-brand-600::after {
    width: 100%;
}

/* Nav Dropdown & Mega Menu Hover Engine */
.nav-item {
    position: relative;
}

.nav-item.static {
    position: static !important;
}

/* Nav Dropdown Bridge: guarantees seamless cursor transition from button to menu without dropping hover */
.nav-item::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 20px;
    z-index: 45;
    pointer-events: auto;
}

/* Dropdown & Mega Menu Hover State: Pure CSS guarantee across all viewports */
.nav-item:hover > .dropdown-menu,
.nav-item:hover > .mega-menu,
.nav-item:hover > div[class*="absolute"],
.group:hover > .dropdown-menu,
.group:hover > .mega-menu,
.group:hover > div[class*="absolute"] {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}

.nav-item:hover > button,
.group:hover > button {
    color: #006eb5 !important;
}

.nav-item:hover > button i.fa-chevron-down,
.group:hover > button i.fa-chevron-down {
    transform: rotate(180deg) !important;
    color: #006eb5 !important;
}

/* Mega Menu Custom Styling */
.solution-mega-menu {
    box-shadow: 0 25px 60px -15px rgba(7, 24, 56, 0.15), 0 0 1px 1px rgba(15, 23, 42, 0.05);
}

/* Off-Canvas Drawer Custom Scrollbar */
#mobileCanvasDrawer div::-webkit-scrollbar {
    width: 4px;
}

#mobileCanvasDrawer div::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

/* Tree-Accordion Transition */
.tree-content {
    transition: all 0.25s ease-in-out;
}

/* FAQ Accordion Styles & Transitions */
.faq-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-card:hover {
    border-color: #80c1eb;
}

.faq-card.is-open {
    background-color: #ffffff !important;
    border-color: #006eb5 !important;
    box-shadow: 0 10px 25px -5px rgba(0, 110, 181, 0.12), 0 8px 10px -6px rgba(0, 110, 181, 0.06);
}

.faq-card.is-open .faq-title {
    color: #006eb5 !important;
}

.faq-card.is-open .faq-icon-wrap {
    background-color: #f0f7fc !important;
    color: #006eb5 !important;
}

.faq-chevron {
    display: inline-block;
    transform-origin: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-card.is-open .faq-chevron {
    transform: rotate(180deg) !important;
    color: #006eb5 !important;
}

.faq-body {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease-in-out, visibility 0.35s;
}

.faq-card.is-open .faq-body {
    max-height: 600px;
    opacity: 1;
    visibility: visible;
}

/* Smooth Links */
a,
button {
    transition: all 0.2s ease-in-out;
}

/* Selection Color */
::selection {
    background-color: #b8def3;
    color: #004776;
}

/* Custom Page Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #80c1eb;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #006eb5;
}