/* =================== SERVICES PAGE STYLES =================== */

/* Page Header Banner */
.page-header {
    background-image: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.85)), url('../assets/about-farm-landscape.jpg');
    background-size: cover;
    background-position: center;
    padding: 100px 20px;
    text-align: center;
    color: var(--text-headings);
    margin-top: 60px;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--background-secondary);
    position: relative;
    padding-bottom: 1.5rem;
    overflow: hidden; /* Important for the max-height transition */
}

.service-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.service-card-content {
    padding: 1.5rem;
}

.service-card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-headings);
}

.service-card-content p {
    font-size: 1rem;
    line-height: 1.6;
}

/* New: Pricing Table Styles */
.price-table-container {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.5s ease;
    margin-top: 0rem;
    padding: 0 1.5rem;
}

.price-table-container.active {
    max-height: 500px; /* A value larger than the table height */
    opacity: 1;
    margin-top: 2rem;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    color: var(--accent-primary);
    font-weight: 600;
}

td {
    color: var(--text-primary);
}

/* New: Styles for the toggle button */
.toggle-details-btn {
    margin: 1rem 1.5rem 0; /* Adjusted margin for better spacing */
    cursor: pointer;
    text-align: center;
}

/* The detailed contact grid styles have been moved to css/contact-details.css 
    to be reused on multiple pages.
*/

/* The detailed contact grid styles have been moved to css/contact-details.css 
    to be reused on multiple pages.
*/
/* Add this new style to services.css */
/* Replace the old .card-buttons style in services.css with this one */
.card-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center; /* This is the key change for vertical alignment */
    gap: 1rem;
    margin-top: 1.5rem;
}