/* Shared reference footer copied from the Hostinger Runaya build. */

:root {
    --runaya-footer-bg: #021c25;
    --runaya-footer-blue: #074158;
    --runaya-footer-orange: #f26522;
    --runaya-footer-orange-dark: #d4541a;
    --runaya-footer-cream: #f7f9fa;
    --runaya-footer-link: rgba(255, 255, 255, 0.5);
}

.site-footer.runaya-reference-footer {
    position: relative;
    overflow: hidden;
    padding-top: 50px;
    background: var(--runaya-footer-bg);
    color: #fff;
    font-family: "NHaasGroteskTX", "Neue Haas Grotesk TX Pro", Inter, system-ui, -apple-system, sans-serif;
    /* Fixed 1440 design, centred and scaled like every page stage so it caps at
       the 16" width and centres instead of spreading full-width (stage-scale.js
       sets the numeric zoom; the calc() is the pre-JS / no-JS fallback). */
    width: 1440px;
    margin: 0 auto;
    zoom: calc(100vw / 1440px);
}

.runaya-footer__container {
    width: calc(100% - 120px);
    max-width: none;
    margin: 0 auto;
}

.runaya-footer__media {
    padding-bottom: 50px;
}

.runaya-footer__cards {
    display: grid;
    grid-template-columns: 305px minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
    align-items: stretch;
}

.reports-card,
.news-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 396px;
    flex-direction: column;
    overflow: hidden;
    border-radius: 8px;
    background: var(--runaya-footer-cream);
    color: #000;
}

.reports-card-inner,
.news-card-inner {
    padding: 24px 30px 0;
}

.reports-card h3,
.news-card h3 {
    margin: 0 0 16px;
    color: var(--runaya-footer-blue);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
}

.reports-list {
    display: flex;
    flex-direction: column;
}

.reports-list a {
    display: block;
    padding: 9px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.5);
    color: #000;
    font-size: 16px;
    line-height: 1.08;
    text-decoration: none;
    transition: color 200ms;
}

.reports-list a:last-child {
    border-bottom: 0;
}

.reports-list a:hover {
    color: var(--runaya-footer-orange);
}

.news-card-inner {
    padding-bottom: 88px;
}

.news-thumb {
    position: relative;
    width: 100%;
    height: 168px;
    margin-bottom: 16px;
    overflow: hidden;
    border-radius: 6px;
    background: var(--runaya-footer-blue);
}

.news-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 700ms;
}

.news-card:hover .news-thumb img {
    transform: scale(1.03);
}

.news-date {
    margin: 0 0 8px;
    color: rgba(0, 0, 0, 0.5);
    font-size: 16px;
    line-height: 1.25;
}

.news-text {
    margin: 0;
    color: #000;
    font-size: 20px;
    line-height: 1.35;
}

.footer-carousel__item {
    display: none;
}

.footer-carousel__item.is-active {
    display: block;
}

.runaya-footer__action,
.news-arrows {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border-bottom-right-radius: 8px;
    border-bottom-left-radius: 8px;
    background: var(--runaya-footer-blue);
    color: rgba(255, 255, 255, 0.9);
    font-size: 20px;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    transition: background 200ms;
}

.runaya-footer__action {
    padding: 12px 20px;
    font-weight: 400;
}

.runaya-footer__action:hover,
.news-arrows:hover {
    background: var(--runaya-footer-orange-dark);
}

.news-arrows {
    gap: 12px;
}

.news-arrows a {
    color: rgba(255, 255, 255, 0.9);
    padding: 0 16px;
    text-decoration: none;
}

.news-arrows button {
    display: grid;
    width: 36px;
    height: 44px;
    place-items: center;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.72);
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
    transition: color 200ms;
}

.news-arrows button:hover {
    color: #fff;
}

.runaya-footer__links {
    position: relative;
    z-index: 2;
}

.runaya-footer__links-grid {
    display: grid;
    grid-template-columns: repeat(4, max-content);
    justify-content: space-between;
    column-gap: 60px;
    row-gap: 36px;
}

.footer-col h4 {
    margin: 0 0 15px;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.footer-col h4 a {
    color: inherit;
    /* Investor Relations and Contact Us are column headings that are links, so
       the anchor must inherit the h4's full type (weight AND size) — otherwise
       the .footer-col a link rules (400 / 20px) win and they render smaller and
       lighter than the eight bold 24px heading siblings. */
    font-weight: inherit;
    font-size: inherit;
    text-decoration: none;
    transition: color 200ms;
}

.footer-col h4 a:hover {
    color: var(--runaya-footer-orange);
}

.footer-col h4.footer-col__spaced {
    margin-top: 40px;
}

.footer-col li + li {
    margin-top: 5px;
}

.footer-col ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-col li,
.footer-col a {
    display: block;
    color: var(--runaya-footer-link);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.25;
    text-decoration: none;
    transition: color 200ms;
}

.footer-col a:hover {
    color: var(--runaya-footer-orange);
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-social li { display: flex; }
/* The generic ".footer-col li + li { margin-top: 5px }" list spacing was leaking
   onto the second social icon, pushing Instagram 5px below LinkedIn. Reset it. */
.footer-social li + li { margin-top: 0; }
.footer-social a {
    /* grid box (not the default inline <a>) so both icons sit on the same line —
       inline <a> ignores width/height and its baseline nudged the two circles
       out of vertical alignment. */
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    color: #8fcad2;
}

.footer-social span {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    transition: background 200ms, border-color 200ms, color 200ms;
}

.footer-social a:hover span {
    border-color: var(--runaya-footer-orange);
    background: var(--runaya-footer-orange);
    color: #fff;
}

.footer-social svg {
    width: 15px;
    height: 15px;
}

.runaya-footer__watermark {
    position: relative;
    z-index: 1;
    margin-top: 0;
    padding: 0 0 20px;
    pointer-events: none;
    user-select: none;
}

.runaya-footer__watermark img {
    display: block;
    width: min(1400px, calc(100% - 40px));
    height: auto;
    margin: 0 auto;
}

.product-enquiry {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 999;
    display: block;
    width: 56px;
    height: 117px;
    border-radius: 999px;
    line-height: 0;
    text-decoration: none;
}

.product-enquiry img {
    display: block;
    width: 56px;
    height: 117px;
}

/* Past the 16" cap the footer BACKGROUND bleeds to the full viewport while its
   columns stay in the centred column — so it matches the full-width page and has
   no side border. The footer sits at the full-width body level (not inside the
   centred 1440 stage), so it fills from the left edge — zoom expands its width to
   the viewport. Its inner container is capped + auto-centred to match the page. */
@media (min-width: 1729px) {
    .site-footer.runaya-reference-footer {
        width: var(--bleed-w);
        margin-left: 0;
        margin-right: 0;
    }
    .runaya-footer__container {
        max-width: 1320px;
    }
}

@media (max-width: 767px) {
    .site-footer.runaya-reference-footer {
        zoom: 1;
        width: auto;
    }

    .runaya-footer__cards {
        grid-template-columns: 1fr;
    }

    .reports-card,
    .news-card {
        min-height: 396px;
    }

    .runaya-footer__links-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 60px;
    }

    /* Collapse the enquiry pill to just the circular "i" — clip the orange body
       below the badge (SVG badge is the top 56x56 of the 56x117 pill). */
    .product-enquiry {
        height: 56px;
        overflow: hidden;
    }
}

@media (max-width: 760px) {
    .site-footer.runaya-reference-footer {
        padding-top: 36px;
    }

    /* Tighter link rows — the earlier 10px tap padding + 5px li gap stacked into an
       oversized column. Keep the type, cut the vertical spacing right down. */
    .footer-col li a,
    .footer-col__spaced a {
        padding: 4px 0;
        display: inline-block;
    }
    .footer-col li + li {
        margin-top: 0;
    }
    .reports-list a {
        min-height: 44px;      /* a floor, so it never fights the list's own padding/rules */
        display: flex;
        align-items: center;
    }
    .news-arrows a {
        padding: 12px 0;
        display: inline-block;
    }
    /* Centre the 32px icon chip inside its 44px tap box so both social icons
       sit on a shared baseline instead of pinned top-left. */
    .footer-social a,
    .runaya-footer__social a {
        width: 44px;
        height: 44px;
        display: grid;
        place-items: center;
    }

    .runaya-footer__container {
        width: calc(100% - 40px);
    }

    .reports-card,
    .news-card {
        min-height: 0;
    }

    .reports-card-inner,
    .news-card-inner {
        padding: 22px 22px 74px;
    }

    .news-thumb {
        height: 180px;
    }

    .runaya-footer__links-grid {
        grid-template-columns: 1fr;
    }

    .footer-col h4.footer-col__spaced {
        margin-top: 28px;
    }

    .footer-col li,
    .footer-col a {
        font-size: 18px;
    }

    .runaya-footer__watermark {
        margin-top: 42px;
    }
}
