/* ============================================================
   Industries page — Mercury theme
   Primary #454646 · Accent #b0ce5a · Black #0c0a0c
   ============================================================ */

:root {
    --ind-primary: #454646;
    --ind-accent:  #b0ce5a;
    --ind-black:   #0c0a0c;
    --ind-text:    #1e2124;
    --ind-body:    #555;
    --ind-muted:   #6b7280;
    --ind-light:   #f5f6f7;
    --ind-border:  #e2e4e6;
    --ind-nav-h:   54px;
}

/* Anchor sections sit below the sticky nav after scroll-to */
.ind-section,
.ind-grid { scroll-margin-top: calc(var(--ind-nav-h) + 16px); }

/* ─────────────────────────────────────────────────────────────
   STICKY INDUSTRY NAV
   ───────────────────────────────────────────────────────────── */
.ind-nav {
    background: var(--ind-primary);
    border-bottom: 3px solid var(--ind-accent);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.ind-nav__scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.ind-nav__scroll::-webkit-scrollbar { display: none; }

.ind-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    min-width: max-content;
}

.ind-nav__link {
    display: block;
    padding: 18px 20px;
    color: rgba(255,255,255,0.72);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    margin-bottom: -3px;
    transition: color 0.18s, border-color 0.18s;
}
.ind-nav__link:hover,
.ind-nav__link:focus {
    color: var(--ind-accent);
    text-decoration: none;
    outline: none;
}
.ind-nav__link.is-active {
    color: var(--ind-accent);
    border-bottom-color: var(--ind-accent);
}

/* ─────────────────────────────────────────────────────────────
   INTRO + CERTIFICATIONS
   ───────────────────────────────────────────────────────────── */
.ind-intro {
    background: #ffffff;
    padding: 80px 0 40px;
}

.ind-intro__title {
    color: var(--ind-text);
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 20px;
    line-height: 1.25;
}

.ind-intro__lead {
    color: var(--ind-body);
    font-size: 16px;
    line-height: 1.85;
    margin: 0;
}

.ind-certs {
    list-style: none;
    margin: 56px 0 0;
    padding: 28px 32px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    background: var(--ind-light);
    border-radius: 8px;
    border: 1px solid var(--ind-border);
}

.ind-cert {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    position: relative;
}
.ind-cert + .ind-cert::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: var(--ind-border);
}
.ind-cert strong {
    color: var(--ind-accent);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.2;
}
.ind-cert span {
    color: var(--ind-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

/* ─────────────────────────────────────────────────────────────
   QUICK-LOOK GRID
   ───────────────────────────────────────────────────────────── */
.ind-grid {
    background: #ffffff;
    padding: 60px 0 80px;
}

.ind-grid__head {
    text-align: center;
    margin-bottom: 48px;
}
.ind-grid__eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--ind-accent);
    margin-bottom: 12px;
}
.ind-grid__title {
    color: var(--ind-text);
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 12px;
    line-height: 1.25;
}
.ind-grid__sub {
    color: var(--ind-muted);
    font-size: 15px;
    margin: 0;
}

.ind-grid__cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

/* Each card is a three-layer stack: the industry photo as a real
   <img>, a scrim over it, then the content above both. The photos
   already carry a dark duotone, so the scrim is deliberately light
   at the top — where the artwork should read — and only builds up
   behind the copy lower down. */
.ind-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 0;
    background: var(--ind-primary);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    text-decoration: none !important;
    color: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    overflow: hidden;
}

/* Layer 1 — the photo */
.ind-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    z-index: 0;
}

/* Layer 2 — scrim. Bottom-weighted: near-clear across the top third
   so the photo is actually visible, dense behind the name, tagline
   and CTA where legibility matters. */
.ind-card__scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    /* Top stop raised from 0.28: the card number and the 40px green icon
       sit up there and the photography is now full-colour, so the old
       value left them washed out. 0.64 is what the green icon needs to
       clear 3:1 on the brightest card (construction, open sky).
       Still bottom-weighted, so the photo reads through. */
    background: linear-gradient(
        to bottom,
        rgba(12, 10, 12, 0.64) 0%,
        rgba(12, 10, 12, 0.72) 38%,
        rgba(12, 10, 12, 0.88) 70%,
        rgba(12, 10, 12, 0.94) 100%
    );
    pointer-events: none;
}

/* Layer 3 — content */
.ind-card__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 28px 24px 24px;
}
.ind-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--ind-accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.25s ease;
    /* Above the photo and scrim, or the hover accent is painted over. */
    z-index: 3;
}
.ind-card:hover,
.ind-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
    border-color: rgba(176,206,90,0.5);
    text-decoration: none;
    outline: none;
}
.ind-card:hover::before,
.ind-card:focus-visible::before {
    transform: scaleX(1);
}

/* Card contents sit above the photo and wash, and each carries a soft
   dark halo so it holds up over whatever detail is behind it. */
.ind-card__num,
.ind-card__icon,
.ind-card__name,
.ind-card__tag,
.ind-card__cta {
    position: relative;
    z-index: 2;
    text-shadow:
        0 1px 2px rgba(12, 10, 12, 0.6),
        0 2px 10px rgba(12, 10, 12, 0.45);
}

.ind-card__num {
    position: absolute;
    top: 18px;
    right: 22px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.15em;
    /* Was 0.75 colour alpha x 0.8 element opacity = 0.6 effective, too
       faint to read at 11px over photography. */
    color: rgba(255, 255, 255, 0.92);
    z-index: 2;
}

.ind-card__icon {
    font-size: 40px;
    color: var(--ind-accent);
    line-height: 1;
    margin-bottom: 18px;
}

/* !important is required here: mercury-override.css forces every
   h1-h6 to near-black with !important, which would otherwise win and
   leave the title invisible against the photo behind it. */
.ind-card__name {
    color: #ffffff !important;
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.3;
}

.ind-card__tag {
    color: rgba(255, 255, 255, 0.85);
    font-size: 13.5px;
    line-height: 1.6;
    margin: 0 0 18px;
    flex: 1;
}

.ind-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--ind-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.2s, gap 0.2s;
}
.ind-card__cta i { font-size: 14px; }
.ind-card:hover .ind-card__cta {
    color: var(--ind-accent);
    gap: 8px;
}

/* ─────────────────────────────────────────────────────────────
   DEEP INDUSTRY SECTIONS
   ───────────────────────────────────────────────────────────── */
.ind-section {
    padding: 90px 0;
    background: #ffffff;
}
.ind-section--reverse { background: var(--ind-light); }

.ind-section__image {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}
.ind-section__image img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}
.ind-section__image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 60%, rgba(69,70,70,0.15));
    pointer-events: none;
}
.ind-section:hover .ind-section__image img { transform: scale(1.02); }

.ind-section__placeholder {
    width: 100%;
    height: 420px;
    background-color: #dcdfdf;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ind-section__placeholder i {
    font-size: 72px;
    color: var(--ind-accent);
}

.ind-section__content {
    padding: 30px 0 30px 48px;
}
.ind-section--reverse .ind-section__content { padding: 30px 48px 30px 0; }

.ind-section__label {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--ind-accent);
    margin: 0 0 16px;
}
.ind-section__title {
    font-size: 32px;
    font-weight: 700;
    color: var(--ind-primary);
    margin: 0 0 20px;
    line-height: 1.25;
}

.ind-section__text {
    color: var(--ind-body);
    font-size: 15px;
    line-height: 1.85;
    margin: 0 0 26px;
}

.ind-feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
}
.ind-feature-list li {
    padding: 7px 0 7px 28px;
    position: relative;
    color: var(--ind-primary);
    font-size: 14.5px;
    line-height: 1.55;
}
.ind-feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 7px;
    width: 18px;
    height: 18px;
    background: rgba(176,206,90,0.18);
    color: var(--ind-accent);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
}

.ind-section__cta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.ind-section__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ind-primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.2s, gap 0.2s;
}
.ind-section__link i { font-size: 15px; }
.ind-section__link:hover {
    color: var(--ind-accent);
    text-decoration: none;
    gap: 10px;
}

/* ─────────────────────────────────────────────────────────────
   FINAL CTA
   ───────────────────────────────────────────────────────────── */
.ind-cta {
    position: relative;
    padding: 90px 0;
    background-color: var(--ind-primary);
    background-image: url('../img/backgrounds/cta-banner.webp');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.ind-cta__overlay {
    position: absolute;
    inset: 0;
    /* Second stop was rgba(69,70,70,0.55) — a light grey, which over the
       new colour banner left the CTA copy short of AA. Both stops are now
       the near-black brand tone. */
    background: linear-gradient(135deg, rgba(12,10,12,0.88), rgba(12,10,12,0.72));
    pointer-events: none;
}
.ind-cta .container { position: relative; z-index: 2; }

.ind-cta__eyebrow {
    color: var(--ind-accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin: 0 0 14px;
}
/* !important is required here: mercury-override.css forces every
   h1-h6 to near-black with !important, which would otherwise win and
   leave this heading unreadable on the dark CTA. */
.ind-cta__title {
    color: #ffffff !important;
    font-size: 38px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 18px;
}
.ind-cta__sub {
    color: rgba(255,255,255,0.78);
    font-size: 16px;
    line-height: 1.7;
    margin: 0 0 36px;
}
.ind-cta__btns {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

/* ─────────────────────────────────────────────────────────────
   BACK-TO-TOP FAB
   ───────────────────────────────────────────────────────────── */
.ind-totop {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: var(--ind-accent);
    color: var(--ind-black);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(0,0,0,0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.22s, transform 0.22s, background 0.18s, visibility 0.22s;
    z-index: 60;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.ind-totop:hover { background: #9bb84a; }
.ind-totop.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────────────────── */
@media (max-width: 1199px) {
    .ind-grid__cards { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 991px) {
    .ind-nav ul { justify-content: flex-start; }
    .ind-nav__link { padding: 16px 16px; }

    .ind-intro            { padding: 60px 0 32px; }
    .ind-intro__title     { font-size: 28px; }
    .ind-certs {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 40px;
        padding: 24px;
        gap: 24px;
    }
    .ind-cert + .ind-cert::before { display: none; }

    .ind-grid               { padding: 50px 0 60px; }
    .ind-grid__title        { font-size: 26px; }
    .ind-grid__cards        { grid-template-columns: repeat(2, 1fr); gap: 14px; }

    .ind-section            { padding: 60px 0; }
    .ind-section__content   { padding: 30px 0 0 0; }
    .ind-section--reverse .ind-section__content { padding: 30px 0 0 0; }
    .ind-section__title     { font-size: 26px; }
    .ind-section__image img,
    .ind-section__placeholder { height: 340px; }
    /* On mobile, image always sits above content regardless of order utility */
    .ind-section .order-lg-1 { order: 2; }
    .ind-section .order-lg-2 { order: 1; }

    .ind-cta                { padding: 70px 0; }
    .ind-cta__title         { font-size: 28px; }
}

@media (max-width: 600px) {
    .ind-grid__cards { grid-template-columns: 1fr; }
    .ind-card        { padding: 24px 20px; }
    .ind-card__icon  { font-size: 36px; }

    .ind-section__image img,
    .ind-section__placeholder { height: 240px; }

    .ind-section__cta { flex-direction: column; align-items: flex-start; gap: 14px; }
    .ind-cta__title   { font-size: 24px; }
    .ind-cta__btns .ht-btn { width: 100%; text-align: center; }

    .ind-totop { right: 16px; bottom: 16px; width: 42px; height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
    .ind-card,
    .ind-card__cta,
    .ind-section__image img,
    .ind-section__link,
    .ind-totop { transition: none !important; }
}
