/*
Theme Name: BioMerge Solutions
Theme URI: https://biomerge-solutions.com
Author: JPSolutions
Author URI: https://jpsolutions.dev
Description: Enterprise WordPress theme for BioMerge Field Solutions, Inc. — Advanced Wound Care & Skin Substitute Distribution Support. Elementor-compatible, ThemeForest-ready, fully accessible and performance-optimized.
Version: 1.0.7
Requires at least: 6.5
Tested up to: 6.7
Requires PHP: 8.1
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: biomerge-solutions
Tags: healthcare, one-column, two-columns, grid-layout, custom-colors, custom-logo, custom-menu, featured-images, theme-options, translation-ready, elementor, accessibility-ready
*/

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

:root {
    /* ── Base surfaces (black → white per client directive) ── */
    --bm-white:         #FFFFFF;
    --bm-off-white:     #F5F7F8;
    --bm-surface:       #EDF4F3;

    /* ── Brand teal spectrum ── */
    --bm-primary:       #1F6F6D;
    --bm-primary-dark:  #15504E;
    --bm-primary-mid:   #278F88;
    --bm-accent:        #2FA4A0;
    --bm-accent-glow:   #47BDB9;
    --bm-teal-light:    #D2EFEC;

    /* ── Typography ── */
    --bm-text-dark:     #0F1A1A;
    --bm-text-body:     #1A2E2C;
    --bm-text-muted:    #5C7A76;

    /* ── Structural ── */
    --bm-border:        #B8D5D2;
    --bm-border-light:  #E2F0EE;

    /* ── Gradients ── */
    --bm-gradient:         linear-gradient(135deg, #1F6F6D 0%, #15504E 100%);
    --bm-gradient-accent:  linear-gradient(135deg, #2FA4A0 0%, #1F6F6D 100%);
    --bm-gradient-hero:    linear-gradient(160deg, #0F1A1A 0%, #19403D 50%, #1F6F6D 100%);

    /* ── Dark surfaces ── */
    --bm-dark-bg:       #0A1514;
    --bm-dark-surface:  #11201E;

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

    /* ── Border radius ── */
    --bm-radius-sm:  4px;
    --bm-radius-md:  8px;
    --bm-radius-lg:  12px;
    --bm-radius-xl:  16px;
    --bm-radius-full: 50%;

    /* ── Shadows ── */
    --bm-shadow-sm:   0 2px 8px rgba(31, 111, 109, 0.08);
    --bm-shadow-md:   0 4px 16px rgba(31, 111, 109, 0.10);
    --bm-shadow-lg:   0 8px 32px rgba(31, 111, 109, 0.12);
    --bm-shadow-xl:   0 12px 40px rgba(31, 111, 109, 0.15);
    --bm-shadow-card: 0 1px 3px rgba(15, 26, 26, 0.06), 0 4px 12px rgba(15, 26, 26, 0.04);

    /* ── Transitions ── */
    --bm-transition: 200ms ease;
    --bm-transition-slow: 400ms ease;
    --bm-transition-smooth: 600ms ease;

    /* ── Typography scale ── */
    --bm-font-body:   'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --bm-font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --bm-font-size-base: clamp(0.875rem, 1.5vw, 1.125rem);
    --bm-font-size-sm:   clamp(0.75rem, 1.2vw, 0.875rem);
    --bm-font-size-xs:   clamp(0.6875rem, 1vw, 0.75rem);

    /* ── Container ── */
    --bm-container-max: 1280px;
    --bm-container-padding: clamp(1rem, 4vw, 2rem);
}

/* ==========================================================================
   2. RESET
   ========================================================================== */

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

html {
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--bm-font-body);
    font-size: var(--bm-font-size-base);
    line-height: 1.7;
    color: var(--bm-text-body);
    background-color: var(--bm-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--bm-primary);
    text-decoration: none;
    transition: color var(--bm-transition);
}

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

ul, ol {
    list-style: none;
}

button, input, textarea, select {
    font: inherit;
    color: inherit;
}

::selection {
    background: var(--bm-primary);
    color: var(--bm-white);
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--bm-font-heading);
    color: var(--bm-text-dark);
    line-height: 1.25;
    font-weight: 600;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.375rem, 3vw, 1.75rem); }
h4 { font-size: clamp(1.125rem, 2.5vw, 1.375rem); }
h5 { font-size: clamp(1rem, 2.25vw, 1.25rem); }
h6 { font-size: clamp(1rem, 2vw, 1.25rem); }

/* ==========================================================================
   3. UTILITY CLASSES
   ========================================================================== */

.bm-container {
    max-width: var(--bm-container-max);
    margin: 0 auto;
    padding-left: var(--bm-container-padding);
    padding-right: var(--bm-container-padding);
    width: 100%;
}

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

.bm-section--light {
    background-color: var(--bm-off-white);
}

.bm-section--teal {
    background: var(--bm-gradient);
    color: var(--bm-white);
}

.bm-section--cta {
    background: var(--bm-gradient);
    color: var(--bm-white);
    text-align: center;
}

.bm-section--cta h2,
.bm-section--cta h3 {
    color: var(--bm-white);
}

.bm-section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--bm-space-3xl);
}

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

.bm-section-header p {
    color: var(--bm-text-muted);
    font-size: var(--bm-font-size-base);
}

/* Horizontal rule decoration */
.bm-hr {
    width: 60px;
    height: 3px;
    background: var(--bm-gradient-accent);
    border: none;
    border-radius: 2px;
    margin: var(--bm-space-lg) auto;
}

/* ==========================================================================
   4. BUTTONS
   ========================================================================== */

.bm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--bm-space-sm);
    padding: 14px 28px;
    border-radius: var(--bm-radius-sm);
    font-family: var(--bm-font-body);
    font-size: var(--bm-font-size-base);
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--bm-transition);
    white-space: nowrap;
}

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

.bm-btn-primary:hover {
    background-color: var(--bm-primary-dark);
    border-color: var(--bm-primary-dark);
    color: var(--bm-white);
    box-shadow: var(--bm-shadow-md);
    transform: translateY(-1px);
}

.bm-btn-outline {
    background-color: transparent;
    color: var(--bm-primary);
    border-color: var(--bm-primary);
}

.bm-btn-outline:hover {
    background-color: var(--bm-primary);
    color: var(--bm-white);
    box-shadow: var(--bm-shadow-md);
    transform: translateY(-1px);
}

.bm-btn-ghost {
    background-color: transparent;
    color: var(--bm-primary);
    border-color: transparent;
    padding-left: 0;
    padding-right: 0;
}

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

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

.bm-btn-white:hover {
    background-color: var(--bm-off-white);
    color: var(--bm-primary-dark);
    box-shadow: var(--bm-shadow-lg);
    transform: translateY(-2px);
}

.bm-btn-lg {
    padding: 16px 32px;
    font-size: clamp(1rem, 2vw, 1.125rem);
}

/* ==========================================================================
   5. HEADER
   ========================================================================== */

.bm-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 72px;
    background: var(--bm-white);
    box-shadow: 0 1px 3px rgba(15, 26, 26, 0.06);
    transition: box-shadow var(--bm-transition);
}

.bm-header.is-sticky {
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.bm-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    max-width: var(--bm-container-max);
    margin: 0 auto;
    padding: 0 var(--bm-container-padding);
}

.bm-header__logo {
    flex-shrink: 0;
}

.bm-header__logo img {
    height: 40px;
    width: auto;
}

.bm-header__logo .bm-logo-text {
    font-family: var(--bm-font-heading);
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 700;
    color: var(--bm-text-dark);
}

.bm-header.is-sticky .bm-header__logo .bm-logo-text {
    color: var(--bm-text-dark);
}

/* Navigation */
.bm-nav {
    display: flex;
    align-items: center;
}

.bm-nav__list {
    display: flex;
    align-items: center;
    gap: var(--bm-space-xl);
}

.bm-nav__list a {
    color: var(--bm-text-dark);
    font-weight: 500;
    font-size: var(--bm-font-size-base);
    padding: var(--bm-space-sm) 0;
    position: relative;
}

.bm-nav__list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--bm-primary);
    transition: width var(--bm-transition);
}

.bm-nav__list a:hover::after {
    width: 100%;
}

.bm-nav__list .current-menu-item > a {
    color: var(--bm-primary);
}

/* Utility bar */
.bm-header__utility {
    display: flex;
    align-items: center;
    gap: var(--bm-space-lg);
}

.bm-header__phone {
    font-weight: 600;
    color: var(--bm-text-dark);
    font-size: var(--bm-font-size-base);
    white-space: nowrap;
}

.bm-header__phone:hover {
    color: var(--bm-primary);
}

/* Hamburger */
.bm-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.bm-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--bm-text-dark);
    border-radius: 2px;
    transition: all var(--bm-transition);
}

.bm-hamburger.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.bm-hamburger.is-active span:nth-child(2) {
    opacity: 0;
}

.bm-hamburger.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav drawer */
.bm-mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    height: 100vh;
    background: var(--bm-white);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
    z-index: 1100;
    padding: var(--bm-space-4xl) var(--bm-space-xl);
    transform: translateX(100%);
    transition: transform var(--bm-transition-smooth);
    overflow-y: auto;
}

.bm-mobile-nav.is-open {
    transform: translateX(0);
}

.bm-mobile-nav .bm-nav__list {
    flex-direction: column;
    gap: var(--bm-space-sm);
}

.bm-mobile-nav .bm-nav__list a {
    display: block;
    padding: var(--bm-space-sm) 0;
    font-size: 1.125rem;
}

.bm-mobile-nav .bm-header__utility {
    flex-direction: column;
    align-items: flex-start;
    margin-top: var(--bm-space-xl);
    padding-top: var(--bm-space-xl);
    border-top: 1px solid var(--bm-border-light);
}

.bm-mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(12, 23, 20, 0.4);
    z-index: 1050;
    opacity: 0;
    transition: opacity var(--bm-transition-smooth);
}

.bm-mobile-overlay.is-visible {
    display: block;
    opacity: 1;
}

/* Submenu styles */
.bm-nav__list .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--bm-white);
    box-shadow: var(--bm-shadow-lg);
    border-radius: var(--bm-radius-md);
    padding: var(--bm-space-sm) 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all var(--bm-transition);
}

.bm-nav__list .menu-item-has-children:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.bm-nav__list .sub-menu a {
    display: block;
    padding: var(--bm-space-sm) var(--bm-space-lg);
    font-size: var(--bm-font-size-sm);
}

.bm-nav__list .sub-menu a::after {
    display: none;
}

/* ==========================================================================
   6. HERO SECTION
   ========================================================================== */

.bm-hero {
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--bm-gradient);
    position: relative;
    padding-top: 72px;
}

.bm-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(15, 26, 26, 0.85) 0%, rgba(31, 111, 109, 0.75) 100%);
    z-index: 0;
}

.bm-hero__content {
    position: relative;
    z-index: 2;
    max-width: 620px;
    margin-left: var(--bm-container-padding);
    padding: clamp(2rem, 6vw, 4rem) 0;
    display: flex;
    flex-direction: column;
    gap: var(--bm-space-lg);
}

.bm-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--bm-space-sm);
    /*background: rgba(255, 255, 255, 0.15);*/
    color: var(--bm-white);
    font-size: var(--bm-font-size-sm);
    font-weight: 600;
    padding: var(--bm-space-sm) var(--bm-space-md);
    /*border-radius: var(--bm-radius-full);*/
    width: fit-content;
}

.bm-hero__badge svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.bm-hero__title {
    color: var(--bm-white);
}

.bm-hero__text {
    color: rgba(255, 255, 255, 0.85);
    font-size: clamp(1rem, 1.8vw, 1.125rem);
    max-width: 560px;
}

.bm-hero__quote {
    font-family: var(--bm-font-heading);
    font-style: italic;
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    color: rgba(255, 255, 255, 0.9);
    border-left: 3px solid var(--bm-accent-glow);
    padding: var(--bm-space-sm) 0 var(--bm-space-sm) var(--bm-space-lg);
    margin: var(--bm-space-sm) 0;
    background: none;
    max-width: 560px;
}

.bm-hero__buttons {
    display: flex;
    gap: var(--bm-space-md);
    flex-wrap: wrap;
}

.bm-hero__buttons .bm-btn-outline {
    color: var(--bm-white);
    border-color: rgba(255, 255, 255, 0.5);
}

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

/* ==========================================================================
   7. INTRO SECTION
   ========================================================================== */

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

.bm-intro__inner {
    max-width: 780px;
    margin: 0 auto;
}

.bm-intro__inner h2 {
    margin-bottom: var(--bm-space-md);
}

.bm-intro__inner p {
    color: var(--bm-text-body);
    margin-bottom: var(--bm-space-md);
    font-size: clamp(1rem, 1.5vw, 1.125rem);
}

.bm-intro__inner p:last-of-type {
    margin-bottom: 0;
}

/* ==========================================================================
   8. SERVICES GRID
   ========================================================================== */

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

.bm-service-card {
    background: var(--bm-white);
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius-lg);
    padding: var(--bm-space-2xl);
    transition: transform var(--bm-transition), box-shadow var(--bm-transition);
}

.bm-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(13, 140, 128, 0.12);
}

.bm-service-card__icon {
    width: 56px;
    height: 56px;
    background: var(--bm-teal-light);
    border-radius: var(--bm-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--bm-space-lg);
}

.bm-service-card__icon svg {
    width: 28px;
    height: 28px;
    color: var(--bm-primary);
}

.bm-service-card h3 {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    margin-bottom: var(--bm-space-sm);
}

.bm-service-card p {
    color: var(--bm-text-muted);
    font-size: var(--bm-font-size-sm);
    margin-bottom: var(--bm-space-lg);
    line-height: 1.6;
}

.bm-service-card__link {
    font-weight: 600;
    color: var(--bm-primary);
    font-size: var(--bm-font-size-sm);
    display: inline-flex;
    align-items: center;
    gap: var(--bm-space-xs);
    transition: gap var(--bm-transition);
}

.bm-service-card__link:hover {
    gap: var(--bm-space-sm);
}

.bm-service-card__link svg {
    width: 16px;
    height: 16px;
    transition: transform var(--bm-transition);
}

.bm-service-card__link:hover svg {
    transform: translateX(3px);
}

/* ==========================================================================
   8b. WOUND STAGING
   ========================================================================== */

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

.bm-wound-card {
    background: var(--bm-white);
    border-radius: var(--bm-radius-xl);
    overflow: hidden;
    border: 1px solid var(--bm-border-light);
    transition: transform var(--bm-transition), box-shadow var(--bm-transition);
}

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

.bm-wound-card__image {
    aspect-ratio: 16 / 12;
    overflow: hidden;
    background: var(--bm-teal-light);
}

.bm-wound-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: var(--bm-space-lg);
}

.bm-wound-card h3 {
    padding: var(--bm-space-lg) var(--bm-space-lg) 0;
    font-size: clamp(1.125rem, 2vw, 1.25rem);
}

.bm-wound-card p {
    padding: var(--bm-space-sm) var(--bm-space-lg) var(--bm-space-lg);
    color: var(--bm-text-muted);
    font-size: var(--bm-font-size-sm);
    line-height: 1.6;
}

/* ==========================================================================
   9. STATS BAR
   ========================================================================== */

.bm-stats-bar .bm-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--bm-space-xl);
    position: relative;
}

.bm-stats-bar .bm-stat {
    text-align: center;
    flex: 1;
    min-width: 150px;
}

.bm-stats-bar .bm-stat__value {
    font-family: var(--bm-font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--bm-white);
    display: block;
    line-height: 1.1;
}

.bm-stats-bar .bm-stat__label {
    font-size: var(--bm-font-size-sm);
    color: rgba(255, 255, 255, 0.8);
    margin-top: var(--bm-space-xs);
    font-weight: 500;
}

/* Brand geometry — small hexagon scatter */
.bm-stats-bar__decoration {
    position: absolute;
    inset: 0;
    opacity: 0.06;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--bm-space-4xl);
}

.bm-stats-bar__decoration svg {
    width: 40px;
    height: 40px;
    color: var(--bm-white);
}

/* ==========================================================================
   10. WHY BIOMERGE / ABOUT STRIP
   ========================================================================== */

.bm-why {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--bm-space-4xl);
    align-items: center;
}

.bm-why__image {
    background: var(--bm-gradient-hero);
    border-radius: var(--bm-radius-xl);
    aspect-ratio: 4 / 5;
    position: relative;
    overflow: hidden;
}

.bm-why__image::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(13, 140, 128, 0.15) 0%, rgba(6, 95, 82, 0.05) 100%);
}

.bm-why__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.bm-why__content h2 {
    margin-bottom: var(--bm-space-md);
}

.bm-why__lead {
    color: var(--bm-text-muted);
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    margin-bottom: var(--bm-space-xl);
}

.bm-why__points {
    display: flex;
    flex-direction: column;
    gap: var(--bm-space-md);
}

.bm-why__point {
    display: flex;
    align-items: flex-start;
    gap: var(--bm-space-md);
    font-size: var(--bm-font-size-base);
    color: var(--bm-text-body);
}

.bm-why__point svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: var(--bm-primary);
    margin-top: 2px;
}

.bm-why__cta {
    margin-top: var(--bm-space-xl);
}

/* ==========================================================================
   11. MISSION + COMPLIANCE (combined section)
   ========================================================================== */

.bm-mission-compliance {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--bm-space-xl);
}

.bm-mission-card,
.bm-compliance-card {
    padding: var(--bm-space-2xl);
    border-radius: var(--bm-radius-xl);
}

.bm-mission-card {
    border: 2px solid var(--bm-primary);
    background: var(--bm-white);
}

.bm-compliance-card {
    background: #FFFBEB;
    border: 1px solid #F0E6C0;
}

.bm-mission-card__header,
.bm-compliance-card__header {
    display: flex;
    align-items: center;
    gap: var(--bm-space-sm);
    margin-bottom: var(--bm-space-lg);
}

.bm-mission-card__header svg,
.bm-compliance-card__header svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.bm-mission-card__header svg {
    color: var(--bm-primary);
}

.bm-compliance-card__header svg {
    color: #D4A30A;
}

.bm-mission-card__header h3,
.bm-compliance-card__header h3 {
    margin-bottom: 0;
}

.bm-compliance-card__header h3 {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
}

.bm-mission-card p,
.bm-compliance-card p {
    color: var(--bm-text-muted);
    font-size: var(--bm-font-size-sm);
    margin-bottom: var(--bm-space-sm);
    line-height: 1.6;
}

.bm-mission-card p:last-of-type,
.bm-compliance-card p:last-of-type {
    margin-bottom: 0;
}

/* ==========================================================================
   11b. APPLICATION PROCESS
   ========================================================================== */

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

.bm-app-step {
    text-align: center;
    position: relative;
    padding: var(--bm-space-xl);
}

.bm-app-step__image {
    aspect-ratio: 1 / 1;
    max-width: 200px;
    margin: 0 auto var(--bm-space-lg);
    overflow: hidden;
    border-radius: var(--bm-radius-xl);
    background: var(--bm-surface);
}

.bm-app-step__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: var(--bm-space-md);
}

.bm-app-step__number {
    width: 36px;
    height: 36px;
    border-radius: var(--bm-radius-full);
    background: var(--bm-primary);
    color: var(--bm-white);
    font-weight: 700;
    font-size: var(--bm-font-size-base);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--bm-space-md);
}

.bm-app-step h3 {
    margin-bottom: var(--bm-space-sm);
}

.bm-app-step p {
    color: var(--bm-text-muted);
    font-size: var(--bm-font-size-sm);
    line-height: 1.6;
    max-width: 300px;
    margin: 0 auto;
}

/* ==========================================================================
   12. CTA SECTION
   ========================================================================== */

.bm-cta__inner {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.bm-cta__inner h2 {
    color: var(--bm-white);
    margin-bottom: var(--bm-space-md);
}

.bm-cta__inner p {
    color: rgba(255, 255, 255, 0.85);
    font-size: var(--bm-font-size-base);
    margin-bottom: var(--bm-space-sm);
}

.bm-cta__inner p:last-of-type {
    margin-bottom: var(--bm-space-xl);
}

/* CTA hexagon corner accents */
.bm-cta__corner-tr,
.bm-cta__corner-bl {
    position: absolute;
    opacity: 0.08;
    pointer-events: none;
}

.bm-cta__corner-tr svg,
.bm-cta__corner-bl svg {
    width: 120px;
    height: 120px;
    color: var(--bm-white);
}

.bm-cta__corner-tr {
    top: var(--bm-space-xl);
    right: var(--bm-space-xl);
}

.bm-cta__corner-bl {
    bottom: var(--bm-space-xl);
    left: var(--bm-space-xl);
}

/* ==========================================================================
   13. PAGE TEMPLATE STYLES
   ========================================================================== */

.bm-page {
    padding-top: 120px;
}

.bm-page__title {
    margin-bottom: var(--bm-space-xl);
}

.bm-page__content {
    max-width: 780px;
    margin: 0 auto;
}

.bm-page__content p {
    margin-bottom: var(--bm-space-lg);
    color: var(--bm-text-body);
    line-height: 1.8;
}

/* ==========================================================================
   14. SINGLE POST
   ========================================================================== */

.bm-single {
    padding-top: 120px;
}

.bm-single__header {
    text-align: center;
    margin-bottom: var(--bm-space-3xl);
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

.bm-single__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--bm-space-md);
    color: var(--bm-text-muted);
    font-size: var(--bm-font-size-sm);
    margin-bottom: var(--bm-space-md);
    flex-wrap: wrap;
}

.bm-single__meta .bm-post-category {
    background: var(--bm-teal-light);
    color: var(--bm-primary-dark);
    padding: 2px var(--bm-space-sm);
    border-radius: var(--bm-radius-sm);
    font-weight: 600;
    font-size: var(--bm-font-size-xs);
}

.bm-single__title {
    margin-bottom: var(--bm-space-lg);
}

.bm-single__featured {
    margin-bottom: var(--bm-space-3xl);
    border-radius: var(--bm-radius-xl);
    overflow: hidden;
}

.bm-single__featured img {
    width: 100%;
    border-radius: var(--bm-radius-xl);
}

.bm-single__content {
    max-width: 780px;
    margin: 0 auto;
}

.bm-single__content p {
    margin-bottom: var(--bm-space-lg);
    line-height: 1.8;
    color: var(--bm-text-body);
}

.bm-single__content h2,
.bm-single__content h3 {
    margin: var(--bm-space-2xl) 0 var(--bm-space-md);
}

/* ==========================================================================
   15. ARCHIVE
   ========================================================================== */

.bm-archive {
    padding-top: 120px;
}

.bm-archive__title {
    text-align: center;
    margin-bottom: var(--bm-space-sm);
}

.bm-archive__description {
    text-align: center;
    color: var(--bm-text-muted);
    margin-bottom: var(--bm-space-3xl);
}

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

.bm-post-card {
    background: var(--bm-white);
    border-radius: var(--bm-radius-xl);
    overflow: hidden;
    border: 1px solid var(--bm-border-light);
    transition: transform var(--bm-transition), box-shadow var(--bm-transition);
}

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

.bm-post-card__image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bm-surface);
}

.bm-post-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--bm-transition-slow);
}

.bm-post-card:hover .bm-post-card__image img {
    transform: scale(1.05);
}

.bm-post-card__body {
    padding: var(--bm-space-lg);
}

.bm-post-card__meta {
    display: flex;
    align-items: center;
    gap: var(--bm-space-md);
    font-size: var(--bm-font-size-xs);
    color: var(--bm-text-muted);
    margin-bottom: var(--bm-space-sm);
    flex-wrap: wrap;
}

.bm-post-card__category {
    background: var(--bm-teal-light);
    color: var(--bm-primary-dark);
    padding: 2px var(--bm-space-sm);
    border-radius: var(--bm-radius-sm);
    font-weight: 600;
}

.bm-post-card h3 {
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    margin-bottom: var(--bm-space-sm);
    line-height: 1.4;
}

.bm-post-card h3 a {
    color: var(--bm-text-dark);
}

.bm-post-card h3 a:hover {
    color: var(--bm-primary);
}

.bm-post-card__excerpt {
    color: var(--bm-text-muted);
    font-size: var(--bm-font-size-sm);
    line-height: 1.6;
    margin-bottom: var(--bm-space-md);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bm-post-card__read-more {
    font-weight: 600;
    color: var(--bm-primary);
    font-size: var(--bm-font-size-sm);
}

/* Pagination */
.bm-pagination {
    display: flex;
    justify-content: center;
    gap: var(--bm-space-sm);
    margin-top: var(--bm-space-3xl);
}

.bm-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--bm-radius-sm);
    background: var(--bm-surface);
    color: var(--bm-text-body);
    font-weight: 600;
    font-size: var(--bm-font-size-sm);
    transition: all var(--bm-transition);
}

.bm-pagination .page-numbers.current {
    background: var(--bm-primary);
    color: var(--bm-white);
}

.bm-pagination .page-numbers:hover {
    background: var(--bm-primary);
    color: var(--bm-white);
}

/* ==========================================================================
   16. 404 PAGE
   ========================================================================== */

.bm-404 {
    padding-top: 120px;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.bm-404__code {
    font-family: var(--bm-font-heading);
    font-size: clamp(4rem, 12vw, 8rem);
    font-weight: 700;
    color: var(--bm-primary);
    line-height: 1;
    margin-bottom: var(--bm-space-md);
}

.bm-404__title {
    margin-bottom: var(--bm-space-md);
}

.bm-404__text {
    color: var(--bm-text-muted);
    margin-bottom: var(--bm-space-xl);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

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

.bm-footer {
    background: var(--bm-primary-dark);
    color: rgba(255, 255, 255, 0.85);
    position: relative;
    overflow: hidden;
}

.bm-footer__decoration {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    opacity: 0.04;
    pointer-events: none;
}

.bm-footer__inner {
    display: grid;
    grid-template-columns: 25% 25% 25% 25%;
    gap: var(--bm-space-xl);
    padding: var(--bm-space-4xl) var(--bm-container-padding);
    position: relative;
    z-index: 2;
}

.bm-footer__col h4 {
    color: var(--bm-white);
    font-family: var(--bm-font-body);
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    font-weight: 700;
    margin-bottom: var(--bm-space-lg);
}

.bm-footer__about {
    font-size: var(--bm-font-size-sm);
    line-height: 1.7;
    margin-bottom: var(--bm-space-lg);
}

.bm-footer__logo {
    margin-bottom: var(--bm-space-lg);
}

.bm-footer__logo img {
    height: 36px;
    width: auto;
}

.bm-footer__logo .bm-logo-text {
    font-family: var(--bm-font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--bm-white);
}

/* Social icons */
.bm-social {
    display: flex;
    gap: var(--bm-space-sm);
}

.bm-social__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--bm-radius-full);
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all var(--bm-transition);
}

.bm-social__link:hover {
    background: var(--bm-primary);
    border-color: var(--bm-primary);
}

.bm-social__link svg {
    width: 16px;
    height: 16px;
    color: var(--bm-white);
}

/* Footer navigation */
.bm-footer__menu {
    display: flex;
    flex-direction: column;
    gap: var(--bm-space-sm);
}

.bm-footer__menu a {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--bm-font-size-sm);
    transition: all var(--bm-transition);
}

.bm-footer__menu a:hover {
    color: var(--bm-white);
    opacity: 1;
    padding-left: var(--bm-space-xs);
}

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

.bm-footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--bm-space-sm);
    font-size: var(--bm-font-size-sm);
    line-height: 1.5;
}

.bm-footer__contact-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--bm-primary-mid);
}

/* Footer bottom */
.bm-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: var(--bm-space-lg) var(--bm-container-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--bm-space-md);
    font-size: var(--bm-font-size-xs);
    color: rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 2;
}

.bm-footer__legal {
    display: flex;
    gap: var(--bm-space-lg);
}

.bm-footer__legal a {
    color: rgba(255, 255, 255, 0.5);
    transition: color var(--bm-transition);
}

.bm-footer__legal a:hover {
    color: var(--bm-white);
}

/* ==========================================================================
   18. ANIMATIONS
   ========================================================================== */

.bm-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 600ms ease, transform 600ms ease;
}

.bm-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.bm-reveal--delay-1 { transition-delay: 100ms; }
.bm-reveal--delay-2 { transition-delay: 200ms; }
.bm-reveal--delay-3 { transition-delay: 300ms; }
.bm-reveal--delay-4 { transition-delay: 400ms; }
.bm-reveal--delay-5 { transition-delay: 500ms; }

/* ==========================================================================
   19. ACCORDION (FAQ)
   ========================================================================== */

.bm-accordion {
    max-width: 780px;
    margin: 0 auto;
}

.bm-accordion__item {
    border: 1px solid var(--bm-border-light);
    border-radius: var(--bm-radius-md);
    margin-bottom: var(--bm-space-md);
    overflow: hidden;
    background: var(--bm-white);
}

.bm-accordion__item summary {
    padding: var(--bm-space-lg);
    font-weight: 600;
    font-size: var(--bm-font-size-base);
    color: var(--bm-text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    user-select: none;
}

.bm-accordion__item summary::-webkit-details-marker {
    display: none;
}

.bm-accordion__item summary::after {
    content: '';
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%230D8C80' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat center;
    transition: transform var(--bm-transition);
    flex-shrink: 0;
}

.bm-accordion__item[open] summary::after {
    transform: rotate(180deg);
}

.bm-accordion__item__content {
    padding: 0 var(--bm-space-lg) var(--bm-space-lg);
    color: var(--bm-text-muted);
    font-size: var(--bm-font-size-sm);
    line-height: 1.7;
}

/* ==========================================================================
   20. TESTIMONIALS
   ========================================================================== */

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

.bm-testimonial-card {
    background: var(--bm-white);
    border-radius: var(--bm-radius-xl);
    padding: var(--bm-space-xl);
    box-shadow: var(--bm-shadow-card);
}

.bm-testimonial-card__stars {
    display: flex;
    gap: 2px;
    margin-bottom: var(--bm-space-md);
}

.bm-testimonial-card__stars svg {
    width: 18px;
    height: 18px;
    color: #EAB308;
    fill: #EAB308;
}

.bm-testimonial-card__quote {
    color: var(--bm-text-body);
    font-size: var(--bm-font-size-sm);
    line-height: 1.7;
    margin-bottom: var(--bm-space-lg);
    font-style: italic;
}

.bm-testimonial-card__author {
    display: flex;
    align-items: center;
    gap: var(--bm-space-md);
}

.bm-testimonial-card__avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--bm-radius-full);
    background: var(--bm-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bm-white);
    font-weight: 700;
    font-size: var(--bm-font-size-base);
    flex-shrink: 0;
}

.bm-testimonial-card__name {
    font-weight: 600;
    color: var(--bm-text-dark);
    font-size: var(--bm-font-size-sm);
}

.bm-testimonial-card__role {
    color: var(--bm-text-muted);
    font-size: var(--bm-font-size-xs);
}

/* ==========================================================================
   21. WORDPRESS CORE STYLES
   ========================================================================== */

/* Alignments */
.alignleft {
    float: left;
    margin-right: var(--bm-space-lg);
    margin-bottom: var(--bm-space-md);
}

.alignright {
    float: right;
    margin-left: var(--bm-space-lg);
    margin-bottom: var(--bm-space-md);
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.alignwide {
    max-width: calc(var(--bm-container-max) + 200px);
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* WP Captions */
.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: var(--bm-font-size-xs);
    color: var(--bm-text-muted);
    text-align: center;
    margin-top: var(--bm-space-sm);
}

/* Screen reader text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: var(--bm-white);
    clip: auto !important;
    clip-path: none;
    display: block;
    font-size: var(--bm-font-size-base);
    font-weight: 600;
    height: auto;
    left: var(--bm-space-sm);
    line-height: normal;
    padding: var(--bm-space-md);
    text-decoration: none;
    top: var(--bm-space-sm);
    width: auto;
    z-index: 100000;
    border-radius: var(--bm-radius-sm);
    box-shadow: var(--bm-shadow-lg);
}

/* Gallery */
.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: var(--bm-space-md);
}

.gallery-item {
    flex: 1 1 auto;
}

.gallery-item img {
    border-radius: var(--bm-radius-md);
}

/* Sticky post */
.sticky {
    border: 2px solid var(--bm-primary);
    border-radius: var(--bm-radius-lg);
    padding: var(--bm-space-lg);
}

/* By post author */
.bypostauthor {
    display: block;
}

/* ==========================================================================
   22. ELEMENTOR INTEGRATION
   ========================================================================== */

/* Allow Elementor to control its own container widths */
.elementor-section.elementor-section-boxed > .elementor-container {
    max-width: var(--bm-container-max);
}

/* Theme content area when Elementor is active */
.bm-elementor-content {
    padding-top: 0;
}

/* Canvas template — no header/footer margins */
body.elementor-template-canvas .bm-header,
body.elementor-template-canvas .bm-footer {
    display: none;
}

body.elementor-template-canvas #page {
    padding-top: 0;
}

/* Full width template */
body.elementor-template-fullwidth .bm-container {
    max-width: 100%;
}

/* ==========================================================================
   23. RESPONSIVE — 1280px
   ========================================================================== */

@media (max-width: 1280px) {
    .bm-footer__inner {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   24. RESPONSIVE — 1024px (Tablet)
   ========================================================================== */

@media (max-width: 1024px) {
    .bm-services__grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

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

    .bm-app-steps {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .bm-mission-compliance {
        grid-template-columns: 1fr;
    }

    .bm-why {
        grid-template-columns: 1fr;
    }

    .bm-why__image {
        aspect-ratio: 16 / 9;
        max-height: 400px;
    }
}

/* ==========================================================================
   25. RESPONSIVE — 768px (Mobile Nav Trigger)
   ========================================================================== */

@media (max-width: 768px) {
    .bm-nav {
        display: none;
    }

    .bm-header__utility {
        display: none;
    }

    .bm-hamburger {
        display: flex;
    }

    .bm-mobile-nav {
        display: block;
    }

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

    .bm-hero__content {
        padding-top: var(--bm-space-2xl);
        padding-bottom: var(--bm-space-2xl);
    }

    .bm-hero__buttons {
        flex-direction: column;
    }

    .bm-hero__buttons .bm-btn {
        width: 100%;
        justify-content: center;
    }

    .bm-services__grid {
        grid-template-columns: 1fr;
    }

    .bm-testimonials {
        grid-template-columns: 1fr;
    }

    .bm-archive__grid {
        grid-template-columns: 1fr;
    }

    .bm-wound-stages__grid {
        grid-template-columns: 1fr;
    }

    .bm-footer__inner {
        grid-template-columns: 1fr;
        gap: var(--bm-space-2xl);
    }

    .bm-footer__bottom {
        flex-direction: column;
        text-align: center;
    }

    .bm-stats-bar .bm-container {
        flex-direction: column;
        gap: var(--bm-space-2xl);
    }

    .bm-stats-bar__decoration {
        display: none;
    }
}

/* ==========================================================================
   26. RESPONSIVE — 480px (Single Column)
   ========================================================================== */

@media (max-width: 480px) {
    .bm-btn {
        padding: 12px 20px;
    }

    .bm-section-header {
        margin-bottom: var(--bm-space-2xl);
    }
}

/* ==========================================================================
   26. IMAGE MODAL
   ========================================================================== */

.bm-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
}

.bm-modal.is-open {
    display: flex;
}

.bm-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 26, 26, 0.92);
    cursor: pointer;
}

.bm-modal__close {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 2;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: var(--bm-white);
    font-size: 28px;
    width: 48px;
    height: 48px;
    border-radius: var(--bm-radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--bm-transition);
}

.bm-modal__close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.bm-modal__content {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bm-modal__img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--bm-radius-md);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

/* Clickable image hint */
.bm-modal-img {
    cursor: zoom-in;
    transition: opacity var(--bm-transition);
}

.bm-modal-img:hover {
    opacity: 0.9;
}

/* ==========================================================================
   27. PRINT STYLES
   ========================================================================== */

@media print {
    .bm-header,
    .bm-footer,
    .bm-mobile-nav,
    .bm-mobile-overlay {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    a {
        color: #000;
        text-decoration: underline;
    }
}
