/* ==========================================================================
   Hire PHP Developers — page-scoped redesign.
   Loaded only on hire-php-developers.php (see the <link> in that file),
   so nothing here can affect any other page. Reuses the --cw-* design
   tokens already defined globally in site-theme.css (colors, radius,
   shadows) rather than redefining them, to stay consistent with the
   rest of the site's brand identity.
   ========================================================================== */

.phx {
    color: var(--cw-text);
}

.phx section {
    padding: 4.5rem 0;
}

.phx .phx-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    background: #fff;
    color: var(--cw-green-dark);
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 7px 16px 7px 12px;
    border-radius: 999px;
    border: 1px solid var(--cw-border);
    box-shadow: var(--cw-shadow-soft);
}

.phx .phx-eyebrow::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cw-gradient-green);
    box-shadow: 0 0 0 3px rgba(10, 188, 95, .16);
    flex-shrink: 0;
}

.phx .phx-head {
    max-width: 700px;
    margin: 0 auto 3.25rem;
    text-align: center;
}

.phx .phx-head.phx-head-left {
    margin: 0 0 3.25rem;
    text-align: left;
}

.phx .phx-head.phx-head-left .phx-eyebrow::before {
    margin-left: 0;
}

.phx .phx-head h2 {
    font-size: clamp(1.9rem, 3.1vw, 2.6rem) !important;
    font-weight: 800;
    line-height: 1.2;
    color: var(--cw-navy);
    letter-spacing: -.02em;
    margin: 1.1rem 0 1rem;
}

.phx .phx-head p {
    color: var(--cw-text-dim);
    font-size: 1.08rem;
    line-height: 1.7;
    margin: 0 auto;
}

.phx .phx-head.phx-head-left p {
    margin: 0;
}

/* Overrides a global .breadcrumb link-color rule (meant for a dark
   breadcrumb bar elsewhere on the site) that otherwise renders this
   breadcrumb's "Home" link invisible (white-on-white) on this page. */
.phx .hire-breadcrumb,
.phx .hire-breadcrumb li {
    color: var(--cw-text-dim) !important;
}

.phx .hire-breadcrumb a {
    color: var(--cw-text-dim) !important;
}

.phx .hire-breadcrumb a:hover {
    color: var(--cw-green-dark) !important;
}

.phx .phx-hero-breadcrumb {
    margin: 0 0 2rem !important;
    padding: 0 0 1rem;
    border-bottom: 1px solid rgba(5, 7, 72, .08);
    font-size: .85rem;
    opacity: .85;
}

/* ---- Hero ---- */
.phx-hero {
    padding: 3.5rem 0 4rem;
    background: linear-gradient(180deg, var(--cw-bg-soft) 0%, var(--cw-bg) 100%);
}

.phx-hero .row {
    align-items: center;
}

.phx-hero h1 {
    font-size: clamp(2rem, 3.6vw, 2.9rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--cw-navy);
    letter-spacing: -.01em;
    margin: 1rem 0 1.2rem;
}

.phx-hero h1 span {
    background: var(--cw-gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.phx-hero p {
    color: var(--cw-text-dim);
    font-size: 1.08rem;
    line-height: 1.75;
    max-width: 560px;
}

.phx-hero .phx-list {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin: 1.3rem 0 1.7rem;
    padding: 0;
    list-style: none;
}

.phx-hero .phx-list li {
    display: flex;
    align-items: center;
    gap: .4rem;
    background: #fff;
    border: 1px solid var(--cw-border);
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--cw-text);
    box-shadow: var(--cw-shadow-soft);
}

.phx-hero .phx-list li i {
    color: var(--cw-green);
    font-size: 12px;
}

.phx-hero .phx-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: .9rem;
    margin-top: .5rem;
}

.phx-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: 13px 26px;
    border-radius: 999px;
    font-weight: 700;
    font-size: .96rem;
    text-decoration: none !important;
    transition: transform .2s var(--cw-ease), box-shadow .2s var(--cw-ease);
    border: none;
    cursor: pointer;
}

.phx-btn-primary {
    background: var(--cw-gradient-green) !important;
    color: #fff !important;
    box-shadow: var(--cw-glow-green);
}

.phx-btn-primary:hover {
    transform: translateY(-2px);
    color: #fff !important;
}

.phx-btn-outline {
    background: #fff !important;
    color: var(--cw-navy) !important;
    border: 1px solid var(--cw-border) !important;
}

.phx-btn-outline:hover {
    border-color: var(--cw-green) !important;
    color: var(--cw-green-dark) !important;
    transform: translateY(-2px);
}

.phx-hero-media {
    position: relative;
}

.phx-hero-media img {
    width: 100%;
    border-radius: var(--cw-radius-lg);
    box-shadow: var(--cw-shadow-card);
    display: block;
}

.phx-hero-media .phx-float-card {
    position: absolute;
    background: #fff;
    border-radius: var(--cw-radius-md);
    box-shadow: var(--cw-shadow-card);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: .88rem;
    color: var(--cw-navy);
}

.phx-hero-media .phx-float-1 {
    top: -18px;
    left: -18px;
}

.phx-hero-media .phx-float-2 {
    bottom: -18px;
    right: -18px;
}

.phx-hero-media .phx-float-card i {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--cw-gradient-green);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* ---- Trust / technology strip ---- */
.phx-tech {
    padding: 3rem 0;
    border-bottom: 1px solid var(--cw-border-soft);
}

.phx-tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.phx-tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .6rem;
    background: #fff;
    border: 1px solid var(--cw-border);
    border-radius: var(--cw-radius-md);
    padding: 1.1rem .8rem;
    text-align: center;
    transition: transform .2s var(--cw-ease), box-shadow .2s var(--cw-ease);
}

.phx-tech-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--cw-shadow-soft);
}

.phx-tech-item img {
    height: 32px;
    width: auto;
    max-width: 44px;
    object-fit: contain;
}

.phx-tech-item i {
    font-size: 26px;
    color: var(--cw-blue);
}

.phx-tech-item span {
    font-size: .82rem;
    font-weight: 600;
    color: var(--cw-text);
}

/* ---- Feature / service cards (shared grid look) ---- */
.phx-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.phx-card {
    background: #fff;
    border: 1px solid var(--cw-border);
    border-radius: var(--cw-radius-md);
    padding: 1.8rem;
    box-shadow: var(--cw-shadow-soft);
    transition: transform .25s var(--cw-ease), box-shadow .25s var(--cw-ease);
}

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

.phx-card .phx-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--cw-radius-sm);
    background: var(--cw-bg-soft);
    color: var(--cw-green-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 1.1rem;
}

.phx-card h3 {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--cw-navy);
    margin-bottom: .5rem;
}

.phx-card p {
    color: var(--cw-text-dim);
    font-size: .92rem;
    line-height: 1.65;
    margin: 0;
}

.phx-card .phx-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-top: .9rem;
    font-size: .85rem;
    font-weight: 700;
    color: var(--cw-green-dark);
    text-decoration: none !important;
}

.phx-card .phx-link i {
    font-size: 11px;
    transition: transform .2s var(--cw-ease);
}

.phx-card .phx-link:hover i {
    transform: translateX(3px);
}

.phx-bg-tint {
    background: var(--cw-bg);
}

/* ---- Engagement models ---- */
.phx-models {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

.phx-model {
    background: #fff;
    border: 1px solid var(--cw-border);
    border-radius: var(--cw-radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.phx-model.phx-model-featured {
    background: var(--cw-navy);
    border-color: var(--cw-navy);
    color: #fff;
    box-shadow: var(--cw-shadow-card);
    transform: scale(1.03);
}

.phx-model-featured .phx-model-tag {
    background: rgba(255, 255, 255, .14);
    color: #fff;
}

.phx-model-tag {
    display: inline-block;
    align-self: flex-start;
    background: var(--cw-bg-soft);
    color: var(--cw-green-dark);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.phx-model h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: .5rem;
}

.phx-model-featured h3 {
    color: #fff;
}

.phx-model > p {
    color: var(--cw-text-dim);
    font-size: .93rem;
    margin-bottom: 1.2rem;
}

.phx-model-featured > p {
    color: rgba(255, 255, 255, .75);
}

.phx-model ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.6rem;
    flex-grow: 1;
}

.phx-model ul li {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    font-size: .92rem;
    padding: 7px 0;
    border-bottom: 1px solid var(--cw-border-soft);
}

.phx-model-featured ul li {
    border-bottom-color: rgba(255, 255, 255, .15);
}

.phx-model ul li:last-child {
    border-bottom: none;
}

.phx-model ul li i {
    color: var(--cw-green);
    margin-top: 3px;
    font-size: 12px;
}

.phx-model-featured ul li i {
    color: #7bdc6f;
}

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

/* ---- Skills visual grid ---- */
.phx-skills {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.phx-skill {
    background: #fff;
    border: 1px solid var(--cw-border);
    border-radius: var(--cw-radius-md);
    padding: 1.4rem 1rem;
    text-align: center;
    transition: transform .2s var(--cw-ease), box-shadow .2s var(--cw-ease), border-color .2s var(--cw-ease);
}

.phx-skill:hover {
    transform: translateY(-4px);
    box-shadow: var(--cw-shadow-soft);
    border-color: var(--cw-green);
}

.phx-skill i {
    font-size: 26px;
    color: var(--cw-blue);
    margin-bottom: .6rem;
    display: block;
}

.phx-skill span {
    font-size: .85rem;
    font-weight: 600;
    color: var(--cw-text);
}

/* ---- Process timeline ---- */
.phx-process {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: .9rem;
    position: relative;
}

.phx-process::before {
    content: '';
    position: absolute;
    top: 26px;
    left: 5%;
    right: 5%;
    height: 2px;
    background: var(--cw-border);
    z-index: 0;
}

.phx-process-step {
    position: relative;
    z-index: 1;
    text-align: center;
}

.phx-process-step .phx-step-num {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--cw-green);
    color: var(--cw-navy);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto .9rem;
    font-size: .95rem;
}

.phx-process-step h4 {
    font-size: .88rem !important;
    font-weight: 700;
    color: var(--cw-navy);
    margin-bottom: .3rem;
}

.phx-process-step p {
    font-size: .78rem;
    color: var(--cw-text-dim);
    line-height: 1.5;
}

/* ---- Trust points ---- */
.phx-trust {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
}

.phx-trust-item {
    display: flex;
    align-items: flex-start;
    gap: .8rem;
    padding: .4rem 0;
}

.phx-trust-item i {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--cw-gradient-green);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.phx-trust-item h4 {
    font-size: .96rem !important;
    font-weight: 700;
    color: var(--cw-navy);
    margin: 0 0 .2rem;
}

.phx-trust-item p {
    font-size: .84rem;
    color: var(--cw-text-dim);
    margin: 0;
}

/* ---- Case study / portfolio CTA card ---- */
.phx-portfolio-card {
    background: #fff;
    border: 1px solid var(--cw-border);
    border-radius: var(--cw-radius-lg);
    padding: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    box-shadow: var(--cw-shadow-soft);
    flex-wrap: wrap;
}

.phx-portfolio-card h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--cw-navy);
    margin-bottom: .5rem;
}

.phx-portfolio-card p {
    color: var(--cw-text-dim);
    max-width: 520px;
    margin: 0;
}

/* ---- FAQ heading reuse (bootstrap accordion styled globally already) --- */
.phx .service_headings {
    max-width: 720px;
    margin: 0 auto 2rem;
    text-align: center;
}

/* ---- Final CTA banner ---- */
.phx-cta {
    background: var(--cw-gradient-blue);
    border-radius: var(--cw-radius-lg);
    padding: 3.2rem 2.5rem;
    text-align: center;
    color: #fff;
    margin: 0 auto;
    box-shadow: 0 30px 60px -24px rgba(48, 74, 157, .45);
}

.phx-cta h2 {
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-weight: 800;
    margin-bottom: .8rem;
}

.phx-cta p {
    color: rgba(255, 255, 255, .82);
    max-width: 620px;
    margin: 0 auto 1.6rem;
}

.phx-cta .phx-ctas {
    justify-content: center;
}

.phx-cta .phx-btn-outline {
    background: transparent !important;
    border-color: rgba(255, 255, 255, .5) !important;
    color: #fff !important;
}

.phx-cta .phx-btn-outline:hover {
    background: rgba(255, 255, 255, .12) !important;
    border-color: #fff !important;
    color: #fff !important;
}

/* ---- Lead form ---- */
.phx-form-wrap {
    background: #fff;
    border: 1px solid var(--cw-border);
    border-radius: var(--cw-radius-lg);
    box-shadow: var(--cw-shadow-card);
    padding: 2.2rem;
}

.phx-form-wrap h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--cw-navy);
    margin-bottom: .3rem;
}

.phx-form-wrap .phx-form-sub {
    color: var(--cw-text-dim);
    font-size: .9rem;
    margin-bottom: 1.4rem;
}

.phx-form-wrap .form-control {
    border: 1px solid var(--cw-border) !important;
    border-radius: var(--cw-radius-sm) !important;
    padding: 12px 14px !important;
    margin-bottom: 1rem;
    font-size: .93rem;
}

.phx-form-wrap .form-control:focus {
    border-color: var(--cw-green) !important;
    box-shadow: 0 0 0 3px rgba(10, 188, 95, .12) !important;
}

.phx-form-side h2 {
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    font-weight: 800;
    color: var(--cw-navy);
    margin-bottom: 1rem;
}

.phx-form-side p {
    color: var(--cw-text-dim);
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.phx-form-side img {
    width: 100%;
    border-radius: var(--cw-radius-lg);
    box-shadow: var(--cw-shadow-soft);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 991.98px) {
    .phx-grid-3,
    .phx-models {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .phx-skills {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Hero text and media stack into a single column below the lg
       breakpoint, so the absolutely-positioned float cards need
       clearance instead of overlapping the CTAs above them. */
    .phx-hero-media {
        margin-top: 2.5rem;
    }

    .phx-hero-media .phx-float-card {
        display: none;
    }

    .phx-process {
        grid-template-columns: repeat(4, 1fr);
        row-gap: 2rem;
    }

    .phx-process::before {
        display: none;
    }

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

    .phx-model.phx-model-featured {
        transform: none;
    }

    /* Clears the fixed mobile/tablet header (~96px tall, active below
       the lg breakpoint); matches the same compensation pattern used
       by .cw-hero on index.php. Uses .phx .phx-hero (not just
       .phx-hero) so it stays more specific than the ".phx section"
       padding shorthand set in the 767.98px breakpoint below. */
    .phx .phx-hero {
        padding-top: 5rem;
    }
}

@media (max-width: 767.98px) {
    .phx section {
        padding: 3rem 0;
    }

    .phx-grid-3,
    .phx-models,
    .phx-skills,
    .phx-trust {
        grid-template-columns: 1fr;
    }

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

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

    .phx-hero-media {
        margin-top: 2.5rem;
    }

    .phx-hero-media .phx-float-card {
        display: none;
    }

    .phx-portfolio-card {
        flex-direction: column;
        text-align: center;
    }

    .phx-form-side {
        margin-bottom: 2rem;
    }
}
