/* PrepUni footer — light theme, wave, columns, round social icons, triangle decor */

.puni-footer {
    --footer-bg: var(--puni-background);
    --footer-ink: var(--puni-heading);
    --footer-muted: var(--puni-text);
    --footer-accent: var(--puni-primary);
    --footer-hover: var(--puni-secondary);
    --footer-line: var(--puni-border);
    --bar-bg: var(--puni-soft-blue); /* copyright bar + social blob */
    --bar-text: var(--puni-text);
    --wave-fill: var(--puni-surface); /* colour of the section ABOVE the footer */
    --head: 'Sora', system-ui, sans-serif;
    --body: 'DM Sans', system-ui, sans-serif;

    position: relative;
    overflow: hidden;
    margin-top: 0;
    background-color: var(--footer-bg);
    color: var(--footer-ink);
    font-family: var(--body);
}

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

/* ---------- Triangle decorations (from your old footer) ---------- */
.puni-footer::before,
.puni-footer::after {
    content: "";
    position: absolute;
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
    opacity: .1;
    pointer-events: none;
    z-index: 0;
}

.puni-footer::before {
    width: 140px;
    height: 140px;
    background: var(--puni-secondary);
    right: -24px;
    top: 40px;
}

.puni-footer::after {
    width: 120px;
    height: 120px;
    background: var(--puni-success);
    left: -28px;
    bottom: 60px;
}

.puni-footer a {
    color: var(--footer-accent);
    text-decoration: none;
}

/* ---------- Wave ---------- */
.puni-footer-wave-svg {
    position: relative;
    z-index: 1;
    display: block;
    top: -1px;
    width: 100%;
    height: 30px;
    background-color: transparent;
}

.puni-footer-wave-path {
    fill: var(--wave-fill);
}

/* ---------- Layout ---------- */
.puni-footer-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
    gap: 24px 30px;
    max-width: 1230px;
    margin: 0 auto;
    padding: 30px 15px 90px;
}

.puni-footer-content-column {
    min-width: 0;
    padding: 0 15px;
}

/* ---------- Logo ---------- */
.puni-footer-logo-link {
    display: inline-block;
}

.puni-footer-logo-link img {
    display: block;
    width: auto;
    max-width: 168px;
    height: 42px;
    object-fit: contain;
    object-position: left center;
}

/* ---------- Menus ---------- */
.puni-footer-menu {
    margin-top: 30px;
}

.puni-footer-menu:first-child {
    margin-top: 0;
}

.puni-footer-menu-name,
.puni-footer-call-to-action-title {
    margin: 0;
    color: var(--footer-ink);
    font-family: var(--head);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .1em;
    line-height: 18px;
    text-transform: uppercase;
}

.puni-footer-menu-list {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
}

.puni-footer-menu-list li {
    margin-top: 6px;
}

.puni-footer-menu-list a {
    color: var(--footer-accent);
    font-size: .95rem;
    font-weight: 500;
    transition: color .2s;
}

.puni-footer .puni-footer-menu-list a:hover,
.puni-footer .puni-footer-call-to-action-link:hover {
    color: var(--footer-ink);
}

.puni-footer-about-text {
    margin: 10px 0 0;
    color: var(--footer-muted);
    font-size: .95rem;
    line-height: 1.55;
}

/* ---------- Call to action ---------- */
.puni-footer-call-to-action {
    margin-top: 30px;
}

.puni-footer-call-to-action:first-child {
    margin-top: 0;
}

.puni-footer-call-to-action-description {
    margin: 10px 0 20px;
    color: var(--footer-muted);
    font-size: .95rem;
}

.puni-footer-call-to-action-button {
    position: relative;
    display: inline-block;
    margin: 0 10px 10px 0;
    padding: 12px 30px;
    border-radius: 21px;
    background-color: var(--footer-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    line-height: 18px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color .2s, color .2s;
}

.puni-footer a.puni-footer-call-to-action-button {
    color: #fff;
}

.puni-footer a.puni-footer-call-to-action-button:hover {
    background-color: var(--footer-ink);
    color: #fff;
}

.puni-footer-call-to-action-link-wrapper {
    margin: 10px 0 0;
}

.puni-footer-call-to-action-link {
    font-weight: 700;
    word-break: break-word;
    transition: color .2s;
}

/* ---------- Newsletter ---------- */
.puni-footer-news form {
    margin-top: 0;
}

.puni-footer-news .relative {
    position: relative;
}

.puni-footer-news input {
    width: 100% !important;
    border: 1px solid var(--footer-line) !important;
    border-radius: 21px !important;
    background: #fff !important;
    color: var(--footer-ink) !important;
    padding: 12px 118px 12px 16px !important;
    font-size: .9rem;
}

.puni-footer-news button {
    position: absolute;
    top: 4px;
    right: 4px;
    border: 0;
    border-radius: 21px;
    background: var(--footer-accent);
    color: #fff;
    padding: 9px 16px;
    font: 800 11px var(--body);
    letter-spacing: .1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color .2s;
}

.puni-footer-news button:hover {
    background: var(--footer-ink);
}

/* ---------- Social amoeba (bumps rise out of the copyright bar) ---------- */
.puni-footer-social-links {
    position: absolute;
    right: 0;
    bottom: -1px;
    width: 236px;
    height: 54px;
}

.puni-footer-social-amoeba-svg {
    position: absolute;
    inset: 0;
    display: block;
    width: 236px;
    height: 54px;
}

.puni-footer-social-amoeba-path {
    fill: var(--bar-bg);
}

.puni-footer a.puni-footer-social-link {
    position: absolute;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    color: var(--footer-accent);
    transform: translate(-50%, -50%);
    transition: color .2s, transform .2s;
}

.puni-footer a.puni-footer-social-link:hover {
    color: var(--footer-ink);
    transform: translate(-50%, -54%);
}

/* centres of each bump in the 236 x 54 blob */
.puni-footer-social-link.puni-linkedin  { left: 26px;  top: 34px; font-size: 20px; }
.puni-footer-social-link.puni-instagram { left: 86px;  top: 27px; font-size: 26px; }
.puni-footer-social-link.puni-youtube   { left: 145px; top: 34px; font-size: 22px; }
.puni-footer-social-link.puni-facebook  { left: 199px; top: 34px; font-size: 22px; }

/* ---------- Copyright ---------- */
.puni-footer-copyright {
    position: relative;
    z-index: 1;
    padding: 15px 30px;
    background-color: var(--bar-bg);
    color: var(--bar-text);
    text-align: center;
}

.puni-footer-copyright-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.puni-footer-copyright-text {
    margin: 0;
    color: var(--bar-text);
    font-size: 13px;
    line-height: 18px;
}

.puni-footer-copyright-text a {
    color: var(--bar-text);
}

/* ---------- Mobile accordion ---------- */
.puni-footer-links-mobile {
    display: none;
}

.puni-footer-accordion-header {
    border-radius: 10px 10px 0 0;
    background: #fff;
    color: var(--footer-ink);
}

.puni-footer-accordion-content {
    background: transparent;
}

/* ---------- Responsive ---------- */
@media (min-width: 760px) {
    .puni-footer-wave-svg {
        height: 50px;
    }
}

@media (max-width: 1060px) {
    .puni-footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .puni-footer-links-desktop {
        display: none;
    }

    .puni-footer-links-mobile {
        display: block;
        grid-column: 1 / -1;
        border: 1px solid var(--footer-line);
        border-radius: 12px;
        background: #fff;
    }
}

@media (max-width: 640px) {
    .puni-footer-content {
        grid-template-columns: 1fr;
        padding-bottom: 90px;
    }

    .puni-footer-social-links {
        right: 50%;
        transform: translateX(50%);
    }
}
.puni-footer-menu-name.puni-footer-brand-name {
    text-transform: none;
}
