/* ==========================================================================
   BLOOR ENGINEERING LTD - Company Website Stylesheet
   Industrial Furnace Engineering | Est. Family-Owned

   Table of Contents:
   1.  CSS Custom Properties (Variables)
   2.  Reset & Base Styles
   3.  Typography
   4.  Utility Classes
   5.  Layout & Grid System
   6.  Buttons
   7.  Badges
   8.  Navigation / Navbar
   9.  Hero Section
   10. Section Layouts
   11. Stats Bar
   12. Service Cards
   13. Team Cards
   14. Partner / Client Cards
   15. Generic Cards
   16. Contact Section & Form
   17. Footer
   18. AI Assistant / Chat Interface
   19. Scroll & Fade Animations
   20. Loading & Skeleton States
   21. Tooltips
   22. Modals / Overlays
   23. Accreditation Badges
   24. Breadcrumbs
   25. Tables
   26. Back to Top Button
   27. Cookie Banner
   28. Responsive Breakpoints
   29. Print Styles
   30. Accessibility
   ========================================================================== */


/* ==========================================================================
   1. CSS CUSTOM PROPERTIES
   ========================================================================== */

:root {
    /* --- Core Palette --- */
    --bg-primary: #0f1419;
    --bg-secondary: #151b23;
    --bg-card: #1a1f2e;
    --bg-card-hover: #1e2538;
    --bg-elevated: #222838;

    /* --- Accent Colours --- */
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --accent-light: rgba(59, 130, 246, 0.12);
    --accent-gold: #f59e0b;
    --accent-gold-hover: #d97706;
    --accent-gold-light: rgba(245, 158, 11, 0.12);

    /* --- Status Colours --- */
    --success: #22c55e;
    --success-light: rgba(34, 197, 94, 0.12);
    --warning: #f59e0b;
    --danger: #ef4444;
    --danger-light: rgba(239, 68, 68, 0.12);
    --info: #06b6d4;

    /* --- Text --- */
    --text-primary: #e8eaed;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --text-inverse: #0f1419;

    /* --- Borders & Dividers --- */
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.15);
    --border-accent: rgba(59, 130, 246, 0.3);

    /* --- Radius --- */
    --radius: 12px;
    --radius-sm: 6px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* --- Shadows --- */
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.35);
    --shadow-accent: 0 4px 20px rgba(59, 130, 246, 0.2);
    --shadow-gold: 0 4px 20px rgba(245, 158, 11, 0.15);

    /* --- Spacing Scale --- */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 80px;

    /* --- Typography --- */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
        Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;
    --line-height: 1.6;
    --line-height-tight: 1.25;
    --line-height-heading: 1.2;

    /* --- Transitions --- */
    --transition-fast: 150ms ease;
    --transition: 250ms ease;
    --transition-slow: 400ms ease;

    /* --- Z-Index Scale --- */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-navbar: 500;
    --z-overlay: 600;
    --z-modal: 700;
    --z-toast: 800;
    --z-tooltip: 900;

    /* --- Navbar --- */
    --navbar-height: 72px;
}


/* ==========================================================================
   2. RESET & BASE STYLES
   ========================================================================== */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    font-size: 16px;
    scroll-padding-top: var(--navbar-height);
}

body {
    font-family: var(--font-family);
    font-size: 1rem;
    line-height: var(--line-height);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-hover);
}

a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

ul,
ol {
    list-style: none;
}

button,
input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    border: none;
    outline: none;
    background: none;
}

button {
    cursor: pointer;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

::selection {
    background-color: var(--accent);
    color: #fff;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}


/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 700;
    line-height: var(--line-height-heading);
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3rem;
    letter-spacing: -0.03em;
}

h2 {
    font-size: 2.2rem;
}

h3 {
    font-size: 1.4rem;
}

h4 {
    font-size: 1.15rem;
}

h5 {
    font-size: 1rem;
}

h6 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
}

p {
    color: var(--text-secondary);
    margin-bottom: 1em;
}

p:last-child {
    margin-bottom: 0;
}

strong, b {
    font-weight: 600;
    color: var(--text-primary);
}

em {
    font-style: italic;
}

small {
    font-size: 0.875rem;
}

.text-accent {
    color: var(--accent);
}

.text-gold {
    color: var(--accent-gold);
}

.text-success {
    color: var(--success);
}

.text-danger {
    color: var(--danger);
}

.text-muted {
    color: var(--text-muted);
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-uppercase {
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.text-small {
    font-size: 0.875rem;
}

.text-large {
    font-size: 1.25rem;
}

/* Section heading group */
.section-heading {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-heading h2 {
    margin-bottom: var(--space-md);
}

.section-heading .section-subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: var(--line-height);
}

.section-heading .section-label {
    display: inline-block;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-sm);
}

/* Accent underline for headings */
.heading-accent::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-gold));
    margin-top: var(--space-md);
    border-radius: var(--radius-full);
}

.section-heading .heading-accent::after {
    margin-left: auto;
    margin-right: auto;
}


/* ==========================================================================
   4. UTILITY CLASSES
   ========================================================================== */

.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
}

.container-narrow {
    max-width: 800px;
}

.container-wide {
    max-width: 1400px;
}

.section {
    padding: var(--space-4xl) 0;
}

/* Flex utilities */
.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex-col {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.gap-sm {
    gap: var(--space-sm);
}

.gap-md {
    gap: var(--space-md);
}

.gap-lg {
    gap: var(--space-lg);
}

.gap-xl {
    gap: var(--space-xl);
}

/* Visibility */
.hidden {
    display: none !important;
}

.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;
}

/* Spacing helpers */
.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }


/* ==========================================================================
   5. LAYOUT & GRID SYSTEM
   ========================================================================== */

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

/* Auto-fit responsive grids */
.grid-auto-fit {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.grid-auto-fill {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--space-lg);
}


/* ==========================================================================
   6. BUTTONS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
    border-radius: var(--radius);
    transition: all var(--transition);
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Primary button */
.btn-primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #fff;
    box-shadow: var(--shadow-accent);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Outline button */
.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-strong);
}

.btn-outline:hover {
    background: var(--bg-card);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
}

.btn-outline:active {
    transform: translateY(0);
}

/* Gold / accent-gold button */
.btn-gold {
    background: var(--accent-gold);
    color: var(--text-inverse);
    border-color: var(--accent-gold);
}

.btn-gold:hover {
    background: var(--accent-gold-hover);
    border-color: var(--accent-gold-hover);
    color: var(--text-inverse);
    box-shadow: var(--shadow-gold);
    transform: translateY(-1px);
}

/* Ghost button */
.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border-color: transparent;
    padding: 10px 20px;
}

.btn-ghost:hover {
    color: var(--text-primary);
    background: var(--border);
}

/* Button sizes */
.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
    border-radius: var(--radius-lg);
}

/* Icon button (square) */
.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: var(--radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon svg {
    width: 20px;
    height: 20px;
}

/* Button group */
.btn-group {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* Disabled state */
.btn:disabled,
.btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Link-style button */
.btn-link {
    background: none;
    border: none;
    color: var(--accent);
    padding: 0;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-link:hover {
    color: var(--accent-hover);
}

.btn-link::after {
    content: '\2192';
    transition: transform var(--transition-fast);
}

.btn-link:hover::after {
    transform: translateX(4px);
}


/* ==========================================================================
   7. BADGES
   ========================================================================== */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.badge-primary {
    background: var(--accent-light);
    color: var(--accent);
}

.badge-gold {
    background: var(--accent-gold-light);
    color: var(--accent-gold);
}

.badge-success {
    background: var(--success-light);
    color: var(--success);
}

.badge-danger {
    background: var(--danger-light);
    color: var(--danger);
}

.badge-outline {
    background: transparent;
    border: 1px solid var(--border-strong);
    color: var(--text-secondary);
}


/* ==========================================================================
   8. NAVIGATION / NAVBAR
   ========================================================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    z-index: var(--z-navbar);
    transition: all var(--transition);
    background: transparent;
}

/* Solid background on scroll */
.navbar.scrolled {
    background: rgba(15, 20, 25, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

/* When not on home page, always solid */
.navbar.solid {
    background: rgba(15, 20, 25, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* --- Logo --- */
.navbar-logo {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    text-decoration: none;
    color: var(--text-primary);
    flex-shrink: 0;
}

.navbar-logo-mark {
    width: 40px;
    height: 40px;
    background: var(--accent);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    color: #fff;
    letter-spacing: 0.02em;
    transition: background var(--transition);
}

.navbar-logo:hover .navbar-logo-mark {
    background: var(--accent-hover);
}

.navbar-logo-text {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.1;
}

.navbar-logo-text span {
    display: block;
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.08em;
    margin-top: 2px;
}

/* --- Nav Links --- */
.navbar-links {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.navbar-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    padding: 6px 0;
    position: relative;
    transition: color var(--transition-fast);
}

.navbar-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    border-radius: var(--radius-full);
    transition: width var(--transition);
}

.navbar-links a:hover {
    color: var(--text-primary);
}

.navbar-links a:hover::after,
.navbar-links a.active::after {
    width: 100%;
}

.navbar-links a.active {
    color: var(--text-primary);
}

/* CTA button in nav */
.navbar-links .btn {
    margin-left: var(--space-sm);
}

/* --- Hamburger Menu --- */
.navbar-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    position: relative;
    z-index: calc(var(--z-navbar) + 10);
}

.navbar-toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: var(--radius-full);
    transition: all var(--transition);
    position: relative;
}

.navbar-toggle-bar::before,
.navbar-toggle-bar::after {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: var(--radius-full);
    position: absolute;
    left: 0;
    transition: all var(--transition);
}

.navbar-toggle-bar::before {
    top: -7px;
}

.navbar-toggle-bar::after {
    top: 7px;
}

/* Hamburger active (X shape) */
.navbar-toggle.active .navbar-toggle-bar {
    background: transparent;
}

.navbar-toggle.active .navbar-toggle-bar::before {
    top: 0;
    transform: rotate(45deg);
}

.navbar-toggle.active .navbar-toggle-bar::after {
    top: 0;
    transform: rotate(-45deg);
}

/* --- Mobile Menu Overlay --- */
.navbar-mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 20, 25, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: var(--z-navbar);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
}

.navbar-mobile-menu.open {
    display: flex;
    opacity: 1;
    pointer-events: all;
}

.navbar-mobile-menu a {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none;
    padding: var(--space-sm) var(--space-lg);
    transition: color var(--transition-fast);
}

.navbar-mobile-menu a:hover,
.navbar-mobile-menu a.active {
    color: var(--accent);
}

.navbar-mobile-menu .btn {
    margin-top: var(--space-lg);
}


/* ==========================================================================
   9. HERO SECTION
   ========================================================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: var(--navbar-height) 0 0 0;
}

/* Background gradient layer */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 40%, rgba(59, 130, 246, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 60%, rgba(245, 158, 11, 0.05) 0%, transparent 60%),
        linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    z-index: 1;
}

/* Animated grid / particle effect (CSS only) */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.15) 1px, transparent 1px),
        radial-gradient(circle at 60% 70%, rgba(245, 158, 11, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.08) 1px, transparent 1px),
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 120px 120px, 160px 160px, 200px 200px, 80px 80px;
    animation: heroGridDrift 25s linear infinite;
    opacity: 0.6;
    z-index: 2;
}

@keyframes heroGridDrift {
    0% {
        background-position: 0 0, 0 0, 0 0, 0 0;
    }
    100% {
        background-position: 120px 120px, -160px 160px, 200px -200px, -80px 80px;
    }
}

/* Subtle animated gradient sweep */
.hero-gradient-sweep {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        transparent 0%,
        rgba(59, 130, 246, 0.03) 25%,
        transparent 50%,
        rgba(245, 158, 11, 0.02) 75%,
        transparent 100%
    );
    background-size: 400% 400%;
    animation: heroGradientSweep 15s ease infinite;
    z-index: 2;
}

@keyframes heroGradientSweep {
    0%, 100% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
}

/* Background image (if used) */
.hero-bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15;
    z-index: 0;
}

/* Hero content */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    padding: var(--space-xl);
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--accent-light);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-xl);
    border: 1px solid var(--border-accent);
}

.hero h1 {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    letter-spacing: -0.03em;
}

.hero h1 .highlight {
    background: linear-gradient(135deg, var(--accent), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    line-height: var(--line-height);
    margin-bottom: var(--space-2xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero .btn-group {
    justify-content: center;
}

/* Scroll indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: scrollBounce 2s ease infinite;
}

.hero-scroll-indicator .scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, var(--text-muted), transparent);
}

@keyframes scrollBounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateX(-50%) translateY(8px);
        opacity: 0.5;
    }
}


/* ==========================================================================
   10. SECTION LAYOUTS
   ========================================================================== */

.section {
    padding: var(--space-4xl) 0;
    position: relative;
}

/* Alternate background for visual rhythm */
.section-alt {
    background: var(--bg-secondary);
}

/* Subtle top/bottom divider lines */
.section-divider {
    border-top: 1px solid var(--border);
}

/* Section with background pattern */
.section-pattern {
    position: relative;
}

.section-pattern::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, var(--border) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.4;
    pointer-events: none;
}


/* ==========================================================================
   11. STATS BAR
   ========================================================================== */

.stats-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-xl);
    padding: var(--space-2xl) 0;
}

.stats-bar .stat-item {
    text-align: center;
    padding: var(--space-lg) var(--space-xl);
    min-width: 150px;
    position: relative;
}

/* Divider between stats */
.stats-bar .stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 40px;
    background: var(--border);
}

.stats-bar .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: var(--space-sm);
    letter-spacing: -0.02em;
}

.stats-bar .stat-number .accent {
    color: var(--accent);
}

.stats-bar .stat-number .gold {
    color: var(--accent-gold);
}

.stats-bar .stat-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Card-style stats bar */
.stats-bar-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
}

.stats-bar-cards .stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-xl) var(--space-lg);
    text-align: center;
    transition: all var(--transition);
}

.stats-bar-cards .stat-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.stats-bar-cards .stat-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--space-md);
    background: var(--accent-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.stats-bar-cards .stat-icon.gold {
    background: var(--accent-gold-light);
}

.stats-bar-cards .stat-card .stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: var(--space-xs);
}

.stats-bar-cards .stat-card .stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}


/* ==========================================================================
   12. SERVICE CARDS
   ========================================================================== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-lg);
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
    opacity: 0;
    transition: opacity var(--transition);
}

.service-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card-icon {
    width: 56px;
    height: 56px;
    background: var(--accent-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    font-size: 1.5rem;
    transition: all var(--transition);
}

.service-card:hover .service-card-icon {
    background: var(--accent);
    color: #fff;
    box-shadow: var(--shadow-accent);
}

.service-card-icon.gold {
    background: var(--accent-gold-light);
}

.service-card:hover .service-card-icon.gold {
    background: var(--accent-gold);
    box-shadow: var(--shadow-gold);
}

.service-card-icon img,
.service-card-icon svg {
    width: 28px;
    height: 28px;
}

.service-card h3 {
    margin-bottom: var(--space-sm);
    transition: color var(--transition-fast);
}

.service-card:hover h3 {
    color: var(--accent);
}

.service-card p {
    font-size: 0.95rem;
    margin-bottom: var(--space-lg);
}

.service-card .btn-link {
    font-size: 0.9rem;
}


/* ==========================================================================
   13. TEAM CARDS
   ========================================================================== */

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
}

.team-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl) var(--space-xl);
    text-align: center;
    transition: all var(--transition);
}

.team-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.team-card-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto var(--space-lg);
    overflow: hidden;
    background: var(--bg-elevated);
    border: 3px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color var(--transition);
}

.team-card:hover .team-card-photo {
    border-color: var(--accent);
}

.team-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Placeholder initials if no image */
.team-card-photo .initials {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

.team-card h3 {
    font-size: 1.15rem;
    margin-bottom: var(--space-xs);
}

.team-card .team-role {
    display: block;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: var(--space-md);
}

.team-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Team card social links */
.team-card-links {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.team-card-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.team-card-links a:hover {
    background: var(--accent);
    color: #fff;
}


/* ==========================================================================
   14. PARTNER / CLIENT CARDS
   ========================================================================== */

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-lg);
}

.partner-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all var(--transition);
}

.partner-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.partner-card-logo {
    width: 120px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    padding: var(--space-sm);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
}

.partner-card-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: brightness(0.8) grayscale(0.5);
    transition: filter var(--transition);
}

.partner-card:hover .partner-card-logo img {
    filter: brightness(1) grayscale(0);
}

.partner-card h4 {
    font-size: 1rem;
    margin-bottom: var(--space-sm);
}

.partner-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Client logo row (simpler version) */
.client-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--space-2xl);
    padding: var(--space-xl) 0;
}

.client-logos img {
    height: 36px;
    width: auto;
    opacity: 0.4;
    filter: grayscale(1) brightness(2);
    transition: all var(--transition);
}

.client-logos img:hover {
    opacity: 0.8;
    filter: grayscale(0) brightness(1);
}


/* ==========================================================================
   15. GENERIC CARDS
   ========================================================================== */

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-xl);
    transition: all var(--transition);
}

.card:hover {
    border-color: var(--border-accent);
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border);
}

.card-body {
    padding: 0;
}

.card-footer {
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border);
}

/* Feature card (larger with image) */
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
}

.feature-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.feature-card-image {
    width: 100%;
    height: 200px;
    background: var(--bg-elevated);
    overflow: hidden;
}

.feature-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.feature-card:hover .feature-card-image img {
    transform: scale(1.05);
}

.feature-card-content {
    padding: var(--space-xl);
}


/* ==========================================================================
   16. CONTACT SECTION & FORM
   ========================================================================== */

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: var(--space-3xl);
    align-items: start;
}

/* --- Contact Form --- */
.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
}

.contact-form h3 {
    margin-bottom: var(--space-lg);
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form-group label .required {
    color: var(--danger);
    margin-left: 2px;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.5;
    transition: all var(--transition-fast);
}

.form-control:hover {
    border-color: var(--border-strong);
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
    outline: none;
}

.form-control::placeholder {
    color: var(--text-muted);
}

textarea.form-control {
    min-height: 140px;
    resize: vertical;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
    cursor: pointer;
}

/* Form row (side-by-side fields) */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

/* Form validation states */
.form-control.error {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px var(--danger-light);
}

.form-control.success {
    border-color: var(--success);
    box-shadow: 0 0 0 3px var(--success-light);
}

.form-error-message {
    display: block;
    color: var(--danger);
    font-size: 0.8rem;
    margin-top: var(--space-xs);
}

.form-success-message {
    background: var(--success-light);
    color: var(--success);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius);
    font-weight: 500;
    text-align: center;
    margin-top: var(--space-md);
}

/* --- Contact Info Sidebar --- */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.contact-info-item {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: var(--accent-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--accent);
}

.contact-info-item h4 {
    font-size: 0.95rem;
    margin-bottom: var(--space-xs);
}

.contact-info-item p,
.contact-info-item a {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.contact-info-item a:hover {
    color: var(--accent);
}

/* Map embed container */
.contact-map {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    margin-top: var(--space-lg);
    aspect-ratio: 16 / 9;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}


/* ==========================================================================
   17. FOOTER
   ========================================================================== */

.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

/* Footer brand column */
.footer-brand .navbar-logo {
    margin-bottom: var(--space-md);
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    max-width: 300px;
    line-height: var(--line-height);
}

/* Footer nav columns */
.footer-nav h4 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
}

.footer-nav ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-nav a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
}

.footer-nav a:hover {
    color: var(--text-primary);
}

/* Footer contact column */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.footer-contact h4 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-contact-item a {
    color: var(--text-secondary);
}

.footer-contact-item a:hover {
    color: var(--accent);
}

/* Accreditation badges in footer */
.footer-accreditations {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.footer-accreditations img {
    height: 40px;
    width: auto;
    opacity: 0.6;
    filter: grayscale(0.3);
    transition: all var(--transition);
}

.footer-accreditations img:hover {
    opacity: 1;
    filter: grayscale(0);
}

/* Footer bottom bar */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.footer-bottom-links {
    display: flex;
    gap: var(--space-lg);
}

.footer-bottom-links a {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-bottom-links a:hover {
    color: var(--text-secondary);
}


/* ==========================================================================
   18. AI ASSISTANT / CHAT INTERFACE
   ========================================================================== */

.chat-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--navbar-height));
    max-width: 900px;
    margin: var(--navbar-height) auto 0;
    padding: 0 var(--space-lg);
}

/* Chat header */
.chat-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg) 0;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.chat-header-avatar {
    width: 44px;
    height: 44px;
    background: var(--accent-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--accent);
    font-size: 1rem;
}

.chat-header-info h3 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.chat-header-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.chat-header-status {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    margin-left: var(--space-sm);
    display: inline-block;
    animation: statusPulse 2s ease infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Messages area */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-xl) 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    scroll-behavior: smooth;
}

/* Individual message */
.chat-message {
    display: flex;
    gap: var(--space-md);
    max-width: 85%;
    animation: messageSlideIn 0.3s ease;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* User messages: aligned right */
.chat-message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

/* Assistant messages: aligned left */
.chat-message.assistant {
    align-self: flex-start;
}

.chat-message-avatar {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

.chat-message.user .chat-message-avatar {
    background: var(--accent);
    color: #fff;
}

.chat-message.assistant .chat-message-avatar {
    background: var(--accent-gold-light);
    color: var(--accent-gold);
}

.chat-message-bubble {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius);
    font-size: 0.95rem;
    line-height: var(--line-height);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.chat-message.user .chat-message-bubble {
    background: var(--accent);
    color: #fff;
    border-bottom-right-radius: var(--radius-sm);
}

.chat-message.assistant .chat-message-bubble {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    border-bottom-left-radius: var(--radius-sm);
}

.chat-message.assistant .chat-message-bubble p {
    color: var(--text-secondary);
}

.chat-message.assistant .chat-message-bubble strong {
    color: var(--text-primary);
}

/* Timestamp */
.chat-message-time {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: var(--space-xs);
    padding: 0 var(--space-xs);
}

.chat-message.user .chat-message-time {
    text-align: right;
}

/* Typing indicator */
.chat-typing {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) 0;
}

.chat-typing-dots {
    display: flex;
    gap: 4px;
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.chat-typing-dot {
    width: 8px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typingBounce 1.4s ease-in-out infinite;
}

.chat-typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.chat-typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-6px);
        opacity: 1;
    }
}

/* Chat input area */
.chat-input-area {
    padding: var(--space-lg) 0;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

.chat-input-wrapper {
    display: flex;
    align-items: flex-end;
    gap: var(--space-sm);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-sm);
    transition: border-color var(--transition-fast);
}

.chat-input-wrapper:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.chat-input {
    flex: 1;
    padding: var(--space-md);
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.95rem;
    resize: none;
    min-height: 44px;
    max-height: 120px;
    line-height: 1.4;
}

.chat-input::placeholder {
    color: var(--text-muted);
}

/* Mic button */
.chat-btn-mic {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: var(--radius);
    background: transparent;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    cursor: pointer;
    border: none;
}

.chat-btn-mic:hover {
    background: var(--border);
    color: var(--text-primary);
}

.chat-btn-mic.recording {
    background: var(--danger-light);
    color: var(--danger);
    animation: micPulse 1.5s ease infinite;
}

@keyframes micPulse {
    0%, 100% { box-shadow: 0 0 0 0 var(--danger-light); }
    50% { box-shadow: 0 0 0 8px transparent; }
}

/* Send button */
.chat-btn-send {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: var(--radius);
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    cursor: pointer;
    border: none;
}

.chat-btn-send:hover {
    background: var(--accent-hover);
}

.chat-btn-send:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Suggested prompts */
.chat-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    padding: var(--space-md) 0;
}

.chat-suggestion {
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.chat-suggestion:hover {
    background: var(--accent-light);
    border-color: var(--border-accent);
    color: var(--accent);
}


/* ==========================================================================
   19. SCROLL & FADE ANIMATIONS
   ========================================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Scroll-triggered animation classes (JS adds .in-view) */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered children */
.animate-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-stagger.in-view > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: translateY(0); }
.animate-stagger.in-view > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.animate-stagger.in-view > *:nth-child(3) { transition-delay: 0.15s; opacity: 1; transform: translateY(0); }
.animate-stagger.in-view > *:nth-child(4) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.animate-stagger.in-view > *:nth-child(5) { transition-delay: 0.25s; opacity: 1; transform: translateY(0); }
.animate-stagger.in-view > *:nth-child(6) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.animate-stagger.in-view > *:nth-child(7) { transition-delay: 0.35s; opacity: 1; transform: translateY(0); }
.animate-stagger.in-view > *:nth-child(8) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }

/* Pulse animation for live indicators */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Rotate animation for loading spinners */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}


/* ==========================================================================
   20. LOADING & SKELETON STATES
   ========================================================================== */

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-spinner-sm {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

.loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 20, 25, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-overlay);
    border-radius: inherit;
}

/* Skeleton loading */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--bg-elevated) 25%,
        var(--border) 50%,
        var(--bg-elevated) 75%
    );
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeletonShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 14px;
    margin-bottom: var(--space-sm);
    width: 100%;
}

.skeleton-text:last-child {
    width: 70%;
}

.skeleton-heading {
    height: 24px;
    width: 60%;
    margin-bottom: var(--space-md);
}

.skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.skeleton-image {
    width: 100%;
    height: 200px;
}


/* ==========================================================================
   21. TOOLTIPS
   ========================================================================== */

[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: var(--bg-elevated);
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
    z-index: var(--z-tooltip);
    border: 1px solid var(--border);
}

[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}


/* ==========================================================================
   22. MODALS / OVERLAYS
   ========================================================================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    max-width: 560px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px) scale(0.95);
    transition: transform var(--transition);
}

.modal-overlay.open .modal {
    transform: translateY(0) scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-xl);
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    font-size: 1.15rem;
}

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    background: none;
    border: none;
    font-size: 1.2rem;
}

.modal-close:hover {
    background: var(--border);
    color: var(--text-primary);
}

.modal-body {
    padding: var(--space-xl);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-md);
    padding: var(--space-lg) var(--space-xl);
    border-top: 1px solid var(--border);
}


/* ==========================================================================
   23. ACCREDITATION BADGES
   ========================================================================== */

.accreditation-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--space-xl);
    padding: var(--space-2xl) 0;
}

.accreditation-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    text-align: center;
}

.accreditation-item img {
    height: 56px;
    width: auto;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity var(--transition);
}

.accreditation-item:hover img {
    opacity: 1;
}

.accreditation-item span {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
}


/* ==========================================================================
   24. BREADCRUMBS
   ========================================================================== */

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) 0;
    font-size: 0.85rem;
}

.breadcrumbs a {
    color: var(--text-secondary);
}

.breadcrumbs a:hover {
    color: var(--accent);
}

.breadcrumbs .separator {
    color: var(--text-muted);
    font-size: 0.7rem;
}

.breadcrumbs .current {
    color: var(--text-primary);
    font-weight: 500;
}


/* ==========================================================================
   25. TABLES
   ========================================================================== */

.table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    background: var(--bg-secondary);
    text-align: left;
    padding: var(--space-md) var(--space-lg);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.table td {
    padding: var(--space-md) var(--space-lg);
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.table tr:last-child td {
    border-bottom: none;
}

.table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.table td strong {
    color: var(--text-primary);
}


/* ==========================================================================
   26. BACK TO TOP BUTTON
   ========================================================================== */

.back-to-top {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    width: 44px;
    height: 44px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all var(--transition);
    z-index: var(--z-sticky);
    box-shadow: var(--shadow-sm);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: var(--shadow-accent);
}


/* ==========================================================================
   27. COOKIE BANNER
   ========================================================================== */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: var(--space-lg) var(--space-xl);
    z-index: var(--z-toast);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.3);
    transform: translateY(100%);
    transition: transform var(--transition-slow);
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-banner p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.cookie-banner p a {
    color: var(--accent);
    text-decoration: underline;
}

.cookie-banner .btn-group {
    flex-shrink: 0;
}


/* ==========================================================================
   28. RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* ------- Tablet (768px and below) ------- */
@media (max-width: 768px) {

    /* Typography scaling */
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    /* Layout */
    .section {
        padding: var(--space-2xl) 0;
    }

    .container {
        padding-left: var(--space-md);
        padding-right: var(--space-md);
    }

    /* Grid collapses */
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    /* Navbar: show hamburger */
    .navbar-links {
        display: none;
    }

    .navbar-toggle {
        display: flex;
    }

    /* Hero */
    .hero {
        min-height: 85vh;
    }

    .hero-content {
        padding: var(--space-md);
    }

    .hero-scroll-indicator {
        display: none;
    }

    /* Stats bar */
    .stats-bar {
        gap: var(--space-md);
    }

    .stats-bar .stat-item {
        min-width: 120px;
        padding: var(--space-md);
    }

    .stats-bar .stat-item:not(:last-child)::after {
        display: none;
    }

    .stats-bar .stat-number {
        font-size: 2rem;
    }

    /* Contact layout */
    .contact-layout {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    /* Form row */
    .form-row {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom-links {
        justify-content: center;
    }

    /* Section heading */
    .section-heading {
        margin-bottom: var(--space-2xl);
    }

    /* Service cards */
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Chat */
    .chat-message {
        max-width: 92%;
    }

    /* Modal */
    .modal {
        max-height: 90vh;
        margin: var(--space-md);
    }

    /* Cookie banner */
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        padding: var(--space-md);
    }

    /* Table */
    .table th,
    .table td {
        padding: var(--space-sm) var(--space-md);
        font-size: 0.8rem;
    }
}

/* ------- Small tablets (640px and above) ------- */
@media (min-width: 640px) and (max-width: 768px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ------- Mobile (480px and below) ------- */
@media (max-width: 480px) {

    html {
        font-size: 15px;
    }

    h1 {
        font-size: 1.9rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-label {
        font-size: 0.7rem;
        padding: 6px 14px;
    }

    .btn {
        padding: 10px 22px;
        font-size: 0.9rem;
    }

    .btn-lg {
        padding: 14px 28px;
        font-size: 1rem;
    }

    .btn-group {
        flex-direction: column;
        width: 100%;
    }

    .btn-group .btn {
        width: 100%;
    }

    /* Stats */
    .stats-bar {
        flex-direction: column;
        align-items: center;
    }

    .stats-bar .stat-item {
        width: 100%;
        max-width: 250px;
    }

    .stats-bar-cards {
        grid-template-columns: 1fr;
    }

    /* Contact form */
    .contact-form {
        padding: var(--space-lg);
    }

    /* Chat */
    .chat-container {
        padding: 0 var(--space-sm);
    }

    .chat-message {
        max-width: 95%;
    }

    .chat-message-bubble {
        padding: var(--space-sm) var(--space-md);
        font-size: 0.9rem;
    }

    .chat-suggestions {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: var(--space-sm);
    }

    /* Client logos */
    .client-logos {
        gap: var(--space-lg);
    }

    .client-logos img {
        height: 28px;
    }

    /* Accreditations */
    .accreditation-row {
        gap: var(--space-md);
    }

    .accreditation-item img {
        height: 40px;
    }

    /* Navbar */
    .navbar-logo-text {
        font-size: 0.85rem;
    }

    .navbar-logo-mark {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

/* ------- Desktop (1024px and above) ------- */
@media (min-width: 1024px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ------- Large desktop (1400px and above) ------- */
@media (min-width: 1400px) {
    .container {
        max-width: 1280px;
    }

    .container-wide {
        max-width: 1500px;
    }
}


/* ==========================================================================
   29. PRINT STYLES
   ========================================================================== */

@media print {
    *,
    *::before,
    *::after {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    body {
        font-size: 11pt;
        line-height: 1.5;
    }

    a,
    a:visited {
        text-decoration: underline;
        color: #000 !important;
    }

    a[href]::after {
        content: ' (' attr(href) ')';
        font-size: 0.8em;
        font-weight: normal;
    }

    a[href^='#']::after,
    a[href^='javascript:']::after {
        content: '';
    }

    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }

    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        page-break-inside: avoid;
    }

    p, li {
        orphans: 3;
        widows: 3;
    }

    /* Hide non-essential elements */
    .navbar,
    .navbar-mobile-menu,
    .hero-scroll-indicator,
    .hero-gradient-sweep,
    .back-to-top,
    .cookie-banner,
    .chat-container,
    .chat-input-area,
    .footer-accreditations,
    .btn,
    .btn-group {
        display: none !important;
    }

    .hero {
        min-height: auto !important;
        padding: 20pt 0 !important;
    }

    .hero::before,
    .hero::after {
        display: none !important;
    }

    .section {
        padding: 20pt 0 !important;
    }

    .container {
        max-width: 100% !important;
        padding: 0 !important;
    }

    .footer {
        padding: 10pt 0 !important;
        border-top: 1pt solid #ccc;
    }

    .footer-grid {
        display: block;
    }

    .card,
    .service-card,
    .team-card,
    .partner-card,
    .contact-form {
        border: 1pt solid #ccc !important;
        page-break-inside: avoid;
        margin-bottom: 10pt;
    }

    /* Override animations */
    .animate-on-scroll,
    .animate-stagger > * {
        opacity: 1 !important;
        transform: none !important;
    }
}


/* ==========================================================================
   30. ACCESSIBILITY
   ========================================================================== */

/* High contrast mode support */
@media (forced-colors: active) {
    .btn-primary,
    .btn-gold {
        border: 2px solid ButtonText;
    }

    .service-card,
    .team-card,
    .partner-card,
    .card {
        border: 1px solid ButtonText;
    }

    .navbar {
        border-bottom: 1px solid ButtonText;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .animate-on-scroll {
        opacity: 1;
        transform: none;
    }

    .animate-stagger > * {
        opacity: 1;
        transform: none;
    }

    .hero::after {
        animation: none;
    }

    .hero-gradient-sweep {
        animation: none;
    }
}

/* Focus styles for keyboard navigation */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Remove default focus ring for mouse users */
:focus:not(:focus-visible) {
    outline: none;
}

/* Skip to content link */
.skip-to-content {
    position: absolute;
    top: -100%;
    left: var(--space-md);
    padding: var(--space-sm) var(--space-lg);
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    z-index: 10000;
    transition: top var(--transition-fast);
}

.skip-to-content:focus {
    top: 0;
}
