/**
 * NEOXWEB — Premium UI polish (spacing, cards, typography, hierarchy)
 * Color scheme unchanged — enhanced contrast, shadows, gradients
 */

html,
body.neoxweb-site {
    overflow-x: clip;
    max-width: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.neoxweb-site main {
    overflow-x: clip;
}

/* Hide duplicate sub-nav if any remain */
.neoxweb-site .nx-quick-nav {
    display: none !important;
}

/* Vertical rhythm */
.neoxweb-site .section-padding,
.neoxweb-site .pr-section,
.neoxweb-site .ui-section {
    padding-top: clamp(3rem, 6vw, 5rem);
    padding-bottom: clamp(3rem, 6vw, 5rem);
}

.neoxweb-site .section-padding + .section-padding.dark-bg,
.neoxweb-site .section-padding.dark-bg + .section-padding:not(.dark-bg) {
    padding-top: clamp(3rem, 6vw, 5rem);
}

.neoxweb-site .container {
    width: var(--nx-container, min(1180px, calc(100% - 2.5rem)));
    margin-inline: auto;
}

.neoxweb-site.service-page main .container,
.neoxweb-site.service-page .nx-page-hero__inner {
    margin-inline: 0 !important;
    width: 100% !important;
    max-width: min(1200px, 100%);
    padding-inline: clamp(1rem, 2.5vw, 1.5rem) !important;
    text-align: left;
}

/* Section headers */
.neoxweb-site .section-header {
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.neoxweb-site .section-header.text-center {
    text-align: center;
    max-width: 42rem;
    margin-inline: auto;
}

.neoxweb-site .section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent, #4ade80);
    margin-bottom: 0.75rem;
}

.neoxweb-site .section-header h2 {
    font-family: var(--font-heading, 'Space Grotesk', sans-serif);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0;
}

.neoxweb-site .section-desc {
    color: var(--muted, #b5b5b5);
    font-size: 1.05rem;
    line-height: 1.65;
    margin-top: 0.85rem;
    max-width: 36rem;
}

.neoxweb-site .section-header.text-center .section-desc {
    margin-inline: auto;
}

.neoxweb-site .text-neox-green {
    color: var(--accent, #4ade80);
}

.neoxweb-site .section-desc a.text-neox-green {
    text-decoration: none;
    border-bottom: 1px solid rgba(74, 222, 128, 0.35);
    transition: border-color 0.2s ease, color 0.2s ease;
}

.neoxweb-site .section-desc a.text-neox-green:hover {
    color: #86efac;
    border-color: #86efac;
}

/* Dark sections */
.neoxweb-site .dark-bg {
    background: linear-gradient(180deg, rgba(12, 12, 12, 0.6) 0%, rgba(8, 8, 8, 0.95) 100%);
    border-block: 1px solid rgba(255, 255, 255, 0.04);
}

/* Service cards */
.neox-service-cards,
.testimonial-slider,
.pro-grid,
.nx-about-services,
.nx-team-showcase,
.project-grid,
.nx-why-grid,
.nx-process-grid {
    align-items: stretch;
    gap: clamp(1.25rem, 2.5vw, 1.75rem);
}

.neox-service-card,
.testimonial-card,
.pro-card,
.nx-about-service,
.nx-card,
.nx-why-card,
.nx-process-card,
.project-card {
    height: 100%;
}

.neox-service-card {
    display: flex;
    flex-direction: column;
    background: rgba(18, 18, 18, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-sm, 18px);
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.neox-service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(74, 222, 128, 0.25);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(74, 222, 128, 0.08);
}

.neox-service-card__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.neox-service-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.neox-service-card:hover .neox-service-card__img {
    transform: scale(1.04);
}

.neox-service-card__badge {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(8px);
    font-size: 0.8rem;
    font-weight: 600;
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.2);
}

.neox-service-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.35rem 1.5rem 1.5rem;
    gap: 0.5rem;
}

.neox-service-card__body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    letter-spacing: -0.01em;
}

.neox-service-card__body p {
    color: var(--muted, #b5b5b5);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.neox-service-card__body a {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--accent, #4ade80);
    transition: gap 0.2s ease, color 0.2s ease;
}

.neox-service-card__body a:hover {
    gap: 0.65rem;
    color: #86efac;
}

/* Process & why cards */
.nx-process-card,
.nx-why-card {
    padding: 1.75rem;
    background: rgba(16, 16, 16, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm, 18px);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.nx-process-card:hover,
.nx-why-card:hover {
    border-color: rgba(74, 222, 128, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.nx-why-card i {
    font-size: 1.5rem;
    color: var(--accent, #4ade80);
    margin-bottom: 1rem;
}

.nx-process-card__num {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--accent, #4ade80);
    opacity: 0.85;
}

/* Project cards */
.neoxweb-site .project-card {
    padding: 1.75rem;
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.9), rgba(12, 12, 12, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-sm, 18px);
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.neoxweb-site .project-card:hover {
    transform: translateY(-3px);
    border-color: rgba(74, 222, 128, 0.28);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* Testimonials */
.neoxweb-site .testimonial-slider .slide {
    padding: 1.75rem;
    background: rgba(16, 16, 16, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm, 18px);
    transition: border-color 0.25s ease;
}

.neoxweb-site .testimonial-slider .slide:hover {
    border-color: rgba(74, 222, 128, 0.18);
}

.neoxweb-site .testimonial-slider .slide p {
    font-size: 1rem;
    line-height: 1.7;
    color: #e2e8f0;
    margin: 0 0 1.25rem;
}

/* Team showcase compact */
.nx-team-showcase--compact {
    grid-template-columns: repeat(3, 1fr);
}

.neoxweb-site .nx-card {
    background: rgba(16, 16, 16, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm, 18px);
    overflow: hidden;
    transition: transform 0.28s ease, border-color 0.28s ease;
}

.neoxweb-site .nx-card:hover {
    transform: translateY(-3px);
    border-color: rgba(74, 222, 128, 0.2);
}

.neoxweb-site .nx-card__body {
    padding: 1.25rem 1.35rem 1.5rem;
}

.neoxweb-site .nx-card__detail {
    font-size: 0.85rem;
    color: var(--muted, #b5b5b5);
    margin-top: 0.5rem;
}

/* Hero buttons */
.neoxweb-site .btn-hero-primary {
    box-shadow: 0 6px 28px rgba(34, 197, 94, 0.4);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.neoxweb-site .btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 36px rgba(74, 222, 128, 0.45);
}

.neoxweb-site .btn-hero-outline {
    border-color: rgba(74, 222, 128, 0.45);
    transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.neoxweb-site .btn-hero-outline:hover {
    background: rgba(74, 222, 128, 0.1);
    border-color: rgba(74, 222, 128, 0.65);
    transform: translateY(-1px);
}

/* Images */
.visual-art-wrap,
.neox-service-card__media,
.svc-vertical-item__icon,
.pr-split__media {
    overflow: hidden;
    max-width: 100%;
}

img.nx-photo,
.visual-art,
.neox-service-card__img {
    max-width: 100%;
    display: block;
}

/* Readability */
.neoxweb-site {
    --muted: #b8b8b8;
}

/* Touch targets */
.neoxweb-site .btn,
.neoxweb-site .btn-hero-primary,
.neoxweb-site .btn-hero-outline,
.neoxweb-site .btn-pro-gradient,
.neoxweb-site .ui-btn-getstarted {
    min-height: 44px;
}

/* Footer polish */
.neoxweb-site .site-footer--pro .container {
    margin-inline: 0 !important;
    width: 100% !important;
    max-width: min(1180px, 100%);
    padding-inline: clamp(1rem, 2.5vw, 1.5rem) !important;
    text-align: left;
}

.neoxweb-site .site-footer--pro,
.neoxweb-site .site-footer--pro .footer-uni__title,
.neoxweb-site .site-footer--pro .footer-uni__col,
.neoxweb-site .site-footer--pro .footer-uni__col h3,
.neoxweb-site .site-footer--pro .footer-uni__copy p {
    text-align: left;
}

.neoxweb-site .footer-uni__top {
    padding-top: 15px !important;

}

.neoxweb-site main .section-padding:last-child {
    padding-bottom: 0 !important;
    border-bottom: none !important;
}

.neoxweb-site .site-footer--pro .footer-uni__bar {
    border-top: none !important;
}

.neoxweb-site .footer-uni__col a {
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.neoxweb-site .footer-uni__col a:hover {
    color: var(--accent, #4ade80);
    padding-left: 4px;
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1024px) {
    .neox-service-cards,
    .nx-team-showcase--compact {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonial-slider {
        grid-template-columns: repeat(2, 1fr);
    }

    .pro-grid,
    .nx-about-services {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-uni__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .mega-unified {
        grid-template-columns: minmax(220px, 32%) 1fr;
        padding-inline: 1.5rem;
    }

    .mega-unified__grid--tech {
        grid-template-columns: repeat(4, 1fr);
    }

    .mega-services {
        grid-template-columns: 1fr 1fr;
    }

    .mega-services__case {
        grid-column: 1 / -1;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .nx-team-showcase--compact {
        grid-template-columns: 1fr;
    }

    .footer-uni__bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .neoxweb-site .section-header.text-center {
        text-align: left;
        margin-inline: 0;
    }

    .neoxweb-site .section-header.text-center .section-desc {
        margin-inline: 0;
    }
}

/* Client delivery: main page copy always visible */
.neoxweb-site main .fade-up,
.neoxweb-site main .ui-fade-up,
.neoxweb-site main .pr-reveal,
.neoxweb-site main .hero-copy,
.neoxweb-site main .section-header,
.neoxweb-site main .neox-service-card,
.neoxweb-site main .testimonial-slider,
.neoxweb-site main .ui-testimonial {
    opacity: 1 !important;
    visibility: visible !important;
}

/* ===== Client delivery — final polish ===== */

/* Photos: cover in open layouts — NOT inside fixed service thumbs */
.neoxweb-site .visual-art-wrap:not(.visual-art-wrap--card):not(.visual-art-wrap--project):not(.visual-art-wrap--hero) {
    aspect-ratio: 16 / 10;
    max-height: min(280px, 42vw);
}

/* Service page thumbs — parent controls size, no blow-up */
.neoxweb-site.service-page .svc-vertical-item__icon .visual-art-wrap,
.neoxweb-site.service-page .nx-stack-card > .visual-art-wrap,
.neoxweb-site.service-page .ui-resource-card .thumb .visual-art-wrap,
.neoxweb-site.service-page .ui-resource-card .thumb .visual-art-wrap--blog {
    aspect-ratio: unset !important;
    max-height: 100% !important;
    height: 100% !important;
    width: 100% !important;
    min-height: 0 !important;
}

.neoxweb-site.service-page .svc-vertical-item__icon {
    max-width: 100% !important;
    max-height: 160px !important;
}

.neoxweb-site.service-page .svc-vertical-item__icon .visual-art-wrap {
    max-height: 160px !important;
    aspect-ratio: 16 / 10 !important;
    min-height: 0 !important;
    height: 100% !important;
}

.neoxweb-site .visual-art-wrap--media {
    aspect-ratio: 16 / 10;
    max-height: min(260px, 38vw);
    max-width: 520px;
    padding: 0 !important;
    align-items: stretch !important;
    justify-content: stretch !important;
}

.neoxweb-site .visual-art-wrap--media .visual-art,
.neoxweb-site .visual-art-wrap--media img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    object-position: center center !important;
    padding: 0 !important;
}

.neoxweb-site .pr-split__media {
    max-width: 520px;
    justify-self: end;
}

.neoxweb-site .service-panel__photo {
    max-height: 200px;
    aspect-ratio: 16 / 10;
}

.neoxweb-site .svc-vertical-item__icon .visual-art-wrap,
.neoxweb-site .svc-vertical-item__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
}

.neoxweb-site .visual-art-wrap .visual-art,
.neoxweb-site img.nx-photo:not(.navbar__logo-img):not(.footer-logo-img):not(.footer-uni__mark img) {
    object-fit: cover !important;
    object-position: center center !important;
}

.neoxweb-site .neox-service-card__media {
    max-height: none;
    aspect-ratio: 16 / 10;
}

.neoxweb-site .neox-service-card__media .visual-art {
    object-fit: cover !important;
    padding: 0 !important;
    filter: none !important;
}

.neoxweb-site .project-card .visual-art-wrap {
    max-height: 260px;
    aspect-ratio: 16 / 10;
}

.neoxweb-site .project-card .visual-art-wrap .visual-art {
    padding: 0 !important;
    object-fit: cover !important;
}

/* Hero headings — breathing room below navbar */
.neoxweb-site:not(.home-page) .hero-section--pro h1,
.neoxweb-site:not(.home-page) .svc-banner-hero h1,
.neoxweb-site:not(.home-page) .web-hero h1,
.neoxweb-site:not(.home-page) .nx-page-hero h1 {
    margin-top: 0;
    line-height: 1.12;
}

.neoxweb-site:not(.home-page) .hero-section--pro .section-tag,
.neoxweb-site:not(.home-page) .svc-banner-hero .ui-section-tag,
.neoxweb-site:not(.home-page) .web-hero .section-tag {
    margin-bottom: 1rem;
}

/* Prevent text clipping on hero overlays */
.neoxweb-site .hero-section--pro .hero-bg-overlay {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.62) 40%, rgba(0, 0, 0, 0.25) 62%, transparent 82%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, transparent 38%, rgba(0, 0, 0, 0.5) 100%) !important;
}

/* Form polish */
.neoxweb-site .contact-form-pro .form-group.floating input,
.neoxweb-site .contact-form-pro .form-group.floating textarea {
    border-radius: 12px;
}

.neoxweb-site .contact-success {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.15rem;
    margin-bottom: 1.25rem;
    border-radius: 14px;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.25);
}

.neoxweb-site .contact-success i {
    color: #4ade80;
    font-size: 1.25rem;
    margin-top: 0.15rem;
}

@media (max-width: 900px) {
    .neoxweb-site .visual-art-wrap:not(.visual-art-wrap--card):not(.visual-art-wrap--project) {
        max-height: 220px;
    }
}

/* Team roles — icon cards (About, Team, Home) */
.team-roles-section .section-header {
    margin-bottom: clamp(2rem, 4vw, 2.75rem);
}

.team-roles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .team-roles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.15rem;
    }
}

@media (min-width: 1024px) {
    .team-roles-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}

.team-roles-grid--compact {
    max-width: 960px;
    margin-inline: auto;
}

.team-role-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.35rem 1.25rem 1.4rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
}

.team-role-card:hover {
    border-color: rgba(74, 222, 128, 0.28);
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
}

.team-role-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(74, 222, 128, 0.12);
    border: 1px solid rgba(74, 222, 128, 0.22);
    color: #4ade80;
    font-size: 1.15rem;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.team-role-card h3 {
    font-family: var(--font-heading, 'Space Grotesk', sans-serif);
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.team-role-card p {
    font-size: 0.875rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.62);
    margin: 0;
}

.team-roles-cta {
    text-align: center;
    margin-top: clamp(2rem, 4vw, 2.5rem);
}

.team-roles-cta .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* About page — vertical timeline column */
.about-timeline-section {
    padding-top: clamp(3.5rem, 7vw, 5rem);
    padding-bottom: clamp(3.5rem, 7vw, 5rem);
}

.about-timeline-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2rem, 4vw, 3rem);
    max-width: min(680px, 100%);
    margin: clamp(1.5rem, 4vw, 3rem) auto 0;
    text-align: left;
}

.about-timeline-intro {
    text-align: left;
}

.about-timeline-intro .section-desc {
    margin-inline: 0;
    max-width: 36rem;
    color: rgba(255, 255, 255, 0.65);
}

.about-timeline-intro h2 {
    margin: 0.75rem 0 1rem;
    max-width: 22ch;
}

.about-timeline-column {
    position: relative;
    border-left: 2px solid rgba(74, 222, 128, 0.28);
    padding: 0.5rem 0 0 1.75rem;
    margin-left: 0.35rem;
}

.about-timeline-entry {
    position: relative;
    padding: 0 0 2rem;
    text-align: left;
}

.about-timeline-entry:last-child {
    padding-bottom: 0;
}

.about-timeline-entry::before {
    content: '';
    position: absolute;
    left: calc(-1.75rem - 6px);
    top: 0.4rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.12);
}

.about-timeline-year {
    display: inline-flex;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(74, 222, 128, 0.12);
    border: 1px solid rgba(74, 222, 128, 0.22);
    color: #4ade80;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 0.65rem;
}

.about-timeline-entry h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.45rem;
}

.about-timeline-entry p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.62);
    max-width: 38rem;
}

@media (min-width: 768px) {
    .about-timeline-layout {
        grid-template-columns: minmax(220px, 1fr) minmax(280px, 1.15fr);
        max-width: min(920px, 100%);
        align-items: start;
        gap: clamp(2.5rem, 5vw, 4rem);
    }

    .about-timeline-column {
        margin-top: 2.5rem;
    }
}

@media (max-width: 767px) {
    .neoxweb-site .pr-split__media {
        max-width: 100%;
        justify-self: stretch;
    }

    .neoxweb-site .visual-art-wrap--media,
    .neoxweb-site .pr-split__media .visual-art-wrap {
        max-height: min(220px, 52vw);
    }
}

/* Service page resource thumbs — cap blog visuals inside cards */
.neoxweb-site .ui-resource-card .thumb .visual-art-wrap--blog {
    max-height: 87px !important;
    aspect-ratio: unset !important;
    height: 100% !important;
}
