/* Site search — premium light VT brand */

.page-search {
    background: #ffffff;
}

/* ── Hero ── */
.search-hero {
    position: relative;
    padding: 88px 0 56px;
    background: linear-gradient(180deg, #f0f9ff 0%, #f8fafc 40%, #ffffff 100%);
    overflow: hidden;
}

.search-hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    opacity: 0.45;
}

.search-hero-orb--blue {
    width: 420px;
    height: 420px;
    background: rgba(22, 104, 178, 0.18);
    top: -120px;
    left: -80px;
    animation: search-orb-drift 18s ease-in-out infinite alternate;
}

.search-hero-orb--green {
    width: 360px;
    height: 360px;
    background: rgba(55, 181, 74, 0.14);
    bottom: -100px;
    right: -60px;
    animation: search-orb-drift 22s ease-in-out infinite alternate-reverse;
}

@keyframes search-orb-drift {
    to { transform: translate(40px, 30px) scale(1.08); }
}

.search-hero-mesh {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.3;
    pointer-events: none;
    mask-image: linear-gradient(180deg, #000 0%, #000 70%, transparent 100%);
}

.search-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    padding: 0 1.5rem;
}

.search-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #1668B2;
    background: rgba(22, 104, 178, 0.08);
    border: 1px solid rgba(22, 104, 178, 0.15);
    padding: 8px 16px;
    border-radius: 999px;
    margin-bottom: 20px;
}

.search-hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.03em;
    margin: 0 0 14px;
    line-height: 1.12;
}

.search-title-accent {
    background: linear-gradient(110deg, #0f172a 30%, #1668B2 45%, #37B54A 55%, #0f172a 70%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: search-shine 7s linear infinite;
}

@keyframes search-shine {
    to { background-position: 200% center; }
}

.search-hero-lead {
    font-size: 1.1rem;
    color: #64748b;
    margin: 0 0 36px;
    line-height: 1.65;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.search-form { max-width: 100%; }

.search-input-wrap {
    display: flex;
    align-items: stretch;
    gap: 10px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 10px 10px 10px 22px;
    box-shadow:
        0 4px 6px rgba(15, 23, 42, 0.02),
        0 20px 50px rgba(22, 104, 178, 0.08);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.search-input-wrap:focus-within {
    border-color: #1668B2;
    box-shadow:
        0 4px 6px rgba(15, 23, 42, 0.02),
        0 24px 60px rgba(22, 104, 178, 0.14);
    transform: translateY(-2px);
}

.search-input-icon {
    display: flex;
    align-items: center;
    color: #94a3b8;
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1.1rem;
    color: #0f172a;
    padding: 14px 0;
    min-width: 0;
    outline: none;
}

.search-input::placeholder { color: #94a3b8; }

.search-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 26px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #37B54A 0%, #1668B2 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 8px 24px rgba(22, 104, 178, 0.28);
}

.search-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(22, 104, 178, 0.36);
}

/* Trust strip */
.search-trust-strip {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    margin-top: 36px;
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    backdrop-filter: blur(8px);
}

.search-trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
    gap: 2px;
}

.search-trust-item strong {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: #1668B2;
    line-height: 1;
}

.search-trust-item span {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
}

.search-trust-divider {
    width: 1px;
    height: 32px;
    background: #e2e8f0;
}

/* ── Body ── */
.search-body {
    padding: 48px 0 64px;
}

.search-section-label {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 16px;
    text-align: center;
}

.search-results-meta {
    text-align: center;
    margin-bottom: 36px;
}

.search-results-meta h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.search-results-meta strong { color: #1668B2; }

.search-results-list {
    max-width: 800px;
    margin: 0 auto 48px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.search-result-card {
    display: block;
    padding: 24px 28px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.search-result-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #37B54A, #1668B2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-result-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(22, 104, 178, 0.1);
    border-color: rgba(22, 104, 178, 0.22);
}

.search-result-card:hover::before { opacity: 1; }

.search-result-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.search-type-badge {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 5px 12px;
    border-radius: 999px;
    text-transform: uppercase;
}

.search-type-badge--service { background: #eff6ff; color: #1668B2; }
.search-type-badge--post { background: #f0fdf4; color: #059669; }
.search-type-badge--case_study { background: #fff7ed; color: #c2410c; }
.search-type-badge--industry { background: #f5f3ff; color: #6d28d9; }
.search-type-badge--news { background: #fef2f2; color: #b91c1c; }
.search-type-badge--solution { background: #ecfeff; color: #0e7490; }

.search-result-arrow {
    color: #cbd5e1;
    transition: transform 0.25s ease, color 0.25s ease;
}

.search-result-card:hover .search-result-arrow {
    color: #1668B2;
    transform: translateX(4px);
}

.search-result-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: #0f172a;
}

.search-result-excerpt {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
    line-height: 1.65;
}

/* Empty */
.search-empty {
    max-width: 520px;
    margin: 0 auto 40px;
    text-align: center;
    padding: 24px;
}

.search-empty-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(22, 104, 178, 0.08), rgba(55, 181, 74, 0.08));
    border-radius: 20px;
    color: #1668B2;
}

.search-empty h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 10px;
}

.search-empty p {
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

.search-inline-link {
    color: #1668B2;
    font-weight: 600;
    text-decoration: none;
}

.search-inline-link:hover { text-decoration: underline; }

/* Trending chips */
.search-trending {
    max-width: 640px;
    margin: 0 auto 56px;
    text-align: center;
}

.search-trending-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.search-chip {
    padding: 10px 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    color: #475569;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
}

.search-chip:hover {
    border-color: #1668B2;
    color: #1668B2;
    background: #f0f9ff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(22, 104, 178, 0.08);
}

/* Explore grid */
.search-explore {
    max-width: 1000px;
    margin: 0 auto;
}

.search-explore-header {
    text-align: center;
    margin-bottom: 32px;
}

.search-explore-header p {
    color: #64748b;
    margin: 8px 0 0;
    font-size: 0.95rem;
}

.search-explore-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.search-explore-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
    position: relative;
}

.search-explore-card:hover {
    transform: translateY(-6px);
    border-color: rgba(22, 104, 178, 0.25);
    box-shadow: 0 20px 48px rgba(22, 104, 178, 0.1);
}

.search-explore-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(22, 104, 178, 0.1), rgba(55, 181, 74, 0.08));
    border-radius: 14px;
    color: #1668B2;
}

.search-explore-icon svg {
    width: 24px;
    height: 24px;
}

.search-explore-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.search-explore-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: #0f172a;
}

.search-explore-desc {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.5;
}

.search-explore-arrow {
    color: #cbd5e1;
    flex-shrink: 0;
    margin-top: 4px;
    transition: transform 0.25s ease, color 0.25s ease;
}

.search-explore-card:hover .search-explore-arrow {
    color: #1668B2;
    transform: translateX(4px);
}

/* Bottom CTA */
.search-bottom-cta {
    padding: 0 0 80px;
    background: #ffffff;
}

.search-cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
    padding: 40px 48px;
    background: linear-gradient(135deg, #f0f9ff 0%, #f0fdf4 100%);
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    box-shadow: 0 12px 40px rgba(22, 104, 178, 0.06);
}

.search-cta-text h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}

.search-cta-text p {
    margin: 0;
    color: #64748b;
    font-size: 1rem;
    line-height: 1.55;
    max-width: 480px;
}

.search-cta-btn {
    display: inline-flex;
    align-items: center;
    padding: 16px 32px;
    background: linear-gradient(135deg, #37B54A 0%, #1668B2 100%);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(22, 104, 178, 0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.search-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(22, 104, 178, 0.32);
    color: #fff;
}

@media (max-width: 900px) {
    .search-explore-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .search-hero { padding: 64px 0 40px; }

    .search-input-wrap {
        flex-direction: column;
        padding: 16px;
        gap: 12px;
    }

    .search-input-icon { display: none; }
    .search-submit { width: 100%; justify-content: center; }

    .search-trust-strip {
        flex-direction: column;
        gap: 12px;
        padding: 20px;
    }

    .search-trust-divider {
        width: 48px;
        height: 1px;
    }

    .search-explore-grid { grid-template-columns: 1fr; }

    .search-cta-card {
        flex-direction: column;
        text-align: center;
        padding: 32px 24px;
    }

    .search-cta-text p { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
    .search-hero-orb,
    .search-title-accent { animation: none; }
    .search-result-card:hover,
    .search-submit:hover,
    .search-chip:hover,
    .search-explore-card:hover,
    .search-cta-btn:hover,
    .search-input-wrap:focus-within { transform: none; }
}
