/* ================================================================
   Influtics Theme Custom Overrides
   style2.css — loaded after main style.css
   ================================================================ */

/* ================================================================
   HEADER / SIDEBAR — Custom social icon images
   (replaces old flaticon font icons with uploadable images)
   ================================================================ */
.jo-social-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transition: background 0.2s, transform 0.2s;
    overflow: hidden;
    flex-shrink: 0;
}
.jo-social-icon-link:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}
.jo-sidebar-social-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
    filter: brightness(0) invert(1); /* make icons white on dark bg */
}
/* If the icon is already colorful (not monochrome), override per-use:
   Just upload a white/transparent PNG and the filter works great.
   Or upload a color PNG and add class="jo-color-icon" to remove filter. */
.jo-sidebar-social-img.jo-color-icon {
    filter: none;
}

/* Sidebar social row spacing */
.jo-sidebar-socials .jo-social-icon-link {
    margin-right: 6px;
}

/* ================================================================
   CONTACT FORM 7 — Theme Integration
   Makes CF7 forms look exactly like the native jo-contact-form
   ================================================================ */

/* CF7 wrapper inside the contact section */
.jo-cf7-wrapper .wpcf7 {
    margin: 0;
}

/* Remove CF7's default blue border-left on response messages */
.jo-cf7-wrapper .wpcf7 .screen-reader-response {
    display: none;
}

/* Style CF7 inputs & textarea to match the theme */
.jo-cf7-wrapper .wpcf7 input[type="text"],
.jo-cf7-wrapper .wpcf7 input[type="email"],
.jo-cf7-wrapper .wpcf7 input[type="tel"],
.jo-cf7-wrapper .wpcf7 input[type="url"],
.jo-cf7-wrapper .wpcf7 textarea,
.jo-cf7-wrapper .wpcf7 select {
    width: 100%;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 0.95rem;
    color: inherit;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    display: block;
    margin-bottom: 4px;
}

.jo-cf7-wrapper .wpcf7 input:focus,
.jo-cf7-wrapper .wpcf7 textarea:focus {
    border-color: var(--jo-primary, #7c3aed);
    outline: none;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

/* CF7 form rows spacing */
.jo-cf7-wrapper .wpcf7 .wpcf7-form-control-wrap {
    display: block;
    margin-bottom: 16px;
    width: 100%;
}

/* Labels */
.jo-cf7-wrapper .wpcf7 label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.8;
}

/* CF7 Submit button — match jo-btn */
.jo-cf7-wrapper .wpcf7 input[type="submit"],
.jo-cf7-wrapper .wpcf7 .wpcf7-submit {
    background: var(--jo-primary, #7c3aed);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    display: inline-block;
}
.jo-cf7-wrapper .wpcf7 input[type="submit"]:hover {
    background: #6d28d9;
    transform: translateY(-1px);
}

/* CF7 Validation errors — clean inline style */
.jo-cf7-wrapper .wpcf7-not-valid-tip {
    color: #f87171;
    font-size: 0.82em;
    margin-top: 3px;
    display: block;
}
.jo-cf7-wrapper .wpcf7-not-valid {
    border-color: #f87171 !important;
}

/* CF7 success/error response messages */
.jo-cf7-wrapper .wpcf7-response-output {
    border-radius: 8px;
    padding: 10px 14px;
    margin-top: 12px;
    font-size: 0.9rem;
    border: none !important;
}
.jo-cf7-wrapper .wpcf7-mail-sent-ok {
    background: rgba(134, 239, 172, 0.15);
    color: #86efac;
}
.jo-cf7-wrapper .wpcf7-validation-errors,
.jo-cf7-wrapper .wpcf7-spam-blocked,
.jo-cf7-wrapper .wpcf7-mail-sent-ng,
.jo-cf7-wrapper .wpcf7-acceptance-missing {
    background: rgba(248, 113, 113, 0.15);
    color: #f87171;
}

/* CF7 spinner */
.jo-cf7-wrapper .wpcf7 .ajax-loader {
    margin-left: 10px;
    vertical-align: middle;
}

/* ================================================================
   SECTION VISIBILITY — prevent layout shift when sections hidden
   ================================================================ */

/* These are display:none placeholders. The sections are actually
   removed from DOM server-side by PHP, so no extra CSS needed.
   But add this for any JS-toggled elements: */
[data-influtics-hidden="1"] {
    display: none !important;
}

/* ================================================================
   HEADER — Text logo fallback (when no image logo is set)
   ================================================================ */
.jo-text-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
    text-decoration: none;
}

.jo-header .jo-text-logo {
    color: #fff;
}

/* ================================================================
   FOOTER — Instagram feed grid supports 9 images
   ================================================================ */
.jo-footer-gallery .imgs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}
.jo-footer-gallery .imgs a {
    display: block;
    overflow: hidden;
    border-radius: 6px;
    aspect-ratio: 1;
}
.jo-footer-gallery .imgs a img,
.jo-footer-gallery .imgs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    transition: transform 0.3s;
}
.jo-footer-gallery .imgs a:hover img {
    transform: scale(1.05);
}