/* TAX.hk Main Stylesheet - Professional Navy & Gold Design System */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    /* Navy Blue & Gold palette (matches demo design) */
    --primary: #003D7A;
    --primary-dark: #001a3d;
    --primary-light: #0052B3;
    --accent: #D4AF37;
    --accent-dark: #B8941A;
    --accent-light: #e6c84a;
    --cyan: #0d89bf;
    --cyan-light: #3ba7d5;
    --teal: #0d9488;
    --teal-light: #14b8a6;
    --coral: #f97316;
    --white: #FFFFFF;
    --light: #FAFBFC;
    --warm-bg: #f9fafb;
    --cream: #fdfbf7;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --text-primary: #0b0b0b;
    --text-secondary: #8e8e8e;
    --success: #2e7d32;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
    --shadow-glow: 0 0 40px rgba(13, 137, 191, 0.12);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-pill: 60px;
    --transition: all 0.4s cubic-bezier(.44,0,.56,1);
    --nav-height: 70px;
}
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', 'Noto Sans HK', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--white);
    font-size: 16px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== NAVBAR - Qualitas Clean Single Bar ===== */
.top-bar { display: none; }
.navbar {
    background: var(--white);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease, background 0.3s ease;
}
.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}
.navbar::after { display: none; }
.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--nav-height);
}
.navbar-brand {
    text-decoration: none;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.brand-name {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
}
.brand-dot { color: var(--cyan); }
.brand-tagline { display: none; }

/* Nav Links */
.navbar-links {
    display: flex;
    align-items: center;
    gap: 0;
}
.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}
.nav-link:hover {
    color: var(--primary);
}
.nav-link.active {
    color: var(--primary);
    font-weight: 600;
}
.nav-link .nav-arrow {
    font-size: 0.55rem;
    margin-left: 0.3rem;
    transition: transform 0.3s ease;
}
.nav-mega-wrapper.open .nav-arrow {
    transform: rotate(180deg);
}

/* Navbar Actions (right side) */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.nav-login-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 0.75rem;
    transition: color 0.3s ease;
    border-bottom: 1.5px solid transparent;
}
.nav-login-link:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}
.nav-cta {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.75rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-pill);
    transition: var(--transition);
    white-space: nowrap;
}
.nav-cta:hover {
    background: var(--cyan);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(13, 137, 191, 0.3);
}

/* ===== MEGA MENU ===== */
.nav-mega-wrapper {
    position: relative;
}
.nav-mega-trigger {
    display: inline-flex;
    align-items: center;
}
.mega-menu {
    position: absolute;
    top: calc(100% + 20px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 2px 10px rgba(0, 0, 0, 0.06);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(.44,0,.56,1);
    z-index: 1100;
    min-width: 780px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 0;
    overflow: hidden;
}
.nav-mega-wrapper.open .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
/* Arrow pointer */
.mega-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 16px;
    height: 16px;
    background: white;
    border-left: 1px solid rgba(0, 0, 0, 0.06);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.mega-menu-inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
}
.mega-col {
    padding: 1.75rem;
    border-right: 1px solid var(--gray-100);
}
.mega-col:last-child {
    border-right: none;
}
.mega-heading {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 1rem;
    padding-left: 0.5rem;
}
.mega-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0.5rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: background 0.2s ease;
    color: var(--text-primary);
}
.mega-item:hover {
    background: var(--gray-50);
    color: var(--text-primary);
}
.mega-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(36, 94, 118, 0.08);
    color: var(--primary);
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-top: 2px;
}
.mega-item:hover .mega-icon {
    background: var(--primary);
    color: white;
}
.mega-item-title {
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.15rem;
    color: var(--text-primary);
}
.mega-item-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.4;
    font-weight: 300;
}
.mega-item-all {
    margin-top: 0.5rem;
    border-top: 1px solid var(--gray-100);
    padding-top: 1rem;
}
.mega-item-all .mega-icon {
    background: var(--cyan);
    color: white;
}
/* Mega Featured Column */
.mega-featured {
    background: var(--gray-50);
    padding: 0;
    border-right: none;
}
.mega-featured-card {
    height: 100%;
    position: relative;
    overflow: hidden;
}
.mega-featured-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.mega-featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
}
.mega-featured-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    color: var(--cyan-light);
    margin-bottom: 0.3rem;
}
.mega-featured-title {
    font-weight: 500;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}
.mega-featured-content p {
    font-size: 0.78rem;
    opacity: 0.8;
    font-weight: 300;
    line-height: 1.4;
    margin: 0;
}

/* ===== LANGUAGE DROPDOWN ===== */
.lang-dropdown {
    position: relative;
}
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: none;
    border: 1px solid var(--gray-200);
    color: var(--gray-700);
    padding: 0.4rem 0.7rem;
    border-radius: var(--radius-pill);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
    font-family: inherit;
}
.lang-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.lang-toggle .fa-globe {
    font-size: 0.85rem;
    color: var(--primary);
}
.lang-current {
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}
.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 1100;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
}
.lang-dropdown.open .lang-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.lang-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 1rem;
    color: var(--gray-700);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.15s ease;
    border-bottom: 1px solid var(--gray-50);
}
.lang-dropdown-menu a:last-child { border-bottom: none; }
.lang-dropdown-menu a:hover { background: var(--gray-50); color: var(--primary); }
.lang-dropdown-menu a.active { background: var(--primary); color: white; }
.lang-flag { font-size: 1rem; }

/* ===== MOBILE MENU ===== */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--gray-700);
}
.mobile-menu-toggle i { font-size: 1.5rem; }
.mobile-menu-content {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 9999;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(.44,0,.56,1);
}
.mobile-menu-content.active {
    transform: translateX(0);
}
.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-100);
}
.mobile-menu-header .brand-name {
    font-size: 1.4rem;
}
.mobile-menu-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-600);
    cursor: pointer;
    padding: 0.5rem;
}
.mobile-nav-list {
    list-style: none;
    padding: 1rem 0;
}
.mobile-nav-list > li > a,
.mobile-nav-list > li > button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1rem;
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    transition: background 0.2s;
}
.mobile-nav-list > li > a:hover,
.mobile-nav-list > li > button:hover {
    background: var(--gray-50);
}
.mobile-nav-list > li > a.active {
    color: var(--primary);
    font-weight: 600;
}
.mobile-dropdown-trigger i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
    color: var(--gray-400);
}
.mobile-dropdown.open > .mobile-dropdown-trigger i {
    transform: rotate(180deg);
}
.mobile-dropdown-menu {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--gray-50);
}
.mobile-dropdown.open .mobile-dropdown-menu {
    max-height: 500px;
}
.mobile-dropdown-menu li a {
    display: block;
    padding: 0.75rem 1.5rem 0.75rem 2.5rem;
    color: var(--gray-700);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.mobile-dropdown-menu li a:hover {
    color: var(--primary);
}
.mobile-menu-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--gray-100);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.mobile-lang-grid {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}
.mobile-lang-grid a {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 0.8rem;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gray-700);
    text-decoration: none;
    background: var(--gray-100);
    transition: all 0.2s;
}
.mobile-lang-grid a:hover { background: var(--gray-200); }
.mobile-lang-grid a.active { background: var(--primary); color: white; }
.mobile-auth-btn {
    display: block;
    text-align: center;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--gray-700);
    background: var(--gray-50);
    border: none;
    cursor: pointer;
    font-family: inherit;
    width: 100%;
    transition: all 0.2s;
}
.mobile-auth-btn:hover { background: var(--gray-100); }
.mobile-register { background: var(--primary); color: white; }
.mobile-register:hover { background: var(--primary-light); }
.mobile-logout { color: var(--gray-500); }
.mobile-cta-btn {
    display: block;
    text-align: center;
    padding: 0.85rem;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    background: var(--primary);
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}
.mobile-cta-btn:hover { background: var(--cyan); color: white; }

/* Body offset for fixed navbar */
body {
    padding-top: var(--nav-height);
}
body.has-transparent-nav {
    padding-top: 0;
}
body.has-transparent-nav .breadcrumb-nav {
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    z-index: 5;
}
body.has-transparent-nav .breadcrumb-item a { color: rgba(255,255,255,0.7); }
body.has-transparent-nav .breadcrumb-item a:hover { color: white; }
body.has-transparent-nav .breadcrumb-current { color: rgba(255,255,255,0.5); }
body.has-transparent-nav .breadcrumb-separator { color: rgba(255,255,255,0.3); }

/* ===== TRANSPARENT NAVBAR (inner pages with hero) ===== */
.navbar-transparent {
    background: transparent;
    border-bottom-color: transparent;
}
.navbar-transparent .brand-name { color: white; }
.navbar-transparent .brand-dot { color: rgba(255,255,255,0.7); }
.navbar-transparent .nav-link { color: rgba(255,255,255,0.9); }
.navbar-transparent .nav-link:hover { color: white; }
.navbar-transparent .nav-link.active { color: white; }
.navbar-transparent .nav-login-link { color: rgba(255,255,255,0.85); border-bottom-color: transparent; }
.navbar-transparent .nav-login-link:hover { color: white; border-bottom-color: rgba(255,255,255,0.5); }
.navbar-transparent .nav-cta {
    background: transparent;
    color: white;
    border: 1.5px solid rgba(255,255,255,0.5);
}
.navbar-transparent .nav-cta:hover {
    background: white;
    color: var(--primary);
    border-color: white;
    box-shadow: none;
}
.navbar-transparent .lang-toggle {
    color: rgba(255,255,255,0.85);
    border-color: rgba(255,255,255,0.25);
}
.navbar-transparent .lang-toggle:hover {
    border-color: rgba(255,255,255,0.5);
    color: white;
}
.navbar-transparent .lang-toggle .fa-globe { color: rgba(255,255,255,0.85); }
.navbar-transparent .mobile-menu-toggle { color: white; }
.navbar-transparent .mobile-menu-toggle i { color: white; }

/* Scrolled state: revert to normal */
.navbar-transparent.scrolled {
    background: var(--white);
    border-bottom-color: rgba(0, 0, 0, 0.06);
}
.navbar-transparent.scrolled .brand-name { color: var(--primary); }
.navbar-transparent.scrolled .brand-dot { color: var(--cyan); }
.navbar-transparent.scrolled .nav-link { color: var(--text-primary); }
.navbar-transparent.scrolled .nav-link:hover { color: var(--primary); }
.navbar-transparent.scrolled .nav-link.active { color: var(--primary); }
.navbar-transparent.scrolled .nav-login-link { color: var(--text-primary); }
.navbar-transparent.scrolled .nav-cta {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
.navbar-transparent.scrolled .nav-cta:hover {
    background: var(--cyan);
    border-color: var(--cyan);
    color: white;
    box-shadow: 0 4px 16px rgba(13, 137, 191, 0.3);
}
.navbar-transparent.scrolled .lang-toggle {
    color: var(--gray-700);
    border-color: var(--gray-200);
}
.navbar-transparent.scrolled .lang-toggle .fa-globe { color: var(--primary); }
.navbar-transparent.scrolled .mobile-menu-toggle { color: var(--gray-700); }
.navbar-transparent.scrolled .mobile-menu-toggle i { color: var(--gray-700); }

/* ===== INNER PAGE HERO (Qualitas full-width photo style) ===== */
.inner-hero {
    position: relative;
    min-height: 45vh;
    display: flex;
    align-items: flex-end;
    padding: 4rem 0 3.5rem;
    padding-top: calc(var(--nav-height) + 3rem);
    color: white;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}
.inner-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 69, 89, 0.85) 0%, rgba(15, 35, 55, 0.75) 50%, rgba(10, 25, 45, 0.9) 100%);
    z-index: 1;
}
.inner-hero .container { position: relative; z-index: 2; }
.inner-hero-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-light);
    margin-bottom: 1rem;
}
.inner-hero h1 {
    font-size: 3.5rem;
    font-weight: 300;
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}
.inner-hero p {
    font-size: 1.15rem;
    opacity: 0.85;
    max-width: 600px;
    line-height: 1.7;
}

/* ===== PAGE HEADER - Inner Pages ===== */
.page-header {
    background: var(--primary-dark);
    color: white;
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/images/hero/hk-skyline.jpg') center/cover no-repeat;
    opacity: 0.15;
}
.page-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(160deg, var(--primary-dark) 0%, rgba(36, 94, 118, 0.9) 100%);
}
.page-header-content { position: relative; z-index: 1; }
.page-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--cyan-light);
    margin-bottom: 1rem;
}
.page-label::before {
    content: '+';
    font-weight: 700;
}
.page-title {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 0.75rem;
    letter-spacing: -1.5px;
    line-height: 1.1;
}
.page-subtitle {
    font-size: 1.1rem;
    opacity: 0.7;
    font-weight: 300;
    max-width: 500px;
    line-height: 1.6;
}

/* ===== SECTIONS ===== */
.section { padding: 6rem 0; position: relative; }
.section-alt { background: var(--light); }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.25rem;
    padding: 0.45rem 1.25rem;
    background: rgba(36, 94, 118, 0.06);
    border-radius: var(--radius-pill);
}
.section-label::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--cyan);
    border-radius: 50%;
}
.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 3rem;
    color: var(--gray-900);
    letter-spacing: -1px;
    line-height: 1.15;
    text-align: center;
    position: relative;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 2px;
}
.section-title span { color: var(--primary); font-weight: 400; }
.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
    font-weight: 300;
}

/* ===== CARDS ===== */
.card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: none;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
}
.card::before { display: none; }
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(36, 94, 118, 0.1);
    border-color: rgba(0, 0, 0, 0.04);
}

/* Service Card with Photo Overlay (Qualitas Services page style) */
.service-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: var(--transition);
}
.service-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.service-card:hover img {
    transform: scale(1.05);
}
.service-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(transparent 30%, rgba(0,0,0,0.75));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.75rem;
    color: white;
    transition: background 0.4s ease;
}
.service-card:hover .service-card-overlay {
    background: linear-gradient(transparent 20%, rgba(0,0,0,0.8));
}
.service-card-title {
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
    line-height: 1.3;
}
.service-card-desc {
    font-size: 0.85rem;
    font-weight: 300;
    opacity: 0.8;
    margin-bottom: 1rem;
    line-height: 1.5;
}
.service-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0.5rem 1.25rem;
    border: 1.5px solid rgba(255,255,255,0.5);
    border-radius: var(--radius-pill);
    transition: var(--transition);
}
.service-card-link:hover {
    background: white;
    color: var(--primary-dark);
    border-color: white;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}
.btn::before { display: none; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-light); box-shadow: 0 6px 20px rgba(36, 94, 118, 0.25); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; box-shadow: 0 4px 15px rgba(36, 94, 118, 0.2); }
.btn-accent { background: var(--accent); color: var(--primary-dark); }
.btn-accent:hover { background: var(--accent-light); box-shadow: 0 6px 20px rgba(201, 162, 39, 0.3); transform: translateY(-2px); }
.btn-teal { background: var(--teal); color: white; }
.btn-teal:hover { background: var(--teal-light); box-shadow: 0 6px 20px rgba(13, 148, 136, 0.3); transform: translateY(-2px); }
.btn-white { background: white; color: var(--primary); border: 1.5px solid rgba(0, 0, 0, 0.08); }
.btn-white:hover { background: var(--gray-50); box-shadow: 0 4px 15px rgba(0,0,0,0.08); border-color: rgba(0, 0, 0, 0.12); }
.btn-cyan { background: var(--cyan); color: white; }
.btn-cyan:hover { background: var(--cyan-light); box-shadow: 0 6px 20px rgba(13, 137, 191, 0.3); transform: translateY(-2px); }

/* ===== FORMS - Qualitas Bottom-Border Style ===== */
.form-group {
    margin-bottom: 1.5rem;
}
.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}
.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.85rem 0;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    background: transparent;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-primary);
    font-weight: 300;
    transition: border-color 0.3s cubic-bezier(.44,0,.56,1);
    border-radius: 0;
    outline: none;
}
.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-secondary);
    font-weight: 300;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-bottom-color: var(--primary);
}
.form-textarea {
    min-height: 150px;
    resize: vertical;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 2rem;
}

/* ===== PAGINATION ===== */
.pagination-wrapper { margin-top: 2.5rem; display: flex; justify-content: center; }
.pagination-nav { display: flex; justify-content: center; }
.pagination-links { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; justify-content: center; }
.pagination-btn {
    display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px;
    padding: 0 0.75rem; border-radius: var(--radius-pill); font-size: 0.9rem; font-weight: 450; color: var(--gray-700);
    text-decoration: none; background: white; border: 1px solid var(--gray-200); transition: all 0.3s ease; cursor: pointer;
}
.pagination-btn:hover:not(.disabled):not(.active) { background: var(--primary); color: white; border-color: var(--primary); }
.pagination-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
.pagination-btn.disabled { color: var(--gray-400); cursor: not-allowed; background: var(--gray-50); }

/* ===== FOOTER - Qualitas Dark Teal ===== */
.footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.6);
    padding: 5rem 0 2rem;
    position: relative;
    overflow: hidden;
}
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--cyan) 50%, var(--teal) 100%);
}
.footer::after { display: none; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-brand-col .footer-brand {
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}
.footer-brand-col .brand-dot { color: var(--cyan); }
.footer-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-weight: 300;
    color: rgba(255,255,255,0.5);
}
.footer-social {
    display: flex;
    gap: 0.6rem;
}
.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.08);
    font-size: 0.85rem;
}
.footer-social a:hover {
    background: var(--cyan);
    border-color: var(--cyan);
    color: white;
    transform: translateY(-2px);
}
.footer-col h4 {
    color: white;
    margin-bottom: 1.25rem;
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 300;
    transition: color 0.3s ease;
    display: inline-block;
}
.footer-col a:hover { color: var(--cyan); }

/* Footer Contact Column - Qualitas Address/Phone/Email style */
.footer-contact-col h4 { margin-bottom: 1.5rem; }
.footer-contact-block {
    margin-bottom: 1.25rem;
}
.footer-contact-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    color: var(--cyan-light);
    margin-bottom: 0.25rem;
}
.footer-contact-value {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    font-weight: 300;
    text-decoration: none;
    display: block;
    transition: color 0.3s ease;
}
a.footer-contact-value:hover { color: white; }

/* Footer Newsletter */
.footer-newsletter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-md);
    padding: 1.5rem 2rem;
    margin-bottom: 2.5rem;
}
.footer-newsletter-text {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    font-weight: 400;
    font-size: 0.95rem;
}
.footer-newsletter-text i { color: var(--cyan); font-size: 1rem; }
.footer-newsletter-form {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}
.footer-newsletter-form input[type="email"] {
    padding: 0.6rem 1.25rem;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-pill);
    background: rgba(255,255,255,0.06);
    color: white;
    font-size: 0.85rem;
    width: 250px;
    font-weight: 300;
    font-family: inherit;
    outline: none;
}
.footer-newsletter-form input[type="email"]::placeholder { color: rgba(255,255,255,0.35); }
.footer-newsletter-form input[type="email"]:focus { border-color: var(--cyan); background: rgba(255,255,255,0.1); }
.footer-newsletter-form button {
    padding: 0.6rem 1.5rem;
    background: var(--cyan);
    color: white;
    border: none;
    border-radius: var(--radius-pill);
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    white-space: nowrap;
}
.footer-newsletter-form button:hover { background: var(--cyan-light); }

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}
.footer-bottom p { color: rgba(255,255,255,0.4); }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.35);
    text-decoration: none;
    font-weight: 300;
    font-size: 0.8rem;
    transition: color 0.3s ease;
}
.footer-bottom-links a:hover { color: var(--cyan); }
/* Legacy footer classes */
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: rgba(255, 255, 255, 0.35); text-decoration: none; font-weight: 300; transition: color 0.3s ease; }
.footer-links a:hover { color: var(--cyan); }
.footer-section h4 { color: white; margin-bottom: 1.25rem; font-weight: 500; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1.5px; }
.footer-section h4::before { display: none; }
.footer-section ul { list-style: none; }
.footer-section li { margin-bottom: 0.6rem; }
.footer-section a { color: rgba(255, 255, 255, 0.5); text-decoration: none; font-size: 0.9rem; font-weight: 300; transition: color 0.3s ease; display: inline-block; }
.footer-section a:hover { color: var(--cyan); transform: none; }
.footer-content { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand { font-size: 1.6rem; font-weight: 700; color: white; margin-bottom: 1rem; }
.footer-brand i { color: var(--cyan); }
.footer-about p { font-size: 0.9rem; line-height: 1.7; margin-bottom: 1.5rem; font-weight: 300; }

/* ===== STATS COUNTER ===== */
.stat-number {
    font-size: 2.75rem;
    font-weight: 300;
    letter-spacing: -1px;
    line-height: 1;
    margin-bottom: 0.35rem;
}
.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 300;
}

/* ===== GRID ===== */
.grid { display: grid; gap: 1.75rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-muted { color: var(--gray-500); }
a { color: var(--cyan); transition: color 0.3s ease; }
a:hover { color: var(--primary); }

/* ===== SERVICE PAGE GRID CAP (prevent 4-5 tiny columns) ===== */
.who-grid, .pain-grid, .why-grid, .related-grid, .penalty-grid,
.stages-grid, .testi-grid, .steps-track, .duty-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid, .footer-content { grid-template-columns: repeat(2, 1fr); }
    .mega-menu { min-width: 600px; }
    .mega-featured { display: none; }
    .mega-menu-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .desktop-only { display: none !important; }
    .mobile-menu-toggle { display: block; }
    .mobile-menu-content { display: block; }
    .navbar-container { padding: 0 1.25rem; }
    .page-title { font-size: 2.25rem; font-weight: 300; letter-spacing: -1px; }
    .page-header { padding: 3.5rem 0 3rem; }
    .inner-hero { min-height: 35vh; padding: 5rem 0 2.5rem; padding-top: calc(var(--nav-height) + 2rem); }
    .inner-hero h1 { font-size: 2.2rem; }
    .section { padding: 4rem 0; }
    .section-title { font-size: 1.85rem; letter-spacing: -0.5px; }
    .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .footer-grid, .footer-content { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
    .footer-bottom-links { flex-wrap: wrap; justify-content: center; }
    .footer-newsletter { flex-direction: column; text-align: center; padding: 1.25rem; }
    .footer-newsletter-text { flex-direction: column; gap: 0.25rem; }
    .footer-newsletter-form { width: 100%; }
    .footer-newsletter-form input[type="email"] { flex: 1; width: auto; }
    .container { padding: 0 1.25rem; }
    .form-grid { grid-template-columns: 1fr; }
    .pagination-btn { min-width: 36px; height: 36px; padding: 0 0.5rem; font-size: 0.85rem; }
}

@media (max-width: 480px) {
    .page-title { font-size: 1.85rem; }
    .section-title { font-size: 1.5rem; }
}

body.menu-open { overflow: hidden; }

/* ===== ACCESSIBILITY ===== */
.skip-link {
    position: absolute; top: -100%; left: 1rem; z-index: 100000;
    padding: 0.75rem 1.5rem; background: var(--primary); color: white;
    font-weight: 500; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    text-decoration: none; transition: top 0.2s ease;
}
.skip-link:focus { top: 0; outline: 3px solid var(--cyan); outline-offset: 2px; }
*:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ===== BACK TO TOP ===== */
/* ===== LIVE CHAT WIDGET ===== */
.wa-widget { position: fixed; bottom: 2rem; right: 2rem; z-index: 1001; }
.wa-fab {
    width: 56px; height: 56px; border-radius: 50%; border: none; cursor: pointer;
    background: var(--primary); color: white; font-size: 1.5rem;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 61, 122, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}
.wa-fab:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(0, 61, 122, 0.5); }
.wa-fab-icon-close { display: none; font-size: 1.4rem; }
.wa-open .wa-fab-icon-open { display: none; }
.wa-open .wa-fab-icon-close { display: inline; }

.wa-chat {
    position: absolute; bottom: 70px; right: 0; width: 340px;
    background: white; border-radius: 12px; overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    opacity: 0; visibility: hidden; transform: translateY(16px) scale(0.95);
    transition: opacity 0.25s, visibility 0.25s, transform 0.25s;
}
.wa-open .wa-chat { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }

.wa-chat-header {
    background: var(--primary); color: white; padding: 14px 16px;
    display: flex; align-items: center; justify-content: space-between;
}
.wa-chat-header-info { display: flex; align-items: center; gap: 10px; }
.wa-avatar {
    width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.wa-name { font-weight: 600; font-size: 0.95rem; }
.wa-status { font-size: 0.72rem; opacity: 0.8; }
.wa-close { background: none; border: none; color: white; font-size: 1.1rem; cursor: pointer; padding: 4px; }

.wa-chat-body {
    background: #f5f7fa;
    padding: 16px; min-height: 120px; max-height: 300px; overflow-y: auto;
}
.wa-bubble {
    background: white; border-radius: 0 8px 8px 8px; padding: 10px 14px;
    font-size: 0.88rem; line-height: 1.5; color: #333;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08); max-width: 85%;
    position: relative; margin-bottom: 8px;
}
.wa-bubble::before {
    content: ''; position: absolute; top: 0; left: -8px;
    border-width: 0 8px 8px 0; border-style: solid; border-color: transparent white transparent transparent;
}
.wa-bubble.wa-visitor {
    background: var(--primary); color: white; border-radius: 8px 0 8px 8px;
    margin-left: auto;
}
.wa-bubble.wa-visitor::before {
    left: auto; right: -8px;
    border-width: 0 0 8px 8px; border-color: transparent transparent transparent var(--primary);
}
.wa-bubble.wa-admin {
    background: white; color: #333; border-radius: 0 8px 8px 8px;
}
.wa-bubble.wa-admin::before {
    border-color: transparent white transparent transparent;
}

.wa-chat-footer { display: flex; gap: 8px; padding: 10px 12px; background: #f0f0f0; }
.wa-input {
    flex: 1; border: 1px solid #ddd; border-radius: 20px; padding: 8px 16px;
    font-size: 0.88rem; outline: none; background: white;
}
.wa-input:focus { border-color: var(--primary); }
.wa-send {
    width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer;
    background: var(--primary); color: white; font-size: 0.95rem;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}
.wa-send:hover { background: var(--primary-light); }

.back-to-top {
    position: fixed; bottom: 2rem; right: 2rem; width: 48px; height: 48px;
    border-radius: 50%; background: var(--primary); color: white; border: none;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; box-shadow: 0 4px 16px rgba(36, 94, 118, 0.25);
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.3s;
    z-index: 1000;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--cyan); transform: translateY(-2px); }

/* ===== READING PROGRESS ===== */
.reading-progress {
    position: fixed; top: 0; left: 0; width: 0%; height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--cyan));
    z-index: 10000; transition: width 0.1s linear;
}

/* ===== COOKIE CONSENT ===== */
.cookie-consent {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--primary-dark); color: white;
    padding: 1.25rem 2rem; z-index: 9998; display: none;
    align-items: center; justify-content: space-between; gap: 1rem;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}
.cookie-consent.show { display: flex; }
.cookie-consent p { margin: 0; font-size: 0.9rem; line-height: 1.5; flex: 1; font-weight: 300; }
.cookie-consent p a { color: var(--cyan); text-decoration: underline; }
.cookie-consent-buttons { display: flex; gap: 0.5rem; flex-shrink: 0; }
.cookie-consent-btn {
    padding: 0.5rem 1.5rem; border: none; border-radius: var(--radius-pill);
    cursor: pointer; font-weight: 500; font-size: 0.85rem; white-space: nowrap;
    transition: all 0.3s ease;
}
.cookie-accept { background: var(--cyan); color: white; }
.cookie-accept:hover { background: var(--cyan-light); }
.cookie-decline { background: transparent; color: rgba(255, 255, 255, 0.6); border: 1px solid rgba(255, 255, 255, 0.2); }
.cookie-decline:hover { border-color: rgba(255, 255, 255, 0.4); color: white; }
@media (max-width: 640px) {
    .cookie-consent { flex-direction: column; padding: 1rem; text-align: center; }
}

/* ===== DEADLINE BAR ===== */
.deadline-bar {
    background: var(--primary); color: white; font-size: 0.9rem;
    text-align: center; position: relative; z-index: 100; font-weight: 400;
}

/* ===== MOBILE BOTTOM NAV ===== */
.mobile-bottom-nav {
    display: none; position: fixed; bottom: 0; left: 0; right: 0;
    background: white; border-top: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 1000; padding: 0.4rem 0;
    padding-bottom: env(safe-area-inset-bottom, 0.4rem);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.04);
}
.mobile-bottom-nav-inner {
    display: flex; justify-content: space-around; align-items: center;
    max-width: 500px; margin: 0 auto;
}
.mobile-nav-item {
    display: flex; flex-direction: column; align-items: center;
    text-decoration: none; color: var(--gray-500); font-size: 0.65rem;
    font-weight: 450; padding: 0.25rem 0.5rem; transition: color 0.3s; gap: 0.15rem;
}
.mobile-nav-item i { font-size: 1.15rem; }
.mobile-nav-item.active, .mobile-nav-item:hover { color: var(--primary); }
@media (max-width: 768px) {
    .mobile-bottom-nav { display: block; }
    body { padding-bottom: calc(var(--nav-height) + 70px); padding-top: var(--nav-height); }
    body.has-transparent-nav { padding-top: 0; }
    body.has-transparent-nav .breadcrumb-nav { display: none; }
    .wa-widget { bottom: 5rem; right: 1rem; }
    .wa-fab { width: 50px; height: 50px; font-size: 1.5rem; }
    .wa-chat { width: calc(100vw - 2rem); right: -0.5rem; }
    .back-to-top { bottom: 5rem; right: 4.5rem; }
    .cookie-consent { bottom: 60px; }
}

/* ===== SEARCH OVERLAY ===== */
.global-search-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
    z-index: 9999; display: flex; align-items: flex-start;
    justify-content: center; padding-top: 15vh;
    opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.global-search-overlay.active { opacity: 1; visibility: visible; }
.global-search-container {
    background: white; border-radius: var(--radius-lg); padding: 1.5rem;
    width: 90%; max-width: 640px; box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    transform: translateY(-20px); transition: transform 0.3s ease;
}
.global-search-overlay.active .global-search-container { transform: translateY(0); }
.global-search-form { display: flex; align-items: center; gap: 0.75rem; border-bottom: 2px solid var(--gray-200); padding-bottom: 1rem; }
.global-search-icon { color: var(--primary); font-size: 1.2rem; }
.global-search-form input { flex: 1; border: none; outline: none; font-size: 1.1rem; color: var(--gray-900); background: transparent; }
.global-search-close { background: none; border: none; color: var(--gray-400); cursor: pointer; font-size: 1.2rem; padding: 0.25rem; }
.global-search-close:hover { color: var(--gray-700); }
.global-search-hints { display: flex; gap: 1rem; margin-top: 1rem; flex-wrap: wrap; }
.global-search-hints a {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: var(--gray-100); color: var(--gray-600); padding: 0.5rem 1rem;
    border-radius: var(--radius-pill); font-size: 0.85rem; text-decoration: none; transition: all 0.2s;
}
.global-search-hints a:hover { background: var(--primary); color: white; }
.global-search-results { max-height: 400px; overflow-y: auto; margin-top: 0.75rem; }
.global-search-result-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem; border-radius: var(--radius-sm); text-decoration: none; transition: background 0.2s; }
.global-search-result-item:hover { background: var(--gray-50); }
.global-search-result-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: white; font-size: 0.9rem; }
.global-search-result-icon.article { background: var(--teal); }
.global-search-result-icon.tool { background: var(--primary); }
.global-search-result-icon.consultant { background: var(--accent-dark); }
.global-search-result-title { font-weight: 600; font-size: 0.9rem; color: var(--gray-900); margin-bottom: 0.1rem; }
.global-search-result-desc { font-size: 0.8rem; color: var(--gray-500); }
.global-search-result-meta { margin-left: auto; font-size: 0.75rem; color: var(--gray-400); white-space: nowrap; }
.global-search-result-type { display: inline-block; background: var(--gray-100); color: var(--gray-600); padding: 0.15rem 0.5rem; border-radius: 4px; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; margin-top: 0.2rem; }
.global-search-no-results { text-align: center; padding: 2rem 1rem; color: var(--gray-500); font-size: 0.9rem; }

/* ── Services Mega Menu ─────────────────────────────────── */
.mega-menu-services {
    min-width: 1050px;
    left: 50%;
    transform: translateX(-60%) translateY(10px);
}
.nav-mega-wrapper.open .mega-menu-services {
    transform: translateX(-60%) translateY(0);
}
.mega-menu-services .mega-menu-inner {
    grid-template-columns: 1fr 1fr 1fr;
    max-height: 80vh;
    overflow-y: auto;
}
.mega-menu-services .mega-col {
    padding: 1.25rem 1.5rem;
}
.mega-menu-services .mega-heading {
    font-size: .7rem;
}
.mega-menu-services .mega-item {
    padding: .35rem .5rem;
}
.mega-menu-services .mega-item-title {
    font-size: .85rem;
}
.mega-menu-services .mega-item-desc {
    font-size: .75rem;
}
@media (max-width: 1200px) {
    .mega-menu-services {
        min-width: 860px;
        transform: translateX(-55%) translateY(10px);
    }
    .nav-mega-wrapper.open .mega-menu-services {
        transform: translateX(-55%) translateY(0);
    }
}
@media (max-width: 1024px) {
    .mega-menu-services { display: none; }
}
