/* Services Sheets Section */
.services-sheets {
    padding: 6rem 2.5rem;
    background-color: var(--primary-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Services Sheets Title */
.services-sheets-title {
    font-size: 1rem;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    max-width: 1200px;
    margin: 0 auto;
}

/* Services Category Header */
.services-category-header {
    margin-bottom: 2rem;
    padding: 0.6rem;
}

/* Services Section Headings */
.services-category-title {
    font-size: 2.5rem;
    color: #FFFFFF;
    margin-bottom: 1rem;
    font-weight: 500;
    line-height: 1.2;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.services-category-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1rem;
    font-weight: 700;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.services-category-description {
    font-size: 1rem !important;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* Services Sheets Header */
.services-sheets-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin: 2rem auto 3rem;
    align-items: start;
    max-width: 1200px;
}

.services-sheets-header h2 {
    font-size: 3.5rem;
    font-weight: 500;
    line-height: 1.2;
    color: #FFFFFF;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.services-sheets-header .text-muted {
    opacity: 0.4;
}

.services-sheets-header p {
    font-size: 1.25rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.services-sheets-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Service Section Styles */
.services-section {
    margin-bottom: 4rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 24px;
    padding: 2rem;
    display: grid;
    grid-template-columns: minmax(300px, 2fr) minmax(400px, 3fr);
    gap: 3rem;
    align-items: start;
}

.services-section:last-child {
    margin-bottom: 0;
}

/* Accordion Styles */
.accordions-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.accordion-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: background-color 0.3s;
    width: 100%;
}

.accordion-header {
    padding: 1.5rem 2rem;
    color: #FFFFFF;
    font-size: 1.25rem;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.accordion-header:hover {
    background: rgba(255, 255, 255, 0.1);
}

.accordion-indicator {
    width: 24px;
    height: 24px;
    position: relative;
    transition: transform 0.3s ease;
}

.accordion-indicator::before,
.accordion-indicator::after {
    content: '';
    position: absolute;
    background-color: #fff;
    border-radius: 1px;
    transition: transform 0.3s ease;
}

.accordion-indicator::before {
    width: 2px;
    height: 16px;
    left: 11px;
    top: 4px;
}

.accordion-indicator::after {
    width: 16px;
    height: 2px;
    left: 4px;
    top: 11px;
}

.accordion-item.active .accordion-indicator::before {
    transform: rotate(90deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    background: rgba(255, 255, 255, 0.03);
}

.accordion-item.active .accordion-content {
    max-height: none;
    padding: 1.5rem;
    overflow: visible;
}

/* Table Styles */
.services-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    color: #FFFFFF;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    table-layout: fixed;
}

.services-table th,
.services-table td {
    font-size: 1.1rem;
    font-family: inherit;
    line-height: 1.4;
}

.services-table th {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 500;
    font-size: 1.1rem;
}

.services-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

/* Bold the Service column cells */
.services-table td[data-label="Service"] {
    font-weight: 700;
    color: #FFFFFF;
}

.services-table tr:last-child td {
    border-bottom: none;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .services-sheets {
        padding: 5rem 2rem;
    }

    .services-sheets-header {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 0.6rem;
    }

    .services-sheets-header h2 {
        font-size: 3rem;
    }

    .services-category-title {
        font-size: 2.25rem;
    }
}

@media (max-width: 900px) {
    .services-section {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1.5rem;
    }

    .accordions-container {
        max-width: 600px;
        margin: 0 auto;
        overflow: visible;
    }

    .accordion-content {
        overflow: visible;
    }
}

@media (max-width: 768px) {
    .services-sheets {
        padding: 4rem 1.5rem;
    }

    .services-sheets-header h2 {
        font-size: 2.5rem;
    }

    .services-category-title {
        font-size: 2rem;
    }

    .services-category-subtitle {
        font-size: 1.125rem;
    }

    .accordion-header {
        padding: 1rem 1.25rem;
        font-size: 1.125rem;
    }

    .accordion-item.active .accordion-header {
        margin-bottom: 0.5rem;
    }

    .accordion-indicator {
        width: 20px;
        height: 20px;
    }

    .accordion-indicator::before {
        height: 14px;
        left: 9px;
        top: 3px;
    }

    .accordion-indicator::after {
        width: 14px;
        left: 3px;
        top: 9px;
    }

    /* Mobile Table Styles */
    .services-table {
        display: block;
        font-size: 17.5px;
    }

    .services-table thead {
        display: none;
    }

    .services-table tbody {
        display: block;
        width: 100%;
    }

    .services-table tr {
        display: block;
        margin-bottom: 1rem;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
        padding: 1rem;
    }

    .services-table tr:last-child {
        margin-bottom: 0;
    }

    .services-table td {
        display: block;
        padding: 0.5rem;
        border: none;
        position: relative;
        padding-left: 35%;
        text-align: left;
        min-height: 2.5rem;
        font-size: 17.5px !important;
        font-family: -apple-system, "SF Pro Text", "San Francisco", "Helvetica Neue", Helvetica, Arial, sans-serif;
    }

    .services-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 0.5rem;
        width: 30%;
        padding-right: 0.5rem;
        font-weight: 500;
        color: #FFFFFF;
        text-align: left;
        font-size: 16.25px;
    }

    /* Keep Service cells bold in mobile view */
    .services-table td[data-label="Service"] {
        font-weight: 700;
        color: #FFFFFF;
    }

    .services-table td:not(:last-child) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .accordions-container {
        max-width: 450px;
    }

    .services-section {
        padding: 1.25rem;
    }
    .services-category-header {
        margin-bottom: 0rem;   
    }
}

@media (max-width: 480px) {
    .services-sheets {
        padding: 3rem 0.75rem;
    }

    .services-sheets-header h2 {
        font-size: 2rem;
    }

    .services-category-title {
        font-size: 1.75rem;
    }

    .services-category-subtitle {
        font-size: 1rem;
    }

    .services-section {
        padding: 1rem 0.75rem;
        margin: 0 -0.25rem 2rem;
    }

    .accordion-item {
        border-radius: 8px;
    }

    .accordion-header {
        padding: 0.875rem 1rem;
        font-size: 1rem;
    }

    .accordion-item.active .accordion-header {
        margin-bottom: 0.375rem;
    }

    .accordion-indicator {
        width: 18px;
        height: 18px;
    }

    .accordion-indicator::before {
        height: 12px;
        left: 8px;
        top: 3px;
    }

    .accordion-indicator::after {
        width: 12px;
        left: 3px;
        top: 8px;
    }

    .accordion-item.active .accordion-content {
        padding: 0.875rem;
    }

    .services-table td {
        font-size: 15px !important;
        padding: 0.75rem 0.5rem 0.75rem 32%;
    }

    .services-table td::before {
        font-size: 15px;
        width: 28%;
    }

    .accordions-container {
        width: calc(100% + 0.5rem);
        margin: 0 -0.25rem;
    }
}
