:root {
    --service-orange: #f45530;
    --service-black: #080808;
    --service-panel: #111111;
    --service-line: rgba(255, 255, 255, 0.16);
    --service-text: #f3f0e9;
    --service-muted: #a6a39d;
}

html {
    scroll-behavior: smooth;
}

body.service-page {
    height: auto;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    color: var(--service-text);
    background: var(--service-black);
    font-family: "Rubik", sans-serif;
}

.service-page * {
    box-sizing: border-box;
}

.text-link {
    color: var(--service-text);
    font-size: 0.66rem;
    letter-spacing: 0.06em;
    text-decoration: none;
    text-transform: uppercase;
}

.inner-style-header {
    position: relative;
    z-index: 10;
    font-family: "Rubik", "Space Mono", sans-serif;
}

.inner-header-top {
    position: relative;
    overflow: hidden;
    background: #ff5a2c;
}

.inner-header-top::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("https://alpinetechdigital.com/inner/images/shapes/shape_top_red.png") repeat center;
    opacity: 0.35;
}

.inner-header-container {
    width: min(1140px, calc(100% - 40px));
    min-height: 54px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.inner-contact {
    display: flex;
    gap: 30px;
}

.inner-contact a,
.inner-header-actions a {
    color: #fff;
    font-family: "Rubik", sans-serif;
    font-size: 14px;
    font-weight: 300;
    text-decoration: none;
}

.inner-contact a:hover,
.inner-header-actions a:hover {
    color: #111b51;
}

.inner-contact span {
    margin-right: 10px;
    color: #fff;
}

.inner-header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.inner-header-actions .inner-back-link {
    height: 54px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    color: #fff;
    background: #0828c2;
    font-weight: 600;
    text-transform: uppercase;
}

.inner-header-actions .inner-back-link:hover {
    color: #0828c2;
    background: #fff;
}

.inner-logo-nav {
    min-height: 100px;
    display: flex;
    align-items: center;
    background: #080808;
}

.inner-logo-nav .inner-header-container {
    min-height: 100px;
}

.inner-logo-nav img {
    width: 200px;
    height: 100px;
    display: block;
    object-fit: contain;
}

.service-hero {
    min-height: calc(100vh - 152px);
    display: flex;
    flex-direction: column;
}

.page-banner {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #080808;
}

.page-banner::before,
.page-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.page-banner::before {
    z-index: -2;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    filter: saturate(0.8) contrast(1.08);
    transform: scale(1.02);
}

.asset-page .page-banner::before {
    background-image: url("https://alpinetechdigital.com/images/tm-620-com-05.jpg");
}

.software-page .page-banner::before {
    background-image: url("https://alpinetechdigital.com/images/tm-620-com-02.png");
}

.page-banner::after {
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(8, 8, 8, 0.98) 0%, rgba(8, 8, 8, 0.9) 38%, rgba(8, 8, 8, 0.38) 72%, rgba(8, 8, 8, 0.2) 100%),
        linear-gradient(0deg, rgba(17, 27, 81, 0.45), transparent 58%);
}

.hero-grid {
    flex: 1;
    width: min(1440px, 100%);
    min-height: 680px;
    margin: 0 auto;
    display: block;
}

.hero-copy {
    width: min(68%, 920px);
    min-height: 680px;
    padding: clamp(70px, 9vw, 140px) clamp(24px, 6vw, 100px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.eyebrow,
.section-number {
    margin: 0 0 28px;
    color: var(--service-orange);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-copy h1,
.content-section h2,
.service-cta h2 {
    margin: 0;
    font-family: "Anton", sans-serif;
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 0.93;
    text-transform: uppercase;
}

.hero-copy h1 {
    max-width: 900px;
    font-size: clamp(4rem, 7.5vw, 8rem);
}

.hero-copy h1 span {
    color: var(--service-orange);
}

.hero-intro {
    max-width: 720px;
    margin: 40px 0 0;
    color: var(--service-muted);
    font-size: clamp(0.85rem, 1.2vw, 1rem);
    line-height: 1.8;
}

.hero-actions {
    margin-top: 38px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    padding: 16px 18px;
    color: var(--service-black);
    background: var(--service-orange);
    border: 1px solid var(--service-orange);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-decoration: none;
    text-transform: uppercase;
    transition: 180ms ease;
}

.primary-button:hover {
    color: var(--service-orange);
    background: transparent;
}

.text-link {
    padding-bottom: 5px;
    border-bottom: 1px solid var(--service-text);
}

.text-link:hover {
    color: var(--service-orange);
    border-color: var(--service-orange);
}

.hero-visual {
    display: none;
}

.hero-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 8, 8, 0.1), rgba(8, 8, 8, 0.72));
}

.hero-visual img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1);
}

.visual-label {
    position: absolute;
    z-index: 1;
    right: 30px;
    bottom: 30px;
    left: 30px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.visual-label span {
    color: var(--service-text);
    font-size: 0.58rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.service-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--service-line);
    border-bottom: 1px solid var(--service-line);
}

.service-stats div {
    min-height: 110px;
    padding: 24px clamp(24px, 4vw, 60px);
    display: flex;
    align-items: center;
    gap: 22px;
    border-right: 1px solid var(--service-line);
}

.service-stats div:last-child {
    border-right: 0;
}

.service-stats strong {
    color: var(--service-orange);
    font-family: "Anton", sans-serif;
    font-size: 2rem;
    font-weight: 400;
}

.service-stats span {
    max-width: 240px;
    color: var(--service-muted);
    font-size: 0.67rem;
    line-height: 1.5;
    text-transform: uppercase;
}

.content-section {
    padding: clamp(75px, 10vw, 150px) clamp(24px, 6vw, 100px);
    border-bottom: 1px solid var(--service-line);
}

.section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.75fr);
    gap: clamp(50px, 9vw, 140px);
    align-items: start;
}

.content-section h2 {
    font-size: clamp(3rem, 6vw, 6.5rem);
}

.section-heading p {
    margin: 0 0 22px;
    color: var(--service-muted);
    font-size: 0.88rem;
    line-height: 1.85;
}

.capability-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--service-line);
    border-left: 1px solid var(--service-line);
}

.capability-card {
    min-height: 310px;
    padding: 30px;
    border-right: 1px solid var(--service-line);
    border-bottom: 1px solid var(--service-line);
    background: var(--service-panel);
    transition: background 180ms ease, transform 180ms ease;
}

.capability-card:hover {
    z-index: 1;
    background: #181818;
    transform: translateY(-5px);
}

.capability-card > span,
.lifecycle-track span {
    color: var(--service-orange);
    font-size: 0.65rem;
}

.capability-card h3,
.lifecycle-track h3 {
    margin: 65px 0 18px;
    color: var(--service-text);
    font-family: "Anton", sans-serif;
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1.05;
    text-transform: uppercase;
}

.capability-card p,
.lifecycle-track p {
    margin: 0;
    color: var(--service-muted);
    font-size: 0.7rem;
    line-height: 1.7;
}

.lifecycle-section {
    background: var(--service-orange);
}

.lifecycle-section .section-number,
.lifecycle-track span {
    color: var(--service-black);
}

.lifecycle-track {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border-top: 1px solid rgba(8, 8, 8, 0.35);
    border-left: 1px solid rgba(8, 8, 8, 0.35);
}

.lifecycle-track div {
    min-height: 260px;
    padding: 28px;
    border-right: 1px solid rgba(8, 8, 8, 0.35);
    border-bottom: 1px solid rgba(8, 8, 8, 0.35);
}

.lifecycle-track h3 {
    margin-top: 55px;
    color: var(--service-black);
}

.lifecycle-track p {
    color: rgba(8, 8, 8, 0.72);
}

.outcomes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(60px, 10vw, 160px);
    align-items: start;
}

.outcomes-grid ul {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--service-line);
}

.outcomes-grid li {
    padding: 19px 0;
    color: var(--service-muted);
    border-bottom: 1px solid var(--service-line);
    font-size: 0.76rem;
    line-height: 1.5;
}

.outcomes-grid li span {
    margin-right: 14px;
    color: var(--service-orange);
}

.service-cta {
    padding: clamp(90px, 12vw, 180px) clamp(24px, 10vw, 160px);
    text-align: center;
    background: var(--service-panel);
}

.service-cta h2 {
    max-width: 1050px;
    margin: 0 auto 45px;
    font-size: clamp(3.4rem, 7vw, 7.5rem);
}

.service-footer {
    position: relative;
    padding: 75px clamp(24px, 6vw, 100px) 0;
    overflow: hidden;
    border-top: 1px solid var(--service-line);
    background: #111b51;
    font-family: "Rubik", sans-serif;
}

.service-footer::after {
    content: "";
    position: absolute;
    right: -130px;
    bottom: -180px;
    width: 420px;
    height: 420px;
    border: 65px solid rgba(244, 85, 48, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.footer-inquiry-row {
    position: relative;
    z-index: 2;
    width: min(1140px, 100%);
    margin: -75px auto 80px;
    display: grid;
    grid-template-columns: 25% 75%;
}

.footer-inquiry-shape {
    min-height: 236px;
    position: relative;
    overflow: hidden;
    background: rgba(7, 32, 57, 0.6);
}

.footer-inquiry-shape::before,
.footer-inquiry-shape::after {
    content: "";
    position: absolute;
    border-radius: 50%;
}

.footer-inquiry-shape::before {
    width: 130px;
    height: 130px;
    top: 38px;
    left: 35px;
    border: 24px solid rgba(255, 90, 44, 0.35);
}

.footer-inquiry-shape::after {
    width: 65px;
    height: 65px;
    right: 30px;
    bottom: 25px;
    background: rgba(255, 255, 255, 0.08);
}

.footer-inquiry {
    padding: 60px 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    background: #ff5a2c;
}

.footer-inquiry::before {
    content: "";
    position: absolute;
    top: -110px;
    left: -90px;
    width: 260px;
    height: 260px;
    border: 45px solid rgba(17, 27, 81, 0.15);
    border-radius: 50%;
}

.footer-inquiry > * {
    position: relative;
    z-index: 1;
}

.footer-inquiry h2 {
    margin: 0;
    color: #fff;
    font-family: "Poppins", sans-serif;
    font-size: 50px;
    font-weight: 700;
    line-height: 1;
}

.footer-inquiry p {
    max-width: 700px;
    margin: 18px 0 0;
    color: #fff;
    font-family: "Rubik", sans-serif;
    font-size: 15px;
    line-height: 26px;
}

.footer-inquiry > a {
    flex: 0 0 auto;
    padding: 14px 28px;
    color: #111b51;
    background: #fff;
    font-family: "Rubik", sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
}

.footer-inquiry > a:hover {
    color: #fff;
    background: #111b51;
}

.footer-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 4fr 2fr 2fr 4fr;
    gap: 30px;
    padding-bottom: 60px;
}

.footer-company img {
    width: 170px;
    height: 105px;
    object-fit: contain;
    object-position: left center;
}

.footer-company p,
.footer-column p,
.footer-column li,
.footer-column a {
    margin: 0;
    color: var(--service-muted);
    font-family: "Rubik", sans-serif;
    font-size: 15px;
    line-height: 26px;
    text-decoration: none;
}

.footer-company p {
    max-width: 440px;
    margin-top: 20px;
}

.footer-column h3 {
    min-height: 42px;
    margin: 20px 0 24px;
    color: var(--service-text);
    font-family: "Poppins", sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.05;
    text-transform: uppercase;
}

.footer-column ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-column li {
    margin-bottom: 9px;
}

.footer-column a:hover {
    color: var(--service-orange);
}

.footer-contact p {
    margin-bottom: 20px;
}

.footer-contact > a {
    display: block;
    margin-bottom: 8px;
    color: var(--service-text);
}

.footer-bottom {
    position: relative;
    z-index: 1;
    padding: 22px 0;
    border-top: 1px solid var(--service-line);
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: var(--service-muted);
    font-family: "Rubik", sans-serif;
    font-size: 14px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

@media (max-width: 1100px) {
    .section-heading,
    .outcomes-grid {
        grid-template-columns: 1fr;
    }

    .hero-grid,
    .hero-copy {
        min-height: 680px;
    }

    .hero-copy {
        width: min(82%, 850px);
    }

    .capability-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .lifecycle-track {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-inquiry-row {
        grid-template-columns: 1fr;
    }

    .footer-inquiry-shape {
        display: none;
    }
}

@media (max-width: 700px) {
    .inner-header-container {
        width: calc(100% - 28px);
    }

    .inner-header-top .inner-header-container {
        min-height: auto;
        padding: 14px 0;
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 9px;
    }

    .inner-contact {
        gap: 6px;
        align-items: flex-start;
        flex-direction: column;
    }

    .inner-contact a {
        font-size: 12px;
    }

    .inner-header-actions {
        width: 100%;
        gap: 14px;
    }

    .inner-header-actions a {
        font-size: 11px;
    }

    .inner-header-actions .inner-back-link {
        height: 38px;
        margin-left: auto;
        padding: 0 12px;
    }

    .inner-logo-nav,
    .inner-logo-nav .inner-header-container {
        min-height: 88px;
    }

    .inner-logo-nav img {
        width: 170px;
        height: 84px;
    }

    .service-hero {
        min-height: auto;
    }

    .hero-copy {
        width: 100%;
        min-height: 610px;
        padding-top: 65px;
        padding-bottom: 65px;
    }

    .hero-grid {
        min-height: 610px;
    }

    .page-banner::after {
        background:
            linear-gradient(90deg, rgba(8, 8, 8, 0.96), rgba(8, 8, 8, 0.72)),
            linear-gradient(0deg, rgba(17, 27, 81, 0.5), transparent 60%);
    }

    .hero-copy h1 {
        font-size: clamp(3.5rem, 17vw, 5.5rem);
    }

    .hero-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero-visual {
        min-height: 420px;
    }

    .service-stats,
    .capability-grid,
    .lifecycle-track {
        grid-template-columns: 1fr;
    }

    .service-stats div {
        border-right: 0;
        border-bottom: 1px solid var(--service-line);
    }

    .service-stats div:last-child {
        border-bottom: 0;
    }

    .capability-card {
        min-height: 255px;
    }

    .capability-card h3 {
        margin-top: 45px;
    }

    .lifecycle-track div {
        min-height: 220px;
    }

    .service-footer {
        padding-top: 55px;
    }

    .footer-inquiry {
        padding: 70px 15px;
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-inquiry-row {
        margin-top: -55px;
        margin-bottom: 55px;
    }

    .footer-inquiry h2 {
        font-size: 36px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-column h3 {
        min-height: auto;
        margin-top: 0;
    }

    .footer-company img {
        width: 150px;
        height: 90px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}



/* ============================================================
   RESPONSIVE BANNER / HERO FIX — mobile screens
   ============================================================ */

/* ── Tablet (≤ 1100px) ─────────────────────────────────────── */
@media (max-width: 1100px) {
    .inner-header-actions .inner-back-link {
        padding: 0 14px;
        font-size: 11px;
    }
    .hero-copy h1 {
        font-size: clamp(3rem, 6vw, 6rem);
    }
}

/* ── Mobile (≤ 700px) — override/extend existing rules ──────── */
@media (max-width: 700px) {

    /* Header top bar — stack on mobile */
    .inner-header-top .inner-header-container {
        flex-wrap: wrap;
    }
    .inner-header-actions {
        flex-wrap: wrap;
    }

    /* Hero / Banner */
    .service-hero {
        min-height: auto;
    }
    .hero-grid,
    .hero-copy {
        min-height: auto;
    }
    .hero-copy {
        width: 100%;
        padding: 48px clamp(16px, 5vw, 32px) 52px;
    }
    .hero-copy h1 {
        font-size: clamp(2.4rem, 10.5vw, 3.8rem);
        line-height: 0.92;
        letter-spacing: -0.025em;
    }
    .eyebrow {
        font-size: 0.58rem;
        letter-spacing: 0.12em;
        margin-bottom: 20px;
    }
    .hero-intro {
        font-size: 0.82rem;
        line-height: 1.75;
        margin-top: 22px;
        max-width: 100%;
    }
    .hero-actions {
        margin-top: 28px;
        gap: 16px;
    }
    .primary-button {
        width: 100%;
        justify-content: space-between;
        padding: 14px 16px;
        font-size: 0.68rem;
    }

    /* Background image — better mobile positioning */
    .page-banner::before {
        background-position: 65% center;
        transform: none;
        filter: saturate(0.6) contrast(1.1);
    }

    /* Overlay — darker on mobile so text is readable */
    .page-banner::after {
        background:
            linear-gradient(180deg,
                rgba(8, 8, 8, 0.82) 0%,
                rgba(8, 8, 8, 0.60) 50%,
                rgba(8, 8, 8, 0.80) 100%),
            linear-gradient(0deg, rgba(17, 27, 81, 0.5), transparent 55%);
    }

    /* Stats bar */
    .service-stats {
        grid-template-columns: 1fr;
    }
    .service-stats > div {
        min-height: 80px;
        padding: 18px 20px;
        gap: 16px;
        border-right: 0;
        border-bottom: 1px solid var(--service-line);
    }
    .service-stats > div:last-child {
        border-bottom: 0;
    }
    .service-stats strong {
        font-size: 1.7rem;
    }
    .service-stats span {
        font-size: 0.62rem;
    }

    /* Content sections */
    .content-section {
        padding: 55px clamp(16px, 5vw, 32px);
    }
    .content-section h2 {
        font-size: clamp(2.2rem, 9vw, 3.5rem);
    }
    .section-number {
        margin-bottom: 18px;
        font-size: 0.62rem;
    }

    /* Capability cards — single column */
    .capability-card {
        min-height: 220px;
        padding: 22px;
    }
    .capability-card h3 {
        font-size: 1.5rem;
        margin-top: 36px;
    }

    /* Lifecycle */
    .lifecycle-track > div {
        min-height: 180px;
        padding: 22px;
    }
    .lifecycle-track h3 {
        font-size: 1.5rem;
        margin-top: 36px;
    }

    /* CTA section */
    .service-cta {
        padding: 65px clamp(16px, 5vw, 32px);
    }
    .service-cta h2 {
        font-size: clamp(2rem, 9vw, 3.5rem);
        margin-bottom: 32px;
    }

    /* Footer social icons spacing */
    .footer-column.footer-contact > div {
        flex-wrap: wrap;
    }
}

/* ── Small phones (≤ 420px) ───────────────────────────────── */
@media (max-width: 420px) {
    .hero-copy h1 {
        font-size: clamp(2rem, 10vw, 3rem);
    }
    .hero-copy {
        padding: 40px 16px 48px;
    }
    .inner-header-actions .inner-back-link {
        font-size: 10px;
        padding: 0 10px;
    }
    .inner-contact a {
        font-size: 11px;
    }
}


/* ── Mobile footer center-alignment (service / software pages) ── */
@media (max-width: 767px) {
  .footer-grid {
    grid-template-columns: 1fr !important;
    text-align: center !important;
  }
  .footer-company,
  .footer-column,
  .footer-contact {
    text-align: center !important;
    align-items: center !important;
  }
  .footer-company img {
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
  }
  .footer-column ul,
  .footer-contact ul {
    padding-left: 0 !important;
    list-style: none !important;
  }
  .footer-column ul li,
  .footer-contact ul li {
    justify-content: center !important;
  }
  .footer-contact a,
  .footer-contact p {
    display: block !important;
    text-align: center !important;
  }
  .footer-contact > div[style] {
    justify-content: center !important;
  }
  .footer-inquiry {
    flex-direction: column !important;
    text-align: center !important;
    align-items: center !important;
    gap: 16px !important;
  }
  .footer-inquiry h2,
  .footer-inquiry p {
    text-align: center !important;
  }
}


/* ── Mobile header (service / software pages) ── */
@media (max-width: 767px) {

  /* Top bar: stack phone left, Back button right */
  .inner-header-top .inner-header-container {
    flex-wrap: wrap;
    min-height: 48px;
    padding: 0 !important;
  }

  /* Hide email — too long for mobile */
  .inner-contact a[href^="mailto"] {
    display: none !important;
  }

  .inner-contact {
    gap: 0 !important;
    flex: 1 1 auto;
    padding-left: 16px;
  }

  .inner-contact a {
    font-size: 13px !important;
  }

  /* Hide "Home" and "Contact Us" text links on mobile — keep only Back button */
  .inner-header-actions a:not(.inner-back-link) {
    display: none !important;
  }

  .inner-header-actions {
    gap: 0 !important;
  }

  .inner-header-actions .inner-back-link {
    height: 48px !important;
    padding: 0 14px !important;
    font-size: 11px !important;
    letter-spacing: 0.06em !important;
    white-space: nowrap;
  }

  /* Logo bar: compact */
  .inner-logo-nav,
  .inner-logo-nav .inner-header-container {
    min-height: 64px !important;
  }

  .inner-logo-nav img {
    width: 130px !important;
    height: 64px !important;
    padding: 8px 0;
  }

  .inner-logo-nav .inner-header-container {
    padding-left: 16px;
  }
}

@media (max-width: 420px) {
  .inner-contact a:not([href^="mailto"]) span {
    margin-right: 5px !important;
  }
  .inner-contact a {
    font-size: 12px !important;
  }
  .inner-header-actions .inner-back-link {
    padding: 0 10px !important;
    font-size: 10px !important;
  }
}
