/**
 * ============================================================================
 * Expeditious Tools - Global Layout Stylesheet (Footer, Header Search & Related Tools)
 * Ensures consistent UI/UX across Home and all Tool pages
 * ============================================================================
 */

:root {
    --et-primary: #ffc800;
    --et-primary-hover: #e5b400;
    --et-primary-dark: #cc9f00;
    --et-primary-light: #fff3c4;
    --et-radius-full: 9999px;
    --et-transition-fast: 0.15s ease;
}

/* ==========================================================================
   GLOBAL NAVBAR SEARCH TRIGGER
   ========================================================================== */
.header-search-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #cbd5e1;
    padding: 7px 14px;
    border-radius: var(--et-radius-full, 9999px);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--et-transition-fast, 0.15s ease);
    margin-left: 12px;
}

.header-search-trigger:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 200, 0, 0.5);
    color: var(--et-primary, #ffc800);
}

.header-search-trigger svg {
    width: 14px;
    height: 14px;
}

.header-search-trigger kbd {
    font-size: 0.7rem;
    padding: 2px 6px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}

@media (max-width: 767px) {
    .header-search-trigger {
        display: none;
    }
}

/* ==========================================================================
   RELATED TOOLS SECTION (Above Footer)
   ========================================================================== */
.related-tools {
    padding: 60px 0;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}
.related-tools-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
    text-align: center;
}
.related-tools-intro {
    font-size: 0.98rem;
    color: #64748b;
    text-align: center;
    margin-bottom: 32px;
}
.related-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
}
.related-tool-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    padding: 22px 20px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.related-tool-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1;
    color: inherit;
}
.related-tool-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px;
}
.related-tool-card p {
    font-size: 0.88rem;
    line-height: 1.5;
    color: #64748b;
    margin: 0 0 16px;
    flex: 1;
}
.related-tool-cta {
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f172a;
    border-bottom: 2px solid #ffc800;
    display: inline-block;
    align-self: flex-start;
    padding-bottom: 2px;
    transition: color 0.15s ease;
}
.related-tool-card:hover .related-tool-cta {
    color: #d97706;
}

/* ==========================================================================
   GLOBAL SAAS FOOTER
   ========================================================================== */
.footer-saas {
    background: #0d1219;
    color: #94a3b8;
    padding: 70px 20px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-family: var(--bs-body-font-family, Poppins, -apple-system, sans-serif);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 36px 24px;
    max-width: 1240px;
    margin: 0 auto 50px;
}

@media (min-width: 576px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
        gap: 32px;
    }
}

.footer-brand h4 {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 12px;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #94a3b8;
    margin: 0 0 18px;
    max-width: 320px;
}

.footer-col h5 {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 16px;
}

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

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

.footer-links a {
    color: #cbd5e1;
    font-size: 0.885rem;
    text-decoration: none;
    transition: color var(--et-transition-fast, 0.15s ease);
}

.footer-links a:hover {
    color: var(--et-primary, #ffc800);
}

.footer-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    transition: all var(--et-transition-fast, 0.15s ease);
    text-decoration: none;
}

.footer-social-btn:hover {
    background: var(--et-primary, #ffc800);
    color: #0f172a;
    transform: translateY(-2px);
}

.footer-bottom {
    max-width: 1240px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.84rem;
    color: #64748b;
}

@media (max-width: 576px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
