/* =============================================================================
   Figtree Systems — Who We Serve
   Scoped to .wws-page. Uses the global --fg-* design tokens.
   Industries grid + Lines of business list (requested by Michele).
   ============================================================================= */

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

.wws-page section { position: relative; }

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

.wws-page [id] { scroll-margin-top: calc(var(--fg-header-h) + 1rem); }

/* ---------------------------------------------------------------- HERO */
.wws-hero {
    background: radial-gradient(ellipse at 50% 120%, #1f5c40 0%, #16452f 70%);
    padding-block: clamp(3.5rem, 9vw, 6rem);
    text-align: center;
    color: #fff;
}

.wws-hero__inner {
    max-width: 820px;
    margin-inline: auto;
    padding-inline: clamp(1rem, 5vw, 2rem);
}

.wws-hero h1 {
    font-family: 'Raleway', sans-serif;
    font-weight: 800;
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    line-height: 1.15;
    color: #fff;
    margin: 0 0 1rem;
}

.wws-hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: #d6ecd1;
    margin: 0 0 2rem;
}

.wws-hero__jump {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.wws-hero__jump a {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.3rem;
    border: 1px solid rgba(201, 243, 111, 0.55);
    border-radius: 999px;
    color: #fff;
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.wws-hero__jump a:hover,
.wws-hero__jump a:focus-visible {
    background: var(--fg-lime);
    border-color: var(--fg-lime);
    color: var(--fg-green-900);
}

/* Hero: title band on its own, then the client-locations map underneath with
   nothing over it (map moved here from Contact Us; title made separate —
   both requested by Michele). */
.wws-hero--map {
    padding: 0;
    background: #16452f;
}

.wws-hero--map .wws-hero__inner {
    padding-block: clamp(2rem, 4vw, 3rem) clamp(0.75rem, 1.5vw, 1.25rem);
    text-align: center;
}

.wws-hero--map h1 {
    font-size: clamp(2.2rem, 4.2vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: -0.01em;
    margin-bottom: 0.9rem;
}

.wws-hero--map .wws-hero__subtitle {
    font-size: clamp(0.98rem, 1.4vw, 1.15rem);
    line-height: 1.6;
    color: #e3f3e6;
    margin: 0 auto;
    max-width: 44ch;
}

.wws-hero--map .wws-hero__subtitle::before {
    content: "";
    display: block;
    width: 56px;
    height: 3px;
    border-radius: 2px;
    background: var(--fg-lime);
    margin: 0 auto 1rem;
}

.wws-hero__map {
    display: block;
    width: 100%;
    /* Shorter band (requested by Michele): trims only the empty Arctic sea at
       the top and the far south at the bottom — every label and dot stays in view */
    height: clamp(220px, 27vw, 420px);
    object-fit: cover;
    object-position: 50% 58%;
    /* soft fade where the map meets the title band */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 10%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 10%);
}

/* ---------------------------------------------------------------- SHARED HEADING */
.wws-heading {
    font-family: 'Raleway', sans-serif;
    font-weight: 800;
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    color: var(--fg-green-deeper);
    text-align: center;
    margin: 0 0 2.5rem;
}

.wws-heading--light { color: #fff; }

/* ---------------------------------------------------------------- INDUSTRIES + LINES (combined, tabbed) */
.wws-combo {
    background: #fff;
    padding-block: clamp(3.5rem, 8vw, 5.5rem);
}

.wws-combo__wrap {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.6fr);
    gap: clamp(2rem, 5vw, 3.75rem);
    align-items: start;
}

.wws-combo__lede { position: sticky; top: calc(var(--fg-header-h) + 1.5rem); }

.wws-combo__bar {
    display: block;
    width: 64px;
    height: 4px;
    border-radius: 2px;
    background: var(--fg-green);
    margin-bottom: 1.4rem;
}

.wws-heading--left { text-align: left; margin-bottom: 1rem; }

.wws-combo__lede p {
    font-size: 1.06rem;
    line-height: 1.7;
    color: #444;
    margin: 0 0 1.75rem;
}

.wws-combo__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0 0 1.9rem;
}

.wws-combo__stats > div {
    padding: 0.9rem 0.8rem;
    background: var(--fg-green-pale);
    border: 1px solid var(--fg-green-light);
    border-radius: calc(var(--fg-radius) * 2);
}

.wws-combo__stats dt {
    font-family: 'Raleway', sans-serif;
    font-weight: 800;
    font-size: 1.9rem;
    line-height: 1;
    color: var(--fg-green);
    margin-bottom: 0.35rem;
}

.wws-combo__stats dd {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.35;
    color: #555;
}

.wws-combo__cta { font-size: 0.95rem; padding: 0.8rem 1.6rem; }

/* Tabs — only shown once JS has run; without JS both lists show, each with its own heading */
.wws-tabs {
    display: none;
    gap: 0.35rem;
    padding: 0.35rem;
    margin-bottom: 1.25rem;
    background: var(--fg-green-pale);
    border: 1px solid var(--fg-green-light);
    border-radius: 999px;
    width: max-content;
    max-width: 100%;
}

.wws-combo--js .wws-tabs { display: flex; }
.wws-combo--js .wws-panel__heading { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wws-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 1.25rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--fg-green-deeper);
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 0.98rem;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.wws-tab:hover { background: #fff; }

.wws-tab[aria-selected="true"] {
    background: linear-gradient(135deg, var(--fg-green-700), var(--fg-green-600));
    color: #fff;
    box-shadow: 0 4px 12px rgba(33, 106, 79, 0.25);
}

.wws-tab:focus-visible { outline: 2px solid var(--fg-green); outline-offset: 2px; }

.wws-tab__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.6rem;
    height: 1.6rem;
    padding: 0 0.4rem;
    border-radius: 999px;
    background: var(--fg-green-light);
    color: var(--fg-green-deeper);
    font-size: 0.8rem;
}

.wws-tab[aria-selected="true"] .wws-tab__count { background: var(--fg-lime); color: var(--fg-green-900); }

.wws-panel + .wws-panel { margin-top: 2.5rem; }
.wws-combo--js .wws-panel + .wws-panel { margin-top: 0; }
.wws-panel { scroll-margin-top: calc(var(--fg-header-h) + 1rem); }

.wws-panel__heading {
    font-family: 'Raleway', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--fg-green-deeper);
    margin: 0 0 0.75rem;
}

.wws-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2rem;
    border-top: 1px solid var(--fg-green-light);
}

.wws-panel:not([hidden]) .wws-list { animation: wws-fade 0.25s ease; }
@keyframes wws-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .wws-panel:not([hidden]) .wws-list { animation: none; } }

.wws-list__item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.95rem 0.25rem;
    border-bottom: 1px solid var(--fg-green-light);
}

.wws-list__icon {
    flex: 0 0 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--fg-green-light);
    color: var(--fg-green);
}

.wws-list__icon svg { width: 22px; height: 22px; }

.wws-list__icon--tick { background: var(--fg-lime); color: var(--fg-green-900); }
.wws-list__icon--tick svg { width: 18px; height: 18px; }

.wws-list__name {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 1.03rem;
    line-height: 1.35;
    color: var(--fg-green-deeper);
}

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

.wws-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;
}

.wws-contact-strip__cta:hover,
.wws-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);
}

/* ---------------------------------------------------------------- RESPONSIVE */
@media (max-width: 900px) {
    .wws-combo__wrap { grid-template-columns: 1fr; }
    .wws-combo__lede { position: static; }
}

@media (max-width: 640px) {
    .wws-list { grid-template-columns: 1fr; }
    .wws-tabs { width: 100%; }
    .wws-tab { flex: 1 1 0; justify-content: center; padding-inline: 0.75rem; font-size: 0.92rem; }
}

@media (max-width: 420px) {
    .wws-combo__stats { grid-template-columns: 1fr 1fr; }
    .wws-contact-strip__cta { width: 100%; }
}
.wws-hero__accent { color: var(--fg-lime); }

/* On small screens the map is already short, so show it whole (no side crop) */
@media (max-width: 820px) {
    .wws-hero__map { height: auto; object-fit: initial; }
}
