/* =============================================================================
   Figtree Systems — Enterprise Risk Management Software
   Scoped to .erm-page. Uses the global --fg-* design tokens.
   ============================================================================= */

.erm-page {
    font-family: 'Open Sans', sans-serif;
    color: var(--fg-text);
    line-height: 1.7;
}

.erm-page section { position: relative; }

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

/* Shared inner wrapper ------------------------------------------------------- */
.erm-inner {
    max-width: var(--fg-max-w);
    margin-inline: auto;
    padding-inline: clamp(1rem, 5vw, 2rem);
}

/* Buttons -------------------------------------------------------------------- */
.erm-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45em;
    text-decoration: none;
    border-radius: var(--fg-radius);
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    line-height: 1.2;
    white-space: nowrap;
}

.erm-btn--primary {
    padding: 0.75em 1.8em;
    background: var(--fg-green);
    color: #fff;
}
.erm-btn--primary:hover,
.erm-btn--primary:focus-visible {
    background: var(--fg-green-dark);
    color: #fff;
}

.erm-btn--outline {
    padding: 0.75em 1.8em;
    background: transparent;
    color: var(--fg-green);
    border: 2px solid var(--fg-green);
}
.erm-btn--outline:hover,
.erm-btn--outline:focus-visible {
    background: var(--fg-green);
    color: #fff;
}

.erm-btn--white {
    padding: 0.75em 1.8em;
    background: #fff;
    color: var(--fg-green-dark);
    border: 2px solid transparent;
}
.erm-btn--white:hover,
.erm-btn--white:focus-visible {
    background: var(--fg-green-light);
    color: var(--fg-green-dark);
}

.erm-btn--ghost {
    padding: 0.75em 1.8em;
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.7);
}
.erm-btn--ghost:hover,
.erm-btn--ghost:focus-visible {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

/* =============================================================================
   1. HERO
   ============================================================================= */
.erm-hero {
    position: relative;
    background-color: var(--fg-green-deeper);
    background-size: cover;
    background-position: center 30%;
    min-height: 520px;
    display: flex;
    align-items: center;
    padding: 5rem 0 4rem;
}

.erm-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(30, 61, 26, 0.90) 0%,
        rgba(30, 61, 26, 0.72) 55%,
        rgba(30, 61, 26, 0.30) 100%
    );
}

.erm-hero__inner {
    position: relative;
    max-width: 760px;
    margin-inline: auto;
    padding-inline: clamp(1rem, 5vw, 2rem);
    width: 100%;
}

.erm-hero h1 {
    font-family: 'Raleway', sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 4.5vw, 3rem);
    line-height: 1.15;
    color: #fff;
    margin: 0 0 1.1rem;
    letter-spacing: -0.01em;
}

.erm-hero__subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    margin: 0 0 2rem;
    max-width: 600px;
}

.erm-hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* =============================================================================
   2. AEO INTRO
   ============================================================================= */
.erm-aeo-intro {
    background: var(--fg-off-white);
    padding: 3rem 0;
}

.erm-aeo-intro__text {
    max-width: 820px;
    margin-inline: auto;
    font-size: 1.05rem;
    text-align: center;
}

/* =============================================================================
   3. THE FIGTREE ADVANTAGE
   ============================================================================= */
.erm-advantage {
    background: #fff;
    padding: 5rem 0 4rem;
}

.erm-advantage__label {
    display: block;
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--fg-green);
    margin-bottom: 0.5rem;
    text-align: center;
}

.erm-advantage h2 {
    font-family: 'Raleway', sans-serif;
    font-weight: 800;
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    color: var(--fg-text);
    margin: 0 0 1.5rem;
    line-height: 1.2;
    text-align: center;
}

.erm-advantage__intro {
    max-width: 820px;
    margin-inline: auto;
    font-size: 1.05rem;
    margin-bottom: 1rem;
    text-align: center;
}

/* Feature cards -------------------------------------------------------------- */
.erm-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin: 2.5rem 0;
}

.erm-card {
    background: var(--fg-green-pale);
    border: 1px solid var(--fg-green-light);
    border-radius: calc(var(--fg-radius) * 2);
    padding: 1.5rem;
}

.erm-card h3 {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--fg-green-dark);
    margin: 0 0 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.erm-card p {
    font-size: 0.92rem;
    margin: 0;
    line-height: 1.6;
}

/* Software screenshot --------------------------------------------------------- */
.erm-advantage__screenshot {
    margin: 2rem 0 2rem;
    text-align: center;
}

.erm-screenshot__img {
    max-width: 820px;
    width: 100%;
    height: auto;
    display: block;
    margin-inline: auto;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.18));
}

.erm-advantage__cta {
    margin: 0;
    text-align: center;
}

/* =============================================================================
   4. CAPTURE, TRACK AND MANAGE RISK ANYWHERE
   ============================================================================= */
.erm-capture {
    background: var(--fg-green-pale);
    padding: 4rem 0;
    text-align: center;
}

.erm-capture h2 {
    font-family: 'Raleway', sans-serif;
    font-weight: 800;
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    color: var(--fg-green-dark);
    margin: 0 0 1rem;
    line-height: 1.2;
}

.erm-capture__intro {
    max-width: 760px;
    margin-inline: auto;
    font-size: 1.05rem;
}

/* =============================================================================
   5. RISK MANAGEMENT, BEST PRACTICES
   ============================================================================= */
.erm-practices {
    background: #fff;
    padding: 5rem 0;
}

.erm-practices__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.erm-practices h2 {
    font-family: 'Raleway', sans-serif;
    font-weight: 800;
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    color: var(--fg-text);
    margin: 0 0 1rem;
    line-height: 1.2;
}

.erm-practices p {
    margin: 0;
    font-size: 1rem;
}

.erm-practices__img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.18));
}

/* =============================================================================
   6. VISIBILITY IS IMPORTANT
   ============================================================================= */
.erm-visibility {
    background: var(--fg-off-white);
    padding: 5rem 0;
}

.erm-visibility__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.erm-visibility h2 {
    font-family: 'Raleway', sans-serif;
    font-weight: 800;
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    color: var(--fg-text);
    margin: 0 0 1rem;
    line-height: 1.2;
}

.erm-visibility p {
    margin: 0 0 1rem;
    font-size: 1rem;
}

.erm-visibility__img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.18));
}

/* =============================================================================
   7. MORE FEATURES
   ============================================================================= */
.erm-features {
    background: #fff;
    padding: 4.5rem 0;
}

.erm-features h2 {
    font-family: 'Raleway', sans-serif;
    font-weight: 800;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    color: var(--fg-green-dark);
    text-align: center;
    margin: 0 0 0.5rem;
}

.erm-features__sub {
    text-align: center;
    color: var(--fg-text);
    opacity: 0.75;
    margin: 0 0 2rem;
    font-size: 0.95rem;
}

.erm-feature-groups {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 2.5rem;
}

.erm-feature-group__heading {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--fg-green);
    margin: 0 0 1.25rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--fg-green-light);
}

.erm-feature-group__heading-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--fg-green);
    color: #fff;
    flex-shrink: 0;
}

.erm-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem 1rem;
}

.erm-feature-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    background: #f7f7f5;
    border: 1px solid #e8e8e5;
    border-radius: 8px;
    padding: 0.85rem 1rem;
}

.erm-feature-item__icon {
    color: var(--fg-green);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--fg-radius);
    background: var(--fg-green-light);
}

.erm-feature-item__label {
    color: var(--fg-text);
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.35;
}

/* =============================================================================
   8. ARE YOU ON THE CLOUD?
   ============================================================================= */
.erm-cloud {
    background-color: var(--fg-green-deeper);
    background-size: cover;
    background-position: center;
    padding: 5rem 0;
    text-align: center;
}

.erm-cloud::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(30, 61, 26, 0.82);
}

.erm-cloud__inner {
    position: relative;
}

.erm-cloud h4 {
    font-family: 'Raleway', sans-serif;
    font-weight: 800;
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    color: #fff;
    margin: 0 0 1rem;
}

.erm-cloud p {
    color: rgba(255,255,255,0.90);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 1.75rem;
}

.erm-cloud__logo {
    display: block;
    margin: 2rem auto 0;
    max-width: 220px;
    height: auto;
}

/* =============================================================================
   9. EXPERIENCE
   ============================================================================= */
.erm-experience {
    background: var(--fg-green-pale);
    padding: 5rem 0;
}

.erm-experience__inner {
    max-width: 780px;
    margin-inline: auto;
    text-align: center;
}

.erm-experience h2 {
    font-family: 'Raleway', sans-serif;
    font-weight: 800;
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    color: var(--fg-green-dark);
    margin: 0 0 1.25rem;
}

.erm-experience p {
    font-size: 1.05rem;
    margin: 0 0 1rem;
}

.erm-experience__cta {
    margin-top: 1.5rem;
}

/* =============================================================================
   10. COTS
   ============================================================================= */
.erm-cots {
    background: #fff;
    padding: 5rem 0;
}

.erm-cots__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: start;
}

.erm-cots h2 {
    font-family: 'Raleway', sans-serif;
    font-weight: 800;
    font-size: clamp(1.4rem, 3vw, 1.95rem);
    color: var(--fg-green);
    margin: 0 0 1rem;
    line-height: 1.2;
}

.erm-cots p {
    font-size: 1rem;
    margin: 0 0 1rem;
}

.erm-cots__badges {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    align-items: center;
    justify-content: center;
    padding-top: 1rem;
}

.erm-cots__badge {
    max-width: 180px;
    width: 100%;
    height: auto;
    display: block;
}

.erm-cots__certs {
    max-width: 420px;
    width: 100%;
    height: auto;
    display: block;
}

.erm-cots__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* =============================================================================
   11. FAQ
   ============================================================================= */
.erm-faq {
    background: var(--fg-green-pale);
    padding: 5rem 0;
}

.erm-faq__heading {
    font-family: 'Raleway', sans-serif;
    font-weight: 800;
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    color: var(--fg-text);
    margin: 0 0 0.5rem;
}

.erm-faq__sub {
    color: #555;
    font-size: 1rem;
    margin: 0 0 2.5rem;
}

.erm-faq__list {
    max-width: 820px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.erm-faq__item {
    border-bottom: 1px solid var(--fg-green-light);
}

.erm-faq__item:first-child {
    border-top: 1px solid var(--fg-green-light);
}

.erm-faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 0;
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--fg-text);
    cursor: pointer;
    list-style: none;
    user-select: none;
}

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

.erm-faq__question::after {
    content: '+';
    flex-shrink: 0;
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--fg-green);
    line-height: 1;
    transition: transform 0.2s ease;
}

.erm-faq__item[open] > .erm-faq__question::after {
    content: '\2212';
}

.erm-faq__question:hover {
    color: var(--fg-green);
}

.erm-faq__answer {
    padding: 0 0 1.25rem;
}

.erm-faq__answer p {
    margin: 0;
    font-size: 0.97rem;
    line-height: 1.7;
    color: #444;
}

/* =============================================================================
   12. FINAL CTA
   ============================================================================= */
.erm-final-cta {
    background: var(--fg-green-deeper);
    padding: 4.5rem 0;
    text-align: center;
}

.erm-final-cta h2 {
    font-family: 'Raleway', sans-serif;
    font-weight: 800;
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    color: #fff;
    margin: 0 0 1.75rem;
}

.erm-final-cta__ctas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

/* =============================================================================
   RESPONSIVE
   ============================================================================= */
@media (max-width: 900px) {

    .erm-practices__inner,
    .erm-visibility__inner,
    .erm-cots__inner {
        grid-template-columns: 1fr;
    }

    /* Image above text on mobile */
    .erm-practices__img-col { order: -1; }
}

@media (max-width: 640px) {
    .erm-feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {

    .erm-hero {
        min-height: 380px;
        padding: 3.5rem 0 2.5rem;
    }

    .erm-hero h1 { font-size: 1.75rem; }

    .erm-hero__ctas {
        flex-direction: column;
    }

    .erm-hero__ctas .erm-btn {
        width: 100%;
        justify-content: center;
    }

    .erm-feature-grid { grid-template-columns: 1fr; }

    .erm-cots__badges {
        flex-direction: row;
        flex-wrap: wrap;
    }
}
