/* ============================================================
   FOOTER — light theme + top red wave
   This file overrides the legacy dark footer in style.css.
   Included after style.css on every page.
   ============================================================ */

.footer {
    position: relative;
    background: #ffffff;
    color: #1e1e2e;
    padding: 0 0 28px;
    overflow: hidden;
}

.footer-top-wave {
    position: relative;
    width: 100%;
    height: 64px;
    overflow: hidden;
    background: #ffffff;
    margin-bottom: -1px;
}

.footer-top-wave svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    fill: #dd5559;
    display: block;
}

.footer-container {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px 0;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.1fr 2fr 1.2fr;
    gap: 56px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(30, 30, 46, 0.08);
    /* Don't stretch columns to the tallest item (the 225px mascot image).
       Stretching forced the link columns to 225px even though Company has
       only 2 links, leaving ~109px of empty space under the last link.
       align-items:start lets each column take its natural content height. */
    align-items: start;
}

/* Brand column */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo-mark {
    height: 42px;
    width: auto;
    display: block;
    flex-shrink: 0;
    mix-blend-mode: normal;
}

.footer-logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.4px;
    line-height: 1;
    color: #1e1e2e;
    white-space: nowrap;
}

.footer-logo-text .highlight { color: #dd5559; }

.footer-tagline {
    font-size: 14px;
    line-height: 1.7;
    color: #6b7280;
    max-width: 230px;
}

.footer-certs {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.footer-cert {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    padding: 8px 10px;
    border: 1.5px solid #dd5559;
    border-radius: 8px;
    color: #dd5559;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.5px;
    line-height: 1;
    text-transform: uppercase;
}

.footer-cert small {
    display: block;
    margin-top: 4px;
    font-size: 10px;
    font-weight: 600;
    color: #6b7280;
    letter-spacing: 0;
    text-transform: uppercase;
}

/* Link columns */
.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    justify-items: start;
    /* Equal-height link columns so the Company divider (only 2 links) reaches
       the same bottom as Products/Support instead of looking truncated.
       footer-main stays `start`, so columns are only as tall as the tallest
       LINK column (~153px), NOT the 225px mascot — the large blank gap from
       before is NOT reintroduced. */
    align-items: stretch;
}

.footer-col {
    padding: 0 32px;
}

.footer-col:first-child { padding-left: 0; }

/* Company column: extra left/right padding + vertical divider lines.
   IMPORTANT: the divider is drawn with ::before/::after pseudo-elements
   (NOT a full-height border on the column). A column border sits OUTSIDE
   the padding box, so a white heading background can never cover it — the
   line shows through the title. Pseudo-elements let us start the line
   below the heading (top) and stop at the column bottom (bottom), so it
   never crosses the title and its length is fully controllable. */
.footer-col:nth-child(2) {
    position: relative;
    padding: 0 40px;
}

.footer-col:nth-child(2)::before,
.footer-col:nth-child(2)::after {
    content: '';
    position: absolute;
    top: 38px;            /* starts at the first link row, under the heading */
    bottom: 0;
    width: 1px;
    background: rgba(30, 30, 46, 0.08);
}

.footer-col:nth-child(2)::before { left: 0; }
.footer-col:nth-child(2)::after { right: 0; }

.footer-col:last-child { padding-right: 0; }

.footer-col h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #1e1e2e;
    margin-bottom: 18px;
}

.footer-col-icon {
    width: 20px;
    height: 20px;
    color: #dd5559;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-col-icon svg {
    width: 18px;
    height: 18px;
}

.footer-col a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #6b7280;
    text-decoration: none;
    font-size: 13.5px;
    padding: 8px 0;
    transition: color 0.25s;
}

.footer-col a:hover { color: #dd5559; }

.footer-link-arrow {
    width: 14px;
    height: 14px;
    color: #dd5559;
    transition: color 0.25s, transform 0.25s;
    flex-shrink: 0;
    margin-left: 6px;
}

.footer-link-arrow svg {
    width: 100%;
    height: 100%;
}

.footer-col a:hover .footer-link-arrow {
    color: #dd5559;
    transform: translateX(2px);
}

/* Right column: mascot only (address moved to bottom, socials removed) */
.footer-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.footer-mascot-wrap {
    position: relative;
    width: 270px;
    height: 225px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-mascot-wrap::before {
    content: '';
    position: absolute;
    width: 215px;
    height: 215px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 73, 84, 0.12) 0%, rgba(232, 73, 84, 0.04) 50%, transparent 70%);
    z-index: 0;
}

.footer-mascot {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    max-width: 270px;
    object-fit: contain;
    filter: none;
}

.footer-address-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    padding: 14px 16px;
    background: #ffffff;
    border: 1px solid rgba(30, 30, 46, 0.08);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    font-size: 13px;
    line-height: 1.6;
    color: #6b7280;
}

.footer-address-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #dd5559;
    margin-top: 2px;
}

.footer-address-icon svg {
    width: 100%;
    height: 100%;
}

/* Address card when placed in the bottom bar */
.footer-address-bottom {
    width: auto;
    max-width: 320px;
    flex-shrink: 0;
    padding: 10px 14px;
    box-shadow: none;
    border-color: rgba(30, 30, 46, 0.06);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 14px 0 0;
    font-size: 13px;
    color: #9ca3af;
}

.footer-bottom-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-bottom-left p {
    margin: 0;
}

.footer-powered {
    margin: 0;
    font-size: 12.5px;
    color: #6b7280;
}

.footer-powered a {
    color: #dd5559;
    text-decoration: none;
    font-weight: 600;
}

.footer-powered a:hover { text-decoration: underline; }

/* CTA section now draws its own red SVG wave at the bottom, so no legacy
   override is needed. footer-top-wave continues to provide the red wave at
   the top of the footer. */

/* Responsive */
@media (max-width: 1024px) {
    .footer-main {
        grid-template-columns: 1fr 1.5fr;
        gap: 40px;
        align-items: start;
    }

    .footer-info {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
    }

    .footer-mascot-wrap {
        width: 220px;
        height: 185px;
    }

    .footer-mascot {
        max-width: 220px;
    }

    .footer-mascot-wrap::before {
        width: 175px;
        height: 175px;
    }

    .footer-address-card {
        max-width: 280px;
    }

    .footer-bottom {
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 36px;
        text-align: center;
    }

    .footer-brand {
        align-items: center;
    }

    .footer-tagline {
        margin: 0 auto;
        max-width: 280px;
    }

    .footer-certs {
        justify-content: center;
    }

    .footer-links {
        grid-template-columns: repeat(3, 1fr);
        gap: 0;
        text-align: center;
    }

    .footer-col {
        padding: 0 14px;
    }

    .footer-col:first-child { padding-left: 0; }

    .footer-col:nth-child(2) {
        padding: 0 18px;
    }

    .footer-col:nth-child(2)::before,
    .footer-col:nth-child(2)::after {
        top: 32px;
        background: rgba(30, 30, 46, 0.06);
    }

    .footer-col:last-child { padding-right: 0; }

    .footer-col h4 {
        justify-content: center;
        margin-bottom: 14px;
        font-size: 13px;
    }

    .footer-col a {
        justify-content: center;
        padding: 5px 0;
        font-size: 12.5px;
    }

    .footer-link-arrow {
        display: none;
    }

    .footer-info {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }

    .footer-address-card {
        text-align: left;
        max-width: 360px;
    }

    .footer-address-bottom {
        max-width: 360px;
    }
}

@media (max-width: 480px) {
    .footer-top-wave { height: 40px; }

    .footer-container {
        padding: 28px 16px 0;
    }

    .footer-main {
        gap: 22px;
        padding-bottom: 22px;
    }

    .footer-logo-mark { height: 36px; }
    .footer-logo-text { font-size: 20px; }
    .footer-tagline { font-size: 13px; }

    .footer-certs { gap: 8px; }

    .footer-cert {
        min-width: 50px;
        padding: 6px 8px;
        font-size: 11px;
    }

    .footer-cert small { font-size: 9px; }

    .footer-links {
        grid-template-columns: repeat(3, 1fr);
        gap: 0;
    }

    .footer-col {
        padding: 0 8px;
    }

    .footer-col:first-child { padding-left: 0; }

    .footer-col:nth-child(2) {
        padding: 0 10px;
    }

    .footer-col:nth-child(2)::before,
    .footer-col:nth-child(2)::after {
        top: 26px;
        background: rgba(30, 30, 46, 0.05);
    }

    .footer-col:last-child { padding-right: 0; }

    .footer-col h4 {
        font-size: 12px;
        margin-bottom: 8px;
        gap: 4px;
    }

    .footer-col-icon {
        width: 16px;
        height: 16px;
    }

    .footer-col-icon svg {
        width: 14px;
        height: 14px;
    }

    .footer-col a {
        padding: 3px 0;
        font-size: 11.5px;
    }

    .footer-mascot-wrap {
        width: 200px;
        height: 165px;
    }

    .footer-mascot {
        max-width: 200px;
        display: block;
    }

    .footer-mascot-wrap::before {
        width: 160px;
        height: 160px;
    }

    .footer-address-card {
        font-size: 12px;
        padding: 12px;
    }

    .footer-address-bottom {
        max-width: 100%;
        font-size: 11.5px;
        padding: 10px 12px;
    }

    .footer-address-icon {
        width: 18px;
        height: 18px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding-top: 16px;
        font-size: 11.5px;
    }

    .footer-powered { font-size: 11.5px; }
}
