/* ============================================
   THE CLIMATE LEDGER — SERVICES V3 STYLES
   Trainline Group Executive Theme: White Cards,
   Mint (#00a88f) Accents, Forest Navy (#002326) Headers
   ============================================ */

.services-page {
    padding-top: 0;
    padding-bottom: 80px;
    background-color: #ffffff;
    min-height: 100vh;
}

.services-page .page-hero {
    background: #002326;
    padding: 160px 0 70px;
    text-align: center;
    position: relative;
    color: #ffffff;
}

.services-page .page-hero h1 {
    font-size: clamp(2.4rem, 4.5vw, 3.8rem);
    font-weight: 800;
    color: #ffffff !important;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.services-page .page-hero p {
    color: #e6faf6 !important;
    font-size: 1.15rem;
    max-width: 720px;
    margin: 0.75rem auto 0;
    line-height: 1.7;
}

/* --- 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: 2.5rem;
    margin-bottom: 2.5rem;
}

.services-controls-bar .tabs {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.services-controls-bar .tab {
    padding: 0.65rem 1.4rem;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 9999px;
    background: #ffffff;
    border: 1.5px solid #d1d5db;
    color: #002326;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-body);
}

.services-controls-bar .tab:hover:not(.active) {
    border-color: #00a88f;
    color: #00a88f;
}

.services-controls-bar .tab.active {
    background: #00a88f !important;
    border-color: #00a88f !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(0, 168, 143, 0.3);
}

.services-search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1.5px solid #d1d5db;
    border-radius: 9999px;
    padding: 0.65rem 1.35rem;
    gap: 0.75rem;
    min-width: 320px;
    box-shadow: 0 2px 10px rgba(0, 35, 38, 0.05);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.services-search-box:focus-within {
    border-color: #00a88f;
    box-shadow: 0 0 0 3px rgba(0, 168, 143, 0.18);
}

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

.services-search-box input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

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

/* --- SERVICE CARD FULL --- */
.service-card-full {
    position: relative;
    padding: 2.25rem 2rem;
    background: #ffffff !important;
    border: 1.5px solid #e5e7eb !important;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 35, 38, 0.06) !important;
    transition: transform 0.3s 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: #00a88f !important;
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0, 35, 38, 0.12) !important;
}

.service-card-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #00a88f;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.service-card-full:hover .service-card-glow {
    opacity: 1;
    box-shadow: 0 0 12px rgba(0, 168, 143, 0.6);
}

/* 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: #e6faf6;
    border: 1px solid rgba(0, 168, 143, 0.3);
    color: #007a68;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 9999px;
}

.service-category-badge-v2.recurring-badge {
    background: #e0f2fe;
    border-color: #bae6fd;
    color: #0369a1;
}

.service-timeline-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #4b5563;
    background: #f4f6f5;
    border: 1px solid #e5e7eb;
    padding: 0.28rem 0.75rem;
    border-radius: 6px;
    font-family: var(--font-mono, monospace);
}

.service-meta-tags-row {
    margin-bottom: 0.75rem;
}

.service-ideal-chip {
    font-size: 0.76rem;
    color: #007a68;
    background: #e6faf6;
    border: 1px solid rgba(0, 168, 143, 0.25);
    padding: 0.28rem 0.65rem;
    border-radius: 6px;
    max-width: 100%;
    line-height: 1.4;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
}

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

.service-card-full:hover .service-card-title {
    color: #00a88f !important;
}

.service-card-full .service-desc {
    font-size: 0.95rem;
    color: #4b5563 !important;
    font-weight: 400;
    line-height: 1.65;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

/* Deliverables Box */
.service-deliverables-box {
    margin-bottom: 1.25rem;
    padding-top: 0.85rem;
    border-top: 1px solid #e5e7eb;
}

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

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

.deliverable-chip {
    font-size: 0.75rem;
    font-weight: 600;
    color: #007a68;
    background: #e6faf6;
    border: 1px solid rgba(0, 168, 143, 0.25);
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    letter-spacing: 0.02em;
}

.deliverable-chip.recurring-chip {
    color: #0369a1;
    background: #f0f9ff;
    border-color: #bae6fd;
}

/* Includes Preview */
.service-includes-preview {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 0.9rem 1.1rem;
    background: #f4f6f5;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

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

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

/* Expandable Scope Drawer Toggle */
.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: #f4f6f5;
    border: 1px dashed rgba(0, 168, 143, 0.4);
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #007a68;
    cursor: pointer;
    transition: all 0.2s ease;
}

.service-scope-toggle:hover {
    background: #e6faf6;
    border-color: #00a88f;
    color: #002326;
}

.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: #fafafa;
    border: 1px solid #e5e7eb;
    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: #4b5563;
    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: #002326;
    margin-bottom: 0.4rem;
}

/* Card Footer & Book Action */
.service-card-footer {
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid #e5e7eb;
}

.btn-book-service {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.85rem 1.35rem;
    background: #00a88f !important;
    border: none;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(0, 168, 143, 0.25);
}

.btn-book-service:hover {
    background: #00876c !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 168, 143, 0.4);
}

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

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

.btn-book-service.recurring-btn {
    background: #0284c7 !important;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
}

.btn-book-service.recurring-btn:hover {
    background: #0369a1 !important;
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.35);
}

/* CTA Card in Services */
.cta-section .cta-card {
    background: #002326 !important;
    border: 1px solid rgba(0, 168, 143, 0.35) !important;
    border-radius: 20px;
    padding: 3.5rem 2rem;
    text-align: center;
    box-shadow: 0 16px 45px rgba(0, 35, 38, 0.25);
}

.cta-section .cta-card h2 {
    color: #ffffff !important;
}

.cta-section .cta-card p {
    color: #e6faf6 !important;
}

@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;
    }
}
