
/* ============================================================
  LAYOUT LAYER
   - containers
   - sections
   - grids
   - stacks
============================================================ */
/* ====================
   FLEX LAYOUT
   ==================== */

/* Flex container with row direction and wrapping */
.d-flex {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: auto;
  align-self: center;
  flex-wrap: wrap;
  row-gap: var(--cf-stack-md);
  column-gap: var(--cf-space-s);
}

/* ====================
   GRID LAYOUTS
   ==================== */

/* 2-column responsive grid */
.d-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: stretch;
  gap: var(--cf-space-lg);
}

/* 3-column responsive grid */
.d-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: stretch;
  align-content: stretch;
  gap: var(--cf-space-m);
}

/* 4-column responsive grid with center justification */
.d-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  align-items: stretch;
  align-content: stretch;
  justify-content: center;
  gap: var(--cf-space-lg);
}

/* ====================
   SECTION & CONTAINER UTILITIES
   ==================== */

/* Section with no padding - useful for flush layouts */
.d-section--none {
  padding: 0;
}

/* Centered max-width container wrapper */
.d-max-width-wrapper {
  max-width: var(--cf-content-max);
  margin-right: auto;
  margin-left: auto;
}

/* ====================
   MODERN LAYOUT FEATURES
   ==================== */

/* Container for container queries - enables element-level responsive design */
.d-container-inline {
  container-type: inline-size;
}

/* ====================
   RESPONSIVE BEHAVIOR
   ==================== */

/* Mobile portrait adjustments for flex container */
@media (max-width: 767px) {
  .d-flex {
    justify-content: flex-start;
  }
}


/* ============================================================
  Animation LAYER
   - containers
   - sections
   - grids
   - stacks
============================================================ */



         /* --- FADE IN (Simple Opacity) --- */
        
        @keyframes cf_fadeIn {
          from { opacity: 0; }
          to { opacity: 1; }
        }
        @-webkit-keyframes cf_fadeIn {
          from { opacity: 0; }
          to { opacity: 1; }
        }
        
        
        /* --- FADE IN UP (Slides from 10px below) --- */
        
        @keyframes cf_fadeInUp {
          from {
            opacity: 0;
            transform: translate3d(0, var(--cf-anim-offset), 0);
          }
          to {
            opacity: 1;
            transform: translateZ(0);
          }
        }
        @-webkit-keyframes cf_fadeInUp {
          from {
            opacity: 0;
            transform: translate3d(0, var(--cf-anim-offset), 0);
          }
          to {
            opacity: 1;
            transform: translateZ(0);
          }
        }
        /* --- FADE IN UP (Slides from 10px below) --- */
        
        @keyframes cf_fadeInDown {
          from {
            opacity: 0;
            transform: translate3d(0, calc(var(--cf-anim-offset) * -1), 0);
          }
          to {
            opacity: 1;
            transform: translateZ(0);
          }
        }
        @-webkit-keyframes cf_fadeInDown {
          from {
            opacity: 0;
            transform: translate3d(0, calc(var(--cf-anim-offset) * -1), 0);
          }
          to {
            opacity: 1;
            transform: translateZ(0);
          }
        }
        
        /* --- SLIDE IN LEFT (Slides from 10px to the right of final position) --- */
        
        @keyframes cf_slideInLeft {
          from {
            opacity: 0;
            transform: translate3d(var(--cf-anim-offset), 0, 0); 
          }
          to {
            opacity: 1;
            transform: translateZ(0);
          }
        }
        @-webkit-keyframes cf_slideInLeft {
          from {
            opacity: 0;
            transform: translate3d(var(--cf-anim-offset), 0, 0); 
          }
          to {
            opacity: 1;
            transform: translateZ(0);
          }
        }
        
        
        /* --- SLIDE IN RIGHT (Slides from 10px to the left of final position) --- */
        
        @keyframes cf_slideInRight {
          from {
            opacity: 0;
            transform: translate3d(calc(var(--cf-anim-offset) * -1), 0, 0); 
          }
          to {
            opacity: 1;
            transform: translateZ(0);
          }
        }
        @-webkit-keyframes cf_slideInRight {
          from {
            opacity: 0;
            transform: translate3d(calc(var(--cf-anim-offset) * -1), 0, 0); 
          }
          to {
            opacity: 1;
            transform: translateZ(0);
          }
        }
        
        /* --- SLIDE IN DOWN (Slides from 10px above) --- */
        
        @keyframes cf_slideInDown {
          from {
            opacity: 0;
            transform: translate3d(0, calc(var(--cf-anim-offset) * -1), 0); 
          }
          to {
            opacity: 1;
            transform: translateZ(0);
          }
        }
        @-webkit-keyframes cf_slideInDown {
          from {
            opacity: 0;
            transform: translate3d(0, calc(var(--cf-anim-offset) * -1), 0); 
          }
          to {
            opacity: 1;
            transform: translateZ(0);
          }
        }
        
        
        /* --- ZOOM IN (Subtle scale from 98%) --- */
        
        @keyframes cf_zoomIn {
          from {
            opacity: 0;
            transform: scale3d(0.98, 0.98, 0.98);
          }
          to {
            opacity: 1;
            transform: scale3d(1, 1, 1);
          }
        }
        @-webkit-keyframes cf_zoomIn {
          from {
            opacity: 0;
            transform: scale3d(0.98, 0.98, 0.98);
          }
          to {
            opacity: 1;
            transform: scale3d(1, 1, 1);
          }
        }
        
        
        /* ----------------------------------------------------------------------------------
           3. BRICKS ANIMATION OVERRIDES
           *** FIX: Added opacity: 1 !important; to force visibility after animation ends. ***
           ---------------------------------------------------------------------------------- */
        
        /* Fade In Override */
        .brx-body .brx-animate-fadeInbrx-animate-fadeIn {
          animation-name: cf_fadeIn;
          animation-duration: var(--cf-anim-speed);
          animation-timing-function: var(--cf-anim-ease);
          animation-fill-mode: both;
        }
        
        
        /* Fade In Up Override */
        .brx-body .brx-animate-fadeInUp.brx-animate-fadeInUp {
          animation-name: cf_fadeInUp;
          animation-duration: var(--cf-anim-speed);
          animation-timing-function: var(--cf-anim-ease);
          animation-fill-mode: both;
        }
        /* Fade In Up Override */
        .brx-body .brx-animate-fadeInDown.brx-animate-fadeInDown {
          animation-name: cf_fadeInDown;
          animation-duration: var(--cf-anim-speed);
          animation-timing-function: var(--cf-anim-ease);
          animation-fill-mode: both;
        }
        
        /* Slide In Left Override */
        .brx-body .brx-animate-slideInLeft.brx-animate-slideInLeft {
          animation-name: cf_slideInLeft;
          animation-duration: var(--cf-anim-speed);
          animation-timing-function: var(--cf-anim-ease);
          animation-fill-mode: both;
        }
        
        /* Slide In Right Override */
        .brx-body .brx-animate-slideInRight.brx-animate-slideInRight {
          animation-name: cf_slideInRight;
          animation-duration: var(--cf-anim-speed);
          animation-timing-function: var(--cf-anim-ease);
          animation-fill-mode: both;
         
        }
        
        /* Slide In Down Override */
        .brx-body .brx-animate-slideInDown.brx-animate-slideInDown {
          animation-name: cf_slideInDown;
          animation-duration: var(--cf-anim-speed);
          animation-timing-function: var(--cf-anim-ease);
          animation-fill-mode: both;
        }
        
        /* Zoom In Override */
        .brx-body .brx-animate-zoomIn.brx-animate-zoomIn {
          animation-name: cf_zoomIn;
          animation-duration: var(--cf-anim-speed);
          animation-timing-function: var(--cf-anim-ease);
          animation-fill-mode: both;
          
        }

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


