/* ==========================================================================
   Certifications & Compliance — Page Stylesheet
   Prefix: cert-
   Depends on: css/global.css (design tokens via --fg-* custom properties)
   ========================================================================== */

/* ── Shared inner container ─────────────────────────────────────────────── */
.cert-inner {
    max-width: 1160px;
    margin-inline: auto;
    padding-inline: 1.5rem;
}

.cert-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ── Shared button system ───────────────────────────────────────────────── */
.cert-btn {
    display: inline-block;
    padding: .75rem 1.75rem;
    border-radius: var(--fg-radius, 3px);
    font-weight: 600;
    font-size: .95rem;
    text-decoration: none;
    transition: background-color .2s, color .2s, border-color .2s;
    cursor: pointer;
}

.cert-btn--primary {
    background-color: var(--fg-green);
    color: #fff;
    border: 2px solid var(--fg-green);
}
.cert-btn--primary:hover {
    background-color: var(--fg-green-dark);
    border-color: var(--fg-green-dark);
    color: #fff;
}

/* ==========================================================================
   1. HERO
   ========================================================================== */
.cert-hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.cert-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .5);
}

.cert-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin-inline: auto;
    padding: 4rem 1.5rem;
    color: #fff;
}

.cert-hero__inner h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #fff;
    margin-block-end: 1rem;
    line-height: 1.15;
}

.cert-hero__subtitle {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255,255,255,.92);
    margin: 0;
}

/* ==========================================================================
   2. AEO INTRO
   ========================================================================== */
.cert-intro {
    padding-block: 3.5rem;
    background-color: var(--fg-green-pale);
    text-align: center;
}

.cert-intro__heading {
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    font-weight: 700;
    color: var(--fg-green-dark);
    margin-block-end: 1rem;
}

.cert-intro__body {
    font-size: 1.05rem;
    line-height: 1.8;
    max-width: 780px;
    margin-inline: auto;
    margin-block-end: 1rem;
    color: var(--fg-text);
}

.cert-intro__body:last-child {
    margin-block-end: 0;
}

/* ==========================================================================
   3. CERTIFICATION CARDS
   ========================================================================== */
.cert-cards {
    padding-block: 4rem;
    background-color: #fff;
}

.cert-card-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.cert-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background-color: var(--fg-green-light);
    border-radius: var(--fg-radius, 3px);
}

.cert-card__icon {
    max-width: 100px;
    height: auto;
    margin-inline: auto;
    margin-block-end: 1.25rem;
    display: block;
}

.cert-card__heading {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--fg-green-dark);
    margin-block-end: .75rem;
}

.cert-card__body {
    font-size: .95rem;
    line-height: 1.7;
    color: var(--fg-text);
    margin: 0;
}

/* ==========================================================================
   4. CTA
   ========================================================================== */
.cert-cta {
    padding-block: 3rem;
    background-color: var(--fg-green-pale);
    text-align: center;
}

/* ==========================================================================
   5. REVIEWS STRIP
   ========================================================================== */
.cert-reviews {
    padding-block: 3.5rem;
    background-color: #fff;
    text-align: center;
}

.cert-reviews__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.cert-reviews__img {
    max-width: 100%;
    height: auto;
    display: block;
}

.cert-reviews__link {
    color: var(--fg-green);
    font-weight: 600;
    text-decoration: underline;
}
.cert-reviews__link:hover {
    color: var(--fg-green-dark);
}

/* ==========================================================================
   6. FREQUENTLY ASKED QUESTIONS
   ========================================================================== */
.cert-faq {
    padding-block: 4.5rem;
    background-color: var(--fg-green-pale);
}

.cert-faq__heading {
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    font-weight: 700;
    color: var(--fg-green-dark);
    text-align: center;
    margin-block-end: .5rem;
}

.cert-faq__sub {
    text-align: center;
    color: var(--fg-text-muted, #666);
    font-size: 1rem;
    margin-block-end: 2.5rem;
}

.cert-faq__list {
    max-width: 780px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.cert-faq__item {
    background-color: #fff;
    border-radius: 6px;
    border: 1px solid rgba(0,0,0,.08);
    overflow: hidden;
}

.cert-faq__question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--fg-green-dark);
    cursor: pointer;
    list-style: none;
    gap: 1rem;
}

.cert-faq__question::-webkit-details-marker { display: none; }

.cert-faq__question::after {
    content: '+';
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--fg-green);
    flex-shrink: 0;
}

.cert-faq__item[open] .cert-faq__question::after {
    content: '−';
}

.cert-faq__answer {
    padding: .25rem 1.25rem 1.1rem;
    color: var(--fg-text);
    font-size: .97rem;
    line-height: 1.75;
}

.cert-faq__answer p { margin: 0; }

/* ==========================================================================
   RESPONSIVE — 900px (cards stack)
   ========================================================================== */
@media (max-width: 900px) {
    .cert-card-row {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   RESPONSIVE — 600px (hero sizing)
   ========================================================================== */
@media (max-width: 600px) {
    .cert-hero {
        min-height: 340px;
    }

    .cert-hero__inner {
        padding-block: 3rem;
    }
}
