
/******BACKGROUNDS************************/

/*BACKGROUND COLORS*/
.sd-scope .stone_bg{
    background-color: var(--color-stone);
}
.sd-scope .linen_bg {
    background-color: var(--color-linen);
}
.sd-scope .forest-dark_bg{
    background-color: var(--color-forest);
}
.sd-scope .forest_bg{
    background-color: var(--sd-green-900);
}
.sd-scope .mocha_bg {
    background-color: var(--color-mocha);
}

.sd-scope .lightblue_bg {
    background-color: var(--color-lightblue);
}
/*Column Backgrounds */
.sd-scope .box-bg__stone{
    background-color: var(--color-stone);
}
.sd-scope .box-bg__linen {
    background-color: var(--color-linen);
}
.sd-scope .banner.banner__shadow {
    overflow: hidden;              /* ensures border-radius clips the image */
    border-radius: 12px;           /* adjust radius as needed */
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25); /* heavier, deeper shadow */
}
.half-bg-right {
    padding-top: 210px;
}
.half-bg-right .section-content {
    display: flex;
    align-items: flex-end;
}
.half-bg-right .section-bg {
    left: unset;
    right: 0;
    width: 50%;
    overflow: hidden; /* ensures border-radius clips the image */
}

/* Tablet adjustments */
@media (max-width: 767px) {
    .section.category-hero {
        height: 50vh;
    }
    .section.category-hero .section-content {
        height: 100%;
    }
    .half-bg-right .section-bg {
        right: unset;
        left: 0;
        bottom: 50%;
        width: 100%;
        height: 70%;
        bottom: 0;
        position: absolute;
    }
    .half-bg-right .section-content .col {
        padding-left: var(--space-md) !important;
        padding-bottom: var(--space-md);
    }
        .half-bg-right.section {
        padding:0;
    }
}

/* Mobile adjustments */
@media (max-width: 549px) {
    .section.category-hero {
        height: 60vh;
    }
    .section.category-hero .section-content {
        height: 100%;
    }
    .half-bg-right .section-bg {
        right: unset;
        left: 0;
        bottom: 50%;
        width: 100%;
        height: 70%;
        bottom: 0;
        position: absolute;
    }
    .half-bg-right .section-content .col {
        padding-left: var(--space-md) !important;
        padding-bottom: var(--space-md);
    }
        .half-bg-right.section {
        padding:0;
    }
}


/*spacing*/
.sd-scope .section-header-padding{
    padding-top: var(--sp-20);
}

.z-0 {
    z-index: 0;
}

/**********PADDINGS AND MARGINS*******************/
/*************** Global paddings  ***************/
.py-xs {padding: var(--space-xs) 0px!important;}
.py-sm {padding: var(--space-sm) 0px!important;}
.py {padding: var(--space-md) 0px!important;}
.py-lg {padding: var(--space-lg) 0px!important;}
.py-xlg {padding: var(--space-xl) 0px!important;}
.pt {padding-top: var(--space-md) 0px!important;}
.pt-lg {padding-top: var(--space-lg) 0px!important;}
.sd-scope .pt-xlg {padding-top: var(--space-xl) 0px!important;}
.pl {padding-left: var(--space-md)!important;}
.pl-lg {padding-left: var(--space-lg)!important;}
.pl-xl {padding-left: var(--space-xl)!important;}
.pb {padding-bottom: var(--space-md)!important;}
.pb-lg {padding-bottom: var(--space-lg)!important;}
.pb-xlg {padding-bottom: var(--space-xl)!important;}

/*************** Global margins  ***************/
.my-xs {margin: var(--space-xs) 0px!important;}
.my-sm {margin: var(--space-sm) 0px!important;}
.my {margin: var(--space-md) 0px!important;}
.my-lg {margin: var(--space-lg) 0px!important;}
.my-xlg {margin: var(--space-xl) 0px!important;}
.mt {margin-top: var(--space-md) 0px!important;}
.mt-lg {margin-top: var(--space-lg) 0px!important;}
.mt-xlg {margin-top: var(--space-xl) 0px!important;}
.ml {margin-left: var(--space-md)!important;}
.mb {margin-bottom: var(--space-md)!important;}
.mb-lg {margin-bottom: var(--space-lg)!important;}
.mb-xlg {margin-bottom: var(--space-xl)!important;}
.mb-0, .mb-0 p {margin-bottom: 0 !important;}
.m-0, .m-0 p {margin: 0 !important;}

/****************FORMS LAYOUT***********************/
/* ==========================================================================
   forms.css — SupportDesign global form styles
   ========================================================================== */

/* Grid layout: 2 columns on desktop, 1 on mobile */
.sd-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.sd-form .full {
    grid-column: 1 / -1; /* spans both columns */
}

/* Wrapper */
.sd-form .field-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
}

/* Inputs + textarea */
.sd-form input[type="text"],
.sd-form input[type="email"],
.sd-form input[type="tel"],
.sd-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #000;
    background: transparent;
    font-size: 1rem;
    font-family: inherit;
    color: #000;
    box-sizing: border-box;
}

/* Label: initial position (cut into border) */
.sd-form .field-wrapper label {
    position: absolute;
    top: -0.7rem;
    left: 0.9rem;
    display: inline-block;
    width: auto;
    background-color: #fff;
    padding: 0 0.25rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #000;
    line-height: 1;
    z-index: 1;
    transition: all 0.25s ease;
    pointer-events: none;
}

/* When input has focus OR has content */
.sd-form .field-wrapper:has(input:focus),
.sd-form .field-wrapper:has(textarea:focus),
.sd-form .field-wrapper:has(input:not(:placeholder-shown)),
.sd-form .field-wrapper:has(textarea:not(:placeholder-shown)) {
    /* ensures full border line again */
}

.sd-form .field-wrapper:has(input:focus) label,
.sd-form .field-wrapper:has(textarea:focus) label,
.sd-form .field-wrapper:has(input:not(:placeholder-shown)) label,
.sd-form .field-wrapper:has(textarea:not(:placeholder-shown)) label {
    top: -1.6rem;         /* move above border */
    font-size: 0.75rem;   /* shrink slightly */
    background-color: transparent; /* let border show through */
    color: #1c4b36;       /* highlight color */
}

/* Textarea bigger */
.sd-form textarea {
    min-height: 8rem;
    resize: vertical;
}

/* Consent row */
.sd-form .consent {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    gap: 0.5rem;
}
.sd-form .consent input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #1c4b36;
    cursor: pointer;
}
.sd-form .consent .wpcf7-list-item { margin: 0; }

/* Submit button */
.sd-form input[type="submit"] {
    background: #1c4b36;
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease-in-out;
}
.sd-form input[type="submit"]:hover {
    background: #16392a;
}

/* Responsive */
@media (max-width: 768px) {
    .sd-form { grid-template-columns: 1fr; }
}





/*COLUMN RESTRICTIONS*/
.sd-scope .col-contained {
    position:relative;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
}


/* 🔎 DEBUG timeline line */
/*.history-slider .slider .flickity-page-dots::before {*/
/*    background: red !important;   !* bright red line *!*/
/*    height: 5px !important;       !* make it chunky *!*/
/*    opacity: 0.7 !important;*/
/*    z-index: 10 !important;*/
/*}*/

/* 🔎 DEBUG year labels */
/*.history-slider .slider .flickity-page-dots .dot::after {*/
/*    background: rgba(0,255,0,0.3) !important; !* semi-transparent green box *!*/
/*    color: black !important;                  !* force visible text *!*/
/*    font-size: 14px !important;*/
/*    font-weight: bold !important;*/
/*    border: 1px dashed lime !important;*/
/*    z-index: 20 !important;*/
/*}*/

/* 🔎 DEBUG bullets */
/*.history-slider .slider .flickity-page-dots .dot {*/
/*    background: yellow !important;   !* fill yellow *!*/
/*    border: 3px solid red !important; !* red outline *!*/
/*}*/


/*END TIMELINE*/
/* Text rotation utility */
.sd-text-rotate-90 {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    position: absolute;
    right: 10px;
    white-space: nowrap;
}

/* Default = mobile first */
.sd-scope .pull-left {
    float: left;
}
.pull-right {
    float: none;               /* don't push on mobile */
    display: inline-block;     /* keep natural width */
    margin-left: 0;            /* reset */
}
/* Tablet+ (768px and up) */
@media (min-width: 768px) {
    .sd-scope .pull-right {
        float: right;          /* button hugs the right edge */
    }
}
