/* Office setup section (November 2026): one team for new offices,
   renovations and moves. Uses the colour and font variables from the page :root. */

.office-setup {
    position: relative; overflow: hidden;
    padding: clamp(56px, 6.5vw, 96px) 0 clamp(44px, 5vw, 72px);
    background:
        radial-gradient(70% 60% at 78% 30%, rgba(42, 112, 196, 0.38) 0%, rgba(42, 112, 196, 0) 70%),
        linear-gradient(180deg, #0b2545 0%, #0c2a4e 100%);
    color: var(--white);
}
.office-setup-grid {
    display: grid; grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
    grid-template-areas: "head stage" "steps stage" "actions stage";
    grid-template-rows: auto auto 1fr;
    column-gap: clamp(28px, 4vw, 64px); align-items: start;
}
.office-head { grid-area: head; }
.office-steps { grid-area: steps; }
.office-setup-actions { grid-area: actions; }
.office-stage { grid-area: stage; align-self: center; }

.office-setup .section-tag { color: #8cc4ff; }
.office-setup .section-title { color: var(--white); }
.office-setup .section-title em { color: #8cc4ff; font-style: normal; }
.office-lead { margin-top: 16px; max-width: 56ch; color: rgba(255, 255, 255, 0.78); font-size: 1.04rem; line-height: 1.7; }

.office-steps { display: grid; gap: 4px; margin-top: 24px; list-style: none; }
.office-steps button {
    display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; width: 100%;
    padding: 9px 12px; border: 1px solid transparent; border-radius: 12px;
    background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer;
    transition: background-color .25s, border-color .25s;
}
.office-steps button:hover,
.office-steps button:focus-visible,
.office-steps li.is-current button {
    border-color: rgba(140, 196, 255, 0.35); background: rgba(255, 255, 255, 0.06); outline: none;
}
.office-step-num {
    display: grid; place-items: center; width: 28px; height: 28px; margin-top: 1px;
    border: 1.5px solid rgba(255, 255, 255, 0.32); border-radius: 50%;
    color: rgba(255, 255, 255, 0.85); font-size: 0.8rem; font-weight: 700;
    transition: background-color .35s, border-color .35s, color .35s;
}
.office-steps li.is-done .office-step-num { border-color: var(--accent); background: var(--accent); color: var(--white); }
.office-step-text strong { display: block; color: var(--white); font-size: 0.98rem; font-weight: 700; line-height: 1.35; }
.office-step-text span { display: block; margin-top: 2px; color: rgba(255, 255, 255, 0.66); font-size: 0.88rem; line-height: 1.5; }

.office-setup-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 26px; }
.office-setup-actions .btn { padding: 13px 22px; border-radius: 11px; font-size: 0.95rem; font-weight: 700; }
.office-btn-ghost { border: 1px solid rgba(255, 255, 255, 0.35); background: transparent; color: var(--white); }
.office-btn-ghost:hover { border-color: rgba(255, 255, 255, 0.7); background: rgba(255, 255, 255, 0.08); }

.office-stage { position: relative; margin: 0; }
.office-stage figcaption {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 14px;
    margin-top: 6px; color: rgba(255, 255, 255, 0.55); font-size: 0.8rem; text-align: center;
}
.office-replay {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px;
    border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 99px;
    background: transparent; color: rgba(255, 255, 255, 0.8); font: inherit; font-weight: 600; cursor: pointer;
}
.office-replay:hover, .office-replay:focus-visible { border-color: #8cc4ff; color: var(--white); }
.office-replay svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* Authorised reseller strip */
.office-resellers {
    display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px;
    margin-top: clamp(32px, 4vw, 52px); padding: 18px 22px;
    border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 16px; background: rgba(255, 255, 255, 0.05);
}
.office-resellers-label { color: #8cc4ff; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.office-brands { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 14px 16px; list-style: none; }
.office-brands li { display: flex; flex-direction: column; align-items: center; gap: 8px; }
/* The official logos are dark on light, so each sits on a white card. */
.office-brand-card {
    display: flex; align-items: center; justify-content: center;
    width: 160px; height: 76px; padding: 9px 14px; border-radius: 10px; background: var(--white);
}
.office-brand-card img { display: block; max-width: 100%; height: auto; }
.office-brand-card strong { color: var(--navy); font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
.office-brands small { color: rgba(255, 255, 255, 0.7); font-size: 0.76rem; font-weight: 600; letter-spacing: 0.02em; }
.office-resellers-note { flex: 1 1 260px; color: rgba(255, 255, 255, 0.7); font-size: 0.9rem; line-height: 1.55; }

/* ── The illustration ── */
.office-svg { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--font-body); }
.office-svg polygon { stroke-width: 0.6; stroke-linejoin: round; }
.office-svg [data-l] { transition: opacity .35s ease; }
.office-svg[data-focus] [data-l] { opacity: 0.12; }
.office-svg[data-focus="cabling"] [data-l~="cabling"],
.office-svg[data-focus="network"] [data-l~="network"],
.office-svg[data-focus="wifi"] [data-l~="wifi"],
.office-svg[data-focus="cctv"] [data-l~="cctv"],
.office-svg[data-focus="it"] [data-l~="it"],
.office-svg[data-focus="support"] [data-l~="support"] { opacity: 1; }
.office-svg[data-focus="support"] [data-l] { opacity: 1; }

.os-ghost { fill: none; stroke: #9cc8ff; stroke-opacity: 0.55; stroke-width: 1; stroke-dasharray: 4 5; }

.os-cable {
    fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
    stroke-dasharray: var(--len) var(--len); stroke-dashoffset: var(--len);
    transition: stroke-dashoffset 1.2s cubic-bezier(.4, 0, .2, 1), opacity .35s ease;
}
.os-cable.data { stroke: #1a6ed8; }
.os-cable.cctv { stroke: #0e9f8f; }
.os-cable.fibre { stroke: #f59e0b; stroke-width: 1.9; }
.st-cabling .os-cable.data, .st-cabling .os-cable.cctv, .st-network .os-cable.fibre { stroke-dashoffset: 0; }
.os-riser { opacity: 0; transition: opacity .6s ease; }
.st-cabling .os-riser { opacity: 1; }
.os-riser-line { fill: none; stroke: #1a6ed8; stroke-width: 3; stroke-linecap: round; }

.os-pulse { fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-dasharray: 2 16; opacity: 0; animation: os-flow 1.3s linear infinite; pointer-events: none; }
.os-pulse.data { stroke: #d4e9ff; }
.os-pulse.cctv { stroke: #c4fff6; }
.os-pulse.fibre { stroke: #fff3c4; }
.st-network .os-pulse.data, .st-network .os-pulse.fibre, .st-cctv .os-pulse.cctv { opacity: 1; }
@keyframes os-flow { to { stroke-dashoffset: -18; } }

.os-led { fill: #4a5a6d; transition: fill .4s; }
.st-network .os-led.g { fill: #4ade80; animation: os-blink 1.6s steps(2, jump-none) infinite; }
.st-network .os-led.b { fill: #60a5fa; }
.st-cctv .os-led.o { fill: #fb923c; animation: os-blink 2s steps(2, jump-none) infinite; }
.os-led.d1 { animation-delay: -.4s !important; }
.os-led.d2 { animation-delay: -.9s !important; }
.os-led.d3 { animation-delay: -1.3s !important; }
.os-ap .os-led.b { fill: #94a3b8; }
.st-wifi .os-ap .os-led.b { fill: #38bdf8; }
@keyframes os-blink { 50% { opacity: 0.35; } }

.os-cov { opacity: 0; transition: opacity 1.1s ease; }
.st-wifi .os-cov { opacity: 1; }
.os-ring { fill: none; stroke: #7dd3fc; stroke-width: 1.3; opacity: 0; transform-box: fill-box; transform-origin: center; }
.st-wifi .os-ring { animation: os-ring 2.6s ease-out infinite; }
.st-wifi .os-ring-2 { animation-delay: 1.3s; }
@keyframes os-ring { 0% { transform: scale(0.3); opacity: 0.9; } 100% { transform: scale(1.9); opacity: 0; } }

.os-cone { opacity: 0; transition: opacity .9s ease; }
.st-cctv .os-cone { opacity: 1; }
.os-rec { fill: #64748b; }
.st-cctv .os-rec { fill: #ef4444; animation: os-blink 1.4s steps(2, jump-none) infinite; }

.os-screen { fill: #2c3a4b; transition: fill .6s ease; }
.st-it .os-screen { fill: url(#os-scr); }

.os-card { opacity: 0; transform: translateY(10px); transition: opacity .6s ease, transform .6s ease; }
.os-card > * { pointer-events: none; }
.os-card-bg { fill: #ffffff; }
.os-card-title { fill: var(--navy); font-size: 12px; font-weight: 700; }
.os-card-sub, .os-card-row { fill: #4e6680; font-size: 10.5px; font-weight: 500; }
.os-card-note { fill: rgba(255, 255, 255, 0.8); font-size: 11px; font-weight: 600; }
.os-phone-title { fill: #cfe3f8; font-size: 9px; font-weight: 700; letter-spacing: 0.04em; }
.os-icon { fill: none; stroke: #1a6ed8; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.os-leader { fill: none; stroke: rgba(255, 255, 255, 0.55); stroke-width: 1; stroke-dasharray: 3 3; }
.st-network .os-card-cloud, .st-network .os-card-rack, .st-cctv .os-card-phone,
.st-support .os-card-support, .st-support .os-card-done { opacity: 1; transform: none; }

.os-marker { opacity: 0; transition: opacity .4s ease; }
.os-marker-num { fill: #ffffff; font-size: 11px; font-weight: 700; }
.st-cabling .os-m-cabling, .st-network .os-m-network, .st-wifi .os-m-wifi,
.st-cctv .os-m-cctv, .st-it .os-m-it, .st-support .os-m-support { opacity: 1; }
.office-svg[data-focus] .os-marker { opacity: 0.12; }
.office-svg[data-focus="cabling"] .os-m-cabling, .office-svg[data-focus="network"] .os-m-network,
.office-svg[data-focus="wifi"] .os-m-wifi, .office-svg[data-focus="cctv"] .os-m-cctv,
.office-svg[data-focus="it"] .os-m-it, .office-svg[data-focus="support"] .os-m-support { opacity: 1; }

.os-paused * { animation-play-state: paused !important; }

@media (max-width: 1080px) {
    .office-setup-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "stage" "steps" "actions"; grid-template-rows: none; }
    .office-stage { margin-top: 22px; }
    .office-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .office-brands { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
    .office-brand-card { width: 100%; height: 72px; padding: 8px 12px; }
    .office-steps { grid-template-columns: minmax(0, 1fr); }
    .office-svg .os-cards { display: none; }
    .office-setup-actions .btn { flex: 1 1 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
    .os-pulse, .os-ring, .os-led, .os-rec { animation: none !important; }
}
