/* ============================================
   THE CLIMATE LEDGER — SERVICES V3 STYLES
   Fresh Light Green Executive Aesthetic
   ============================================ */

.services-page {
    padding-top: 100px;
    padding-bottom: 60px;
}

/* --- CONTROLS BAR: TABS & LIVE SEARCH --- */
.services-controls-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.services-search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(4, 32, 26, 0.85);
    border: 1.5px solid rgba(110, 231, 183, 0.35);
    border-radius: 9999px;
    padding: 0.65rem 1.35rem;
    gap: 0.75rem;
    min-width: 320px;
    box-shadow: 0 8px 25px rgba(0, 20, 16, 0.35);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.services-search-box:focus-within {
    border-color: #34d399;
    box-shadow: 0 0 25px rgba(52, 211, 153, 0.4);
}

.services-search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    width: 100%;
}

.services-search-box input::placeholder {
    color: #a7f3d0;
    font-weight: 450;
}

/* --- SERVICES GRID --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 1.5rem 0;
    align-items: stretch;
}

/* --- SERVICE CARD FULL --- */
.service-card-full {
    position: relative;
    padding: 2.25rem 2rem;
    background: linear-gradient(145deg, #093c33 0%, #052720 100%) !important;
    border: 1px solid rgba(110, 231, 183, 0.28) !important;
    border-radius: 20px;
    box-shadow: 0 16px 45px -4px rgba(0, 20, 16, 0.45) !important;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.service-card-full:hover {
    border-color: rgba(110, 231, 183, 0.55) !important;
    transform: translateY(-8px);
    box-shadow: 0 24px 60px -4px rgba(0, 20, 16, 0.65), 0 0 28px rgba(110, 231, 183, 0.22) !important;
}

.service-card-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0fa98f, #2dd4bf, #34d399);
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.service-card-full:hover .service-card-glow {
    opacity: 1;
    box-shadow: 0 0 15px rgba(52, 211, 153, 0.8);
}

/* Header Bar */
.service-card-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.service-category-badge-v2 {
    display: inline-block;
    padding: 0.32rem 0.85rem;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(110, 231, 183, 0.4);
    color: #6ee7b7;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 9999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.service-category-badge-v2.recurring-badge {
    background: rgba(14, 165, 233, 0.2);
    border-color: rgba(125, 211, 252, 0.45);
    color: #7dd3fc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.service-timeline-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #a7f3d0;
    background: rgba(4, 30, 25, 0.85);
    border: 1px solid rgba(110, 231, 183, 0.3);
    padding: 0.28rem 0.75rem;
    border-radius: 6px;
    font-family: var(--font-mono, monospace);
}

/* Title & Description */
.service-card-title {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.35;
    color: #ffffff !important;
    margin-bottom: 0.75rem;
    transition: color 0.2s ease;
}

.service-card-full:hover .service-card-title {
    color: #34d399 !important;
}

.service-card-full .service-desc {
    font-size: 0.96rem;
    color: #e2f8f4 !important;
    font-weight: 450;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

/* Deliverables Box */
.service-deliverables-box {
    margin-bottom: 1.25rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(110, 231, 183, 0.18);
}

.deliverables-label {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6ee7b7;
    margin-bottom: 0.5rem;
}

.deliverables-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.deliverable-chip {
    font-size: 0.75rem;
    font-weight: 700;
    color: #6ee7b7;
    background: rgba(16, 185, 129, 0.18);
    border: 1px solid rgba(110, 231, 183, 0.35);
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    letter-spacing: 0.02em;
}

/* Includes Preview */
.service-includes-preview {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
    padding: 0.9rem 1.1rem;
    background: rgba(4, 30, 25, 0.85);
    border: 1px solid rgba(110, 231, 183, 0.22);
    border-radius: 12px;
}

.include-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: #e2f8f4;
    line-height: 1.5;
}

.include-check {
    color: #34d399;
    font-weight: 900;
    font-size: 0.92rem;
    flex-shrink: 0;
    margin-top: -1px;
}

/* Card Footer & Book Action */
.service-card-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(110, 231, 183, 0.18);
}

.btn-book-service {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.9rem 1.35rem;
    background: linear-gradient(135deg, #0fa98f 0%, #10b981 100%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff !important;
    font-weight: 800;
    font-size: 0.95rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 18px rgba(0, 20, 16, 0.4);
}

.btn-book-service:hover {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    border-color: #34d399;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
}

.btn-book-service svg {
    transition: transform 0.25s ease;
}

.btn-book-service:hover svg {
    transform: translateX(4px);
}

.btn-book-service.recurring-btn {
    background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.25);
}

.btn-book-service.recurring-btn:hover {
    background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%);
    border-color: #7dd3fc;
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.35);
}

.service-ideal-chip {
    font-size: 0.76rem;
    color: #a7f3d0;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(110, 231, 183, 0.3);
    padding: 0.28rem 0.65rem;
    border-radius: 6px;
    max-width: 100%;
    line-height: 1.4;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.deliverable-chip.recurring-chip {
    color: #0369a1;
    background: rgba(14, 165, 233, 0.08);
    border-color: rgba(14, 165, 233, 0.22);
}

.service-scope-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.85rem;
    margin-top: 0.5rem;
    margin-bottom: 0.6rem;
    background: rgba(255, 255, 255, 0.6);
    border: 1px dashed rgba(5, 150, 105, 0.3);
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #059669;
    cursor: pointer;
    transition: all 0.2s ease;
}

.service-scope-toggle:hover {
    background: rgba(5, 150, 105, 0.08);
    border-color: #059669;
    color: #064e3b;
}

.service-scope-toggle svg {
    transition: transform 0.3s ease;
}

.service-scope-toggle.active svg {
    transform: rotate(180deg);
}

.service-full-scope-drawer {
    display: none;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    background: rgba(240, 253, 244, 0.9);
    border: 1px solid rgba(5, 150, 105, 0.2);
    border-radius: 10px;
    font-size: 0.82rem;
    animation: fadeIn 0.25s ease;
}

.service-full-scope-drawer.open {
    display: block;
}

.drawer-full-desc {
    font-size: 0.82rem;
    color: #374151;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.drawer-subheading {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #064e3b;
    margin-bottom: 0.4rem;
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    .services-controls-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .services-search-box {
        min-width: 100%;
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    .service-card-full {
        padding: 1.75rem 1.5rem;
    }
}
