/* --- HERO SECTION --- */
.hero-section {
    position: relative;
    /* Dummy Image: Judge Hammer / Legal Background */
    background-image: url('https://images.unsplash.com/photo-1436450412740-6b988f486c6b?auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 120px 0;
    color: #fff;
    text-align: center;
}

/* Dark Overlay to make text readable over the image */
.hero-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 37, 48, 0.85); /* Dark Navy transparency */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2; /* Ensures text is above overlay */
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 800;
}

.hero-content .highlight {
    color: #f39c12; /* Orange Accent */
}

.hero-content p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 35px;
    color: #e0e0e0;
}

/* Buttons */
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn {
    padding: 14px 35px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: #f39c12;
    color: #000;
    border: 2px solid #f39c12;
}

.btn-primary:hover {
    background-color: #d68910;
    border-color: #d68910;
}

.btn-outline {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-outline:hover {
    background-color: #fff;
    color: #1a2530;
}

/* --- SECTIONS COMMON --- */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: #1a2530;
    font-weight: 700;
}

.divider {
    width: 80px;
    height: 4px;
    background-color: #f39c12;
    margin: 15px auto;
}

/* --- SERVICES GRID --- */
.services-section {
    padding: 80px 0;
    background-color: #f4f6f8; /* Light Grey Background */
}

.grid-3 {
    display: flex;              /* Changed from grid to flex */
    flex-wrap: wrap;            /* Allows items to wrap to next line */
    justify-content: center;    /* This centers the content! */
    gap: 30px;
    margin: 0 auto;             /* centers the container itself */
}

.service-card {
    /* Flex Growth Logic: */
    flex: 1 1 320px;            /* Grow: 1, Shrink: 1, Basis: 320px */
    max-width: 380px;           /* Prevents orphan cards from becoming too wide */
    
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
}

/* Ensure the image fills the width properly */
.card-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-content {
    padding: 25px;
    text-align: center;
}

.card-content h3 {
    margin-bottom: 10px;
    color: #1a2530;
    font-size: 1.5rem;
}

.card-content p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.read-more {
    color: #f39c12;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* --- MODERN WHY CHOOSE US --- */
.why-choose-us {
    padding: 80px 0;
    background-color: #ffffff;
}

/* The Grid Container */
.features-grid {
    display: grid;
    /* Creates a responsive grid: 1 column on mobile, up to 4 on desktop */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Individual Card Styling */
.feature-card {
    background: #ffffff;
    padding: 35px 25px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #eee; /* Subtle border */
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Hover Effect: Lift up + Shadow */
.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

/* Modern Icon Circle */
.icon-box {
    width: 70px;
    height: 70px;
    background-color: #fff4e0; /* Very light orange background */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto; /* Centers the icon */
    color: #f39c12; /* Icon Color */
    transition: transform 0.3s ease;
}

/* Icon Animation on Hover */
.feature-card:hover .icon-box {
    background-color: #f39c12;
    color: #ffffff; /* Icon turns white on hover */
    transform: scale(1.1);
}

.icon-box svg {
    width: 32px;
    height: 32px;
}

/* Typography */
.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: #1a2530;
    font-weight: 700;
}

.feature-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

/* --- MOBILE ADJUSTMENTS --- */
@media screen and (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        padding: 0 30px;
    }


    .features-grid {
        grid-template-columns: 1fr; /* Stack cards vertically on mobile */
        gap: 20px;
    }
    
    .feature-card {
        padding: 30px 20px; /* Slightly less padding on mobile */
    }

    .service-card {
        max-width: 100%; /* On mobile, let cards fill the full width */
    }
}