/* ---------- SERVICE DETAILS TEMPLATE ---------- */
.service-details-section {
    padding: 80px 0;
    background: #ffffff;
}

.sd-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Typography */
.sd-eyebrow {
    display: block;
    color: var(--cyan);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.sd-heading {
    font-size: clamp(36px, 4vw, 48px);
    color: var(--ink);
    line-height: 1.2;
    margin-bottom: 30px;
    font-weight: 700;
}

.sd-intro-highlight {
    border-left: 3px solid var(--cyan);
    padding-left: 20px;
    margin-bottom: 40px;
}

.sd-intro-highlight p {
    font-size: 16px;
    color: var(--steel);
    line-height: 1.7;
    margin: 0;
}

/* Accordion Styling (Cemetrix Brand Colors) */
.sd-accordion-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sd-accordion-item {
    background: rgba(63, 167, 154, 0.05); /* Faint Cyan Background */
    border-radius: 8px;
    overflow: hidden;
    transition: 0.3s ease;
}

.sd-accordion-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: transparent;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}

.sd-acc-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--cyan);
    border-radius: 4px;
    transition: 0.3s ease;
}

/* Active Accordion State */
.sd-accordion-item.active {
    background: rgba(63, 167, 154, 0.1);
}

.sd-accordion-item.active .sd-acc-icon {
    background: var(--cyan);
    color: #fff;
}

.sd-accordion-item.active .sd-acc-icon i {
    transform: rotate(90deg); /* Arrow points down */
}

.sd-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.sd-acc-inner {
    padding: 0 25px 25px;
    color: var(--steel-soft);
    line-height: 1.6;
    font-size: 15px;
}

/* Animated Collage Grid */
.sd-collage-container {
    width: 100%;
    height: 100%;
    min-height: 500px;
}

.sd-collage-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
    height: 100%;
    min-height: 500px;
}

.sd-img-slot {
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    transition: opacity 0.5s ease; /* Smooth crossfade when JS swaps images */
}

/* Grid Layout Assignments */
.slot-1 { grid-column: 1; grid-row: 1; }
.slot-2 { grid-column: 1; grid-row: 2; }
.slot-3.tall { grid-column: 2; grid-row: 1 / span 2; }

/* Entry Animation (Bounce + Fade) */
.bounce-fade-on-load {
    animation: bounceFadeIn 1s cubic-bezier(0.28, 0.84, 0.42, 1) forwards;
}

@keyframes bounceFadeIn {
    0% { opacity: 0; transform: scale(0.8) translateY(30px); }
    60% { opacity: 1; transform: scale(1.02) translateY(-10px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

@media (max-width: 960px) {
    .sd-layout { grid-template-columns: 1fr; }
    .sd-collage-grid { min-height: 400px; }
}