/**
 * =============================================================================
 * SERVICES SECTION STYLES
 * =============================================================================
 * 
 * File:        css/services-styles.css
 * Version:     1.4.0
 * Edited by:   TW-LLC/DM/C
 * Theme:       Tractor Works Child Theme
 * 
 * Purpose:     Styles for the Services parent page and individual service pages.
 *              Works with HTML dropped into Elementor HTML widgets.
 * 
 * Previously:  This was in WPCode as "Services Section Styles"
 * 
 * CHANGELOG:
 * 
 * v1.4.0 (May 2026)
 *   - Services hub reduced to three cards (Sports Fields card removed).
 *   - Added .tw-services-grid--three modifier for the three-column hub grid.
 *     The base two-column .tw-services-grid is left intact for any other use.
 *   - Service cards are now flex columns so the "Learn More" links align on a
 *     common bottom baseline despite differing highlight-list lengths.
 *   - Removed the now-unused .tw-service-sports placeholder gradient.
 * 
 * v1.3.0 (January 2026)
 *   - Moved from WPCode to child theme
 *   - Removed redundant :root block (variables inherited from style.css)
 *   - Fixed unclosed bracket in .tw-cta-inner
 * 
 * v1.2.0
 *   - Breadcrumb styles now match project-styles.css
 *   - Removed conflicting button styles
 * 
 * =============================================================================
 */


/* =============================================================================
   1. CONTAINER
   =============================================================================
*/

.tw-services-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}


/* =============================================================================
   2. PAGE INTRO SECTION
   =============================================================================
*/

.tw-services-intro {
    padding: 30px 0 50px;
    background-color: var(--tw-warm-white);
}

.tw-services-intro h1 {
    font-family: var(--tw-font-body);
    font-size: clamp(2.2rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--tw-dark-green);
    margin: 0 0 20px -6px;
}

.tw-services-intro p {
    font-family: var(--tw-font-body);
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--tw-earth-brown);
    max-width: 800px;
    margin: 0;
}


/* =============================================================================
   3. SERVICES GRID
   =============================================================================
*/

.tw-services-grid-section {
    padding: 0 0 60px;
    background-color: var(--tw-warm-white);
}

.tw-services-grid-section .tw-services-container {
    max-width: 100%;
    padding: 0;
}

.tw-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* Three-column variant for the services hub (Estate, Arena, Farm).
   Add the tw-services-grid--three class alongside tw-services-grid on the
   grid element. The base two-column rule above is left untouched so any
   other page using a two-card grid is unaffected. The stacking breakpoint
   for this variant is handled in section 10. */
.tw-services-grid--three {
    grid-template-columns: repeat(3, 1fr);
}


/* =============================================================================
   4. SERVICE CARDS
   =============================================================================
*/

.tw-service-card {
    background-color: var(--tw-cream);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Flex column so the content area can stretch to fill equal-height
       cards and the link can be pinned to the bottom (see section 6). */
    display: flex;
    flex-direction: column;
}

.tw-service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(45, 74, 53, 0.15);
}

/* Card image */
.tw-service-card-image {
    height: 220px;
    overflow: hidden;
    background-color: var(--tw-light-sage);
}

.tw-service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.tw-service-card:hover .tw-service-card-image img {
    transform: scale(1.05);
}

/* Placeholder gradient backgrounds when no image */
.tw-service-estate .tw-service-card-image {
    background: linear-gradient(145deg, var(--tw-earth-brown), var(--tw-tan));
}

.tw-service-arena .tw-service-card-image {
    background: linear-gradient(145deg, var(--tw-dark-green), var(--tw-forest-green));
}

.tw-service-farm .tw-service-card-image {
    background: linear-gradient(145deg, var(--tw-sage-green), var(--tw-light-sage));
}

/* Card content */
.tw-service-card-content {
    padding: 28px;
    /* Fill the remaining card height and stack children vertically so the
       link below can use margin-top:auto to sit at the bottom. */
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.tw-service-card-content h3 {
    font-family: var(--tw-font-body);
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--tw-dark-green);
    margin: 0 0 12px 0;
}

.tw-service-card-content p {
    font-family: var(--tw-font-body);
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--tw-earth-brown);
    margin: 0 0 16px 0;
}


/* =============================================================================
   5. SERVICE HIGHLIGHTS LIST
   =============================================================================
*/

.tw-service-highlights {
    list-style: none;
    margin: 0 0 20px 0;
    padding: 0;
}

.tw-service-highlights li {
    padding: 5px 0 5px 22px;
    position: relative;
    font-family: var(--tw-font-body);
    font-size: 0.9rem;
    color: var(--tw-dark-brown);
}

/* Arrow bullet */
.tw-service-highlights li::before {
    content: '\2192';
    position: absolute;
    left: 0;
    color: var(--tw-forest-green);
}


/* =============================================================================
   6. SERVICE CARD LINK
   =============================================================================
*/

.tw-service-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--tw-font-body);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--tw-forest-green);
    text-decoration: none;
    transition: color 0.3s ease;
    /* Keep the link at its natural width (not stretched by the flex
       column) and pin it to the bottom so links align across cards. */
    align-self: flex-start;
    margin-top: auto;
}

.tw-service-card-link::after {
    content: '\2192';
    transition: transform 0.2s ease;
}

.tw-service-card-link:hover {
    color: var(--tw-dark-green);
}

.tw-service-card-link:hover::after {
    transform: translateX(4px);
}


/* =============================================================================
   7. LASER GRADING CALLOUT
   =============================================================================
*/

.tw-laser-callout {
    padding: 50px 0;
    margin-bottom: 60px;
    background: linear-gradient(135deg, var(--tw-dark-green) 0%, var(--tw-forest-green) 100%);
}

.tw-laser-inner {
    display: flex;
    align-items: center;
    gap: 30px;
}

.tw-laser-icon {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    background-color: var(--tw-tan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--tw-dark-green);
}

.tw-laser-text h3 {
    font-family: var(--tw-font-body);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--tw-warm-white);
    margin: 0 0 8px 0;
}

.tw-laser-text p {
    font-family: var(--tw-font-body);
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--tw-warm-white);
    margin: 0;
}


/* =============================================================================
   8. CTA OVERRIDES FOR SERVICES PAGE
   =============================================================================
   
   These modify the shared CTA styles (from cta-styles.css) specifically
   for services pages where the text is more verbose.
   
*/

/* Slimmer padding for services page CTA */
.tw-services-page .tw-cta {
    padding: 50px 40px;
}

/* Wider text container since services CTA has more text */
.tw-services-page .tw-cta-inner {
    max-width: 800px;
}


/* =============================================================================
   9. INDIVIDUAL SERVICE PAGE STYLES
   =============================================================================
   
   These styles are for the individual service detail pages
   (Estate, Arena, Farm, Sports).
   
*/

.tw-service-hero {
    padding: 80px 0 60px;
    background-color: var(--tw-warm-white);
}

.tw-service-hero h1 {
    font-family: var(--tw-font-body);
    font-size: clamp(2.4rem, 5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--tw-dark-green);
    margin: 0 0 20px 0;
}

.tw-service-hero p {
    font-family: var(--tw-font-body);
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--tw-earth-brown);
    max-width: 700px;
    margin: 0;
}

.tw-service-details {
    padding: 60px 0;
    background-color: var(--tw-cream);
}

.tw-service-details h2 {
    font-family: var(--tw-font-body);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--tw-dark-green);
    margin: 0 0 16px 0;
}

.tw-service-details p {
    font-family: var(--tw-font-body);
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--tw-dark-brown);
}

.tw-service-features {
    padding: 60px 0;
    background-color: var(--tw-warm-white);
}

.tw-service-features ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tw-service-features li {
    padding: 12px 0 12px 28px;
    position: relative;
    font-size: 1.05rem;
    color: var(--tw-dark-brown);
    border-bottom: 1px solid var(--tw-light-tan);
}

.tw-service-features li:last-child {
    border-bottom: none;
}

.tw-service-features li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--tw-forest-green);
    font-weight: 600;
}

.tw-service-cta {
    padding: 70px 0;
    background-color: var(--tw-dark-green);
    text-align: center;
}

.tw-service-cta h2 {
    font-family: var(--tw-font-body);
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    font-weight: 600;
    color: var(--tw-white);
    margin: 0 0 16px 0;
}

.tw-service-cta p {
    font-family: var(--tw-font-body);
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--tw-light-sage);
    max-width: 600px;
    margin: 0 auto 30px auto;
}

/* Buttons on dark background */
.tw-service-cta .tw-btn-primary {
    background-color: var(--tw-tan);
    color: var(--tw-dark-brown);
    border-color: var(--tw-tan);
}

.tw-service-cta .tw-btn-primary:hover {
    background-color: var(--tw-light-tan);
    border-color: var(--tw-light-tan);
}

.tw-service-cta .tw-btn-secondary {
    background-color: transparent;
    color: var(--tw-white);
    border-color: var(--tw-tan);
}

.tw-service-cta .tw-btn-secondary:hover {
    background-color: var(--tw-tan);
    color: var(--tw-dark-brown);
}


/* =============================================================================
   10. RESPONSIVE STYLES
   =============================================================================
*/

@media (max-width: 1024px) {
    
    .tw-services-grid {
        gap: 24px;
    }
    
    .tw-service-card-image {
        height: 180px;
    }
    
}

@media (max-width: 992px) {
    
    /* Three-column hub variant stacks straight to one column here.
       Going through a two-column stage would leave one of the three
       cards orphaned on its own row. This rule sits after the base
       grid rules so it wins for elements carrying both classes. */
    .tw-services-grid--three {
        grid-template-columns: 1fr;
    }
    
}

@media (max-width: 768px) {
    
    .tw-services-intro {
        padding: 40px 0 30px;
    }
    
    .tw-services-grid-section {
        padding: 0 0 40px;
    }
    
    /* Stack to single column */
    .tw-services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .tw-service-card-image {
        height: 200px;
    }
    
    .tw-service-card-content {
        padding: 20px;
    }
    
    /* Laser callout - stack vertically */
    .tw-laser-callout {
        padding: 40px 0;
    }
    
    .tw-laser-inner {
        flex-direction: column;
        text-align: center;
    }
    
    /* Individual service pages */
    .tw-service-hero {
        padding: 50px 0 40px;
    }
    
    .tw-service-details,
    .tw-service-features {
        padding: 40px 0;
    }
    
    .tw-service-cta {
        padding: 50px 0;
    }
    

}