/*
 * cwf-footer.css
 * Styles for the CWF child theme footer (footer.php)
 *
 * Enqueue via functions.php — see snippet at bottom of this file.
 * Place this file in your child theme's /css/ folder.
 */

/* ── Footer wrapper ───────────────────────────────────────────────────────── */

.cwf-footer {
    background: #25408f; /* #0d2d4f */
    color: #c8daea;
    font-size: 14px;
    line-height: 1.6;
    padding: 3rem 2rem 0;
    margin-top: 3rem;
}

div.wrapper {
    padding-bottom: 0 !important;
}

.cwf-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
}

/* ── Shared section label ─────────────────────────────────────────────────── */

.cwf-footer-col-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #7aabd4;
    margin-bottom: 1rem;
}

/* ── Row 1: Top columns ───────────────────────────────────────────────────── */

.cwf-footer-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Brand column */

.cwf-footer-brand-name {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
}

.cwf-footer-tagline {
    font-size: 13px;
    color: #a0bcd4;
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

/* Contact lines */

.cwf-footer-contact-lines {
    margin-bottom: 1rem;
}

.cwf-contact-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 13px;
    color: #c8daea;
    text-decoration: none;
}

.cwf-contact-line:hover {
    color: #fff;
}

.cwf-contact-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #7aabd4;
}

/* Google review badge */

.cwf-review-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 14px;
    text-decoration: none;
    transition: background 0.15s ease;
}

.cwf-review-badge:hover {
    background: rgba(255, 255, 255, 0.09);
}

.cwf-stars {
    color: #f5a623;
    font-size: 15px;
    letter-spacing: 1px;
    line-height: 1;
    margin-bottom: 2px;
}

.cwf-review-badge p {
    font-size: 12px;
    color: #a0bcd4;
    margin: 0;
}

.cwf-review-badge strong {
    color: #fff;
    font-weight: 600;
}

/* Footer nav links */

.cwf-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cwf-footer-links li {
    margin-bottom: 7px;
}

.cwf-footer-links a {
    font-size: 13px;
    color: #a0bcd4;
    text-decoration: none;
    transition: color 0.1s ease;
}

.cwf-footer-links a:hover {
    color: #fff;
}

/* ── Row 2: Trust cards ───────────────────────────────────────────────────── */

.cwf-footer-trust {
    padding: 2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cwf-trust-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
}

.cwf-trust-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
    padding: 1rem;
}

.cwf-trust-icon {
    width: 28px;
    height: 28px;
    background: #185fa5;
    border-radius: 6px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cwf-trust-icon svg {
    width: 16px;
    height: 16px;
}

.cwf-trust-card h4 {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
    line-height: 1.3;
}

.cwf-trust-card p {
    font-size: 12px;
    color: #7aabd4;
    line-height: 1.5;
    margin: 0;
}

/* ── Row 3: Contact form ──────────────────────────────────────────────────── */

.cwf-footer-form-section {
    padding: 2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cwf-footer-form-inner {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
}

.cwf-footer-form-intro h3 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.cwf-footer-form-intro p {
    font-size: 13px;
    color: #a0bcd4;
    line-height: 1.65;
    margin: 0;
}

.cwf-footer-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cwf-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.cwf-footer-form input,
.cwf-footer-form textarea {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 13px;
    color: #fff;
    width: 100%;
    outline: none;
    font-family: inherit;
    transition: border-color 0.15s ease;
}

.cwf-footer-form input:focus,
.cwf-footer-form textarea:focus {
    border-color: rgba(120, 171, 212, 0.5);
}

.cwf-footer-form input::placeholder,
.cwf-footer-form textarea::placeholder {
    color: #5a7a94;
}

.cwf-footer-form textarea {
    resize: vertical;
    min-height: 90px;
}

.cwf-footer-form-btn {
    background: #185fa5;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 11px 24px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    font-family: inherit;
    transition: background 0.15s ease;
}

.cwf-footer-form-btn:hover {
    background: #1a6db8;
}

/* ── Row 4: Badges ────────────────────────────────────────────────────────── */

.cwf-footer-badges-section {
    padding: 1.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cwf-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cwf-badge {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 12px;
    color: #c8daea;
    font-weight: 500;
}

.cwf-badge--highlight {
    background: rgba(24, 95, 165, 0.3);
    border-color: rgba(24, 95, 165, 0.5);
    color: #85b7eb;
}

/* ── Row 5: Copyright bar ─────────────────────────────────────────────────── */

.cwf-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 0;
    flex-wrap: wrap;
    gap: 12px;
}

.cwf-footer-bottom p {
    font-size: 12px;
    color: #5a7a94;
    margin: 0;
}

.cwf-footer-bottom-links {
    display: flex;
    gap: 20px;
}

.cwf-footer-bottom-links a {
    font-size: 12px;
    color: #5a7a94;
    text-decoration: none;
    transition: color 0.1s ease;
}

.cwf-footer-bottom-links a:hover {
    color: #a0bcd4;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media ( max-width: 1024px ) {
    .cwf-trust-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media ( max-width: 768px ) {
    .cwf-footer-top {
        grid-template-columns: 1fr 1fr;
    }

    .cwf-footer-col--brand {
        grid-column: 1 / -1;
    }

    .cwf-footer-form-inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cwf-trust-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cwf-form-row {
        grid-template-columns: 1fr;
    }
}

@media ( max-width: 480px ) {
    .cwf-footer {
        padding: 2rem 1rem 0;
    }

    .cwf-footer-top {
        grid-template-columns: 1fr;
    }

    .cwf-trust-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cwf-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/*
 * ── functions.php snippet ──────────────────────────────────────────────────
 *
 * Add this to your child theme's functions.php to enqueue the stylesheet:
 *
 * add_action( 'wp_enqueue_scripts', 'cwf_enqueue_footer_styles' );
 * function cwf_enqueue_footer_styles() {
 *     wp_enqueue_style(
 *         'cwf-footer',
 *         get_stylesheet_directory_uri() . '/css/cwf-footer.css',
 *         [],
 *         '1.0.0'
 *     );
 * }
 */
