/* ==========================================================================
   CIF — Global Site Footer | Ultra-Premium Redesign
   Loaded on every public page via includes/footer.php. Self-contained:
   scoped custom properties so it never depends on any page-specific CSS.
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500;600;700&family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;1,400&display=swap');

.cif-footer {
    --footer-navy-1: #14304f;
    --footer-navy-2: #1f4a73;
    --footer-navy-3: #2c5d8c;
    --footer-gold: #c9a35e;
    --footer-text: rgba(255, 255, 255, 0.82);
    --footer-text-dim: rgba(255, 255, 255, 0.56);
    --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);

    position: relative;
    overflow: hidden;
    color: var(--footer-text);
    font-family: 'Open Sans', sans-serif;
    border-top: 3px solid transparent;
    border-image: linear-gradient(90deg, var(--footer-navy-3), var(--footer-gold), var(--footer-navy-3)) 1;
}

.cif-footer-media {
    position: absolute;
    inset: 0;
    background: url('../img/footer-redesign/footer-bg.jpg') center 30% / cover no-repeat;
    transform: scale(1.08);
    animation: cifFooterZoom 30s var(--ease-premium) infinite alternate;
}
@keyframes cifFooterZoom {
    from { transform: scale(1.08); }
    to   { transform: scale(1); }
}
.cif-footer-scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(15, 34, 56, 0.93) 0%, rgba(20, 45, 71, 0.9) 35%, rgba(28, 58, 90, 0.94) 100%),
        radial-gradient(120% 140% at 15% 0%, rgba(44, 93, 140, 0.35) 0%, transparent 55%);
}
@media (prefers-reduced-motion: reduce) {
    .cif-footer-media { animation: none; transform: scale(1); }
}

.cif-footer-inner { position: relative; z-index: 2; }

/* --------------------------------------------------------------------
   Reveal-on-scroll (driven once, at the bottom of footer.php)
   -------------------------------------------------------------------- */
.cif-footer .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.8s var(--ease-premium), transform 0.8s var(--ease-premium);
    transition-delay: var(--d, 0s);
}
.cif-footer .reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
    .cif-footer .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Brand column
   ========================================================================== */
.cif-footer-brand-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
}
.cif-footer-seal {
    width: 54px;
    height: 54px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1.5px solid var(--footer-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.cif-footer-seal::before {
    content: '';
    position: absolute;
    inset: 5px;
    border: 1px solid rgba(201, 163, 94, 0.4);
    border-radius: 50%;
}
.cif-footer-seal span {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
    color: var(--footer-gold);
}
.cif-footer-brand-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.3;
    margin: 0;
}
.cif-footer-brand-title small {
    display: block;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--footer-gold);
    margin-bottom: 4px;
}

.cif-footer p { color: var(--footer-text); font-size: 0.92rem; line-height: 1.75; font-weight: 300; }

.cif-footer-social { display: flex; gap: 10px; margin-top: 22px; }
.cif-footer-social a {
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: flex; align-items: center; justify-content: center;
    color: #ffffff;
    font-size: 0.85rem;
    transition: all 0.35s var(--ease-premium);
    text-decoration: none;
}
.cif-footer-social a:hover {
    background: var(--footer-gold);
    border-color: var(--footer-gold);
    color: var(--footer-navy-1);
    transform: translateY(-4px);
}

/* ==========================================================================
   Headings shared by all columns
   ========================================================================== */
.cif-footer h4.cif-footer-heading {
    font-family: 'Oswald', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 26px;
    position: relative;
    padding-bottom: 14px;
}
.cif-footer h4.cif-footer-heading::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 32px; height: 2px;
    background: var(--footer-gold);
}

/* ==========================================================================
   Quick links
   ========================================================================== */
.cif-footer-links { display: flex; flex-direction: column; gap: 4px; }
.cif-footer-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--footer-text);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 400;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: color 0.3s ease, gap 0.3s ease, padding-left 0.3s ease;
}
.cif-footer-links a i {
    font-size: 0.7rem;
    color: var(--footer-gold);
    transition: transform 0.3s ease;
}
.cif-footer-links a:hover {
    color: #ffffff;
    padding-left: 4px;
}
.cif-footer-links a:hover i { transform: translateX(4px); }

/* ==========================================================================
   Contact column
   ========================================================================== */
.cif-footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}
.cif-footer-contact-icon {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(201, 163, 94, 0.12);
    border: 1px solid rgba(201, 163, 94, 0.35);
    color: var(--footer-gold);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.cif-footer-contact-item a,
.cif-footer-contact-item span {
    color: var(--footer-text);
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.6;
    padding-top: 6px;
}
.cif-footer-contact-item a:hover { color: var(--footer-gold); }

/* ==========================================================================
   Admin login column
   ========================================================================== */
.cif-footer-admin-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 26px;
    background: transparent;
    border: 1px solid var(--footer-gold);
    color: var(--footer-gold);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 2px;
    transition: all 0.35s var(--ease-premium);
}
.cif-footer-admin-btn:hover {
    background: var(--footer-gold);
    color: var(--footer-navy-1);
    box-shadow: 0 14px 30px rgba(201, 163, 94, 0.25);
}

/* ==========================================================================
   Copyright bar
   ========================================================================== */
.cif-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
    font-size: 0.85rem;
    color: var(--footer-text-dim);
}
.cif-footer-bottom a { color: var(--footer-text); text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.25); transition: color 0.3s ease, border-color 0.3s ease; }
.cif-footer-bottom a:hover { color: var(--footer-gold); border-color: var(--footer-gold); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 991px) {
    .cif-footer-media { background-attachment: scroll; }
}
@media (max-width: 767px) {
    .cif-footer-brand-row { margin-bottom: 18px; }
    .cif-footer h4.cif-footer-heading { margin-top: 8px; }
}

/* Designer Credit */
.designer-credit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 6px;
    padding-left: 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    white-space: nowrap;
}
.designer-name {
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.5px;
}
.designer-linkedin {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff !important;
    text-decoration: none !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
    margin-left: 2px;
}
.designer-linkedin i {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}
.designer-linkedin:hover {
    background: #0a66c2 !important; /* LinkedIn Blue */
    border-color: #0a66c2 !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(10, 102, 194, 0.4);
}
.designer-linkedin:hover i {
    transform: scale(1.15);
    animation: bounceIcon 0.5s ease;
}
@keyframes bounceIcon {
    0%, 100% { transform: scale(1.15) translateY(0); }
    50% { transform: scale(1.15) translateY(-2px); }
}
@media (max-width: 767px) {
    .designer-credit {
        display: flex;
        justify-content: center;
        border-left: none;
        margin-left: 0;
        padding-left: 0;
        margin-top: 10px;
        flex-wrap: wrap;
    }
}

/* Footer marquee strip */
.cif-footer-strip {
    position: absolute; top: 0; left: 0;
    width: 100%;
    z-index: 10;
    background: #0f172a; /* Ultra-dark navy */
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 18px 0;
    overflow: hidden;
}
.cif-footer-strip-track {
    display: flex;
    gap: 56px;
    width: max-content;
    animation: cifFooterMarquee 32s linear infinite;
}
.cif-footer-strip:hover .cif-footer-strip-track { animation-play-state: paused; }
.cif-footer-strip-track span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.65);
    font-size: 0.82rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    white-space: nowrap;
}
.cif-footer-strip-track span i { color: var(--footer-gold, #c9a35e); font-size: 0.5rem; }
@keyframes cifFooterMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
