/* Service Stack Landing Pages (KAP-34)
   --------------------------------------------------------------------------
   Used by parts/service-stack-page.php and parts/service-stack-<slug>.php for
   /services/php-development, /services/laravel-development,
   /services/vue-development, /services/react-development.

   Uses the theme's existing tokens where possible:
     - #18B0A8 — accent (matches contact-section gradient + existing buttons)
     - container widths from main.css
     - section-title, btn, btn-primary inherited
   ========================================================================== */

.service-stack-page {
    color: #1a1d29;
}

.service-stack-page > section {
    padding: 70px 0;
}

.service-stack-page > section:nth-child(odd) {
    background-color: #fff;
}

.service-stack-page > section:nth-child(even) {
    background-color: #f6f8fb;
}

.service-stack-page h2 {
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 32px;
    color: #1a1d29;
}

.service-stack-page h3 {
    font-size: 20px;
    line-height: 1.3;
    margin-bottom: 12px;
    color: #1a1d29;
}

.service-stack-page p {
    font-size: 16px;
    line-height: 1.6;
    color: #4a4f5e;
    margin-bottom: 16px;
}

.service-stack-page .container {
    max-width: 1140px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* Hero
   -------------------------------------------------------------------------- */

.service-hero {
    padding-top: 110px !important;
    padding-bottom: 70px;
    background: linear-gradient(180deg, #ffffff 0%, #f6f8fb 100%);
}

.service-hero .section-title__subtitle {
    display: inline-block;
    color: #18B0A8;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.service-hero__title {
    font-size: 44px;
    line-height: 1.15;
    margin: 0 0 22px;
    color: #1a1d29;
    max-width: 820px;
}

.service-hero__lede {
    font-size: 19px;
    line-height: 1.55;
    max-width: 760px;
    color: #4a4f5e;
    margin-bottom: 30px;
}

.service-hero__cta {
    display: inline-block;
    background: #18B0A8;
    color: #fff !important;
    padding: 16px 32px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.service-hero__cta:hover {
    background: #129a93;
    transform: translateY(-1px);
}

/* Value props (3 columns) + engagement (3 columns)
   -------------------------------------------------------------------------- */

.service-value__grid,
.service-engagement__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
}

.service-value__item,
.service-engagement__item {
    background: #fff;
    padding: 28px 26px;
    border-radius: 10px;
    border: 1px solid #e6ebf3;
}

.service-stack-page > section.service-value {
    background-color: #fff;
}

.service-stack-page > section.service-engagement {
    background-color: #f6f8fb;
}

.service-engagement__rate {
    margin-top: 28px;
    font-size: 15px;
    color: #4a4f5e;
}

/* Capabilities (bulleted list, two-column on wide screens)
   -------------------------------------------------------------------------- */

.service-capabilities__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 36px;
}

.service-capabilities__list li {
    position: relative;
    padding-left: 28px;
    font-size: 16px;
    line-height: 1.55;
    color: #4a4f5e;
}

.service-capabilities__list li::before {
    content: "";
    position: absolute;
    top: 9px;
    left: 0;
    width: 16px;
    height: 16px;
    background: #18B0A8;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(24, 176, 168, 0.15);
}

.service-capabilities__list strong {
    color: #1a1d29;
    font-weight: 600;
}

/* Proof / case studies
   -------------------------------------------------------------------------- */

.service-proof__case {
    padding: 26px 0;
    border-bottom: 1px solid #e6ebf3;
}

.service-proof__case:last-of-type {
    border-bottom: none;
}

.service-proof__stack {
    font-size: 14px;
    color: #5f6677;
    margin-top: 8px;
}

.service-proof__stack strong {
    color: #1a1d29;
}

.link-arrow {
    color: #18B0A8;
    text-decoration: none;
    font-weight: 600;
}

.link-arrow:hover {
    text-decoration: underline;
}

/* Final CTA
   -------------------------------------------------------------------------- */

.service-cta {
    text-align: center;
    background: linear-gradient(135deg, #18B0A8 0%, #129a93 100%) !important;
}

.service-cta h2,
.service-cta p {
    color: #fff;
}

.service-cta p {
    max-width: 620px;
    margin: 0 auto 24px;
    font-size: 17px;
}

.service-cta .btn-primary {
    background: #fff;
    color: #18B0A8 !important;
    padding: 14px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
}

.service-cta .btn-primary:hover {
    background: #f1faf9;
}

/* Footer specializations row
   -------------------------------------------------------------------------- */

.footer-stacks {
    background: #0d1024;
    padding: 18px 0;
    border-top: 1px solid #1d2244;
    color: #cfd3e3;
    font-size: 14px;
}

.footer-stacks .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.footer-stacks__label {
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.04em;
}

.footer-stacks__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 22px;
}

.footer-stacks__list a {
    color: #cfd3e3;
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-stacks__list a:hover {
    color: #18B0A8;
}

/* /services/ index specializations block
   -------------------------------------------------------------------------- */

.service-stack-index {
    padding: 60px 0 80px;
    background: #f6f8fb;
}

.service-stack-index__title {
    font-size: 28px;
    margin-bottom: 12px;
    color: #1a1d29;
}

.service-stack-index__lede {
    font-size: 16px;
    color: #4a4f5e;
    max-width: 720px;
    margin-bottom: 32px;
}

.service-stack-index__grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.service-stack-index__grid a {
    display: block;
    background: #fff;
    border: 1px solid #e6ebf3;
    border-radius: 10px;
    padding: 22px 20px;
    text-decoration: none;
    color: #1a1d29;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.service-stack-index__grid a:hover {
    border-color: #18B0A8;
    transform: translateY(-3px);
    box-shadow: 0 6px 22px rgba(24, 176, 168, 0.12);
}

.service-stack-index__name {
    display: block;
    font-weight: 600;
    font-size: 17px;
    margin-bottom: 6px;
}

.service-stack-index__more {
    display: block;
    color: #18B0A8;
    font-size: 14px;
    font-weight: 600;
}

/* Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
    .service-value__grid,
    .service-engagement__grid {
        grid-template-columns: 1fr;
    }
    .service-capabilities__list {
        grid-template-columns: 1fr;
    }
    .service-stack-index__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .service-hero__title {
        font-size: 32px;
    }
}

@media (max-width: 640px) {
    .service-stack-page > section {
        padding: 50px 0;
    }
    .service-stack-page h2 {
        font-size: 26px;
    }
    .service-hero {
        padding-top: 90px !important;
    }
    .service-hero__title {
        font-size: 28px;
    }
    .service-hero__lede {
        font-size: 17px;
    }
    .service-stack-index__grid {
        grid-template-columns: 1fr;
    }
    .footer-stacks .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}
