/* =========================================================
   Hayden Software Solutions: service sub-page components
   Loaded in addition to main.css on the dedicated service
   pages (web-development, custom-software, data-analytics,
   ai-automation). Uses the same design tokens defined in
   main.css (colors, radii, shadows, fonts) - no new palette.
   ========================================================= */

/* -------------------- Service hero -------------------- */

.service-hero {
    padding: 8rem 5% 4.5rem;
    background: var(--gray-wash);
}

.service-hero-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    max-width: 760px;
}

.service-hero h1 {
    font-size: clamp(2.1rem, 4.2vw, 3.1rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    color: var(--gray-dark);
}

.service-hero .lead {
    font-size: 1.15rem;
    color: var(--gray);
    max-width: 62ch;
    margin-bottom: 2rem;
}

.service-hero .hero-actions {
    margin-bottom: 0;
}

/* -------------------- Generic content sections -------------------- */

.service-section {
    padding: 5rem 5%;
    background: var(--white);
}

.service-section--alt {
    background: var(--gray-wash);
}

.service-section .container {
    max-width: 880px;
}

.service-section h2 {
    font-family: var(--font-head);
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 700;
    color: var(--gray-dark);
    margin-bottom: 1.25rem;
}

.service-section > .container > .section-kicker {
    text-align: left;
}

.service-section p {
    color: var(--gray);
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
    line-height: 1.75;
}

.service-section p:last-child {
    margin-bottom: 0;
}

.service-section ul.plain-list {
    margin: 0 0 1.25rem 0;
    padding: 0;
    list-style: none;
}

.service-section ul.plain-list li {
    position: relative;
    padding-left: 1.6rem;
    color: var(--gray);
    font-size: 1.02rem;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.service-section ul.plain-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--blue);
}

.service-section ul.plain-list li strong {
    color: var(--gray-dark);
}

/* Full-width variant for grids that should use the site's normal container width */
.service-section--wide .container {
    max-width: var(--max-width);
}

/* -------------------- Process steps -------------------- */

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.75rem;
    counter-reset: step;
}

.process-step {
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-md);
    padding: 2rem 1.75rem;
    box-shadow: var(--shadow-sm);
}

.process-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--blue-tint);
    color: var(--blue);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.process-step h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-dark);
    margin-bottom: 0.6rem;
}

.process-step p {
    font-size: 0.96rem;
    margin-bottom: 0;
}

/* -------------------- FAQ -------------------- */

.faq-list {
    max-width: 880px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--gray-light);
    padding: 1.5rem 0;
}

.faq-item:first-child {
    padding-top: 0;
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--gray-dark);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    flex-shrink: 0;
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--blue);
    transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    margin-top: 0.9rem;
    margin-bottom: 0;
    color: var(--gray);
    font-size: 0.98rem;
    line-height: 1.7;
}

/* -------------------- Closing CTA banner -------------------- */

.cta-banner {
    padding: 4.5rem 5%;
    background: linear-gradient(160deg, var(--blue-deep) 0%, #0c2536 100%);
    color: var(--white);
    text-align: center;
}

.cta-banner .container {
    max-width: 640px;
}

.cta-banner h2 {
    font-family: var(--font-head);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.cta-banner .hero-actions {
    justify-content: center;
    margin-top: 0;
}

.cta-banner .cta-secondary {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.35);
}

.cta-banner .cta-secondary:hover {
    border-color: var(--white);
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

/* -------------------- Related services -------------------- */

.related-services-title {
    text-align: center;
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    font-weight: 700;
    margin-bottom: 2.5rem;
    color: var(--gray-dark);
}

@media (max-width: 768px) {
    .service-hero {
        padding-top: 7rem;
    }
}
