/**
 * C Sharp Recording Studio — site footer
 */

.cs-footer {
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(var(--cs-rgb-olive), 0.14);
    background:
        radial-gradient(90% 120% at 0% 0%, rgba(var(--cs-rgb-lime), 0.09), transparent 55%),
        radial-gradient(80% 100% at 100% 100%, rgba(var(--cs-rgb-olive), 0.07), transparent 50%),
        linear-gradient(180deg, #ffffff 0%, #fafcf7 48%, #f6f8f2 100%);
    padding: clamp(36px, 5vw, 52px) 0 clamp(20px, 3vw, 28px);
    font-family: 'Inter', sans-serif;
}

.cs-footer::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--cs-lime-soft) 12%,
        var(--cs-lime) 35%,
        var(--cs-olive) 68%,
        var(--cs-olive-dark) 88%,
        transparent 100%
    );
    opacity: 0.85;
}

.cs-footer-eq {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.045;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='120' viewBox='0 0 240 120'%3E%3Cg fill='%23435624'%3E%3Crect x='8' y='72' width='6' height='36' rx='3'/%3E%3Crect x='28' y='56' width='6' height='52' rx='3'/%3E%3Crect x='48' y='64' width='6' height='44' rx='3'/%3E%3Crect x='68' y='40' width='6' height='68' rx='3'/%3E%3Crect x='88' y='58' width='6' height='50' rx='3'/%3E%3Crect x='108' y='48' width='6' height='60' rx='3'/%3E%3Crect x='128' y='66' width='6' height='42' rx='3'/%3E%3Crect x='148' y='52' width='6' height='56' rx='3'/%3E%3Crect x='168' y='34' width='6' height='74' rx='3'/%3E%3Crect x='188' y='60' width='6' height='48' rx='3'/%3E%3Crect x='208' y='70' width='6' height='38' rx='3'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 280px 140px;
    background-repeat: repeat;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 85%);
}

.cs-footer-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(16px, 3vw, 24px);
}

.cs-footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 0.95fr);
    gap: clamp(24px, 4vw, 40px);
    align-items: start;
}

.cs-footer-brand img {
    display: block;
    height: 42px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.cs-footer-tagline {
    margin: 14px 0 0;
    max-width: 32ch;
    font-size: clamp(1.02rem, 1.55vw, 16px);
    line-height: 1.6;
    color: #3d4536;
}

.cs-footer-label {
    margin: 0 0 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(67, 86, 36, 0.72);
}

.cs-footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.cs-footer-social-btn {
    --cs-social-hover: var(--cs-olive);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(var(--cs-rgb-olive), 0.16);
    background: rgba(255, 255, 255, 0.82);
    color: var(--cs-olive-dark);
    text-decoration: none;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 10px 24px rgba(35, 45, 28, 0.07);
    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        background-color 0.22s ease,
        color 0.22s ease,
        box-shadow 0.22s ease;
}

.cs-footer-social-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.cs-footer-social-btn:hover,
.cs-footer-social-btn:focus-visible {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--cs-social-hover) 40%, transparent);
    background: color-mix(in srgb, var(--cs-social-hover) 10%, #fff);
    color: var(--cs-social-hover);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 14px 28px rgba(35, 45, 28, 0.12);
    outline: none;
}

.cs-footer-social-btn--linkedin {
    --cs-social-hover: #0a66c2;
}

.cs-footer-social-btn--instagram {
    --cs-social-hover: #c13584;
}

.cs-footer-social-btn--facebook {
    --cs-social-hover: #1877f2;
}

.cs-footer-contact-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cs-footer-contact-lines {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 2px;
}

.cs-footer-contact-line {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: color 0.22s ease, transform 0.22s ease;
}

.cs-footer-contact-line--address {
    align-items: flex-start;
    max-width: 22rem;
}

.cs-footer-contact-line--address .cs-footer-contact-line-text {
    font-weight: 500;
    line-height: 1.5;
}

.cs-footer-contact-line-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    color: var(--cs-olive-dark);
    background: rgba(var(--cs-rgb-lime), 0.22);
    border: 1px solid rgba(var(--cs-rgb-olive), 0.12);
    transition: background-color 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.cs-footer-contact-line-icon svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cs-footer-contact-line-text {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.9rem, 1.2vw, 0.98rem);
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.01em;
    color: var(--cs-text);
    background-image: linear-gradient(90deg, var(--cs-olive-dark), var(--cs-lime));
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: 0 100%;
    transition: color 0.22s ease, background-size 0.28s ease;
}

.cs-footer-contact-line:hover,
.cs-footer-contact-line:focus-visible {
    outline: none;
    transform: translateX(2px);
}

.cs-footer-contact-line:hover .cs-footer-contact-line-icon,
.cs-footer-contact-line:focus-visible .cs-footer-contact-line-icon {
    background: linear-gradient(145deg, var(--cs-olive-dark), var(--cs-olive));
    color: #fff;
    transform: scale(1.04);
}

.cs-footer-contact-line:hover .cs-footer-contact-line-text,
.cs-footer-contact-line:focus-visible .cs-footer-contact-line-text {
    color: var(--cs-olive-dark);
    background-size: 100% 2px;
}

.cs-footer-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cs-footer-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.cs-footer-link svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.45;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.cs-footer-link:hover,
.cs-footer-link:focus-visible {
    color: var(--cs-olive-dark);
    transform: translateX(3px);
    outline: none;
}

.cs-footer-link:hover svg,
.cs-footer-link:focus-visible svg {
    opacity: 1;
    transform: translateX(2px);
}

.cs-footer-divider {
    height: 1px;
    margin: clamp(24px, 3.5vw, 32px) 0 clamp(16px, 2.5vw, 20px);
    background: linear-gradient(
        90deg,
        transparent,
        rgba(var(--cs-rgb-olive), 0.18) 20%,
        rgba(var(--cs-rgb-lime), 0.28) 50%,
        rgba(var(--cs-rgb-olive), 0.18) 80%,
        transparent
    );
}

.cs-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 10px;
    text-align: center;
    font-size: 0.78rem;
    line-height: 1.5;
    color: #6b7280;
}

.cs-footer-bottom a {
    color: #4b5563;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.cs-footer-bottom a:hover,
.cs-footer-bottom a:focus-visible {
    color: var(--cs-olive-dark);
    outline: none;
}

@media (max-width: 900px) {
    .cs-footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cs-footer-brand-col {
        grid-column: 1 / -1;
    }
}

@media (max-width: 620px) {
    .cs-footer-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cs-footer-social-btn,
    .cs-footer-link,
    .cs-footer-contact-line {
        transition: none;
    }

    .cs-footer-social-btn:hover,
    .cs-footer-link:hover,
    .cs-footer-contact-line:hover {
        transform: none;
    }
}
