/* =============================================
   AXON CLAIMS — PREMIUM UI STYLESHEET
   ============================================= */

/* === 1. CSS VARIABLES === */
:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #eff6ff;
    --dark: #0f172a;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.07), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.12);
    --shadow-blue: 0 10px 30px rgba(37, 99, 235, 0.25);
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    --radius-2xl: 2.5rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === UTILITY: bg-blue-50 === */
.bg-blue-50 {
    background-color: #eff6ff !important;
}

/* === 2. BASE === */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-main);
    background: var(--bg-light);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

/* === 3. CUSTOM SCROLLBAR === */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* === 4. HEADER & NAV === */
#main-header {
    z-index: 1050;
    transition: var(--transition);
    background: transparent;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

#main-header.scrolled {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 8px 30px rgba(0, 0, 0, 0.06);
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

.logo-img {
    height: 80px;
    width: auto;
    display: block;
    transition: var(--transition);
}

#main-header.scrolled .logo-img {
    height: 60px;
}

@media (max-width: 991px) {
    .logo-img {
        height: 60px;
    }
    #main-header {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
        background: #fff;
        box-shadow: var(--shadow-sm);
    }
}

@media (max-width: 576px) {
    .logo-img {
        height: 50px;
    }
}

/* Logo */
.logo-box {
    width: 42px;
    height: 42px;
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
}

a:hover .logo-box {
    transform: rotate(8deg) scale(1.05);
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.03em;
}

.logo-subtext {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary);
}

/* Nav Links */
.nav-link-custom {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
    padding: 0.4rem 0;
    position: relative;
    transition: color 0.25s ease;
}

.nav-link-custom::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.nav-link-custom:hover {
    color: var(--primary);
}

.nav-link-custom:hover::after,
.nav-link-custom.active::after {
    transform: scaleX(1);
}

.nav-link-custom.active {
    color: var(--primary);
}

/* === Services Dropdown === */
.nav-dropdown-wrapper {
    position: relative;
}

.nav-dropdown-wrapper:hover .nav-dropdown-menu,
.nav-dropdown-wrapper:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: all;
}

.nav-dropdown-wrapper:hover .nav-chevron {
    transform: rotate(180deg);
}

.nav-chevron {
    transition: transform 0.25s ease;
    display: inline-block;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    padding-top: 16px; /* Transparent gap bridge */
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    min-width: 230px;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}

.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: 10px; /* Adjusted for the padding-top */
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: #fff;
    border-left: 1px solid var(--border);
    border-top: 1px solid var(--border);
    border-radius: 2px 0 0 0;
}

.nav-dropdown-inner {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0,0,0,0.12), 0 4px 16px rgba(37,99,235,0.07);
    overflow: hidden;
    padding: 0.5rem 0;
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease;
}

.nav-dropdown-item:hover,
.nav-dropdown-item.active {
    background: var(--primary-light);
    color: var(--primary);
}

.nav-drop-icon {
    width: 28px;
    height: 28px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 13px;
    transition: background 0.18s ease, color 0.18s ease;
}

.nav-dropdown-item:hover .nav-drop-icon,
.nav-dropdown-item.active .nav-drop-icon {
    background: var(--primary);
    color: #fff;
}

/* Mobile Nav */
#mobile-nav {
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1049;
    border-top: 1px solid var(--border);
    animation: slideDown 0.25s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-nav-link {
    display: block;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-main);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.mobile-nav-link:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.mobile-nav-link.active {
    background: var(--primary-light);
    color: var(--primary);
}

/* === 5. HERO === */
.hero-section {
    position: relative;
    padding-top: 9rem;
    padding-bottom: 6rem;
    background: var(--bg-light);
    overflow: hidden;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 70% 10%, rgba(37, 99, 235, 0.09) 0%, transparent 55%),
        radial-gradient(ellipse at 5% 90%, rgba(37, 99, 235, 0.06) 0%, transparent 45%);
    z-index: 0;
    pointer-events: none;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.035em;
    color: var(--dark);
}

/* ===== IMAGE NORMALIZATION UTILITY ===== */
.img-box {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    position: relative;
    background: #f1f5f9; /* Subtle placeholder while loading */
}

.img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.img-top img { object-position: top; }
.img-bottom img { object-position: bottom; }

.hero-image-wrap {
    height: 450px;
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.hero-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top; /* Crucial for brand visuals */
    display: block;
}

/* Hero floating card */
.hero-float-card {
    position: absolute;
    bottom: -1.5rem;
    left: -1.5rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 240px;
}

/* === 6. SECTIONS === */
.section-padding {
    padding: 6rem 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 4rem 0;
    }
}

/* === 7. BUTTONS === */
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    font-weight: 700;
    transition: var(--transition);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-blue);
}

.shadow-blue {
    box-shadow: var(--shadow-blue);
}

/* === 8. FEATURE CARDS === */
.feature-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    transition: var(--transition);
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(37, 99, 235, 0.15);
}

/* Service card image zoom */
.service-card-img-wrap {
    overflow: hidden;
    height: 240px;
}

.service-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover .service-card-img-wrap img {
    transform: scale(1.07);
}

/* Icon box */
.icon-box {
    width: 64px;
    height: 64px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
    transition: var(--transition);
}

.feature-card:hover .icon-box {
    background: var(--primary);
    color: #fff;
}

/* === 9. STATS === */
.stat-number {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    letter-spacing: -0.03em;
}

/* === 10. TESTIMONIALS === */
.testimonial-stars {
    color: #f59e0b;
}

/* === 11. ACCORDION (FAQ) === */
.accordion-button:not(.collapsed) {
    background: var(--primary-light);
    color: var(--primary);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
}

.accordion-item {
    border: none !important;
}

/* === 12. MODAL === */
.modal-bg-blue {
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
}

.bg-white-o {
    background: rgba(255, 255, 255, 0.25) !important;
}

/* === 13. FORM CONTROLS === */
.form-control,
.form-select {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.85rem 1.1rem;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #f8fafc;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    background: #fff;
}

/* === 14. FOOTER === */
footer {
    background: var(--dark);
}

footer a {
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: #fff !important;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.07) !important;
}

/* === 15. ANIMATIONS === */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* === 16. UTILITY CLASSES === */

/* Typography */
.tracking-tight {
    letter-spacing: -0.025em;
}

.tracking-wide {
    letter-spacing: 0.04em;
}

.tracking-wider {
    letter-spacing: 0.08em;
}

.tracking-widest {
    letter-spacing: 0.14em;
}

.leading-relaxed {
    line-height: 1.75;
}

.fw-black {
    font-weight: 900;
}

.text-slate-400 {
    color: #94a3b8 !important;
}

.text-slate-200 {
    color: #e2e8f0 !important;
}

.text-blue-100 {
    color: #dbeafe !important;
}

/* Color overrides */
.text-primary {
    color: var(--primary) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.bg-dark {
    background-color: var(--dark) !important;
}

.border-primary {
    border-color: var(--primary) !important;
}

.bg-blue-50 {
    background-color: #eff6ff !important;
}

.bg-blue-100 {
    background-color: #dbeafe !important;
}

.hover-border-primary:hover {
    border-color: var(--primary) !important;
}

/* Width / height */
.max-w-700 {
    max-width: 700px;
}

.max-w-500 {
    max-width: 500px;
}

.min-vh-50 {
    min-height: 50vh;
}

.w-fit {
    width: fit-content;
}

/* Shadows */
.shadow-xl {
    box-shadow: var(--shadow-xl) !important;
}

.shadow-2xl {
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.14) !important;
}

.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

/* Effects */
.blur-3xl {
    filter: blur(60px);
}

.blur-2xl {
    filter: blur(40px);
}

.opacity-5 {
    opacity: 0.05 !important;
}

.opacity-10 {
    opacity: 0.10 !important;
}

.opacity-20 {
    opacity: 0.20 !important;
}

.opacity-50 {
    opacity: 0.50 !important;
}

.opacity-75 {
    opacity: 0.75 !important;
}

.rotate-3 {
    transform: rotate(3deg);
}

/* Object fit */
.object-fit-cover {
    object-fit: cover;
}

.object-fit-contain {
    object-fit: contain;
}

/* Card hover */
.card-hover {
    transition: var(--transition);
}

.card-hover:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg) !important;
}

/* Page header sections */
.page-hero {
    padding-top: 10rem;
    padding-bottom: 5rem;
    background: var(--dark);
    background: #f8fafc;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    background: #fff;
}

/* === 14. FOOTER === */
footer {
    background: var(--dark);
}

footer a {
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: #fff !important;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.07) !important;
}

/* === 15. ANIMATIONS === */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* === 16. UTILITY CLASSES === */

/* Typography */
.tracking-tight {
    letter-spacing: -0.025em;
}

.tracking-wide {
    letter-spacing: 0.04em;
}

.tracking-wider {
    letter-spacing: 0.08em;
}

.tracking-widest {
    letter-spacing: 0.14em;
}

.leading-relaxed {
    line-height: 1.75;
}

.fw-black {
    font-weight: 900;
}

.text-slate-400 {
    color: #94a3b8 !important;
}

.text-slate-200 {
    color: #e2e8f0 !important;
}

.text-blue-100 {
    color: #dbeafe !important;
}

/* Color overrides */
.text-primary {
    color: var(--primary) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.bg-dark {
    background-color: var(--dark) !important;
}

.border-primary {
    border-color: var(--primary) !important;
}

.bg-blue-50 {
    background-color: #eff6ff !important;
}

.bg-blue-100 {
    background-color: #dbeafe !important;
}

.hover-border-primary:hover {
    border-color: var(--primary) !important;
}

/* Width / height */
.max-w-700 {
    max-width: 700px;
}

.max-w-500 {
    max-width: 500px;
}

.min-vh-50 {
    min-height: 50vh;
}

.w-fit {
    width: fit-content;
}

/* Shadows */
.shadow-xl {
    box-shadow: var(--shadow-xl) !important;
}

.shadow-2xl {
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.14) !important;
}

.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

/* Effects */
.blur-3xl {
    filter: blur(60px);
}

.blur-2xl {
    filter: blur(40px);
}

.opacity-5 {
    opacity: 0.05 !important;
}

.opacity-10 {
    opacity: 0.10 !important;
}

.opacity-20 {
    opacity: 0.20 !important;
}

.opacity-50 {
    opacity: 0.50 !important;
}

.opacity-75 {
    opacity: 0.75 !important;
}

.rotate-3 {
    transform: rotate(3deg);
}

/* Object fit */
.object-fit-cover {
    object-fit: cover;
}

.object-fit-contain {
    object-fit: contain;
}

/* Card hover */
.card-hover {
    transition: var(--transition);
}

.card-hover:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg) !important;
}

/* Page header sections */
.page-hero {
    padding-top: 10rem;
    padding-bottom: 5rem;
    background: var(--dark);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.page-hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

/* Badges */
.badge-pill-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.1rem;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 1px solid rgba(37, 99, 235, 0.15);
}

/* Accordion focus-visible outline fix */
.accordion-button:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* === 17. RESPONSIVE === */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .section-padding {
        padding: 3.5rem 0;
    }

    .stat-number {
        font-size: 2.5rem;
    }


}

@media (max-width: 575px) {
    .hero-float-card {
        display: none !important;
    }
}

/* === 18. PAGE-SPECIFIC HERO ACCENTS === */
.bg-dark-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

/* CTA Section */
.cta-card {
    background: linear-gradient(135deg, var(--dark) 0%, #1e293b 100%);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    position: relative;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 350px;
    height: 350px;
    background: var(--primary);
    opacity: 0.08;
    border-radius: 50%;
    filter: blur(50px);
}

.cta-card::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 250px;
    height: 250px;
    background: #38bdf8;
    opacity: 0.05;
    border-radius: 50%;
    filter: blur(40px);
}

/* Logo text gradient */
.logo-gradient {
    background: linear-gradient(135deg, var(--primary), #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
/* === 15. FLOATING QUICK ACTIONS === */
.floating-actions-bar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.floating-action-item {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    background: #232323;
    color: #10b981;
    text-decoration: none !important;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1), background 0.4s ease, color 0.3s ease;
    height: 60px;
    width: 60px;
    overflow: hidden;
    position: relative;
    border-radius: 20px 0 0 20px;
    margin-bottom: 5px;
    box-shadow: -2px 2px 10px rgba(0,0,0,0.1);
}
.floating-action-item:hover {
    width: 250px;
    color: #fff;
    box-shadow: -5px 10px 30px rgba(0,0,0,0.15);
}
.contact-item:hover { background: var(--primary); }
.call-item:hover { background: #10b981; }
.email-item:hover { background: #4f46e5; }
.action-icon {
    width: 60px;
    min-width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    z-index: 2;
    transition: color 0.3s ease;
}
.floating-action-item:hover .action-icon {
    color: #fff;
}
.action-label {
    white-space: nowrap;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.4s ease;
    padding-left: 20px;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.5px;
}
.floating-action-item:hover .action-label {
    opacity: 1;
    transform: translateX(0);
}
@media (max-width: 768px) {
    .floating-actions-bar {
        top: auto;
        bottom: 20px;
        right: 15px;
        transform: none;
        gap: 10px;
    }
    .floating-action-item {
        border-radius: 50%;
        width: 50px;
        height: 50px;
    }
    .floating-action-item:hover {
        width: 50px;
    }
    .action-icon {
        width: 50px;
        min-width: 50px;
        height: 50px;
        font-size: 20px;
    }
    .action-label {
        display: none;
    }
}

/* === 16. PREMIUM UI ENHANCEMENTS === */
.trust-bar-premium {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
    position: relative;
    z-index: 10;
}
.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    transition: var(--transition);
}
.trust-badge i {
    font-size: 1.25rem;
    color: var(--primary);
    opacity: 0.8;
}
.trust-badge:hover {
    color: var(--primary);
    transform: translateY(-2px);
}
.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
}
.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.x-small {
    font-size: 0.75rem;
}

/* === MOBILIZATION OPTIMIZATIONS === */
@media (max-width: 767px) {
    .hero-section, .page-hero {
        padding-top: 6.5rem;
        padding-bottom: 2.5rem;
    }
    .section-padding {
        padding: 3rem 0;
    }
    /* Gently step down p-5 safely so cards aren't crammed but fit phone screens */
    .p-5 {
        padding: 2.5rem !important;
    }
    /* Hide floating icon on small mobile to free up screen real estate */
    .floating-actions-bar {
        display: none !important;
    }
}

/* Ensure mobile menu icon is always visible when nav background turns white on scroll */
#main-header.scrolled #menu-icon {
    color: var(--dark) !important;
}

/* ===== MOBILE & TABLET FIXES ONLY (Production-Grade) ===== */

@media (max-width: 1024px) {
  /* Tablet adjustments */
}

@media (max-width: 768px) {
  .row {
    display: flex;
    flex-wrap: wrap;
  }

  [class*="col-"] {
    width: 100% !important;
    max-width: 100% !important;
  }

  h1 { font-size: 24px !important; }
  h2 { font-size: 20px !important; }
  p  { font-size: 14px !important; }

  .btn:not(.btn-link) {
    width: 100% !important;
    margin-bottom: 12px !important;
  }

  .section-padding, .section {
    padding: 40px 15px !important;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 22px !important; }
  h2 { font-size: 18px !important; }
}


/* ===== MOBILE IMAGE & RESPONSIVENESS NORMALIZATION ===== */
@media (max-width: 768px) {
    /* 1. Global Reset for Images on Mobile */
    img, .img-fluid {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        object-fit: cover; /* Prevents distortion by defaulting to safe crop */
        display: block;
    }

    /* 2. Container Safety (Prevent Image Leaks) */
    .img-box, 
    .hero-image-wrap, 
    .service-card-img-wrap, 
    .blog-card, 
    .feature-card, 
    .specialty-card,
    .cta-card {
        overflow: hidden !important;
        border-radius: var(--radius-lg); /* Ensure rounded corners are enforced */
    }

    /* 3. Utility Normalization - No hardcoded heights */
    .img-box {
        height: auto !important;
        aspect-ratio: 16 / 9; /* Fluid aspect ratio instead of fixed height */
        width: 100% !important;
    }

    .img-box img {
        height: 100% !important;
        object-fit: cover !important;
    }

    .hero-image-wrap {
        height: auto !important;
        aspect-ratio: 4 / 3; /* Better proportion for hero images on narrow screens */
        min-height: 260px;
    }

    /* 4. Service / Blog / Specialty Cards Consistency */
    .service-card-img-wrap {
        height: 180px !important; /* Normalize card image heights to prevent jagged UI */
    }

    .blog-card img {
        height: 200px !important;
        width: 100% !important;
        object-fit: cover !important;
    }

    /* Specialty icon boxes (if applicable) */
    .specialty-icon-box {
        width: 56px !important;
        height: 56px !important;
    }

    /* 5. Fix for Stretching in Flex/Grid containers */
    .row > [class*="col-"] {
        width: 100%;
    }

    /* Remove existing fixed heights if they were set inline */
    [style*="height: 450px"],
    [style*="height: 240px"] {
        height: auto !important;
    }
}

@media (max-width: 480px) {
    .hero-image-wrap {
        aspect-ratio: 1 / 1; /* Square-ish for very small screens */
        min-height: 220px;
    }
    .img-box {
        aspect-ratio: 3 / 2; /* Slightly taller for smaller screens */
    }
}
