﻿/* =====================================================================
   GRAPHICS DESIGNING PAGE  -  /wwwroot/css/graphicsdesigning.css
   Works inside _Layout. Every class starts with "gd-".
   Fixed navbar offset read from --nav2-h and --nav-h of the layout.
   ===================================================================== */
.gd-page {
    --gd-blue: #2f5bff;
    --gd-blue-d: #1d3fd1;
    --gd-sky: #7fa2ff;
    --gd-ink: #0a1230;
    --gd-muted: #516089;
    --gd-bg: #f6f8ff;
    --gd-tint: #e8eeff;
    --gd-pink: #ff6fa3;
    --gd-green: #19c28a;
    --gd-amber: #ffb547;
    --gd-line: rgba(10,18,48,.12);
    --gd-offset: calc(var(--nav2-h,42px) + var(--nav-h,100px));
    --gd-head: 'Bricolage Grotesque',system-ui,sans-serif;
    --gd-body: 'Instrument Sans',system-ui,sans-serif;
    font-family: var(--gd-body);
    color: var(--gd-ink);
    background: var(--gd-bg);
    line-height: 1.65;
    overflow-x: hidden;
}

    .gd-page *, .gd-page *::before, .gd-page *::after {
        box-sizing: border-box;
    }

    .gd-page img {
        max-width: 100%;
        display: block;
    }

    .gd-page a {
        text-decoration: none;
        color: inherit;
    }

    .gd-page h1, .gd-page h2, .gd-page h3 {
        font-family: var(--gd-head);
        font-weight: 800;
        letter-spacing: -.03em;
        line-height: 1.1;
        margin: 0;
        color: var(--gd-ink);
    }

    .gd-page p {
        margin: 0;
    }

    .gd-page :focus-visible {
        outline: 2px solid var(--gd-blue);
        outline-offset: 3px;
    }

.gd-wrap {
    width: min(1180px,100% - 2.5rem);
    margin-inline: auto;
}

.gd-section {
    padding: clamp(3.5rem,9vw,7rem) 0;
}

.gd-alt {
    background: var(--gd-tint);
}

.gd-white {
    background: #fff;
}

.gd-title {
    font-size: clamp(1.8rem,4.2vw,3.1rem);
    max-width: 22ch;
}

.gd-lead {
    color: var(--gd-muted);
    font-size: clamp(1rem,1.4vw,1.15rem);
    max-width: 58ch;
    margin-top: 1rem;
}

.gd-head {
    margin-bottom: clamp(2rem,5vw,3.5rem);
}

.gd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .95rem 1.7rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: .95rem;
    border: 1px solid var(--gd-blue);
    transition: transform .3s,background .3s,color .3s,box-shadow .3s;
    cursor: pointer;
}

.gd-btn-fill {
    background: var(--gd-blue);
    color: #fff;
}

    .gd-btn-fill:hover {
        background: #fff;
        color: var(--gd-blue);
        transform: translateY(-3px);
        box-shadow: 0 10px 24px rgba(47,91,255,.25);
    }

.gd-btn-line {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,.55);
}

    .gd-btn-line:hover {
        background: #fff;
        color: var(--gd-ink);
        transform: translateY(-3px);
    }

/* ================= HERO ================= */
.gd-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: #fff;
    padding: calc(var(--gd-offset) + clamp(2.5rem,6vw,5rem)) 0 clamp(3.5rem,8vw,6rem);
    background: radial-gradient(800px 480px at 10% 90%,rgba(255,181,71,.16),transparent 60%), radial-gradient(900px 500px at 88% 15%,rgba(255,111,163,.28),transparent 60%), linear-gradient(160deg,#0a1230 0%,#1a2b6e 100%);
}

.gd-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem,5vw,4.5rem);
    align-items: center;
}

.gd-hero h1 {
    color: #fff;
    font-size: clamp(2.2rem,5.4vw,4.4rem);
    line-height: 1.05;
}

    .gd-hero h1 em {
        font-style: normal;
        color: var(--gd-amber);
    }

.gd-hero-p {
    margin-top: 1.4rem;
    max-width: 52ch;
    color: rgba(255,255,255,.82);
    font-size: clamp(1rem,1.5vw,1.15rem);
}

.gd-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: .9rem;
    margin-top: 2rem;
}

.gd-hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem 1.6rem;
    margin: 2rem 0 0;
    padding: 0;
    list-style: none;
    color: rgba(255,255,255,.8);
    font-size: .92rem;
}

    .gd-hero-points li::before {
        content: "\2713";
        color: var(--gd-amber);
        margin-right: .5rem;
        font-weight: 700;
    }

/* design canvas / showcase */
.gd-canvas {
    position: relative;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 40px 80px rgba(0,0,0,.45);
    padding: 12px;
}

.gd-canvas-img {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3.4;
    background: linear-gradient(160deg,#9db7ff,#dbe5ff);
}

    .gd-canvas-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.gd-chip {
    position: absolute;
    display: flex;
    align-items: center;
    gap: .6rem;
    background: #fff;
    padding: .75rem 1.1rem;
    border-radius: 12px;
    box-shadow: 0 14px 34px rgba(10,18,48,.3);
    font-size: .82rem;
    font-weight: 600;
    color: var(--gd-ink);
    animation: gdFloat 5s ease-in-out infinite;
}

    .gd-chip b {
        display: block;
        font-family: var(--gd-head);
        font-size: 1.2rem;
        line-height: 1;
        color: var(--gd-blue);
    }

    .gd-chip.c1 {
        left: -7%;
        bottom: 12%;
    }

    .gd-chip.c2 {
        right: -4%;
        top: -7%;
        animation-delay: -2.2s;
    }

        .gd-chip.c2 b {
            color: var(--gd-pink);
        }

@keyframes gdFloat {
    0%,100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* ================= STRIP ================= */
.gd-strip {
    background: #fff;
    border-bottom: 1px solid var(--gd-line);
}

.gd-strip-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
}

.gd-strip-item {
    padding: 1.6rem 1rem;
    text-align: center;
    border-right: 1px solid var(--gd-line);
}

    .gd-strip-item:last-child {
        border-right: 0;
    }

    .gd-strip-item b {
        display: block;
        font-family: var(--gd-head);
        font-size: clamp(1.4rem,3vw,2.2rem);
        color: var(--gd-blue);
        line-height: 1;
    }

    .gd-strip-item span {
        display: block;
        margin-top: .4rem;
        font-size: .9rem;
        color: var(--gd-muted);
    }

/* ================= CARDS ================= */
.gd-cards {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 1.5rem;
}

.gd-card {
    background: #fff;
    border: 1px solid var(--gd-line);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .4s,box-shadow .4s,border-color .4s;
}

    .gd-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 22px 44px rgba(47,91,255,.16);
        border-color: rgba(47,91,255,.4);
    }

.gd-card-img {
    height: 180px;
    overflow: hidden;
    background: linear-gradient(160deg,#9db7ff,#dbe5ff);
}

    .gd-card-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .7s;
    }

.gd-card:hover .gd-card-img img {
    transform: scale(1.08);
}

.gd-card-body {
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: .6rem;
    flex: 1;
}

.gd-card h3 {
    font-size: 1.25rem;
}

.gd-card p {
    color: var(--gd-muted);
    font-size: .95rem;
}

.gd-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-top: auto;
    padding-top: .6rem;
}

    .gd-tags span {
        font-size: .78rem;
        padding: .25rem .7rem;
        border-radius: 99px;
        background: var(--gd-tint);
        color: var(--gd-blue-d);
        font-weight: 600;
    }

/* ================= SPLIT ================= */
.gd-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem,6vw,5rem);
    align-items: center;
}

.gd-photo {
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 4/3.4;
    background: linear-gradient(160deg,#9db7ff,#dbe5ff);
    box-shadow: 0 30px 60px rgba(10,18,48,.18);
}

    .gd-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.gd-list {
    list-style: none;
    margin: 1.8rem 0 0;
    padding: 0;
    display: grid;
    gap: 1.1rem;
}

    .gd-list li {
        display: grid;
        grid-template-columns: 40px 1fr;
        gap: 1rem;
    }

    .gd-list .ic {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        background: var(--gd-blue);
        display: grid;
        place-items: center;
    }

        .gd-list .ic svg {
            width: 20px;
            height: 20px;
            stroke: #fff;
            fill: none;
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

    .gd-list h3 {
        font-size: 1.05rem;
        margin-bottom: .15rem;
    }

    .gd-list p {
        color: var(--gd-muted);
        font-size: .93rem;
    }

/* ================= DELIVERABLES ================= */
.gd-grid4 {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 1rem;
}

.gd-box {
    background: var(--gd-bg);
    border: 1px solid var(--gd-line);
    border-radius: 14px;
    padding: 1.4rem;
}

    .gd-box h3 {
        font-size: 1.05rem;
        color: var(--gd-blue);
        margin-bottom: .9rem;
    }

    .gd-box ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: grid;
        gap: .5rem;
        font-size: .94rem;
    }

    .gd-box li {
        display: flex;
        align-items: center;
        gap: .6rem;
    }

        .gd-box li::before {
            content: "";
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: var(--gd-amber);
            flex: none;
        }

/* ================= STEPS ================= */
.gd-steps {
    display: grid;
    grid-template-columns: repeat(5,1fr);
    gap: 1.2rem;
    counter-reset: gd;
    position: relative;
}

    .gd-steps::before {
        content: "";
        position: absolute;
        left: 5%;
        right: 5%;
        top: 26px;
        height: 2px;
        background: repeating-linear-gradient(90deg,var(--gd-blue) 0 8px,transparent 8px 16px);
        opacity: .4;
    }

.gd-step {
    position: relative;
    text-align: center;
    padding: 0 .4rem;
}

    .gd-step::before {
        counter-increment: gd;
        content: counter(gd);
        display: grid;
        place-items: center;
        width: 54px;
        height: 54px;
        margin: 0 auto 1rem;
        border-radius: 50%;
        background: var(--gd-blue);
        color: #fff;
        font-family: var(--gd-head);
        font-weight: 800;
        font-size: 1.2rem;
        box-shadow: 0 0 0 8px var(--gd-tint);
    }

    .gd-step h3 {
        font-size: 1.08rem;
        margin-bottom: .4rem;
    }

    .gd-step p {
        color: var(--gd-muted);
        font-size: .92rem;
    }

/* ================= PORTFOLIO ================= */
.gd-portfolio {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 1.2rem;
}

.gd-work {
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    background: #dbe5ff;
    aspect-ratio: 4/5;
    transition: transform .4s ease, box-shadow .4s ease;
}

    .gd-work img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .7s ease;
    }

    .gd-work:hover {
        transform: translateY(-6px);
        box-shadow: 0 24px 40px rgba(10,18,48,.22);
    }

        .gd-work:hover img {
            transform: scale(1.08);
        }

    .gd-work figcaption {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        padding: 1.4rem 1rem .9rem;
        color: #fff;
        font-size: .86rem;
        font-weight: 600;
        background: linear-gradient(to top,rgba(5,11,31,.85),transparent);
    }

/* ================= FAQ ================= */
.gd-faq {
    max-width: 820px;
    margin-inline: auto;
}

    .gd-faq details {
        border-bottom: 1px solid var(--gd-line);
    }

    .gd-faq summary {
        list-style: none;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
        padding: 1.3rem 0;
        font-family: var(--gd-head);
        font-weight: 800;
        font-size: clamp(1.02rem,2vw,1.3rem);
    }

        .gd-faq summary::-webkit-details-marker {
            display: none;
        }

        .gd-faq summary::after {
            content: "+";
            font-size: 1.6rem;
            line-height: 1;
            color: var(--gd-blue);
            transition: transform .3s;
        }

    .gd-faq details[open] summary::after {
        transform: rotate(45deg);
    }

    .gd-faq details p {
        padding: 0 0 1.3rem;
        color: var(--gd-muted);
        max-width: 68ch;
    }

/* ================= CTA ================= */
.gd-cta {
    background: linear-gradient(135deg,#0a1230,#1d3fd1);
    color: #fff;
    border-radius: 22px;
    padding: clamp(2.2rem,6vw,4.5rem);
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

    .gd-cta::after {
        content: "";
        position: absolute;
        right: -80px;
        top: -80px;
        width: 280px;
        height: 280px;
        border-radius: 50%;
        border: 2px solid rgba(255,181,71,.45);
    }

    .gd-cta h2 {
        color: #fff;
        font-size: clamp(1.6rem,3.6vw,2.7rem);
        max-width: 22ch;
    }

    .gd-cta p {
        color: rgba(255,255,255,.8);
        margin-top: .8rem;
        max-width: 46ch;
    }

    .gd-cta .gd-btn-fill {
        background: #fff;
        color: var(--gd-blue);
        border-color: #fff;
        position: relative;
        z-index: 2;
    }

        .gd-cta .gd-btn-fill:hover {
            background: transparent;
            color: #fff;
        }

/* reveal */
.gd-js .gd-rv {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .8s ease,transform .8s ease;
}

    .gd-js .gd-rv.gd-in {
        opacity: 1;
        transform: none;
    }

/* ================= RESPONSIVE ================= */
@media (max-width:1100px) {
    .gd-cards {
        grid-template-columns: repeat(2,1fr);
    }

    .gd-grid4 {
        grid-template-columns: repeat(2,1fr);
    }

    .gd-steps {
        grid-template-columns: repeat(3,1fr);
        row-gap: 2rem;
    }

        .gd-steps::before {
            display: none;
        }

    .gd-portfolio {
        grid-template-columns: repeat(2,1fr);
    }
}

@media (max-width:900px) {
    .gd-hero-grid, .gd-split {
        grid-template-columns: 1fr;
    }

    .gd-canvas {
        max-width: 520px;
        margin-inline: auto;
    }

    .gd-chip.c1 {
        left: -2%;
    }

    .gd-chip.c2 {
        right: -2%;
    }

    .gd-split-img {
        max-width: 520px;
        margin-inline: auto;
        width: 100%;
    }

    .gd-strip-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .gd-strip-item:nth-child(2) {
        border-right: 0;
    }

    .gd-strip-item:nth-child(-n+2) {
        border-bottom: 1px solid var(--gd-line);
    }
}

@media (max-width:767px) {
    .gd-page {
        --gd-offset: calc(var(--nav2-h,38px) + var(--nav-h,64px));
    }

    .gd-hero-cta .gd-btn {
        flex: 1 1 100%;
    }

    .gd-cards {
        grid-template-columns: 1fr;
    }

    .gd-steps {
        grid-template-columns: 1fr 1fr;
    }

    .gd-card-img {
        height: 165px;
    }

    .gd-cta {
        text-align: center;
        justify-content: center;
    }

        .gd-cta .gd-btn {
            width: 100%;
        }
}

@media (max-width:480px) {
    .gd-wrap {
        width: min(1180px,100% - 1.6rem);
    }

    .gd-grid4, .gd-steps, .gd-portfolio {
        grid-template-columns: 1fr;
    }

    .gd-chip.c1 {
        left: 0;
        bottom: -8%;
    }

    .gd-chip.c2 {
        right: 0;
        top: -10%;
    }

    .gd-work {
        aspect-ratio: 16/11;
    }
}

@media (prefers-reduced-motion:reduce) {
    .gd-page * {
        animation: none !important;
        transition: none !important;
    }

    .gd-js .gd-rv {
        opacity: 1;
        transform: none;
    }
}
