/* =========================================================
   ADI YOGPEETH — UTILITY SYSTEM
   File: assets/css/utilities.css
   Version: 1.0
   ========================================================= */


/* =========================================================
   01. DISPLAY
   ========================================================= */

.block {
    display: block;
}

.inline-block {
    display: inline-block;
}

.inline {
    display: inline;
}

.flex {
    display: flex;
}

.inline-flex {
    display: inline-flex;
}

.grid {
    display: grid;
}

.hidden {
    display: none !important;
}


/* =========================================================
   02. FLEX DIRECTION
   ========================================================= */

.flex-row {
    flex-direction: row;
}

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

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

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


/* =========================================================
   03. ALIGNMENT
   ========================================================= */

.items-start {
    align-items: flex-start;
}

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

.items-end {
    align-items: flex-end;
}

.items-stretch {
    align-items: stretch;
}

.items-baseline {
    align-items: baseline;
}


/* =========================================================
   04. JUSTIFICATION
   ========================================================= */

.justify-start {
    justify-content: flex-start;
}

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

.justify-end {
    justify-content: flex-end;
}

.justify-between {
    justify-content: space-between;
}

.justify-around {
    justify-content: space-around;
}

.justify-evenly {
    justify-content: space-evenly;
}


/* =========================================================
   05. FLEX GROW / SHRINK
   ========================================================= */

.flex-1 {
    flex: 1 1 0%;
}

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

.flex-none {
    flex: none;
}


/* =========================================================
   06. GAP
   ========================================================= */

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

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

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

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

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

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

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

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

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

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

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


/* =========================================================
   07. GRID COLUMNS
   ========================================================= */

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

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

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

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

.grid-auto {
    grid-template-columns: repeat(
        auto-fit,
        minmax(250px, 1fr)
    );
}


/* =========================================================
   08. GRID ALIGNMENT
   ========================================================= */

.place-center {
    place-items: center;
}

.place-start {
    place-items: start;
}

.place-end {
    place-items: end;
}


/* =========================================================
   09. POSITION
   ========================================================= */

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

.sticky {
    position: sticky;
}


/* =========================================================
   10. INSET
   ========================================================= */

.inset-0 {
    inset: 0;
}

.top-0 {
    top: 0;
}

.right-0 {
    right: 0;
}

.bottom-0 {
    bottom: 0;
}

.left-0 {
    left: 0;
}


/* =========================================================
   11. Z-INDEX
   ========================================================= */

.z-base {
    z-index: var(--z-base);
}

.z-content {
    z-index: var(--z-content);
}

.z-dropdown {
    z-index: var(--z-dropdown);
}

.z-sticky {
    z-index: var(--z-sticky);
}

.z-overlay {
    z-index: var(--z-overlay);
}

.z-modal {
    z-index: var(--z-modal);
}


/* =========================================================
   12. WIDTH
   ========================================================= */

.w-full {
    width: 100%;
}

.w-auto {
    width: auto;
}

.w-fit {
    width: fit-content;
}

.max-w-none {
    max-width: none;
}

.max-w-sm {
    max-width: var(--container-sm);
}

.max-w-md {
    max-width: var(--container-md);
}

.max-w-lg {
    max-width: var(--container-lg);
}

.max-w-xl {
    max-width: var(--container-xl);
}

.max-w-reading {
    max-width: var(--content-reading-width);
}


/* =========================================================
   13. HEIGHT
   ========================================================= */

.h-full {
    height: 100%;
}

.h-auto {
    height: auto;
}

.min-h-screen {
    min-height: 100vh;
}


/* =========================================================
   14. MARGIN AUTO
   ========================================================= */

.mx-auto {
    margin-inline: auto;
}

.my-auto {
    margin-block: auto;
}

.ml-auto {
    margin-left: auto;
}

.mr-auto {
    margin-right: auto;
}


/* =========================================================
   15. MARGIN TOP
   ========================================================= */

.mt-0 {
    margin-top: 0;
}

.mt-1 {
    margin-top: var(--space-1);
}

.mt-2 {
    margin-top: var(--space-2);
}

.mt-3 {
    margin-top: var(--space-3);
}

.mt-4 {
    margin-top: var(--space-4);
}

.mt-5 {
    margin-top: var(--space-5);
}

.mt-6 {
    margin-top: var(--space-6);
}

.mt-8 {
    margin-top: var(--space-8);
}

.mt-10 {
    margin-top: var(--space-10);
}

.mt-12 {
    margin-top: var(--space-12);
}


/* =========================================================
   16. MARGIN BOTTOM
   ========================================================= */

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: var(--space-1);
}

.mb-2 {
    margin-bottom: var(--space-2);
}

.mb-3 {
    margin-bottom: var(--space-3);
}

.mb-4 {
    margin-bottom: var(--space-4);
}

.mb-5 {
    margin-bottom: var(--space-5);
}

.mb-6 {
    margin-bottom: var(--space-6);
}

.mb-8 {
    margin-bottom: var(--space-8);
}

.mb-10 {
    margin-bottom: var(--space-10);
}

.mb-12 {
    margin-bottom: var(--space-12);
}


/* =========================================================
   17. PADDING
   ========================================================= */

.p-0 {
    padding: 0;
}

.p-1 {
    padding: var(--space-1);
}

.p-2 {
    padding: var(--space-2);
}

.p-3 {
    padding: var(--space-3);
}

.p-4 {
    padding: var(--space-4);
}

.p-5 {
    padding: var(--space-5);
}

.p-6 {
    padding: var(--space-6);
}

.p-8 {
    padding: var(--space-8);
}

.p-10 {
    padding: var(--space-10);
}

.p-12 {
    padding: var(--space-12);
}


/* =========================================================
   18. PADDING INLINE
   ========================================================= */

.px-4 {
    padding-inline: var(--space-4);
}

.px-5 {
    padding-inline: var(--space-5);
}

.px-6 {
    padding-inline: var(--space-6);
}

.px-8 {
    padding-inline: var(--space-8);
}


/* =========================================================
   19. PADDING BLOCK
   ========================================================= */

.py-4 {
    padding-block: var(--space-4);
}

.py-5 {
    padding-block: var(--space-5);
}

.py-6 {
    padding-block: var(--space-6);
}

.py-8 {
    padding-block: var(--space-8);
}

.py-10 {
    padding-block: var(--space-10);
}

.py-12 {
    padding-block: var(--space-12);
}


/* =========================================================
   20. OVERFLOW
   ========================================================= */

.overflow-hidden {
    overflow: hidden;
}

.overflow-auto {
    overflow: auto;
}

.overflow-x-auto {
    overflow-x: auto;
}

.overflow-y-auto {
    overflow-y: auto;
}


/* =========================================================
   21. OBJECT FIT
   ========================================================= */

.object-cover {
    object-fit: cover;
}

.object-contain {
    object-fit: contain;
}


/* =========================================================
   22. OBJECT POSITION
   ========================================================= */

.object-center {
    object-position: center;
}

.object-top {
    object-position: top;
}

.object-bottom {
    object-position: bottom;
}


/* =========================================================
   23. ASPECT RATIOS
   ========================================================= */

.aspect-square {
    aspect-ratio: 1 / 1;
}

.aspect-video {
    aspect-ratio: 16 / 9;
}

.aspect-portrait {
    aspect-ratio: 4 / 5;
}

.aspect-landscape {
    aspect-ratio: 3 / 2;
}

.aspect-editorial {
    aspect-ratio: 4 / 3;
}


/* =========================================================
   24. BORDER RADIUS
   ========================================================= */

.rounded-none {
    border-radius: var(--radius-none);
}

.rounded-sm {
    border-radius: var(--radius-sm);
}

.rounded-md {
    border-radius: var(--radius-md);
}

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

.rounded-xl {
    border-radius: var(--radius-xl);
}

.rounded-full {
    border-radius: var(--radius-full);
}


/* =========================================================
   25. BORDER
   ========================================================= */

.border {
    border: var(--border-default);
}

.border-light {
    border: var(--border-light);
}

.border-dark {
    border: var(--border-dark);
}

.border-none {
    border: 0;
}


/* =========================================================
   26. BACKGROUND
   ========================================================= */

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

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

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

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

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

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

.bg-transparent {
    background-color: transparent;
}


/* =========================================================
   27. SHADOW
   ========================================================= */

.shadow-none {
    box-shadow: var(--shadow-none);
}

.shadow-xs {
    box-shadow: var(--shadow-xs);
}

.shadow-sm {
    box-shadow: var(--shadow-sm);
}

.shadow-md {
    box-shadow: var(--shadow-md);
}

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


/* =========================================================
   28. OPACITY
   ========================================================= */

.opacity-0 {
    opacity: 0;
}

.opacity-50 {
    opacity: 0.5;
}

.opacity-75 {
    opacity: 0.75;
}

.opacity-100 {
    opacity: 1;
}


/* =========================================================
   29. POINTER EVENTS
   ========================================================= */

.pointer-none {
    pointer-events: none;
}

.pointer-auto {
    pointer-events: auto;
}


/* =========================================================
   30. CURSOR
   ========================================================= */

.cursor-pointer {
    cursor: pointer;
}

.cursor-default {
    cursor: default;
}

.cursor-not-allowed {
    cursor: not-allowed;
}


/* =========================================================
   31. VISIBILITY
   ========================================================= */

.visible {
    visibility: visible;
}

.invisible {
    visibility: hidden;
}


/* =========================================================
   32. DESKTOP / MOBILE VISIBILITY
   ========================================================= */

.mobile-only {
    display: none;
}

.desktop-only {
    display: block;
}


/* =========================================================
   33. CENTERED CONTENT
   ========================================================= */

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


/* =========================================================
   34. VERTICAL CENTER
   ========================================================= */

.center-y {
    display: flex;
    align-items: center;
}


/* =========================================================
   35. HORIZONTAL CENTER
   ========================================================= */

.center-x {
    display: flex;
    justify-content: center;
}


/* =========================================================
   36. STACK
   ========================================================= */

.stack {
    display: flex;
    flex-direction: column;
}

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

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

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


/* =========================================================
   37. DIVIDER
   ========================================================= */

.divider {
    width: 100%;
    height: 1px;
    background-color: var(--color-border);
}


/* =========================================================
   38. VISUAL OVERLAY
   ========================================================= */

.overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.overlay--dark {
    background: var(--color-dark-background);
    opacity: 0.35;
}

.overlay--hero {
    background:
        linear-gradient(
            180deg,
            rgba(16, 47, 40, 0.18) 0%,
            rgba(16, 47, 40, 0.62) 100%
        );
}


/* =========================================================
   39. IMAGE WRAPPER
   ========================================================= */

.image-cover {
    position: relative;
    overflow: hidden;
}

.image-cover img,
.image-cover video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* =========================================================
   40. HOVER IMAGE
   ========================================================= */

.image-hover {
    overflow: hidden;
}

.image-hover img {
    transition:
        transform var(--duration-slow) var(--ease-smooth);
}

.image-hover:hover img {
    transform: scale(var(--motion-scale-image));
}


/* =========================================================
   41. TEXT TRUNCATION
   ========================================================= */

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =========================================================
   42. NO SELECT
   ========================================================= */

.no-select {
    user-select: none;
    -webkit-user-select: none;
}


/* =========================================================
   43. TOUCH OPTIMIZATION
   ========================================================= */

.touch-target {
    min-width: var(--touch-target-min);
    min-height: var(--touch-target-min);
}


/* =========================================================
   44. SCREEN READER ONLY
   ========================================================= */

.visually-hidden {
    position: absolute !important;

    width: 1px !important;
    height: 1px !important;

    padding: 0 !important;
    margin: -1px !important;

    overflow: hidden !important;

    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;

    white-space: nowrap !important;
    border: 0 !important;
}


/* =========================================================
   45. RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 991px) {

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

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

    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }
}


/* =========================================================
   46. RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

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

    .w-mobile-full {
        width: 100%;
    }

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

    .mx-auto-mobile {
        margin-inline: auto;
    }

    .gap-mobile-4 {
        gap: var(--space-4);
    }

    .gap-mobile-6 {
        gap: var(--space-6);
    }
}


/* =========================================================
   47. RESPONSIVE — SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .p-8 {
        padding: var(--space-6);
    }

    .p-10 {
        padding: var(--space-8);
    }

    .p-12 {
        padding: var(--space-8);
    }

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


/* =========================================================
   48. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .image-hover img {
        transition: none;
    }

    .image-hover:hover img {
        transform: none;
    }
}


/* =========================================================
   END OF UTILITY SYSTEM
   ========================================================= */