
/* --- Section Styles --- */
.services-section {
    
    padding: 20px 0;
    color: var(--text-primary);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: var(--h2);
    font-weight: 700;
}

.section-header .highlight {
    color: var(--gold-highlight); /* Makes "We Do" pop */
}

/* --- Grid Layout --- */
.services-grid {
    display: grid;
    /* Desktop: 3 Columns */
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Card Component --- */
.service-card {
    background-color: var(--secondary);
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card:hover {
    transform: translateY(-5px); /* Subtle lift on hover */
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* Icon Styling */
.card-icon {
    font-size: 32px;
    color: var(--text-primary);
    margin-bottom: 20px;
    /* Optional: Add a thin border around icon if desired, 
       but the design shows just the icon */
}

/* Typography inside card */
.service-card h3 {
    font-size: var(--h3);
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
    color: var(--text-primary);
    min-height: 50px; /* Ensures alignment even if titles vary in length */
    display: flex;
    align-items: center;
}

.service-card p {
    font-size: var(--p2);
    line-height: 1.6;
    color: var(--text-light);
    opacity: 0.9;
}

/* --- Variables --- */

/* --- Section Layout --- */
.sectors-section {
      margin: 0 auto; /* centers the container horizontally */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
    text-align: center;
    color: var(--primary);
    padding-bottom:12px ;
}


.section-header h2 {
    font-size: var(--h2);
    color: var(--text-primary); /* Gold Text */
    margin-bottom: 40px;
}

.section-header .highlight {
    color: var(--primary-color);
    font-weight: 700;
}

/* --- 1. Navigation Buttons --- */
.sector-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

@media (max-width: 600px) {
    .sectors-section {
        transform: scale(0.8);
        transform-origin: top center;
        width: 100%;
    }
}

@media (max-width: 300px) {
    .sectors-section {
        transform: scale(0.7);
        transform-origin: top center;
        width: 100%;
    }
    .sector-title {
        font-size: var(--h2-small);
    }
    .main-desc {
        font-size: var(--p2);
    }
    .sector-nav {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        justify-items: center;
    }
    .sector-btn{
        padding: 12px ;
        font-size: var(--p3);

    }
    
}

@media (max-width: 300px) {
    .sectors-section {
        transform: scale(0.75);
        transform-origin: top center;
        ;
        width: 100%;
    }
}

.sector-btn {
    border: none;
    background-color: var(--secondary);
    color: #fff; /* White text on yellow buttons */
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.sector-btn img {
    width: 14px;
    height: 14px;
    
}

/* Active State (White bg, Dark text) */
.sector-btn.active {
    background-color: var(--text-primary);
    color: var(--text-dark);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    font-weight: 600;
    transform: translateY(-2px);
}
.sector-btn.active img {
    filter: invert(1); /* Make icon dark on active */
}
.sector-btn:hover {
    transform: translateY(-2px);
}

/* --- 2. Display Card --- */
.sector-display-card {
    background-color: var(--secondary); /* The big beige/gold card */
    border-radius: 30px;
    padding: 60px;
    text-align: left;
    min-height: 500px; /* Prevent jumping height */
    position: relative;
    overflow: hidden;
}

.card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Split text and image */
    gap: 50px;
    align-items: center;
}

/* Left Side Content */
.card-text-content {
    transition: opacity 0.3s ease-in-out;
}

.card-text-content h2 {
    color: #ffffff;
    font-size: var(--h2);
    line-height: 1.2;
    margin-bottom: 10px;
}

.main-desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--p1);
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Feature Boxes */
.features-row {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.feature-box {
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    max-width:217px ;
    padding: 10px;
    flex: 1;
    background-color: rgba(255, 255, 255, 0.1); /* Slight transparency */
}

.feature-box h4 {
    color: #ffffff;
    font-size: var(--h3);
    margin-bottom: 10px;
    font-weight: 600;
}

.feature-box p {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--p3);
    line-height: 1.5;
}

/* CTA Button */
.btn-white {
    display: inline-block;
    background-color: #ffffff;
    color: var(--text-dark);
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.btn-white:hover {
    transform: scale(1.05);
}

/* --- Right Side Visuals --- */
.card-visuals {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-collage {
    position: relative;
    width: 100%;
    height: 100%;
}

.image-collage img {
    position: absolute;
    border-radius: 12px;
    transition: all 0.5s ease;
}

/* The Back Image (slightly hidden) */

/* The Front Image (Main focus) */
.img-front {
    width: 90%;
    bottom: 0;
    left: 6rem;
    
}

/* --- Responsive --- */
@media (max-width: 786px) {
        .card-visuals {
            display: flex;
            justify-content: center;
            align-items: center;
        }
        .img-front {
            margin: 0 auto;
            display: block;
            left: unset;
            position: static;
        }
    .sector-display-card {
        padding: 10px;

    }

    .card-grid {
        display: flex;
        grid-template-columns: 1fr; /* Stack */
        gap: 40px;
        flex-direction: column-reverse;
    }

    .card-visuals {
        height: 300px; /* Smaller height on mobile */
        width: 100%;
    }

    .features-row {
        flex-direction: row;
    }
   
}

/* --- Responsive Adjustments --- */

/* Tablet (2 Columns) */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile (1 Column) */
@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .service-card {
        padding: 30px 20px;
    }
}