/* ============================================================
   Creative Mental Lab — Homepage Supplement
   Extends quantum/styles.css for the agency homepage.
   ============================================================ */

/* ============================================================
   Agency Nav (overrides quantum nav logo colour)
   ============================================================ */
.nav-phone {
    color: var(--accent-blue);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    letter-spacing: 0.01em;
    white-space: nowrap;
    transition: opacity 0.2s;
}
.nav-phone:hover { opacity: 0.75; }

.nav-logo img {
    height: 28px;
    width: auto;
    border-radius: 4px;
    margin-right: 8px;
    vertical-align: middle;
}

/* ============================================================
   Trust / Stats bar
   ============================================================ */
.trust-bar {
    padding: 0;
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
    background: rgba(255,255,255,0.02);
    overflow: hidden;
}

.trust-bar-inner {
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.trust-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 2.5rem;
    border-right: 1px solid var(--border-glass);
    min-width: 160px;
}

.trust-stat:last-child { border-right: none; }

.trust-stat-num {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.trust-stat-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
}

/* ============================================================
   Services section
   ============================================================ */
.services-section {
    padding: var(--section-pad);
    background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-navy) 100%);
}

.services-grid-5 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

/* Last 2 cards centred in the second row */
.services-grid-5 .service-item:nth-child(4) { grid-column: 1 / 2; margin-left: auto; }
.services-grid-5 .service-item:nth-child(5) { grid-column: 2 / 3; }

.service-item {
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.service-item.featured-service {
    border-color: rgba(139,92,246,0.4);
    background: linear-gradient(160deg, rgba(94,162,255,0.06), rgba(139,92,246,0.08));
    box-shadow: 0 0 32px rgba(139,92,246,0.12);
    position: relative;
}

.service-badge {
    position: absolute;
    top: -1px; right: 24px;
    background: var(--grad-primary);
    color: #fff;
    font-size: 0.66rem; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 0 0 8px 8px;
}

.service-icon-wrap {
    width: 46px; height: 46px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.2rem;
    font-size: 1.4rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-glass);
}

.service-item h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.service-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
}

.service-price span {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-dim);
}

.service-features-list {
    flex: 1;
    margin: 1rem 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.service-features-list li {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    line-height: 1.5;
}

.service-features-list li:last-child { border-bottom: none; }

.service-features-list li.hl {
    color: #fbbf24;
    font-weight: 600;
    background: linear-gradient(90deg, rgba(251,191,36,0.06), transparent);
    border-radius: 4px;
    padding-left: 4px;
    margin-left: -4px;
}

.li-check {
    flex-shrink: 0;
    font-size: 0.72rem;
    color: var(--accent-mint);
    margin-top: 0.2em;
}

/* ============================================================
   Work / Portfolio section
   ============================================================ */
.work-section {
    padding: var(--section-pad);
    background: var(--bg-navy);
}

.work-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.work-card {
    padding: 0;
    overflow: hidden;
    position: relative;
    min-height: 340px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.work-card-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.work-card-bg video {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.work-card-bg-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(11,18,38,0.6) 0%, rgba(5,6,13,0.92) 100%);
}

.work-card-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.work-particle {
    position: absolute;
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--accent-violet);
    opacity: 0.5;
    animation: particleFloat 6s ease-in-out infinite;
}

.work-particle:nth-child(1) { top:15%; left:20%; animation-delay:0s; }
.work-particle:nth-child(2) { top:60%; left:70%; animation-delay:1.5s; background:var(--accent-blue); }
.work-particle:nth-child(3) { top:35%; left:55%; animation-delay:3s; background:var(--accent-cyan); }
.work-particle:nth-child(4) { top:75%; left:30%; animation-delay:0.8s; }
.work-particle:nth-child(5) { top:20%; left:80%; animation-delay:2.2s; background:var(--accent-mint); }
.work-particle:nth-child(6) { top:50%; left:10%; animation-delay:4s; }

@keyframes particleFloat {
    0%,100% { transform: translateY(0) scale(1); }
    50%      { transform: translateY(-16px) scale(1.4); }
}

.work-card-content {
    position: relative;
    z-index: 1;
    padding: 2rem;
}

.work-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.65rem; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    margin-bottom: 0.75rem;
    background: rgba(94,162,255,0.15);
    border: 1px solid rgba(94,162,255,0.3);
    color: var(--accent-blue);
}

.work-badge.healthcare { background:rgba(52,211,153,0.12); border-color:rgba(52,211,153,0.3); color:var(--accent-mint); }
.work-badge.ai         { background:rgba(139,92,246,0.12); border-color:rgba(139,92,246,0.3); color:var(--accent-violet); }

.work-card-content h3 {
    font-size: 1.35rem;
    margin-bottom: 0.3rem;
    color: var(--text-primary);
}

.work-location {
    font-size: 0.78rem;
    color: var(--text-dim);
    margin-bottom: 0.85rem;
}

.work-description {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.work-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.work-tag {
    font-size: 0.7rem; font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
}

/* ============================================================
   Why Us
   ============================================================ */
.why-section {
    padding: var(--section-pad);
    background: linear-gradient(180deg, var(--bg-navy) 0%, var(--bg-deep) 100%);
}

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

.why-card {
    padding: 1.75rem 1.5rem;
    text-align: center;
}

.why-icon {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    display: block;
    filter: grayscale(0.2);
}

.why-card h3 {
    font-size: 0.98rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--text-primary);
}

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

/* ============================================================
   Pricing preview section
   ============================================================ */
.pricing-section {
    padding: var(--section-pad);
    background: var(--bg-deep);
    position: relative;
}

.pricing-section::before {
    content: '';
    position: absolute;
    top: 0; left: 50%; transform: translateX(-50%);
    width: 700px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
}

.pricing-cards-home {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    max-width: 960px;
    margin: 0 auto 1.5rem;
}

.pricing-home-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 2rem;
}

/* ============================================================
   Final CTA (agency version)
   ============================================================ */
.agency-cta-section {
    padding: var(--section-pad);
    background: linear-gradient(180deg, var(--bg-navy) 0%, var(--bg-deep) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.agency-cta-section::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 70% 50% at 50% 50%, rgba(94,162,255,0.07) 0%, transparent 70%);
    pointer-events: none;
}

.agency-cta-section h2 { max-width: 680px; margin: 0 auto 1.25rem; position: relative; }
.agency-cta-section .sub { max-width: 520px; margin: 0 auto 2.5rem; position: relative; }
.agency-cta-btns {
    display: flex; flex-wrap: wrap; gap: 1rem;
    justify-content: center; position: relative;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
    .services-grid-5 { grid-template-columns: 1fr 1fr; }
    .services-grid-5 .service-item:nth-child(4),
    .services-grid-5 .service-item:nth-child(5) {
        grid-column: auto;
        margin-left: 0;
    }
    .work-grid    { grid-template-columns: 1fr; }
    .why-grid     { grid-template-columns: 1fr 1fr; }
    .pricing-cards-home { grid-template-columns: 1fr 1fr; }
    .trust-bar-inner { flex-wrap: wrap; }
    .trust-stat { border-right: none; border-bottom: 1px solid var(--border-glass); width: 50%; }
    .trust-stat:nth-child(even) { border-right: none; }
    .trust-stat:nth-child(3),
    .trust-stat:nth-child(4) { border-bottom: none; }
}

@media (max-width: 640px) {
    .services-grid-5  { grid-template-columns: 1fr; }
    .why-grid         { grid-template-columns: 1fr 1fr; }
    .pricing-cards-home { grid-template-columns: 1fr; }
    .trust-stat       { width: 100%; border-right: none; }
    .trust-stat:last-child { border-bottom: none; }
    .agency-cta-btns  { flex-direction: column; align-items: center; }
}
