/* ==========================================
   SERVICES CONTAINER & HEADER
   ========================================== */
.services_container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    font-family: "Red Rose";
}

.services_header {
    text-align: center;
    margin-bottom: 50px;
}

.services_header .tagline {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #b5892c; /* Matches your gold/yellow accent subtitle text */
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

.services_header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #111;
    margin: 0 0 15px 0;
    letter-spacing: -0.02em;
}

.services_header p {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ==========================================
   THE SERVICES CARDS GRID
   ========================================== */
.services_grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Split into 2 columns for desktop view */
    gap: 30px;
    width: 100%;
}

/* Base Card Styling using your distinct dark borders */
.service_card {
    background: #ffffff;
    border: 3px solid #111111; /* Sharp dark contrast border from layout snapshots */
    border-radius: 28px;      /* Matches the rounded layout boxes from reviews */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service_card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* Card Media Frame */
.card_image_wrapper {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-bottom: 3px solid #111111;
    background-color: #000;
}

.card_image_wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.4s ease, transform 0.4s ease-in-out;    
}
/* The 'After' image sits on the bottom layer */
.img_after {
    z-index: 1;
    opacity: 1;
}

/* The 'Before' image sits on top, but is completely hidden by default */
.img_before {
    z-index: 2;
    opacity: 0;
}

/* ==========================================
   HOVER TRIGGER LOGIC
   ========================================== */

/* When the user hovers anywhere over the card, fade in the Before image */
.service_card:hover .img_before {
    opacity: 1;
}

/* Optional cinematic zoom effect on the background 'After' image during hover */
.service_card:hover .img_after {
    transform: scale(1.05);
}

/* ==========================================
   OPTIONAL: HOVER TEXT BADGE
   ========================================== */
.hover_badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 3; /* Always stays on top of both images */
    background: rgba(17, 17, 17, 0.75);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 5px 10px;
    border-radius: 6px;
    pointer-events: none; /* Keeps it from interfering with mouse tracking */
    transition: opacity 0.3s ease;
}

/* Fade the indicator badge out when they are actively hovering */
.service_card:hover .hover_badge {
    opacity: 0;
}

/* Card Content Blocks */
.card_content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card_content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 12px 0;
}

.card_content p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

/* Quick Features Bullet Sub-List */
.card_features {
    list-style: none;
    padding: 0;
    margin: auto 0 0 0; /* Pushes list cleanly to the base of the card */
    border-top: 1px dashed #ddd;
    padding-top: 15px;
}

.card_features li {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
}

/* Custom dark list markers to avoid defaults */
.card_features li::before {
    content: "■";
    position: absolute;
    left: 0;
    color: #3a86ff; /* Matches your accent blue highlight */
    font-size: 0.7rem;
    top: 1px;
}

/* ==========================================
   MOBILE MEDIA QUERY AUTO-ADJUSTMENT
   ========================================== */
@media screen and (max-width: 768px) {
    .services_grid {
        grid-template-columns: 1fr; /* Instantly stacks to 1 full-width row on mobile */
        gap: 20px;
    }
    
    .services_header h2 {
        font-size: 2rem;
    }

    .service_card {
        border-radius: 20px; /* Marginally tighter round for mobile proportions */
    }
}