/* =============================================================================
   Figtree Systems — Technology Services (hub page)
   Scoped to .ts-page. Uses the global --fg-* design tokens.
   ============================================================================= */

.ts-page {
    font-family: 'Open Sans', sans-serif;
    color: var(--fg-text);
    line-height: 1.7;
}

.ts-page section { position: relative; }

/* Shared inner wrapper ------------------------------------------------------- */
.ts-inner {
    max-width: var(--fg-max-w);
    margin-inline: auto;
    padding-inline: clamp(1rem, 5vw, 2rem);
}

/* =============================================================================
   1. HERO
   ============================================================================= */
.ts-hero {
    position: relative;
    background-color: var(--fg-green-deeper);
    background-size: cover;
    background-position: center 30%;
    min-height: 420px;
    display: flex;
    align-items: center;
    padding: 5rem 0 4rem;
}

.ts-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(30, 61, 26, 0.90) 0%,
        rgba(30, 61, 26, 0.72) 55%,
        rgba(30, 61, 26, 0.30) 100%
    );
}

.ts-hero__inner {
    position: relative;
    max-width: 760px;
    margin-inline: auto;
    padding-inline: clamp(1rem, 5vw, 2rem);
    width: 100%;
    text-align: center;
}

.ts-hero h1 {
    font-family: 'Raleway', sans-serif;
    font-weight: 800;
    font-size: clamp(1.8rem, 4.5vw, 2.75rem);
    line-height: 1.2;
    color: #fff;
    margin: 0;
    letter-spacing: 0.01em;
}

/* =============================================================================
   2. SERVICE CARDS
   ============================================================================= */
.ts-cards {
    background: #fff;
    padding: 5rem 0;
}

.ts-cards__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.ts-cards__item {
    background: #fff;
    border: 1px solid var(--fg-green-light);
    border-top: 4px solid var(--fg-green);
    border-radius: calc(var(--fg-radius) * 2);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.ts-cards__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    color: var(--fg-green);
}

.ts-cards__icon svg {
    width: 100%;
    height: 100%;
}

.ts-cards__item h2 {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    margin: 0 0 0.75rem;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.ts-cards__item h2 a {
    color: var(--fg-green-dark);
    text-decoration: none;
}

.ts-cards__item h2 a:hover,
.ts-cards__item h2 a:focus-visible {
    color: var(--fg-green);
    text-decoration: underline;
}

.ts-cards__item p {
    font-size: 0.95rem;
    margin: 0 0 1.25rem;
    line-height: 1.65;
    flex-grow: 1;
}

.ts-cards__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    padding: 0.625rem 1.125rem;
    border-radius: var(--fg-radius-md);
    background: linear-gradient(135deg, var(--fg-green-700), var(--fg-green-600));
    color: var(--fg-surface-strong);
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--fg-green-700) 20%, transparent);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ts-cards__link:hover,
.ts-cards__link:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px color-mix(in srgb, var(--fg-green-700) 28%, transparent);
    color: var(--fg-surface-strong);
}

/* =============================================================================
   3. CONTACT STRIP
   ============================================================================= */
.ts-contact-strip {
    background: var(--fg-off-white);
    padding: 4rem 0;
    text-align: center;
}

.ts-contact-strip__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2.25rem;
    border-radius: var(--fg-radius-md);
    background: linear-gradient(135deg, var(--fg-green-700), var(--fg-green-600));
    color: var(--fg-surface-strong);
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--fg-green-700) 20%, transparent);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ts-contact-strip__cta:hover,
.ts-contact-strip__cta:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px color-mix(in srgb, var(--fg-green-700) 28%, transparent);
    color: var(--fg-surface-strong);
}

/* =============================================================================
   4. FAQ
   ============================================================================= */
.ts-faq {
    background: var(--fg-green-pale);
    padding: 5rem 0;
}

.ts-faq__heading {
    font-family: 'Raleway', sans-serif;
    font-weight: 800;
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    color: var(--fg-text);
    margin: 0 0 0.5rem;
}

.ts-faq__sub {
    color: #555;
    font-size: 1rem;
    margin: 0 0 2.5rem;
}

.ts-faq__list {
    max-width: 820px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ts-faq__item {
    border-bottom: 1px solid var(--fg-green-light);
}

.ts-faq__item:first-child {
    border-top: 1px solid var(--fg-green-light);
}

.ts-faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 0;
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--fg-text);
    cursor: pointer;
    list-style: none;
    user-select: none;
}

/* Remove default browser marker */
.ts-faq__question::-webkit-details-marker { display: none; }
.ts-faq__question::marker { display: none; }

/* +/− icon */
.ts-faq__question::after {
    content: '+';
    flex-shrink: 0;
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--fg-green);
    line-height: 1;
    transition: transform 0.2s ease;
}

.ts-faq__item[open] > .ts-faq__question::after {
    content: '−';
}

.ts-faq__question:hover {
    color: var(--fg-green);
}

.ts-faq__answer {
    padding: 0 0 1.25rem;
}

.ts-faq__answer p {
    margin: 0;
    font-size: 0.97rem;
    line-height: 1.7;
    color: #444;
}

/* =============================================================================
   RESPONSIVE
   ============================================================================= */
@media (max-width: 900px) {
    .ts-cards__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {

    .ts-hero {
        min-height: 320px;
        padding: 3.5rem 0 2.5rem;
    }

    .ts-hero h1 { font-size: 1.5rem; }

    .ts-contact-strip__cta {
        width: 100%;
    }
}
