/* ==========================================================================
   Taraqqi Foundation - modern header & footer
   --------------------------------------------------------------------------
   Loaded after style.css and responsive.css. Everything here is namespaced
   with .tq- classes, so the original rules in style.css are untouched and
   nothing else on the site is affected. Remove the <link> to this file and
   restore header.php / footer.php to go back to the old design.
   ========================================================================== */

:root {
    /* Deep teal + gold. --tq-indigo etc. are kept as names so existing
       rules keep working; the values are now the teal palette. */
    --tq-indigo: #0c5047;        /* primary teal */
    --tq-indigo-dark: #083b34;   /* darker teal: announcement bar, hovers */
    --tq-navy: #0a443c;          /* footer */
    --tq-teal-tile: #10594e;     /* raised tiles on teal */
    --tq-yellow: #f0a81e;        /* gold accent */
    --tq-gold-dark: #d4900f;
    --tq-cream: #fff8e8;
    --tq-red: #e03131;
    --tq-text: #333;
    --tq-muted: #6b7280;
}

/* ---- announcement bar above the header ---- */
.tq-announce {
    background: var(--tq-indigo-dark);
    color: #cfe3de;
    font-family: 'Poppins', 'Segoe UI', Helvetica, Arial, sans-serif;
    font-size: 13.5px;
    line-height: 1.5;
}

.tq-announce-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 34px;
    padding: 9px 0;
    text-align: center;
}

.tq-announce span { display: inline-flex; align-items: center; gap: 7px; }
.tq-announce i { color: var(--tq-yellow); font-size: 12px; }
.tq-announce strong { color: var(--tq-yellow); font-weight: 600; }
.tq-announce a { color: #fff; text-decoration: underline; }
.tq-announce a:hover { color: var(--tq-yellow); text-decoration: underline; }

@media (max-width: 767px) {
    .tq-announce-inner { gap: 4px 18px; padding: 7px 0; font-size: 12.5px; }
    .tq-announce span:nth-child(n+3) { display: none; }
}

.tq-header,
.tq-header *,
.tq-footer,
.tq-footer * {
    font-family: 'Poppins', 'Segoe UI', Helvetica, Arial, sans-serif;
    font-optical-sizing: auto;
}

.tq-header .fa,
.tq-footer .fa {
    font-family: FontAwesome;
}

.tq-header .glyphicon,
.tq-footer .glyphicon {
    font-family: 'Glyphicons Halflings';
}

/* ============================ HEADER ==================================== */
.tq-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: var(--tq-indigo);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    transition: box-shadow .25s ease;
}

.tq-header.is-stuck {
    box-shadow: 0 6px 22px rgba(0, 0, 0, .22);
}

.tq-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 0;
    transition: padding .25s ease;
}

.tq-header.is-stuck .tq-header-inner { padding: 7px 0; }

/* ---- brand ---- */
.tq-brand {
    display: flex;
    align-items: center;
    gap: 13px;
    text-decoration: none;
    flex-shrink: 0;
}

.tq-brand:hover,
.tq-brand:focus { text-decoration: none; }

.tq-brand img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    transition: width .25s ease, height .25s ease;
}

.tq-header.is-stuck .tq-brand img { width: 48px; height: 48px; }

.tq-brand-text { line-height: 1.15; }

.tq-brand-name {
    display: block;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #fff;
}

.tq-brand-tag {
    display: block;
    margin-top: 2px;
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--tq-yellow);
}

/* logo sits on a soft gold tile, as in the reference */
.tq-brand img {
    background: rgba(240, 168, 30, .14);
    border-radius: 12px;
    padding: 4px;
}

/* ---- navigation ---- */
.tq-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tq-nav > li { position: relative; }

.tq-nav > li > a {
    position: relative;
    display: block;
    padding: 10px 14px;
    font-size: 15.5px;
    font-weight: 500;
    color: #d6e5e1;
    text-decoration: none;
    border-radius: 7px;
    transition: color .2s ease, background .2s ease;
}

/* underline that grows from the middle on hover */
.tq-nav > li > a::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 4px;
    height: 2px;
    background: var(--tq-yellow);
    transform: scaleX(0);
    transition: transform .28s ease;
    border-radius: 2px;
}

.tq-nav > li > a:hover,
.tq-nav > li > a:focus {
    color: #fff;
    background: rgba(255, 255, 255, .08);
    text-decoration: none;
}

.tq-nav > li > a:hover::after,
.tq-nav > li.is-active > a::after { transform: scaleX(1); }

.tq-nav > li.is-active > a { color: #fff; font-weight: 600; }

/* ---- donate button ---- */
.tq-donate {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
    padding: 11px 24px !important;
    font-size: 15.5px;
    font-weight: 600;
    color: #11322c !important;
    background: var(--tq-yellow);
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(240, 168, 30, .3);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.tq-donate::after { display: none; }

.tq-donate:hover,
.tq-donate:focus {
    background: var(--tq-gold-dark);
    color: #11322c !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(240, 168, 30, .42);
    text-decoration: none;
}

/* ---- mobile toggle ---- */
.tq-toggle {
    display: none;
    width: 46px;
    height: 42px;
    padding: 0;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 9px;
    cursor: pointer;
}

.tq-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: #fff;
    border-radius: 2px;
    transition: transform .25s ease, opacity .25s ease;
}

.tq-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.tq-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.tq-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 991px) {
    .tq-toggle { display: block; }

    .tq-nav-wrap {
        flex-basis: 100%;
        border-top: 1px solid rgba(255, 255, 255, .14);
        margin-top: 10px;
    }

    .tq-header-inner { flex-wrap: wrap; padding: 10px 0; }

    .tq-nav {
        display: block;
        padding: 8px 0 12px;
    }

    .tq-nav > li > a {
        padding: 12px 6px;
        font-size: 16px;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .08);
    }

    .tq-nav > li > a::after { display: none; }

    .tq-donate {
        justify-content: center;
        margin: 14px 0 4px;
        width: 100%;
    }

    .tq-brand img { width: 48px; height: 48px; }
    .tq-brand-name { font-size: 17px; }
    .tq-brand-tag { font-size: 10.5px; }
}

/* the collapse plugin hides this on small screens; always show it on desktop */
@media (min-width: 992px) {
    .tq-nav-wrap.collapse { display: block !important; height: auto !important; overflow: visible !important; }
}

/* ============================ FOOTER ==================================== */
.tq-footer {
    margin-top: 3em;
    background: var(--tq-navy);
    border-top: 3px solid var(--tq-yellow);
    color: #c2d6d1;
}

.tq-footer-main { padding: 48px 0 34px; }

.tq-footer h4 {
    margin: 0 0 18px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #fff;
}

.tq-footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.tq-footer-brand img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    background: #fff;
    border-radius: 50%;
    padding: 3px;
}

.tq-footer-brand strong {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    line-height: 1.25;
}

.tq-footer-brand span {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--tq-yellow);
}

.tq-footer-about {
    font-size: 14.5px;
    line-height: 1.75;
    color: #bdd2cd;
    text-align: left;
    margin-bottom: 18px;
}

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

.tq-footer ul li { margin-bottom: 11px; }

.tq-footer ul li a {
    display: inline-block;
    font-size: 14.5px;
    color: #bdd2cd;
    text-decoration: none;
    transition: color .2s ease, transform .2s ease;
}

.tq-footer ul li a:hover,
.tq-footer ul li a:focus {
    color: #fff;
    text-decoration: none;
    transform: translateX(4px);
}

/* highlighted entry, same idea as the old footer */
.tq-footer ul li a.is-highlight { color: var(--tq-yellow); font-weight: 600; }
.tq-footer ul li a.is-highlight:hover { color: #fff; }

/* ---- contact ---- */
.tq-contact li {
    display: flex;
    gap: 11px;
    margin-bottom: 15px;
    font-size: 14.5px;
    line-height: 1.6;
}

.tq-contact li i {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    font-size: 13px;
    color: var(--tq-yellow);
    background: rgba(255, 255, 255, .07);
    border-radius: 8px;
}

.tq-contact small {
    display: block;
    font-size: 11.5px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #89a39d;
}

.tq-contact a { color: #e8f1ef; text-decoration: none; }
.tq-contact a:hover { color: var(--tq-yellow); text-decoration: none; }

.tq-footer-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    padding: 10px 22px;
    font-size: 14.5px;
    font-weight: 600;
    color: #11322c;
    background: var(--tq-yellow);
    border-radius: 999px;
    text-decoration: none;
    transition: background .2s ease, transform .2s ease;
}

.tq-footer-cta:hover {
    background: var(--tq-gold-dark);
    color: #11322c;
    text-decoration: none;
    transform: translateY(-2px);
}

/* ---- social ---- */
.tq-social { display: flex; gap: 10px; }

.tq-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #fff;
    font-size: 15px;
    background: rgba(255, 255, 255, .09);
    transition: background .22s ease, transform .22s ease;
}

.tq-social a:hover { transform: translateY(-3px); color: #fff; text-decoration: none; }
.tq-social a.tq-fb:hover { background: #1877f2; }
.tq-social a.tq-ig:hover { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); }

/* ---- bottom bar ---- */
.tq-footer-bottom {
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, .09);
}

.tq-footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13.5px;
    color: #9bb4ae;
}

.tq-footer-bottom a { color: #9bb4ae; text-decoration: none; }
.tq-footer-bottom a:hover { color: var(--tq-yellow); text-decoration: none; }

.tq-footer-bottom-links { display: flex; gap: 18px; flex-wrap: wrap; }

@media (max-width: 767px) {
    .tq-footer-main { padding: 36px 0 24px; }
    .tq-footer-col { margin-bottom: 30px; }
    .tq-footer-bottom-inner { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    .tq-header, .tq-header-inner, .tq-brand img, .tq-nav > li > a,
    .tq-nav > li > a::after, .tq-donate, .tq-social a,
    .tq-footer ul li a, .tq-footer-cta { transition: none !important; }
}
