﻿/* =========================================================
   NEXROOT UI 2.0
   Phase 1A — Global Scale Foundation

   Purpose:
   - Normalize oversized typography
   - Reduce excessive vertical spacing
   - Improve card density
   - Preserve existing brand, structure and functionality
   ========================================================= */


/* ---------------------------------------------------------
   01. GLOBAL RHYTHM
   --------------------------------------------------------- */

.section {
    padding: 5.5rem 0;
}

.section-label {
    margin-bottom: 0.75rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.07em;
}

.section-title {
    max-width: 760px;
    margin-bottom: 1rem;
    font-size: clamp(1.9rem, 2.7vw, 2.65rem);
    line-height: 1.2;
}

.section-description {
    max-width: 680px;
    font-size: 1rem;
    line-height: 1.8;
}


/* ---------------------------------------------------------
   02. HOME HERO
   --------------------------------------------------------- */

.home-hero {
    min-height: min(780px, 92svh);
}

.hero-eyebrow {
    margin-bottom: 1.15rem;
    font-size: 0.82rem;
}

.hero-title {
    max-width: 900px;
    font-size: clamp(2.5rem, 4.25vw, 4.35rem);
    line-height: 1.04;
}

body.rtl .hero-title {
    line-height: 1.12;
}

.hero-description {
    max-width: 700px;
    margin-top: 1.5rem;
    font-size: clamp(1rem, 1.25vw, 1.15rem);
    line-height: 1.75;
}

body.rtl .hero-description {
    line-height: 1.9;
}

.hero-actions {
    margin-top: 1.75rem;
}

.hero-trust-row {
    margin-top: 2.25rem;
}


/* ---------------------------------------------------------
   03. HOME INTELLIGENCE CARD
   --------------------------------------------------------- */

.hero-intelligence-card {
    border-radius: 22px;
}

.hero-card-header {
    padding: 0.85rem 1.1rem;
    font-size: 0.8rem;
}

.hero-card-body {
    padding: 1.25rem;
}

.hero-metric strong {
    font-size: 1.9rem;
}

.hero-card-list {
    gap: 0.65rem;
}

.hero-card-list > div {
    gap: 0.7rem;
    padding: 0.7rem;
}

.hero-list-icon {
    width: 28px;
    height: 28px;
}


/* ---------------------------------------------------------
   04. STATISTICS
   --------------------------------------------------------- */

.statistic-item {
    min-height: 125px;
    padding: 1.75rem 1.25rem;
}

.statistic-value {
    font-size: clamp(1.8rem, 3vw, 2.75rem);
}

.statistic-title {
    margin-top: 0.6rem;
    font-size: 0.92rem;
}


/* ---------------------------------------------------------
   05. SERVICE CARDS
   --------------------------------------------------------- */

.service-card {
    min-height: 270px;
    padding: 1.5rem;
}

.service-card-top {
    margin-bottom: 3rem;
}

.service-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
}

.service-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    line-height: 1.35;
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.75;
}


/* ---------------------------------------------------------
   06. PRODUCT CARDS
   --------------------------------------------------------- */

.product-card {
    min-height: 320px;
    border-radius: 24px;
}

.product-card-content {
    padding: 1.75rem;
}

.product-badge {
    margin-bottom: 1rem;
    padding: 0.4rem 0.7rem;
    font-size: 0.72rem;
}

.product-card h3 {
    font-size: 1.65rem;
    line-height: 1.3;
}

.product-card p {
    font-size: 0.95rem;
    line-height: 1.75;
}

.product-card-visual {
    min-height: 240px;
}

.product-placeholder {
    width: 110px;
    height: 110px;
    border-radius: 28px;
    font-size: 3.25rem;
}


/* ---------------------------------------------------------
   07. INDUSTRIES
   --------------------------------------------------------- */

.industry-card {
    min-height: 110px;
    padding: 1rem 1.1rem;
}

.industry-icon {
    width: 38px;
    height: 38px;
}

.industry-name {
    font-size: 0.95rem;
}


/* ---------------------------------------------------------
   08. APPROACH
   --------------------------------------------------------- */

.approach-step {
    padding: 1.25rem 0;
    grid-template-columns: 60px 1fr;
}

.approach-step h3 {
    font-size: 1.2rem;
}

.approach-step p {
    font-size: 0.95rem;
    line-height: 1.7;
}


/* ---------------------------------------------------------
   09. CTA
   --------------------------------------------------------- */

.cta-card {
    padding: clamp(2rem, 4.5vw, 4rem);
    border-radius: 28px;
}

.cta-content h2 {
    font-size: clamp(2rem, 3.8vw, 3.65rem);
    line-height: 1.12;
}

.cta-content p {
    margin: 1rem 0 1.6rem;
    font-size: 1rem;
    line-height: 1.75;
}


/* ---------------------------------------------------------
   10. INNER PAGE HERO
   --------------------------------------------------------- */

.inner-hero,
.service-details-hero {
    padding: 9rem 0 4rem;
}

.inner-hero h1,
.service-details-hero h1 {
    max-width: 900px;
    margin-bottom: 1.15rem;
    font-size: clamp(2.25rem, 4vw, 4rem);
    line-height: 1.08;
}

body.rtl .inner-hero h1,
body.rtl .service-details-hero h1 {
    line-height: 1.15;
}

.inner-hero p,
.service-details-hero .lead {
    max-width: 700px;
    font-size: 1.05rem;
    line-height: 1.8;
}


/* ---------------------------------------------------------
   11. ABOUT HERO
   --------------------------------------------------------- */

.about-hero {
    padding: 9rem 0 4.25rem;
}

.about-hero h1 {
    max-width: 900px;
    font-size: clamp(2.5rem, 4.4vw, 4.5rem);
    line-height: 1.06;
}

html[dir="rtl"] .about-hero h1 {
    line-height: 1.14;
}

.about-hero-description {
    font-size: 1rem;
    line-height: 1.8;
}

.about-story-visual {
    min-height: 430px;
}


/* ---------------------------------------------------------
   12. TABLET
   --------------------------------------------------------- */

@media (max-width: 991.98px) {

    .section {
        padding: 4.5rem 0;
    }

    .hero-title {
        font-size: clamp(2.4rem, 7vw, 3.75rem);
    }

    .home-hero {
        min-height: auto;
        padding-top: 7.5rem;
    }

    .product-card {
        min-height: auto;
    }

    .about-hero {
        padding: 8rem 0 3.75rem;
    }
}


/* ---------------------------------------------------------
   13. MOBILE
   --------------------------------------------------------- */

@media (max-width: 575.98px) {

    .section {
        padding: 3.75rem 0;
    }

    .section-title {
        font-size: clamp(1.75rem, 8vw, 2.2rem);
    }

    .section-description {
        font-size: 0.95rem;
    }

    .home-hero {
        padding-top: 7rem;
        padding-bottom: 2.75rem;
    }

    .hero-title {
        font-size: clamp(2.15rem, 10vw, 3rem);
        line-height: 1.1;
    }

    body.rtl .hero-title {
        line-height: 1.18;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .hero-trust-row {
        margin-top: 1.6rem;
    }

    .statistic-item {
        min-height: 110px;
        padding: 1.4rem 0.75rem;
    }

    .service-card {
        min-height: 240px;
        padding: 1.25rem;
    }

    .service-card-top {
        margin-bottom: 2.25rem;
    }

    .product-card-content {
        padding: 1.4rem;
    }

    .industry-card {
        min-height: 96px;
    }

    .inner-hero,
    .service-details-hero {
        padding: 7.5rem 0 3rem;
    }

    .inner-hero h1,
    .service-details-hero h1 {
        font-size: clamp(2rem, 9vw, 2.8rem);
    }

    .about-hero {
        padding: 7.5rem 0 3.25rem;
    }

    .about-hero h1 {
        font-size: clamp(2.15rem, 10vw, 3rem);
    }

    .about-story-visual {
        min-height: 360px;
    }

    .cta-card {
        border-radius: 22px;
    }

    .cta-content h2 {
        font-size: clamp(1.9rem, 9vw, 2.7rem);
    }
}

/* =========================================================
   NEXROOT UI 2.0
   Phase 1B — Home Density & Proportion
   ========================================================= */


/* ---------------------------------------------------------
   HOME PAGE SAFETY
   --------------------------------------------------------- */

.home-hero,
.statistics-strip,
.services-section,
.products-section,
.industries-section,
.approach-section,
.home-insights,
.cta-section {
    max-width: 100%;
}


/* ---------------------------------------------------------
   HERO — REDUCE EXCESSIVE VERTICAL SPACE
   --------------------------------------------------------- */

.home-hero {
    min-height: min(720px, 86svh);
}

.home-hero-content {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.hero-title {
    font-size: clamp(2.5rem, 4vw, 4.05rem);
}

.hero-description {
    margin-top: 1.25rem;
}

.hero-actions {
    margin-top: 1.5rem;
}

.hero-trust-row {
    margin-top: 1.75rem;
}


/* ---------------------------------------------------------
   STATISTICS — COMPACT SUPPORTING STRIP
   --------------------------------------------------------- */

.statistic-item {
    min-height: 108px;
    padding: 1.35rem 1rem;
}

.statistic-value {
    font-size: clamp(1.75rem, 2.6vw, 2.45rem);
}

.statistic-title {
    margin-top: 0.4rem;
    font-size: 0.86rem;
}


/* ---------------------------------------------------------
   HOME SECTION HEADERS
   --------------------------------------------------------- */

.services-section .section-heading-row,
.products-section .section-heading-row {
    margin-bottom: 2rem;
}

.home-card-grid {
    margin-top: 0;
}


/* ---------------------------------------------------------
   SERVICES — CONTROL DENSITY
   --------------------------------------------------------- */

.services-section .service-card {
    min-height: 250px;
    padding: 1.4rem;
}

.services-section .service-card-top {
    margin-bottom: 2.25rem;
}

.services-section .service-card h3 {
    font-size: 1.18rem;
}

.services-section .service-card p {
    font-size: 0.93rem;
    line-height: 1.7;
}


/* ---------------------------------------------------------
   PRODUCTS — REMOVE OVERSIZED EMPTY SPACE
   --------------------------------------------------------- */

.products-section .product-card {
    min-height: 270px;
}

.products-section .product-card-content {
    padding: 1.5rem;
}

.products-section .product-card h3 {
    font-size: 1.45rem;
}

.products-section .product-card p {
    font-size: 0.93rem;
    line-height: 1.7;
}

.products-section .product-card-visual {
    min-height: 190px;
}

.products-section .product-placeholder {
    width: 96px;
    height: 96px;
    border-radius: 24px;
}

.products-section .product-placeholder img {
    width: 56px;
    height: 56px;
}


/* ---------------------------------------------------------
   INDUSTRIES — REMOVE UNNECESSARY SECTION DEPTH
   --------------------------------------------------------- */

.industries-section {
    padding-top: 5rem;
    padding-bottom: 4.5rem;
}

.industries-section .row.mb-5 {
    margin-bottom: 2.25rem !important;
}

.industries-grid {
    gap: 0.85rem;
}

.industries-section .industry-card {
    min-height: 94px;
    padding: 0.9rem 1rem;
}


/* ---------------------------------------------------------
   APPROACH — STRONGER COMPOSITION
   --------------------------------------------------------- */

.approach-section {
    padding-top: 4.75rem;
    padding-bottom: 4.75rem;
}

.approach-section > .container > .row {
    align-items: start !important;
}

.approach-section .section-title {
    margin-bottom: 0.85rem;
}

.approach-section .section-description {
    max-width: 480px;
}

.approach-link {
    margin-top: 1.15rem;
}

.approach-steps {
    border-top: 1px solid var(--nx-border);
}

.approach-step {
    min-height: auto;
    padding: 1.15rem 0;
    grid-template-columns: 52px 1fr;
}

.approach-step h3 {
    margin-bottom: 0.25rem;
    font-size: 1.05rem;
}

.approach-step p {
    margin-bottom: 0;
    font-size: 0.9rem;
    line-height: 1.65;
}


/* ---------------------------------------------------------
   INSIGHTS
   --------------------------------------------------------- */

.home-insights .section-heading {
    margin-bottom: 2rem;
}

.home-insights .section-heading h2 {
    font-size: clamp(1.9rem, 3vw, 2.75rem);
}


/* ---------------------------------------------------------
   DESKTOP
   --------------------------------------------------------- */

@media (min-width: 992px) {

    .services-section,
    .products-section {
        padding-top: 5.25rem;
        padding-bottom: 5.25rem;
    }

    .approach-section .col-lg-5 {
        padding-inline-end: 3rem;
    }

    .approach-section .col-lg-7 {
        padding-inline-start: 2rem;
    }
}


/* ---------------------------------------------------------
   TABLET
   --------------------------------------------------------- */

@media (max-width: 991.98px) {

    .home-hero {
        min-height: auto;
        padding-top: 7rem;
        padding-bottom: 3.5rem;
    }

    .services-section .service-card,
    .products-section .product-card {
        min-height: auto;
    }

    .products-section .product-card-visual {
        min-height: 180px;
    }

    .industries-section,
    .approach-section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 575.98px) {

    .home-hero {
        padding-top: 6.5rem;
        padding-bottom: 2.5rem;
    }

    .hero-title {
        font-size: clamp(2.05rem, 9.5vw, 2.8rem);
    }

    .statistic-item {
        min-height: 96px;
        padding: 1.15rem 0.65rem;
    }

    .services-section .service-card {
        min-height: auto;
    }

    .services-section .service-card-top {
        margin-bottom: 1.75rem;
    }

    .products-section .product-card {
        min-height: auto;
    }

    .products-section .product-card-visual {
        min-height: 155px;
    }

    .industries-section .industry-card {
        min-height: 86px;
    }

    .approach-step {
        grid-template-columns: 44px 1fr;
        padding: 1rem 0;
    }
}

/* =========================================================
   NEXROOT UI 2.0
   Phase 2B — About Page Refinement
   Scope: About only
   ========================================================= */


/* ---------------------------------------------------------
   ABOUT HERO
   --------------------------------------------------------- */

.about-hero {
    padding: 8.25rem 0 4rem;
}

.about-hero h1 {
    max-width: 860px;
    font-size: clamp(2.65rem, 4vw, 4.15rem);
    line-height: 1.08;
}

html[dir="rtl"] .about-hero h1 {
    line-height: 1.16;
}

.about-hero-description {
    max-width: 470px;
    font-size: 0.98rem;
    line-height: 1.8;
}


/* ---------------------------------------------------------
   STORY
   --------------------------------------------------------- */

.about-story-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.about-story-visual {
    min-height: 390px;
    border-radius: 24px;
}

.root-core {
    width: 126px;
    height: 126px;
    border-radius: 32px;
}

.root-core img {
    width: 66px;
    height: 66px;
}

.root-orbit-one {
    width: 250px;
    height: 250px;
}

.root-orbit-two {
    width: 360px;
    height: 360px;
}

.root-label {
    padding: 0.45rem 0.72rem;
    font-size: 0.74rem;
}

.about-story-section .section-title {
    max-width: 780px;
    font-size: clamp(1.9rem, 3vw, 2.75rem);
    line-height: 1.3;
}

.about-rich-text {
    max-width: 760px;
    font-size: 0.98rem;
    line-height: 1.85;
}

.about-rich-text p + p {
    margin-top: 1rem;
}


/* ---------------------------------------------------------
   VISION + MISSION
   --------------------------------------------------------- */

.purpose-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.purpose-grid {
    gap: 1.15rem;
}

.purpose-card {
    min-height: 310px;
    padding: 2rem;
    border-radius: 22px;
}

.purpose-number {
    top: 1.25rem;
    inset-inline-end: 1.4rem;
    font-size: 3rem;
    opacity: 0.75;
}

.purpose-card h2 {
    max-width: 650px;
    margin-top: 2rem;
    font-size: clamp(1.65rem, 2.5vw, 2.3rem);
    line-height: 1.35;
}

.purpose-card p {
    max-width: 620px;
    margin-top: 1rem;
    font-size: 0.94rem;
    line-height: 1.75;
}


/* ---------------------------------------------------------
   VALUES
   --------------------------------------------------------- */

.values-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.values-section .row.mb-5 {
    margin-bottom: 2.25rem !important;
}

.values-section .section-title {
    max-width: 760px;
    font-size: clamp(1.9rem, 3vw, 2.75rem);
    line-height: 1.3;
}

.values-section .section-description {
    max-width: 430px;
    font-size: 0.94rem;
    line-height: 1.75;
}

.values-grid {
    gap: 1rem;
}

.value-card {
    min-height: 190px;
    padding: 1.35rem;
    border-radius: 16px;
}

.value-card > span {
    font-size: 0.75rem;
}

.value-card h3 {
    margin: 1.5rem 0 0.6rem;
    font-size: 1.18rem;
    line-height: 1.4;
}

.value-card p {
    font-size: 0.9rem;
    line-height: 1.7;
}


/* ---------------------------------------------------------
   WHY NEXROOT / APPROACH
   --------------------------------------------------------- */

.why-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.why-panel {
    padding: clamp(2rem, 4vw, 3.5rem);
    border-radius: 26px;
}

.why-panel .col-lg-5 > h2 {
    max-width: 440px;
    font-size: clamp(1.9rem, 3vw, 2.65rem);
    line-height: 1.3;
}

.why-panel .col-lg-5 > p {
    max-width: 440px;
    font-size: 0.94rem;
    line-height: 1.75;
}

.why-list article {
    padding-top: 1.15rem;
    padding-bottom: 1.15rem;
}

.why-list article > span {
    font-size: 0.76rem;
}

.why-list h3 {
    margin-bottom: 0.3rem;
    font-size: 1.05rem;
    line-height: 1.4;
}

.why-list p {
    margin-bottom: 0;
    font-size: 0.9rem;
    line-height: 1.65;
}


/* ---------------------------------------------------------
   DESKTOP COMPOSITION
   --------------------------------------------------------- */

@media (min-width: 992px) {

    .about-story-section .col-lg-5 {
        padding-inline-end: 2rem;
    }

    .about-story-section .col-lg-7 {
        padding-inline-start: 2.5rem;
    }

    .why-panel .col-lg-5 {
        padding-inline-end: 2.5rem;
    }

    .why-panel .col-lg-7 {
        padding-inline-start: 2.5rem;
    }
}


/* ---------------------------------------------------------
   TABLET
   --------------------------------------------------------- */

@media (max-width: 991.98px) {

    .about-hero {
        padding: 7.5rem 0 3.5rem;
    }

    .about-story-section,
    .purpose-section,
    .values-section,
    .why-section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .about-story-visual {
        min-height: 380px;
    }

    .purpose-card {
        min-height: auto;
    }

    .why-panel {
        padding: 2rem;
    }
}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 575.98px) {

    .about-hero {
        padding: 6.75rem 0 2.75rem;
    }

    .about-hero h1 {
        font-size: clamp(2.05rem, 9.5vw, 2.75rem);
        line-height: 1.18;
    }

    .about-hero-description {
        font-size: 0.94rem;
        line-height: 1.75;
    }

    .about-story-section,
    .purpose-section,
    .values-section,
    .why-section {
        padding-top: 3.25rem;
        padding-bottom: 3.25rem;
    }

    .about-story-visual {
        min-height: 330px;
    }

    .root-core {
        width: 108px;
        height: 108px;
    }

    .root-core img {
        width: 56px;
        height: 56px;
    }

    .root-orbit-one {
        width: 215px;
        height: 215px;
    }

    .root-orbit-two {
        width: 300px;
        height: 300px;
    }

    .purpose-card {
        min-height: auto;
        padding: 1.5rem;
    }

    .purpose-number {
        font-size: 2.4rem;
    }

    .purpose-card h2 {
        margin-top: 1.75rem;
        font-size: 1.65rem;
    }

    .value-card {
        min-height: auto;
    }

    .why-panel {
        padding: 1.5rem;
        border-radius: 20px;
    }
}

/* =========================================================
   NEXROOT UI 2.0
   Phase 2C — About Final Polish
   ========================================================= */


/* HERO */

.about-hero h1 {
    max-width: 820px;
    font-size: clamp(2.5rem, 3.65vw, 3.8rem);
}


/* STORY */

.about-story-section {
    padding-top: 4.5rem;
    padding-bottom: 4.25rem;
}

    .about-story-section .section-title {
        max-width: 720px;
        font-size: clamp(1.8rem, 2.65vw, 2.45rem);
    }


/* VISION + MISSION */

.purpose-section {
    padding-top: 4.25rem;
    padding-bottom: 4.25rem;
}

.purpose-card {
    min-height: 275px;
    padding: 1.75rem 2rem;
}

    .purpose-card h2 {
        max-width: 620px;
        margin-top: 1.75rem;
        font-size: clamp(1.55rem, 2.2vw, 2.05rem);
        line-height: 1.4;
    }

    .purpose-card p {
        margin-top: 0.8rem;
    }


/* VALUES */

.values-section {
    padding-top: 4.25rem;
    padding-bottom: 4.5rem;
}

    .values-section .row.mb-5 {
        margin-bottom: 1.75rem !important;
    }

    .values-section .section-title {
        font-size: clamp(1.8rem, 2.65vw, 2.45rem);
    }

.value-card {
    min-height: 165px;
    padding: 1.2rem 1.3rem;
}

    .value-card h3 {
        margin: 1.1rem 0 0.5rem;
        font-size: 1.12rem;
    }

    .value-card p {
        font-size: 0.88rem;
        line-height: 1.65;
    }


/* WHY NEXROOT */

.why-section {
    padding-top: 4.25rem;
    padding-bottom: 4.75rem;
}

.why-panel {
    padding: clamp(1.75rem, 3.5vw, 3rem);
}

    .why-panel .col-lg-5 > h2 {
        font-size: clamp(1.8rem, 2.65vw, 2.4rem);
    }


/* MOBILE */

@media (max-width: 575.98px) {

    .about-hero h1 {
        font-size: clamp(2rem, 9vw, 2.6rem);
    }

    .purpose-card,
    .value-card {
        min-height: auto;
    }

    .about-story-section,
    .purpose-section,
    .values-section,
    .why-section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

/* =========================================================
   NEXROOT UI 2.0
   Phase 3B — Services Index Refinement
   ========================================================= */


/* ---------------------------------------------------------
   SERVICES HERO
   --------------------------------------------------------- */

body:has(.inner-hero + .section) .inner-hero {
    padding-top: 8.5rem;
    padding-bottom: 3.5rem;
}

    body:has(.inner-hero + .section) .inner-hero h1 {
        max-width: 820px;
        font-size: clamp(2.35rem, 3.6vw, 3.65rem);
        line-height: 1.12;
    }

body.rtl:has(.inner-hero + .section) .inner-hero h1 {
    line-height: 1.22;
}

body:has(.inner-hero + .section) .inner-hero p {
    max-width: 680px;
    margin-bottom: 0;
    font-size: 1rem;
    line-height: 1.8;
}


/* ---------------------------------------------------------
   SERVICES GRID
   --------------------------------------------------------- */

.inner-hero + .section {
    padding-top: 4rem;
    padding-bottom: 5rem;
}

    .inner-hero + .section .row {
        --bs-gutter-x: 1.25rem;
        --bs-gutter-y: 1.25rem;
    }


    /* ---------------------------------------------------------
   SERVICE CARD
   --------------------------------------------------------- */

    .inner-hero + .section .service-card {
        min-height: 250px;
        padding: 1.4rem;
        border-radius: 18px;
    }

    .inner-hero + .section .service-card-top {
        margin-bottom: 2rem;
    }


    /* The Services Index uses H2, not H3 */

    .inner-hero + .section .service-card h2 {
        position: relative;
        z-index: 2;
        margin: 0 0 0.65rem;
        font-size: 1.16rem;
        font-weight: 700;
        line-height: 1.45;
    }

body.rtl .inner-hero + .section .service-card h2 {
    line-height: 1.6;
}

.inner-hero + .section .service-card p {
    max-width: 100%;
    margin: 0;
    font-size: 0.91rem;
    line-height: 1.7;
}


/* ---------------------------------------------------------
   SERVICE ICON
   Keep branded SVG proportions intact
   --------------------------------------------------------- */

.inner-hero + .section .service-icon,
.inner-hero + .section .service-icon img,
.inner-hero + .section .service-icon > svg {
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
    max-width: 56px;
    max-height: 56px;
}

.inner-hero + .section .service-icon {
    flex: 0 0 56px;
}


/* ---------------------------------------------------------
   ARROW
   --------------------------------------------------------- */

.inner-hero + .section .service-arrow {
    font-size: 1.1rem;
    opacity: 0.8;
}


/* ---------------------------------------------------------
   INTERACTION
   Reduce excessive movement
   --------------------------------------------------------- */

.inner-hero + .section .service-card:hover {
    transform: translateY(-4px);
}


/* ---------------------------------------------------------
   TABLET
   --------------------------------------------------------- */

@media (max-width: 991.98px) {

    body:has(.inner-hero + .section) .inner-hero {
        padding-top: 7.5rem;
        padding-bottom: 3rem;
    }

    .inner-hero + .section {
        padding-top: 3.5rem;
        padding-bottom: 4rem;
    }

        .inner-hero + .section .service-card {
            min-height: 235px;
        }
}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 575.98px) {

    body:has(.inner-hero + .section) .inner-hero {
        padding-top: 7rem;
        padding-bottom: 2.5rem;
    }

        body:has(.inner-hero + .section) .inner-hero h1 {
            font-size: clamp(2rem, 9vw, 2.6rem);
        }

        body:has(.inner-hero + .section) .inner-hero p {
            font-size: 0.95rem;
        }

    .inner-hero + .section {
        padding-top: 2.75rem;
        padding-bottom: 3.5rem;
    }

        .inner-hero + .section .service-card {
            min-height: auto;
            padding: 1.25rem;
        }

        .inner-hero + .section .service-card-top {
            margin-bottom: 1.5rem;
        }

        .inner-hero + .section .service-card h2 {
            font-size: 1.1rem;
        }

        .inner-hero + .section .service-card p {
            font-size: 0.9rem;
        }

        .inner-hero + .section .service-icon,
        .inner-hero + .section .service-icon img,
        .inner-hero + .section .service-icon > svg {
            width: 52px;
            height: 52px;
            min-width: 52px;
            min-height: 52px;
            max-width: 52px;
            max-height: 52px;
        }

        .inner-hero + .section .service-icon {
            flex-basis: 52px;
        }
}

/* =========================================================
   NEXROOT UI 2.0
   Phase 3C — Services Final Polish
   ========================================================= */

/* Tighter, more executive Services hero */
body:has(.inner-hero + .section) .inner-hero {
    padding-top: 8rem;
    padding-bottom: 3.15rem;
}

    body:has(.inner-hero + .section) .inner-hero h1 {
        max-width: 760px;
        font-size: clamp(2.25rem, 3.25vw, 3.35rem);
        line-height: 1.14;
    }

body.rtl:has(.inner-hero + .section) .inner-hero h1 {
    line-height: 1.2;
}

/* Slightly improve card hierarchy */
.inner-hero + .section .service-card h2 {
    font-size: 1.18rem;
    font-weight: 700;
}

/* Make navigation cue more intentional */
.inner-hero + .section .service-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-size: 1rem;
    opacity: 0.72;
    transition: opacity 180ms ease, transform 180ms ease;
}

.inner-hero + .section .service-card:hover .service-arrow {
    opacity: 1;
    transform: translate(2px, -2px);
}

body.rtl .inner-hero + .section .service-card:hover .service-arrow {
    transform: translate(-2px, -2px);
}

/* Keep the grid visually compact */
.inner-hero + .section {
    padding-top: 3.75rem;
}


/* Mobile */
@media (max-width: 575.98px) {

    body:has(.inner-hero + .section) .inner-hero {
        padding-top: 6.75rem;
        padding-bottom: 2.35rem;
    }

        body:has(.inner-hero + .section) .inner-hero h1 {
            max-width: 100%;
            font-size: clamp(1.95rem, 9vw, 2.5rem);
        }

    .inner-hero + .section {
        padding-top: 2.5rem;
    }
}

/* =========================================================
   NEXROOT UI 2.0
   Phase 4B — Products Index Refinement
   Scope: Products Index only through product-list-grid
   ========================================================= */


/* ---------------------------------------------------------
   PRODUCTS HERO
   The Products Index structure is:
   .inner-hero + .section > .container > .product-list-grid
   --------------------------------------------------------- */

body:has(.product-list-grid) .inner-hero {
    padding-top: 8rem;
    padding-bottom: 3.15rem;
}

    body:has(.product-list-grid) .inner-hero h1 {
        max-width: 760px;
        margin-bottom: 1rem;
        font-size: clamp(2.25rem, 3.25vw, 3.35rem);
        line-height: 1.14;
    }

body.rtl:has(.product-list-grid) .inner-hero h1 {
    line-height: 1.2;
}

body:has(.product-list-grid) .inner-hero p {
    max-width: 680px;
    margin-bottom: 0;
    font-size: 1rem;
    line-height: 1.8;
}


/* ---------------------------------------------------------
   PRODUCTS SECTION
   Reduce excessive vertical depth
   --------------------------------------------------------- */

body:has(.product-list-grid) .inner-hero + .section {
    padding-top: 3.75rem;
    padding-bottom: 5rem;
}

.product-list-grid {
    gap: 1.25rem;
}


    /* ---------------------------------------------------------
   PRODUCT SHOWCASE CARD
   Original:
   min-height: 400px
   radius: 28px

   Refined:
   more compact enterprise presentation
   --------------------------------------------------------- */

    .product-list-grid .product-showcase-card {
        min-height: 310px;
        grid-template-columns: 1.08fr 0.92fr;
        border-radius: 20px;
        transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
    }

        .product-list-grid .product-showcase-card:hover {
            transform: translateY(-3px);
        }


    /* ---------------------------------------------------------
   PRODUCT CONTENT
   Original padding could reach 4rem
   --------------------------------------------------------- */

    .product-list-grid .product-showcase-content {
        padding: clamp(1.75rem, 3vw, 2.75rem);
    }


    /* ---------------------------------------------------------
   PRODUCT BADGE
   --------------------------------------------------------- */

    .product-list-grid .product-badge {
        margin-bottom: 0.85rem;
        padding: 0.38rem 0.68rem;
        font-size: 0.72rem;
        line-height: 1.2;
    }


    /* ---------------------------------------------------------
   PRODUCT TITLE
   Original could reach 3.6rem — visually oversized
   --------------------------------------------------------- */

    .product-list-grid .product-showcase-content h2 {
        max-width: 620px;
        margin: 0 0 0.75rem;
        font-size: clamp(1.65rem, 2.4vw, 2.35rem);
        font-weight: 700;
        line-height: 1.2;
    }

body.rtl .product-list-grid .product-showcase-content h2 {
    line-height: 1.35;
}


/* ---------------------------------------------------------
   PRODUCT DESCRIPTION
   --------------------------------------------------------- */

.product-list-grid .product-showcase-content p {
    max-width: 600px;
    margin: 0 0 1.15rem;
    font-size: 0.95rem;
    line-height: 1.75;
}


/* ---------------------------------------------------------
   PRODUCT LINK
   --------------------------------------------------------- */

.product-list-grid .product-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.92rem;
    line-height: 1.4;
    transition: opacity 180ms ease, transform 180ms ease;
}

    .product-list-grid .product-link:hover {
        transform: translateX(3px);
    }

body.rtl .product-list-grid .product-link:hover {
    transform: translateX(-3px);
}


/* ---------------------------------------------------------
   PRODUCT VISUAL
   Original min-height: 360px
   --------------------------------------------------------- */

.product-list-grid .product-showcase-visual {
    min-height: 310px;
}


    /* Keep actual product artwork contained and predictable */
    .product-list-grid .product-showcase-visual img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }


/* ---------------------------------------------------------
   PLACEHOLDER
   --------------------------------------------------------- */

.product-list-grid .product-placeholder {
    width: 104px;
    height: 104px;
    border-radius: 26px;
    font-size: 3rem;
}


/* ---------------------------------------------------------
   TABLET
   --------------------------------------------------------- */

@media (max-width: 991.98px) {

    body:has(.product-list-grid) .inner-hero {
        padding-top: 7.5rem;
        padding-bottom: 3rem;
    }

        body:has(.product-list-grid) .inner-hero + .section {
            padding-top: 3.25rem;
            padding-bottom: 4rem;
        }

    .product-list-grid .product-showcase-card {
        min-height: auto;
        grid-template-columns: 1fr;
    }

    .product-list-grid .product-showcase-visual {
        min-height: 240px;
        order: -1;
    }

    .product-list-grid .product-showcase-content {
        padding: 2rem;
    }

        .product-list-grid .product-showcase-content h2 {
            font-size: clamp(1.65rem, 4vw, 2.15rem);
        }
}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 575.98px) {

    body:has(.product-list-grid) .inner-hero {
        padding-top: 6.75rem;
        padding-bottom: 2.35rem;
    }

        body:has(.product-list-grid) .inner-hero h1 {
            max-width: 100%;
            font-size: clamp(1.95rem, 9vw, 2.5rem);
        }

        body:has(.product-list-grid) .inner-hero p {
            font-size: 0.95rem;
        }

        body:has(.product-list-grid) .inner-hero + .section {
            padding-top: 2.5rem;
            padding-bottom: 3.5rem;
        }

    .product-list-grid {
        gap: 1rem;
    }

        .product-list-grid .product-showcase-card {
            border-radius: 18px;
        }

        .product-list-grid .product-showcase-visual {
            min-height: 200px;
        }

        .product-list-grid .product-showcase-content {
            padding: 1.4rem;
        }

            .product-list-grid .product-showcase-content h2 {
                margin-bottom: 0.65rem;
                font-size: 1.55rem;
                line-height: 1.3;
            }

    body.rtl .product-list-grid .product-showcase-content h2 {
        line-height: 1.45;
    }

    .product-list-grid .product-showcase-content p {
        margin-bottom: 1rem;
        font-size: 0.9rem;
        line-height: 1.7;
    }

    .product-list-grid .product-placeholder {
        width: 88px;
        height: 88px;
        border-radius: 22px;
        font-size: 2.5rem;
    }
}