/* =========================================================
   Certifications — homepage band, footer badge, and the
   Quality & Compliance page.

   No third-party marks anywhere in here. ISO forbids certified
   organisations from using its logo, and the IAF mark on the 9001
   certificate belongs to the arrangement between accreditation bodies,
   not to the company holding the certificate. The shield is drawn in
   inc/certifications.php, in the site's own colour.
   ========================================================= */

/* ---------------------------------------------------------
   Homepage band — dark, directly under the hero
   --------------------------------------------------------- */

.cert-band {
    background: #0f172a;
    color: #fff;
    padding: 72px 0;
    position: relative;
    overflow: hidden;
}

/* A soft brand glow so the band is not a flat black slab. */
.cert-band::before {
    content: '';
    position: absolute;
    top: -40%;
    inset-inline-start: -10%;
    width: 60%;
    height: 180%;
    background: radial-gradient(circle, rgba(254, 214, 0, 0.10) 0%, transparent 62%);
    pointer-events: none;
}

.cert-band .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 56px;
    position: relative;
    z-index: 1;
}

.cert-band-copy {
    flex: 1 1 52%;
    min-width: 0;
}

.cert-band-eyebrow {
    display: block;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--btn-color);
    margin-bottom: 14px;
}

.cert-band-title {
    font-family: var(--font-heading);
    font-size: clamp(1.65rem, 3vw, 2.4rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: #fff;
    margin: 0 0 16px;
}

.cert-band-text {
    font-family: var(--font-body);
    font-size: 0.98rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.72);
    margin: 0 0 24px;
    max-width: 60ch;
}

.cert-band-cta {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--btn-color);
    text-decoration: none;
    border-bottom: 1px solid rgba(254, 214, 0, 0.35);
    padding-bottom: 3px;
    transition: border-color 0.3s ease, gap 0.3s ease;
}

.cert-band-cta:hover {
    border-color: var(--btn-color);
    gap: 14px;
}

.cert-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}

/* ---------- Certificate chips ---------- */

.cert-band-list {
    flex: 1 1 48%;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.cert-chip {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    text-decoration: none;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.cert-chip:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(254, 214, 0, 0.55);
    transform: translateY(-3px);
}

.cert-chip-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(254, 214, 0, 0.12);
    color: var(--btn-color);
}

.cert-chip-icon svg {
    width: 24px;
    height: 24px;
    display: block;
}

.cert-chip-text {
    min-width: 0;
}

.cert-chip-standard {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
}

.cert-chip-name {
    display: block;
    font-family: var(--font-body);
    font-size: 0.82rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.62);
    margin-top: 2px;
}

/* ---------------------------------------------------------
   Footer badge — every page
   --------------------------------------------------------- */

.cert-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 11px 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    text-decoration: none;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.cert-badge:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(254, 214, 0, 0.5);
}

.cert-badge-icon {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    color: var(--btn-color);
}

.cert-badge-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.cert-badge-label {
    display: block;
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.cert-badge-standards {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.86rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
    margin-top: 1px;
}

/* ---------------------------------------------------------
   Quality & Compliance page
   --------------------------------------------------------- */

.quality-page .container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 2rem;
}

.quality-hero {
    background: #0f172a;
    color: #fff;
    padding: 130px 0 80px;
    text-align: center;
}

.quality-eyebrow {
    display: block;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--btn-color);
    margin-bottom: 14px;
}

.quality-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0 0 20px;
    color: #fff;
}

.quality-intro {
    font-family: var(--font-body);
    font-size: 1.02rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.72);
    max-width: 68ch;
    margin: 0 auto;
}

/* ---------- Certificate cards ---------- */

.quality-certs {
    background: #f8fafc;
    padding: 70px 0;
}

.cert-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 26px;
    justify-content: center;
}

.cert-card {
    flex: 1 1 420px;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    padding: 34px 32px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: 22px;
    box-shadow: 0 6px 28px rgba(15, 23, 42, 0.05);
}

.cert-card-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.cert-card-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(254, 214, 0, 0.14);
    color: var(--btn-hover);
}

.cert-card-icon svg {
    width: 27px;
    height: 27px;
    display: block;
}

.cert-card-standard {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0f172a;
    margin: 0;
}

.cert-card-name {
    font-family: var(--font-body);
    font-size: 0.88rem;
    line-height: 1.5;
    color: #64748b;
    margin: 3px 0 0;
}

.cert-card-summary {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.8;
    color: #475569;
    margin: 0 0 26px;
}

.cert-card-meta {
    margin: 0 0 26px;
    padding: 0;
    border-top: 1px solid #eef2f7;
}

.cert-card-meta > div {
    display: flex;
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px solid #eef2f7;
}

.cert-card-meta dt {
    flex: 0 0 42%;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    color: #94a3b8;
    margin: 0;
}

.cert-card-meta dd {
    flex: 1;
    font-family: var(--font-body);
    font-size: 0.88rem;
    line-height: 1.6;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
    min-width: 0;
    word-break: break-word;
}

/* Certificate numbers get read aloud and typed into forms, so they are
   set in a face where 0/O and 1/l cannot be confused, and kept LTR even
   on the Arabic page. */
.cert-mono {
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.85rem;
    direction: ltr;
    unicode-bidi: embed;
    display: inline-block;
}

.cert-card-link {
    margin-top: auto;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 24px;
    background: var(--btn-color);
    color: #0f172a;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.cert-card-link:hover {
    background: var(--btn-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(229, 146, 13, 0.3);
}

/* ---------- Scope ---------- */

.quality-scope {
    background: #fff;
    padding: 70px 0 96px;
}

.quality-scope-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0f172a;
    margin: 0 0 16px;
}

.quality-scope-body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.9;
    color: #475569;
    margin: 0 0 34px;
    max-width: 78ch;
}

.quality-note {
    font-family: var(--font-body);
    font-size: 0.82rem;
    line-height: 1.8;
    color: #94a3b8;
    margin: 0;
    padding-top: 22px;
    border-top: 1px solid #eef2f7;
    max-width: 78ch;
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

@media (max-width: 992px) {
    .cert-band .container {
        flex-direction: column;
        align-items: stretch;
        gap: 34px;
    }

    .cert-band-text {
        max-width: none;
    }
}

@media (max-width: 560px) {
    .cert-band {
        padding: 56px 0;
    }

    .cert-band .container,
    .quality-page .container {
        padding: 0 1.25rem;
    }

    .cert-chip {
        padding: 16px 18px;
        gap: 14px;
    }

    .cert-chip-icon {
        width: 40px;
        height: 40px;
    }

    .quality-hero {
        padding: 110px 0 60px;
    }

    .cert-card {
        padding: 26px 22px;
        flex-basis: 100%;
    }

    .cert-card-meta > div {
        flex-direction: column;
        gap: 3px;
    }

    .cert-card-meta dt {
        flex-basis: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cert-chip,
    .cert-card-link,
    .cert-band-cta,
    .cert-badge {
        transition: none;
    }

    .cert-chip:hover,
    .cert-card-link:hover {
        transform: none;
    }
}

/* ---------------------------------------------------------
   The footer bottom bar now carries three items instead of
   two, so let it wrap rather than squeeze on narrow screens.
   --------------------------------------------------------- */

.footer-bottom {
    flex-wrap: wrap;
    gap: 20px;
}

@media (max-width: 768px) {
    .footer-bottom .cert-badge {
        order: -1;
        margin-bottom: 6px;
    }
}
