/* SECTION SPACING */
.section-services {
    background: #f4f7fb;
    padding-top: 8rem !important; /* increased top padding as requested */
    padding-bottom: 7rem;
}

/* Ensure padding is preserved even when the section directly follows the info-strip.
   There is a rule in info-strip.css that sets `.info-strip + .section { padding-top: 0 !important; }`
   which can cancel this value. Use a more specific selector to restore the spacing. */
.info-strip + .section.section-services {
    padding-top: 8rem !important;
}

/* TITLE */
.section-services .section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 5.5rem;
    color: #1e293b;
    font-weight: var(--weight-bold);
    position: relative;
}

.section-services .section-title::before {
    content: "";
    position: absolute;
    bottom: -0.8rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 5px;
    border-radius: 8px;
    background: linear-gradient(90deg, #7f1d1d, #b91c1c);
}

/* GRID */
.services-grid {
    display: grid;
    gap: 2rem;
    margin-top: 1.5rem; /* extra space below the title */
}

@media (min-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* CARDS */
.service-card {
    background: #ffffff;
    padding: 1.5rem; /* a bit tighter like the example */
    border-radius: 0.75rem; /* rounded-xl feel */
    box-shadow: 0 10px 20px rgba(2,6,23,0.06);
    border: 1px solid #f1f5f9;
    transition: transform .18s ease, box-shadow .18s ease;
    position: relative; /* allow absolute toggle button */
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(2,6,23,0.08);
}

/* HEADER WITH TOGGLE */
.service-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.service-title {
    font-size: 1.15rem;
    font-weight: var(--weight-bold);
    margin: 0;
}

/* TOGGLE BUTTON */
.service-toggle-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #9ca3af; /* gray-400 */
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 9999px;
    transition: color .16s ease, transform .16s ease;
}

.service-toggle-btn:hover {
    color: #6b7280; /* gray-500 */
    transform: translateY(-2px);
}

/* Idle pulsing ring (matches hero CTA pulse but inverted for dark ring) */
/* Remove previous pulsing/ring behavior; keep toggle simple and minimal */

/* Hide legacy CSS-drawn chevron if present */
.chevron { display: none; }

/* Inline SVG inside button will pick up currentColor for stroke */
.service-toggle-btn .toggle-icon {
    width: 20px;
    height: 20px;
    display: block;
    transition: transform .22s ease, color .16s ease;
    color: inherit;
}

/* Rotate the icon when the card is expanded */
.service-card.expanded .service-toggle-btn .toggle-icon {
    transform: rotate(180deg);
    color: #374151; /* slightly darker when active */
}

/* If you later want the expanded state to invert background, you can add styles here. */

/* ALWAYS VISIBLE SUMMARY */
.service-summary {
    margin-top: 1rem;
    color: #475569;
    line-height: 1.55;
}

/* EXPANDABLE CONTENT */
.service-extra {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all .35s ease;
}

.service-card.expanded .service-extra {
    max-height: 300px;
    opacity: 1;
    margin-top: 1rem;
}

.service-extra p {
    color: #475569;
    line-height: 1.55;
}
