/* ============================================
   CastingForgingSource - Main Stylesheet
   B2B Industrial Website for Castings & Forgings
   ============================================ */

/* ============================================
   CSS VARIABLES / DESIGN TOKENS
   ============================================ */
:root {
    /* ===========================================
       STANDARDIZED COLOR PALETTE
       Industrial B2B Website - Casting & Forging
       =========================================== */

    /* Primary Colors - Deep Industrial Blue
       Used for: Headers, primary buttons, links, logo, nav */
    --primary: #1e3a5f;
    --primary-dark: #152a45;
    --primary-light: #2d5a8a;
    --primary-rgb: 30, 58, 95;
    --primary-dark-rgb: 21, 42, 69;

    /* Secondary Colors - Industrial Orange (CTA & Accents)
       Used for: CTA buttons, highlights, important actions */
    --secondary: #e85d04;
    --secondary-dark: #c44d03;
    --secondary-light: #f48c06;
    --secondary-rgb: 232, 93, 4;

    /* Accent Colors - Success/Positive
       Used for: Success states, checkmarks, positive indicators */
    --accent: #2d9a4e;
    --accent-dark: #247a3e;
    --accent-light: #38b85f;

    /* State Colors - Warning, Danger, Info */
    --warning: #f59e0b;
    --warning-dark: #d97706;
    --danger: #dc2626;
    --danger-dark: #b91c1c;
    --info: #0ea5e9;
    --info-dark: #0284c7;

    /* Neutral Colors - Gray Scale */
    --dark: #152a45;
    --gray-900: #1f2937;
    --gray-800: #374151;
    --gray-700: #4b5563;
    --gray-600: #6b7280;
    --gray-500: #9ca3af;
    --gray-400: #d1d5db;
    --gray-300: #e5e7eb;
    --gray-200: #f3f4f6;
    --gray-100: #f9fafb;
    --white: #ffffff;

    /* Background Colors */
    --bg-light: #f8fafc;
    --bg-section: #f1f5f9;
    --bg-dark: #152a45;

    /* Text Colors */
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;
    --text-light: #ffffff;

    /* Border Colors */
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;

    /* Shadows - Using primary color tint for cohesion */
    --shadow-sm: 0 1px 2px rgba(var(--primary-rgb), 0.05);
    --shadow: 0 4px 6px rgba(var(--primary-rgb), 0.07), 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 25px rgba(var(--primary-rgb), 0.1), 0 4px 10px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 2px 8px rgba(var(--primary-rgb), 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-card-hover: 0 12px 32px rgba(var(--primary-rgb), 0.15), 0 4px 12px rgba(0, 0, 0, 0.08);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Poppins', var(--font-primary);

    /* Font Sizes */
    --fs-xs: 0.75rem;
    --fs-sm: 0.875rem;
    --fs-base: 1rem;
    --fs-lg: 1.125rem;
    --fs-xl: 1.25rem;
    --fs-2xl: 1.5rem;
    --fs-3xl: 1.875rem;
    --fs-4xl: 2.25rem;
    --fs-5xl: 3rem;
    --fs-6xl: 3.75rem;

    /* Line Heights */
    --lh-tight: 1.25;
    --lh-snug: 1.375;
    --lh-normal: 1.5;
    --lh-relaxed: 1.625;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --spacing-4xl: 6rem;

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition: 300ms ease;
    --transition-slow: 500ms ease;

    /* Container Max Widths */
    --container-sm: 540px;
    --container-md: 720px;
    --container-lg: 960px;
    --container-xl: 1140px;
    --container-xxl: 1320px;

    /* Header Height */
    --header-height: 80px;
    --header-height-scrolled: 70px;
    --header-height-with-topbar: 116px;
}

/* ============================================
   BOOTSTRAP OVERRIDES
   ============================================ */

/* Wider Container for larger screens (1440px+) */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1340px;
    }
}

@media (min-width: 1600px) {
    .container {
        max-width: 1480px;
    }
}

/* Override Bootstrap's color classes to use our palette */
.bg-primary {
    background-color: var(--primary) !important;
}

.bg-primary.text-white h1,
.bg-primary.text-white h2,
.bg-primary.text-white h3,
.bg-primary.text-white h4,
.bg-primary.text-white h5,
.bg-primary.text-white h6,
.bg-primary.text-white p,
.bg-primary.text-white li,
.bg-primary.text-white span,
.bg-primary.text-white strong {
    color: var(--white) !important;
}

.bg-secondary {
    background-color: var(--secondary) !important;
}

.bg-success {
    background-color: var(--accent) !important;
}

.bg-dark {
    background-color: var(--dark) !important;
}

.bg-dark.text-white h1,
.bg-dark.text-white h2,
.bg-dark.text-white h3,
.bg-dark.text-white h4,
.bg-dark.text-white h5,
.bg-dark.text-white h6,
.bg-dark.text-white p,
.bg-dark.text-white li,
.bg-dark.text-white span,
.bg-dark.text-white strong {
    color: var(--white) !important;
}

/* Card headers on dark backgrounds */
.card-header.bg-primary,
.card-header.bg-dark,
.card-header.bg-secondary {
    color: var(--white);
}

.card-header.bg-primary *,
.card-header.bg-dark *,
.card-header.bg-secondary * {
    color: var(--white);
}

.card-header.bg-primary h1,
.card-header.bg-primary h2,
.card-header.bg-primary h3,
.card-header.bg-primary h4,
.card-header.bg-primary h5,
.card-header.bg-primary h6,
.card-header.bg-dark h1,
.card-header.bg-dark h2,
.card-header.bg-dark h3,
.card-header.bg-dark h4,
.card-header.bg-dark h5,
.card-header.bg-dark h6,
.card-header.bg-secondary h1,
.card-header.bg-secondary h2,
.card-header.bg-secondary h3,
.card-header.bg-secondary h4,
.card-header.bg-secondary h5,
.card-header.bg-secondary h6 {
    color: var(--white);
}

/* Cards with dark backgrounds (full card) */
.card.bg-primary,
.card.bg-dark,
.card.bg-secondary,
.card.bg-success,
.card.bg-info,
.card.bg-warning,
.card.bg-danger {
    color: var(--white);
}

.card.bg-primary *,
.card.bg-dark *,
.card.bg-secondary *,
.card.bg-success *,
.card.bg-info * {
    color: var(--white);
}

.card.bg-primary h1,
.card.bg-primary h2,
.card.bg-primary h3,
.card.bg-primary h4,
.card.bg-primary h5,
.card.bg-primary h6,
.card.bg-primary p,
.card.bg-primary li,
.card.bg-primary span,
.card.bg-dark h1,
.card.bg-dark h2,
.card.bg-dark h3,
.card.bg-dark h4,
.card.bg-dark h5,
.card.bg-dark h6,
.card.bg-dark p,
.card.bg-dark li,
.card.bg-dark span,
.card.bg-success h1,
.card.bg-success h2,
.card.bg-success h3,
.card.bg-success h4,
.card.bg-success h5,
.card.bg-success h6,
.card.bg-success p,
.card.bg-success li,
.card.bg-success span {
    color: var(--white);
}

.card.bg-primary .list-unstyled li,
.card.bg-dark .list-unstyled li,
.card.bg-success .list-unstyled li {
    color: var(--white);
}

/* Warning cards need dark text for contrast */
.card.bg-warning,
.card.bg-warning * {
    color: var(--text-primary);
}

.card.bg-warning h1,
.card.bg-warning h2,
.card.bg-warning h3,
.card.bg-warning h4,
.card.bg-warning h5,
.card.bg-warning h6,
.card.bg-warning p,
.card.bg-warning li,
.card.bg-warning span {
    color: var(--text-primary);
}

.text-primary {
    color: var(--primary) !important;
}

.text-secondary {
    color: var(--secondary) !important;
}

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

.text-warning {
    color: var(--warning) !important;
}

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

.text-info {
    color: var(--info) !important;
}

.bg-warning {
    background-color: var(--warning) !important;
}

.bg-danger {
    background-color: var(--danger) !important;
}

.bg-info {
    background-color: var(--info) !important;
}

.btn-primary {
    --bs-btn-bg: var(--primary);
    --bs-btn-border-color: var(--primary);
    --bs-btn-hover-bg: var(--primary-dark);
    --bs-btn-hover-border-color: var(--primary-dark);
    --bs-btn-active-bg: var(--primary-dark);
    --bs-btn-active-border-color: var(--primary-dark);
    --bs-btn-focus-shadow-rgb: var(--primary-rgb);
}

.btn-secondary {
    --bs-btn-bg: var(--secondary);
    --bs-btn-border-color: var(--secondary);
    --bs-btn-hover-bg: var(--secondary-dark);
    --bs-btn-hover-border-color: var(--secondary-dark);
    --bs-btn-active-bg: var(--secondary-dark);
    --bs-btn-active-border-color: var(--secondary-dark);
    --bs-btn-focus-shadow-rgb: var(--secondary-rgb);
}

.btn-success {
    --bs-btn-bg: var(--accent);
    --bs-btn-border-color: var(--accent);
    --bs-btn-hover-bg: var(--accent-dark);
    --bs-btn-hover-border-color: var(--accent-dark);
    --bs-btn-active-bg: var(--accent-dark);
    --bs-btn-active-border-color: var(--accent-dark);
}

.btn-outline-primary {
    --bs-btn-color: var(--primary);
    --bs-btn-border-color: var(--primary);
    --bs-btn-hover-bg: var(--primary);
    --bs-btn-hover-border-color: var(--primary);
    --bs-btn-active-bg: var(--primary);
    --bs-btn-active-border-color: var(--primary);
    --bs-btn-focus-shadow-rgb: var(--primary-rgb);
}

.btn-outline-secondary {
    --bs-btn-color: var(--secondary);
    --bs-btn-border-color: var(--secondary);
    --bs-btn-hover-bg: var(--secondary);
    --bs-btn-hover-border-color: var(--secondary);
    --bs-btn-active-bg: var(--secondary);
    --bs-btn-active-border-color: var(--secondary);
    --bs-btn-focus-shadow-rgb: var(--secondary-rgb);
}

.badge.bg-primary {
    background-color: var(--primary) !important;
}

.badge.bg-secondary {
    background-color: var(--secondary) !important;
}

.table-dark {
    --bs-table-bg: var(--primary);
    --bs-table-border-color: var(--primary-dark);
    --bs-table-color: var(--white);
}

.table-dark th,
.table-dark td {
    color: var(--white);
}

/* Table headers with primary background */
.table thead.table-dark th,
.table thead.table-primary th,
thead.table-dark th {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary-dark);
}

/* Table header light background */
.table thead.table-light th {
    background-color: var(--bg-section);
    color: var(--text-primary);
    font-weight: 600;
}

/* Bordered tables */
.table-bordered {
    border-color: var(--border-color);
}

.table-bordered th,
.table-bordered td {
    border-color: var(--border-color);
}

/* Responsive table improvements */
.table-responsive {
    margin-bottom: 1rem;
}

/* Small tables */
.table-sm th,
.table-sm td {
    padding: 0.5rem;
}

.table-primary {
    --bs-table-bg: rgba(var(--primary-rgb), 0.1);
}

/* Link Colors */
a {
    --bs-link-color: var(--primary);
    --bs-link-hover-color: var(--primary-dark);
}

/* Form Controls */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(var(--primary-rgb), 0.25);
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-check-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(var(--primary-rgb), 0.25);
}

/* Accordion */
.accordion-button:not(.collapsed) {
    background-color: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
}

.accordion-button:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(var(--primary-rgb), 0.25);
}

/* Pagination */
.page-link {
    color: var(--primary);
}

.page-link:hover {
    color: var(--primary-dark);
}

.page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* Nav Pills & Tabs */
.nav-pills .nav-link.active {
    background-color: var(--primary);
}

.nav-tabs .nav-link.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* Progress Bar */
.progress-bar {
    background-color: var(--primary);
}

/* Alerts */
.alert-primary {
    --bs-alert-bg: rgba(var(--primary-rgb), 0.1);
    --bs-alert-border-color: rgba(var(--primary-rgb), 0.2);
    --bs-alert-color: var(--primary-dark);
}

.alert-secondary {
    --bs-alert-bg: rgba(var(--secondary-rgb), 0.1);
    --bs-alert-border-color: rgba(var(--secondary-rgb), 0.2);
    --bs-alert-color: var(--secondary-dark);
}

/* ============================================
   BASE STYLES
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    font-size: var(--fs-base);
    line-height: var(--lh-normal);
    color: var(--text-primary);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: var(--lh-tight);
    color: var(--text-primary);
    margin-bottom: 0.5em;
}

h1, .h1 { font-size: var(--fs-5xl); }
h2, .h2 { font-size: var(--fs-4xl); }
h3, .h3 { font-size: var(--fs-3xl); }
h4, .h4 { font-size: var(--fs-2xl); }
h5, .h5 { font-size: var(--fs-xl); }
h6, .h6 { font-size: var(--fs-lg); }

@media (max-width: 768px) {
    h1, .h1 { font-size: var(--fs-4xl); }
    h2, .h2 { font-size: var(--fs-3xl); }
    h3, .h3 { font-size: var(--fs-2xl); }
}

p {
    margin-bottom: var(--spacing-md);
}

.lead {
    font-size: var(--fs-xl);
    font-weight: 400;
    line-height: var(--lh-relaxed);
    color: var(--text-secondary);
}

.text-primary-color { color: var(--primary) !important; }
.text-secondary-color { color: var(--secondary) !important; }
.text-accent { color: var(--accent) !important; }
.text-muted { color: var(--text-muted) !important; }

/* ============================================
   LINKS
   ============================================ */
a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-primary);
    font-size: var(--fs-base);
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    border: 2px solid transparent;
    border-radius: var(--radius);
    transition: all var(--transition-fast);
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.25);
}

/* Primary Button */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
}

/* Secondary Button */
.btn-secondary {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    border-color: var(--secondary-dark);
    color: var(--white);
}

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

.btn-outline-primary:hover {
    background-color: var(--primary);
    color: var(--white);
}

.btn-outline-light {
    background-color: transparent;
    border-color: var(--white);
    color: var(--white);
}

.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--primary);
}

/* Button Sizes */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: var(--fs-sm);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: var(--fs-lg);
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow);
}

.header-top {
    background-color: var(--primary-dark);
    color: var(--white);
    font-size: var(--fs-sm);
    padding: 0.5rem 0;
}

.header-top a {
    color: var(--white);
    opacity: 0.9;
}

.header-top a:hover {
    opacity: 1;
}

.header-main {
    padding: 1rem 0;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: var(--fs-xl);
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand:hover {
    color: var(--primary);
}

.navbar-brand img {
    height: 45px;
    width: auto;
}

/* Logo Icon */
.logo-icon {
    width: 42px;
    height: 42px;
    background: var(--secondary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.logo-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.5s ease;
}

.navbar-brand:hover .logo-icon::before {
    animation: logoShine 0.6s ease;
}

@keyframes logoShine {
    0% { left: -50%; }
    100% { left: 150%; }
}

.logo-text {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.logo-text span {
    color: var(--secondary);
}

.nav-link {
    font-weight: 500;
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    transition: color var(--transition-fast);
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link.active {
    color: var(--secondary);
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.dropdown-item:hover {
    background-color: var(--bg-light);
    color: var(--primary);
}

.dropdown-item.active,
.dropdown-item:active {
    background-color: var(--secondary);
    color: var(--white);
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-cta .btn {
    padding: 0.625rem 1.25rem;
}

/* Language Selector */
.language-selector {
    position: relative;
}

.language-selector .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: var(--fs-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.language-selector .dropdown-toggle:hover {
    background-color: var(--white);
    border-color: var(--primary);
}

.language-selector .dropdown-toggle::after {
    display: none;
}

.language-selector .globe-icon {
    font-size: 1rem;
    color: var(--primary);
}

.language-selector .dropdown-menu {
    min-width: 160px;
    padding: 0.5rem 0;
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
}

.language-selector .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: var(--fs-sm);
}

.language-selector .dropdown-item:hover {
    background-color: var(--bg-light);
}

.language-selector .dropdown-item.active {
    background-color: var(--primary);
    color: var(--white);
}

.language-selector .flag-icon {
    width: 20px;
    height: 14px;
    border-radius: 2px;
    object-fit: cover;
}

/* Mobile Menu */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Mobile Header Adjustments */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: var(--white);
        padding: 1rem;
        margin-top: 0.5rem;
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-md);
        max-height: calc(100vh - 100px);
        overflow-y: auto;
    }

    .navbar-nav {
        padding-bottom: 0.5rem;
    }

    .navbar-nav .nav-item {
        border-bottom: 1px solid var(--border-color);
    }

    .navbar-nav .nav-item:last-child {
        border-bottom: none;
    }

    .navbar-nav .nav-link {
        padding: 0.875rem 0.5rem;
        font-weight: 500;
    }

    /* Mobile Dropdown Styles */
    .navbar-nav .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        margin: 0;
        padding: 0;
        background: var(--bg-light);
        border: none;
        border-radius: 0;
        box-shadow: none;
    }

    .navbar-nav .dropdown-menu.show {
        display: block;
    }

    .navbar-nav .dropdown-item {
        padding: 0.75rem 1.5rem;
        border-bottom: 1px solid var(--border-color);
    }

    .navbar-nav .dropdown-item:last-child {
        border-bottom: none;
    }

    .navbar-nav .dropdown-divider {
        display: none;
    }

    /* Dropdown toggle arrow rotation */
    .navbar-nav .dropdown-toggle::after {
        float: right;
        margin-top: 0.5rem;
        transition: transform 0.3s ease;
    }

    .navbar-nav .dropdown.show .dropdown-toggle::after {
        transform: rotate(180deg);
    }

    .header-cta {
        flex-direction: column;
        width: 100%;
        padding: 1rem 0;
        gap: 0.75rem;
        border-top: 1px solid var(--border-color);
        margin-top: 0.5rem;
    }

    .header-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .language-selector {
        width: 100%;
    }

    .language-selector .dropdown-toggle {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .logo-icon {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }

    .logo-text {
        font-size: 1.15rem;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    background-color: var(--primary-dark);
    color: var(--white);
    padding-top: calc(var(--header-height-with-topbar) + 3rem);
    padding-bottom: 4rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(var(--primary-dark-rgb), 0.85) 0%, rgba(var(--primary-dark-rgb), 0.7) 30%, rgba(var(--primary-rgb), 0.25) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: var(--fs-6xl);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero .lead {
    font-size: var(--fs-xl);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

@media (max-width: 991px) {
    /* On mobile/tablet, top bar is hidden, so use smaller header height */
    .hero {
        padding-top: calc(var(--header-height) + 3rem);
        padding-bottom: 3rem;
    }

    .page-header {
        padding-top: calc(var(--header-height) + 3rem);
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        text-align: center;
        padding-bottom: 2.5rem;
    }

    .hero h1 {
        font-size: var(--fs-4xl);
    }

    .hero .lead {
        font-size: var(--fs-lg);
    }

    .hero-buttons {
        justify-content: center;
        margin-top: 1.5rem;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   PAGE HEADERS
   ============================================ */
.page-header {
    background-color: var(--primary-dark);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: var(--white);
    min-height: 350px;
    display: flex;
    align-items: center;
    padding: calc(var(--header-height-with-topbar) + 3rem) 0 3rem;
    position: relative;
    overflow: hidden;
}

@media (min-width: 992px) {
    .page-header {
        min-height: 400px;
    }
}

@media (min-width: 1200px) {
    .page-header {
        min-height: 450px;
    }
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(var(--primary-dark-rgb), 0.75) 0%, rgba(var(--primary-dark-rgb), 0.5) 30%, rgba(var(--primary-rgb), 0.2) 100%);
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.page-header .lead {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.breadcrumb-item {
    font-size: var(--fs-sm);
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb-item a:hover {
    color: var(--white);
}

.breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.9);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: var(--spacing-4xl) 0;
}

.section-sm {
    padding: var(--spacing-3xl) 0;
}

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

.section-bg {
    background-color: var(--bg-section);
}

.section-dark {
    background-color: var(--bg-dark);
    color: var(--white);
}

.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark h5,
.section-dark h6 {
    color: var(--white);
}

.section-dark p {
    color: rgba(255, 255, 255, 0.85);
}

.section-dark .section-title p {
    color: rgba(255, 255, 255, 0.8);
}

.section-dark .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

.section-dark .text-secondary {
    color: rgba(255, 255, 255, 0.8) !important;
}

.section-dark a:not(.btn) {
    color: var(--secondary-light);
}

.section-dark a:not(.btn):hover {
    color: var(--secondary);
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.section-title h2 {
    margin-bottom: 1rem;
}

.section-title p {
    font-size: var(--fs-lg);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

.section-title.text-start {
    text-align: left;
}

.section-title.text-start p {
    margin: 0;
}

/* ============================================
   TRUST INDICATORS / CERTIFICATIONS BAR
   ============================================ */
.trust-bar {
    background-color: var(--white);
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.trust-items {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--text-secondary);
}

.trust-item img {
    height: 40px;
    width: auto;
    opacity: 0.8;
}

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

/* ============================================
   STATISTICS
   ============================================ */
.stats-section {
    background-color: var(--primary);
    color: var(--white);
    padding: var(--spacing-3xl) 0;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: var(--fs-5xl);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.stat-label {
    font-size: var(--fs-base);
    font-weight: 500;
    color: var(--white);
    opacity: 0.9;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--white);
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: all var(--transition);
    overflow: hidden;
}

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

.card-body {
    padding: 1.5rem;
}

/* Card body with flex layout for button alignment */
.card.h-100 .card-body {
    display: flex;
    flex-direction: column;
}

.card.h-100 .card-body .btn:last-child {
    margin-top: auto;
}

/* Prevent button overflow in cards */
.card .btn {
    white-space: normal;
    word-wrap: break-word;
}

.card-title {
    font-size: var(--fs-xl);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.card-text {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Product Cards */
.product-card {
    text-align: center;
    padding: 2rem 1.5rem;
}

.product-card .card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-light);
    border-radius: var(--radius-full);
    color: var(--primary);
    font-size: 2rem;
    transition: all var(--transition);
}

.product-card:hover .card-icon {
    background-color: var(--primary);
    color: var(--white);
}

.product-card ul {
    list-style: none;
    padding-left: 0;
}

/* Remove default bullets from card lists */
.card ul:not(.list-inline):not(.navbar-nav):not(.dropdown-menu) {
    list-style: none;
    padding-left: 0;
}

/* Feature Cards */
.feature-card {
    padding: 2rem;
    border-left: 4px solid var(--primary);
}

.feature-card .feature-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Industry Cards */
.industry-card {
    position: relative;
    min-height: 250px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.industry-card .card-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    transition: transform var(--transition-slow);
}

.industry-card:hover .card-bg {
    transform: scale(1.05);
}

.industry-card .card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
}

.industry-card .card-content {
    position: relative;
    z-index: 1;
    padding: 1.5rem;
    color: var(--white);
    width: 100%;
}

.industry-card .card-title {
    color: var(--white);
    margin-bottom: 0.25rem;
}

.industry-card .card-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--fs-sm);
    margin-bottom: 0;
}

/* ============================================
   ICON BOXES
   ============================================ */
.icon-box {
    text-align: center;
    padding: 1.5rem;
}

.icon-box .icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-light);
    border-radius: var(--radius-lg);
    color: var(--primary);
    font-size: 1.75rem;
    transition: all var(--transition);
}

.icon-box:hover .icon {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-5px);
}

.icon-box h5 {
    font-size: var(--fs-lg);
    margin-bottom: 0.5rem;
}

.icon-box p {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* Icon box in dark section */
.section-dark .icon-box .icon {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--secondary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.section-dark .icon-box:hover .icon {
    background-color: var(--secondary);
    color: var(--white);
    border-color: var(--secondary);
}

.section-dark .icon-box h3,
.section-dark .icon-box h4,
.section-dark .icon-box h5 {
    color: var(--white);
}

.section-dark .icon-box p {
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   COMPREHENSIVE DARK BACKGROUND TEXT FIXES
   ============================================ */

/* All text-muted and text-secondary on dark backgrounds */
.section-dark .text-muted,
.bg-primary .text-muted,
.bg-dark .text-muted,
.cta-section .text-muted,
.page-header .text-muted,
.hero .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

.section-dark .text-secondary,
.bg-primary .text-secondary,
.bg-dark .text-secondary,
.cta-section .text-secondary,
.page-header .text-secondary,
.hero .text-secondary {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Small text on dark backgrounds */
.section-dark small,
.bg-primary small,
.bg-dark small,
.cta-section small,
.page-header small {
    color: rgba(255, 255, 255, 0.7);
}

/* Definition lists on dark backgrounds */
.section-dark dt,
.bg-primary dt,
.bg-dark dt {
    color: var(--white);
}

.section-dark dd,
.bg-primary dd,
.bg-dark dd {
    color: rgba(255, 255, 255, 0.8);
}

/* Table cells in dark sections */
.section-dark .table th,
.section-dark .table td {
    color: var(--text-primary);
}

/* Cards inside dark sections (keeping cards white with dark text) */
.section-dark .card:not(.bg-primary):not(.bg-dark):not(.bg-secondary) {
    background: var(--white);
    color: var(--text-primary);
}

.section-dark .card:not(.bg-primary):not(.bg-dark):not(.bg-secondary) h1,
.section-dark .card:not(.bg-primary):not(.bg-dark):not(.bg-secondary) h2,
.section-dark .card:not(.bg-primary):not(.bg-dark):not(.bg-secondary) h3,
.section-dark .card:not(.bg-primary):not(.bg-dark):not(.bg-secondary) h4,
.section-dark .card:not(.bg-primary):not(.bg-dark):not(.bg-secondary) h5,
.section-dark .card:not(.bg-primary):not(.bg-dark):not(.bg-secondary) h6 {
    color: var(--text-primary);
}

.section-dark .card:not(.bg-primary):not(.bg-dark):not(.bg-secondary) p {
    color: var(--text-secondary);
}

.section-dark .card:not(.bg-primary):not(.bg-dark):not(.bg-secondary) .text-muted {
    color: var(--text-muted) !important;
}

/* Badge text should always be white on colored backgrounds */
.badge {
    color: var(--white);
}

/* Stats section text */
.stats-section h1,
.stats-section h2,
.stats-section h3,
.stats-section h4,
.stats-section h5,
.stats-section h6,
.stats-section p {
    color: var(--white);
}

.stats-section .stat-label {
    color: var(--white);
}

/* Alert in dark sections */
.section-dark .alert {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.section-dark .alert-info {
    background: rgba(14, 165, 233, 0.15);
    border-color: rgba(14, 165, 233, 0.3);
    color: var(--white);
}

/* List items on dark backgrounds */
.section-dark li,
.bg-primary li,
.bg-dark li,
.cta-section li {
    color: rgba(255, 255, 255, 0.85);
}

/* Unordered list styling */
.section ul:not(.list-unstyled):not(.list-inline):not(.navbar-nav):not(.dropdown-menu):not(.breadcrumb):not(.footer-links):not(.nav):not(.accordion),
.section-bg ul:not(.list-unstyled):not(.list-inline):not(.navbar-nav):not(.dropdown-menu):not(.breadcrumb):not(.footer-links):not(.nav):not(.accordion) {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

.section ul:not(.list-unstyled):not(.list-inline):not(.navbar-nav):not(.dropdown-menu):not(.breadcrumb):not(.footer-links):not(.nav):not(.accordion) li,
.section-bg ul:not(.list-unstyled):not(.list-inline):not(.navbar-nav):not(.dropdown-menu):not(.breadcrumb):not(.footer-links):not(.nav):not(.accordion) li {
    margin-bottom: 0.5rem;
}

/* Ordered list styling */
.section ol:not(.breadcrumb),
.section-bg ol:not(.breadcrumb) {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

.section ol:not(.breadcrumb) li,
.section-bg ol:not(.breadcrumb) li {
    margin-bottom: 0.5rem;
}

/* Definition lists in card bodies */
.card-body dl {
    margin-bottom: 0;
}

.card-body dt {
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 0.5rem;
}

.card-body dt:first-child {
    margin-top: 0;
}

.card-body dd {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.card-body dd:last-child {
    margin-bottom: 0;
}

/* Ensure icons in dark sections stay visible */
.section-dark .fas,
.section-dark .far,
.section-dark .fab,
.bg-primary .fas:not(.text-success):not(.text-danger):not(.text-warning):not(.text-info),
.bg-dark .fas:not(.text-success):not(.text-danger):not(.text-warning):not(.text-info) {
    color: inherit;
}

/* Text with inline styles in service model circles */
.section .bg-primary.text-white i,
.section .bg-primary.text-white .fa,
.section .bg-primary.text-white .fas,
.section .bg-primary.text-white .far,
.section .bg-primary.text-white .fab {
    color: var(--white);
}

/* Process steps text under dark circles */
.section .h6,
.section h6 {
    color: var(--text-primary);
}

/* Section-bg should keep text dark */
.section-bg h1,
.section-bg h2,
.section-bg h3,
.section-bg h4,
.section-bg h5,
.section-bg h6 {
    color: var(--text-primary);
}

.section-bg p {
    color: var(--text-secondary);
}

.section-bg .text-muted {
    color: var(--text-muted) !important;
}

/* CTA section comprehensive fix */
.cta-section * {
    color: var(--white);
}

.cta-section h1,
.cta-section h2,
.cta-section h3,
.cta-section h4,
.cta-section h5,
.cta-section h6 {
    color: var(--white);
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
}

.cta-section .btn-secondary,
.cta-section .btn-outline-light {
    color: var(--white);
}

.cta-section .btn-outline-light:hover,
.cta-section .btn-outline-light:focus {
    color: var(--primary) !important;
    background-color: var(--white);
}

.cta-section .btn-outline-light:hover i,
.cta-section .btn-outline-light:focus i {
    color: var(--primary) !important;
}

/* Fix for accordion in section-bg */
.section-bg .accordion-button {
    color: var(--text-primary);
}

.section-bg .accordion-body {
    color: var(--text-secondary);
}

.section-bg .accordion-body p {
    color: var(--text-secondary);
}

/* Tab panes in section-bg need proper text colors */
.section-bg .tab-content {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    border: 1px solid var(--border-color);
    border-top: none;
    margin-top: -1px;
}

.section-bg .tab-content h3,
.section-bg .tab-content h4,
.section-bg .tab-content h5,
.section-bg .tab-content h6 {
    color: var(--text-primary);
}

.section-bg .tab-content p {
    color: var(--text-secondary);
}

.section-bg .tab-content .text-muted {
    color: var(--text-muted) !important;
}

/* Nav tabs styling consistency */
.nav-tabs {
    border-bottom-color: var(--border-color);
}

.nav-tabs .nav-link {
    color: var(--text-secondary);
    border: 1px solid transparent;
    border-bottom-color: var(--border-color);
    background: transparent;
    font-weight: 500;
}

.nav-tabs .nav-link:hover {
    color: var(--primary);
    border-color: transparent;
    border-bottom-color: var(--primary);
}

.nav-tabs .nav-link.active {
    color: var(--primary);
    background: var(--white);
    border-color: var(--border-color);
    border-bottom-color: var(--white);
}

/* Bootstrap text-white variants on dark backgrounds */
.text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.75) !important;
}

/* Footer contact address styling fix */
.footer-contact p {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: var(--fs-sm);
    color: var(--gray-400);
}

.footer-contact p i {
    color: var(--secondary);
    width: 20px;
    flex-shrink: 0;
}

.footer-contact p a,
.footer-contact p span {
    color: var(--gray-400);
}

.footer-contact p a:hover {
    color: var(--white);
}

/* Footer contact with list items */
.footer-contact li {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: var(--fs-sm);
    color: var(--gray-400);
}

.footer-contact li i {
    color: var(--secondary);
    width: 20px;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.footer-contact li a,
.footer-contact li span {
    color: var(--gray-400);
}

.footer-contact li a:hover {
    color: var(--white);
}

/* ============================================
   PROCESS STEPS
   ============================================ */
.process-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 2px;
    background-color: var(--border-color);
}

.process-step {
    text-align: center;
    flex: 1;
    position: relative;
    padding: 0 1rem;
}

.process-step .step-number {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    border: 3px solid var(--primary);
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-size: var(--fs-2xl);
    font-weight: 700;
    color: var(--primary);
    position: relative;
    z-index: 1;
}

.process-step h5 {
    font-size: var(--fs-lg);
    margin-bottom: 0.5rem;
}

.process-step p {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .process-steps {
        flex-direction: column;
        gap: 2rem;
    }

    .process-steps::before {
        display: none;
    }
}

/* ============================================
   TABLES
   ============================================ */
.table-responsive {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.table {
    margin-bottom: 0;
}

.table thead th {
    background-color: var(--primary);
    color: var(--white);
    font-weight: 600;
    border: none;
    padding: 1rem;
    white-space: nowrap;
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-color: var(--border-light);
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: var(--bg-light);
}

.table-hover tbody tr:hover {
    background-color: rgba(var(--primary-rgb), 0.05);
}

/* ============================================
   ACCORDIONS
   ============================================ */
.accordion-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md) !important;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.accordion-button {
    font-weight: 600;
    color: var(--text-primary);
    background-color: var(--white);
    padding: 1.25rem 1.5rem;
}

.accordion-button:not(.collapsed) {
    color: var(--primary);
    background-color: var(--bg-light);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--border-color);
}

.accordion-body {
    padding: 1.5rem;
}

/* ============================================
   TABS
   ============================================ */
.nav-tabs {
    border-bottom: 2px solid var(--border-color);
    gap: 0.5rem;
}

.nav-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-secondary);
    font-weight: 600;
    padding: 1rem 1.5rem;
    margin-bottom: -2px;
    transition: all var(--transition-fast);
}

.nav-tabs .nav-link:hover {
    border-color: transparent;
    color: var(--primary);
}

.nav-tabs .nav-link.active {
    color: var(--primary);
    background-color: transparent;
    border-color: var(--primary);
}

.tab-content {
    padding-top: 2rem;
}

/* ============================================
   FORMS
   ============================================ */
.form-label {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    padding: 0.75rem 1rem;
    font-size: var(--fs-base);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    transition: all var(--transition-fast);
}

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

textarea.form-control {
    min-height: 150px;
}

.input-group-text {
    background-color: var(--bg-light);
    border-color: var(--border-color);
    color: var(--text-secondary);
}

/* ============================================
   CTA SECTIONS
   ============================================ */
.cta-section {
    background-color: var(--primary);
    color: var(--white);
    padding: var(--spacing-3xl) 0;
    text-align: center;
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: var(--fs-lg);
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .btn-secondary {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

.cta-section .btn-secondary:hover {
    background-color: var(--secondary-dark);
    border-color: var(--secondary-dark);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

@media (max-width: 576px) {
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .cta-buttons .btn.ms-3 {
        margin-left: 0 !important;
    }
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background-color: var(--bg-dark);
    color: var(--gray-400);
}

.footer-main {
    padding: var(--spacing-4xl) 0 var(--spacing-3xl);
}

.footer-brand {
    margin-bottom: 1.5rem;
}

.footer-brand img {
    height: 50px;
    margin-bottom: 1rem;
}

/* Footer Logo with Icon */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo .logo-icon {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
}

.footer-logo h4 {
    margin-bottom: 0;
    font-size: var(--fs-xl);
    font-weight: 700;
    color: var(--white);
}

.footer-brand p {
    color: var(--gray-400);
    font-size: var(--fs-sm);
    line-height: var(--lh-relaxed);
}

.footer-title {
    font-size: var(--fs-lg);
    font-weight: 600;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--gray-400);
    font-size: var(--fs-sm);
    transition: all var(--transition-fast);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: var(--fs-sm);
}

.footer-contact i {
    color: var(--secondary);
    font-size: var(--fs-lg);
    width: 20px;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: var(--white);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
}

.footer-bottom p {
    margin: 0;
    font-size: var(--fs-sm);
}

.footer-bottom-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 2rem;
}

.footer-bottom-links a {
    color: var(--gray-400);
    font-size: var(--fs-sm);
}

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

/* ============================================
   UTILITY CLASSES
   ============================================ */
.bg-primary-color { background-color: var(--primary) !important; }
.bg-secondary-color { background-color: var(--secondary) !important; }
.bg-light { background-color: var(--bg-light) !important; }
.bg-dark { background-color: var(--bg-dark) !important; }

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

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }

.mt-0 { margin-top: 0 !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }

.py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }

.fw-bold { font-weight: 700 !important; }
.fw-semibold { font-weight: 600 !important; }
.fw-medium { font-weight: 500 !important; }

.rounded { border-radius: var(--radius) !important; }
.rounded-lg { border-radius: var(--radius-lg) !important; }

.shadow { box-shadow: var(--shadow) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }

/* ============================================
   ANIMATIONS
   ============================================ */

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* Stagger children animation */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.stagger-children.revealed > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-children.revealed > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-children.revealed > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-children.revealed > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-children.revealed > *:nth-child(5) { transition-delay: 0.5s; }
.stagger-children.revealed > *:nth-child(6) { transition-delay: 0.6s; }
.stagger-children.revealed > *:nth-child(7) { transition-delay: 0.7s; }
.stagger-children.revealed > *:nth-child(8) { transition-delay: 0.8s; }

.stagger-children.revealed > * {
    opacity: 1;
    transform: translateY(0);
}

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

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

@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);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

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

/* Animation Classes */
.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-fadeInDown {
    animation: fadeInDown 0.6s ease forwards;
}

.animate-fadeInLeft {
    animation: fadeInLeft 0.6s ease forwards;
}

.animate-fadeInRight {
    animation: fadeInRight 0.6s ease forwards;
}

.animate-scaleIn {
    animation: scaleIn 0.5s ease forwards;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Hero specific animations */
.hero-content h1 {
    animation: fadeInUp 0.8s ease forwards;
}

.hero-content .lead {
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-buttons {
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

/* Hover lift effect */
.hover-lift {
    transition: transform var(--transition), box-shadow var(--transition);
}

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

/* Hover scale effect */
.hover-scale {
    transition: transform var(--transition);
}

.hover-scale:hover {
    transform: scale(1.03);
}

/* Button hover animations */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::after {
    width: 300px;
    height: 300px;
}

/* Card hover effects */
.card {
    transition: transform var(--transition), box-shadow var(--transition);
}

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

/* Icon box enhanced hover */
.icon-box {
    transition: transform var(--transition);
}

.icon-box:hover {
    transform: translateY(-5px);
}

/* Stats counter animation */
.stat-number {
    transition: transform var(--transition);
}

.stat-item:hover .stat-number {
    transform: scale(1.1);
}

/* Trust bar items animation */
.trust-item {
    transition: transform var(--transition), color var(--transition);
}

.trust-item:hover {
    transform: translateY(-3px);
    color: var(--primary);
}

/* Nav link underline animation */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: all var(--transition-fast);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

/* Loading skeleton animation */
.skeleton {
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-scale {
        opacity: 1;
        transform: none;
    }
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary);
    color: var(--white);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */
@media (max-width: 991.98px) {
    .section {
        padding: var(--spacing-3xl) 0;
    }

    .footer-main {
        padding: var(--spacing-3xl) 0 var(--spacing-2xl);
    }
}

@media (max-width: 767.98px) {
    .section {
        padding: var(--spacing-2xl) 0;
    }

    .section-title {
        margin-bottom: var(--spacing-2xl);
    }

    .stat-number {
        font-size: var(--fs-4xl);
    }

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

    .footer-bottom-links {
        justify-content: center;
        margin-top: 1rem;
    }
}

/* ============================================
   COMPREHENSIVE MOBILE RESPONSIVE STYLES
   ============================================ */

/* Tablet (768px - 991px) */
@media (max-width: 991.98px) {
    /* CTA Section */
    .cta-section {
        padding: var(--spacing-3xl) 0;
        text-align: center;
    }

    .cta-section h2 {
        font-size: var(--fs-3xl);
    }

    .cta-section .d-flex {
        flex-direction: column;
        align-items: center;
    }

    .cta-section .btn {
        width: 100%;
        max-width: 300px;
    }

    /* Cards */
    .card {
        margin-bottom: 1.5rem;
    }

    /* Icon boxes */
    .icon-box {
        text-align: center;
        padding: 1.5rem;
    }

    .icon-box .icon-lg {
        margin: 0 auto 1rem;
    }

    /* Stats */
    .stat-item {
        margin-bottom: 2rem;
    }

    /* Tables - make scrollable */
    .table-responsive {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Page header */
    .page-header h1 {
        font-size: var(--fs-3xl);
    }

    .page-header .lead {
        font-size: var(--fs-base);
    }
}

/* Mobile (576px - 767px) */
@media (max-width: 767.98px) {
    /* Base font size adjustment */
    html {
        font-size: 15px;
    }

    /* Container padding */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Hero section */
    .hero {
        min-height: auto;
        padding-top: calc(var(--header-height) + 2rem);
        padding-bottom: 2rem;
    }

    .hero h1 {
        font-size: var(--fs-3xl);
        margin-bottom: 1rem;
    }

    .hero .lead {
        font-size: var(--fs-base);
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .hero-buttons .btn {
        width: 100%;
        padding: 0.875rem 1.5rem;
    }

    /* Page header */
    .page-header {
        padding: calc(var(--header-height) + 2rem) 0 2rem;
    }

    .page-header h1 {
        font-size: var(--fs-2xl);
    }

    /* Section titles */
    .section-title h2 {
        font-size: var(--fs-2xl);
    }

    .section-title p {
        font-size: var(--fs-base);
    }

    /* Trust bar */
    .trust-bar {
        padding: 1.5rem 0;
    }

    .trust-items {
        gap: 1rem;
    }

    .trust-item {
        font-size: var(--fs-xs);
        flex-direction: column;
        text-align: center;
    }

    .trust-item i {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
    }

    /* Cards */
    .card {
        margin-bottom: 1rem;
    }

    .card-body {
        padding: 1.25rem;
    }

    .card-header {
        padding: 1rem 1.25rem;
    }

    /* Buttons */
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: var(--fs-sm);
    }

    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: var(--fs-base);
    }

    /* CTA Section */
    .cta-section {
        padding: var(--spacing-2xl) 0;
    }

    .cta-section h2 {
        font-size: var(--fs-2xl);
        margin-bottom: 0.75rem;
    }

    .cta-section p {
        font-size: var(--fs-base);
        margin-bottom: 1.5rem;
    }

    .cta-section .btn {
        width: 100%;
        margin-bottom: 0.75rem;
    }

    /* Footer */
    .footer-main {
        padding: var(--spacing-2xl) 0;
    }

    .footer-brand {
        text-align: center;
        margin-bottom: 2rem;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-title {
        margin-top: 1.5rem;
    }

    .footer-bottom-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    /* Stats */
    .stats-section {
        padding: var(--spacing-2xl) 0;
    }

    .stat-item {
        margin-bottom: 1.5rem;
    }

    .stat-number {
        font-size: var(--fs-3xl);
    }

    .stat-label {
        font-size: var(--fs-sm);
    }

    /* Icon boxes */
    .icon-box {
        padding: 1.25rem;
        margin-bottom: 1rem;
    }

    .icon-box h3,
    .icon-box h4,
    .icon-box h5 {
        font-size: var(--fs-lg);
    }

    .icon-box p {
        font-size: var(--fs-sm);
    }

    /* Accordion */
    .accordion-button {
        padding: 1rem;
        font-size: var(--fs-base);
    }

    .accordion-body {
        padding: 1rem;
    }

    /* Forms */
    .form-control,
    .form-select {
        padding: 0.75rem 1rem;
        font-size: var(--fs-base);
    }

    /* Breadcrumb */
    .breadcrumb {
        font-size: var(--fs-xs);
    }

    /* Back to top */
    .back-to-top {
        width: 44px;
        height: 44px;
        bottom: 1rem;
        right: 1rem;
    }
}

/* Small Mobile (max-width: 575px) */
@media (max-width: 575.98px) {
    /* Even smaller font base */
    html {
        font-size: 14px;
    }

    /* Hero adjustments */
    .hero h1 {
        font-size: var(--fs-2xl);
    }

    .hero .lead {
        font-size: var(--fs-sm);
    }

    /* Page header */
    .page-header h1 {
        font-size: var(--fs-xl);
    }

    .page-header .lead {
        font-size: var(--fs-sm);
    }

    /* Section titles */
    .section-title h2 {
        font-size: var(--fs-xl);
    }

    /* Logo */
    .logo-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    /* Footer logo */
    .footer-logo .logo-icon {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    .footer-logo h4 {
        font-size: var(--fs-lg);
    }

    /* Cards - full width */
    .card {
        border-radius: var(--radius);
    }

    /* Buttons - full width on very small screens */
    .btn-group-vertical {
        width: 100%;
    }

    /* Stats - 2 columns */
    .stat-item {
        padding: 0 0.5rem;
    }

    .stat-number {
        font-size: var(--fs-2xl);
    }

    /* Trust items */
    .trust-items {
        flex-direction: column;
        gap: 0.75rem;
    }

    .trust-item {
        width: 100%;
        justify-content: center;
    }

    /* Tables */
    .table {
        font-size: var(--fs-sm);
    }

    .table th,
    .table td {
        padding: 0.5rem;
    }

    /* Icon boxes - smaller icons */
    .icon-box .icon-lg {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    /* Hide certain elements on very small screens */
    .d-xs-none {
        display: none !important;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .card:hover {
        transform: none;
        box-shadow: var(--shadow-card);
    }

    .icon-box:hover {
        transform: none;
    }

    .hover-lift:hover {
        transform: none;
    }

    /* Larger touch targets */
    .btn {
        min-height: 44px;
    }

    .nav-link {
        padding: 0.75rem 1rem;
    }

    .dropdown-item {
        padding: 0.75rem 1.25rem;
    }

    /* Footer links spacing */
    .footer-links a {
        display: inline-block;
        padding: 0.5rem 0;
    }
}

/* Landscape phone orientation */
@media (max-width: 767.98px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding-top: calc(var(--header-height) + 1rem);
        padding-bottom: 1.5rem;
    }

    .hero h1 {
        font-size: var(--fs-2xl);
    }

    .page-header {
        padding: calc(var(--header-height) + 1.5rem) 0 1.5rem;
    }
}

/* Fix iOS input zoom */
@media screen and (max-width: 767px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    input[type="password"],
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* ============================================
   SITEMAP STYLES
   ============================================ */
.sitemap-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sitemap-links li {
    margin-bottom: 0.5rem;
}

.sitemap-links a {
    color: var(--primary);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.sitemap-links a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

.sitemap-links ul {
    list-style: none;
    padding-left: 1.25rem;
    margin-top: 0.5rem;
    margin-bottom: 0;
    border-left: 2px solid var(--gray-300);
}

.sitemap-links ul li {
    margin-bottom: 0.35rem;
    color: var(--text-secondary);
    font-size: var(--fs-sm);
}

.sitemap-links ul li::before {
    content: none;
}

/* ============================================
   COOKIE CONSENT BANNER
   ============================================ */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    color: var(--white);
    padding: 1.25rem 0;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-consent.hide {
    transform: translateY(100%);
}

.cookie-consent-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-consent-content {
    flex: 1;
    min-width: 280px;
}

.cookie-consent-content p {
    margin: 0;
    font-size: var(--fs-sm);
    color: var(--gray-300);
    line-height: var(--lh-relaxed);
}

.cookie-consent-content a {
    color: var(--secondary-light);
    text-decoration: underline;
}

.cookie-consent-content a:hover {
    color: var(--secondary);
}

.cookie-consent-buttons {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-consent-buttons .btn {
    padding: 0.5rem 1.25rem;
    font-size: var(--fs-sm);
    font-weight: 500;
    border-radius: var(--radius-md);
    white-space: nowrap;
}

.btn-accept-cookies {
    background: var(--secondary);
    color: var(--white);
    border: none;
}

.btn-accept-cookies:hover {
    background: var(--secondary-dark);
    color: var(--white);
}

.btn-reject-cookies {
    background: transparent;
    color: var(--gray-300);
    border: 1px solid var(--gray-600);
}

.btn-reject-cookies:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-color: var(--gray-400);
}

.btn-cookie-settings {
    background: transparent;
    color: var(--gray-400);
    border: none;
    padding: 0.5rem 0.75rem;
    font-size: var(--fs-xs);
    text-decoration: underline;
}

.btn-cookie-settings:hover {
    color: var(--white);
}

@media (max-width: 768px) {
    .cookie-consent {
        padding: 1rem 0;
    }

    .cookie-consent-inner {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .cookie-consent-content {
        min-width: 100%;
    }

    .cookie-consent-buttons {
        width: 100%;
        justify-content: center;
    }

    .cookie-consent-buttons .btn {
        flex: 1;
        max-width: 150px;
    }
}

/* ============================================
   GALLERY STYLES
   ============================================ */

/* Gallery Item Cards */
.gallery-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    transition: transform 0.3s ease, filter 0.3s ease;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Gallery Link with Overlay */
.gallery-link {
    display: block;
    position: relative;
    overflow: hidden;
}

.gallery-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 58, 95, 0);
    transition: background 0.3s ease;
    z-index: 1;
}

.gallery-link:hover::before {
    background: rgba(30, 58, 95, 0.4);
}

.gallery-link::after {
    content: '\f00e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    font-size: 2rem;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.gallery-link:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Gallery Modal */
#galleryModal .modal-body {
    background: #000;
}

#galleryModal .modal-body img {
    max-height: 70vh;
    object-fit: contain;
}

#galleryModal .modal-footer {
    background: var(--gray-100);
}

/* Gallery Filter Buttons */
.gallery-filters .btn-outline-primary {
    border-width: 2px;
    font-weight: 500;
}

.gallery-filters .btn-outline-primary.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Gallery Placeholder (when no image) */
.gallery-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 200px;
    background: var(--gray-100);
    color: var(--gray-500);
    transition: background 0.3s ease;
}

.gallery-item:hover .gallery-placeholder {
    background: var(--gray-200);
}

.gallery-placeholder i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

/* Gallery responsive adjustments */
@media (max-width: 767.98px) {
    .gallery-link::after {
        font-size: 1.5rem;
    }

    #galleryModal .modal-body img {
        max-height: 50vh;
    }
}

/* ============================================
   PRODUCT CARD STYLES
   ============================================ */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    padding: 1.25rem;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.product-card .card-title {
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.product-card .card-text {
    font-size: 0.9rem;
    color: var(--gray-700);
}

/* Product card with icon (products.html style) */
.product-card .card-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.product-card .card-icon i {
    font-size: 1.5rem;
    color: white;
}

/* Product card with image (homepage style) */
.product-card.has-image {
    padding: 0;
}

.product-card .card-img-top {
    height: 200px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 0;
    margin: 0;
    display: block;
}

.product-card:hover .card-img-top {
    transform: scale(1.05);
}

.product-card .card-body {
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
}

.product-card .card-body .card-text {
    flex-grow: 1;
}

.product-card .card-body .btn {
    margin-top: auto;
    align-self: center;
}

/* Responsive adjustments for product cards */
@media (max-width: 767.98px) {
    .product-card {
        padding: 1rem;
    }

    .product-card .card-img-top {
        height: 150px;
    }

    .product-card .card-body {
        padding: 1rem;
    }

    .product-card .card-text {
        font-size: 0.85rem;
    }
}

/* ============================================
   CATEGORY CARD STYLES (Products Page)
   ============================================ */
.category-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.category-card .card-img-top {
    height: 200px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-card:hover .card-img-top {
    transform: scale(1.05);
}

.category-card h3 {
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.category-card h3 i {
    font-size: 1.5rem;
}

/* Responsive adjustments for category cards */
@media (max-width: 767.98px) {
    .category-card .card-img-top {
        height: 150px;
    }

    .category-card .card-body {
        padding: 1rem;
    }
}

/* ============================================
   MOBILE OVERFLOW FIX
   ============================================ */
@media (max-width: 991.98px) {
    /* Prevent horizontal scroll on mobile */
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw;
    }

    /* Ensure sections don't overflow */
    section,
    .container,
    .container-fluid {
        max-width: 100%;
        overflow-x: hidden;
    }

    /* Fix Bootstrap row negative margins causing overflow */
    .row {
        margin-left: 0;
        margin-right: 0;
    }

    .row > * {
        padding-left: 12px;
        padding-right: 12px;
    }

    /* Ensure images don't overflow */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Ensure tables are scrollable */
    table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
    }

    /* Fix any absolute positioned elements */
    .hero-bg,
    .page-header::before {
        max-width: 100vw;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .site-header,
    .site-footer,
    .back-to-top,
    .btn {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
    }

    .section {
        padding: 1rem 0;
    }
}
