/*
 * sc-layout.css
 * Framework-independent layout + utility classes (no Bootstrap needed).
 * Prefix "sc-" keeps them from clashing with any existing global CSS.
 *
 * Breakpoints (same as the site's existing grid):
 *   base  : < 768px   (mobile)
 *   -sm   : >= 768px
 *   -md   : >= 992px
 *   -lg   : >= 1200px
 *
 * Usage:
 *   <div class="sc-container">
 *     <div class="sc-row sc-items-center">
 *       <div class="sc-col-12 sc-col-md-6">...</div>
 *       <div class="sc-col-12 sc-col-md-6">...</div>
 *     </div>
 *   </div>
 */

/* ---------- Container ---------- */
.sc-container,
.sc-container-fluid {
    width: 90%;
    margin-right: auto;
    margin-left: auto;
    padding-right: 15px;
    padding-left: 15px;
    box-sizing: border-box;
}
.sc-container       { max-width: 1170px; }
.sc-container-fluid { max-width: none; width: 100%; }
@media (min-width: 1501px) { .sc-container { max-width: 1310px; } }
@media (min-width: 1600px) { .sc-container { max-width: 1500px; } }

/* ---------- Row ---------- */
.sc-row {
    --sc-gutter: 30px;
    display: flex;
    flex-wrap: wrap;
    margin-right: calc(var(--sc-gutter) / -2);
    margin-left: calc(var(--sc-gutter) / -2);
    box-sizing: border-box;
}
/* zero specificity so component CSS can always override the child padding/width */
:where(.sc-row) > * {
    box-sizing: border-box;
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding-right: calc(var(--sc-gutter) / 2);
    padding-left: calc(var(--sc-gutter) / 2);
}
.sc-row-gutter-0 { --sc-gutter: 0px; }
.sc-row-gutter-sm { --sc-gutter: 16px; }
.sc-row-gutter-lg { --sc-gutter: 48px; }

/* ---------- Columns (12 grid) ---------- */
.sc-col      { flex: 1 0 0%; width: auto; }
.sc-col-auto { flex: 0 0 auto; width: auto; }

.sc-col-1  { width: 8.33333333%; }
.sc-col-2  { width: 16.66666667%; }
.sc-col-3  { width: 25%; }
.sc-col-4  { width: 33.33333333%; }
.sc-col-5  { width: 41.66666667%; }
.sc-col-6  { width: 50%; }
.sc-col-7  { width: 58.33333333%; }
.sc-col-8  { width: 66.66666667%; }
.sc-col-9  { width: 75%; }
.sc-col-10 { width: 83.33333333%; }
.sc-col-11 { width: 91.66666667%; }
.sc-col-12 { width: 100%; }

@media (min-width: 768px) {
    .sc-col-sm-1  { width: 8.33333333%; }
    .sc-col-sm-2  { width: 16.66666667%; }
    .sc-col-sm-3  { width: 25%; }
    .sc-col-sm-4  { width: 33.33333333%; }
    .sc-col-sm-5  { width: 41.66666667%; }
    .sc-col-sm-6  { width: 50%; }
    .sc-col-sm-7  { width: 58.33333333%; }
    .sc-col-sm-8  { width: 66.66666667%; }
    .sc-col-sm-9  { width: 75%; }
    .sc-col-sm-10 { width: 83.33333333%; }
    .sc-col-sm-11 { width: 91.66666667%; }
    .sc-col-sm-12 { width: 100%; }
}
@media (min-width: 992px) {
    .sc-col-md-1  { width: 8.33333333%; }
    .sc-col-md-2  { width: 16.66666667%; }
    .sc-col-md-3  { width: 25%; }
    .sc-col-md-4  { width: 33.33333333%; }
    .sc-col-md-5  { width: 41.66666667%; }
    .sc-col-md-6  { width: 50%; }
    .sc-col-md-7  { width: 58.33333333%; }
    .sc-col-md-8  { width: 66.66666667%; }
    .sc-col-md-9  { width: 75%; }
    .sc-col-md-10 { width: 83.33333333%; }
    .sc-col-md-11 { width: 91.66666667%; }
    .sc-col-md-12 { width: 100%; }
}
@media (min-width: 1200px) {
    .sc-col-lg-1  { width: 8.33333333%; }
    .sc-col-lg-2  { width: 16.66666667%; }
    .sc-col-lg-3  { width: 25%; }
    .sc-col-lg-4  { width: 33.33333333%; }
    .sc-col-lg-5  { width: 41.66666667%; }
    .sc-col-lg-6  { width: 50%; }
    .sc-col-lg-7  { width: 58.33333333%; }
    .sc-col-lg-8  { width: 66.66666667%; }
    .sc-col-lg-9  { width: 75%; }
    .sc-col-lg-10 { width: 83.33333333%; }
    .sc-col-lg-11 { width: 91.66666667%; }
    .sc-col-lg-12 { width: 100%; }
}

/* ---------- Flex utilities ---------- */
.sc-flex       { display: flex !important; }
.sc-flex-col   { flex-direction: column !important; }
.sc-flex-wrap  { flex-wrap: wrap !important; }
.sc-shrink-0   { flex-shrink: 0 !important; }
.sc-grow-1     { flex-grow: 1 !important; }

.sc-items-start   { align-items: flex-start !important; }
.sc-items-center  { align-items: center !important; }
.sc-items-end     { align-items: flex-end !important; }
.sc-items-stretch { align-items: stretch !important; }

.sc-justify-start   { justify-content: flex-start !important; }
.sc-justify-center  { justify-content: center !important; }
.sc-justify-end     { justify-content: flex-end !important; }
.sc-justify-between { justify-content: space-between !important; }

.sc-gap-0 { gap: 0 !important; }
.sc-gap-1 { gap: .25rem !important; }
.sc-gap-2 { gap: .5rem !important; }
.sc-gap-3 { gap: 1rem !important; }
.sc-gap-4 { gap: 1.5rem !important; }
.sc-gap-5 { gap: 3rem !important; }

/* ---------- Spacing utilities (0 / .25 / .5 / 1 / 1.5 / 3 rem) ---------- */
.sc-mt-0 { margin-top: 0 !important; }
.sc-mt-1 { margin-top: .25rem !important; }
.sc-mt-2 { margin-top: .5rem !important; }
.sc-mt-3 { margin-top: 1rem !important; }
.sc-mt-4 { margin-top: 1.5rem !important; }
.sc-mt-5 { margin-top: 3rem !important; }

.sc-mb-0 { margin-bottom: 0 !important; }
.sc-mb-1 { margin-bottom: .25rem !important; }
.sc-mb-2 { margin-bottom: .5rem !important; }
.sc-mb-3 { margin-bottom: 1rem !important; }
.sc-mb-4 { margin-bottom: 1.5rem !important; }
.sc-mb-5 { margin-bottom: 3rem !important; }

.sc-pt-0 { padding-top: 0 !important; }
.sc-pt-1 { padding-top: .25rem !important; }
.sc-pt-2 { padding-top: .5rem !important; }
.sc-pt-3 { padding-top: 1rem !important; }
.sc-pt-4 { padding-top: 1.5rem !important; }
.sc-pt-5 { padding-top: 3rem !important; }

.sc-pb-0 { padding-bottom: 0 !important; }
.sc-pb-1 { padding-bottom: .25rem !important; }
.sc-pb-2 { padding-bottom: .5rem !important; }
.sc-pb-3 { padding-bottom: 1rem !important; }
.sc-pb-4 { padding-bottom: 1.5rem !important; }
.sc-pb-5 { padding-bottom: 3rem !important; }

/* ---------- Text / background helpers ---------- */
.sc-text-left   { text-align: left !important; }
.sc-text-center { text-align: center !important; }
.sc-text-right  { text-align: right !important; }
.sc-text-white  { color: #fff !important; }
.sc-bg-white    { background-color: #fff !important; }
