/* Help Desk Partners — public front site */
:root {
    --front-primary: #2563eb;
    --front-primary-dark: #1d4ed8;
    --front-accent: #7c3aed;
    --front-surface: #f9fafb;
    --front-ink: #111827;
    --front-muted: #6b7280;
    --front-header-h: 4.5rem;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body.front-site {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

.front-main {
    overflow-x: hidden;
    max-width: 100%;
}

.front-main img,
.front-footer img {
    max-width: 100%;
    height: auto;
}

/* Header */
.front-header {
    height: var(--front-header-h);
}

.front-header.is-scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 24px -4px rgba(17, 24, 39, 0.08);
}

.front-nav-link {
    position: relative;
    padding-bottom: 2px;
}

.front-nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--front-primary), var(--front-accent));
    border-radius: 2px;
    transition: width 0.25s ease;
}

.front-nav-link:hover::after,
.front-nav-link.is-active::after {
    width: 100%;
}

/* Page hero (inner pages) */
.front-page-hero {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 45%, #4c1d95 100%);
    position: relative;
    overflow: hidden;
}

.front-page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(59, 130, 246, 0.35), transparent),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(139, 92, 246, 0.25), transparent);
    pointer-events: none;
}

.front-page-hero .front-hero-grid {
    position: absolute;
    inset: 0;
    opacity: 0.06;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.8) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.8) 1px, transparent 1px);
    background-size: 48px 48px;
}

/* Section label */
.front-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--front-primary);
}

.front-eyebrow::before {
    content: '';
    width: 2rem;
    height: 2px;
    background: linear-gradient(90deg, var(--front-primary), var(--front-accent));
    border-radius: 2px;
}

/* Cards */
.front-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 1.25rem;
    transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.front-card:hover {
    box-shadow: 0 20px 40px -12px rgba(17, 24, 39, 0.12);
    border-color: #d1d5db;
}

/* Legal / prose */
.front-prose {
    color: #4b5563;
    line-height: 1.75;
}

.front-prose section + section {
    padding-top: 1.5rem;
    border-top: 1px solid #f3f4f6;
}

.front-prose h2 {
    color: var(--front-ink);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

/* Home banner (split layout) */
.front-banner {
    position: relative;
    background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 50%, #ffffff 100%);
    border-bottom: 1px solid #e5e7eb;
    overflow: hidden;
}

.front-banner-inner {
    position: relative;
    z-index: 2;
}

.front-banner-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    border: 1px solid #dbeafe;
    color: #1d4ed8;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.4rem 0.85rem;
    border-radius: 9999px;
    margin-bottom: 1.25rem;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.1);
}

.front-banner-visual {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(30, 64, 175, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.8);
    min-height: 280px;
}

.front-banner-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 280px;
}

.front-banner-visual-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(17, 24, 39, 0.75) 0%, transparent 55%);
}

.front-banner-offer-card {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    border: 1px solid #e5e7eb;
}

.front-banner-deco {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
}

.front-banner-deco-1 {
    width: 220px;
    height: 220px;
    background: rgba(59, 130, 246, 0.2);
    top: -40px;
    right: -20px;
}

.front-banner-deco-2 {
    width: 200px;
    height: 200px;
    background: rgba(139, 92, 246, 0.15);
    bottom: -30px;
    left: -20px;
}

@media (min-width: 768px) {
    .front-banner-deco-1 {
        width: 320px;
        height: 320px;
        top: -80px;
        right: -40px;
    }

    .front-banner-deco-2 {
        width: 280px;
        height: 280px;
        bottom: -60px;
        left: -40px;
    }
}

@media (min-width: 1024px) {
    .front-banner-visual {
        min-height: 420px;
    }
    .front-banner-visual img {
        min-height: 420px;
    }
}

/* Trust bar below hero */
.front-trust-bar {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.front-trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}

/* Reviews slider */
.front-reviews-track {
    position: relative;
    min-height: 300px;
}

@media (min-width: 768px) {
    .front-reviews-track {
        min-height: 260px;
    }
}

.front-reviews-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
}

/* Footer */
.front-footer {
    margin-top: auto;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.front-footer-cta {
    background: linear-gradient(120deg, #1e40af 0%, #4338ca 50%, #6d28d9 100%);
    width: 100%;
    max-width: 100%;
}

.front-footer-main {
    background: #111827;
    color: #fff;
}

.front-footer-bottom {
    background: #0b1220;
    border-top: 1px solid #1f2937;
}

.front-footer-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 1.25rem;
}

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

.front-footer-links li {
    margin-bottom: 0.75rem;
}

.front-footer-links a {
    color: #9ca3af;
    font-size: 0.875rem;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.front-footer-links a:hover {
    color: #fff;
    transform: translateX(4px);
}

.front-footer-social {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background: #1f2937;
    color: #9ca3af;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.front-footer-social:hover {
    background: #2563eb;
    color: #fff;
    transform: translateY(-2px);
}

.front-footer-contact-card {
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
}

.front-footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.front-footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    min-width: 0;
}

.front-footer-contact-item p,
.front-footer-contact-text {
    min-width: 0;
    flex: 1;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.front-footer-contact-item a {
    padding-top: 0.125rem;
}

.front-footer-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background: rgba(37, 99, 235, 0.2);
    color: #60a5fa;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.875rem;
}

.front-footer-icon-green {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

/* Animations */
@keyframes frontFadeUp {
    from {
        opacity: 0;
        transform: translate3d(0, 24px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes frontBlob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(24px, -16px) scale(1.05); }
    66% { transform: translate(-16px, 12px) scale(0.95); }
}

.animate-front-fade-up {
    animation: frontFadeUp 0.7s ease both;
}

.animate-front-blob {
    animation: frontBlob 8s ease-in-out infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

/* FAQ accordion */
.front-faq-panel {
    overflow: hidden;
}

/* CTA strip */
.front-cta-band {
    background: linear-gradient(120deg, #2563eb 0%, #4f46e5 50%, #7c3aed 100%);
}

/* Stat counter */
.front-stat-value {
    background: linear-gradient(180deg, #fff 0%, #bfdbfe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Focus ring for a11y */
.front-input:focus {
    outline: none;
    border-color: var(--front-primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

/* Tablet: slightly taller header */
@media (min-width: 640px) and (max-width: 1023px) {
    :root {
        --front-header-h: 4.25rem;
    }
}
