/* ============================================
   Stanalytics HR Solutions - Custom Styles
   Based on Eagle HR Consultants design system
   ============================================ */

:root {
    /* Deep navy - primary brand colour */
    --primary-900: #0b2d5b;
    --primary-800: #0e3a70;
    --primary-700: #124886;
    --primary-600: #17589f;
    --primary-500: #1d6ab8;
    --primary-400: #4a8ecf;
    --primary-300: #7fb2e0;
    --primary-200: #b8d6ef;
    --primary-100: #e0edf9;
    --primary-50: #f0f7fd;
    /* Bright blue - interactive / action colour */
    --blue-700: #0056b3;
    --blue-600: #0069d9;
    --blue-500: #007bff;
    --blue-400: #3d9bff;
    --blue-300: #74b7ff;
    --blue-200: #b3d7ff;
    --blue-100: #d9ebff;
    --blue-50: #eef6ff;
    /* Teal - accent colour */
    --accent-700: #007a6b;
    --accent-600: #009684;
    --accent-500: #00bfa6;
    --accent-400: #2ed3bc;
    --accent-300: #66e0cf;
    --accent-200: #b3f0e7;
    --accent-100: #dcf9f4;
    /* Supporting brand colours */
    --green-600: #1e7e34;
    --green-500: #28a745;
    --lime-500: #a8e063;
    --lime-400: #bceb86;
    --secondary-50: #f2f8ff;
    --neutral-700: #374151;
    --neutral-600: #4b5563;
    --neutral-500: #6b7280;
    --neutral-400: #9ca3af;
    --neutral-100: #f3f4f6;
    --neutral-50: #f9fafb;
    --white: #ffffff;
    --text-primary: #10233f;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;
    --border-color: #e2e8f0;
    --font-family: 'Figtree', system-ui, -apple-system, sans-serif;
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-family); color: var(--text-primary); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-family); font-weight: 600; color: var(--primary-900); line-height: 1.25; }
h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
p { color: var(--text-secondary); margin-bottom: 1rem; }
a { color: var(--primary-600); text-decoration: none; transition: color 150ms ease; }
a:hover { color: var(--primary-700); }

/* ============ NAVBAR ============ */
#mainNav {
    padding: 1rem 0;
    transition: all 300ms ease;
    background-color: transparent;
    z-index: 1050;
    border-bottom: 1px solid transparent;
}
#mainNav.scrolled {
    background-color: var(--white) !important;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    padding: 0.5rem 0;
}
.brand-text { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.025em; }
.brand-text .brand-dark { color: var(--primary-900); }
.brand-text .brand-accent { color: var(--accent-500); }
/* Brand lockup - icon + wordmark images */
.brand-lockup { display: inline-flex; align-items: center; gap: 0.5rem; }
.brand-lockup img { display: block; width: auto; }
.brand-lockup .brand-icon { height: 40px; }
.brand-lockup .brand-typo { height: 30px; }
.brand-lockup--reversed .brand-typo { filter: brightness(0) invert(1); }
.footer-brand .brand-lockup .brand-icon { height: 44px; }
.footer-brand .brand-lockup .brand-typo { height: 34px; }
@media (max-width: 991.98px) {
    .brand-lockup .brand-icon { height: 34px; }
    .brand-lockup .brand-typo { height: 26px; }
    .footer-brand .brand-lockup .brand-icon { height: 40px; }
    .footer-brand .brand-lockup .brand-typo { height: 30px; }
}
.navbar-nav .nav-link {
    color: var(--primary-900);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1.25rem;
    transition: color 150ms ease;
}
.navbar-nav { display: flex; gap: 1rem; align-items: center; }
#mainNav.scrolled .navbar-nav .nav-link { color: var(--neutral-700); }
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: var(--accent-500); }
#mainNav.scrolled .navbar-nav .nav-link:hover,
#mainNav.scrolled .navbar-nav .nav-link.active { color: var(--primary-900); }
.desktop-nav { align-items: center; gap: 2rem; }
.nav-cta .btn-nav-cta {
    background-color: var(--blue-500);
    color: var(--white);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-md);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 150ms ease;
}
.nav-cta .btn-nav-cta:hover { background-color: var(--blue-600); color: var(--white); }
.nav-cta .btn-nav-cta svg { width: 1rem; height: 1rem; }
.navbar-toggler { border: none; padding: 0.25rem; }
.navbar-toggler:focus { box-shadow: none; }
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; z-index: 1060; }
.mobile-toggle span { display: block; width: 22px; height: 2px; background: var(--primary-900); margin: 5px 0; border-radius: 2px; transition: all 300ms ease; transform-origin: center; }
.mobile-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 991.98px) { .mobile-toggle { display: block; } }
.drawer-overlay { position: fixed; inset: 0; background: rgba(11,45,91,0.4); z-index: 1055; opacity: 0; visibility: hidden; transition: all 300ms ease; backdrop-filter: blur(2px); }
.drawer-overlay.show { opacity: 1; visibility: visible; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(360px, 85vw); background: var(--white); z-index: 1060; transform: translateX(100%); transition: transform 350ms cubic-bezier(0.4, 0, 0.2, 1); display: flex; flex-direction: column; box-shadow: -8px 0 30px rgba(0,0,0,0.1); }
.drawer.open { transform: translateX(0); }
.drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border-color); }
.drawer-close { background: none; border: none; cursor: pointer; color: var(--text-primary); padding: 4px; border-radius: var(--radius-sm); transition: color 150ms ease; }
.drawer-close:hover { color: var(--accent-500); }
.drawer-body { overflow-y: auto; padding: 1rem 0; }
.drawer-link { display: flex; align-items: center; justify-content: space-between; padding: 0.875rem 1.5rem; font-size: 1rem; font-weight: 500; color: var(--text-primary); text-decoration: none; transition: all 150ms ease; border: none; background: none; width: 100%; text-align: left; cursor: pointer; }
.drawer-link:hover { background: var(--primary-50); color: var(--accent-500); }
.drawer-chevron { transition: transform 200ms ease; display: flex; }
.drawer-dropdown.open .drawer-chevron { transform: rotate(180deg); }
.drawer-dropdown-menu { max-height: 0; overflow: hidden; transition: max-height 300ms ease; }
.drawer-dropdown.open .drawer-dropdown-menu { max-height: 400px; }
.drawer-dropdown-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1.5rem 0.75rem 2rem; font-size: 0.9rem; color: var(--text-secondary); text-decoration: none; transition: all 150ms ease; }
.drawer-dropdown-item:hover { background: var(--primary-50); color: var(--accent-500); }
.drawer-dropdown-item i { font-size: 1rem; width: 1.5rem; text-align: center; color: var(--accent-500); flex-shrink: 0; }
.drawer-dropdown-all { font-weight: 600; color: var(--text-primary); border-bottom: 1px solid var(--border-color); margin-bottom: 0.25rem; }
.drawer-dropdown-all i { color: var(--primary-900); }
.drawer-footer { padding: 1.25rem 1.5rem; border-top: 1px solid var(--border-color); }
@media (min-width: 992px) { .drawer, .drawer-overlay { display: none !important; } }

/* Mega menu */
.mega-dropdown { position: static !important; }
.mega-chevron { font-size: 0.65rem; margin-left: 0.25rem; transition: transform 200ms ease; display: inline-block; }
.mega-dropdown.open .mega-chevron { transform: rotate(180deg); }
.mega-panel {
    position: absolute; top: 100%; left: 0; right: 0;
    opacity: 0; visibility: hidden; pointer-events: none;
    background: var(--white);
    border-top: 1px solid var(--primary-100);
    box-shadow: 0 20px 40px rgba(11,45,91,0.12);
    z-index: 1040;
    transition: opacity 200ms ease, visibility 200ms ease;
    transform: translateY(8px);
}
.mega-dropdown.open .mega-panel { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.mega-panel-inner { padding: 2rem 0; }
.mega-panel-header { margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border-color); }
.mega-view-all { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--primary-900); font-weight: 600; font-size: 0.9rem; transition: color 150ms ease; }
.mega-view-all:hover { color: var(--accent-500); }
.mega-carousel-wrapper { position: relative; padding: 0 2.5rem; }
.mega-carousel { display: flex; gap: 1rem; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; -ms-overflow-style: none; padding: 0.5rem 0; }
.mega-carousel::-webkit-scrollbar { display: none; }
.mega-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-color); background: var(--white); color: var(--primary-900); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 200ms ease; box-shadow: var(--shadow-md); z-index: 5; }
.mega-arrow:hover { border-color: var(--accent-400); background: var(--accent-100); color: var(--accent-600); }
.mega-arrow-left { left: 0; }
.mega-arrow-right { right: 0; }
.mega-card { min-width: 280px; max-width: 280px; flex-shrink: 0; display: flex; gap: 1rem; padding: 1.25rem; border-radius: var(--radius-lg); transition: all 200ms ease; text-decoration: none; border: 1px solid transparent; }
.mega-card:hover { background: var(--primary-50); border-color: var(--primary-100); box-shadow: var(--shadow-md); }
.mega-card-icon { width: 40px; height: 40px; border-radius: var(--radius-md); background: var(--white); border: 1px solid var(--border-color); color: var(--primary-700); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; transition: all 200ms ease; margin-top: 2px; }
.mega-card:hover .mega-card-icon { border-color: var(--accent-400); color: var(--accent-600); box-shadow: var(--shadow-sm); }
.mega-card h4 { font-size: 0.95rem; font-weight: 600; color: var(--primary-900); margin-bottom: 0.35rem; transition: color 150ms ease; display: flex; align-items: center; gap: 0.5rem; }
.mega-card:hover h4 { color: var(--accent-500); }
.mega-card p { font-size: 0.825rem; color: var(--text-muted); margin-bottom: 0.5rem; line-height: 1.5; }
.mega-card ul { list-style: none; padding: 0; margin: 0 0 0.5rem; }
.mega-card ul li { font-size: 0.75rem; color: var(--text-muted); padding: 0.15rem 0; padding-left: 0.75rem; position: relative; }
.mega-card ul li::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 4px; height: 4px; border-radius: 50%; background: var(--accent-400); }
.mega-card-link { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--primary-700); font-size: 0.8rem; font-weight: 500; transition: all 150ms ease; }
.mega-card:hover .mega-card-link { color: var(--accent-500); gap: 0.5rem; }
.mega-panel-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border-color); }
.mega-panel-footer h4 { font-size: 1rem; margin-bottom: 0.25rem; color: var(--primary-900); }
.mega-panel-footer p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0; }
@media (max-width: 991.98px) { .mega-panel { display: none !important; } }

/* ============ HERO ============ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--secondary-50);
    overflow: hidden;
}
.hero-backdrop { position: absolute; top: -2rem; left: -2rem; right: -2rem; bottom: -2rem; z-index: 0; }
.hero-backdrop img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 45%; filter: blur(5px) brightness(1.12) saturate(0.92); transform: scale(1.05); }
.hero-section::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(242,248,255,0.7), rgba(242,248,255,0) 28%, rgba(242,248,255,0) 72%, rgba(242,248,255,0.75));
    z-index: 1; pointer-events: none;
}
.hero-section::after {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse 46% 130% at 50% 50%, rgba(242,248,255,0.95) 0%, rgba(242,248,255,0.9) 45%, rgba(242,248,255,0.55) 72%, rgba(242,248,255,0) 100%);
    z-index: 1; pointer-events: none;
}
.hero-bottom-fade { position: absolute; bottom: 0; left: 0; right: 0; height: 10rem; background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.7) 50%, var(--white)); z-index: 1; pointer-events: none; }
@media (min-width: 640px) { .hero-bottom-fade { height: 14rem; } }
.hero-content { position: relative; z-index: 2; padding: 7rem 0 3rem; text-align: center; }
.hero-stats-row { display: flex; justify-content: center; gap: 3rem; margin-top: 4rem; }
.hero-stat { text-align: center; }
.hero-stat-num { display: block; font-size: 1.75rem; font-weight: 700; color: var(--primary-900); line-height: 1; margin-bottom: 0.25rem; }
.hero-stat-lbl { font-size: 0.75rem; color: var(--neutral-600); font-weight: 500; }
.hero-subtitle { display: inline-block; color: var(--accent-500); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 1rem; }
.hero-title { font-size: 2.55rem; font-weight: 600; color: var(--primary-900); line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 1.5rem; text-wrap: balance; }
.hero-title span { display: block; color: var(--blue-600); }
.hero-description { font-size: 1rem; color: var(--neutral-600); max-width: 600px; margin: 0 auto; line-height: 1.7; }
.hero-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; }
.hero-cta .btn { padding: 1rem 2rem; font-weight: 600; font-size: 0.875rem; border-radius: var(--radius-lg); display: inline-flex; align-items: center; gap: 0.5rem; transition: all 200ms ease; }
.hero-cta .btn svg { width: 1rem; height: 1rem; transition: transform 150ms ease; }
.hero-cta .btn:hover svg { transform: translateX(2px); }
.btn-primary-custom { background-color: var(--blue-500); border-color: var(--blue-500); color: var(--white); box-shadow: 0 14px 34px -14px rgba(0,123,255,0.55); }
.btn-primary-custom:hover { background-color: var(--blue-600); border-color: var(--blue-600); color: var(--white); box-shadow: 0 14px 34px -14px rgba(0,123,255,0.65); }
.btn-outline-navy { border: 1px solid rgba(11,45,91,0.2); background-color: rgba(255,255,255,0.7); color: var(--primary-900); backdrop-filter: blur(4px); }
.btn-outline-navy:hover { border-color: rgba(11,45,91,0.4); background-color: var(--white); color: var(--primary-900); }

/* ============ TRUSTED BY MARQUEE ============ */
.trusted-section { padding: 2rem 0; position: relative; z-index: 2; }
.trusted-section p { text-align: center; font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.18em; color: var(--neutral-500); margin-bottom: 1rem; }
.marquee-wrapper { overflow: hidden; position: relative; mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }
.marquee-track .logo-set { display: flex; align-items: center; gap: 2.5rem; padding-right: 2.5rem; }
.marquee-track .logo-item { display: flex; align-items: center; justify-content: center; height: 2.25rem; flex-shrink: 0; }
.marquee-track .logo-item span { font-size: 0.85rem; color: var(--neutral-400); white-space: nowrap; font-weight: 500; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ============ STATS BAR ============ */
.stats-bar { background: var(--white); border: 1px solid var(--border-color); border-radius: var(--radius-xl); padding: 2.5rem; box-shadow: var(--shadow-lg); position: relative; z-index: 3; margin-top: -3rem; }
.stat-item { text-align: center; padding: 0.5rem; }
.stat-number { font-size: 2.5rem; font-weight: 700; color: var(--primary-900); line-height: 1; margin-bottom: 0.5rem; }
.stat-label { font-size: 0.875rem; color: var(--text-muted); font-weight: 500; }

/* ============ SECTIONS ============ */
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 3.5rem; }
.section-header .overline { display: inline-block; color: var(--accent-500); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 0.75rem; }
.section-header h2 { margin-bottom: 1rem; }
.section-header p { font-size: 1.05rem; }

/* ============ CARDS ============ */
.feature-card { background: var(--white); border: 1px solid var(--border-color); border-radius: var(--radius-xl); padding: 2rem; transition: all 200ms ease; height: 100%; }
.feature-card:hover { border-color: var(--primary-200); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.feature-icon { width: 56px; height: 56px; border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; font-size: 1.5rem; }
.feature-icon.icon-navy { background-color: var(--primary-100); color: var(--primary-700); }
.feature-icon.icon-accent { background-color: var(--accent-100); color: var(--accent-600); }
.feature-card h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.9rem; margin-bottom: 0; }

.service-card { background: var(--white); border: 1px solid var(--border-color); border-radius: var(--radius-xl); padding: 2rem; transition: all 200ms ease; height: 100%; display: flex; flex-direction: column; }
.service-card:hover { border-color: var(--accent-300); box-shadow: var(--shadow-lg); }
.service-card .service-number { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background-color: var(--primary-100); color: var(--primary-700); font-size: 0.8rem; font-weight: 600; margin-bottom: 1rem; }
.service-card h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.service-card p { font-size: 0.9rem; flex-grow: 1; }
.service-card .service-link { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--primary-700); font-weight: 500; font-size: 0.9rem; margin-top: 1rem; transition: all 150ms ease; }
.service-card .service-link:hover { color: var(--primary-900); gap: 0.75rem; }

.process-step { position: relative; padding: 2rem; text-align: center; }
.process-step .step-number { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, var(--primary-900), var(--blue-500)); color: var(--white); font-size: 1.25rem; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem; }
.process-step h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.process-step p { font-size: 0.9rem; max-width: 280px; margin: 0 auto; }

/* ============ ABOUT ============ */
.about-image { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-xl); }
.about-image img { width: 100%; height: auto; display: block; }
.about-content p { font-size: 1.05rem; line-height: 1.8; }

/* ============ METHODOLOGY ============ */
.methodology-step { display: flex; gap: 1.5rem; padding: 1.5rem 0; border-bottom: 1px solid var(--border-color); }
.methodology-step:last-child { border-bottom: none; }
.methodology-step .step-num { width: 48px; height: 48px; border-radius: 50%; background-color: var(--primary-100); color: var(--primary-700); font-size: 1rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.methodology-step h4 { font-size: 1rem; margin-bottom: 0.25rem; }
.methodology-step p { font-size: 0.9rem; margin-bottom: 0; }

/* ============ TESTIMONIALS ============ */
.testimonial-card { background: var(--primary-50); border: 1px solid var(--primary-100); border-radius: var(--radius-xl); padding: 2.5rem; position: relative; }
.testimonial-card::before { content: '\201C'; font-size: 4rem; font-family: Georgia, serif; color: var(--primary-200); position: absolute; top: 1rem; left: 1.5rem; line-height: 1; }
.testimonial-card blockquote { font-size: 1.05rem; font-style: italic; color: var(--neutral-700); line-height: 1.8; margin-bottom: 1.5rem; padding-left: 1rem; border-left: 3px solid var(--accent-400); }
.testimonial-card .testimonial-author { font-weight: 600; color: var(--primary-900); }
.testimonial-card .testimonial-role { font-size: 0.85rem; color: var(--text-muted); }

/* ============ CTA ============ */
.cta-section { background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-800) 100%); padding: 5rem 0; position: relative; overflow: hidden; }
.cta-content { position: relative; z-index: 2; text-align: center; }
.cta-content h2 { color: var(--white); margin-bottom: 1rem; }
.cta-content p { color: rgba(255,255,255,0.8); font-size: 1.1rem; margin-bottom: 2rem; }
.cta-buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; }
.cta-buttons .btn { padding: 0.875rem 2rem; font-weight: 600; border-radius: var(--radius-lg); }
.btn-outline-light { border: 1px solid rgba(255,255,255,0.4); color: var(--white); background: transparent; }
.btn-outline-light:hover { border-color: var(--white); background-color: rgba(255,255,255,0.1); color: var(--white); }

/* ============ FOOTER ============ */
.site-footer { background-color: var(--primary-900); color: rgba(255,255,255,0.8); padding: 4rem 0 0; }
.footer-brand { margin-bottom: 1rem; }
.footer-brand .brand-text { font-size: 1.35rem; color: var(--white); }
.footer-brand .brand-accent { color: var(--accent-500); }
.footer-tagline { font-size: 0.9rem; color: rgba(255,255,255,0.6); max-width: 320px; margin-bottom: 1.5rem; }
.footer-contact { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.5rem; }
.footer-link { color: rgba(255,255,255,0.7); font-size: 0.875rem; display: flex; align-items: center; gap: 0.5rem; transition: color 150ms ease; }
.footer-link:hover { color: var(--accent-400); }
.footer-social { display: flex; gap: 0.75rem; }
.social-link { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.7); transition: all 150ms ease; }
.social-link:hover { background-color: var(--accent-500); border-color: var(--accent-500); color: var(--primary-900); }
.footer-heading { color: var(--white); font-size: 0.9rem; font-weight: 600; margin-bottom: 1.25rem; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.625rem; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 0.85rem; transition: color 150ms ease; }
.footer-links a:hover { color: var(--accent-400); }
.footer-divider { border-color: rgba(255,255,255,0.1); margin: 3rem 0 1.5rem; }
.footer-copyright, .footer-credit { font-size: 0.8rem; color: rgba(255,255,255,0.5); margin-bottom: 0; }
.footer-credit a { color: var(--accent-400); }
.footer-credit a:hover { color: var(--accent-300); }

/* ============ CLIENTS ============ */
.clients-section { padding: 3rem 0; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.client-logos { display: flex; align-items: center; justify-content: center; gap: 3rem; flex-wrap: wrap; opacity: 0.5; }

/* ============ CASE STUDIES ============ */
.cs-card { display: grid; grid-template-columns: 1fr 320px; gap: 0; border: 1px solid var(--border-color); border-radius: var(--radius-xl); overflow: hidden; margin-bottom: 2.5rem; background: var(--white); transition: box-shadow 300ms ease; }
.cs-card:hover { box-shadow: var(--shadow-lg); }
.cs-card--reverse { grid-template-columns: 320px 1fr; }
.cs-card--reverse .cs-card-body { order: 2; }
.cs-card--reverse .cs-card-stats { order: 1; }
.cs-card-body { padding: 2.5rem; }
.cs-title { font-size: 1.5rem; margin-bottom: 1rem; }
.cs-meta p { font-size: 0.95rem; line-height: 1.7; }
.cs-meta strong { color: var(--primary-700); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
.cs-card-stats { display: flex; flex-direction: column; background: var(--primary-50); padding: 2rem; }
.cs-stat { padding: 1.25rem 1rem; border-bottom: 1px solid var(--primary-100); text-align: center; }
.cs-stat:last-child { border-bottom: none; }
.cs-stat-val { display: block; font-size: 2rem; font-weight: 700; color: var(--primary-900); line-height: 1; margin-bottom: 0.35rem; }
.cs-stat-lbl { font-size: 0.8rem; color: var(--text-muted); }

/* ============ PROVEN RESULTS ============ */
.pr-item { padding: 2.5rem 2rem; border-right: 1px solid var(--border-color); text-align: center; }
.pr-item:last-child { border-right: none; }
.pr-num { font-size: 3rem; font-weight: 700; color: var(--primary-900); line-height: 1; margin-bottom: 0.5rem; }
.pr-label { font-size: 0.85rem; font-weight: 600; color: var(--accent-600); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.75rem; }
.pr-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }
@media (max-width: 991.98px) {
    .pr-item { border-right: none; border-bottom: 1px solid var(--border-color); padding: 2rem 1.5rem; }
    .pr-item:last-child { border-bottom: none; }
}
@media (max-width: 991.98px) {
    .cs-card, .cs-card--reverse { grid-template-columns: 1fr; }
    .cs-card--reverse .cs-card-body { order: 1; }
    .cs-card--reverse .cs-card-stats { order: 2; }
    .cs-card-stats { flex-direction: row; flex-wrap: wrap; }
    .cs-stat { flex: 1; min-width: 120px; border-bottom: none; border-right: 1px solid var(--primary-100); }
    .cs-stat:last-child { border-right: none; }
}

/* ============ INSIGHTS ============ */
.filter-tabs { gap: 0.5rem; flex-wrap: wrap; }
.filter-tabs .nav-link {
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 0.45rem 1.15rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary-700);
    background: var(--white);
    transition: all 150ms ease;
}
.filter-tabs .nav-link:hover { border-color: var(--accent-400); color: var(--accent-600); }
.filter-tabs .nav-link.active { background: var(--blue-500); border-color: var(--blue-500); color: var(--white); }
.ins-featured { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--border-color); border-radius: var(--radius-xl); overflow: hidden; margin-bottom: 2.5rem; background: var(--white); }
.ins-featured-tag { background: var(--primary-900); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; writing-mode: vertical-lr; transform: rotate(180deg); padding: 2rem 1rem; }
.ins-featured-content { padding: 2.5rem; }
.ins-featured-content h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.ins-featured-content p { font-size: 1rem; line-height: 1.7; }
.ins-card { background: var(--white); border: 1px solid var(--border-color); border-radius: var(--radius-xl); padding: 2rem; display: flex; flex-direction: column; transition: all 200ms ease; }
.ins-card:hover { border-color: var(--primary-200); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.ins-card-tag { display: inline-block; font-size: 0.7rem; font-weight: 600; color: var(--accent-600); background: var(--accent-100); padding: 0.2rem 0.6rem; border-radius: var(--radius-sm); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1rem; align-self: flex-start; }
.ins-card-title { font-size: 1.1rem; margin-bottom: 0.75rem; flex-grow: 0; }
.ins-card p { font-size: 0.9rem; flex-grow: 1; }
.ins-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--border-color); }
.ins-card-cat { font-size: 0.7rem; font-weight: 600; color: var(--primary-700); background: var(--primary-50); padding: 0.2rem 0.6rem; border-radius: var(--radius-sm); text-transform: uppercase; letter-spacing: 0.05em; }
.ins-link { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--primary-700); font-size: 0.85rem; font-weight: 500; transition: all 150ms ease; }
.ins-link:hover { color: var(--accent-500); gap: 0.5rem; }
.ins-newsletter { margin-top: 3.5rem; }
.ins-newsletter-inner { display: flex; align-items: center; justify-content: space-between; gap: 3rem; padding: 2.5rem; background: var(--primary-50); border: 1px solid var(--primary-100); border-radius: var(--radius-xl); }
.ins-newsletter-inner h3 { font-size: 1.25rem; margin-bottom: 0.25rem; }
.ins-newsletter-inner p { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 0; }
.ins-newsletter-form { display: flex; gap: 0.75rem; flex-shrink: 0; }
.ins-newsletter-form .form-control { min-width: 260px; background: var(--white); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 0.75rem 1rem; }
.ins-newsletter-form .form-control:focus { border-color: var(--primary-400); box-shadow: 0 0 0 3px rgba(0,123,255,0.1); outline: none; }
@media (max-width: 991.98px) {
    .ins-featured { grid-template-columns: 1fr; }
    .ins-featured-tag { writing-mode: horizontal-tb; transform: none; padding: 1rem 2rem; }
    .ins-newsletter-inner { flex-direction: column; text-align: center; gap: 1.5rem; }
    .ins-newsletter-form { flex-direction: column; width: 100%; }
    .ins-newsletter-form .form-control { min-width: auto; width: 100%; }
}

/* ============ INSIGHT DETAIL ============ */
.article-back { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; font-weight: 500; color: var(--text-secondary); margin-bottom: 1.5rem; }
.article-back:hover { color: var(--blue-600); }
.article-body { font-size: 1rem; line-height: 1.85; color: var(--text-secondary); }
.article-body h2 { font-size: 1.35rem; color: var(--primary-900); margin: 2.25rem 0 1rem; }
.article-body p { margin-bottom: 1.15rem; }
.article-body ul { margin: 0 0 1.5rem; padding-left: 1.3rem; }
.article-body li { margin-bottom: 0.5rem; }
.article-lead { font-size: 1.15rem; line-height: 1.7; color: var(--primary-800); font-weight: 500; margin-bottom: 1.75rem; }
.article-meta { display: flex; flex-wrap: wrap; gap: 1.25rem; font-size: 0.85rem; color: var(--text-muted); }
.article-meta span { display: inline-flex; align-items: center; gap: 0.4rem; }
.article-sidebar { position: sticky; top: 100px; }
.article-sidebar-title { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); font-weight: 600; margin-bottom: 1rem; }
.related-card { display: block; border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 1.1rem 1.25rem; margin-bottom: 0.85rem; transition: all 200ms ease; }
.related-card:hover { border-color: var(--primary-200); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.related-cat { display: inline-block; font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent-600); background: var(--accent-100); padding: 0.15rem 0.55rem; border-radius: var(--radius-sm); margin-bottom: 0.5rem; }
.related-card h4 { font-size: 0.95rem; margin-bottom: 0.35rem; }
.related-card p { font-size: 0.82rem; color: var(--text-muted); margin: 0; line-height: 1.5; }
.article-sidebar-cta { margin-top: 1.5rem; background: var(--primary-50); border: 1px solid var(--primary-100); border-radius: var(--radius-lg); padding: 1.5rem; }
.article-sidebar-cta h4 { font-size: 1rem; margin-bottom: 0.4rem; }
.article-sidebar-cta p { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 1rem; }
@media (max-width: 991.98px) {
    .article-sidebar { position: static; }
}

/* ============ CONTACT ============ */
.contact-form-card { background: var(--white); border: 1px solid var(--border-color); border-radius: var(--radius-xl); padding: 2.5rem; box-shadow: var(--shadow-md); }
.form-label { font-weight: 500; font-size: 0.875rem; color: var(--neutral-700); margin-bottom: 0.375rem; }
.form-control, .form-select { border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 0.75rem 1rem; font-size: 0.9rem; transition: border-color 150ms ease; color: var(--text-primary); background-color: var(--white); }
.form-control:focus, .form-select:focus { border-color: var(--primary-400); box-shadow: 0 0 0 3px rgba(0,123,255,0.1); outline: none; }
.form-control::placeholder { color: var(--neutral-400); }
textarea.form-control { min-height: 140px; resize: vertical; }
.btn-submit { background-color: var(--primary-900); border: none; color: var(--white); padding: 0.875rem 2.5rem; font-weight: 600; border-radius: var(--radius-md); transition: all 200ms ease; cursor: pointer; font-size: 0.95rem; }
.btn-submit:hover { background-color: var(--primary-800); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.contact-info-card { background: var(--primary-50); border: 1px solid var(--primary-100); border-radius: var(--radius-xl); padding: 2rem; }
.contact-info-item { display: flex; align-items: flex-start; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--primary-100); }
.contact-info-item:last-child { border-bottom: none; }
.contact-info-item i { width: 40px; height: 40px; border-radius: 50%; background-color: var(--primary-100); color: var(--primary-700); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-info-item h5 { font-size: 0.9rem; margin-bottom: 0.125rem; }
.contact-info-item p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0; }
.contact-info-item a { color: var(--primary-700); }
.contact-info-item a:hover { color: var(--primary-900); }
.contact-next-steps { list-style: none; margin: 0; padding: 0; }
.contact-next-steps li { display: flex; gap: 0.85rem; align-items: flex-start; font-size: 0.88rem; color: var(--text-secondary); padding: 0.6rem 0; }
.contact-next-steps li + li { border-top: 1px solid var(--primary-100); }
.contact-next-steps li span {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--accent-500);
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-submit:disabled { opacity: 0.75; cursor: default; transform: none; box-shadow: none; }
.contact-process-step { display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem 0; border-bottom: 1px solid var(--primary-100); }
.contact-process-step:last-child { border-bottom: none; padding-bottom: 0; }
.contact-process-step .step-num { width: 40px; height: 40px; border-radius: 50%; background-color: var(--primary-100); color: var(--primary-700); font-size: 0.9rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-process-step h5 { font-size: 0.95rem; margin-bottom: 0.25rem; color: var(--primary-900); }
.contact-process-step p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0; line-height: 1.5; }

/* ============ PAGE HEADER ============ */
.page-header {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--secondary-50);
    overflow: hidden;
    padding: 7rem 0 3rem;
}
.page-header .hero-backdrop { position: absolute; top: -2rem; left: -2rem; right: -2rem; bottom: -2rem; z-index: 0; }
.page-header .hero-backdrop img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 45%; filter: blur(5px) brightness(1.12) saturate(0.92); transform: scale(1.05); }
.page-header::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(to bottom, rgba(242,248,255,0.7), rgba(242,248,255,0) 28%, rgba(242,248,255,0) 72%, rgba(242,248,255,0.75)); z-index: 1; pointer-events: none; }
.page-header::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: radial-gradient(ellipse 46% 130% at 50% 50%, rgba(242,248,255,0.95) 0%, rgba(242,248,255,0.9) 45%, rgba(242,248,255,0.55) 72%, rgba(242,248,255,0) 100%); z-index: 1; pointer-events: none; }
.page-header-content { position: relative; z-index: 2; text-align: center; }
.page-header h1 { position: relative; z-index: 2; text-wrap: balance; }
.page-header p { color: var(--neutral-600); font-size: 1.1rem; position: relative; z-index: 2; }
.page-header .overline { color: var(--accent-500); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; display: block; margin-bottom: 0.5rem; }

/* ============ LEGAL PAGES ============ */
.legal-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 3rem; align-items: start; }
.legal-toc { position: sticky; top: 100px; background: var(--primary-50); border: 1px solid var(--primary-100); border-radius: var(--radius-lg); padding: 1.5rem 1.25rem; }
.legal-toc-title { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-muted); font-weight: 600; margin-bottom: 0.9rem; }
.legal-toc nav { display: flex; flex-direction: column; gap: 0.1rem; }
.legal-toc nav a { font-size: 0.85rem; color: var(--primary-700); padding: 0.4rem 0.6rem; border-radius: var(--radius-sm); transition: background 150ms ease, color 150ms ease; }
.legal-toc nav a:hover { background: var(--white); color: var(--blue-600); }
.legal-body { font-size: 0.95rem; line-height: 1.8; color: var(--text-secondary); }
.legal-body h2 { font-size: 1.3rem; color: var(--primary-900); margin: 2.75rem 0 1rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--border-color); scroll-margin-top: 110px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font-size: 1.02rem; color: var(--primary-800); margin: 1.75rem 0 0.6rem; }
.legal-body p { margin-bottom: 1rem; }
.legal-body ul { margin: 0 0 1.25rem; padding-left: 1.3rem; }
.legal-body li { margin-bottom: 0.45rem; }
.legal-body a { color: var(--blue-600); text-decoration: underline; }
.legal-body a:hover { color: var(--blue-700); }
.legal-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 1.5rem; }
.legal-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 0.88rem; }
.legal-table th, .legal-table td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--border-color); vertical-align: top; }
.legal-table thead th { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); background: var(--primary-50); }
.legal-table tbody tr:last-child td { border-bottom: none; }
.legal-callout { background: var(--accent-100); border-radius: var(--radius-md); padding: 1.1rem 1.25rem; margin: 0 0 1.5rem; font-size: 0.9rem; }
.legal-callout p:last-child { margin-bottom: 0; }
.legal-callout a { color: var(--accent-700); text-decoration: underline; }
.legal-contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.legal-contact-item { border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 1.1rem 1.25rem; }
.legal-contact-item i { color: var(--blue-500); font-size: 1.1rem; }
.legal-contact-item h4 { font-size: 0.85rem; margin: 0.5rem 0 0.2rem; }
.legal-contact-item p { font-size: 0.85rem; margin: 0; }
@media (max-width: 991.98px) {
    .legal-layout { grid-template-columns: 1fr; gap: 2rem; }
    .legal-toc { position: static; }
}
@media (max-width: 575.98px) {
    .legal-contact { grid-template-columns: 1fr; }
}

/* ============ SERVICE DETAIL ============ */
.service-detail-content h3 { margin-bottom: 1rem; color: var(--primary-900); }
.service-detail-content ul { list-style: none; padding: 0; }
.service-detail-content ul li { padding: 0.5rem 0; padding-left: 1.5rem; position: relative; color: var(--text-secondary); font-size: 0.95rem; }
.service-detail-content ul li::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 6px; height: 6px; border-radius: 50%; background-color: var(--accent-500); }

/* ============ RESPONSIVE ============ */
@media (min-width: 640px) { .hero-title { font-size: 3.25rem; } }
@media (min-width: 1280px) { .hero-title { font-size: 3.85rem; } }
@media (max-width: 991.98px) {
    .stat-number { font-size: 2rem; }
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }
}
@media (max-width: 767.98px) {
    .hero-section { min-height: auto; padding: 6rem 0 3rem; }
    .hero-content { padding: 2rem 0 4rem; }
    .hero-title { font-size: 2rem; }
    .hero-stats-row { gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
    .hero-stat { min-width: 40%; }
    .hero-stat-num { font-size: 1.4rem; }
    .page-header { min-height: auto; padding: 7rem 0 3rem; }
    .page-header h1 { font-size: 1.75rem; }
    .page-header::before { background: linear-gradient(to bottom, rgba(242,248,255,0.85), rgba(242,248,255,0.6) 30%, rgba(242,248,255,0.6) 70%, rgba(242,248,255,0.85)); }
    .page-header::after { background: radial-gradient(ellipse 50% 100% at 50% 50%, rgba(242,248,255,0.98) 0%, rgba(242,248,255,0.95) 50%, rgba(242,248,255,0.8) 80%, rgba(242,248,255,0) 100%); }
    .hero-section::before { background: linear-gradient(to bottom, rgba(242,248,255,0.85), rgba(242,248,255,0.6) 30%, rgba(242,248,255,0.6) 70%, rgba(242,248,255,0.85)); }
    .hero-section::after { background: radial-gradient(ellipse 50% 100% at 50% 50%, rgba(242,248,255,0.98) 0%, rgba(242,248,255,0.95) 50%, rgba(242,248,255,0.8) 80%, rgba(242,248,255,0) 100%); }
    .section { padding: 3rem 0; }
    .stats-bar { padding: 1.5rem; margin-top: -2rem; }
    .stat-number { font-size: 1.75rem; }
    .cs-card-body { padding: 1.5rem; }
    .cs-card-stats { padding: 1.25rem; }
    .cs-stat { flex: 1 1 100%; border-right: none !important; }
    .ins-card { padding: 1.5rem; }
    .contact-form-card { padding: 1.5rem; }
    .cta-buttons { flex-direction: column; align-items: stretch; }
    .cta-buttons .btn { width: 100%; }
    .site-footer { padding: 3rem 0 0; }
    .footer-heading { margin-top: 1.5rem; }
    .row.g-5 { --bs-gutter-x: 1.5rem; }
}
@media (min-width: 576px) and (max-width: 991.98px) {
    .row.g-5 { --bs-gutter-x: 2rem; }
}
@media (max-width: 575.98px) {
    body { overflow-x: hidden; }
    .hero-cta { flex-direction: column; align-items: stretch; }
    .hero-cta .btn { width: 100%; justify-content: center; }
    .mega-carousel-wrapper { padding: 0; }
    .mega-arrow { display: none !important; }
    .service-card { padding: 1.5rem; }
    .process-step { padding: 1.5rem 1rem; }
}

/* ============ TOASTS ============ */
.toast-stack {
    position: fixed;
    top: 92px;
    right: 24px;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: min(380px, calc(100vw - 40px));
    pointer-events: none;
}
.toast-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.9rem 1rem;
    box-shadow: var(--shadow-xl);
    transform: translateX(120%);
    opacity: 0;
    transition: transform 350ms cubic-bezier(0.4, 0, 0.2, 1), opacity 350ms ease;
    pointer-events: auto;
}
.toast-item.show { transform: translateX(0); opacity: 1; }
.toast-item.hiding { transform: translateX(120%); opacity: 0; }
.toast-icon { font-size: 1.15rem; line-height: 1; margin-top: 0.05rem; color: var(--accent-600); }
.toast-text { flex: 1; font-size: 0.9rem; color: var(--text-primary); }
.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 2px;
    line-height: 1;
    border-radius: var(--radius-sm);
    transition: color 150ms ease;
    flex-shrink: 0;
}
.toast-close:hover { color: var(--text-primary); }
.toast-success .toast-icon { color: var(--green-500); }
.toast-error .toast-icon { color: #dc2626; }
.toast-warning .toast-icon { color: var(--accent-600); }
@media (max-width: 575.98px) {
    .toast-stack { top: 76px; right: 12px; left: 12px; width: auto; }
}

/* ============ COOKIE CARD ============ */
.cookie-card {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9999;
    width: min(420px, calc(100vw - 40px));
    display: none;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    overflow: hidden;
}
.cookie-card.show {
    display: block;
    animation: cookieIn 0.35s ease;
}
@keyframes cookieIn {
    from { opacity: 0; transform: translateY(16px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.cookie-card-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
}
.cookie-card-top {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-right: 28px;
}
.cookie-card-icon {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: var(--primary-50);
    color: var(--primary-700);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.cookie-card-top h3 {
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.3;
    margin: 0;
}
.cookie-card-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 4px;
    border-radius: var(--radius-sm);
    transition: color 150ms ease;
}
.cookie-card-close:hover { color: var(--text-primary); }
.cookie-card-inner > p {
    font-size: 0.84rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0;
}
.cookie-card-inner > p a { color: var(--primary-700); text-decoration: underline; }
.cookie-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}
.cookie-card-actions .btn { padding: 6px 16px; font-size: 0.8rem; }
@media (max-width: 480px) {
    .cookie-card { right: 12px; bottom: 12px; left: 12px; width: auto; }
}

/* ============ ERROR PAGES ============ */
.error-code {
    font-size: 8rem;
    font-weight: 700;
    color: var(--primary-100);
    line-height: 1;
    margin-bottom: 1rem;
    letter-spacing: -0.05em;
}
.error-page h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}
.error-page p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}
@media (max-width: 767.98px) {
    .error-code { font-size: 5rem; }
    .error-page h1 { font-size: 1.4rem; }
}

/* ============ ANIMATIONS ============ */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; transform: translateY(20px); transition: all 0.6s ease-out; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============ FORM FEEDBACK ============ */
.form-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}
.form-alert-error { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.form-alert i { margin-top: 0.15rem; }
.field-error { color: #991b1b; font-size: 0.8rem; margin-top: 0.35rem; }
.req-star { color: #dc2626; font-weight: 700; }
.form-control.is-invalid, .form-select.is-invalid { border-color: #dc2626; }

/* ============ DASHBOARD ============ */
.dash-body { background: var(--neutral-50); }
.dash-shell { display: flex; min-height: 100vh; }

.dash-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: var(--primary-900);
    color: var(--white);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
}
.dash-brand {
    display: flex;
    align-items: center;
    padding: 1.5rem 1.5rem 1rem;
    text-decoration: none;
}
.dash-nav { display: flex; flex-direction: column; gap: 0.25rem; padding: 1rem 0.75rem; flex: 1; }
.dash-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.9rem;
    border-radius: var(--radius-md);
    color: rgba(255,255,255,0.78);
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: background 150ms ease, color 150ms ease;
}
.dash-nav-link i { font-size: 1.05rem; }
.dash-nav-link:hover { background: rgba(255,255,255,0.08); color: var(--white); }
.dash-nav-link.active { background: var(--blue-500); color: var(--white); }
.dash-badge {
    margin-left: auto;
    background: var(--white);
    color: var(--primary-900);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
}
.dash-nav-link.active .dash-badge { background: var(--white); color: var(--blue-600); }
.dash-sidebar-footer { padding: 1rem 0.75rem; border-top: 1px solid rgba(255,255,255,0.1); }
.dash-logout:hover { background: rgba(220,38,38,0.25); color: var(--white); }

.dash-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dash-topbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.75rem;
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 20;
}
.dash-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-900);
    cursor: pointer;
    line-height: 1;
}
.dash-page-title { font-size: 1.15rem; margin: 0; }
.dash-user { margin-left: auto; display: flex; align-items: center; gap: 0.65rem; }
.dash-user-name { font-size: 0.85rem; color: var(--text-secondary); }
.dash-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-900);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.dash-avatar--sm { width: 34px; height: 34px; font-size: 0.85rem; background: var(--primary-100); color: var(--primary-900); }

.dash-content { padding: 1.75rem; }

.dash-messages { padding: 1.25rem 1.75rem 0; }
.dash-alert {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}
.dash-alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.dash-alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.dash-alert-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.dash-alert-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

.dash-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.dash-stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: transform 150ms ease, box-shadow 150ms ease;
}
.dash-stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.dash-stat-icon {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-md);
    background: var(--primary-50);
    color: var(--primary-700);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.dash-stat-icon--accent { background: var(--accent-100); color: var(--accent-600); }
.dash-stat-icon--green { background: #ecfdf5; color: var(--green-500); }
.dash-stat-icon--blue { background: var(--blue-50); color: var(--blue-500); }
.dash-stat-num { display: block; font-size: 1.6rem; font-weight: 700; color: var(--primary-900); line-height: 1.1; }
.dash-stat-label { font-size: 0.82rem; color: var(--text-secondary); }

.dash-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.dash-grid--detail { grid-template-columns: 1.3fr 1fr; align-items: start; }

.dash-panel {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}
.dash-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.1rem;
}
.dash-panel-head h2 { font-size: 1.05rem; margin: 0; }
.dash-panel-link { font-size: 0.85rem; font-weight: 500; color: var(--accent-600); display: inline-flex; align-items: center; gap: 0.3rem; }

.dash-list { list-style: none; margin: 0; padding: 0; }
.dash-list li + li { border-top: 1px solid var(--border-color); }
.dash-list-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 0.25rem;
    text-decoration: none;
    color: inherit;
    transition: background 150ms ease;
}
a.dash-list-item:hover { background: var(--primary-50); border-radius: var(--radius-md); }
.dash-list-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.dash-list-title { font-weight: 600; font-size: 0.9rem; color: var(--text-primary); display: flex; align-items: center; gap: 0.4rem; }
.dash-list-sub { font-size: 0.8rem; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-list-meta { font-size: 0.78rem; color: var(--text-muted); white-space: nowrap; }
.dash-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-500); display: inline-block; }
.dash-empty { color: var(--text-muted); font-size: 0.9rem; margin: 0.5rem 0; }

.dash-toolbar { display: flex; gap: 0.75rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.dash-search { position: relative; flex: 1; min-width: 220px; }
.dash-search i { position: absolute; left: 0.9rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.dash-search .form-control { padding-left: 2.4rem; }
.dash-filter { max-width: 180px; }

.dash-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.dash-table th {
    text-align: left;
    padding: 0.6rem 0.75rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}
.dash-table td { padding: 0.85rem 0.75rem; border-bottom: 1px solid var(--border-color); vertical-align: middle; }
.dash-table tr:last-child td { border-bottom: none; }
.dash-row-unread { background: #fffdf7; }
.dash-cell-strong { font-weight: 600; color: var(--text-primary); }
.dash-pill {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    background: var(--neutral-100);
    color: var(--neutral-600);
}
.dash-pill-green { background: #ecfdf5; color: var(--green-500); }
.dash-pill-accent { background: var(--accent-100); color: var(--accent-600); }
.dash-btn-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--white);
    color: var(--primary-900);
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 150ms ease;
}
.dash-btn-sm:hover { background: var(--primary-900); color: var(--white); border-color: var(--primary-900); }
.dash-pagination { display: flex; align-items: center; gap: 0.75rem; justify-content: center; margin-top: 1.25rem; font-size: 0.85rem; color: var(--text-secondary); }

.dash-back { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 1rem; }
.dash-back:hover { color: var(--accent-600); }

.dash-detail-list { display: grid; grid-template-columns: 110px 1fr; gap: 0.5rem 1rem; margin: 0 0 1.25rem; }
.dash-detail-list dt { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); font-weight: 600; }
.dash-detail-list dd { margin: 0; font-size: 0.9rem; color: var(--text-primary); }
.dash-message-body {
    background: var(--neutral-50);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem 1.1rem;
    font-size: 0.92rem;
    color: var(--text-secondary);
}
.dash-message-body p:last-child { margin-bottom: 0; }
.dash-replied-note { font-size: 0.85rem; color: var(--green-500); display: flex; align-items: center; gap: 0.4rem; margin-bottom: 1rem; }
.dash-reply-history { list-style: none; margin: 0; padding: 0; }
.dash-reply-history li { padding: 1rem 0; border-top: 1px solid var(--border-color); }
.dash-reply-history li:first-child { border-top: none; padding-top: 0; }
.dash-reply-head { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 0.4rem; }
.dash-reply-history p { font-size: 0.9rem; margin: 0; color: var(--text-secondary); }

.dash-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11,45,91,0.45);
    opacity: 0;
    visibility: hidden;
    transition: all 250ms ease;
    z-index: 40;
}
.dash-overlay.show { opacity: 1; visibility: visible; }

/* Dashboard login */
.dash-login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary-50);
    padding: 2rem 1rem;
}
.dash-login-card {
    width: 100%;
    max-width: 420px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-lg);
}
.dash-login-brand { display: inline-block; margin-bottom: 1.25rem; }
.dash-login-card h1 { font-size: 1.4rem; margin-bottom: 0.4rem; }
.dash-login-sub { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 1.5rem; }
.dash-login-form .form-label { font-size: 0.85rem; font-weight: 500; }
.password-field { position: relative; }
.password-field .form-control { padding-right: 2.75rem; }
.password-toggle {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.05rem;
    transition: color 150ms ease;
}
.password-toggle:hover { color: var(--primary-900); }
.password-toggle:focus-visible { outline: 2px solid var(--accent-500); outline-offset: -2px; border-radius: var(--radius-sm); }
.dash-login-back { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; color: var(--text-secondary); margin-top: 1.25rem; }
.dash-login-back:hover { color: var(--accent-600); }

@media (max-width: 991.98px) {
    .dash-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        z-index: 50;
        transform: translateX(-100%);
        transition: transform 300ms cubic-bezier(0.4,0,0.2,1);
    }
    .dash-sidebar.open { transform: translateX(0); }
    .dash-menu-toggle { display: block; }
    .dash-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dash-grid, .dash-grid--detail { grid-template-columns: 1fr; }
    .dash-content { padding: 1.25rem; }
    .dash-topbar { padding: 0.9rem 1.25rem; }
    .dash-user-name { display: none; }
}
@media (max-width: 767.98px) {
    .dash-table thead { display: none; }
    .dash-table, .dash-table tbody, .dash-table tr, .dash-table td { display: block; width: 100%; }
    .dash-table tr {
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        padding: 0.5rem 0.9rem;
        margin-bottom: 0.75rem;
    }
    .dash-table tr.dash-row-unread { border-left: 3px solid var(--accent-500); }
    .dash-table td {
        border: none;
        padding: 0.35rem 0;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        text-align: left !important;
    }
    .dash-table td::before {
        content: attr(data-label);
        flex: 0 0 92px;
        font-size: 0.68rem;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: var(--text-muted);
        font-weight: 600;
    }
    .dash-table td[data-label=""] { justify-content: flex-end; padding-top: 0.6rem; }
    .dash-table td[data-label=""]::before { display: none; }
    .dash-table td[data-label=""] .dash-btn-sm { width: 100%; }
}
@media (max-width: 575.98px) {
    .dash-stats { grid-template-columns: 1fr; }
    .dash-toolbar .dash-filter { max-width: none; }
    .dash-toolbar .btn { width: 100%; }
    .dash-detail-list { grid-template-columns: 1fr; gap: 0.15rem 0; }
    .dash-detail-list dd { margin-bottom: 0.6rem; }
}
