/**
 * Qulbay Child Theme — Services Page Styles
 * Template: page-services.php
 * RUN_ID: QLB-PUBLIC-PAGES-01
 * Version: 1.0.0
 *
 * Design system: staff-portal.css truck-art tokens.
 * No inline CSS — all rules here.
 * Font: Poppins (loaded in template <head>)
 */

/* ── Design tokens ─────────────────────────────────────────────────────── */
:root {
    --qlb-svc-deep-purple:  #4B0082;
    --qlb-svc-apple-green:  #8DB600;
    --qlb-svc-yellow:       #FFD700;
    --qlb-svc-pink:         #E91E63;
    --qlb-svc-orange:       #FF5722;
    --qlb-svc-blue:         #00BCD4;
    --qlb-svc-off-white:    #F4F7F2;
    --qlb-svc-text:         #1A1A1A;
    --qlb-svc-gradient: linear-gradient(
        90deg,
        #FFD700 0%,    #FFD700 16.6%,
        #E91E63 16.6%, #E91E63 33.3%,
        #FF5722 33.3%, #FF5722 50%,
        #8DB600 50%,   #8DB600 66.6%,
        #00BCD4 66.6%, #00BCD4 83.3%,
        #4B0082 83.3%, #4B0082 100%
    );
}

/* ── Reset ─────────────────────────────────────────────────────────────── */
body.qlb-services *,
body.qlb-services *::before,
body.qlb-services *::after {
    box-sizing: border-box;
}

body.qlb-services {
    background: var(--qlb-svc-off-white);
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--qlb-svc-text);
    -webkit-font-smoothing: antialiased;
}

/* Hide TT25 chrome */
body.qlb-services .wp-site-blocks > header,
body.qlb-services .wp-site-blocks > footer,
body.qlb-services .site-header,
body.qlb-services .site-footer,
body.qlb-services #masthead,
body.qlb-services #colophon {
    display: none !important;
}
body.qlb-services .wp-site-blocks {
    padding: 0 !important;
    margin: 0 !important;
}

/* ── Truck-art rainbow strip ────────────────────────────────────────────── */
.qlb-svc-truck-border {
    height: 8px;
    background: var(--qlb-svc-gradient);
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
}

/* ── Brand black sticky nav ─────────────────────────────────────────────── */
.qlb-nav {
    position: sticky;
    top: 8px;
    z-index: 1000;
    background: #0b0b0b;
    height: 64px;
    display: flex;
    align-items: center;
}

.qlb-nav .qlb-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.qlb-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.qlb-logo-box {
    width: 40px;
    height: 40px;
    border: 2px solid #ffffff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qlb-logo-box span {
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    font-size: 0.85rem;
    color: #ffffff;
    letter-spacing: 0.05em;
}

.qlb-logo-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    font-size: 1.2rem;
    color: #ffffff;
    letter-spacing: 0.06em;
}

.qlb-nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.qlb-nav-links a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
    transition: color 0.15s, background 0.15s;
    text-decoration: none;
}

.qlb-nav-links a:hover,
.qlb-nav-links a.qlb-nav-active {
    color: #FFD700;
    background: rgba(255, 215, 0, 0.08);
}

.qlb-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.qlb-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
}

.qlb-mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    background: #0b0b0b;
    z-index: 999;
    padding: 16px 20px 24px;
    flex-direction: column;
    gap: 4px;
}

.qlb-mobile-menu.open {
    display: flex;
}

.qlb-mobile-menu a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    font-weight: 600;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    text-decoration: none;
}

.qlb-mobile-menu a:last-child {
    border-bottom: none;
}

@media (max-width: 767px) {
    .qlb-nav-links { display: none; }
    .qlb-hamburger { display: flex; }
}

/* ── Page wrapper ───────────────────────────────────────────────────────── */
.qlb-svc-page {
    padding-top: 8px;
}

/* ── Hero band ──────────────────────────────────────────────────────────── */
.qlb-svc-hero {
    background: var(--qlb-svc-apple-green);
    padding: 28px 5% 56px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.qlb-svc-hero::before {
    content: '🛄';
    position: absolute;
    font-size: 300px;
    opacity: 0.04;
    top: -60px;
    right: -40px;
    pointer-events: none;
    line-height: 1;
}

.qlb-svc-hero-tag {
    display: inline-block;
    background: #ffffff;
    color: var(--qlb-svc-deep-purple);
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.qlb-svc-hero h1 {
    font-family: 'Poppins', sans-serif;
    color: #ffffff;
    font-size: clamp(1.7rem, 4vw, 2.7rem);
    font-weight: 800;
    margin: 0 0 12px;
    line-height: 1.15;
}

.qlb-svc-hero h1 em {
    color: #0b0b0b;
    font-style: normal;
}

.qlb-svc-hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    max-width: 520px;
    margin: 0;
    line-height: 1.65;
}

/* ── Cards section ──────────────────────────────────────────────────────── */
.qlb-svc-section {
    max-width: 1100px;
    margin: -32px auto 0;
    padding: 0 5% 72px;
    position: relative;
    z-index: 10;
}

/* ── Service cards grid ─────────────────────────────────────────────────── */
.qlb-svc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.qlb-svc-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px 28px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.09);
    border-top: 5px solid var(--qlb-svc-deep-purple);
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    position: relative;
    text-decoration: none;
    color: inherit;
}

.qlb-svc-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.13);
    text-decoration: none;
    color: inherit;
}

/* Alternating top border colours */
.qlb-svc-card:nth-child(2) { border-top-color: var(--qlb-svc-pink); }
.qlb-svc-card:nth-child(3) { border-top-color: var(--qlb-svc-orange); }
.qlb-svc-card:nth-child(4) { border-top-color: var(--qlb-svc-blue); }

/* Badge */
.qlb-svc-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 999px;
    align-self: flex-start;
}

.qlb-svc-badge--yellow {
    background: var(--qlb-svc-yellow);
    color: var(--qlb-svc-deep-purple);
}

.qlb-svc-badge--green {
    background: var(--qlb-svc-apple-green);
    color: #ffffff;
}

/* Price tag */
.qlb-svc-price {
    font-size: 2rem;
    font-weight: 900;
    color: var(--qlb-svc-deep-purple);
    line-height: 1;
}

.qlb-svc-price span {
    font-size: 1rem;
    font-weight: 600;
    color: #888;
    margin-left: 4px;
}

/* Title + desc */
.qlb-svc-card h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--qlb-svc-deep-purple);
    margin: 0;
    line-height: 1.3;
}

.qlb-svc-card p {
    font-size: 14px;
    color: #555;
    margin: 0;
    line-height: 1.6;
    flex: 1;
}

/* CTA button */
.qlb-svc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--qlb-svc-deep-purple);
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 12px 24px;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.18s ease, transform 0.18s ease;
    margin-top: auto;
}

.qlb-svc-btn:hover {
    background: #3a006a;
    transform: translateY(-2px);
    text-decoration: none;
    color: #ffffff;
}

.qlb-svc-btn--ghost {
    background: transparent;
    color: #aaa;
    border: 1.5px solid #ddd;
    cursor: default;
}

.qlb-svc-btn--ghost:hover {
    background: transparent;
    transform: none;
    color: #aaa;
}

/* Coming soon overlay */
.qlb-svc-card--soon {
    opacity: 0.7;
}

/* ── "How it works" strip ───────────────────────────────────────────────── */
.qlb-svc-how {
    background: var(--qlb-svc-deep-purple);
    border-radius: 16px;
    padding: 48px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 48px;
}

.qlb-svc-how::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--qlb-svc-gradient);
    opacity: 0.07;
    pointer-events: none;
}

.qlb-svc-how-tag {
    display: inline-block;
    background: var(--qlb-svc-yellow);
    color: var(--qlb-svc-deep-purple);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 5px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.qlb-svc-how h2 {
    font-family: 'Poppins', sans-serif;
    color: #ffffff;
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-weight: 800;
    margin: 0 0 32px;
}

.qlb-svc-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    position: relative;
    z-index: 1;
}

.qlb-svc-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.qlb-svc-step-num {
    width: 48px;
    height: 48px;
    background: var(--qlb-svc-yellow);
    color: var(--qlb-svc-deep-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.qlb-svc-step p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 13.5px;
    margin: 0;
    line-height: 1.55;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.qlb-svc-footer {
    background: #0b0b0b;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    font-size: 12.5px;
    padding: 24px 20px;
}

.qlb-svc-footer a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: color 0.15s;
}

.qlb-svc-footer a:hover {
    color: var(--qlb-svc-yellow);
}

/* ── Empty state ────────────────────────────────────────────────────────── */
.qlb-svc-empty {
    background: #ffffff;
    border-radius: 14px;
    padding: 48px 32px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
    color: #888;
    font-size: 15px;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .qlb-svc-hero {
        padding: 24px 5% 44px;
        white-space: normal;
    }
    .qlb-svc-hero h1 {
        white-space: normal;
    }
    .qlb-svc-how {
        padding: 32px 20px;
    }
}
