/* ═══════════════════════════════════════════════════════════════
   ZAMBALA GROUP — Global Hover Readability & Responsive Fixes
   All hover states guarantee readable text (WCAG AA contrast)
   ═══════════════════════════════════════════════════════════════ */

/* ── Sector tiles (home page) ── */
.sector-tile {
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e2e8f0;
    transition: transform .28s cubic-bezier(0.16,1,0.3,1),
                box-shadow .28s ease,
                border-color .28s ease;
    text-decoration: none;
    color: inherit;
}
.sector-tile:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 38px -8px rgba(0,31,153,.13);
    border-color: rgba(227,30,47,.38);
    color: inherit;
}
.sector-tile-thumb { overflow: hidden; }
.sector-tile-thumb img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform .45s ease;
}
.sector-tile:hover .sector-tile-thumb img { transform: scale(1.05); }

.sector-tile-title {
    font-size: 1rem;
    font-weight: 800;
    color: #001f99;
    transition: color .2s ease;
}
.sector-tile:hover .sector-tile-title { color: #e31e2f; }

.sector-tile-desc {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.5;
}

.sector-tile-footer .sector-action-text {
    color: #001f99;
    font-weight: 700;
    font-size: 0.8rem;
    transition: color .2s ease;
}
.sector-tile:hover .sector-action-text { color: #e31e2f; }

.sector-tile-footer .tile-arrow {
    color: #001f99;
    transition: transform .2s ease, color .2s ease;
}
.sector-tile:hover .tile-arrow {
    transform: translateX(4px);
    color: #e31e2f;
}

/* ── Business list cards ── */
.business-list-content span {
    color: #001f99;          /* was inheriting old blue var */
    font-weight: 700;
}
.business-list-card:hover .business-list-content span {
    color: #e31e2f;
}

/* ── Pillar cards (home Why section) ── */
.pillar-card:hover h3 { color: #e31e2f; }
.pillar-card h3 { transition: color .2s ease; }

/* ── Featured project card CTA button ── */
.featured-card-btn {
    background: #e31e2f !important;
    color: #ffffff !important;          /* always white — readable */
}
.featured-card.state-center:hover .featured-card-btn {
    background: #b91525 !important;
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(227,30,47,.4);
    transform: translateY(-2px);
}

.button:hover,
.button:focus-visible,
.btn-danger:hover,
.btn-danger:focus-visible,
.btn-outline-danger:hover,
.btn-outline-danger:focus-visible,
.nav-cta:hover,
.nav-cta:focus-visible,
.footer-cta-btn:hover,
.footer-cta-btn:focus-visible,
.hero-btn-primary:hover,
.hero-btn-primary:focus-visible,
.featured-card-btn:hover,
.featured-card-btn:focus-visible {
     color: #ffffff !important;
}

/* ── Nav CTA button ── */
.nav-cta {
    background: #e31e2f !important;
    color: #ffffff !important;
    border-radius: 6px;
    padding: 8px 18px;
    font-weight: 700;
    font-size: 0.875rem;
    text-decoration: none;
    white-space: nowrap;
    transition: background .22s ease, box-shadow .22s ease;
}
.nav-cta:hover {
    background: #b91525 !important;
    color: #ffffff !important;       /* always white text */
    box-shadow: 0 4px 14px rgba(227,30,47,.3);
}

/* ── Filter pills ── */
.filter-pill-active {
    background: #e31e2f !important;
    border-color: #e31e2f !important;
    color: #ffffff !important;
}
.filter-pill:hover:not(.filter-pill-active) {
    background: #f1f5ff;
    border-color: #001f99;
    color: #001f99 !important;
}

/* ── Footer links ── */
footer a:hover { color: #ffffff !important; }
footer a { transition: color .18s ease; }

/* ══════════════════════════════════════════════════
   RESPONSIVE — NAVBAR (3-zone: logo | center | CTA)
   ══════════════════════════════════════════════════ */

/* Desktop: ensure ul truly centers */
@media (min-width: 992px) {
    .site-nav .navbar-collapse {
        display: flex !important;
        align-items: center;
    }
    .site-nav .navbar-nav.mx-auto {
        flex: 1;
        justify-content: center;
    }
    .site-nav .nav-cta {
        flex-shrink: 0;
    }
    /* Dropdown positioning fix */
    .business-dropdown,
    .about-dropdown,
    .projects-dropdown {
        top: calc(100% + 10px) !important;
    }
}

/* Mobile collapse: stack links vertically, CTA full width */
@media (max-width: 991.98px) {
    .site-nav .navbar-collapse {
        flex-direction: column;
        align-items: stretch !important;
        gap: 0;
        padding: 1rem;
        border-top: 1px solid #e2e8f0;
        margin-top: 8px;
    }
    .site-nav .navbar-nav {
        flex-direction: column;
        width: 100%;
        gap: 0 !important;
    }
    .site-nav li a,
    .site-nav .business-menu-label {
        padding: 10px 4px;
        display: block;
        border-bottom: 1px solid #f1f5f9;
    }
    .nav-cta {
        display: block !important;
        text-align: center;
        margin-top: 12px;
        width: 100%;
        padding: 11px 0 !important;
    }
}

/* ══════════════════════════════════════
   RESPONSIVE — PROJECTS PAGE HEADER
   ══════════════════════════════════════ */
@media (max-width: 767.98px) {
    .projects-page-title { padding: 16px 0 14px; font-size: 1.6rem; }
    .projects-filter-bar .d-flex { flex-direction: column; gap: 10px !important; align-items: flex-start !important; }
    .filter-pill { font-size: 0.75rem; padding: 4px 12px; }
    .projects-filter-bar form { width: 100%; }
    .projects-filter-bar select { width: 100%; }
}

/* ══════════════════════════════════════
   RESPONSIVE — PRODUCT CARDS GRID
   ══════════════════════════════════════ */
@media (max-width: 575.98px) {
    .pcard-img { height: 170px; }
    .pcard-body { padding: 12px 14px 14px; gap: 8px; }
    .pcard-title { font-size: 0.95rem; }
    .pcard-tag { font-size: 0.74rem; }
    .pcard-btn { font-size: 0.8rem; padding: 7px 0; }
}

/* ══════════════════════════════════════
   RESPONSIVE — FEATURED SLIDER
   ══════════════════════════════════════ */
@media (max-width: 575.98px) {
    .featured-slider-wrapper { padding: 0 8px; }
    .featured-card-body { padding: 14px 16px 16px; }
    .featured-card-title { font-size: 1rem; }
    .featured-slider-arrow { display: none; } /* rely on dots on tiny screens */
}

/* ══════════════════════════════════════
   RESPONSIVE — HERO SECTION
   ══════════════════════════════════════ */
@media (max-width: 575.98px) {
    .hero-inner h1 { font-size: clamp(28px, 8vw, 40px); }
    .hero-inner p  { font-size: 15px; }
    .hero-btn-primary,
    .hero-btn-secondary {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    .d-flex.flex-wrap.gap-3 { flex-direction: column !important; }
}

/* ══════════════════════════════════════
   RESPONSIVE — FOOTER
   ══════════════════════════════════════ */
@media (max-width: 767.98px) {
    footer .row { gap: 2rem !important; }
    footer h6 { margin-top: 0; }
}

/* ══════════════════════════════════════
   RESPONSIVE — CHAIRMAN SECTION
   ══════════════════════════════════════ */
@media (max-width: 575.98px) {
    .chairman-photo-col,
    .chairman-photo-col img {
        min-height: 260px !important;
    }
    .chairman-content-col {
        padding: 24px !important;
    }
    .chairman-sig-block {
        flex-direction: column !important;
        gap: 12px;
        align-items: flex-start !important;
    }
}
