/**
 * Home page – extra sections and layout
 * Depends on main.css
 */

/* ---- Hero (full-bleed with overlay) ---- */
.hero-home {
    position: relative;
    min-height: 72vh;
    display: flex;
    align-items: center;
    padding: 4rem 0;
}

.hero-home .hero-bg {
    position: absolute;
    inset: 0;
    background-color: #1a2332;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-home .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 35, 50, 0.75) 0%, rgba(26, 35, 50, 0.5) 50%, rgba(26, 35, 50, 0.4) 100%);
    z-index: 1;
}

.hero-home .hero-inner {
    position: relative;
    z-index: 2;
    color: #fff;
    text-align: center;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-home .eyebrow {
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.1em;
}

.hero-home h1 {
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.hero-home .hero-lead {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.5rem;
}

.hero-home .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.btn-primary-outline {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.btn-primary-outline:hover,
.btn-primary-outline:focus-visible {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* ---- Trust strip ---- */
.trust-strip {
    background: var(--text);
    color: #fff;
    padding: 0.85rem 0;
}

.trust-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.trust-item {
    opacity: 0.95;
}

/* ---- Split section (Why us) ---- */
.section-why {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.split-section {
    display: grid;
    gap: 2rem;
    align-items: center;
}

.split-media {
    order: 0;
}

.split-img-wrap {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.split-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.split-content .eyebrow {
    margin-bottom: 0.5rem;
}

.split-content h2 {
    margin-bottom: 1rem;
}

.split-content p {
    margin-bottom: 1rem;
}

.check-list {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
}

.check-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--brand-strong);
    font-weight: 700;
}

@media (min-width: 768px) {
    .split-section {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .split-section .split-media {
        order: 0;
    }

    .split-section .split-content {
        order: 1;
    }
}

@media (min-width: 900px) {
    .split-section.align-right .split-media {
        order: 1;
    }

    .split-section.align-right .split-content {
        order: 0;
    }
}

/* ---- Section headings ---- */
.section-eyebrow {
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand-strong);
    margin: 0 0 0.35rem;
}

.section-title {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

/* ---- Feature cards ---- */
.feature-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 1rem;
}

.feature-card {
    padding: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(47, 164, 255, 0.15), rgba(12, 126, 217, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature-icon-fallback {
    line-height: 1;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
}

.feature-card ul {
    margin: 0.75rem 0 0;
    padding-left: 1.25rem;
}

.feature-card li {
    margin-bottom: 0.25rem;
}

@media (min-width: 768px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---- Industry tiles ---- */
.industry-grid {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.industry-tile {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    min-height: 180px;
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    color: #fff;
}

.industry-tile:hover {
    color: #fff;
}

.industry-tile-bg {
    position: absolute;
    inset: 0;
    background-color: var(--brand-strong);
    background-size: cover;
    background-position: center 28%;
    z-index: 0;
}

.industry-tile-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
    z-index: 1;
}

.industry-tile-label {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    min-height: 100%;
    padding: 1.25rem;
    font-size: 1.25rem;
    font-weight: 700;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* Fallback when image missing */
.industry-tile-bg:empty,
.industry-tile-bg[style*="url('')"] {
    background: linear-gradient(135deg, var(--brand), var(--brand-strong));
}

@media (min-width: 768px) {
    .industry-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }

    .industry-tile {
        min-height: 220px;
    }

    .industry-tile-label {
        min-height: 100%;
        font-size: 1.35rem;
    }
}

/* ---- Process steps (numbered) ---- */
.process-grid-home {
    margin-top: 1rem;
}

.process-step-num {
    /* Flex keeps number + heading on one row reliably on narrow screens (grid + min-width:auto can collapse tracks). */
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    column-gap: 0.9rem;
    row-gap: 0.65rem;
    min-width: 0;
    transition: transform 0.2s ease;
}

.process-step-num:hover {
    transform: translateY(-2px);
}

.process-num {
    flex: 0 0 auto;
    margin-top: 0.12em;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand-strong));
    color: #fff;
    font-size: 1.25rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.process-step-num h3 {
    flex: 1 1 0;
    margin: 0;
    line-height: 1.3;
    min-width: 0;
}

.process-step-num p {
    flex: 1 0 100%;
    margin: 0;
    min-width: 0;
}

@media (min-width: 768px) {
    .process-grid-home {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .process-grid-home {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ---- Job teaser ---- */
.job-teaser-list {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.job-teaser-card {
    padding: 1.25rem;
    transition: box-shadow 0.2s ease;
}

.job-teaser-card:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.job-teaser-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.job-teaser-meta span + span::before {
    content: " · ";
}

.job-teaser-title {
    font-size: 1.1rem;
    margin: 0 0 0.5rem;
}

.job-teaser-title a {
    color: inherit;
    text-decoration: none;
}

.job-teaser-title a:hover {
    color: var(--brand-strong);
}

.job-teaser-excerpt {
    font-size: 0.95rem;
    margin: 0 0 1rem;
    color: var(--text-muted);
}

.btn-sm {
    padding: 0.5rem 1rem;
    min-height: 38px;
    font-size: 0.9rem;
}

.section-cta {
    text-align: center;
    margin-top: 1.5rem;
}

@media (min-width: 768px) {
    .job-teaser-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ---- Quote strip ---- */
.quote-strip {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.quote-box {
    max-width: 36rem;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
    border-radius: var(--radius);
    border-left: 4px solid var(--brand-strong);
}

.quote-text {
    font-size: 1.15rem;
    font-style: italic;
    margin: 0 0 1rem;
    line-height: 1.6;
}

.quote-footer {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ---- CTA section ---- */
.cta-section {
    position: relative;
    padding: 4rem 0;
}

.cta-section .cta-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.cta-section .cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 35, 50, 0.8) 0%, rgba(26, 35, 50, 0.6) 100%);
    z-index: 1;
}

.cta-inner {
    position: relative;
    z-index: 2;
}

.cta-section .cta-box {
    text-align: center;
    padding: 2.5rem 2rem;
    color: #fff;
    max-width: 32rem;
    margin: 0 auto;
    border-radius: var(--radius);
    background: rgba(11, 42, 58, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.18);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

.cta-section .cta-box h2 {
    color: #fff;
    margin-bottom: 0.5rem;
}

.cta-section .cta-box p {
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.cta-section .btn-primary {
    border-color: #fff;
}

.cta-section .btn-primary-outline {
    border-color: #fff;
    color: #fff;
}

.cta-section .btn-primary-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

@media (prefers-reduced-motion: reduce) {
    .feature-card:hover,
    .industry-tile:hover,
    .process-step-num:hover,
    .job-teaser-card:hover {
        transform: none;
    }
}
