/* ===================================================================
 * CioceaSoft - additions on top of the Flare template (styles.css)
 * Uses the template's own variables so everything stays on-brand.
 * ------------------------------------------------------------------- */

/* Inline SVG icons (replace the 1.1 MB Font Awesome script) */
.svg-inline--fa {
    display: inline-block;
    height: 1em;
    width: auto;
    overflow: visible;
    vertical-align: -.125em;
    fill: currentColor;
}

/* Visible keyboard focus */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
    outline: 2px solid var(--color-white);
    outline-offset: 3px;
}

/* ------------------------------------------------------------------- 
 * portfolio
 * ------------------------------------------------------------------- */
.folio-item__thumb img {
    width: 100%;
    height: auto;
}

.s-portfolio__empty {
    font-size: var(--text-lg);
    color: var(--color-gray-8);
}

/* ------------------------------------------------------------------- 
 * contact form (sits on the red contact section)
 * ------------------------------------------------------------------- */
.s-contact {
    scroll-margin-top: 8rem;
}

.s-contact__form {
    margin-top: var(--vspace-2);
    text-align: left;
}

.s-contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 3.2rem;
}

.s-contact__field {
    margin-bottom: var(--vspace-0_75);
}

.s-contact__field label {
    color: var(--color-white);
}

.s-contact__optional {
    font-weight: 400;
    opacity: .75;
}

.s-contact__form input[type="text"],
.s-contact__form input[type="email"],
.s-contact__form textarea,
.s-contact__form select {
    margin-bottom: 0;
    color: var(--color-gray-3);
    background-color: var(--color-gray-18);
}

.s-contact__form textarea {
    min-height: 18rem;
    resize: vertical;
}

.s-contact__form input:focus,
.s-contact__form textarea:focus,
.s-contact__form select:focus {
    color: var(--color-white);
    border-color: var(--color-white);
    box-shadow: 0 0 0 1px var(--color-white);
}

.s-contact__form .ss-custom-select {
    margin-bottom: 0;
}

.s-contact__error {
    min-height: 0;
    margin: .8rem 0 0;
    font-size: var(--text-sm);
    line-height: 1.4;
    font-weight: 600;
    color: var(--color-white);
}

.s-contact__error:empty {
    display: none;
}

.s-contact__field.has-error input,
.s-contact__field.has-error textarea {
    border-color: var(--color-3);
    box-shadow: 0 0 0 1px var(--color-3);
}

/* honeypot: off-screen, not display:none (some bots skip hidden fields) */
.s-contact__hp {
    position: absolute !important;
    left: -10000px !important;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.cf-turnstile {
    margin-bottom: var(--vspace-0_75);
}

.s-contact__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.6rem 3.2rem;
    margin-top: var(--vspace-0_5);
}

.s-contact__submit {
    margin: 0;
}

.s-contact__submit[disabled] {
    opacity: .6;
    cursor: wait;
}

.s-contact__privacy {
    flex: 1 1 24rem;
    margin: 0;
    font-size: var(--text-sm);
    line-height: 1.5;
    color: rgba(255, 255, 255, .8);
}

.s-contact__status .alert-box {
    margin-bottom: var(--vspace-1);
}

.s-contact__status .alert-box p {
    margin: 0;
}

/* footer */
.s-footer__copy {
    margin-top: var(--vspace-1);
    margin-bottom: 0;
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, .75);
}

@media screen and (max-width: 700px) {
    .s-contact__grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}
