/**
 * footer.css — Site Footer
 * TradeUp BC — Homepage Redesign v2
 *
 * Contents:
 *  1. Footer Wrapper
 *  2. Footer Top (Main Content Grid)
 *     2a. Brand Column (logo + social + contact)
 *     2b. Navigation Column
 *     2c. Newsletter Column
 *  3. Footer Bottom (Copyright Bar)
 *  4. Responsive
 */


/* =============================================================================
   1. FOOTER WRAPPER
   ============================================================================= */

.v2-footer {
    background-color: var(--c-green-dk);
    position: relative;
    overflow: hidden;
}

/* Watermark background image */
.v2-footer__watermark {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.06;
}

.v2-footer__watermark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
}


/* =============================================================================
   2. FOOTER TOP (MAIN CONTENT GRID)
   ============================================================================= */

.v2-footer__top {
    position: relative;
    z-index: 1;
    padding-block: var(--space-16) var(--space-12);
}

.v2-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.5fr;
    gap: var(--space-10);
    align-items: start;
}

/* ---- Shared widget styles ---- */

.v2-footer__widget-title {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--c-gold);
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid rgba(255,255,255,0.12);
}


/* =============================================================================
   2a. BRAND COLUMN
   ============================================================================= */

.v2-footer__brand {}

.v2-footer__logo {
    display: inline-block;
    margin-bottom: var(--space-6);
    text-decoration: none;
}

.v2-footer__logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

/* Social icons row */
.v2-footer__social {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-bottom: var(--space-8);
}

.v2-footer__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.75);
    font-size: 17px;
    text-decoration: none;
    transition: var(--ease-fast);
}

.v2-footer__social a:hover {
    background-color: var(--c-gold);
    color: var(--c-dark);
    transform: translateY(-2px);
}

/* Contact info list */
.v2-footer__contact {}

.v2-footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.78);
    line-height: 1.55;
}

.v2-footer__contact-item:last-child { margin-bottom: 0; }

.v2-footer__contact-item i {
    font-size: 18px;
    color: var(--c-gold);
    flex-shrink: 0;
    margin-top: 2px;
}

.v2-footer__contact-item a {
    color: rgba(255,255,255,0.78);
    text-decoration: none;
    transition: var(--ease-fast);
}

.v2-footer__contact-item a:hover { color: var(--c-gold); }


/* =============================================================================
   2b. NAVIGATION COLUMN
   ============================================================================= */

.v2-footer__nav {}

.v2-footer__nav-list {}

.v2-footer__nav-item {
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.v2-footer__nav-item:last-child { border-bottom: none; }

.v2-footer__nav-item a {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding-block: var(--space-3);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    color: rgba(255,255,255,0.78);
    text-decoration: none;
    transition: var(--ease-fast);
}

.v2-footer__nav-item a::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--c-gold);
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 200ms ease;
}

.v2-footer__nav-item a:hover {
    color: var(--c-gold);
    padding-left: var(--space-2);
}

.v2-footer__nav-item a:hover::before { opacity: 1; }


/* =============================================================================
   2c. NEWSLETTER COLUMN
   ============================================================================= */

.v2-footer__newsletter {}

.v2-footer__newsletter p {
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.72);
    line-height: 1.65;
    margin-bottom: var(--space-5);
}

/* Override Gravity Forms input to match dark footer */
.v2-footer__newsletter .gform_wrapper input[type="email"],
.v2-footer__newsletter .gform_wrapper input[type="text"] {
    background-color: rgba(255,255,255,0.1) !important;
    border: 1px solid rgba(255,255,255,0.25) !important;
    color: var(--c-white) !important;
    border-radius: var(--radius-sm) !important;
    padding: 12px 16px !important;
}

.v2-footer__newsletter .gform_wrapper input::placeholder {
    color: rgba(255,255,255,0.45) !important;
}

.v2-footer__newsletter .gform_wrapper .gform_submit_button,
.v2-footer__newsletter .gform_wrapper input[type="submit"] {
    background-color: var(--c-gold) !important;
    color: var(--c-dark) !important;
    border: none !important;
    border-radius: var(--radius-sm) !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    padding: 12px 24px !important;
    cursor: pointer !important;
    transition: var(--ease) !important;
}

.v2-footer__newsletter .gform_wrapper .gform_submit_button:hover,
.v2-footer__newsletter .gform_wrapper input[type="submit"]:hover {
    background-color: var(--c-gold-dk) !important;
}


/* =============================================================================
   3. FOOTER BOTTOM (COPYRIGHT BAR)
   ============================================================================= */

.v2-footer__bottom {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-block: var(--space-5);
}

.v2-footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.v2-footer__copyright-list {
    display: flex;
    align-items: center;
    gap: var(--space-5);
    flex-wrap: wrap;
}

.v2-footer__copyright-list li {
    font-size: var(--text-xs);
    color: rgba(255,255,255,0.5);
}

.v2-footer__copyright-list li a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: var(--ease-fast);
}

.v2-footer__copyright-list li a:hover { color: var(--c-gold); }

/* Divider dots between items */
.v2-footer__copyright-list li + li::before {
    content: '·';
    margin-right: var(--space-5);
    color: rgba(255,255,255,0.25);
}

.v2-footer__credit {
    font-size: var(--text-xs);
    color: rgba(255,255,255,0.4);
}

.v2-footer__credit a {
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    transition: var(--ease-fast);
}

.v2-footer__credit a:hover { color: rgba(255,255,255,0.75); }


/* =============================================================================
   4. RESPONSIVE
   ============================================================================= */

@media (max-width: 1100px) {
    .v2-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-8);
    }
}

@media (max-width: 767px) {
    .v2-footer__grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .v2-footer__top { padding-block: var(--space-10) var(--space-8); }

    .v2-footer__bottom-inner { flex-direction: column; text-align: center; }

    .v2-footer__copyright-list li + li::before { display: none; }
    .v2-footer__copyright-list { gap: var(--space-3); }
}
