/* ════════════════════════════════════════════════════════════
   HOME PAGE — Extended Styles
   Inspired by Salesforce, HubSpot, Stripe human-first design
   ════════════════════════════════════════════════════════════ */

/* ═══ IMPACT NUMBERS SECTION ═══ */
.impact-section {
    position: relative; overflow: hidden;
    padding: 80px 0; text-align: center;
}
.impact-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center 40%;
    background-repeat: no-repeat;
}
.impact-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(5,20,65,0.88) 0%, rgba(39,91,145,0.80) 100%);
}
.impact-inner {
    position: relative; z-index: 1;
    display: flex; align-items: center; justify-content: center;
    gap: 0; flex-wrap: wrap;
}
.impact-stat {
    flex: 1; min-width: 180px; padding: 20px 32px;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.impact-number {
    font-family: var(--font-display); font-size: clamp(2.8rem, 6vw, 4.2rem);
    font-weight: 700; color: var(--white); line-height: 1;
    display: inline;
}
.impact-plus {
    font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700; color: var(--green); display: inline;
}
.impact-label {
    font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.1em;
    color: rgba(255,255,255,0.6); font-weight: 500;
}
.impact-divider {
    width: 1px; height: 60px;
    background: rgba(255,255,255,0.15); flex-shrink: 0;
}

/* ═══ STORY SPLIT ═══ */
.story-split {
    display: grid; grid-template-columns: 1fr 1fr; min-height: 580px;
    overflow: hidden;
}
.story-image-col {
    position: relative; overflow: hidden;
}
.story-photo {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform 0.6s ease;
}
.story-split:hover .story-photo { transform: scale(1.03); }
.story-photo-caption {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(5,20,65,0.85) 0%, transparent 100%);
    padding: 32px 32px 28px;
    display: flex; flex-direction: column; gap: 4px;
}
.caption-stat {
    font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--green);
}
.caption-text { font-size: 0.88rem; color: rgba(255,255,255,0.7); }
.story-content-col {
    background: var(--white); padding: 72px 64px; display: flex;
    flex-direction: column; justify-content: center;
}
.story-heading {
    font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 700; color: var(--navy); line-height: 1.2; margin: 12px 0 24px;
}
.story-body {
    font-size: 1rem; color: var(--text-light); line-height: 1.8; margin-bottom: 16px;
}
.story-features { margin-top: 8px; display: flex; flex-direction: column; gap: 12px; }
.story-feature {
    display: flex; align-items: center; gap: 12px;
    font-size: 0.95rem; color: var(--text); font-weight: 500;
}
.story-feature-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--green); flex-shrink: 0;
}

/* ═══ SERVICES VISUAL GRID ═══ */
.services-visual { padding: 88px 0; background: var(--gray-50); }
.services-visual-header {
    display: flex; align-items: flex-end; justify-content: space-between;
    margin-bottom: 48px; gap: 20px; flex-wrap: wrap;
}
.services-visual-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.sv-card {
    background: var(--white); border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200); overflow: hidden;
    transition: box-shadow 0.3s, transform 0.3s;
}
.sv-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.sv-image {
    height: 200px; background-size: cover; background-position: center;
    transition: transform 0.5s;
    overflow: hidden;
}
.sv-card:hover .sv-image { transform: scale(1.04); }
.sv-body { padding: 24px 26px 28px; }
.sv-title {
    font-family: var(--font-display); font-size: 1.1rem; font-weight: 700;
    color: var(--navy); margin-bottom: 10px;
}
.sv-desc { font-size: 0.9rem; color: var(--text-light); line-height: 1.7; margin-bottom: 16px; }
.sv-link { font-size: 0.85rem; font-weight: 700; color: var(--green); transition: color 0.25s; }
.sv-link:hover { color: var(--green-dark); }

/* ═══ WHY CHOOSE US — ENHANCED ═══ */
.wcu-header { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.wcu-subtitle { font-size: 1.05rem; color: var(--text-light); line-height: 1.7; margin-top: 14px; }
.pillar-accent {
    width: 36px; height: 3px; background: var(--green);
    border-radius: 2px; margin-bottom: 16px;
}

/* ═══ HOME RESOURCES PREVIEW ═══ */
.home-resources { padding: 88px 0; background: var(--white); }
.home-resources-header {
    display: flex; align-items: flex-end; justify-content: space-between;
    margin-bottom: 48px; gap: 20px; flex-wrap: wrap;
}
.home-resources-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.hr-card {
    display: flex; flex-direction: column; text-decoration: none;
    background: var(--white); border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg); overflow: hidden;
    transition: box-shadow 0.3s, transform 0.3s;
}
.hr-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); }
.hr-image {
    height: 220px; background-size: cover; background-position: center;
    transition: transform 0.5s; flex-shrink: 0;
}
.hr-card:hover .hr-image { transform: scale(1.04); }
.hr-body { padding: 24px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.hr-cat {
    display: inline-block; font-size: 0.72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.05em;
    padding: 4px 10px; border-radius: var(--radius-full);
}
.hr-title {
    font-family: var(--font-display); font-size: 1rem; font-weight: 700;
    color: var(--navy); line-height: 1.4; flex: 1;
    transition: color 0.25s;
}
.hr-card:hover .hr-title { color: var(--green); }
.hr-meta { font-size: 0.8rem; color: var(--gray-500); margin-top: auto; }

/* ═══ NEW HERO SECTION ═══ */
.new-hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: stretch;
}

/* — Full-bleed background photos — */
.nh-photo {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.nh-photo-inner {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.nh-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 1s ease, transform 1s ease;
}
.nh-img.active {
    opacity: 1;
    transform: scale(1);
}
.nh-photo-dots {
    position: absolute;
    bottom: 28px;
    right: 28px;
    display: flex;
    gap: 8px;
    z-index: 10;
}
.nh-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.6);
    background: transparent;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s, transform 0.3s;
    padding: 0;
}
.nh-dot.active {
    background: #fff;
    border-color: #fff;
    transform: scale(1.25);
}

/* — Content overlay panel (navy, left side) — */
.nh-content {
    position: relative;
    z-index: 2;
    width: 52%;
    min-width: 420px;
    background: rgba(5, 20, 65, 0.94);
    display: flex;
    align-items: center;
    /* Soft right edge fading into the photo */
    clip-path: none;
}
/* Gradient fade from panel into photo on the right */
.nh-content::after {
    content: '';
    position: absolute;
    top: 0; right: -60px;
    width: 60px;
    height: 100%;
    background: linear-gradient(to right, rgba(5,20,65,0.94) 0%, transparent 100%);
    pointer-events: none;
}
.nh-content::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(201,53,56,0.15) 0%, transparent 70%);
    pointer-events: none;
}
.nh-inner {
    padding: 80px 56px;
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 580px;
}

/* — Badge — */
.nh-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.7);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 28px;
    width: fit-content;
}
.nh-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    animation: nhPulse 2s ease infinite;
    flex-shrink: 0;
}
@keyframes nhPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* — Heading — */
.nh-heading {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--white);
    margin: 0 0 24px;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.nh-line-1 { display: block; }
.nh-line-3 { display: block; }
.nh-line-2 {
    display: block;
    position: relative;
    height: 1.15em;
    overflow: hidden;
}
.nh-cycle-wrap {
    display: block;
    position: relative;
    height: 100%;
}
.nh-cycle {
    display: block;
    position: absolute;
    top: 0; left: 0;
    color: var(--brown);
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    white-space: nowrap;
}
.nh-cycle.active {
    opacity: 1;
    transform: translateY(0);
}
.nh-cycle.exit {
    opacity: 0;
    transform: translateY(-40px);
}

/* — Subtext — */
.nh-sub {
    font-size: 1rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.75;
    margin: 0 0 36px;
    max-width: 440px;
}

/* — CTA Buttons — */
.nh-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}
.nh-btn-primary {
    display: inline-flex;
    align-items: center;
    background: var(--brown);
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
    box-shadow: 0 4px 16px rgba(201,53,56,0.35);
}
.nh-btn-primary:hover {
    background: var(--brown-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201,53,56,0.45);
}
.nh-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 14px 24px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255,255,255,0.2);
    text-decoration: none;
    transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.nh-btn-secondary:hover {
    border-color: rgba(255,255,255,0.5);
    color: var(--white);
    background: rgba(255,255,255,0.06);
}

/* — Scrolling Product Strip — */
.nh-scroll-strip {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 20px;
}
.nh-scroll-track {
    display: flex;
    gap: 20px;
    align-items: center;
    width: max-content;
    animation: nhScroll 22s linear infinite;
    white-space: nowrap;
}
.nh-scroll-track span {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: rgba(255,255,255,0.4);
    flex-shrink: 0;
    text-transform: uppercase;
}
.nh-strip-dot {
    color: rgba(201,53,56,0.5) !important;
    font-size: 1rem !important;
}
@keyframes nhScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
    .nh-content { width: 70%; min-width: 0; }
    .nh-inner { padding: 80px 40px 60px; }
    .story-split { grid-template-columns: 1fr; }
    .story-image-col { height: 380px; }
    .story-content-col { padding: 52px 40px; }
    .services-visual-grid { grid-template-columns: repeat(2, 1fr); }
    .home-resources-grid { grid-template-columns: repeat(2, 1fr); }
    .impact-inner { gap: 0; }
    .impact-divider { display: none; }
}
@media (max-width: 768px) {
    /* Hero: let height grow naturally so nothing gets clipped */
    .new-hero {
        min-height: 100svh;
        overflow: visible; /* was overflow:hidden — that clipped tall content */
    }
    /* Photo still covers the full hero area as background */
    .nh-photo { overflow: hidden; }

    /* Full-width content overlay */
    .nh-content {
        width: 100%;
        min-height: 100svh;
        height: auto;         /* allow content to push height */
        background: rgba(5, 20, 65, 0.90);
        align-items: flex-start;  /* don't vertically centre — just stack from top */
    }
    .nh-content::after  { display: none; }
    .nh-content::before { display: none; }

    /* Inner padding: top clears the 80px fixed header */
    .nh-inner {
        padding: 104px 22px 56px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    /* Heading size */
    .nh-heading { font-size: clamp(1.9rem, 7.5vw, 2.6rem); margin-bottom: 16px; }
    .nh-line-2  { height: 1.2em; }

    /* Subtext */
    .nh-sub { font-size: 0.92rem; margin-bottom: 28px; }

    /* CTA buttons full-width stacked */
    .nh-actions { flex-direction: column; gap: 10px; margin-bottom: 0; }
    .nh-btn-primary,
    .nh-btn-secondary { text-align: center; justify-content: center; width: 100%; box-sizing: border-box; }

    /* Hide scrolling strip — saves vertical space */
    .nh-scroll-strip { display: none; }

    /* Story split */
    .story-split        { grid-template-columns: 1fr; }
    .story-image-col    { height: 300px; }
    .story-content-col  { padding: 40px 22px; }

    /* Services / Resources grids */
    .services-visual-grid { grid-template-columns: 1fr; }
    .services-visual-header,
    .home-resources-header  { flex-direction: column; align-items: flex-start; gap: 12px; }
    .home-resources-grid    { grid-template-columns: 1fr; }
}
