/**
 * Layotix Local Responsive Grid & Utility Framework v2.0
 * Self-contained Bootstrap 5.3 compatible grid & utilities (No external CDN required)
 */

.container, .container-fluid {
    width: 100%;
    padding-right: 1rem;
    padding-left: 1rem;
    margin-right: auto;
    margin-left: auto;
}
@media (min-width: 576px) { .container { max-width: 540px; } }
@media (min-width: 768px) { .container { max-width: 720px; } }
@media (min-width: 992px) { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: var(--layotix-container-width, 1280px); } }

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -0.75rem;
    margin-left: -0.75rem;
}
.row > * {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
}
.g-3 { gap: 1rem 0; }
.g-4 { margin-right: -1rem; margin-left: -1rem; row-gap: 1.5rem; }
.g-4 > * { padding-right: 1rem; padding-left: 1rem; }
.g-5 { margin-right: -1.5rem; margin-left: -1.5rem; row-gap: 2.5rem; }
.g-5 > * { padding-right: 1.5rem; padding-left: 1.5rem; }

.col { flex: 1 0 0%; }
.col-6 { flex: 0 0 auto; width: 50%; }
.col-12 { flex: 0 0 auto; width: 100%; }

@media (min-width: 768px) {
    .col-md-3 { flex: 0 0 auto; width: 25%; }
    .col-md-4 { flex: 0 0 auto; width: 33.333333%; }
    .col-md-5 { flex: 0 0 auto; width: 41.666667%; }
    .col-md-6 { flex: 0 0 auto; width: 50%; }
    .col-md-7 { flex: 0 0 auto; width: 58.333333%; }
    .col-md-8 { flex: 0 0 auto; width: 66.666667%; }
    .col-md-12 { flex: 0 0 auto; width: 100%; }
}

@media (min-width: 992px) {
    .col-lg-2 { flex: 0 0 auto; width: 16.666667%; }
    .col-lg-3 { flex: 0 0 auto; width: 25%; }
    .col-lg-4 { flex: 0 0 auto; width: 33.333333%; }
    .col-lg-5 { flex: 0 0 auto; width: 41.666667%; }
    .col-lg-6 { flex: 0 0 auto; width: 50%; }
    .col-lg-7 { flex: 0 0 auto; width: 58.333333%; }
    .col-lg-8 { flex: 0 0 auto; width: 66.666667%; }
    .col-lg-9 { flex: 0 0 auto; width: 75%; }
    .col-lg-10 { flex: 0 0 auto; width: 83.333333%; }
    .col-lg-12 { flex: 0 0 auto; width: 100%; }
    .order-lg-1 { order: 1 !important; }
    .order-lg-2 { order: 2 !important; }
    .ps-lg-5 { padding-left: 3rem !important; }
    .pe-lg-5 { padding-right: 3rem !important; }
    .ms-lg-4 { margin-left: 1.5rem !important; }
    .mt-lg-0 { margin-top: 0 !important; }
    .mb-lg-0 { margin-bottom: 0 !important; }
    .py-lg-0 { padding-top: 0 !important; padding-bottom: 0 !important; }
    .d-lg-block { display: block !important; }
    .d-lg-flex { display: flex !important; }
    .d-lg-none { display: none !important; }
}

/* Flexbox & Layout Utilities */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-inline-block { display: inline-block !important; }
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }
.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.align-items-center { align-items: center !important; }
.align-items-start { align-items: flex-start !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-end { justify-content: flex-end !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }
.gap-4 { gap: 1.5rem !important; }

/* Positioning & Sizing */
.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }
.sticky-top { position: sticky; top: 0; z-index: 1020; }
.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }
.overflow-hidden { overflow: hidden !important; }
.object-fit-cover { object-fit: cover !important; }

/* Spacing */
.m-0 { margin: 0 !important; }
.mx-auto { margin-right: auto !important; margin-left: auto !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }
.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; }
.me-2 { margin-right: 0.5rem !important; }
.me-3 { margin-right: 1rem !important; }
.my-4 { margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }
.my-5 { margin-top: 3rem !important; margin-bottom: 3rem !important; }

.p-0 { padding: 0 !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !important; }
.py-1 { padding-top: 0.25rem !important; padding-bottom: 0.25rem !important; }
.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !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; }
.px-3 { padding-right: 1rem !important; padding-left: 1rem !important; }
.px-4 { padding-right: 1.5rem !important; padding-left: 1.5rem !important; }
.px-5 { padding-right: 3rem !important; padding-left: 3rem !important; }
.pt-4 { padding-top: 1.5rem !important; }
.pt-5 { padding-top: 3rem !important; }
.pb-4 { padding-bottom: 1.5rem !important; }
.pb-5 { padding-bottom: 3rem !important; }

/* Typography & Colors */
.text-center { text-align: center !important; }
.text-end { text-align: right !important; }
.text-start { text-align: left !important; }
.text-uppercase { text-transform: uppercase !important; }
.text-decoration-none { text-decoration: none !important; }
.fw-bold { font-weight: 700 !important; }
.fw-semibold { font-weight: 600 !important; }
.display-3 { font-size: clamp(2.25rem, 4.5vw, 3.75rem); font-weight: 800; line-height: 1.12; }
.display-4 { font-size: clamp(2rem, 3.8vw, 3rem); font-weight: 800; line-height: 1.15; }
.display-5 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; line-height: 1.2; }
.display-6 { font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 700; }
.lead { font-size: 1.15rem; font-weight: 400; }
.small, small { font-size: 0.875em; }

.text-white { color: #fff !important; }
.text-white-50 { color: rgba(255, 255, 255, 0.72) !important; }
.text-dark { color: var(--layotix-text-dark) !important; }
.text-muted { color: var(--layotix-text-muted) !important; }
.text-body { color: var(--layotix-text-body) !important; }
.bg-white { background-color: #fff !important; }
.bg-light { background-color: var(--layotix-bg-soft) !important; }
.bg-dark { background-color: var(--layotix-text-dark) !important; }

/* Borders, Badges, Shadows & Forms */
.border { border: 1px solid var(--layotix-border) !important; }
.border-0 { border: 0 !important; }
.border-top { border-top: 1px solid var(--layotix-border) !important; }
.border-bottom { border-bottom: 1px solid var(--layotix-border) !important; }
.rounded { border-radius: var(--layotix-radius-md) !important; }
.rounded-3 { border-radius: var(--layotix-radius-md) !important; }
.rounded-4 { border-radius: var(--layotix-radius-lg) !important; }
.rounded-pill { border-radius: 50rem !important; }
.rounded-circle { border-radius: 50% !important; }
.shadow-sm { box-shadow: var(--layotix-shadow-sm) !important; }
.shadow, .shadow-lg { box-shadow: var(--layotix-shadow-lg) !important; }
.list-unstyled { padding-left: 0; list-style: none; }
.img-fluid { max-width: 100%; height: auto; }
.badge {
    display: inline-block;
    padding: 0.4em 0.8em;
    font-size: 0.78em;
    font-weight: 700;
    line-height: 1;
    border-radius: 0.5rem;
}

.form-control, .form-select {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--layotix-text-dark);
    background-color: #fff;
    border: 1px solid var(--layotix-border);
    border-radius: var(--layotix-radius-md);
    transition: var(--layotix-transition);
}
.form-control:focus, .form-select:focus {
    outline: none;
    border-color: var(--layotix-primary);
    box-shadow: 0 0 0 3px rgba(11, 122, 117, 0.15);
}

/* Navbar Responsive Collapse */
.navbar {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}
.navbar > .container {
    display: flex;
    flex-wrap: inherit;
    align-items: center;
    justify-content: space-between;
}
.navbar-toggler {
    padding: 0.5rem 0.75rem;
    font-size: 1.25rem;
    background-color: transparent;
    border: 1px solid var(--layotix-border);
    border-radius: var(--layotix-radius-sm);
    cursor: pointer;
}
.navbar-collapse {
    flex-basis: 100%;
    flex-grow: 1;
    align-items: center;
}
.collapse:not(.show) {
    display: none;
}
@media (min-width: 992px) {
    .navbar-expand-lg { flex-wrap: nowrap; justify-content: flex-start; }
    .navbar-expand-lg .navbar-nav { flex-direction: row; }
    .navbar-expand-lg .navbar-collapse { display: flex !important; flex-basis: auto; }
    .navbar-expand-lg .navbar-toggler { display: none; }
}
