/* =====================================================================
   AFRIDOM.NET homepage refresh (design preview)
   Loaded after the original template styles. Only affects elements with
   the new "ad-" classes, plus a few header tidy-ups scoped to .ad-refresh.
   Brand: AFRIDOM logo, Quicksand, AFRIDOM blue #3498db (unchanged).
   ===================================================================== */

:root {
    --ad-blue: #3498db;        /* existing AFRIDOM theme blue */
    --ad-blue-dark: #1f6fa8;   /* hover / pressed */
    --ad-navy: #14324a;        /* deep tone drawn from the blue, for the products band */
    --ad-ink: #22303a;         /* headings */
    --ad-text: #4e5b65;        /* body copy (darker than the old #616161 grey for contrast) */
    --ad-mist: #f2f6f9;        /* light section background */
    --ad-savanna: #e0b25c;     /* warm accent taken from the elephants photograph; used sparingly */
    --ad-radius: 10px;
}

.ad-refresh { color: var(--ad-text); font-weight: 500; font-size: 17px; line-height: 1.7; }
.ad-refresh p { color: var(--ad-text); }
.ad-refresh h1, .ad-refresh h2, .ad-refresh h3 { color: var(--ad-ink); letter-spacing: -0.01em; }
.ad-refresh a:focus-visible, .ad-refresh .ad-btn:focus-visible {
    outline: 3px solid var(--ad-savanna); outline-offset: 3px; border-radius: 4px;
}

/* header: fully opaque so the logo stays crisp over the hero */
.ad-refresh header { opacity: 1; }
.ad-refresh .navbar-nav > li > a { font-weight: 600; }

/* ---------- shared pieces ---------- */
.ad-h2 { font-size: 34px; line-height: 1.2; font-weight: 700; margin: 0 0 14px; }
.ad-section-head { max-width: 640px; margin: 0 0 44px; }
.ad-section-head p { font-size: 18px; margin: 0; }
.ad-section-head--light .ad-h2 { color: #fff; }
.ad-section-head--light p { color: #c9d9e6; }

.ad-btn {
    display: inline-block; padding: 13px 26px; border-radius: 999px;
    font-weight: 700; font-size: 16px; line-height: 1.2; border: 2px solid transparent;
    transition: background-color .2s, color .2s, border-color .2s;
}
.ad-btn--primary { background: var(--ad-blue); color: #fff; }
.ad-btn--primary:hover { background: var(--ad-blue-dark); color: #fff; }
.ad-btn--ghost { border-color: rgba(255,255,255,.8); color: #fff; }
.ad-btn--ghost:hover { background: #fff; color: var(--ad-ink); }

.ad-link { font-weight: 700; color: var(--ad-blue-dark); border-bottom: 2px solid rgba(52,152,219,.35); padding-bottom: 2px; }
.ad-link:hover { color: var(--ad-ink); border-color: var(--ad-blue); }

/* ---------- hero ---------- */
.ad-hero {
    position: relative; background-size: cover; background-position: center 40%;
    min-height: 660px; display: flex; align-items: center; padding: 150px 0 90px; /* top room for the template's fixed header */
}
.ad-hero::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(20,50,74,.94) 0%, rgba(20,50,74,.82) 42%, rgba(20,50,74,.25) 100%);
}
.ad-hero .container { position: relative; }
.ad-hero__content { max-width: 600px; }
.ad-hero__kicker { color: var(--ad-savanna) !important; font-weight: 700; font-size: 16px; margin: 0 0 14px; }
.ad-hero__title { color: #fff !important; font-size: 54px; line-height: 1.08; font-weight: 700; margin: 0 0 20px; }
.ad-hero__lead { color: #dce8f1 !important; font-size: 20px; line-height: 1.6; margin: 0 0 32px; max-width: 520px; }
.ad-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- welcome ---------- */
.ad-welcome { padding: 90px 0; background: #fff; }
.ad-welcome__img { width: 100%; height: auto; border-radius: var(--ad-radius); display: block; }
.ad-welcome__text { padding-left: 30px; }
.ad-welcome__text p { font-size: 18px; }
.ad-welcome__links { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.ad-welcome__links a { font-weight: 700; color: var(--ad-blue-dark); border-bottom: 2px solid rgba(52,152,219,.35); padding-bottom: 2px; }

/* ---------- services ---------- */
.ad-services { padding: 90px 0; background: var(--ad-mist); }
.ad-service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.ad-service { background: #fff; border-radius: var(--ad-radius); overflow: hidden; display: flex; flex-direction: column; border: 1px solid #e1e8ee; }
.ad-service img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; display: block; }
.ad-service__body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.ad-service h3 { font-size: 23px; font-weight: 700; margin: 0 0 10px; }
.ad-service p { margin: 0 0 20px; flex: 1; }
.ad-service .ad-link { align-self: flex-start; }

/* ---------- digital products (the one bold band) ---------- */
.ad-products { padding: 96px 0; background: var(--ad-navy); position: relative; overflow: hidden; }
/* faint network-map motif echoing the Africa constellation in the welcome photograph */
.ad-products::after {
    content: ""; position: absolute; right: -80px; top: -60px; width: 520px; height: 520px; opacity: .10; pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none' stroke='%23ffffff' stroke-width='.8'%3E%3Cpath d='M40 30 L90 20 L130 35 L160 70 L150 110 L170 150 L120 185 L95 150 L70 120 L35 95 Z M90 20 L95 70 L130 35 M95 70 L160 70 M95 70 L70 120 M95 70 L150 110 M95 70 L35 95 M150 110 L95 150'/%3E%3Cg fill='%23ffffff' stroke='none'%3E%3Ccircle cx='40' cy='30' r='2.5'/%3E%3Ccircle cx='90' cy='20' r='2.5'/%3E%3Ccircle cx='130' cy='35' r='2.5'/%3E%3Ccircle cx='160' cy='70' r='2.5'/%3E%3Ccircle cx='150' cy='110' r='2.5'/%3E%3Ccircle cx='170' cy='150' r='2.5'/%3E%3Ccircle cx='120' cy='185' r='2.5'/%3E%3Ccircle cx='95' cy='150' r='2.5'/%3E%3Ccircle cx='70' cy='120' r='2.5'/%3E%3Ccircle cx='35' cy='95' r='2.5'/%3E%3Ccircle cx='95' cy='70' r='3'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain;
}
.ad-products .container { position: relative; z-index: 1; }
.ad-product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.ad-product {
    background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.16); border-radius: var(--ad-radius);
    padding: 28px 24px; display: flex; flex-direction: column;
}
.ad-product__mark {
    width: 52px; height: 52px; border-radius: 50%; background: var(--ad-blue); color: #fff;
    display: inline-flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 20px;
}
.ad-product__type { color: var(--ad-savanna) !important; font-weight: 700; font-size: 15px; margin: 0 0 4px; }
.ad-product h3 { color: #fff !important; font-size: 22px; font-weight: 700; line-height: 1.25; margin: 0 0 10px; }
.ad-product__desc { color: #c9d9e6 !important; font-size: 16px; line-height: 1.6; margin: 0 0 18px; flex: 1; }
.ad-status { font-size: 14px; font-weight: 700; margin: 0 0 18px; display: flex; align-items: center; gap: 8px; color: #e6eef4 !important; }
.ad-status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.ad-status--live::before { background: #4cd38a; }
.ad-status--testing::before { background: var(--ad-savanna); }
.ad-status--soon::before { background: #9fb3c3; }
.ad-product__action {
    display: block; text-align: center; padding: 11px 16px; border-radius: 999px; font-weight: 700; font-size: 15px;
    background: #fff; color: var(--ad-navy); transition: background-color .2s, color .2s;
}
.ad-product__action:hover { background: var(--ad-blue); color: #fff; }
.ad-product__action.is-disabled { background: transparent; border: 1px solid rgba(255,255,255,.25); color: #9fb3c3; cursor: default; }

/* ---------- clients ---------- */
.ad-clients { padding: 80px 0; background: #fff; }
.ad-clients .ad-section-head { margin-bottom: 30px; }
.ad-client-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px 30px; align-items: center; }
.ad-client-grid img { width: 100%; max-width: 160px; height: auto; display: block; margin: 0 auto; opacity: .75; mix-blend-mode: multiply; }

/* ---------- about ---------- */
.ad-about { padding: 90px 0; background: var(--ad-mist); }
.ad-about__item { background: #fff; border-radius: var(--ad-radius); padding: 30px 32px; height: 100%; border-left: 4px solid var(--ad-blue); }
.ad-about__item h3 { font-size: 23px; font-weight: 700; margin: 0 0 10px; }
.ad-about__item p { margin: 0; }

/* ---------- contact + footer ---------- */
.ad-footer { background: #fff; padding: 80px 0 0; border-top: 1px solid #e1e8ee; }
.ad-contact { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: start; padding-bottom: 60px; }
.ad-contact__intro p { font-size: 18px; margin: 0 0 24px; max-width: 460px; }
.ad-contact__list { margin: 0; display: grid; gap: 18px; }
.ad-contact__list > div { display: grid; grid-template-columns: 110px 1fr; border-bottom: 1px solid #e1e8ee; padding-bottom: 14px; }
.ad-contact__list dt { font-weight: 700; color: var(--ad-ink); }
.ad-contact__list dd { margin: 0; }
.ad-contact__list a { color: var(--ad-blue-dark); font-weight: 600; }
.ad-footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; border-top: 1px solid #e1e8ee; }
.ad-footer__bottom p { margin: 0; font-size: 15px; }
.ad-social { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; }
.ad-social a {
    width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: var(--ad-mist); color: var(--ad-ink); transition: background-color .2s, color .2s;
}
.ad-social a:hover { background: var(--ad-blue); color: #fff; }

/* ---------- responsive ---------- */
@media (max-width: 1199px) {
    .ad-product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 991px) {
    .ad-hero { min-height: 520px; padding: 70px 0; } /* header is not fixed below 992px */
    .ad-hero__title { font-size: 44px; }
    .ad-welcome__text { padding-left: 0; padding-top: 30px; }
    .ad-contact { grid-template-columns: 1fr; gap: 36px; }
    .ad-client-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
    .ad-refresh { font-size: 16px; }
    .ad-hero { min-height: 0; padding: 64px 0 70px; background-position: 70% center; }
    .ad-hero::before { background: linear-gradient(180deg, rgba(20,50,74,.88) 0%, rgba(20,50,74,.92) 100%); }
    .ad-hero__title { font-size: 36px; }
    .ad-hero__lead { font-size: 18px; }
    .ad-hero__actions .ad-btn { flex: 1 1 auto; text-align: center; }
    .ad-h2 { font-size: 28px; }
    .ad-welcome, .ad-services, .ad-about, .ad-clients { padding: 60px 0; }
    .ad-products { padding: 64px 0; }
    .ad-service-grid, .ad-product-grid { grid-template-columns: 1fr; gap: 20px; }
    .ad-section-head { margin-bottom: 30px; }
    .ad-client-grid { grid-template-columns: repeat(3, 1fr); gap: 14px 18px; }
    .ad-product { padding: 24px 22px; }
    .ad-product__mark { width: 44px; height: 44px; font-size: 19px; margin-bottom: 14px; }
    .ad-footer { padding-top: 60px; }
    .ad-footer__bottom { flex-direction: column-reverse; text-align: center; }
    .ad-contact__list > div { grid-template-columns: 90px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .ad-refresh * { transition: none !important; }
}

/* in-page links (#services, #products, #about) land below the sticky header */
#services, #products, #about { scroll-margin-top: 90px; }
@media (max-width: 991px) { #services, #products, #about { scroll-margin-top: 0; } }
