/* ── footer.css ── */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Playfair+Display:wght@700&display=swap');

:root {
    --f-navy:      #0f1c2e;
    --f-navy-mid:  #1a2e47;
    --f-amber:     #d4870a;
    --f-amber-lt:  #f5a623;
    --f-text-dim:  rgba(255,255,255,0.70); /* was 0.55 — fixes cookienotice2, .item.text p */
    --f-text-mid:  rgba(255,255,255,0.80); /* was 0.75 — slight boost for safety */
    --f-white:     #ffffff;
    --f-border:    rgba(255,255,255,0.08);
    --f-bar-bg:    #0a1520;
}

/* ════════════════════════════════════════
   COOKIE BANNER
════════════════════════════════════════ */
#cookiepreferencesdivid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: var(--f-navy) !important;
    border-top: 2px solid var(--f-amber);
    border-radius: 0 !important;
    padding: 0.75rem 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

#cookienotice1 {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(0.72rem, 1.5vw, 0.82rem) !important;
    color: var(--f-text-mid);
    flex: 1 1 100%;
    text-align: center;
    margin-bottom: 0.2rem;
}

#cookienotice2 {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(0.65rem, 1.3vw, 0.75rem) !important;
    color: var(--f-text-dim) !important;
    flex: 1 1 100%;
    text-align: center;
    margin-top: 0.2rem;
}

.caicus-cookies-button {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(0.68rem, 1.3vw, 0.78rem) !important;
    font-weight: 600;
    background: var(--f-amber);
    color: var(--f-navy) !important;
    border: none;
    border-radius: 3px;
    padding: 0.4rem 1.1rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    white-space: nowrap;
}

.caicus-cookies-button:hover {
    background: var(--f-amber-lt);
    transform: translateY(-1px);
}

/* "Decline" variant — ghost style */
#cookiesdeclineall {
    background: transparent;
    color: var(--f-text-dim) !important;
    border: 1px solid rgba(255,255,255,0.2);
}

#cookiesdeclineall:hover {
    background: rgba(255,255,255,0.06);
    color: var(--f-white) !important;
}

.caicus-cookies-details-button {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(0.68rem, 1.3vw, 0.78rem) !important;
    font-weight: 500;
    background: transparent;
    color: var(--f-text-mid) !important;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 3px;
    padding: 0.4rem 0.9rem;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    white-space: nowrap;
}

.caicus-cookies-details-button:hover {
    border-color: var(--f-amber);
    color: var(--f-amber-lt) !important;
}

/* ════════════════════════════════════════
   SLIM STATUS BAR (sticky copyright bar)
════════════════════════════════════════ */
#sticky-footer {
    position: fixed !important;
    left: 0;
    bottom: 0;
    width: 100%;
    background: var(--f-bar-bg) !important;
    border-top: 1px solid var(--f-border);
    padding: 0.35rem 1.25rem !important;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.35);
    box-sizing: border-box;
}

#sticky-footer > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
    gap: 0.25rem;
}

#cpyrght {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(0.6rem, 1.2vw, 0.72rem) !important;
    color: var(--f-text-dim);
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1 1 auto;
    min-width: 0;
}

#rendezvousversion {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(0.55rem, 1vw, 0.65rem) !important;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.04em;
    white-space: nowrap;
    flex-shrink: 0;
}

.caicus-anonfeedbacksubmit-button,
.caicus-memberfeedbacksubmit-button {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(0.6rem, 1.2vw, 0.72rem) !important;
    color: var(--f-amber-lt) !important;
    text-decoration: none !important;
    border: none;
    background: transparent;
    padding: 0 0.25rem;
    position: static !important;
    left: auto !important;
    transition: color 0.2s;
    flex-shrink: 0;
    white-space: nowrap;
}

.caicus-anonfeedbacksubmit-button span,
.caicus-memberfeedbacksubmit-button span {
    font-size: inherit !important;
    color: inherit !important;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.caicus-anonfeedbacksubmit-button:hover,
.caicus-memberfeedbacksubmit-button:hover {
    color: var(--f-white) !important;
}

/* ════════════════════════════════════════
   MAIN FOOTER COLUMNS  (#ftrLwrPrt)
════════════════════════════════════════ */
#ftrLwrPrt {
    background: var(--f-navy) !important;
    color: var(--f-text-mid);
    padding-bottom: 5rem; /* leave room for sticky bar */
    position: relative;
}

/* Amber top accent line */
#ftrLwrPrt::before {
    content: '';
    display: block;
    height: 3px;
    background: linear-gradient(to right, var(--f-amber), var(--f-amber-lt), transparent);
}

#ftrLwrPrt footer {
    padding: 3rem 0 0;
}

#ftrLwrPrt .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

#ftrLwrPrt .row {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

/* Column headings */
#ftrLwrPrt h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--f-amber-lt);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--f-border);
}

/* Lists */
#ftrLwrPrt ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

#ftrLwrPrt ul li {
    margin-bottom: 0.4rem;
}

#ftrLwrPrt ul li a,
#ftrLwrPrt .nav-link {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(0.78rem, 1.5vw, 0.85rem);
    color: var(--f-text-mid) !important;
    text-decoration: none;
    transition: color 0.2s, padding-left 0.2s;
    display: inline-block;
    padding: 0.1rem 0;
    white-space: nowrap;
}

#ftrLwrPrt ul li a:hover,
#ftrLwrPrt .nav-link:hover {
    color: var(--f-white) !important;
    padding-left: 4px;
}

/* Company description */
#ftrLwrPrt .item.text p {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(0.78rem, 1.5vw, 0.85rem);
    color: var(--f-text-dim);
    line-height: 1.65;
    max-width: 420px;
}

/* CAICUS brand in footer */
#ftrLwrPrt .item.text h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--f-white);
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0.6rem;
    text-transform: none;
}

/* Social icons */
#ftrLwrPrt .item.social {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding-top: 0.25rem;
}

#ftrLwrPrt .item.social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--f-border);
    border-radius: 50%;
    color: var(--f-text-dim);
    font-size: 0.9rem;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    text-decoration: none;
}

#ftrLwrPrt .item.social a:hover {
    border-color: var(--f-amber);
    color: var(--f-amber-lt);
    background: rgba(212,135,10,0.08);
}

/* Copyright row */
#ftrLwrPrt p.copyright {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.55);
    text-align: center;
    border-top: 1px solid var(--f-border);
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    letter-spacing: 0.04em;
}

/* ════════════════════════════════════════
   RESPONSIVE — tablet (≤ 768px)
════════════════════════════════════════ */
@media (max-width: 768px) {

    /* Cookie banner */
    #cookiepreferencesdivid {
        padding: 0.75rem 1rem;
        gap: 0.5rem;
    }

    /* Buttons fill width in two columns on tablet */
    .caicus-cookies-button,
    .caicus-cookies-details-button {
        flex: 1 1 calc(50% - 0.25rem);
        text-align: center;
        min-width: 0;
    }

    /* Sticky bar: stack copyright above contact/version */
    #sticky-footer {
        padding: 0.4rem 0.75rem !important;
    }

    #sticky-footer > div {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    /* Main footer columns */
    #ftrLwrPrt footer {
        padding: 2rem 0 0;
    }

    #ftrLwrPrt .row {
        flex-direction: column;
        gap: 1.5rem;
    }

    #ftrLwrPrt .col-sm-6,
    #ftrLwrPrt .col-md-3,
    #ftrLwrPrt .col-md-6,
    #ftrLwrPrt .col {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        padding: 0 0.5rem;
    }

    #ftrLwrPrt .item.text p {
        max-width: 100%;
    }

    /* Social icons: align left on mobile */
    #ftrLwrPrt .item.social {
        justify-content: flex-start;
        padding-top: 0;
    }
}

/* ════════════════════════════════════════
   RESPONSIVE — small phones (≤ 480px)
════════════════════════════════════════ */
@media (max-width: 480px) {

    /* Cookie banner */
    #cookiepreferencesdivid {
        padding: 0.65rem 0.75rem;
        gap: 0.4rem;
    }

    /* All cookie buttons full-width on small screens */
    .caicus-cookies-button,
    .caicus-cookies-details-button {
        flex: 1 1 100%;
        text-align: center;
    }

    /* Sticky bar: tighten up, allow copyright to shrink */
    #sticky-footer {
        padding: 0.3rem 0.6rem !important;
    }

    #sticky-footer > div {
        gap: 0.15rem;
    }

    /* Hide version number on very small screens to avoid overflow */
    #rendezvousversion {
        display: none;
    }

    /* Slightly more padding for footer columns */
    #ftrLwrPrt .container {
        padding: 0 1rem;
    }

    /* Reduce top padding */
    #ftrLwrPrt footer {
        padding: 1.5rem 0 0;
    }

    /* Give footer body more room above sticky bar */
    #ftrLwrPrt {
        padding-bottom: 4rem;
    }
}