/* 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); }

/* 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 24px 80px rgba(0, 20, 60, 0.18), 0 4px 20px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transition: all 0.28s cubic-bezier(.44,0,.56,1);
    z-index: 1100;
    min-width: 820px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 0;
    overflow: hidden;
}
/* Top header strip — dark navy with HK skyline background */
.mega-menu::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--teal) 50%, var(--accent) 100%);
    z-index: 10;
    border-radius: 12px 12px 0 0;
}
.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;
}
/* Left two cols: subtle navy-tinted background for depth */
.mega-col {
    padding: 1.75rem 1.5rem 1.75rem 1.75rem;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    background: white;
}
.mega-col:first-child {
    background: linear-gradient(180deg, rgba(36,94,118,0.024) 0%, white 100%);
}
.mega-col:last-child {
    border-right: none;
}
.mega-heading {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 1rem;
    padding-left: 0.5rem;
    opacity: 0.7;
}
.mega-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0.6rem;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.18s ease;
    color: var(--text-primary);
}
.mega-item:hover {
    background: rgba(36,94,118,0.06);
    color: var(--primary);
    transform: translateX(3px);
}
.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 — dark photo panel */
.mega-featured {
    background: var(--primary-dark);
    padding: 0;
    border-right: none;
    position: relative;
    overflow: hidden;
}
.mega-featured::before {
    content: '';
    position: absolute;
    inset: 0;
    /* Purpose-sized crop, not the 1920x1440 original. This box is a fixed
       273x348 on desktop and display:none on mobile, and it is painted at
       opacity .3 behind the mega menu, so 660x840 covers 2.4x DPR with room to
       spare. WebP where supported; the shorthand stays as the fallback leg and
       keeps position/size. Sitewide, since the mega menu is in every navbar:
       783,097 B JPEG -> 120,322 B WebP. */
    background: url('/images/hero/hk-central-mega.jpg') center/cover no-repeat;
    background-image: image-set(url('/images/hero/hk-central-mega.webp') type('image/webp'),
                                url('/images/hero/hk-central-mega.jpg') type('image/jpeg'));
    opacity: 0.3;
    z-index: 0;
    transition: opacity 0.4s ease;
}
.nav-mega-wrapper:hover .mega-featured::before {
    opacity: 0.4;
}
.mega-featured-card {
    height: 100%;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 280px;
}
.mega-featured-card > img {
    display: none; /* Photo handled via ::before background */
}
.mega-featured-content {
    position: relative;
    padding: 2rem 1.75rem;
    background: linear-gradient(transparent, rgba(0,10,30,0.85) 60%);
    color: white;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.mega-featured-label {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--accent-light, #E8C84A);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.mega-featured-label::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 2px;
    background: var(--accent, #C9A227);
    border-radius: 2px;
}
.mega-featured-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    letter-spacing: -0.3px;
}
.mega-featured-content p {
    font-size: 0.8rem;
    opacity: 0.7;
    font-weight: 300;
    line-height: 1.55;
    margin: 0 0 1.25rem;
}
.mega-featured-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--accent-light, #E8C84A);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(201,162,39,0.35);
    border-radius: 60px;
    transition: all 0.2s ease;
    width: fit-content;
}
.mega-featured-cta:hover {
    background: rgba(201,162,39,0.15);
    border-color: rgba(201,162,39,0.6);
    color: white;
    gap: 0.6rem;
}
.mega-featured-cta i { font-size: 0.7rem; }

/* ===== 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;
    /* Purpose-sized 1920x548 band, not the 1920x1200 original. .page-header is
       full-bleed but at most 274 px tall (measured on /en/tools/*, 56 px on
       article pages), and this layer sits at opacity .15 under the gradient in
       ::after, so the cropped band is indistinguishable. WebP where supported;
       the shorthand stays as the fallback leg and keeps position/size.
       531,991 B JPEG -> 213,750 B WebP, on every page with a .page-header. */
    background: url('/images/hero/hk-skyline-band.jpg') center/cover no-repeat;
    background-image: image-set(url('/images/hero/hk-skyline-band.webp') type('image/webp'),
                                url('/images/hero/hk-skyline-band.jpg') type('image/jpeg'));
    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-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-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);
}

/* ===== 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); }

/* ===== FORMS - Qualitas Bottom-Border Style ===== */
.form-group {
    margin-bottom: 1.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);
}

/* ===== 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); }
.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); }

/* ===== 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; }
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; }
    .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;
}

/* ===== AI CONSULTATION INTAKE ===== */
.lead-chat {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    z-index: 9999;
    color: #0f2942;
}
.lead-chat [hidden] { display: none !important; }
.lead-chat__launcher {
    min-height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0 1.15rem;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 999px;
    background: #003d7a;
    color: #fff;
    box-shadow: 0 14px 32px -16px rgba(0,61,122,0.75);
    cursor: pointer;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 650;
    letter-spacing: 0.01em;
    transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.lead-chat__launcher:hover {
    background: #002f5f;
    box-shadow: 0 18px 38px -16px rgba(0,61,122,0.85);
    transform: translateY(-2px);
}
.lead-chat__launcher:active { transform: translateY(0) scale(0.98); }
.lead-chat__launcher i { color: #7dd3c7; font-size: 1rem; }
.lead-chat[data-open="true"] .lead-chat__launcher-label { display: none; }
.lead-chat[data-open="true"] .lead-chat__launcher i::before { content: "\f00d"; }

.lead-chat__panel {
    position: absolute;
    right: 0;
    bottom: 4.5rem;
    width: min(410px, calc(100vw - 2rem));
    height: min(700px, calc(100dvh - 7.5rem));
    min-height: 520px;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto auto auto;
    overflow: hidden;
    border: 1px solid #cfdae4;
    border-radius: 18px;
    background: #f5f8fb;
    box-shadow: 0 28px 70px -28px rgba(10,43,70,0.58), 0 8px 24px -14px rgba(10,43,70,0.28);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(0.98);
    transform-origin: bottom right;
    transition: opacity 180ms ease, visibility 180ms ease, transform 220ms cubic-bezier(.2,.8,.2,1);
}
.lead-chat[data-open="true"] .lead-chat__panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
.lead-chat__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1rem 0.9rem;
    background: #003d7a;
    color: #fff;
}
.lead-chat__identity {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}
.lead-chat__mark {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,0.24);
    border-radius: 10px;
    background: rgba(255,255,255,0.1);
    color: #8ee0d4;
}
.lead-chat__identity h2 {
    margin: 0;
    color: #fff;
    font-size: 0.98rem;
    font-weight: 650;
    line-height: 1.25;
}
.lead-chat__identity p {
    margin: 0.18rem 0 0;
    color: #c9dcec;
    font-size: 0.72rem;
    line-height: 1.35;
    /* Keep the trust line on one line: an orphaned word in the header reads
       amateurish on the narrow panel. */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lead-chat__header-actions { display: flex; gap: 0.2rem; }
.lead-chat__icon-button {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #d8e7f3;
    cursor: pointer;
    transition: background 150ms ease, color 150ms ease;
}
.lead-chat__icon-button:hover { background: rgba(255,255,255,0.13); color: #fff; }
.lead-chat__icon-button:active { transform: scale(0.96); }

.lead-chat__progress {
    padding: 0.72rem 1rem 0.78rem;
    border-bottom: 1px solid #dce5ed;
    background: #fff;
}
.lead-chat__progress-copy {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: #496176;
    font-size: 0.7rem;
    font-weight: 550;
}
.lead-chat__progress-track {
    height: 3px;
    margin-top: 0.55rem;
    overflow: hidden;
    border-radius: 999px;
    background: #dce5ed;
}
.lead-chat__progress-track span {
    display: block;
    height: 100%;
    background: #0d9488;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 300ms cubic-bezier(.2,.8,.2,1);
}
.lead-chat__messages {
    min-height: 0;
    overflow-y: auto;
    padding: 1.15rem 1rem 1.4rem;
    scrollbar-color: #afc2d1 transparent;
    scrollbar-width: thin;
}
.lead-chat__bubble {
    width: fit-content;
    max-width: 86%;
    margin-bottom: 0.75rem;
    padding: 0.68rem 0.82rem;
    border-radius: 12px;
    font-size: 0.84rem;
    line-height: 1.55;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.lead-chat__bubble--model {
    border: 1px solid #d5e0e9;
    border-top-left-radius: 4px;
    background: #fff;
    color: #173750;
    box-shadow: 0 7px 18px -16px rgba(20,55,80,0.7);
}
.lead-chat__bubble--user {
    margin-left: auto;
    border-top-right-radius: 4px;
    background: #075d72;
    color: #fff;
}
.lead-chat__bubble--thinking {
    color: #51697c;
    font-style: italic;
}
.lead-chat__review,
.lead-chat__success {
    margin: 0 1rem 0.9rem;
    padding: 0.95rem;
    border: 1px solid #bed8d4;
    border-radius: 14px;
    background: #effaf8;
}
.lead-chat__review {
    max-height: 230px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.lead-chat__review-heading,
.lead-chat__success {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.85rem;
}
.lead-chat__review-heading { flex: 0 0 auto; }
.lead-chat__review-heading h3,
.lead-chat__success h3 {
    margin: 0;
    color: #0b3d48;
    font-size: 0.86rem;
    font-weight: 700;
}
.lead-chat__review-heading p,
.lead-chat__success p {
    margin: 0.2rem 0 0;
    color: #47666b;
    font-size: 0.72rem;
    line-height: 1.45;
}
.lead-chat__review-heading > i,
.lead-chat__success > i { color: #0d9488; font-size: 1.05rem; }
.lead-chat__review dl {
    min-height: 0;
    margin: 0.75rem 0;
    overflow-y: auto;
}
.lead-chat__review dl > div {
    display: grid;
    grid-template-columns: 7.5rem minmax(0, 1fr);
    gap: 0.55rem;
    padding: 0.38rem 0;
    border-top: 1px solid #d1e5e2;
}
.lead-chat__review dt { color: #526e72; font-size: 0.72rem; }
.lead-chat__review dd {
    margin: 0;
    color: #143f47;
    font-size: 0.74rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}
.lead-chat__submit {
    width: 100%;
    min-height: 42px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    border: 0;
    border-radius: 10px;
    background: #0b766e;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    transition: background 150ms ease, transform 150ms ease;
}
.lead-chat__submit:hover { background: #075e58; }
.lead-chat__submit:active { transform: scale(0.985); }
.lead-chat__submit:disabled,
.lead-chat__send:disabled { cursor: wait; opacity: 0.62; }

.lead-chat__composer {
    display: flex;
    align-items: flex-end;
    gap: 0.55rem;
    padding: 0.75rem 0.8rem;
    border-top: 1px solid #d7e1e9;
    background: #fff;
}
.lead-chat__composer textarea {
    min-height: 42px;
    max-height: 112px;
    flex: 1;
    resize: none;
    border: 1px solid #b9c9d6;
    border-radius: 10px;
    background: #fff;
    color: #112f47;
    padding: 0.64rem 0.72rem;
    font: inherit;
    font-size: 0.82rem;
    line-height: 1.45;
}
.lead-chat__composer textarea::placeholder { color: #586f82; opacity: 1; }
.lead-chat__composer textarea:focus { border-color: #0d7f83; outline: 3px solid rgba(13,127,131,0.18); }
.lead-chat__send {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 10px;
    background: #003d7a;
    color: #fff;
    cursor: pointer;
    transition: background 150ms ease, transform 150ms ease;
}
.lead-chat__send:hover { background: #002f5f; }
.lead-chat__send:active { transform: scale(0.96); }
.lead-chat__honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
}
.lead-chat__error {
    margin: 0;
    padding: 0.55rem 0.85rem;
    border-top: 1px solid #f1c5c5;
    background: #fff3f3;
    color: #8d2424;
    font-size: 0.75rem;
    line-height: 1.4;
}
.lead-chat__disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 0.42rem;
    margin: 0;
    padding: 0.62rem 0.85rem 0.7rem;
    background: #edf2f6;
    color: #4e6476;
    font-size: 0.72rem;
    line-height: 1.4;
}
.lead-chat__disclaimer i { margin-top: 0.12rem; color: #0b766e; }
.lead-chat__success { margin-top: 0; }

/* ===== 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; }
    .lead-chat { bottom: 5rem; right: 1rem; }
    .lead-chat__launcher { min-width: 50px; min-height: 50px; padding: 0 0.9rem; }
    .lead-chat__panel {
        right: -0.5rem;
        bottom: 4rem;
        width: calc(100vw - 1.5rem);
        height: calc(100dvh - 10rem);
        min-height: 0;
    }
    .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; }
}

/* ===== HUMAN FEEL — site-wide overrides ===== */

/* Section titles: remove the centered gradient underline on inner pages.
   The ::after line works fine on the homepage (overridden there) but on
   sub-pages it centers on every heading. Provide left-aligned variant. */
.section-header.left-aligned { text-align: left; }
.section-header.left-aligned .section-subtitle { margin-left: 0; }
.section-header.left-aligned .section-title::after { left: 0; transform: none; }
.section-header.left-aligned .section-label {
    background: none;
    border-radius: 0;
    border-left: 3px solid var(--accent);
    padding: 0.15rem 0 0.15rem 0.7rem;
}
.section-header.left-aligned .section-label::before { display: none; }

/* Global card hover: the generic .card class uses -4px which is fine,
   but many page-specific cards were set to -8px or -12px.
   These are now overridden in home.blade.php; here we set the global default. */
.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(36, 94, 118, 0.09);
}

/* Upgrade thin placeholder text weights to readable body weight */
.form-input::placeholder,
.form-textarea::placeholder { font-weight: 400; }

/* Service page cards: softer lift */
.who-card:hover,
.pain-card:hover,
.step-card:hover,
.testi-card:hover { transform: translateY(-4px); }

/* Inner-page page-title: bump weight from 300 to 400 */
.page-title { font-weight: 400; }
.inner-hero h1 { font-weight: 400; }
