/* =====================================================================
   footer.css  -  shared site footer (loaded by boilerplate.ejs)
   Every rule is scoped to .site-footer, so it cannot affect any page.
   ===================================================================== */

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

.site-footer {
    position: relative;
    overflow: hidden;
    margin-top: 2.5rem;
    color: #cfe5d8;
    background: linear-gradient(180deg, #05361a 0%, #031f0f 100%);
}

/* every element inherits the footer text colour instead of the global one */
.site-footer * {
    color: inherit;
}

/* thin glowing line along the top */
.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #34d378 30%, #14b8a6 70%, transparent);
}

/* soft glow in the corner */
.site-footer::after {
    content: "";
    position: absolute;
    top: -7rem;
    right: -6rem;
    width: 22rem;
    height: 22rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(52, 211, 120, .22), transparent 65%);
    pointer-events: none;
}

.sf-inner {
    position: relative;
    z-index: 1;
    max-width: 76rem;
    margin: 0 auto;
    padding: 2.5rem 1.25rem 1.25rem;
}

.sf-grid {
    display: grid;
    gap: 2rem;
}

/* ----- brand ----- */

.sf-brand-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sf-mark {
    width: 2.6rem;
    height: 2.6rem;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #34d378, #0b8a45);
    border-radius: 14px;
    box-shadow: 0 10px 20px -10px #34d378;
}

.sf-mark i {
    font-size: 1.15rem;
    color: #04210f;
}

.sf-name {
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: .01em;
    color: #ffffff;
}

.sf-about {
    max-width: 22rem;
    margin-top: 0.9rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #a9c7b6;
}

/* ----- contact ----- */

.sf-title {
    margin-bottom: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #7ee2a8;
}

.sf-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sf-list li {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.sf-icon {
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    background-color: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 12px;
}

.sf-icon i {
    font-size: 1rem;
    color: #7ee2a8;
}

.sf-item {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.sf-label {
    font-size: 0.75rem;
    color: #8fb09d;
}

.sf-link,
.sf-value {
    font-size: 1rem;
    font-weight: 500;
    overflow-wrap: anywhere;
    color: #ffffff;
}

.sf-link {
    text-decoration: none;
    transition: color .15s ease;
}

.sf-link:hover {
    color: #7ee2a8;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ----- feedback card ----- */

.sf-feedback {
    padding: 1.4rem;
    background-color: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 20px;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.sf-feedback-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
}

.sf-feedback-text {
    margin: 0.5rem 0 1.1rem;
    font-size: 0.92rem;
    line-height: 1.55;
    color: #a9c7b6;
}

.sf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.8rem 1.4rem;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    color: #04210f;
    background: linear-gradient(135deg, #5eead4 -30%, #34d378 40%, #16a34a 120%);
    border-radius: 999px;
    box-shadow: 0 14px 26px -14px #34d378;
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.sf-btn i {
    color: #04210f;
}

.sf-arrow {
    font-size: 0.85rem;
    transition: transform .15s ease;
}

.sf-btn:hover {
    filter: brightness(1.06);
    transform: translateY(-2px);
    box-shadow: 0 18px 30px -14px #34d378;
}

.sf-btn:hover .sf-arrow {
    transform: translateX(4px);
}

.sf-btn:active {
    transform: translateY(0) scale(.98);
}

.sf-btn:focus-visible,
.sf-link:focus-visible {
    outline: 2px solid #7ee2a8;
    outline-offset: 3px;
}

/* ----- bottom bar ----- */

.sf-bottom {
    margin-top: 2rem;
    padding-top: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.875rem;
    color: #8fb09d;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.sf-founder strong {
    font-weight: 600;
    color: #ffffff;
}

/* ----- responsive ----- */

@media (min-width: 720px) {

    .sf-inner {
        padding: 3rem 2rem 1.4rem;
    }

    .sf-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem 2.5rem;
    }

    .sf-feedback {
        grid-column: 1 / -1;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1.5rem;
    }

    .sf-feedback-text {
        margin-bottom: 0;
    }

    .sf-feedback-copy {
        flex: 1;
    }

    .sf-bottom {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

@media (min-width: 1024px) {

    .sf-grid {
        grid-template-columns: 1.15fr 1fr 1.25fr;
        align-items: start;
    }

    .sf-feedback {
        grid-column: auto;
        display: block;
    }

    .sf-feedback-text {
        margin-bottom: 1.1rem;
    }
}

@media (max-width: 480px) {

    .sf-btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {

    .site-footer * {
        transition: none !important;
    }
}