/* Industries page — layout, visual polish & rhythm */

body.page-industries {
    --ind-gap: 20px;
    --ind-radius: 18px;
    --ind-glow: rgba(51, 184, 184, 0.35);
    --ind-accent: var(--primary-light);
}

body.page-industries .section {
    padding: 88px 24px;
    position: relative;
}

body.page-industries .section--band {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 50%, transparent 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

body.page-industries .section--band::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 75% 45% at 50% 0%, rgba(0, 153, 153, 0.09), transparent 62%);
}

body.page-industries .section-desc {
    margin-bottom: 0;
}

/* —— Hero —— */
body.page-industries .page-hero {
    padding: 152px 24px 72px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: none;
    background: radial-gradient(ellipse at top, rgba(0, 153, 153, 0.12), transparent 58%);
}

body.page-industries .page-hero-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 85% 55% at 50% -5%, rgba(0, 153, 153, 0.2), transparent 52%),
        radial-gradient(ellipse 45% 40% at 90% 55%, rgba(155, 230, 255, 0.09), transparent 48%),
        radial-gradient(ellipse 40% 38% at 8% 75%, rgba(51, 184, 184, 0.1), transparent 45%);
}

body.page-industries .page-hero .section-container {
    position: relative;
    z-index: 1;
}

body.page-industries .page-hero .section-label {
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(51, 184, 184, 0.1);
    border: 1px solid rgba(51, 184, 184, 0.22);
    margin-bottom: 20px;
}

body.page-industries .page-hero h1 {
    font-size: clamp(34px, 5vw, 56px);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 18px;
}

body.page-industries .page-hero h1 .gradient {
    background: linear-gradient(135deg, #ffffff 0%, var(--primary-light) 40%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.page-industries .page-hero-desc {
    font-size: 17px;
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.75;
    color: var(--muted);
}

/* Sticky nav — flush under fixed navbar, no seam */
body.page-industries .navbar.scrolled {
    border-bottom-color: transparent;
    box-shadow: none;
}

body.page-industries .industry-nav-bar {
    position: sticky;
    top: calc(var(--navbar-height, 72px) + env(safe-area-inset-top, 0px));
    z-index: 1195;
    padding: 12px 24px;
    margin-top: -1px;
    background: rgba(7, 17, 29, 0.96);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(51, 184, 184, 0.12);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

body.page-industries .industry-nav-bar .section-container {
    max-width: 1200px;
    margin: 0 auto;
}

body.page-industries .industry-nav {
    gap: 10px;
    max-width: 100%;
    padding: 2px 0;
}

body.page-industries .industry-nav a {
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.28s ease;
}

body.page-industries .industry-nav a:hover,
body.page-industries .industry-nav a:focus-visible {
    color: var(--white);
    background: linear-gradient(135deg, rgba(0, 122, 122, 0.45), rgba(51, 184, 184, 0.25));
    border-color: rgba(51, 184, 184, 0.45);
    box-shadow: 0 8px 20px rgba(0, 153, 153, 0.2);
    transform: translateY(-1px);
}

body.page-industries .industry-nav a .icons {
    opacity: 0.9;
}

/* Section headers */
body.page-industries .section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 52px;
    position: relative;
    z-index: 1;
}

body.page-industries .section-header .section-label {
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.page-industries .section-header .section-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    margin: 18px auto 0;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary-light), var(--accent));
    opacity: 0.85;
}

body.page-industries .section-header .section-desc {
    margin: 16px auto 0;
}

body.page-industries #medical,
body.page-industries #automotive,
body.page-industries #industrial,
body.page-industries #energy,
body.page-industries #more-industries {
    scroll-margin-top: 120px;
}

body.page-industries #medical.section {
    padding-top: 56px;
}

/* Per-industry accent */
body.page-industries #medical { --ind-accent: #5ee0d0; }
body.page-industries #automotive { --ind-accent: #7ec8ff; }
body.page-industries #industrial { --ind-accent: #9be6ff; }
body.page-industries #energy { --ind-accent: #ffc56a; }

/* Industry showcase */
body.page-industries .industry-showcase {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    gap: 52px;
    align-items: center;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

body.page-industries .industry-showcase.reverse .is-text {
    order: 2;
}

body.page-industries .industry-showcase.reverse .is-visual {
    order: 1;
}

body.page-industries .is-text {
    padding-left: 18px;
    border-left: 2px solid transparent;
    border-image: linear-gradient(180deg, var(--ind-accent), rgba(51, 184, 184, 0.12)) 1;
}

body.page-industries .is-text .section-label {
    margin-bottom: 10px;
}

body.page-industries .is-text h2 {
    font-size: clamp(26px, 3.2vw, 38px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 14px;
    color: var(--white);
}

body.page-industries .is-text > p {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 22px;
    max-width: 52ch;
    color: var(--muted);
}

body.page-industries .is-features {
    gap: 12px 14px;
    margin-bottom: 22px;
}

body.page-industries .is-feature {
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: border-color 0.28s ease, background 0.28s ease, transform 0.28s ease, box-shadow 0.28s ease;
}

body.page-industries .is-feature:hover {
    border-color: rgba(51, 184, 184, 0.28);
    background: rgba(51, 184, 184, 0.07);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 153, 153, 0.1);
}

body.page-industries .is-feature-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    flex-shrink: 0;
    border-radius: 11px;
    background: linear-gradient(145deg, rgba(0, 153, 153, 0.22), rgba(51, 184, 184, 0.06));
    border: 1px solid rgba(51, 184, 184, 0.25);
    box-shadow: 0 6px 16px rgba(0, 153, 153, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ind-accent);
}

body.page-industries .is-feature-icon .icons {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    flex-shrink: 0;
    display: block;
    fill: currentColor;
}

body.page-industries #energy .is-feature-icon {
    color: #ffc56a;
    border-color: rgba(255, 197, 106, 0.3);
    background: linear-gradient(145deg, rgba(255, 197, 106, 0.15), rgba(255, 197, 106, 0.04));
}

body.page-industries .is-feature h4 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--white);
}

body.page-industries .is-feature p {
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 0;
    color: var(--muted-2);
}

body.page-industries .is-cert-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 700;
    padding: 9px 16px;
    border-radius: 10px;
    color: var(--success);
    background: rgba(113, 215, 193, 0.1);
    border: 1px solid rgba(113, 215, 193, 0.28);
    box-shadow: 0 0 24px rgba(113, 215, 193, 0.08);
}

/* Visual / image */
body.page-industries .is-visual .img-placeholder {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
    max-height: 440px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--ind-radius);
    overflow: hidden;
    position: relative;
    box-shadow:
        0 28px 56px rgba(0, 0, 0, 0.36),
        0 0 0 1px rgba(51, 184, 184, 0.06) inset;
    background: var(--bg-3);
    transition: box-shadow 0.35s ease;
}

body.page-industries .is-visual .img-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 50%, rgba(7, 17, 29, 0.5) 100%);
    border-radius: inherit;
}

body.page-industries .is-visual .img-placeholder::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: calc(var(--ind-radius) + 1px);
    padding: 1px;
    background: linear-gradient(135deg, var(--ind-accent), transparent 42%, rgba(155, 230, 255, 0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 2;
    opacity: 0.85;
}

body.page-industries .is-visual:hover .img-placeholder {
    box-shadow:
        0 32px 64px rgba(0, 153, 153, 0.18),
        0 28px 56px rgba(0, 0, 0, 0.38);
}

body.page-industries .is-visual .img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

body.page-industries .is-visual:hover .img-placeholder img {
    transform: scale(1.04);
}

/* Other industries */
body.page-industries .other-industries {
    align-items: stretch;
    gap: var(--ind-gap);
    position: relative;
    z-index: 1;
}

body.page-industries .oi-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    padding: 30px 26px 26px;
    text-align: center;
    border-radius: var(--ind-radius);
    position: relative;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

body.page-industries .oi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary-light));
    opacity: 0.75;
}

body.page-industries .oi-card:nth-child(2)::before {
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

body.page-industries .oi-card:nth-child(3)::before {
    background: linear-gradient(90deg, #2e7f8f, var(--primary-light));
}

body.page-industries .oi-card:hover {
    border-color: rgba(51, 184, 184, 0.32);
    box-shadow: 0 22px 44px rgba(0, 153, 153, 0.14);
}

body.page-industries .oi-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 18px;
    border-radius: 14px;
    font-size: 22px;
    flex-shrink: 0;
    background: linear-gradient(145deg, rgba(0, 153, 153, 0.22), rgba(51, 184, 184, 0.06));
    border: 1px solid rgba(51, 184, 184, 0.28);
    box-shadow: 0 8px 22px rgba(0, 153, 153, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-light);
}

body.page-industries .oi-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--white);
}

body.page-industries .oi-card > p {
    font-size: 14px;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 18px;
    color: var(--muted);
}

body.page-industries .oi-tags {
    margin-top: auto;
    gap: 6px;
    justify-content: center;
}

body.page-industries .oi-tags span {
    font-size: 10px;
    font-weight: 600;
    padding: 5px 11px;
    border-radius: 999px;
    color: var(--primary-light);
    background: rgba(51, 184, 184, 0.1);
    border: 1px solid rgba(51, 184, 184, 0.2);
}

/* Cert banner */
body.page-industries .cert-banner {
    padding: 52px 24px;
    text-align: center;
    position: relative;
    background:
        linear-gradient(90deg, var(--bg-3), var(--bg-2), var(--bg-3));
    border-top: 1px solid rgba(51, 184, 184, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.page-industries .cert-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(0, 153, 153, 0.12), transparent 70%);
}

body.page-industries .cert-banner > p {
    margin-bottom: 32px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    font-size: 13px;
    letter-spacing: 0.1em;
    position: relative;
    z-index: 1;
}

body.page-industries .cert-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px 18px;
    max-width: 1000px;
    margin: 0 auto;
    justify-items: center;
    position: relative;
    z-index: 1;
}

body.page-industries .cert-item {
    flex-direction: column;
    text-align: center;
    gap: 10px;
    padding: 16px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.28s ease, border-color 0.28s ease, transform 0.28s ease, box-shadow 0.28s ease;
    width: 100%;
    max-width: 160px;
}

body.page-industries .cert-item:hover {
    background: rgba(51, 184, 184, 0.08);
    border-color: rgba(51, 184, 184, 0.28);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 153, 153, 0.12);
}

body.page-industries .cert-banner .cert-icon {
    width: 48px;
    height: 48px;
    font-size: 18px;
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body.page-industries .cert-item span {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-soft);
}

/* CTA */
body.page-industries .industries-cta {
    padding: 56px 44px;
    text-align: center;
    border-radius: var(--ind-radius);
    position: relative;
    overflow: hidden;
}

body.page-industries .industries-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 70% at 50% 0%, rgba(0, 153, 153, 0.18), transparent 58%),
        radial-gradient(ellipse 35% 45% at 100% 100%, rgba(155, 230, 255, 0.08), transparent 50%);
}

body.page-industries .industries-cta > * {
    position: relative;
    z-index: 1;
}

body.page-industries .industries-cta .section-title {
    margin-bottom: 12px;
    font-size: clamp(26px, 4vw, 36px);
}

body.page-industries .industries-cta .section-desc {
    margin: 0 auto 28px;
    max-width: 520px;
}

body.page-industries .industries-cta-note {
    margin-top: 16px;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
}

body.page-industries #contact.section {
    padding-top: 88px;
}

@media (max-width: 1024px) {
    body.page-industries .industry-showcase,
    body.page-industries .industry-showcase.reverse {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-bottom: 0;
    }

    body.page-industries .industry-showcase .is-visual,
    body.page-industries .industry-showcase.reverse .is-visual {
        order: -1;
    }

    body.page-industries .industry-showcase .is-text,
    body.page-industries .industry-showcase.reverse .is-text {
        order: 1;
    }

    body.page-industries .is-text {
        padding-left: 0;
        border-left: none;
    }

    body.page-industries .is-text > p {
        max-width: none;
    }

    body.page-industries .is-visual .img-placeholder {
        max-height: 360px;
    }

    body.page-industries .other-industries {
        grid-template-columns: repeat(2, 1fr);
    }

    body.page-industries .cert-row {
        grid-template-columns: repeat(3, 1fr);
    }

    body.page-industries .cert-item {
        max-width: none;
    }
}

@media (max-width: 768px) {
    body.page-industries .section {
        padding: 64px 20px;
    }

    body.page-industries .page-hero {
        padding: 128px 20px 56px;
    }

    body.page-industries .industry-nav-bar {
        padding: 10px 20px;
    }

    body.page-industries .industry-nav {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 6px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    body.page-industries .industry-nav::-webkit-scrollbar {
        display: none;
    }

    body.page-industries .industry-nav a {
        flex-shrink: 0;
        padding: 8px 16px;
        font-size: 12px;
    }

    body.page-industries .section-header {
        margin-bottom: 36px;
    }

    body.page-industries .section-header .section-title::after {
        width: 40px;
        margin-top: 14px;
    }

    body.page-industries .is-features {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    body.page-industries .is-feature {
        padding: 12px 14px;
    }

    body.page-industries .is-visual .img-placeholder {
        max-height: 280px;
    }

    body.page-industries .other-industries {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    body.page-industries .oi-card {
        padding: 24px 22px;
    }

    body.page-industries .cert-banner {
        padding: 36px 20px;
    }

    body.page-industries .cert-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    body.page-industries .industries-cta {
        padding: 36px 22px;
    }

    body.page-industries #contact.section {
        padding-top: 64px;
    }
}

@media (max-width: 480px) {
    body.page-industries .cert-row {
        grid-template-columns: 1fr 1fr;
    }

    body.page-industries .cert-item:last-child {
        grid-column: 1 / -1;
        max-width: 200px;
        justify-self: center;
    }
}
