/* ==========================================================
   Albis
   Lower Page Common Styles
   page.css

   Used by:
   /support/
   /cloud/
   /development/
   ========================================================== */


/* ==========================================================
   1. Common page settings
   ========================================================== */

.page-main {
    overflow: hidden;
}

.page-section {
    padding-block: 96px;
}

.page-section--light {
    background: var(--color-bg-light, #f3f7fa);
}

.page-section--blue {
    background: var(--color-bg-blue, #e8f2f8);
}

.page-section__header {
    max-width: 900px;
    margin-bottom: 48px;
}

.page-section__label {
    margin: 0 0 12px;
    color: var(--color-accent, #2675ad);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.page-section__title {
    margin: 0;
    color: var(--color-text, #162638);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    line-height: 1.4;
    letter-spacing: 0.01em;
}

.page-section__description {
    margin: 24px 0 0;
    color: var(--color-text-sub, #647789);
    font-size: 1rem;
    line-height: 1.9;
}


/* ==========================================================
   2. Breadcrumb
   ========================================================== */

.breadcrumb {
    border-bottom: 1px solid var(--color-border, #d5dee7);
    background: var(--color-bg, #ffffff);
}

.breadcrumb .container {
    padding-block: 14px;
}

.breadcrumb__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--color-text-sub, #647789);
    font-size: 0.8125rem;
}

.breadcrumb__item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb__item:not(:last-child)::after {
    content: "/";
    color: #9aa9b5;
}

.breadcrumb__link {
    color: var(--color-text-sub, #647789);
    text-decoration: none;
}

.breadcrumb__link:hover {
    color: var(--color-primary, #174a73);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.breadcrumb__current {
    color: var(--color-text, #162638);
}


/* ==========================================================
   3. Page Hero
   ========================================================== */

.page-hero {
    position: relative;
    background:
        linear-gradient(
            135deg,
            #f7fafc 0%,
            #eef5f9 100%
        );
}

.page-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    gap: clamp(48px, 6vw, 88px);
    align-items: center;
    min-height: 440px;
    padding-block: 72px;
}

.page-hero__content {
    position: relative;
    z-index: 1;
}

.page-hero__label {
    margin: 0 0 16px;
    color: var(--color-accent, #2675ad);
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.14em;
}

.page-hero__title {
    max-width: 720px;
    margin: 0;
    color: var(--color-text, #162638);
    font-size: clamp(2.25rem, 4vw, 3.25rem);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.01em;
}

.page-hero__lead {
    max-width: 680px;
    margin: 28px 0 0;
    color: var(--color-text, #162638);
    font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
    font-weight: 600;
    line-height: 1.8;
}

.page-hero__description {
    max-width: 680px;
    margin: 16px 0 0;
    color: var(--color-text-sub, #647789);
    line-height: 1.9;
}

.page-hero__visual {
    position: relative;
}

.page-hero__visual img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-md, 10px);
}


/* ==========================================================
   4. Introduction
   ========================================================== */

.page-intro {
    padding-block: 96px;
    background: var(--color-bg, #ffffff);
}

.page-intro__inner {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(48px, 8vw, 120px);
    align-items: start;
}

.page-intro__heading {
    margin: 0;
    color: var(--color-primary, #174a73);
    font-size: clamp(1.5rem, 2.2vw, 2rem);
    line-height: 1.5;
}

.page-intro__content {
    max-width: 860px;
}

.page-intro__content p {
    margin: 0 0 20px;
    color: var(--color-text, #162638);
    line-height: 2;
}

.page-intro__content p:last-child {
    margin-bottom: 0;
}

.page-intro__message {
    margin-block: 32px;
    color: var(--color-primary, #174a73);
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 700;
    line-height: 1.7;
}


/* ==========================================================
   5. Anchor navigation
   ========================================================== */

.anchor-nav {
    padding-block: 36px;
    border-top: 1px solid var(--color-border, #d5dee7);
    border-bottom: 1px solid var(--color-border, #d5dee7);
    background: var(--color-bg-light, #f3f7fa);
}

.anchor-nav__title {
    margin: 0 0 20px;
    color: var(--color-text, #162638);
    font-size: 0.9375rem;
    font-weight: 700;
}

.anchor-nav__list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.anchor-nav__link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    padding: 14px 18px;
    border: 1px solid var(--color-border, #d5dee7);
    border-radius: var(--radius-sm, 6px);
    background: #ffffff;
    color: var(--color-text, #162638);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
    transition:
        border-color 180ms ease,
        color 180ms ease,
        background-color 180ms ease;
}

.anchor-nav__link::after {
    content: "↓";
    margin-left: 8px;
    color: var(--color-accent, #2675ad);
}

.anchor-nav__link:hover {
    border-color: var(--color-primary, #174a73);
    color: var(--color-primary, #174a73);
    background: #f9fcfe;
}


/* ==========================================================
   6. Service details
   ========================================================== */

.service-detail {
    padding-block: 112px;
}

.service-detail:nth-of-type(even) {
    background: var(--color-bg-light, #f3f7fa);
}

.service-detail__inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(48px, 7vw, 96px);
    align-items: center;
}

.service-detail--reverse .service-detail__visual {
    order: 1;
}

.service-detail--reverse .service-detail__content {
    order: 2;
}

.service-detail__visual img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-md, 10px);
}

.service-detail__number {
    display: block;
    margin-bottom: 12px;
    color: var(--color-accent, #2675ad);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.service-detail__title {
    margin: 0;
    color: var(--color-text, #162638);
    font-size: clamp(1.75rem, 2.8vw, 2.375rem);
    line-height: 1.45;
}

.service-detail__catch {
    margin: 24px 0 0;
    color: var(--color-primary, #174a73);
    font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
    font-weight: 700;
    line-height: 1.7;
}

.service-detail__description {
    margin: 20px 0 0;
    color: var(--color-text-sub, #647789);
    line-height: 1.95;
}


/* ==========================================================
   7. Detail cards
   ========================================================== */

.detail-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 32px;
}

.detail-card {
    padding: 20px;
    border: 1px solid var(--color-border, #d5dee7);
    border-radius: var(--radius-sm, 6px);
    background: #ffffff;
}

.detail-card__title {
    margin: 0;
    color: var(--color-text, #162638);
    font-size: 1rem;
    line-height: 1.5;
}

.detail-card__description {
    margin: 8px 0 0;
    color: var(--color-text-sub, #647789);
    font-size: 0.875rem;
    line-height: 1.7;
}


/* ==========================================================
   8. Technology tags
   ========================================================== */

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.tech-tag {
    padding: 7px 12px;
    border-radius: 4px;
    background: var(--color-bg-blue, #e8f2f8);
    color: var(--color-primary, #174a73);
    font-size: 0.8125rem;
    font-weight: 600;
}


/* ==========================================================
   9. Feature / Consultation section
   ========================================================== */

.feature-section {
    padding-block: 96px;
    background: var(--color-primary, #174a73);
    color: #ffffff;
}

.feature-section__inner {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(48px, 8vw, 112px);
}

.feature-section__label {
    margin: 0 0 12px;
    color: #b9d9ed;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.feature-section__title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    line-height: 1.45;
}

.feature-section__lead {
    margin: 24px 0 0;
    color: #ffffff;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.8;
}

.feature-section__list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.feature-section__item {
    position: relative;
    padding: 17px 20px 17px 52px;
    border: 1px solid rgb(255 255 255 / 18%);
    border-radius: var(--radius-sm, 6px);
    background: rgb(255 255 255 / 7%);
    line-height: 1.65;
}

.feature-section__item::before {
    content: "✓";
    position: absolute;
    top: 17px;
    left: 20px;
    color: #b9e0f5;
    font-weight: 700;
}


/* ==========================================================
   10. Albis approach
   ========================================================== */

.approach {
    padding-block: 112px;
    background: var(--color-bg, #ffffff);
}

.approach__intro {
    max-width: 900px;
    margin-bottom: 56px;
}

.approach__steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.approach__step {
    position: relative;
    padding-top: 24px;
    border-top: 2px solid var(--color-border, #d5dee7);
}

.approach__step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: -2px;
    left: 100%;
    width: 24px;
    border-top: 2px solid var(--color-border, #d5dee7);
}

.approach__number {
    display: block;
    margin-bottom: 15px;
    color: var(--color-accent, #2675ad);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.approach__title {
    margin: 0;
    color: var(--color-text, #162638);
    font-size: 1.0625rem;
    line-height: 1.5;
}

.approach__description {
    margin: 12px 0 0;
    color: var(--color-text-sub, #647789);
    font-size: 0.875rem;
    line-height: 1.75;
}


/* ==========================================================
   11. Related works
   ========================================================== */

.related-works {
    padding-block: 96px;
    background: var(--color-bg-light, #f3f7fa);
}

.related-works__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 48px;
}


/* ==========================================================
   12. Related services
   ========================================================== */

.related-services {
    padding-block: 96px;
    background: var(--color-bg, #ffffff);
}

.related-services__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.related-service {
    position: relative;
    display: block;
    min-height: 190px;
    padding: 32px;
    border: 1px solid var(--color-border, #d5dee7);
    border-radius: var(--radius-md, 10px);
    background: #ffffff;
    color: var(--color-text, #162638);
    text-decoration: none;
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.related-service:hover {
    transform: translateY(-2px);
    border-color: var(--color-primary, #174a73);
    box-shadow: 0 10px 28px rgb(23 74 115 / 8%);
}

.related-service__label {
    margin: 0 0 12px;
    color: var(--color-accent, #2675ad);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.related-service__title {
    margin: 0;
    color: var(--color-primary, #174a73);
    font-size: 1.375rem;
    line-height: 1.5;
}

.related-service__description {
    max-width: 520px;
    margin: 12px 0 0;
    color: var(--color-text-sub, #647789);
    font-size: 0.9375rem;
    line-height: 1.75;
}

.related-service__arrow {
    display: block;
    margin-top: 20px;
    color: var(--color-accent, #2675ad);
    font-weight: 700;
}


/* ==========================================================
   13. Current global navigation
   ========================================================== */

.global-nav a[aria-current="page"]:not(.button) {
    position: relative;
    color: var(--color-primary, #174a73);
    font-weight: 700;
}

.global-nav a[aria-current="page"]:not(.button)::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -10px;
    left: 0;
    height: 2px;
    background: var(--color-accent, #2675ad);
}


/* ==========================================================
   14. Scroll target adjustment
   Sticky header support
   ========================================================== */

.service-detail[id],
.feature-section[id] {
    scroll-margin-top: 100px;
}


/* ==========================================================
   15. Tablet
   ========================================================== */

@media (max-width: 1023px) {

    .page-hero__inner {
        grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
        gap: 40px;
        min-height: 400px;
    }

    .anchor-nav__list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .service-detail__inner {
        gap: 48px;
    }

    .approach__steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .approach__step::after {
        display: none;
    }

}


/* ==========================================================
   16. Smartphone
   ========================================================== */

@media (max-width: 767px) {

    .page-section,
    .page-intro,
    .feature-section,
    .related-works,
    .related-services {
        padding-block: 64px;
    }


    /* Breadcrumb */

    .breadcrumb .container {
        padding-block: 10px;
    }

    .breadcrumb__list {
        font-size: 0.75rem;
    }


    /* Page Hero */

    .page-hero__inner {
        display: flex;
        flex-direction: column;
        gap: 36px;
        min-height: 0;
        padding-block: 48px;
    }

    .page-hero__content,
    .page-hero__visual {
        width: 100%;
    }

    .page-hero__title {
        font-size: clamp(2rem, 9vw, 2.5rem);
    }

    .page-hero__lead {
        margin-top: 22px;
        font-size: 1.0625rem;
    }

    .page-hero__visual img {
        aspect-ratio: 16 / 10;
    }


    /* Introduction */

    .page-intro__inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .page-intro__heading {
        font-size: 1.5rem;
    }


    /* Anchor Nav */

    .anchor-nav {
        padding-block: 28px;
    }

    .anchor-nav__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .anchor-nav__link {
        min-height: 58px;
        padding: 12px;
        font-size: 0.875rem;
    }


    /* Service Details */

    .service-detail {
        padding-block: 72px;
    }

    .service-detail__inner {
        display: flex;
        flex-direction: column;
        gap: 36px;
    }

    .service-detail--reverse .service-detail__visual,
    .service-detail--reverse .service-detail__content {
        order: initial;
    }

    .service-detail__visual,
    .service-detail__content {
        width: 100%;
    }

    .service-detail__visual {
        order: 2 !important;
    }

    .service-detail__content {
        order: 1 !important;
    }

    .service-detail__title {
        font-size: 1.75rem;
    }

    .detail-cards {
        grid-template-columns: 1fr;
    }


    /* Feature */

    .feature-section__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }


    /* Approach */

    .approach {
        padding-block: 72px;
    }

    .approach__intro {
        margin-bottom: 40px;
    }

    .approach__steps {
        display: block;
    }

    .approach__step {
        position: relative;
        padding: 0 0 36px 44px;
        border-top: 0;
    }

    .approach__step:not(:last-child)::before {
        content: "";
        position: absolute;
        top: 25px;
        bottom: 0;
        left: 12px;
        width: 1px;
        background: var(--color-border, #d5dee7);
    }

    .approach__number {
        position: absolute;
        top: 0;
        left: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 25px;
        height: 25px;
        margin: 0;
        border-radius: 50%;
        background: var(--color-primary, #174a73);
        color: #ffffff;
        font-size: 0.6875rem;
    }


    /* Works */

    .related-works__grid {
        grid-template-columns: 1fr;
        margin-top: 36px;
    }


    /* Related services */

    .related-services__grid {
        grid-template-columns: 1fr;
    }

    .related-service {
        min-height: 0;
        padding: 24px;
    }


    /* Current nav
       Mobile menu uses different visual indication */

    .global-nav a[aria-current="page"]:not(.button)::after {
        display: none;
    }

}


/* ==========================================================
   17. Small smartphones
   ========================================================== */

@media (max-width: 420px) {

    .anchor-nav__list {
        grid-template-columns: 1fr;
    }

    .page-hero__title {
        font-size: 2rem;
    }

}


/* ==========================================================
   18. Accessibility
   ========================================================== */

.breadcrumb__link:focus-visible,
.anchor-nav__link:focus-visible,
.related-service:focus-visible {
    outline: 3px solid var(--color-accent, #2675ad);
    outline-offset: 3px;
}


/* Reduce unnecessary motion when requested by OS */

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

    .anchor-nav__link,
    .related-service {
        transition: none;
    }

    .related-service:hover {
        transform: none;
    }

}
