/* =====================================================
   ABSA BANK ZAMBIA — Public Homepage Styles
   Cloned pixel-perfect from https://www.absa.co.zm/personal
   ===================================================== */

:root {
    --absa-red: #95052A;
    --absa-red-dark: #77021E;
    --absa-red-light: #B71C3E;
    --absa-orange: #FA551E;
    --absa-text: #2D2323;
    --absa-text-light: #524A4A;
    --absa-grey: #939191;
    --absa-grey-light: #F4F3F3;
    --absa-border: #DDDDDD;
    --absa-white: #FFFFFF;
    --absa-black: #1A1A1A;
    --absa-link-red: #AF144B;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    font-family: 'Source Sans 3', 'Source Sans Pro', Arial, sans-serif;
    font-size: 16px;
    color: var(--absa-text);
    background: #fff;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* =====================================================
   1. HEADER
   ===================================================== */
.absa-header {
    background: #fff;
    position: relative;
    z-index: 100;
    border-bottom: 1px solid #f0f0f0;
}

.absa-header-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    height: 72px;
    gap: 0;
}

/* Logo */
.absa-logo {
    display: flex;
    align-items: center;
    padding-right: 24px;
    border-right: 1px solid #ddd;
    margin-right: 24px;
    flex-shrink: 0;
}

.absa-logo img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

/* Nav Tabs */
.absa-nav {
    display: flex;
    gap: 36px;
    flex: 1;
}

.absa-nav a {
    font-size: 16px;
    color: var(--absa-text);
    padding: 24px 0;
    position: relative;
    font-weight: 400;
    transition: color 0.15s;
}

.absa-nav a.active {
    color: var(--absa-red);
    font-weight: 600;
}

.absa-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--absa-red);
}

.absa-nav a:hover {
    color: var(--absa-red);
}

/* Header Actions (right side) */
.absa-header-actions {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-shrink: 0;
}

.absa-header-action {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--absa-text);
    font-size: 16px;
    padding: 8px 4px;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.15s;
}

.absa-header-action:hover {
    color: var(--absa-red);
}

.absa-header-action i {
    font-size: 18px;
}

.absa-menu-btn {
    display: none;
}

/* Login Modal (dropdown) */
.absa-login-dropdown {
    display: none;
    position: absolute;
    top: 72px;
    right: 30px;
    width: 360px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    z-index: 200;
    padding: 0;
    overflow: hidden;
}

.absa-login-dropdown.show {
    display: block;
}

.absa-login-dropdown-header {
    background: var(--absa-red);
    color: #fff;
    padding: 18px 20px;
}

.absa-login-dropdown-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.absa-login-dropdown-header select {
    width: 100%;
    padding: 8px 10px;
    border: none;
    background: #fff;
    color: var(--absa-text);
    font-size: 14px;
    font-family: inherit;
    border-radius: 2px;
    cursor: pointer;
}

.absa-login-dropdown-body {
    padding: 20px;
}

.absa-login-dropdown-body label {
    font-size: 13px;
    font-weight: 600;
    color: var(--absa-text);
    display: block;
    margin-bottom: 8px;
}

.absa-login-dropdown-body select,
.absa-login-dropdown-body input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 2px;
    font-size: 14px;
    margin-bottom: 14px;
    font-family: inherit;
}

.absa-login-dropdown-body input:focus,
.absa-login-dropdown-body select:focus {
    outline: none;
    border-color: var(--absa-red);
}

.absa-login-submit {
    width: 100%;
    background: var(--absa-red);
    color: #fff;
    border: none;
    padding: 12px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 2px;
    cursor: pointer;
    text-transform: none;
    transition: background 0.15s;
}

.absa-login-submit:hover {
    background: var(--absa-red-dark);
}

.absa-login-dropdown-body .absa-login-link {
    text-align: center;
    margin-top: 16px;
}

.absa-login-dropdown-body .absa-login-link a {
    color: var(--absa-red);
    font-size: 13px;
    font-weight: 600;
}

.absa-login-backdrop {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 99;
}

.absa-login-backdrop.show { display: block; }

/* =====================================================
   2. QUICK LINKS BAR (red bar below header)
   ===================================================== */
.absa-quicklinks {
    background: var(--absa-red);
    color: #fff;
}

.absa-quicklinks-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 30px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.absa-quicklinks-list {
    display: flex;
    gap: 32px;
}

.absa-quicklinks-list a {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 0;
    position: relative;
    transition: opacity 0.15s;
}

.absa-quicklinks-list a:hover {
    opacity: 0.85;
}

.absa-quicklinks-right {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
}

.absa-quicklinks-right i {
    font-size: 16px;
}

/* =====================================================
   3. HERO BANNERS
   ===================================================== */
.absa-hero {
    width: 100%;
}

.absa-hero-grid {
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.absa-hero-card {
    position: relative;
    height: 420px;
    overflow: hidden;
    cursor: pointer;
}

.absa-hero-card img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.absa-hero-card:hover img {
    transform: scale(1.05);
}

.absa-hero-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 30px 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
    z-index: 2;
}

.absa-hero-card h2 {
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 10px;
}

.absa-hero-card-content a {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.absa-hero-card-content a:hover {
    text-decoration: none;
}

/* =====================================================
   4. WHAT WOULD YOU LIKE TO DO
   ===================================================== */
.absa-services {
    background: #fff;
    padding: 60px 30px 50px;
}

.absa-services-inner {
    max-width: 1440px;
    margin: 0 auto;
}

.absa-services h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--absa-text);
    margin-bottom: 32px;
}

.absa-services-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
}

.absa-service-item {
    padding: 20px 18px 16px;
    text-align: center;
    cursor: pointer;
    border-right: 1px solid transparent;
    transition: background 0.15s;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.absa-service-item:hover {
    background: var(--absa-grey-light);
}

.absa-service-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 14px;
    color: var(--absa-text);
    display: flex;
    align-items: center;
    justify-content: center;
}

.absa-service-icon i {
    font-size: 36px;
    font-weight: 300;
}

.absa-service-icon img {
    width: 48px;
    height: 48px;
}

.absa-service-item h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--absa-text);
    margin-bottom: 4px;
    line-height: 1.3;
}

.absa-service-divider {
    width: 30px;
    height: 1px;
    background: var(--absa-border);
    margin: 8px auto;
}

.absa-service-item a {
    color: var(--absa-orange);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.absa-service-item a:hover {
    text-decoration: underline;
}

/* =====================================================
   5. ADVERT BANNERS (alternating red-image)
   ===================================================== */
.absa-adverts {
    padding: 30px 0 0;
}

.absa-advert {
    max-width: 1440px;
    margin: 0 auto 20px;
    padding: 0 30px;
}

.absa-advert-card {
    position: relative;
    display: flex;
    min-height: 320px;
    border-radius: 0;
    overflow: hidden;
}

.absa-advert-text {
    flex: 0 0 45%;
    padding: 50px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(149, 5, 42, 0.85);
    color: #fff;
    background-image: linear-gradient(135deg, rgba(149, 5, 42, 0.92), rgba(119, 2, 30, 0.92));
    position: relative;
    z-index: 1;
}

.absa-advert-text h2 {
    font-size: 28px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.25;
}

.absa-advert-text p {
    font-size: 15px;
    color: rgba(255,255,255,0.95);
    margin-bottom: 24px;
    line-height: 1.5;
}

.absa-advert-image {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.absa-advert-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.absa-btn-ghost {
    display: inline-block;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.85);
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 2px;
    background: transparent;
    transition: all 0.15s;
    width: fit-content;
    text-decoration: none;
}

.absa-btn-ghost:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border-color: #fff;
}

/* Alternating: image on left */
.absa-advert-card.reverse {
    flex-direction: row-reverse;
}

.absa-advert-card.reverse .absa-advert-text {
    background-image: linear-gradient(135deg, rgba(0,0,0,0.75), rgba(0,0,0,0.55));
    background-color: rgba(0,0,0,0.6);
}

/* Full red background advert (no image) */
.absa-advert-card.full-red {
    background: var(--absa-red);
}

.absa-advert-card.full-red .absa-advert-text {
    flex: 1;
    background: none;
}

.absa-advert-card.full-red .absa-advert-image {
    flex: 0 0 50%;
}

/* =====================================================
   6. MORE SOLUTIONS
   ===================================================== */
.absa-more-solutions {
    background: #fff;
    padding: 60px 30px 40px;
}

.absa-more-solutions-inner {
    max-width: 1440px;
    margin: 0 auto;
}

.absa-more-solutions h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--absa-text);
    margin-bottom: 24px;
}

.absa-solutions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.absa-solution-card {
    background: var(--absa-red);
    background-image: linear-gradient(135deg, var(--absa-red), var(--absa-red-dark));
    padding: 36px 40px;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    color: #fff;
    min-height: 180px;
}

.absa-solution-card-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.absa-solution-card-icon img {
    width: 100%;
    height: 100%;
}

.absa-solution-card-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.absa-solution-card-content p {
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 14px;
    line-height: 1.5;
}

.absa-solution-card-content .absa-btn-ghost {
    float: right;
    margin-top: -36px;
}

/* =====================================================
   7. FOOTER
   ===================================================== */
.absa-footer {
    background: #fff;
    color: var(--absa-text);
    padding: 40px 30px 0;
    border-top: 1px solid #eee;
}

.absa-footer-inner {
    max-width: 1440px;
    margin: 0 auto;
}

/* App Download Section */
.absa-footer-app {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 32px;
    border-bottom: 1px solid #eee;
}

.absa-footer-app h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--absa-text);
}

.absa-app-badges {
    display: flex;
    gap: 12px;
}

.absa-app-badges a img {
    height: 44px;
    width: auto;
}

/* Footer Columns */
.absa-footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 40px;
    padding: 32px 0 24px;
}

.absa-footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--absa-text);
    text-transform: none;
    margin-bottom: 14px;
}

.absa-footer-col p {
    margin-bottom: 8px;
    line-height: 1.6;
}

.absa-footer-col a {
    color: var(--absa-text);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.15s;
}

.absa-footer-col a:hover {
    color: var(--absa-red);
}

.absa-social-links {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.absa-social-links a img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

/* Footer Legal Text */
.absa-footer-legal {
    text-align: center;
    padding: 24px 0 20px;
    font-size: 13px;
    color: var(--absa-text);
    line-height: 1.6;
}

/* Footer bottom red bar */
.absa-footer-bar {
    height: 6px;
    background: linear-gradient(90deg,
        var(--absa-red) 0%,
        var(--absa-red) 33%,
        var(--absa-orange) 33%,
        var(--absa-orange) 66%,
        #FFD700 66%,
        #FFD700 100%
    );
}

/* =====================================================
   8. COOKIE NOTICE
   ===================================================== */
.absa-cookie {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #ddd;
    z-index: 1000;
    padding: 14px 30px;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
}

.absa-cookie.show {
    display: block;
}

.absa-cookie-inner {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.absa-cookie-text {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--absa-text);
}

.absa-cookie-text img {
    width: 24px;
    height: 24px;
}

.absa-cookie-text a {
    color: var(--absa-red);
    text-decoration: none;
    margin-left: 4px;
}

.absa-cookie-text a:hover {
    text-decoration: underline;
}

.absa-cookie-dismiss {
    background: var(--absa-red);
    color: #fff;
    border: none;
    padding: 8px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.15s;
}

.absa-cookie-dismiss:hover {
    background: var(--absa-red-dark);
}

/* =====================================================
   9. RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
    .absa-nav { gap: 24px; }
    .absa-services-grid { grid-template-columns: repeat(3, 1fr); gap: 0; }
    .absa-service-item:nth-child(3) { border-right: none; }
    .absa-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .absa-hero-card h2 { font-size: 20px; }
}

@media (max-width: 768px) {
    .absa-header { padding: 0; }
    .absa-header-inner { padding: 0 16px; height: 60px; }
    .absa-nav { display: none; }
    .absa-header-action span { display: none; }
    .absa-header-action i { font-size: 18px; }
    .absa-menu-btn { display: inline-flex; }
    .absa-logo { padding-right: 0; border-right: none; margin-right: 0; }
    .absa-logo img { width: 40px; height: 40px; }
    .absa-header-actions { gap: 12px; margin-left: auto; }

    .absa-quicklinks-list { display: none; }
    .absa-quicklinks-inner { justify-content: flex-end; }
    .absa-quicklinks-right { font-size: 13px; }

    .absa-hero-grid { grid-template-columns: 1fr; }
    .absa-hero-card { height: 360px; }
    .absa-hero-card h2 { font-size: 22px; }

    .absa-services { padding: 40px 20px 30px; }
    .absa-services h2 { font-size: 22px; }
    .absa-services-grid { grid-template-columns: repeat(2, 1fr); }
    .absa-service-item:nth-child(2) { border-right: none; }
    .absa-service-item:nth-child(4) { border-right: none; }

    .absa-advert-card,
    .absa-advert-card.reverse { flex-direction: column; }
    .absa-advert-text { flex: none; padding: 36px 24px; }
    .absa-advert-image { height: 220px; }

    .absa-solutions-grid { grid-template-columns: 1fr; }
    .absa-footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .absa-footer-app { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
    .absa-hero-card { height: 300px; }
    .absa-hero-card-content { padding: 30px 20px 20px; }
    .absa-hero-card h2 { font-size: 18px; }
    .absa-services-grid { grid-template-columns: repeat(2, 1fr); }
    .absa-solution-card { padding: 24px 20px; }
    .absa-solution-card-content .absa-btn-ghost { float: none; margin-top: 12px; display: inline-block; }
}
