/* ==========================================================================
   Technology section — shared design system.
   Loaded only on the 20 static PHP pages under the header's "Technology"
   menu (CMS, PHP Framework, E-Commerce, Database categories), never
   sitewide. Reuses the --cw-* tokens already defined globally in
   site-theme.css (colors, radius, shadows) instead of redefining them,
   so every Technology page stays on the same brand identity as the rest
   of the site (including the separate Services-menu redesign, which
   uses the same component vocabulary under a .svc namespace).

   All rules are scoped under .tech so nothing here can leak onto pages
   that don't opt in.
   ========================================================================== */

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

.tech section {
    padding: 4.5rem 0;
}

.tech .tech-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);
}

.tech .tech-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;
}

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

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

.tech .tech-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;
}

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

.tech .tech-head.tech-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 a
   breadcrumb's "Home" link invisible (white-on-white) on a light
   section background. */
.tech .breadcrumb,
.tech .breadcrumb li {
    color: var(--cw-text-dim) !important;
}

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

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

.tech .tech-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;
    list-style: none;
}

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

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

.tech-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;
}

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

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

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

.tech-hero .tech-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);
}

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

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

.tech-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;
}

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

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

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

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

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

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

.tech-hero-media .tech-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);
}

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

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

.tech-hero-media .tech-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 points / stats ---- */
.tech-trust {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
}

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

.tech-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;
}

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

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

.tech-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
    text-align: center;
}

.tech-stat {
    background: #fff;
    border: 1px solid var(--cw-border);
    border-radius: var(--cw-radius-md);
    padding: 1.6rem 1rem;
}

.tech-stat .tech-stat-num {
    font-size: clamp(1.8rem, 2.4vw, 2.4rem);
    font-weight: 800;
    color: var(--cw-navy);
    background: var(--cw-gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    margin-bottom: .3rem;
}

.tech-stat p {
    font-size: .88rem;
    color: var(--cw-text-dim);
    margin: 0;
    font-weight: 600;
}

/* ---- Intro / two-column ---- */
.tech-intro img {
    width: 100%;
    border-radius: var(--cw-radius-lg);
    box-shadow: var(--cw-shadow-soft);
}

.tech-intro h2 {
    font-size: clamp(1.7rem, 2.6vw, 2.2rem) !important;
    font-weight: 800;
    color: var(--cw-navy);
    letter-spacing: -.01em;
    margin-bottom: 1rem;
}

.tech-intro p {
    color: var(--cw-text-dim);
    font-size: 1.02rem;
    line-height: 1.75;
}

.tech-intro .tech-points {
    list-style: none;
    padding: 0;
    margin: 1.2rem 0 0;
}

.tech-intro .tech-points li {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    font-size: .95rem;
    padding: 8px 0;
    border-bottom: 1px solid var(--cw-border-soft);
}

.tech-intro .tech-points li:last-child {
    border-bottom: none;
}

.tech-intro .tech-points li i {
    color: var(--cw-green);
    margin-top: 3px;
    font-size: 13px;
}

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

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

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

.tech-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);
}

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

.tech-card .tech-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;
    overflow: hidden;
}

.tech-card .tech-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.tech-card h3,
.tech-card h4 {
    font-size: 1.08rem !important;
    font-weight: 700;
    color: var(--cw-navy);
    margin-bottom: .5rem;
}

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

.tech-card .tech-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;
}

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

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

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

/* ---- Process timeline ---- */
.tech-process {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: .9rem;
    position: relative;
}

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

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

.tech-process-step .tech-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;
}

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

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

/* ---- Technology strip ---- */
.tech-tech-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}

.tech-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);
}

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

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

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

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

/* ---- Case study / portfolio cards ---- */
.tech-case-card {
    background: #fff;
    border: 1px solid var(--cw-border);
    border-radius: var(--cw-radius-md);
    overflow: hidden;
    box-shadow: var(--cw-shadow-soft);
    transition: transform .25s var(--cw-ease), box-shadow .25s var(--cw-ease);
}

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

.tech-case-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}

.tech-case-card .tech-case-body {
    padding: 1.4rem;
}

.tech-case-card h3 {
    font-size: 1.05rem !important;
    font-weight: 700;
    color: var(--cw-navy);
    margin-bottom: .4rem;
}

.tech-case-card p {
    color: var(--cw-text-dim);
    font-size: .9rem;
    margin-bottom: .8rem;
}

.tech-case-card .tech-case-tag {
    display: inline-block;
    background: var(--cw-bg-soft);
    color: var(--cw-green-dark);
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: .6rem;
}

.tech-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;
}

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

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

/* ---- FAQ heading (accordion body reuses sitewide .servicefaq styles) --- */
.tech .service_headings {
    max-width: 720px;
    margin: 0 auto 2rem;
    text-align: center;
}

/* ---- Final CTA banner ---- */
.tech-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);
}

.tech-cta h2 {
    font-size: clamp(1.5rem, 2.6vw, 2rem) !important;
    font-weight: 800;
    margin-bottom: .8rem;
    color: #fff;
}

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

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

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

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

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

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

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

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

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

    /* Clears the fixed mobile/tablet header (~96px tall, active below
       the lg breakpoint). */
    .tech .tech-hero {
        padding-top: 5rem;
    }
}

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

    .tech-grid-3,
    .tech-grid-2,
    .tech-grid-4,
    .tech-tech-grid,
    .tech-stats,
    .tech-trust {
        grid-template-columns: 1fr;
    }

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

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

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

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