/**
 * Bootstrap Essential Utilities
 * Extracted from Bootstrap 4.5.3 - Only the utilities needed for ACF blocks
 * Kadence has its own styling system, but our blocks need Bootstrap grid + utilities
 */

/* ===== CONTAINER ===== */
.container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  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: 1140px;
  }
}

/* ===== GRID SYSTEM ===== */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.col,
[class*="col-"] {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}

/* Base columns */
.col-6 {
  flex: 0 0 50%;
  max-width: 50%;
}

.col-12 {
  flex: 0 0 100%;
  max-width: 100%;
}

/* SM breakpoint (576px+) */
@media (min-width: 576px) {
  .col-sm-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  
  .col-sm-12 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* MD breakpoint (768px+) */
@media (min-width: 768px) {
  .col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
  
  .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  
  .col-md-12 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* LG breakpoint (992px+) */
@media (min-width: 992px) {
  .col-lg-3 {
    flex: 0 0 25%;
    max-width: 25%;
  }
  
  .col-lg-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
  
  .col-lg-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  
  .col-lg-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
  }
  
  .col-lg-12 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* ===== FLEXBOX UTILITIES ===== */
.d-flex {
  display: flex !important;
}

.d-inline-flex {
  display: inline-flex !important;
}

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

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

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

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

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

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

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

@media (min-width: 768px) {
  .justify-content-md-end {
    justify-content: flex-end !important;
  }
  
  .justify-content-md-center {
    justify-content: center !important;
  }
}

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

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

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

@media (min-width: 768px) {
  .align-items-md-center {
    align-items: center !important;
  }
}

/* ===== DISPLAY UTILITIES ===== */
.d-none {
  display: none !important;
}

.d-inline {
  display: inline !important;
}

.d-inline-block {
  display: inline-block !important;
}

.d-block {
  display: block !important;
}

/* ===== SPACING UTILITIES ===== */
.m-0 {
  margin: 0 !important;
}

.mt-3 {
  margin-top: 1rem !important;
}

.mt-5 {
  margin-top: 3rem !important;
}

.mb-3 {
  margin-bottom: 1rem !important;
}

.mb-5 {
  margin-bottom: 3rem !important;
}

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

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

.p-0 {
  padding: 0 !important;
}

.pt-5 {
  padding-top: 3rem !important;
}

.pb-5 {
  padding-bottom: 3rem !important;
}

/* ===== TEXT UTILITIES ===== */
.text-left {
  text-align: left !important;
}

.text-right {
  text-align: right !important;
}

.text-center {
  text-align: center !important;
}

.text-uppercase {
  text-transform: uppercase !important;
}

@media (min-width: 992px) {
  .text-lg-left {
    text-align: left !important;
  }
  
  .text-lg-center {
    text-align: center !important;
  }
}

/* ===== POSITION UTILITIES ===== */
.position-static {
  position: static !important;
}

.position-relative {
  position: relative !important;
}

.position-absolute {
  position: absolute !important;
}

.position-fixed {
  position: fixed !important;
}

.position-sticky {
  position: sticky !important;
}

/* ===== OVERFLOW UTILITIES ===== */
.overflow-hidden {
  overflow: hidden !important;
}

.overflow-auto {
  overflow: auto !important;
}

/* ===== IMAGE UTILITIES ===== */
.img-fluid {
  max-width: 100%;
  height: auto;
}

/* ===== CLEARFIX ===== */
.clearfix::after {
  display: block;
  clear: both;
  content: "";
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  font-size: 1rem;
  line-height: 1.25rem;
  font-family: Roboto, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 27.5px;
  transition: 0.3s ease-in-out;
  min-width: 168px;
  padding: 13px;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
}

a.btn.primary-btn,
button.btn.primary-btn,
input.btn.primary-btn {
  background: #99cc66;
  color: #fff;
  border: 0px solid #99cc66;
  margin: 25px 0 0 0;
}

a.btn.primary-btn:focus,
a.btn.primary-btn:hover,
button.btn.primary-btn:focus,
button.btn.primary-btn:hover,
input.btn.primary-btn:focus,
input.btn.primary-btn:hover {
  background: #78a150;
  border: 0px solid #78a150;
  text-decoration: none;
}

a.btn.secondary-btn,
button.btn.secondary-btn,
input.btn.secondary-btn {
  color: #25333c;
  border: 1px solid #99cc66;
  background: transparent;
}

a.btn.secondary-btn:focus,
a.btn.secondary-btn:hover,
button.btn.secondary-btn:focus,
button.btn.secondary-btn:hover,
input.btn.secondary-btn:focus,
input.btn.secondary-btn:hover {
  background: #99cc66;
  color: #fff;
  text-decoration: none;
}

