/* =====================================================
   home.css — RapiX Solutions Home Page Bundle
   All home-page section styles consolidated per RULE 29.
   Loaded only on the Home Page template via enqueue.php.
   ===================================================== */

/* =====================================================
   Hero Section — RapiX Solutions
   All values use CSS custom properties only.
   ===================================================== */

/* ---- Section shell ---- */

.hero {
    position: relative;
    background-color: var(--color-white);
    overflow: hidden;
}

/* ---- Two-column grid ---- */
/* Hero is the only section that uses var(--space-16) for padding-top instead
   of var(--section-py) — it sits directly under the fixed header so it gets
   a reduced top padding to avoid double-spacing. See RULE 14. */

.hero__inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: var(--space-16);
    padding-top: var(--space-16);
    padding-bottom: var(--section-py);
}

/* ---- Content side ---- */

.hero__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-6);
}

.hero__label {
    margin-bottom: 0;
}

.hero__heading {
    font-family: var(--font-heading);
    font-weight: var(--fw-extrabold);
    font-size: var(--text-hero);
    line-height: var(--leading-heading);
    color: var(--color-text);
    letter-spacing: -0.02em;
}

.hero__sub {
    font-family: var(--font-body);
    font-size: var(--text-body-lg);
    line-height: var(--leading-body);
    color: var(--color-muted);
    max-width: 52ch;
}

/* ---- CTA buttons row ---- */

.hero__actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex-wrap: wrap;
    margin-top: var(--space-2);
}

/* ---- Trust badge ---- */

.hero__trust {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: var(--fw-medium);
    color: var(--color-muted);
    margin-top: var(--space-2);
}

.hero__trust svg {
    color: #F59E0B;
    flex-shrink: 0;
}

/* ---- Visual side ---- */

.hero__visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Uploaded image */
.hero__image {
    width: 100%;
    max-width: 560px;
    height: auto;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    object-fit: cover;
}

/* ---- SVG Illustration ---- */

.hero__illustration {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.hero__svg {
    width: 100%;
    height: auto;
    color: var(--color-primary);
    animation: hero-rotate 40s linear infinite;
    transform-origin: center;
}

@keyframes hero-rotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ---- Floating badge cards ---- */

.hero__badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-2) var(--space-4);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: var(--fw-semibold);
    color: var(--color-text);
    box-shadow: var(--shadow-md);
    white-space: nowrap;
    animation: hero-float var(--float-duration, 4s) ease-in-out infinite alternate;
}

.hero__badge--tl {
    top: 8%;
    left: -2%;
    --float-duration: 4s;
}

.hero__badge--br {
    bottom: 14%;
    right: -4%;
    --float-duration: 5s;
    animation-delay: 0.8s;
}

.hero__badge--bl {
    bottom: 6%;
    left: 2%;
    --float-duration: 3.5s;
    animation-delay: 1.5s;
}

.hero__badge-icon {
    font-size: 1rem;
    line-height: 1;
}

@keyframes hero-float {
    from { transform: translateY(0); }
    to   { transform: translateY(-8px); }
}

/* ---- Bottom wave ---- */

.hero__wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    line-height: 0;
}

.hero__wave svg {
    width: 100%;
    height: 60px;
    display: block;
}

/* =====================================================
   Responsive — Tablet ≤ 1024px
   ===================================================== */

@media (max-width: 1024px) {
    .hero__inner {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-10);
    }

    .hero__badge--br { right: 0; }
    .hero__badge--tl { left: 0; }
}

/* =====================================================
   Responsive — Large mobile ≤ 768px
   ===================================================== */

@media (max-width: 768px) {
    .hero__inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-12);
        /* padding-top/bottom inherited from base — uses var(--space-16) + var(--section-py)
           which auto-scales on mobile via :root overrides in global.css */
    }

    .hero__content {
        align-items: center;
        order: 1;
    }

    .hero__visual {
        order: 2;
        max-width: 380px;
        margin: 0 auto;
    }

    .hero__sub {
        max-width: 48ch;
        margin: 0 auto;
    }

    .hero__actions {
        justify-content: center;
    }

    .hero__trust {
        justify-content: center;
    }

    .rs-section-label.hero__label::before {
        display: none;
    }
}

/* =====================================================
   Responsive — Small mobile ≤ 640px
   ===================================================== */

@media (max-width: 640px) {
    .hero__actions {
        flex-direction: column;
        width: 100%;
    }

    .hero__actions .btn {
        width: 100%;
        justify-content: center;
    }

    .hero__illustration {
        max-width: 280px;
    }

    .hero__badge {
        font-size: var(--text-xs);
        padding: var(--space-1) var(--space-3);
    }

    .hero__badge--tl { top: 4%; left: 0; }
    .hero__badge--br { bottom: 10%; right: 0; }
    .hero__badge--bl { display: none; }
}
/* =====================================================
   Trust Strip — RapiX Solutions
   Sits immediately below the hero. Carries the trust
   statement + 3–4 outcome metrics. Replaces the old
   standalone Stats section (which was dropped — see
   PLAN.md Section H rationale).
   All values use CSS custom properties only.
   ===================================================== */

.trust-strip {
    background-color: var(--color-bg);
    padding-top: var(--section-py-sm);
    padding-bottom: var(--section-py-sm);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.trust-strip__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-8);
}

/* ---- Trust statement (text above metrics) ---- */

.trust-strip__text {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: var(--fw-semibold);
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    text-align: center;
    margin: 0;
}

/* ---- Metrics row ---- */

.trust-strip__metrics {
    display: grid;
    grid-template-columns: repeat( 4, 1fr );
    gap: var(--space-6);
    width: 100%;
    max-width: 920px;
}

.trust-strip__metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-1);
    position: relative;
    padding: 0 var(--space-4);
}

/* Subtle vertical dividers between metrics (desktop) */
.trust-strip__metric + .trust-strip__metric::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 1px;
    height: 36px;
    background-color: var(--color-border);
}

.trust-strip__metric-value {
    font-family: var(--font-heading);
    font-weight: var(--fw-extrabold);
    font-size: var(--text-h3);
    color: var(--color-primary);
    letter-spacing: -0.01em;
    line-height: 1;
    white-space: nowrap;
}

.trust-strip__metric-label {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: var(--fw-medium);
    color: var(--color-muted);
    line-height: var(--leading-snug);
}

/* =====================================================
   Responsive — Tablet ≤ 1024px
   ===================================================== */

@media (max-width: 1024px) {
    .trust-strip__metrics {
        grid-template-columns: repeat( 2, 1fr );
        gap: var(--space-8) var(--space-4);
        max-width: 520px;
    }

    /* Reset all dividers, then re-add only between adjacent cells in same row */
    .trust-strip__metric + .trust-strip__metric::before {
        display: none;
    }
    .trust-strip__metric:nth-child(2)::before,
    .trust-strip__metric:nth-child(4)::before {
        content: '';
        display: block;
        position: absolute;
        top: 50%;
        left: 0;
        transform: translateY(-50%);
        width: 1px;
        height: 36px;
        background-color: var(--color-border);
    }
}

/* =====================================================
   Responsive — Small mobile ≤ 640px
   ===================================================== */

@media (max-width: 640px) {
    .trust-strip__inner {
        gap: var(--space-6);
    }

    .trust-strip__metric-value {
        font-size: var(--text-h4);
    }

    .trust-strip__metric-label {
        font-size: var(--text-xs);
    }
}
/* =====================================================
   Services Section — RapiX Solutions
   All values use CSS custom properties only.
   ===================================================== */

/* ---- 3-column card grid ---- */

.services__grid {
    display: grid;
    grid-template-columns: repeat( 3, 1fr );
    gap: var(--space-6);
}

/* ---- Service card ---- */

.service-card {
    position: relative;
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    text-decoration: none;
    color: inherit;
    transition:
        transform    var(--ease-slow),
        box-shadow   var(--ease-slow),
        border-color var(--ease-slow);
}

.service-card--linked {
    cursor: pointer;
}

.service-card:hover {
    transform: translateY( -6px );
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.service-card:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
}

/* ---- Icon box (bigger + premium tint) ---- */

.service-card__icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    background-color: rgba( 236, 67, 12, 0.08 ); /* primary @ 8% */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    flex-shrink: 0;
    margin-bottom: var(--space-3);
    transition:
        background-color var(--ease-slow),
        color            var(--ease-slow),
        transform        var(--ease-slow);
}

.service-card__icon svg {
    width: 30px;
    height: 30px;
}

.service-card:hover .service-card__icon {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: scale( 1.05 );
}

/* ---- Title ---- */

.service-card__title {
    font-family: var(--font-heading);
    font-weight: var(--fw-bold);
    font-size: var(--text-h4);
    color: var(--color-text);
    line-height: var(--leading-snug);
}

/* ---- Description ---- */

.service-card__desc {
    font-family: var(--font-body);
    font-size: var(--text-body);
    line-height: var(--leading-body);
    color: var(--color-muted);
    flex: 1;
}

/* ---- "Learn more" link (proper link, not decorative arrow) ---- */

.service-card__link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-2);
    font-family: var(--font-body);
    font-weight: var(--fw-semibold);
    font-size: var(--text-sm);
    color: var(--color-primary);
    letter-spacing: 0.01em;
    transition: gap var(--ease-slow);
}

.service-card__link svg {
    width: 16px;
    height: 16px;
    transition: transform var(--ease-slow);
}

.service-card:hover .service-card__link svg {
    transform: translateX( 4px );
}

/* ---- Section-end CTA ---- */

.services__cta {
    margin-top: var(--space-12);
    display: flex;
    justify-content: center;
}

/* =====================================================
   Responsive — Tablet ≤ 1024px
   ===================================================== */

@media ( max-width: 1024px ) {
    .services__grid {
        grid-template-columns: repeat( 2, 1fr );
        gap: var(--space-5);
    }
}

/* =====================================================
   Responsive — Large mobile ≤ 768px
   ===================================================== */

@media ( max-width: 768px ) {
    .services__grid {
        grid-template-columns: repeat( 2, 1fr );
        gap: var(--space-4);
    }

    .service-card {
        padding: var(--space-6);
    }
}

/* =====================================================
   Responsive — Small mobile ≤ 640px
   ===================================================== */

@media ( max-width: 640px ) {
    .services__grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .service-card {
        padding: var(--space-6);
        gap: var(--space-2);
    }

    .service-card__icon {
        width: 52px;
        height: 52px;
    }

    .service-card__icon svg {
        width: 26px;
        height: 26px;
    }

    .services__cta {
        margin-top: var(--space-10);
    }

    .services__cta .btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }
}
/* =====================================================
   Why Choose Us — RapiX Solutions
   All values use CSS custom properties only.
   ===================================================== */

/* ---- Two-column split ---- */

.why-us__inner {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    align-items: center;
    gap: var(--space-20);
}

/* ---- Left content ---- */

.why-us__content {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.why-us__heading {
    font-size: var(--text-h1);
}

.why-us__sub {
    max-width: 44ch;
}

/* Decorative abstract shapes */
.why-us__graphic {
    margin-top: var(--space-8);
    opacity: 0.9;
}

.why-us__graphic svg {
    width: 100%;
    max-width: 220px;
    height: auto;
}

/* ---- Right: 2×2 feature grid ---- */

.why-us__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
}

/* ---- Feature card ---- */

.why-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-top: 3px solid var(--color-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    transition: box-shadow var(--ease-slow), transform var(--ease-slow);
}

.why-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY( -3px );
}

/* ---- Icon ---- */

.why-card__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background-color: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    flex-shrink: 0;
    transition: background-color var(--ease-base), color var(--ease-base);
}

.why-card__icon svg {
    width: 22px;
    height: 22px;
}

.why-card:hover .why-card__icon {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* ---- Body ---- */

.why-card__body {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.why-card__title {
    font-family: var(--font-heading);
    font-weight: var(--fw-bold);
    font-size: var(--text-h4);
    color: var(--color-text);
    line-height: var(--leading-snug);
}

.why-card__desc {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    line-height: var(--leading-body);
    color: var(--color-muted);
}

/* =====================================================
   Responsive — Tablet ≤ 1024px
   ===================================================== */

@media ( max-width: 1024px ) {
    .why-us__inner {
        grid-template-columns: 1fr;
        gap: var(--space-12);
    }

    .why-us__content {
        text-align: center;
        align-items: center;
    }

    .why-us__sub {
        max-width: 56ch;
    }

    .why-us__graphic {
        display: none;
    }

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

/* =====================================================
   Responsive — Large mobile ≤ 768px
   ===================================================== */

@media ( max-width: 768px ) {
    .why-us__grid {
        gap: var(--space-4);
    }

    .why-card {
        padding: var(--space-5);
    }
}

/* =====================================================
   Responsive — Small mobile ≤ 640px
   ===================================================== */

@media ( max-width: 640px ) {
    .why-us__grid {
        grid-template-columns: 1fr;
    }

    .why-card {
        flex-direction: row;
        align-items: flex-start;
        border-top: 1px solid var(--color-border);
        border-left: 3px solid var(--color-primary);
    }

    .why-card__icon {
        flex-shrink: 0;
    }

    .why-us__content {
        text-align: left;
        align-items: flex-start;
    }
}
/* =====================================================
   About Us — RapiX Solutions
   All values use CSS custom properties only.
   ===================================================== */

/* ---- Two-column split (visual left, content right) ---- */

.about__inner {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
    gap: var(--space-20);
}

/* ---- Visual side ---- */

.about__visual {
    position: relative;
}

/* Uploaded image */
.about__image {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
}

/* ---- Default branded visual ---- */

.about__default-visual {
    position: relative;
    height: 440px;
}

/* Decorative background card */
.about__vis-card--bg {
    position: absolute;
    inset: 0;
    border-radius: var(--radius-2xl);
    background: linear-gradient(
        135deg,
        var(--color-primary) 0%,
        var(--color-primary-dark) 100%
    );
    transform: rotate(-2deg) scale(0.97);
    opacity: 0.15;
}

/* Main quote card */
.about__vis-card--main {
    position: absolute;
    inset: 0;
    border-radius: var(--radius-2xl);
    background-color: var(--color-text);
    padding: var(--space-10) var(--space-10) var(--space-12);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: var(--space-4);
    overflow: hidden;
}

/* Decorative gradient blob inside card */
.about__vis-card--main::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 220px;
    height: 220px;
    background: radial-gradient( circle, var(--color-primary) 0%, transparent 70% );
    opacity: 0.2;
    pointer-events: none;
}

.about__vis-card--main::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -30px;
    width: 160px;
    height: 160px;
    background: radial-gradient( circle, var(--color-primary-light) 0%, transparent 70% );
    opacity: 0.12;
    pointer-events: none;
}

.about__vis-quote {
    color: var(--color-primary-light);
}

.about__vis-text {
    font-family: var(--font-heading);
    font-weight: var(--fw-semibold);
    font-size: var(--text-h3);
    line-height: var(--leading-snug);
    color: var(--color-white);
    position: relative;
    z-index: var(--z-raised);
}

.about__vis-author {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    position: relative;
    z-index: var(--z-raised);
}

.about__vis-dot {
    width: 32px;
    height: 2px;
    background-color: var(--color-primary-light);
    border-radius: var(--radius-full);
}

.about__vis-author span {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: var(--fw-medium);
    color: var(--color-on-dark-faint);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ---- Floating badges ---- */

.about__vis-badge {
    position: absolute;
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-3) var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    z-index: var(--z-raised);
}

/* Stat badge — top right, overlapping card */
.about__vis-badge--stat {
    top: -20px;
    right: -16px;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-1);
    min-width: 110px;
}

.about__vis-badge--stat strong {
    font-family: var(--font-heading);
    font-weight: var(--fw-extrabold);
    font-size: var(--text-h3);
    color: var(--color-primary);
    line-height: 1;
}

.about__vis-badge--stat span {
    font-size: var(--text-xs);
    color: var(--color-muted);
    font-weight: var(--fw-medium);
}

/* Location badge — bottom left */
.about__vis-badge--location {
    bottom: -16px;
    left: var(--space-8);
    color: var(--color-muted);
}

.about__vis-badge--location svg {
    color: var(--color-primary);
    flex-shrink: 0;
}

.about__vis-badge--location span {
    font-weight: var(--fw-medium);
    color: var(--color-text);
    white-space: nowrap;
}

/* ---- Content side ---- */

.about__content {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.about__heading {
    font-size: var(--text-h1);
}

.about__body {
    max-width: 52ch;
}

/* ---- Bullet points ---- */

.about__points {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-top: var(--space-2);
}

.about__point {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    font-family: var(--font-body);
    font-size: var(--text-body);
    font-weight: var(--fw-medium);
    color: var(--color-body);
}

.about__point-icon {
    width: 22px;
    height: 22px;
    border-radius: var(--radius-full);
    background-color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    flex-shrink: 0;
    margin-top: 1px;
}

.about__point-icon svg {
    width: 12px;
    height: 12px;
}

/* =====================================================
   Responsive — Tablet ≤ 1024px
   ===================================================== */

@media ( max-width: 1024px ) {
    .about__inner {
        grid-template-columns: 1fr;
        gap: var(--space-16);
    }

    .about__visual {
        order: 2;
        max-width: 520px;
        margin: 0 auto;
        width: 100%;
    }

    .about__content {
        order: 1;
    }

    .about__default-visual {
        height: 380px;
    }
}

/* =====================================================
   Responsive — Large mobile ≤ 768px
   ===================================================== */

@media ( max-width: 768px ) {
    .about__default-visual {
        height: 340px;
    }

    .about__vis-badge--stat {
        top: -14px;
        right: -8px;
    }

    .about__image {
        height: 340px;
    }
}

/* =====================================================
   Responsive — Small mobile ≤ 640px
   ===================================================== */

@media ( max-width: 640px ) {
    .about__default-visual {
        height: 300px;
    }

    .about__vis-card--main {
        padding: var(--space-6) var(--space-6) var(--space-8);
    }

    .about__vis-text {
        font-size: var(--text-h4);
    }

    .about__vis-badge--location {
        left: var(--space-4);
        bottom: -14px;
    }

    .about__image {
        height: 260px;
    }

    .about__body {
        max-width: 100%;
    }
}
/* =====================================================
   How We Work (Process) — RapiX Solutions
   All values use CSS custom properties only.
   ===================================================== */

/* ---- Track: holds the line + steps ---- */

.process__track {
    position: relative;
}

/* Horizontal connecting line — sits behind number circles */
.process__line {
    position: absolute;
    top: 36px; /* vertically centred on the number circles */
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: linear-gradient(
        90deg,
        var(--color-primary)       0%,
        var(--color-primary-light) 100%
    );
    z-index: 0;
}

/* ---- 4-column grid ---- */

.process__steps {
    display: grid;
    grid-template-columns: repeat( 4, 1fr );
    gap: var(--space-6);
    position: relative;
    z-index: var(--z-raised);
}

/* ---- Individual step ---- */

.process__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-4);
}

/* ---- Number circle ---- */

.process__num {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-full);
    background-color: var(--color-primary);
    border: 4px solid var(--color-white);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background-color var(--ease-slow), transform var(--ease-slow);
}

.process__num span {
    font-family: var(--font-heading);
    font-weight: var(--fw-extrabold);
    font-size: var(--text-h4);
    color: var(--color-white);
    line-height: 1;
    letter-spacing: -0.02em;
}

.process__step:hover .process__num {
    background-color: var(--color-primary-dark);
    transform: scale( 1.08 );
}

/* ---- Step icon ---- */

.process__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    background-color: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    transition: background-color var(--ease-slow), color var(--ease-slow);
}

.process__icon svg {
    width: 22px;
    height: 22px;
}

.process__step:hover .process__icon {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* ---- Step title ---- */

.process__title {
    font-family: var(--font-heading);
    font-weight: var(--fw-bold);
    font-size: var(--text-h4);
    color: var(--color-text);
    line-height: var(--leading-snug);
}

/* ---- Step description ---- */

.process__desc {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    line-height: var(--leading-body);
    color: var(--color-muted);
    max-width: 22ch;
}

/* =====================================================
   Responsive — Tablet ≤ 1024px
   ===================================================== */

@media ( max-width: 1024px ) {
    .process__line {
        left: 10%;
        right: 10%;
    }
}

/* =====================================================
   Responsive — Large mobile ≤ 768px
   Two columns — hide horizontal line, show step connector dots
   ===================================================== */

@media ( max-width: 768px ) {
    .process__line {
        display: none;
    }

    .process__steps {
        grid-template-columns: repeat( 2, 1fr );
        gap: var(--space-8) var(--space-6);
    }

    .process__desc {
        max-width: 28ch;
    }
}

/* =====================================================
   Responsive — Small mobile ≤ 640px
   Vertical timeline — single column with left border line
   ===================================================== */

@media ( max-width: 640px ) {
    .process__track {
        padding-left: var(--space-4);
    }

    /* Vertical line on the left */
    .process__track::before {
        content: '';
        position: absolute;
        left: calc( var(--space-4) + 27px );
        top: 36px;
        bottom: 36px;
        width: 2px;
        background: linear-gradient(
            180deg,
            var(--color-primary)       0%,
            var(--color-primary-light) 100%
        );
        z-index: 0;
    }

    .process__steps {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    /* Grid: circle | title on row 1, blank | desc on row 2 */
    .process__step {
        display: grid;
        grid-template-columns: 56px 1fr;
        grid-template-rows: auto auto;
        align-items: center;
        column-gap: var(--space-4);
        row-gap: var(--space-2);
        text-align: left;
    }

    .process__num {
        grid-column: 1;
        grid-row: 1;
        width: 56px;
        height: 56px;
        z-index: var(--z-raised);
    }

    .process__num span {
        font-size: var(--text-body);
    }

    .process__icon {
        display: none;
    }

    .process__title {
        grid-column: 2;
        grid-row: 1;
    }

    .process__desc {
        grid-column: 2;
        grid-row: 2;
        max-width: 100%;
    }
}
/* =====================================================
   Testimonials — RapiX Solutions
   All values use CSS custom properties only.
   ===================================================== */

/* ---- 3-column card grid ---- */

.testi__grid {
    display: grid;
    grid-template-columns: repeat( 3, 1fr );
    gap: var(--space-6);
}

/* ---- Card ---- */

.testi-card {
    position: relative;
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
    transition: transform var(--ease-slow), box-shadow var(--ease-slow);
}

.testi-card:hover {
    transform: translateY( -5px );
    box-shadow: var(--shadow-lg);
}

/* ---- Decorative quote mark ---- */

.testi-card__quote-mark {
    color: var(--color-primary);
    opacity: 0.18;
    width: 40px;
    height: auto;
    flex-shrink: 0;
}

.testi-card__quote-mark svg {
    width: 100%;
    height: auto;
    display: block;
}

/* ---- Stars ---- */

.testi-card__stars {
    display: flex;
    gap: var(--space-1);
    color: #F59E0B;
}

.testi-card__stars svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ---- Quote text ---- */

.testi-card__text {
    font-family: var(--font-body);
    font-size: var(--text-body);
    line-height: var(--leading-body);
    color: var(--color-body);
    font-style: italic;
    flex: 1;
    quotes: none;
    border: none;
    padding: 0;
    margin: 0;
}

/* ---- Divider ---- */

.testi-card__divider {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 0;
}

/* ---- Author row ---- */

.testi-card__author {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

/* Avatar — image */
.testi-card__avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    flex-shrink: 0;
    object-fit: cover;
}

/* Avatar — initials fallback */
.testi-card__avatar--initials {
    background: linear-gradient(
        135deg,
        var(--color-primary) 0%,
        var(--color-primary-light) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: var(--fw-bold);
    font-size: var(--text-sm);
    color: var(--color-white);
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

/* Author info */
.testi-card__author-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    min-width: 0;
}

.testi-card__name {
    font-family: var(--font-heading);
    font-weight: var(--fw-semibold);
    font-size: var(--text-body);
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.testi-card__role {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    color: var(--color-muted);
    font-weight: var(--fw-medium);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =====================================================
   Responsive — Tablet ≤ 1024px
   ===================================================== */

@media ( max-width: 1024px ) {
    .testi__grid {
        grid-template-columns: repeat( 3, 1fr );
        gap: var(--space-5);
    }

    .testi-card {
        padding: var(--space-6);
        gap: var(--space-4);
    }
}

/* =====================================================
   Responsive — Large mobile ≤ 768px
   ===================================================== */

@media ( max-width: 768px ) {
    .testi__grid {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin: 0 auto;
        gap: var(--space-5);
    }
}

/* =====================================================
   Responsive — Small mobile ≤ 640px
   ===================================================== */

@media ( max-width: 640px ) {
    .testi-card {
        padding: var(--space-5);
    }

    .testi__grid {
        max-width: 100%;
    }
}
/* =====================================================
   FAQ Accordion — RapiX Solutions
   All values use CSS custom properties only.
   ===================================================== */

/* ---- Accordion list ---- */

.faq__list {
    max-width: 780px;
    margin: 0 auto;
    border-top: 1px solid var(--color-border);
}

/* ---- Single FAQ item ---- */

.faq-item {
    border-bottom: 1px solid var(--color-border);
    transition: background-color var(--ease-base);
}

/* ---- Trigger button ---- */

.faq-item__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
    padding: var(--space-6) 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}

.faq-item__trigger:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* ---- Question text ---- */

.faq-item__question {
    font-family: var(--font-heading);
    font-weight: var(--fw-semibold);
    font-size: var(--text-body-lg);
    color: var(--color-text);
    line-height: var(--leading-snug);
    transition: color var(--ease-base);
    flex: 1;
}

.faq-item__trigger:hover .faq-item__question,
.faq-item.is-open   .faq-item__question {
    color: var(--color-primary);
}

/* ---- Icon toggle ---- */

.faq-item__icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-muted);
    flex-shrink: 0;
    transition:
        background-color var(--ease-base),
        border-color     var(--ease-base),
        color            var(--ease-base);
}

.faq-item__icon svg {
    width: 16px;
    height: 16px;
    position: absolute;
    transition: opacity var(--ease-base), transform var(--ease-base);
}

.faq-item__icon {
    position: relative;
}

/* Show plus by default, minus when open */
.faq-item__plus  { opacity: 1; }
.faq-item__minus { opacity: 0; }

.faq-item.is-open .faq-item__plus  { opacity: 0; transform: rotate( 90deg ); }
.faq-item.is-open .faq-item__minus { opacity: 1; }

.faq-item__trigger:hover .faq-item__icon,
.faq-item.is-open        .faq-item__icon {
    background-color: var(--color-primary);
    border-color:     var(--color-primary);
    color:            var(--color-white);
}

/* ---- Collapsible body ---- */

.faq-item__body {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.38s cubic-bezier( 0.4, 0, 0.2, 1 );
}

.faq-item.is-open .faq-item__body {
    max-height: 600px;
}

/* ---- Answer text ---- */

.faq-item__answer {
    font-family: var(--font-body);
    font-size: var(--text-body);
    line-height: var(--leading-body);
    color: var(--color-muted);
    padding-bottom: var(--space-6);
    max-width: 68ch;
}

/* =====================================================
   Responsive — Tablet ≤ 768px
   ===================================================== */

@media ( max-width: 768px ) {
    .faq__list {
        max-width: 100%;
    }

    .faq-item__trigger {
        padding: var(--space-5) 0;
        gap: var(--space-4);
    }

    .faq-item__question {
        font-size: var(--text-body);
    }
}

/* =====================================================
   Responsive — Small mobile ≤ 640px
   ===================================================== */

@media ( max-width: 640px ) {
    .faq-item__icon {
        width: 30px;
        height: 30px;
    }

    .faq-item__icon svg {
        width: 14px;
        height: 14px;
    }

    .faq-item__answer {
        max-width: 100%;
    }
}
/* =====================================================
   CTA Banner — RapiX Solutions
   All values use CSS custom properties only.
   ===================================================== */

.cta-banner {
    position: relative;
    padding-top: var(--space-24);
    padding-bottom: var(--space-24);
    overflow: hidden;
}

/* ---- Decorative radial blobs ---- */

.cta-banner__blob {
    position: absolute;
    border-radius: var(--radius-full);
    pointer-events: none;
}

.cta-banner__blob--tl {
    width: 480px;
    height: 480px;
    top: -180px;
    left: -120px;
    background: radial-gradient(
        circle,
        var(--color-on-dark-fill) 0%,
        transparent 70%
    );
}

.cta-banner__blob--br {
    width: 560px;
    height: 560px;
    bottom: -200px;
    right: -140px;
    background: radial-gradient(
        circle,
        var(--color-on-dark-fill) 0%,
        transparent 70%
    );
}

/* ---- Dot pattern overlay ---- */

.cta-banner__dots {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(
        circle,
        var(--color-on-dark-line) 1px,
        transparent 1px
    );
    background-size: 28px 28px;
    mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0,0,0,0.4) 30%,
        rgba(0,0,0,0.4) 70%,
        transparent 100%
    );
}

/* ---- Inner content ---- */

.cta-banner__inner {
    position: relative;
    z-index: var(--z-raised);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-6);
}

/* ---- Eyebrow label ---- */

.cta-banner__label {
    color: var(--color-on-dark);
    justify-content: center;
    margin-bottom: 0;
}

.cta-banner__label::before {
    background-color: var(--color-on-dark-soft);
}

/* ---- Heading ---- */

.cta-banner__heading {
    font-family: var(--font-heading);
    font-weight: var(--fw-extrabold);
    font-size: var(--text-h1);
    line-height: var(--leading-heading);
    color: var(--color-white);
    letter-spacing: -0.02em;
    max-width: 16ch;
}

/* ---- Sub text ---- */

.cta-banner__sub {
    font-family: var(--font-body);
    font-size: var(--text-body-lg);
    line-height: var(--leading-body);
    color: var(--color-on-dark);
    max-width: 52ch;
}

/* ---- Actions row ---- */

.cta-banner__actions {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    flex-wrap: wrap;
    justify-content: center;
    margin-top: var(--space-2);
}

/* ---- Phone link ---- */

.cta-banner__phone {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-body);
    font-weight: var(--fw-semibold);
    font-size: var(--text-body);
    color: var(--color-on-dark-strong);
    text-decoration: none;
    transition: color var(--ease-base);
}

.cta-banner__phone:hover {
    color: var(--color-white);
}

.cta-banner__phone svg {
    flex-shrink: 0;
}

/* =====================================================
   Responsive — Tablet ≤ 768px
   ===================================================== */

@media ( max-width: 768px ) {
    .cta-banner {
        padding-top: var(--space-20);
        padding-bottom: var(--space-20);
    }

    .cta-banner__heading {
        font-size: var(--text-h2);
        max-width: 20ch;
    }

    .cta-banner__blob--tl {
        width: 320px;
        height: 320px;
        top: -120px;
        left: -80px;
    }

    .cta-banner__blob--br {
        width: 360px;
        height: 360px;
        bottom: -140px;
        right: -80px;
    }
}

/* =====================================================
   Responsive — Small mobile ≤ 640px
   ===================================================== */

@media ( max-width: 640px ) {
    .cta-banner {
        padding-top: var(--space-16);
        padding-bottom: var(--space-16);
    }

    .cta-banner__actions {
        flex-direction: column;
        gap: var(--space-4);
        width: 100%;
    }

    .cta-banner__actions .btn {
        width: 100%;
        justify-content: center;
    }

    .cta-banner__heading {
        max-width: 100%;
    }
}
/* =====================================================
   Contact Section — RapiX Solutions
   All values use CSS custom properties only.
   ===================================================== */

/* ---- Two-column layout ---- */

.contact__inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
    gap: var(--space-16);
}

/* =====================================================
   Left — form column
   ===================================================== */

.contact__form-col {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

.contact__header {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.contact__heading {
    font-size: var(--text-h1);
}

/* ---- Form sub-title ---- */

.contact__form-title {
    font-family: var(--font-heading);
    font-weight: var(--fw-bold);
    font-size: var(--text-h4);
    color: var(--color-text);
    padding-bottom: var(--space-4);
    border-bottom: 2px solid var(--color-primary);
    display: inline-block;
}

/* ---- WPForms wrapper — override plugin styles cleanly ---- */

.contact__form-wrap {
    width: 100%;
}

/* Tighten field gaps */
.contact__form-wrap .wpforms-field {
    margin-bottom: var(--space-4) !important;
    padding-bottom: 0 !important;
}

/* Inputs */
.contact__form-wrap .wpforms-field input,
.contact__form-wrap .wpforms-field textarea,
.contact__form-wrap .wpforms-field select {
    width: 100% !important;
    font-family: var(--font-body) !important;
    font-size: var(--text-body) !important;
    color: var(--color-body) !important;
    background-color: var(--color-white) !important;
    border: 1.5px solid var(--color-border) !important;
    border-radius: var(--radius-md) !important;
    padding: var(--space-3) var(--space-4) !important;
    transition: border-color var(--ease-base), box-shadow var(--ease-base) !important;
    box-shadow: none !important;
    outline: none !important;
}

.contact__form-wrap .wpforms-field input:focus,
.contact__form-wrap .wpforms-field textarea:focus,
.contact__form-wrap .wpforms-field select:focus {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 3px rgba(236, 67, 12, 0.1) !important;
}

/* Labels */
.contact__form-wrap .wpforms-field label {
    font-family: var(--font-body) !important;
    font-size: var(--text-sm) !important;
    font-weight: var(--fw-semibold) !important;
    color: var(--color-text) !important;
    margin-bottom: var(--space-2) !important;
}

/* Submit button */
.contact__form-wrap .wpforms-submit,
.contact__form-wrap button[type="submit"] {
    font-family: var(--font-body) !important;
    font-weight: var(--fw-semibold) !important;
    font-size: var(--text-body) !important;
    background-color: var(--color-primary) !important;
    color: var(--color-white) !important;
    border: 2px solid var(--color-primary) !important;
    border-radius: var(--radius-md) !important;
    padding: var(--space-3) var(--space-8) !important;
    cursor: pointer !important;
    transition: background-color var(--ease-base), border-color var(--ease-base) !important;
    box-shadow: none !important;
}

.contact__form-wrap .wpforms-submit:hover,
.contact__form-wrap button[type="submit"]:hover {
    background-color: var(--color-primary-dark) !important;
    border-color: var(--color-primary-dark) !important;
}

/* Error messages */
.contact__form-wrap .wpforms-error {
    font-family: var(--font-body) !important;
    font-size: var(--text-xs) !important;
    color: #DC2626 !important;
    margin-top: var(--space-1) !important;
}

/* ---- Placeholder (no shortcode set) ---- */

.contact__form-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: var(--space-4);
    padding: var(--space-12) var(--space-8);
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-xl);
    color: var(--color-muted);
}

.contact__form-placeholder p {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    line-height: var(--leading-body);
}

/* =====================================================
   Right — details card
   ===================================================== */

.contact__details-col {
    position: sticky;
    top: calc( 80px + var(--space-8) );
}

.contact__details-card {
    position: relative;
    background-color: var(--color-text);
    border-radius: var(--radius-2xl);
    padding: var(--space-10);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

/* Decorative glow */
.contact__details-blob {
    position: absolute;
    top: -80px;
    right: -80px;
    width: 280px;
    height: 280px;
    border-radius: var(--radius-full);
    background: radial-gradient(
        circle,
        var(--color-primary) 0%,
        transparent 70%
    );
    opacity: 0.25;
    pointer-events: none;
}

/* ---- Details heading ---- */

.contact__details-title {
    font-family: var(--font-heading);
    font-weight: var(--fw-bold);
    font-size: var(--text-h3);
    color: var(--color-white);
    position: relative;
    z-index: var(--z-raised);
}

/* ---- Contact items list ---- */

.contact__items {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    position: relative;
    z-index: var(--z-raised);
}

.contact__item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
}

/* Icon circle */
.contact__item-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background-color: rgba(236, 67, 12, 0.25);
    border: 1px solid rgba(236, 67, 12, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary-light);
    flex-shrink: 0;
}

.contact__item-icon svg {
    width: 20px;
    height: 20px;
}

/* Item text */
.contact__item-body {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    padding-top: var(--space-1);
}

.contact__item-label {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: var(--fw-semibold);
    color: var(--color-on-dark-faint);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.contact__item-value {
    font-family: var(--font-body);
    font-weight: var(--fw-medium);
    font-size: var(--text-body);
    color: var(--color-white);
    text-decoration: none;
    transition: color var(--ease-base);
    line-height: var(--leading-snug);
}

a.contact__item-value:hover {
    color: var(--color-primary-light);
}

.contact__address {
    font-style: normal;
    line-height: var(--leading-body);
}

/* ---- Business hours ---- */

.contact__hours {
    border-top: 1px solid var(--color-on-dark-line);
    padding-top: var(--space-6);
    position: relative;
    z-index: var(--z-raised);
}

.contact__hours-title {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: var(--fw-semibold);
    color: var(--color-on-dark-faint);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-4);
}

.contact__hours-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--space-2) var(--space-6);
}

.contact__hours-grid span {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--color-on-dark-soft);
}

.contact__hours-grid span:nth-child(even) {
    text-align: right;
    font-weight: var(--fw-semibold);
    color: var(--color-white);
}

/* Last row (24/7) highlight */
.contact__hours-grid span:last-child {
    color: var(--color-primary-light);
    font-weight: var(--fw-bold);
}

/* =====================================================
   Responsive — Tablet ≤ 1024px
   ===================================================== */

@media ( max-width: 1024px ) {
    .contact__inner {
        grid-template-columns: 1fr;
        gap: var(--space-12);
    }

    .contact__details-col {
        position: static;
        order: -1;
    }

    .contact__details-card {
        padding: var(--space-8);
    }

    .contact__items {
        display: grid;
        grid-template-columns: repeat( 3, 1fr );
        gap: var(--space-6);
    }

    .contact__item {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =====================================================
   Responsive — Large mobile ≤ 768px
   ===================================================== */

@media ( max-width: 768px ) {
    .contact__items {
        grid-template-columns: 1fr;
    }

    .contact__item {
        flex-direction: row;
    }
}

/* =====================================================
   Responsive — Small mobile ≤ 640px
   ===================================================== */

@media ( max-width: 640px ) {
    .contact__details-card {
        padding: var(--space-6);
    }

    .contact__hours-grid {
        gap: var(--space-1) var(--space-4);
    }
}
