/* ==========================================================================
   Nextzen Services - Home page experience layer
   Loaded after style.css / responsive.css so these refinements win.
   Scope: index.html only (all selectors are namespaced to home-* or to
   components that are not used on the inner pages).
   ========================================================================== */

/* --------------------------------------------------------------------------
   Icon system
   -------------------------------------------------------------------------- */
.svg-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}

.icon-svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-svg--solid {
    fill: currentColor;
    stroke: none;
}

/* --------------------------------------------------------------------------
   Accessibility
   -------------------------------------------------------------------------- */
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 2000;
    padding: 12px 20px;
    background: var(--color-surface);
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.92rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 16px;
}

:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 3px;
    border-radius: 6px;
}

.site-header:not(.scrolled) :focus-visible {
    outline-color: #ffffff;
}

/* The nav CTA colours for both header states live in style.css so every
   inner page gets the same contrast fix. */

.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
}

/* The open mobile panel is a white sheet, so the header CTA must stay solid
   regardless of the scrolled state. */
body.nav-open {
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
    padding-bottom: 96px;
}

.hero-content {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
}

.hero h1 {
    margin-bottom: 24px;
}

.hero h1 .accent {
    position: relative;
    display: inline-block;
    background: none;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    text-shadow: 0 2px 18px rgba(11, 26, 74, 0.28);
}

/* A thin gradient rule under the accent word keeps it anchored to the
   baseline without washing the glyphs out against the hero gradient. */
.hero h1 .accent::after {
    content: '';
    position: absolute;
    left: 0.04em;
    right: 0.04em;
    bottom: -0.05em;
    height: 0.075em;
    border-radius: 999px;
    background: linear-gradient(90deg, #6FE7E7 0%, #C4B5FD 100%);
}

.hero-description {
    max-width: 560px;
}

.hero-buttons {
    margin-bottom: 32px;
}

/* Primary action is solid white — the strongest contrast on the gradient band. */
.btn-hero-primary {
    background: #ffffff;
    color: var(--color-primary-dark);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 30px rgba(11, 30, 80, 0.28);
    text-shadow: none;
}

.btn-hero-primary:hover {
    background: #ffffff;
    color: var(--color-primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 16px 38px rgba(11, 30, 80, 0.36);
}

.btn-hero-primary .btn-arrow {
    color: var(--color-primary);
}

.btn-hero-ghost {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    box-shadow: 0 8px 26px rgba(11, 30, 80, 0.20);
    text-shadow: none;
}

.btn-hero-ghost:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-3px);
}

/* Reassurance points under the hero actions */
.hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    list-style: none;
}

.hero-proof li {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
}

.hero-proof .icon-svg {
    width: 19px;
    height: 19px;
    color: #6FE7E7;
}

/* Stats become a full-width glass strip so the numbers read as proof,
   not as an orphaned row in the corner of the hero. */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin-top: 60px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    box-shadow: 0 18px 50px rgba(11, 30, 80, 0.20);
    overflow: hidden;
}

.stat-item {
    padding: 26px 30px;
    position: relative;
}

.stat-item + .stat-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background: rgba(255, 255, 255, 0.22);
}

.stat-number {
    font-size: clamp(2rem, 3.4vw, 2.55rem);
    letter-spacing: -0.03em;
    margin-bottom: 6px;
}

.stat-label {
    color: rgba(255, 255, 255, 0.82);
}

/* Hero visual — the mark sits on a soft glow, the chips frame it. */
.hero-glow {
    position: absolute;
    inset: 12%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 68%);
    filter: blur(8px);
    pointer-events: none;
}

.hero-logo {
    max-width: 340px;
}

/* The chips overlap the artwork, so they use a deeper tint — a pale glass
   panel disappears against the bright logo. */
.floating-card {
    padding: 12px 16px;
    font-size: 0.82rem;
    gap: 9px;
    background: rgba(8, 24, 72, 0.52);
    border-color: rgba(255, 255, 255, 0.32);
    box-shadow: 0 12px 32px rgba(4, 14, 45, 0.32);
}

.floating-card .icon-svg {
    width: 20px;
    height: 20px;
    color: #7FE9E9;
}

.fc-1 {
    top: 3%;
    left: -6%;
    animation-delay: 0s;
}

.fc-2 {
    top: 45%;
    right: -7%;
    animation-delay: 1.2s;
}

.fc-3 {
    bottom: 5%;
    left: 2%;
    animation-delay: 2.4s;
}

/* --------------------------------------------------------------------------
   Why choose us — real icons instead of emoji
   -------------------------------------------------------------------------- */
.feature-card {
    overflow: hidden;
}

.feature-card .card-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary-soft);
    color: var(--color-primary);
    border: 1px solid var(--color-border);
    transition: all var(--transition-base);
}

.feature-card .card-icon .icon-svg {
    width: 26px;
    height: 26px;
}

.feature-card:hover .card-icon {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 10px 24px rgba(30, 91, 255, 0.32);
    transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   How we work — a connected four-step spine
   -------------------------------------------------------------------------- */
.how-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px;
}

.how-card {
    position: relative;
    padding: 30px 26px 28px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-fast);
}

.how-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(30, 91, 255, 0.28);
}

/* Connector between steps */
.how-card:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 58px;
    left: 100%;
    width: 26px;
    height: 2px;
    background: linear-gradient(90deg, rgba(30, 91, 255, 0.45), rgba(45, 212, 212, 0.45));
    border-radius: 2px;
}

.how-step {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: var(--gradient-primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.15rem;
    margin-bottom: 18px;
    box-shadow: 0 8px 22px rgba(30, 91, 255, 0.30);
}

.how-card h3 {
    font-size: 1.12rem;
    margin-bottom: 10px;
}

.how-card p {
    font-size: 0.92rem;
    line-height: 1.65;
}

.how-meta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 16px;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    background: var(--gradient-primary-soft);
    color: var(--color-primary);
    font-size: 0.78rem;
    font-weight: 600;
}

.how-meta .icon-svg {
    width: 14px;
    height: 14px;
}

/* --------------------------------------------------------------------------
   Services — every practice visible at once (no horizontal scrolling)
   -------------------------------------------------------------------------- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.svc-mini {
    position: relative;
    overflow: hidden;
}

/* Accent bar that sweeps in on hover */
.svc-mini::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--svc-accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.svc-mini:hover::before,
.svc-mini:focus-visible::before {
    transform: scaleX(1);
}

.svc-mini-icon {
    color: var(--svc-ink);
    border: 1px solid var(--color-border);
}

.svc-mini-icon .icon-svg {
    width: 24px;
    height: 24px;
}

.svc-mini:hover .svc-mini-icon {
    background: var(--svc-accent);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 10px 24px rgba(30, 91, 255, 0.22);
}

.svc-mini-title {
    transition: color var(--transition-fast);
}

.svc-mini:hover .svc-mini-title {
    color: var(--svc-ink);
}

/* --------------------------------------------------------------------------
   Products — the single flagship gets a proper spotlight
   -------------------------------------------------------------------------- */
.product-spotlight {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.product-shot {
    position: relative;
    background: #0B1B4D;
    line-height: 0;
}

.product-shot img {
    width: 100%;
    height: auto;
    display: block;
}

.product-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    padding: 7px 15px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.94);
    color: var(--color-primary-dark);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 8px 20px rgba(11, 30, 80, 0.25);
    line-height: 1.4;
}

.product-body {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 40px;
    padding: 40px 44px 42px;
}

.product-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.product-body h3 {
    font-size: clamp(1.6rem, 3vw, 2.05rem);
    margin-bottom: 12px;
}

.product-body > div > p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 26px;
}

.product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.product-points {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 24px;
}

.product-points li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--color-text);
}

.product-points .icon-svg {
    width: 20px;
    height: 20px;
    margin-top: 1px;
    color: var(--color-teal);
}

.product-points strong {
    display: block;
    font-weight: 600;
    color: var(--color-text);
}

.product-points span {
    color: var(--color-text-muted);
    font-size: 0.86rem;
}

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */
.testimonial {
    display: flex;
    flex-direction: column;
    padding: 30px 28px 26px;
}

.testimonial-quote {
    width: 34px;
    height: 34px;
    color: var(--color-primary);
    opacity: 0.22;
    margin-bottom: 6px;
}

.testimonial-stars {
    display: flex;
    gap: 3px;
    color: #FBBF24;
    margin-bottom: 14px;
}

.testimonial-stars .icon-svg {
    width: 17px;
    height: 17px;
}

.testimonial blockquote {
    margin: 0 0 22px;
    font-style: italic;
    color: var(--color-text);
    font-size: 1.02rem;
    line-height: 1.68;
}

.testimonial-person {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--color-border);
}

.tst-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    flex-shrink: 0;
    letter-spacing: 0.02em;
}

.tst-avatar--1 { background: linear-gradient(135deg, #1E5BFF 0%, #2DD4D4 100%); }
.tst-avatar--2 { background: linear-gradient(135deg, #A78BFA 0%, #2DD4D4 100%); }
.tst-avatar--3 { background: linear-gradient(135deg, #1E5BFF 0%, #A78BFA 100%); }

.tst-name {
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.35;
}

.tst-role {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   Closing CTA
   -------------------------------------------------------------------------- */
.cta-points {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 28px;
    margin: 24px 0 30px;
}

.cta-points li {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.92);
}

.cta-points .icon-svg {
    width: 19px;
    height: 19px;
    color: #6FE7E7;
}

/* --------------------------------------------------------------------------
   Footer icons
   -------------------------------------------------------------------------- */
.footer-socials a {
    transition: all var(--transition-base);
}

.footer-socials .icon-svg {
    width: 18px;
    height: 18px;
}

.footer-contact-item .icon-svg {
    width: 18px;
    height: 18px;
}

/* --------------------------------------------------------------------------
   Sticky mobile action bar
   -------------------------------------------------------------------------- */
.mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    display: none;
    gap: 10px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -8px 30px rgba(30, 91, 255, 0.10);
    transform: translateY(110%);
    transition: transform var(--transition-base);
}

.mobile-cta.is-visible {
    transform: translateY(0);
}

.mobile-cta .btn {
    flex: 1;
    padding: 13px 18px;
    font-size: 0.92rem;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero h1 {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-proof {
        justify-content: center;
    }

    .hero-stats {
        margin-top: 44px;
    }

    .stat-item {
        padding: 22px 20px;
    }

    .floating-card {
        display: none;
    }

    .service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .how-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .how-card:not(:last-child)::after {
        display: none;
    }

    .product-body {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 32px 30px 34px;
    }
}

@media (max-width: 768px) {
    /* Keep the mobile menu panel opaque enough that page content never
       bleeds through behind the links. */
    .nav-menu {
        background: rgba(255, 255, 255, 0.98);
    }

    /* Lead with the promise, not the artwork — on a phone the headline and
       the call to action have to land first. */
    .hero-text { order: 0; }
    .hero-visual { order: 1; margin-top: 28px; }

    .hero-logo {
        max-width: 240px;
    }

    .hero {
        padding-bottom: 72px;
    }

    .hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 36px;
    }

    .stat-item {
        padding: 20px 18px;
    }

    .stat-item + .stat-item::before {
        display: none;
    }

    /* Keep the divider on the left column only */
    .stat-item:nth-child(even)::before {
        display: block;
    }

    .stat-item:nth-child(n + 3)::before {
        top: 0;
        bottom: auto;
        width: 100%;
        height: 1px;
    }

    .service-grid,
    .how-grid {
        grid-template-columns: 1fr;
    }

    .product-body {
        padding: 26px 22px 28px;
    }

    .product-points {
        grid-template-columns: 1fr;
    }

    .testimonial {
        padding: 26px 22px 24px;
    }

    .mobile-cta {
        display: flex;
    }

    /* Keep the sticky bar from covering the end of the page */
    body {
        padding-bottom: 84px;
    }

    .back-to-top {
        bottom: 96px;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stat-item {
        padding: 16px 14px;
    }

    .stat-number {
        font-size: 1.6rem;
    }
}

/* Very narrow phones: stack the stats so nothing is cramped. */
@media (max-width: 360px) {
    .hero-stats {
        grid-template-columns: 1fr;
    }

    .stat-item:nth-child(even)::before {
        display: none;
    }

    .stat-item + .stat-item::before {
        display: block;
        top: 0;
        bottom: auto;
        width: 100%;
        height: 1px;
    }
}

/* Reduced motion: no travel, no shimmer — content stays fully legible. */
@media (prefers-reduced-motion: reduce) {
    .hero h1 .accent::after {
        transform: none;
    }

    .mobile-cta {
        transition: none;
    }
}
