/* =========================================================
            Stack Link — Telephony Solutions page
            Shared visual language: LIGHT GREEN + WHITE theme
            ========================================================= */

:root {
    --deep-50: #eefaf2;
    /* light-green "dark section" background */
    --deep-100: #e2f6e9;
    --deep-200: #d3f1de;
    --deep-300: #c1ebd0;
    --green-600: #16a34a;
    /* primary accent */
    --green-500: #1fb457;
    --green-400: #34d17c;
    --green-300: #0f7a3c;
    /* readable dark-green text on light backgrounds */
    --ice-50: #ffffff;
    --ice-100: #f3fbf6;
    --line: rgba(22, 163, 74, 0.16);
    --line-strong: rgba(22, 163, 74, 0.32);
    --text-dim: #4b6b5b;
    --text-dim-dark: #3d6b52;
    --ink: #0b1f16;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--ice-50);
    color: var(--ink);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}

h1,
h2,
h3,
h4 {
    margin: 0;
    letter-spacing: -0.01em;
    font-weight: 700;
}

p {
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

:focus-visible {
    outline: 2px solid var(--green-600);
    outline-offset: 3px;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 28px;
}

/* ---------- SCROLL PROGRESS ---------- */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    z-index: 300;
    background: linear-gradient(90deg, var(--green-600), var(--green-400), var(--green-500));
    box-shadow: 0 0 10px rgba(22, 163, 74, .5);
    transition: width .1s linear;
}

/* ---------- REVEAL ANIMATIONS ---------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s cubic-bezier(.2, .7, .3, 1), transform .7s cubic-bezier(.2, .7, .3, 1);
}

.reveal.in {
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger>* {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s cubic-bezier(.2, .7, .3, 1), transform .6s cubic-bezier(.2, .7, .3, 1);
}

.reveal-stagger.in>* {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- PAGE HERO ---------- */
.page-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--deep-50), var(--ice-50));
    color: var(--ink);
    padding: 90px 0 70px;
    border-bottom: 1px solid var(--line);
}

.page-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 46px 46px;
    -webkit-mask-image: radial-gradient(ellipse 800px 500px at 70% 20%, #000, transparent 75%);
    mask-image: radial-gradient(ellipse 800px 500px at 70% 20%, #000, transparent 75%);
}

.page-hero-glow {
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(22, 163, 74, .22), transparent 70%);
    right: -140px;
    top: -160px;
    filter: blur(10px);
    animation: breathe 6s ease-in-out infinite;
}

@keyframes breathe {

    0%,
    100% {
        transform: scale(1);
        opacity: .7;
    }

    50% {
        transform: scale(1.12);
        opacity: 1;
    }
}

.page-hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 44px;
    align-items: center;
}

.page-hero-crumb {
    color: var(--text-dim);
    font-size: 13px;
    margin-bottom: 18px;
}

.page-hero-crumb a {
    color: var(--green-600);
}

.page-hero-crumb a:hover {
    color: var(--ink);
}

.eyebrow {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .02em;
    margin-bottom: 4px;
    color: var(--green-600) !important;
}

.page-hero h1 {
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.12;
    margin-top: 6px;
    max-width: 560px;
    color: var(--ink);
}

.page-hero .lede {
    margin-top: 20px;
    color: var(--text-dim);
    font-size: 16.5px;
    line-height: 1.65;
    max-width: 520px;
}

.page-hero-actions {
    margin-top: 32px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--green-600);
    box-shadow: 0 10px 30px -10px rgba(22, 163, 74, .6);
    animation: ctaGlow 2.8s ease-in-out infinite;
}

@keyframes ctaGlow {

    0%,
    100% {
        box-shadow: 0 10px 30px -10px rgba(22, 163, 74, .55);
    }

    50% {
        box-shadow: 0 10px 34px -6px rgba(52, 209, 124, .8);
    }
}

.btn-ghost {
    background: #fff;
    border: 1px solid var(--line-strong);
    color: var(--ink);
    box-shadow: none;
}

.btn-ghost::before {
    display: none;
}

.btn-ghost:hover {
    background: var(--deep-100);
    border-color: var(--green-500);
}

/* hero card: icon + stats */
.page-hero-card {
    position: relative;
    z-index: 2;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 36px 28px 28px;
    box-shadow: 0 30px 60px -34px rgba(11, 61, 39, .25);
}

.page-hero-icon {
    position: relative;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phi-ring {
    position: absolute;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
}

.phi-ring-1 {
    width: 150px;
    height: 150px;
    animation: spin 30s linear infinite;
}

.phi-ring-2 {
    width: 190px;
    height: 190px;
    animation: spin 46s linear infinite reverse;
}

.phi-ring-3 {
    width: 230px;
    height: 230px;
    animation: spin 60s linear infinite;
}

.phi-ring-1::before,
.phi-ring-2::before,
.phi-ring-3::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--green-500);
    border-radius: 50%;
    top: -3px;
    left: 50%;
    box-shadow: 0 0 12px 2px rgba(31, 180, 87, .6);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.phi-badge {
    position: relative;
    z-index: 2;
    width: 104px;
    height: 104px;
    border-radius: 26px;
    background: linear-gradient(160deg, var(--deep-50), #fff);
    border: 1px solid var(--line-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: floaty 5s ease-in-out infinite;
    box-shadow: 0 20px 40px -20px rgba(11, 61, 39, .25), inset 0 1px 0 rgba(255, 255, 255, .6);
}

@keyframes floaty {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

.phi-badge svg {
    width: 44px;
    height: 44px;
    fill: none;
    stroke: var(--green-600);
    stroke-width: 1.6;
    filter: drop-shadow(0 0 10px rgba(31, 180, 87, .3));
    animation: ringShake 4.5s ease-in-out infinite;
    transform-origin: 50% 50%;
}

@keyframes ringShake {

    0%,
    88%,
    100% {
        transform: rotate(0deg) scale(1);
    }

    89% {
        transform: rotate(-10deg) scale(1.05);
    }

    90.5% {
        transform: rotate(9deg) scale(1.05);
    }

    92% {
        transform: rotate(-7deg) scale(1.03);
    }

    93.5% {
        transform: rotate(5deg) scale(1.02);
    }

    95% {
        transform: rotate(-3deg) scale(1);
    }

    96.5% {
        transform: rotate(0deg) scale(1);
    }
}

.page-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 22px;
    border-top: 1px solid var(--line);
    padding-top: 22px;
}

.page-hero-stat {
    text-align: center;
}

.page-hero-stat b {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--ink);
}

.page-hero-stat span {
    display: block;
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 4px;
}

@media (max-width:900px) {
    .page-hero-inner {
        grid-template-columns: 1fr;
    }
}

/* ---------- SECTION HEAD ---------- */
.section-pad {
    padding: 88px 0;
}

.section-head {
    max-width: 600px;
    margin-bottom: 50px;
}

.section-head .eyebrow {
    color: var(--green-600);
    font-size: 13.5px;
}

.bg-section .section-head .eyebrow {
    color: var(--green-600) !important;
}

.section-head h2 {
    font-size: clamp(25px, 3vw, 34px);
    color: var(--ink);
}

.bg-section .section-head h2 {
    color: var(--ink);
}

.section-head p {
    margin-top: 12px;
    color: var(--text-dim);
    font-size: 15.5px;
    line-height: 1.6;
}

.bg-section .section-head p {
    color: var(--text-dim);
}

.bg-section {
    background: var(--deep-50);
    color: var(--ink);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

/* ---------- INTRO ---------- */
.intro-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 48px;
    align-items: center;
}

.intro-grid img {
    border-radius: 16px;
    box-shadow: 0 30px 60px -30px rgba(11, 61, 39, .22);
}

.intro-copy .eyebrow {
    color: var(--green-600);
    font-size: 13.5px;
}

.intro-copy p {
    color: var(--text-dim);
    font-size: 15.5px;
    line-height: 1.7;
    margin-top: 14px;
}

@media (max-width:860px) {
    .intro-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- POINT GRID ---------- */
.point-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.point-card {
    display: flex;
    gap: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 26px 22px;
    transition: transform .25s, border-color .25s, box-shadow .25s;
}

.point-card:hover {
    transform: translateY(-5px);
    border-color: var(--green-500);
    box-shadow: 0 18px 40px -22px rgba(11, 61, 39, .18);
}

.point-num {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--green-600), var(--green-400));
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.point-num svg {
    width: 17px;
    height: 17px;
}

.point-card h4 {
    font-size: 15.5px;
    color: var(--ink);
    margin-bottom: 8px;
}

.point-card p {
    font-size: 13.6px;
    color: var(--text-dim);
    line-height: 1.6;
}

@media (max-width:900px) {
    .point-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width:560px) {
    .point-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- SERVICE GRID ---------- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.service-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    transition: transform .25s, box-shadow .25s;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 50px -24px rgba(11, 61, 39, .24);
}

.service-card-media {
    height: 150px;
    overflow: hidden;
}

.service-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.service-card:hover .service-card-media img {
    transform: scale(1.07);
}

.service-card-body {
    padding: 20px 20px 22px;
}

.service-card-body h3 {
    font-size: 16px;
    color: var(--ink);
    margin-bottom: 8px;
}

.service-card-body p {
    font-size: 13.6px;
    color: var(--text-dim);
    line-height: 1.55;
}

.service-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--green-600);
}

.service-card-link .arrow {
    transition: transform .2s;
}

.service-card-link:hover .arrow {
    transform: translateX(3px);
}

@media (max-width:900px) {
    .service-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width:560px) {
    .service-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- BRAND STRIP ---------- */
.brand-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.brand-pill {
    padding: 14px 26px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    font-weight: 600;
    font-size: 15px;
    color: var(--ink);
    transition: transform .2s, border-color .2s, color .2s;
}

.brand-pill:hover {
    transform: translateY(-3px);
    border-color: var(--green-500);
    color: var(--green-600);
}

/* ---------- FINAL CTA ---------- */
.final-cta {
    background: linear-gradient(135deg, var(--deep-100), var(--deep-50));
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 60px 48px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    flex-wrap: wrap;
    color: var(--ink);
}

.final-cta::after {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(22, 163, 74, .25), transparent 70%);
    right: -60px;
    top: -80px;
    filter: blur(6px);
}

.final-cta h2 {
    font-size: clamp(23px, 3vw, 30px);
    max-width: 440px;
    position: relative;
    z-index: 1;
    color: var(--ink);
}

.final-cta p {
    margin-top: 10px;
    color: var(--text-dim);
    font-size: 15px;
    position: relative;
    z-index: 1;
}

.final-cta p.phone {
    margin-top: 14px;
    color: var(--ink);
    font-weight: 600;
}

.final-cta p.phone a {
    color: var(--green-600);
}

.final-cta .btn {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

@media (max-width:760px) {
    .final-cta {
        flex-direction: column;
        align-items: flex-start;
        padding: 40px 26px;
    }
}

/* ---------- WORKPLACE & MOBILITY: page-specific additions ---------- */

/* hero icon draw-in animation (rect/path outline draw) */
.phi-draw {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: phiDraw 2.2s ease-out .4s forwards;
}

@keyframes phiDraw {
    to {
        stroke-dashoffset: 0;
    }
}

/* service cards sitting on the light "Our IT Infrastructure Solutions" section */
.service-grid-dark .service-card {
    background: #fff;
    border: 1px solid var(--line);
}

.service-grid-dark .service-card-body h3 {
    color: var(--ink);
}

.service-grid-dark .service-card-body p {
    color: var(--text-dim);
}

.service-grid-dark .service-card:hover {
    box-shadow: 0 24px 50px -24px rgba(11, 61, 39, .22);
}

/* product showcase grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.product-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 26px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
    transition: transform .25s, border-color .25s, box-shadow .25s;
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: var(--green-500);
    box-shadow: 0 20px 40px -22px rgba(11, 61, 39, .22);
}

.product-ico {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--deep-50);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .25s, background .25s;
}

.product-card:hover .product-ico {
    transform: scale(1.08) rotate(-4deg);
    background: var(--green-600);
}

.product-ico svg {
    width: 24px;
    height: 24px;
    stroke: var(--green-600);
    transition: stroke .25s;
}

.product-card:hover .product-ico svg {
    stroke: #fff;
}

.product-card h3 {
    font-size: 14.5px;
    color: var(--ink);
}

@media (max-width:960px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width:560px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---------- multi-device access hero visual: one session hops between phone, laptop and tablet ---------- */
.mdviz {
    width: 100%;
    max-width: 230px;
    margin: 0 auto;
}

.md-card {
    background: linear-gradient(160deg, #fff, var(--deep-50));
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    padding: 18px 14px 14px;
    box-shadow: 0 20px 40px -18px rgba(11, 61, 39, .28), inset 0 1px 0 rgba(255, 255, 255, .7);
}

.md-row {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.md-line {
    position: absolute;
    left: 22px;
    right: 22px;
    top: 50%;
    height: 2px;
    background: var(--line-strong);
    transform: translateY(-50%);
    z-index: 0;
}

.md-line::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: var(--green-500);
    width: 0;
    animation: mdFill 6s ease-in-out infinite;
}

@keyframes mdFill {
    0% {
        width: 0;
    }

    30% {
        width: 50%;
    }

    60%,
    92% {
        width: 100%;
    }

    100% {
        width: 0;
    }
}

.md-dev {
    position: relative;
    z-index: 1;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 18px -14px rgba(11, 61, 39, .2);
}

.md-dev svg {
    width: 19px;
    height: 19px;
    stroke: var(--text-dim);
}

.md-dev-1 {
    animation: mdOn1 6s ease-in-out infinite;
}

.md-dev-2 {
    animation: mdOn2 6s ease-in-out infinite;
}

.md-dev-3 {
    animation: mdOn3 6s ease-in-out infinite;
}

@keyframes mdOn1 {

    0%,
    25% {
        border-color: var(--green-500);
        box-shadow: 0 0 0 6px rgba(52, 209, 124, .18);
    }

    32%,
    92% {
        border-color: var(--line);
        box-shadow: 0 10px 18px -14px rgba(11, 61, 39, .2);
    }

    100% {
        border-color: var(--green-500);
        box-shadow: 0 0 0 6px rgba(52, 209, 124, .18);
    }
}

@keyframes mdOn2 {

    0%,
    25% {
        border-color: var(--line);
        box-shadow: 0 10px 18px -14px rgba(11, 61, 39, .2);
    }

    32%,
    58% {
        border-color: var(--green-500);
        box-shadow: 0 0 0 6px rgba(52, 209, 124, .18);
    }

    64%,
    100% {
        border-color: var(--line);
        box-shadow: 0 10px 18px -14px rgba(11, 61, 39, .2);
    }
}

@keyframes mdOn3 {

    0%,
    58% {
        border-color: var(--line);
        box-shadow: 0 10px 18px -14px rgba(11, 61, 39, .2);
    }

    64%,
    92% {
        border-color: var(--green-500);
        box-shadow: 0 0 0 6px rgba(52, 209, 124, .18);
    }

    100% {
        border-color: var(--line);
        box-shadow: 0 10px 18px -14px rgba(11, 61, 39, .2);
    }
}

.md-dev-1 svg {
    animation: mdS1 6s ease-in-out infinite;
}

.md-dev-2 svg {
    animation: mdS2 6s ease-in-out infinite;
}

.md-dev-3 svg {
    animation: mdS3 6s ease-in-out infinite;
}

@keyframes mdS1 {

    0%,
    25% {
        stroke: var(--green-600);
    }

    32%,
    92% {
        stroke: var(--text-dim);
    }

    100% {
        stroke: var(--green-600);
    }
}

@keyframes mdS2 {

    0%,
    25% {
        stroke: var(--text-dim);
    }

    32%,
    58% {
        stroke: var(--green-600);
    }

    64%,
    100% {
        stroke: var(--text-dim);
    }
}

@keyframes mdS3 {

    0%,
    58% {
        stroke: var(--text-dim);
    }

    64%,
    92% {
        stroke: var(--green-600);
    }

    100% {
        stroke: var(--text-dim);
    }
}

.md-doc {
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    padding: 8px 10px;
}

.md-doc svg {
    width: 16px;
    height: 16px;
    stroke: var(--green-600);
    flex: none;
}

.md-doc b {
    display: block;
    font-size: 10.5px;
    color: var(--text-dim);
}

.md-doc span {
    display: block;
    font-size: 9.5px;
    font-weight: 700;
    color: var(--green-600);
}

.md-foot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    padding: 7px 0;
    font-size: 11px;
    font-weight: 700;
    color: var(--green-600);
}

.md-foot i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green-500);
    animation: mdDot 1.4s ease-in-out infinite;
}

@keyframes mdDot {

    0%,
    100% {
        opacity: .4;
    }

    50% {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {

    .md-line::after,
    .md-dev-1,
    .md-dev-2,
    .md-dev-3,
    .md-dev-1 svg,
    .md-dev-2 svg,
    .md-dev-3 svg,
    .md-foot i {
        animation: none;
    }

    .md-line::after {
        width: 100%;
    }
}

.phi-viz {
    height: auto;
}