/* ============================================================
   ClickBox Footer — Styles & Animations  |  Montserrat
   ============================================================ */

:root {
    --cb-purple-deep:   #1a0ea8;
    --cb-purple-mid:    #2a1db5;
    --cb-purple-bright: #3b2de0;
    --cb-purple-glow:   #5b4aff;
    --cb-white:         #ffffff;
    --cb-white-70:      rgba(255,255,255,.72);
    --cb-white-35:      rgba(255,255,255,.35);
    --cb-white-15:      rgba(255,255,255,.13);
    --cb-ease:          cubic-bezier(.4,0,.2,1);
}

/* ── Base ── */
.cb-footer {
    background: linear-gradient(145deg, var(--cb-purple-deep) 0%, var(--cb-purple-bright) 100%);
    color: var(--cb-white);
    font-family: 'Montserrat', sans-serif;
    font-size: 1.0625rem;        /* 17px base */
    line-height: 1.65;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.cb-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 90% 55% at 50% 0%, rgba(91,74,255,.38) 0%, transparent 68%);
    pointer-events: none;
}

/* ── Container ── */
.cb-footer__inner { padding: 88px 0 64px; position: relative; z-index: 1; }

.cb-footer__container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 48px;
    display: grid;
    grid-template-columns: 1.45fr 1fr 1.4fr;
    gap: 72px;
    align-items: start;
}

/* ── Logo ── */
.cb-footer__logo-wrap  { margin-bottom: 36px; }

.cb-footer__logo-link {
    display: inline-block;
    transition: transform .35s var(--cb-ease), filter .35s var(--cb-ease);
}

.cb-footer__logo-link:hover {
    transform: scale(1.04);
    filter: drop-shadow(0 0 18px rgba(91,74,255,.75));
}

.cb-footer__logo { max-width: 220px; width: 100%; height: auto; display: block; }

/* ── Info list ── */
.cb-footer__info-list {
    list-style: none;
    margin: 0 0 36px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
    font-size: 1rem;
    color: var(--cb-white-70);
}

.cb-footer__info-list strong { color: var(--cb-white); font-weight: 600; }

.cb-footer__info-list a {
    color: var(--cb-white-70);
    text-decoration: none;
    transition: color .3s;
}
.cb-footer__info-list a:hover { color: var(--cb-white); }

/* ── Social ── */
.cb-footer__social { display: flex; gap: 14px; flex-wrap: wrap; }

.cb-footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--cb-white-15);
    color: var(--cb-white);
    text-decoration: none;
    transition: background .3s var(--cb-ease), transform .3s var(--cb-ease), box-shadow .3s var(--cb-ease);
}

.cb-footer__social-link svg { width: 20px; height: 20px; flex-shrink: 0; }

.cb-footer__social-link:hover { transform: translateY(-5px) scale(1.12); box-shadow: 0 10px 28px rgba(0,0,0,.35); }

.cb-footer__social-link--facebook:hover  { background: #1877f2; }
.cb-footer__social-link--instagram:hover { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.cb-footer__social-link--linkedin:hover  { background: #0a66c2; }
.cb-footer__social-link--youtube:hover   { background: #ff0000; }
.cb-footer__social-link--whatsapp:hover  { background: #25d366; }

/* ── Nav Titles ── */
.cb-footer__nav-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;           /* 24px */
    font-weight: 700;
    letter-spacing: .01em;
    margin: 0 0 22px;
    color: var(--cb-white);
    position: relative;
    padding-bottom: 14px;
}

.cb-footer__nav-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 36px; height: 3px;
    background: var(--cb-white);
    border-radius: 2px;
    transition: width .35s var(--cb-ease);
}

.cb-footer__col:hover .cb-footer__nav-title::after { width: 60px; }

/* ── Accordion trigger (styling layer) ── */
.cb-footer__accordion-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
}

.cb-footer__accordion-icon {
    display: none;               /* visible only on mobile via media query */
    width: 24px; height: 24px;
    flex-shrink: 0;
    border: 2px solid var(--cb-white-70);
    border-radius: 50%;
    position: relative;
    transition: transform .35s var(--cb-ease), border-color .35s var(--cb-ease);
}

/* + symbol */
.cb-footer__accordion-icon::before,
.cb-footer__accordion-icon::after {
    content: '';
    position: absolute;
    background: var(--cb-white);
    border-radius: 2px;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
}
.cb-footer__accordion-icon::before { width: 11px; height: 2px; }
.cb-footer__accordion-icon::after  { width: 2px; height: 11px; transition: opacity .3s, transform .3s; }

/* Rotate to × when open */
.cb-footer__accordion-trigger[aria-expanded="true"] .cb-footer__accordion-icon {
    border-color: var(--cb-white);
    transform: rotate(45deg);
}

/* ── Nav Lists ── */
.cb-footer__nav-group { margin-bottom: 44px; }

.cb-footer__nav-list {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.cb-footer__nav-list a {
    color: var(--cb-white-70);
    text-decoration: none;
    font-size: 1.0625rem;        /* 17px */
    font-weight: 400;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: color .3s, gap .3s;
}

.cb-footer__nav-list a::before {
    content: '•';
    color: var(--cb-purple-glow);
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: transform .3s;
}

.cb-footer__nav-list a:hover { color: var(--cb-white); gap: 14px; }
.cb-footer__nav-list a:hover::before { transform: scale(1.6); }

/* ============================================================
   WPForms — aggressive override to match footer theme
   ============================================================ */

/* Wrap reset */
.cb-footer .cb-footer__wpforms-wrap,
.cb-footer .cb-footer__wpforms-wrap .wpforms-container,
.cb-footer .cb-footer__wpforms-wrap .wpforms-container-full,
.cb-footer .cb-footer__wpforms-wrap .wpforms-form {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Form title hidden (we have our own h3) */
.cb-footer .cb-footer__wpforms-wrap .wpforms-head-container,
.cb-footer .cb-footer__wpforms-wrap .wpforms-title,
.cb-footer .cb-footer__wpforms-wrap .wpforms-description { display: none !important; }

/* Fields */
.cb-footer .cb-footer__wpforms-wrap .wpforms-field {
    padding: 0 0 22px !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
}

/* Labels */
.cb-footer .cb-footer__wpforms-wrap .wpforms-field-label,
.cb-footer .cb-footer__wpforms-wrap .wpforms-field-sublabel {
    color: var(--cb-white-70) !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    letter-spacing: .04em !important;
    text-transform: uppercase !important;
    margin-bottom: 6px !important;
}

/* ★ Main input override — high specificity chain */
.cb-footer .cb-footer__wpforms-wrap .wpforms-container .wpforms-form .wpforms-field input[type="text"],
.cb-footer .cb-footer__wpforms-wrap .wpforms-container .wpforms-form .wpforms-field input[type="email"],
.cb-footer .cb-footer__wpforms-wrap .wpforms-container .wpforms-form .wpforms-field input[type="tel"],
.cb-footer .cb-footer__wpforms-wrap .wpforms-container .wpforms-form .wpforms-field input[type="number"],
.cb-footer .cb-footer__wpforms-wrap .wpforms-container-full .wpforms-form input[type="text"],
.cb-footer .cb-footer__wpforms-wrap .wpforms-container-full .wpforms-form input[type="email"],
.cb-footer .cb-footer__wpforms-wrap .wpforms-container-full .wpforms-form input[type="tel"],
.cb-footer .cb-footer__wpforms-wrap .wpforms-container-full .wpforms-form input[type="number"] {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-bottom: 2px solid var(--cb-white-35) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #ffffff !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 1.0625rem !important;
    padding: 8px 0 10px !important;
    width: 100% !important;
    outline: none !important;
    transition: border-color .3s !important;
    -webkit-appearance: none !important;
}

.cb-footer .cb-footer__wpforms-wrap .wpforms-container .wpforms-form .wpforms-field textarea,
.cb-footer .cb-footer__wpforms-wrap .wpforms-container-full .wpforms-form .wpforms-field textarea {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-bottom: 2px solid var(--cb-white-35) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #ffffff !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 1.0625rem !important;
    padding: 8px 0 10px !important;
    width: 100% !important;
    outline: none !important;
    resize: vertical !important;
    min-height: 80px !important;
    transition: border-color .3s !important;
}

/* Focus state */
.cb-footer .cb-footer__wpforms-wrap .wpforms-container .wpforms-form .wpforms-field input:focus,
.cb-footer .cb-footer__wpforms-wrap .wpforms-container .wpforms-form .wpforms-field textarea:focus,
.cb-footer .cb-footer__wpforms-wrap .wpforms-container-full .wpforms-form .wpforms-field input:focus,
.cb-footer .cb-footer__wpforms-wrap .wpforms-container-full .wpforms-form .wpforms-field textarea:focus {
    border-bottom-color: var(--cb-white) !important;
    box-shadow: 0 2px 0 0 var(--cb-purple-glow) !important;
}

/* Placeholder */
.cb-footer .cb-footer__wpforms-wrap .wpforms-form input::placeholder,
.cb-footer .cb-footer__wpforms-wrap .wpforms-form textarea::placeholder {
    color: rgba(255,255,255,.45) !important;
    font-family: 'Montserrat', sans-serif !important;
}

/* ★ Submit button */
.cb-footer .cb-footer__wpforms-wrap .wpforms-container .wpforms-form .wpforms-submit-container,
.cb-footer .cb-footer__wpforms-wrap .wpforms-container-full .wpforms-form .wpforms-submit-container {
    padding: 8px 0 0 !important;
    text-align: left !important;
}

.cb-footer .cb-footer__wpforms-wrap .wpforms-container .wpforms-form button[type="submit"],
.cb-footer .cb-footer__wpforms-wrap .wpforms-container .wpforms-form .wpforms-submit,
.cb-footer .cb-footer__wpforms-wrap .wpforms-container-full .wpforms-form button[type="submit"],
.cb-footer .cb-footer__wpforms-wrap .wpforms-container-full .wpforms-form .wpforms-submit {
    background: transparent !important;
    background-color: transparent !important;
    border: 2px solid #ffffff !important;
    border-radius: 50px !important;
    color: #ffffff !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    letter-spacing: .07em !important;
    text-transform: uppercase !important;
    padding: 12px 38px !important;
    cursor: pointer !important;
    box-shadow: none !important;
    transition: background .35s var(--cb-ease), color .35s var(--cb-ease), box-shadow .35s var(--cb-ease) !important;
    -webkit-appearance: none !important;
}

.cb-footer .cb-footer__wpforms-wrap .wpforms-form button[type="submit"]:hover,
.cb-footer .cb-footer__wpforms-wrap .wpforms-form .wpforms-submit:hover {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: var(--cb-purple-deep) !important;
    box-shadow: 0 6px 28px rgba(91,74,255,.55) !important;
}

/* Validation error */
.cb-footer .cb-footer__wpforms-wrap .wpforms-field-error,
.cb-footer .cb-footer__wpforms-wrap label.wpforms-error {
    color: #ffb3b3 !important;
    font-size: 0.8125rem !important;
    margin-top: 4px !important;
    background: transparent !important;
    border: none !important;
}

/* Success message */
.cb-footer .cb-footer__wpforms-wrap .wpforms-confirmation-container-full {
    background: var(--cb-white-15) !important;
    border: 1px solid var(--cb-white-35) !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    padding: 16px 20px !important;
    font-family: 'Montserrat', sans-serif !important;
}

/* Name field row (first + last) */
.cb-footer .cb-footer__wpforms-wrap .wpforms-field-name .wpforms-field-row {
    display: flex !important;
    gap: 20px !important;
}

/* ============================================================
   Tagline Marquee — solid text (not outline)
   ============================================================ */
.cb-footer__tagline {
    position: relative;
    z-index: 1;
    overflow: hidden;
    padding: 36px 0 10px;
    border-top: 1px solid var(--cb-white-15);
    mask-image: linear-gradient(90deg, transparent 0%, black 6%, black 94%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 6%, black 94%, transparent 100%);
}

.cb-footer__tagline-track {
    display: flex;
    width: max-content;
    animation: cb-marquee 26s linear infinite;
}

.cb-footer__tagline-track span {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 900;
    font-style: italic;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(255,255,255,.15);   /* solid fill, semi-transparent */
    -webkit-text-stroke: 0;         /* NO outline */
    white-space: nowrap;
    padding: 0 72px;
    transition: color .4s;
}

.cb-footer__tagline:hover .cb-footer__tagline-track { animation-play-state: paused; }
.cb-footer__tagline:hover .cb-footer__tagline-track span { color: rgba(255,255,255,.30); }

@keyframes cb-marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-33.333%); }
}

/* ── Bottom bar ── */
.cb-footer__bottom {
    position: relative; z-index: 1;
    text-align: center;
    padding: 20px 48px 30px;
    font-size: 0.9375rem;
    font-weight: 400;
    color: var(--cb-white-70);
    border-top: 1px solid var(--cb-white-15);
}

/* ── Scroll-In ── */
[data-animate] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .75s ease, transform .75s ease;
}
[data-animate].cb-in-view { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet 768–1199 */
@media (max-width: 1199px) {
    .cb-footer__container {
        grid-template-columns: 1fr 1fr;
        gap: 52px 40px;
        padding: 0 36px;
    }
    .cb-footer__col--info {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 48px;
    }
    .cb-footer__logo-wrap { grid-column: 1 / -1; }
}

/* Mobile ≤767 */
@media (max-width: 767px) {
    .cb-footer__inner { padding: 52px 0 36px; }

    .cb-footer__container {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 0 20px;
    }

    /* Info col: single column */
    .cb-footer__col--info {
        grid-column: 1;
        display: flex;
        flex-direction: column;
    }

    .cb-footer__logo { max-width: 175px; }

    /* Show + icon on mobile */
    .cb-footer__accordion-icon { display: block; }

    /* Make title clickable */
    .cb-footer__accordion-trigger {
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    /* ── Accordion: hide list by default ── */
    .cb-footer__nav-list {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height .45s var(--cb-ease), opacity .35s ease, margin-top .3s;
        margin-top: 0;
    }

    /* ── Open state ── */
    .cb-footer__nav-list.cb-is-open {
        max-height: 500px;
        opacity: 1;
        margin-top: 10px;
    }

    /* Space between groups */
    .cb-footer__nav-group { margin-bottom: 0; border-bottom: 1px solid var(--cb-white-15); padding-bottom: 16px; margin-bottom: 4px; }

    .cb-footer__tagline-track span { font-size: 2.25rem; padding: 0 36px; }

    .cb-footer__bottom { padding: 16px 20px 24px; font-size: 0.875rem; }
}

/* Small mobile ≤420 */
@media (max-width: 420px) {
    .cb-footer__container { padding: 0 16px; }
    .cb-footer__social-link { width: 42px; height: 42px; }
    .cb-footer__social-link svg { width: 18px; height: 18px; }
}
