/* ================================================
   Site footer — Anjuman Talimul Islam
   ================================================ */

/* Google Translate banner suppression handled by footer-layout.css */

:root {
    --aj-ink-deep:      #081815;
    --aj-ink:           #0B1E1C;
    --aj-ink-panel:     #0F2E29;
    --aj-ink-panel-2:   #123830;
    --aj-gold:          #C9A44C;
    --aj-gold-bright:   #E4C878;
    --aj-gold-dim:      #8A7238;
    --aj-parchment:     #EFE6D2;
    --aj-parchment-dim: #C9BEA2;
    --aj-sage:          #8FA89A;
    --aj-terracotta:    #D4654A;
    --aj-line:          rgba(201,164,76,0.22);
    --aj-line-soft:     rgba(201,164,76,0.12);
    --aj-font-display:  'Amiri', 'Georgia', serif;
    --aj-font-body:     'Poppins', -apple-system, sans-serif;
}

/* ============ footer shell ============ */
.aji-footer {
    position: relative;
    background:
        radial-gradient(ellipse 900px 500px at 15% -10%, rgba(201,164,76,0.07), transparent 60%),
        radial-gradient(ellipse 700px 500px at 100% 10%, rgba(212,101,74,0.05), transparent 55%),
        linear-gradient(180deg, var(--aj-ink) 0%, var(--aj-ink-deep) 100%);
    color: var(--aj-parchment);
    overflow: visible;
    padding: 0;
    margin-top: 0;
    font-family: var(--aj-font-body);
}

.aji-clip {
    position: relative;
    overflow: hidden;
}

/* ============ jaali lattice watermark ============ */
.jaali-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.22;
    z-index: 0;
    -webkit-mask-image: radial-gradient(ellipse 90% 85% at 50% 30%, black 40%, transparent 92%);
    mask-image: radial-gradient(ellipse 90% 85% at 50% 30%, black 40%, transparent 92%);
}

.jaali-layer svg {
    width: 100%;
    height: 100%;
}

.jaali-layer path.tile-line {
    fill: none;
    stroke: var(--aj-gold);
    stroke-width: 0.75;
    stroke-dasharray: 2600;
    stroke-dashoffset: 2600;
    animation: aj-draw-lattice 3.6s cubic-bezier(.4,0,.2,1) forwards;
}

.jaali-layer circle.tile-dot {
    fill: var(--aj-gold);
    opacity: 0;
    animation: aj-dot-fade 1s ease forwards;
    animation-delay: 3.2s;
}

@keyframes aj-dot-fade   { to { opacity: 0.35; } }
@keyframes aj-draw-lattice { to { stroke-dashoffset: 0; } }

.footer-grain {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 3px 3px;
    pointer-events: none;
    z-index: 0;
}

/* ============ layout shell ============ */
.aji-inner {
    position: relative;
    z-index: 2;
    max-width: 1320px;
    margin: 0 auto;
    padding: 32px 56px 0;
}

.aji-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr 1.15fr;
    gap: 40px;
    padding-bottom: 20px;
}

.fade-up {
    opacity: 0;
    transform: translateY(22px);
    animation: aj-fadeUp 0.9s cubic-bezier(.16,1,.3,1) forwards;
}

@keyframes aj-fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* ============ brand column ============ */
.brand-col .badge-seal {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 9px 20px 9px 12px;
    border: 1px solid var(--aj-line);
    border-radius: 100px;
    background: linear-gradient(180deg, rgba(201,164,76,0.09), rgba(201,164,76,0.02));
    margin-bottom: 20px;
}

.seal-star {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    animation: aj-seal-spin 22s linear infinite;
    transform-origin: center;
}

@keyframes aj-seal-spin {
    to { transform: rotate(360deg); }
}

.badge-seal span {
    font-family: var(--aj-font-body);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--aj-gold-bright);
}

.brand-name {
    font-family: var(--aj-font-display);
    font-weight: 700;
    font-size: 36px;
    line-height: 1.12;
    color: var(--aj-parchment);
    margin: 0 0 4px;
    letter-spacing: 0.01em;
}

.brand-name em {
    font-style: italic;
    color: var(--aj-gold-bright);
    display: block;
    font-size: 0.62em;
    font-weight: 400;
    margin-top: 2px;
    letter-spacing: 0.02em;
}

.brand-desc {
    font-size: 13.5px;
    line-height: 1.75;
    color: var(--aj-sage);
    max-width: 380px;
    margin: 16px 0 24px;
    font-weight: 300;
}

.brand-social {
    display: flex;
    gap: 12px;
}

.social-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--aj-line);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--aj-gold);
    background: rgba(201,164,76,0.04);
    cursor: pointer;
    transition: border-color .35s ease, background .35s ease, transform .35s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.social-btn svg {
    width: 18px;
    height: 18px;
    position: relative;
    z-index: 1;
    transition: transform .35s ease;
}

.social-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--aj-gold);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform .4s cubic-bezier(.4,0,.2,1);
    z-index: 0;
}

.social-btn:hover::before { transform: scaleY(1); }
.social-btn:hover { border-color: var(--aj-gold); }
.social-btn:hover svg { transform: scale(1.08); }
.social-btn:hover svg * { stroke: var(--aj-ink); }

/* ============ nav columns ============ */
.col-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--aj-font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--aj-terracotta);
    margin: 0 0 18px;
}

.col-heading::before {
    content: '';
    width: 14px;
    height: 14px;
    background: var(--aj-terracotta);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    flex-shrink: 0;
    opacity: 0.9;
}

.link-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.link-list a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0;
    text-decoration: none;
    color: var(--aj-parchment-dim);
    font-size: 13.5px;
    font-weight: 400;
    padding: 7px 0 7px 22px;
    transition: color .3s ease, padding-left .3s cubic-bezier(.4,0,.2,1);
}

.link-list a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 6px;
    height: 6px;
    transform: translateY(-50%) rotate(45deg) scale(0.001);
    background: var(--aj-gold-bright);
    transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}

.link-list a::after {
    content: '';
    position: absolute;
    left: 22px;
    bottom: 5px;
    height: 1px;
    width: 0;
    background: linear-gradient(90deg, var(--aj-gold-bright), transparent);
    transition: width .4s cubic-bezier(.4,0,.2,1);
}

.link-list a:hover {
    color: var(--aj-parchment);
    padding-left: 28px;
}

.link-list a:hover::before {
    transform: translateY(-50%) rotate(45deg) scale(1);
}

.link-list a:hover::after {
    width: calc(100% - 22px);
}

/* ============ connect column ============ */
.connect-item {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    align-items: flex-start;
}

.connect-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid var(--aj-line);
    background: rgba(201,164,76,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--aj-gold-bright);
    margin-top: 1px;
}

.connect-icon svg {
    width: 16px;
    height: 16px;
}

.connect-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--aj-gold-dim);
    font-weight: 600;
    margin: 0 0 2px;
}

.connect-value {
    font-size: 13px;
    color: var(--aj-parchment);
    line-height: 1.5;
    font-weight: 400;
}

.connect-value a {
    color: inherit;
    text-decoration: none;
}

/* ============ CTA stack ============ */
.cta-stack {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid var(--aj-line);
    background: linear-gradient(135deg, rgba(201,164,76,0.06), rgba(201,164,76,0.01));
    text-decoration: none;
    color: var(--aj-parchment);
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color .3s ease, background .3s ease, transform .3s ease;
    position: relative;
    overflow: hidden;
}

.cta-row .cta-arrow {
    width: 16px;
    height: 16px;
    color: var(--aj-gold-bright);
    transition: transform .35s cubic-bezier(.34,1.56,.64,1);
    flex-shrink: 0;
}

.cta-row:hover {
    border-color: var(--aj-gold);
    background: linear-gradient(135deg, rgba(201,164,76,0.13), rgba(201,164,76,0.03));
    transform: translateX(3px);
}

.cta-row:hover .cta-arrow {
    transform: translateX(4px);
}

.cta-row.pulse-live {
    border-color: rgba(212,101,74,0.35);
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--aj-terracotta);
    display: inline-block;
    margin-right: 8px;
    position: relative;
}

.live-dot::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 1px solid var(--aj-terracotta);
    animation: aj-live-ping 2.2s cubic-bezier(0,0,.2,1) infinite;
}

@keyframes aj-live-ping {
    0%   { transform: scale(0.6); opacity: 0.9; }
    100% { transform: scale(1.8); opacity: 0; }
}

/* ============ manuscript divider ============ */
.manuscript-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 0 24px;
    position: relative;
    z-index: 2;
}

.manuscript-divider .rule {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--aj-line) 15%, var(--aj-line) 85%, transparent);
}

.manuscript-divider .rosette {
    width: 28px;
    height: 28px;
    color: var(--aj-gold);
    opacity: 0.85;
    flex-shrink: 0;
}

/* ============ bottom bar ============ */
.aji-bottom {
    position: relative;
    z-index: 2;
    max-width: 1320px;
    margin: 0 auto;
    padding: 24px 56px 28px;
    border-top: 1px solid var(--aj-line-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.aji-bottom .copy-text {
    font-size: 12px;
    color: var(--aj-sage);
    font-weight: 300;
}

.aji-bottom .copy-text a {
    color: var(--aj-gold-bright);
    text-decoration: none;
    font-weight: 500;
}

.aji-bottom .legal-links {
    display: flex;
    gap: 20px;
}

.aji-bottom .legal-links a {
    font-size: 12px;
    color: var(--aj-sage);
    text-decoration: none;
    transition: color .3s ease;
    position: relative;
}

.aji-bottom .legal-links a:hover {
    color: var(--aj-parchment);
}

.back-to-top {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--aj-ink-panel-2);
    border: 1px solid var(--aj-line);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--aj-gold-bright);
    cursor: pointer;
    z-index: 3;
    transition: transform .35s cubic-bezier(.34,1.56,.64,1), border-color .3s ease, background .3s ease;
    text-decoration: none;
}

.back-to-top:hover {
    transform: translate(-50%, -50%) translateY(-6px);
    border-color: var(--aj-gold);
    background: var(--aj-ink-panel);
}

.back-to-top svg {
    width: 18px;
    height: 18px;
}

/* ============ responsive ============ */
@media (max-width: 1080px) {
    .aji-grid {
        grid-template-columns: 1fr 1fr;
        row-gap: 36px;
    }
    .brand-col {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .aji-inner { padding: 48px 20px 0; }
    .aji-bottom { padding: 44px 20px 24px; flex-direction: column; align-items: flex-start; }
    .aji-bottom .copy-text { text-align: center; width: 100%; }
    .aji-bottom .legal-links { justify-content: center; width: 100%; }
    .aji-grid { grid-template-columns: 1fr; gap: 32px; }
    .brand-name { font-size: 28px; }
    .back-to-top { width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
    .fade-up,
    .seal-star,
    .live-dot::after,
    path.tile-line {
        animation: none !important;
        opacity: 1 !important;
        stroke-dashoffset: 0 !important;
    }
}

/* ============ sticky footer layout ============ */
/* Flex rules managed by footer-layout.css — do not duplicate here */
.aji-footer {
    margin-bottom: 0;
    flex-shrink: 0;
}

.aji-footer > *:last-child {
    margin-bottom: 0;
}

/* ============ floating translate button ============ */
.floating-translate-circle {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
}

.custom-translate-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--aj-ink-panel), var(--aj-ink-panel-2));
    border: 1px solid var(--aj-line);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--aj-gold-bright);
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transition: transform .35s cubic-bezier(.34,1.56,.64,1), border-color .3s ease, background .3s ease;
}

.custom-translate-btn:hover {
    transform: scale(1.08);
    border-color: var(--aj-gold);
    background: linear-gradient(135deg, var(--aj-ink-panel-2), var(--aj-ink-panel));
}

.custom-translate-dropdown {
    position: absolute;
    bottom: 58px;
    right: 0;
    min-width: 180px;
    background: var(--aj-ink-panel);
    border: 1px solid var(--aj-line);
    border-radius: 12px;
    padding: 6px 0;
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(0.95);
    transition: opacity .25s ease, visibility .25s ease, transform .25s cubic-bezier(.34,1.56,.64,1);
}

.floating-translate-circle.active .custom-translate-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.floating-translate-circle.active .custom-translate-btn {
    border-color: var(--aj-gold);
    background: var(--aj-ink-panel-2);
}

.custom-translate-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 500;
    color: var(--aj-parchment-dim);
    cursor: pointer;
    transition: color .2s ease, background .2s ease, padding-left .2s ease;
}

.custom-translate-item:hover {
    color: var(--aj-parchment);
    background: rgba(201,164,76,0.08);
    padding-left: 22px;
}

.custom-translate-item i {
    font-size: 14px;
    width: 18px;
    text-align: center;
    color: var(--aj-gold);
}
