/* =================================
   GLOBAL FONT – MATCH HOMEPAGE
================================= */

html,
body,
button,
input,
textarea,
select {
    font-family: Arial, Helvetica, sans-serif;
}

.certifications-page,
.certifications-page * {
    font-family: Arial, Helvetica, sans-serif;
}
/* =====================================================
   FLUXTQ CERTIFICATIONS PAGE
   Shared header and footer styles are loaded from home.css
===================================================== */

:root {
    --cert-navy: #062b59;
    --cert-deep-navy: #031d3d;
    --cert-blue: #0066cc;
    --cert-red: #ed1c2e;
    --cert-text: #102c5c;
    --cert-muted: #4d607a;
    --cert-bg: #f5f9fd;
    --cert-border: #dce7f2;
    --cert-shadow: 0 10px 24px rgba(8, 39, 78, 0.13);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--cert-text);
    background: #ffffff;
    font-family: inherit;
}

.cert-section-container {
    width: min(1200px, calc(100% - 64px));
    margin: 0 auto;
}


/* =====================================================
   HEADER ACTIVE PAGE
===================================================== */

.primary-navigation .nav-dropdown-toggle.active {
    color: var(--cert-blue);
}

.dropdown-menu a.current-page {
    color: var(--cert-blue);
    font-weight: 700;
}


/* =====================================================
   HERO BANNER
===================================================== */

.cert-hero {
    position: relative;
    min-height: 270px;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    background: var(--cert-navy);
}

.cert-hero-image {
    position: absolute;
    z-index: -3;
    inset: 0 0 0 35%;
    background-image: url("../images/CERTIFICATIONS/CERT-HERO.png");
    background-size: cover;
    background-position: center 48%;
}

.cert-hero-shade {
    position: absolute;
    z-index: -2;
    inset: 0;
    background: linear-gradient(
        110deg,
        #052b59 0%,
        #062f63 43%,
        rgba(6, 47, 99, 0.96) 45%,
        rgba(6, 47, 99, 0.48) 57%,
        rgba(6, 47, 99, 0.02) 75%
    );
    clip-path: polygon(0 0, 61% 0, 44% 100%, 0 100%);
}

.cert-hero-container {
    width: min(1200px, calc(100% - 64px));
    margin: 0 auto;
    padding: 25px 0 35px;
}

.cert-breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 500;
}

.cert-breadcrumb a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.25s ease;
}

.cert-breadcrumb a:hover {
    color: #9bd8ff;
}

.cert-breadcrumb span {
    color: rgba(255, 255, 255, 0.78);
}

.cert-hero-copy {
    display: flex;
    align-items: stretch;
    gap: 20px;
    max-width: 520px;
    color: #ffffff;
}

.cert-hero-accent {
    display: block;
    flex: 0 0 5px;
    min-height: 74px;
    background: var(--cert-red);
    border-radius: 2px;
}

.cert-hero-copy h1 {
    margin: -5px 0 15px;
    color: #ffffff;
    font-size: clamp(30px, 3.2vw, 42px);
    line-height: 1.08;
    font-weight: 750;
    letter-spacing: -0.7px;
}

.cert-hero-copy p {
    max-width: 440px;
    margin: 0;
    color: rgba(255, 255, 255, 0.96);
    font-size: 14px;
    line-height: 1.65;
}


/* =====================================================
   SECTION HEADING
===================================================== */

.cert-section-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    column-gap: 22px;
    row-gap: 10px;
    text-align: center;
    margin: 0 auto 32px;
}

.cert-section-heading h2 {
    margin: 0;
    color: #09275a;
    font-size: clamp(23px, 2.4vw, 31px);
    line-height: 1.2;
    font-weight: 750;
    letter-spacing: -0.55px;
}

.cert-section-heading .heading-line {
    width: 42px;
    height: 2px;
    background: var(--cert-red);
}

.cert-section-heading p {
    flex: 0 0 100%;
    max-width: 700px;
    margin: 0 auto;
    color: #243b60;
    font-size: 14px;
    line-height: 1.6;
}


/* =====================================================
   ISO CERTIFICATIONS SECTION
===================================================== */

.iso-section {
    padding: 24px 0 54px;
    background:
        radial-gradient(
            ellipse at 50% 100%,
            rgba(218, 235, 251, 0.42),
            transparent 65%
        ),
        #ffffff;
}

.iso-section .cert-section-heading {
    margin-bottom: 30px;
}

.iso-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.iso-card {
    --iso-accent: #0875dc;
    --iso-deep: #064a91;
    --iso-tint: #e7f3ff;

    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 20px 18px 0;
    overflow: hidden;
    border: 1px solid rgba(216, 229, 242, 0.8);
    border-radius: 30px 30px 18px 18px;
    background: linear-gradient(
        145deg,
        var(--iso-tint) 0%,
        #ffffff 75%
    );
    box-shadow: var(--cert-shadow);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.iso-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 30px rgba(8, 39, 78, 0.17);
}

.iso-environment {
    --iso-accent: #15983b;
    --iso-deep: #08652b;
    --iso-tint: #e9f6eb;
}

.iso-safety {
    --iso-accent: #ed2436;
    --iso-deep: #a90f25;
    --iso-tint: #fff0f1;
}

.iso-card-heading {
    min-height: 66px;
    text-align: center;
}

.iso-card-heading h3 {
    margin: 0 0 5px;
    color: var(--iso-deep);
    font-size: clamp(19px, 2vw, 24px);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.45px;
}

.iso-card-heading p {
    margin: 0;
    color: #102b52;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 600;
}

.iso-certificate-frame {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    min-height: 260px;
    padding: 8px 0 12px;
}

.iso-certificate-frame img {
    display: block;
    width: min(100%, 220px);
    height: 260px;
    object-fit: contain;
    object-position: center;
    background: #ffffff;
    border: 1px solid rgba(120, 140, 160, 0.35);
    box-shadow: 0 4px 9px rgba(0, 0, 0, 0.18);
}

.iso-card-base {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 76px;
    margin: 0 -18px;
    padding: 12px 16px;
    color: #ffffff;
    background: linear-gradient(
        110deg,
        var(--iso-deep),
        var(--iso-accent)
    );
    border-radius: 0 0 16px 16px;
}

.iso-card-base::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-top: 0 solid transparent;
    border-bottom: 76px solid rgba(255, 255, 255, 0.13);
    border-left: 42px solid transparent;
}

.iso-base-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
}

.iso-base-icon svg {
    width: 40px;
    height: 40px;
    fill: none;
    stroke: #ffffff;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.iso-card-base strong,
.iso-card-base span {
    display: block;
    color: #ffffff;
}

.iso-card-base strong {
    margin-bottom: 3px;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 750;
}

.iso-card-base span {
    font-size: 11px;
    line-height: 1.35;
}


/* =====================================================
   SAFETY & QUALITY POLICIES
===================================================== */

.policy-section {
    padding: 20px 0 54px;
    background: linear-gradient(
        180deg,
        #ffffff 0%,
        #f4f9fe 100%
    );
}

.policy-section .cert-section-heading {
    margin-bottom: 28px;
}

.policy-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
}

.policy-card {
    --policy-accent: #0875dc;

    display: flex;
    align-items: flex-start;
    gap: 20px;
    min-height: 138px;
    padding: 22px 24px;
    background: linear-gradient(120deg, #ffffff, #f7fbff);
    border: 1px solid var(--cert-border);
    border-left: 5px solid var(--policy-accent);
    border-radius: 14px;
    box-shadow: 0 7px 17px rgba(8, 39, 78, 0.12);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.policy-quality {
    --policy-accent: #ed1c2e;
}

.policy-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 23px rgba(8, 39, 78, 0.16);
}

.policy-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 70px;
    width: 70px;
    height: 70px;
    background: #e2f1ff;
    border-radius: 12px;
}

.policy-icon svg {
    width: 43px;
    height: 43px;
    fill: none;
    stroke: #006bd6;
    stroke-width: 2.3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.policy-content {
    min-width: 0;
}

.policy-content h3 {
    margin: 0 0 7px;
    color: #09275a;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 750;
}

.policy-content p {
    margin: 0 0 12px;
    color: #243b60;
    font-size: 13px;
    line-height: 1.5;
}

.policy-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #0064c8;
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
    transition: gap 0.25s ease, color 0.25s ease;
}

.policy-link span {
    font-size: 20px;
    line-height: 1;
}

.policy-link:hover {
    gap: 17px;
    color: var(--cert-red);
}


/* =====================================================
   CALL TO ACTION
===================================================== */

.cert-cta {
    position: relative;
    padding: 12px 0;
    overflow: hidden;
    background: linear-gradient(
        100deg,
        #d9edff 0%,
        #edf7ff 100%
    );
}

.cert-cta-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 1fr auto;
    align-items: center;
    gap: 28px;
    width: min(1200px, calc(100% - 64px));
    min-height: 82px;
    margin: 0 auto;
    padding: 16px 36px;
    color: #ffffff;
    background: linear-gradient(
        105deg,
        #06417e 0%,
        #0754a0 58%,
        #0875c8 100%
    );
    border-radius: 18px 0 18px 0;
    clip-path: polygon(5% 0, 100% 0, 95% 100%, 0 100%);
}

.cert-cta-title {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-left: 28px;
}

.cert-cta-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
}

.cert-cta-icon svg {
    width: 46px;
    height: 46px;
    fill: none;
    stroke: #ffffff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cert-cta-title h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.2;
    font-weight: 750;
    white-space: nowrap;
}

.cert-cta-description {
    padding: 0 22px;
    border-left: 1px solid rgba(255, 255, 255, 0.65);
}

.cert-cta-description p {
    margin: 0;
    color: rgba(255, 255, 255, 0.96);
    font-size: 13px;
    line-height: 1.5;
}

.cert-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 44px;
    padding: 0 20px;
    color: #07336b;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 7px;
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.12);
    transition:
        transform 0.25s ease,
        background 0.25s ease;
}

.cert-cta-button span {
    font-size: 19px;
    line-height: 1;
}

.cert-cta-button:hover {
    transform: translateY(-2px);
    background: #eaf5ff;
}


/* =====================================================
   RESPONSIVE DESIGN
===================================================== */

@media (max-width: 1000px) {

    .iso-card-grid {
        gap: 16px;
    }

    .iso-card {
        padding-right: 13px;
        padding-left: 13px;
    }

    .iso-card-base {
        margin-right: -13px;
        margin-left: -13px;
    }

    .iso-certificate-frame {
        min-height: 230px;
    }

    .iso-certificate-frame img {
        height: 230px;
    }

    .cert-cta-inner {
        grid-template-columns: 1fr 1fr;
        gap: 18px;
    }

    .cert-cta-description {
        border-left: 0;
        padding: 0;
    }

    .cert-cta-button {
        grid-column: 2;
        justify-self: start;
    }
}


@media (max-width: 760px) {

    .cert-section-container,
    .cert-hero-container {
        width: min(100% - 36px, 560px);
    }

    /* Hero */

    .cert-hero {
        min-height: 340px;
        align-items: flex-end;
    }

    .cert-hero-image {
        inset: 0;
        background-position: 62% center;
    }

    .cert-hero-shade {
        background: linear-gradient(
            90deg,
            rgba(3, 31, 65, 0.97),
            rgba(3, 31, 65, 0.82) 58%,
            rgba(3, 31, 65, 0.25)
        );
        clip-path: none;
    }

    .cert-hero-container {
        padding: 24px 0 30px;
    }

    .cert-breadcrumb {
        margin-bottom: 22px;
        font-size: 11px;
    }

    .cert-hero-copy {
        max-width: 480px;
        gap: 14px;
    }

    .cert-hero-copy h1 {
        font-size: clamp(28px, 7vw, 36px);
    }

    .cert-hero-copy p {
        max-width: 390px;
        font-size: 13px;
    }

    /* Section headings */

    .cert-section-heading {
        column-gap: 12px;
        margin-bottom: 24px;
    }

    .cert-section-heading h2 {
        font-size: 23px;
    }

    .cert-section-heading .heading-line {
        width: 25px;
    }

    .cert-section-heading p {
        font-size: 13px;
    }

    /* ISO cards */

    .iso-section {
        padding: 34px 0 40px;
    }

    .iso-card-grid {
        grid-template-columns: 1fr;
        max-width: 430px;
        margin: 0 auto;
        gap: 22px;
    }

    .iso-card {
        padding: 20px 18px 0;
        border-radius: 22px 22px 15px 15px;
    }

    .iso-card-heading {
        min-height: auto;
        margin-bottom: 8px;
    }

    .iso-card-heading h3 {
        font-size: 23px;
    }

    .iso-certificate-frame {
        min-height: 280px;
    }

    .iso-certificate-frame img {
        width: min(100%, 230px);
        height: 280px;
    }

    .iso-card-base {
        margin-right: -18px;
        margin-left: -18px;
    }

    /* Policies */

    .policy-section {
        padding: 22px 0 40px;
    }

    .policy-grid {
        grid-template-columns: 1fr;
        max-width: 540px;
        margin: 0 auto;
        gap: 16px;
    }

    .policy-card {
        min-height: auto;
        padding: 20px 17px;
        gap: 15px;
    }

    .policy-icon {
        flex-basis: 58px;
        width: 58px;
        height: 58px;
    }

    .policy-icon svg {
        width: 37px;
        height: 37px;
    }

    .policy-content h3 {
        font-size: 15px;
    }

    /* CTA */

    .cert-cta {
        padding: 12px 0;
    }

    .cert-cta-inner {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        width: calc(100% - 28px);
        padding: 24px 25px;
        clip-path: none;
        border-radius: 12px;
    }

    .cert-cta-title {
        gap: 12px;
        padding-left: 0;
    }

    .cert-cta-title h2 {
        font-size: 21px;
        white-space: normal;
    }

    .cert-cta-icon,
    .cert-cta-icon svg {
        width: 40px;
        height: 40px;
    }

    .cert-cta-description {
        padding: 0;
    }

    .cert-cta-description p {
        font-size: 13px;
    }

    .cert-cta-button {
        align-self: flex-start;
        min-height: 42px;
    }
}


@media (max-width: 420px) {

    .cert-hero {
        min-height: 360px;
    }

    .cert-hero-copy h1 {
        font-size: 27px;
    }

    .cert-hero-copy p {
        font-size: 12px;
    }

    .cert-section-heading h2 {
        font-size: 20px;
    }

    .cert-section-heading .heading-line {
        width: 18px;
    }

    .policy-card {
        gap: 12px;
        padding: 17px 13px;
    }

    .policy-content h3 {
        font-size: 14px;
    }

    .policy-content p {
        font-size: 12px;
    }

    .cert-cta-title h2 {
        font-size: 19px;
    }
}
