
/* =========================================
   AD SOLUTIONS — PORTFOLIO
========================================= */

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

.ad-project {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
    background: #ffffff;
    border: 1px solid #d6e5ef;
    border-radius: 22px;
    color: #102b46;
    transition: transform .35s ease,
                box-shadow .35s ease;
}

.ad-project:hover {
    transform: translateY(-7px);
    box-shadow: 0 22px 50px rgba(16,43,70,.12);
}

.ad-project-cover {
    position: relative;
    height: 310px;
    overflow: hidden;
}

.ad-company-cover {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 35px;
    background: linear-gradient(
        135deg,
        #d8e8fb,
        #c6f4f8
    );
}

.ad-browser {
    width: 100%;
    max-width: 460px;
    overflow: hidden;
    background: #eef8fc;
    border-radius: 12px;
    box-shadow: 0 20px 45px rgba(16,43,70,.12);
    transition: transform .5s ease;
}

.ad-project:hover .ad-browser {
    transform: scale(1.035);
}

.ad-browser-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 16px;
    background: #20354c;
}

.ad-browser-bar span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #22b8cf;
}

.ad-browser-content {
    padding: 30px;
}

.ad-browser-content small {
    font-size: 11px;
    letter-spacing: 1px;
}

.ad-browser-content h3 {
    font-size: clamp(22px, 2.5vw, 32px);
    line-height: 1.25;
    margin: 20px 0;
    color: #0077b6;
}

.ad-browser-content p {
    color: #0077b6;
    font-size: 12px;
    margin: 0;
}

/* OLIVA COVER */

.ad-oliva-cover {
    background: #879b61;
}

.ad-oliva-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s ease;
}

.ad-project:hover .ad-oliva-cover img {
    transform: scale(1.07);
}

.ad-oliva-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        0deg,
        rgba(25,40,22,.8),
        transparent 65%
    );
}

.ad-oliva-brand {
    position: absolute;
    bottom: 25px;
    left: 28px;
    right: 28px;
    color: #fff3dc;
}

.ad-oliva-brand strong {
    display: block;
    font-family: Georgia, serif;
    font-size: 42px;
    font-weight: 400;
    letter-spacing: 7px;
}

.ad-oliva-brand small {
    font-size: 10px;
    letter-spacing: 3px;
}

.ad-concept-label {
    position: absolute;
    top: 18px;
    right: 18px;
    background: rgba(255,250,235,.92);
    color: #354b32;
    padding: 9px 14px;
    border-radius: 30px;
    font-size: 10px;
    font-weight: 700;
}

/* PROJECT DETAILS */

.ad-project-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 28px;
}

.ad-project-type {
    display: block;
    color: #0077b6;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.ad-project-body h3 {
    color: #102b46;
    font-size: 23px;
    line-height: 1.3;
    margin: 0 0 14px;
}

.ad-project-body p {
    color: #496580;
    font-size: 14px;
    line-height: 1.8;
    margin: 0 0 20px;
}

.ad-project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 25px;
}

.ad-project-tags span {
    padding: 7px 11px;
    background: #eaf5fb;
    color: #17658f;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
}

.ad-project-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    margin-top: auto;
    padding: 12px 20px;
    border-radius: 8px;
    background: #0077b6;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background .3s,
                transform .3s;
}

.ad-project-link:hover {
    background: #102b46;
    transform: translateY(-3px);
}

.ad-project-link:focus-visible {
    outline: 3px solid #22b8cf;
    outline-offset: 4px;
}

/* RESPONSIVE */

@media (max-width: 850px) {

    .ad-projects {
        gap: 18px;
    }

    .ad-project-cover {
        height: 260px;
    }

    .ad-company-cover {
        padding: 22px;
    }

    .ad-browser-content {
        padding: 22px;
    }

    .ad-project-body {
        padding: 22px;
    }
}

@media (max-width: 650px) {

    .ad-projects {
        grid-template-columns: 1fr;
    }

    .ad-project-cover {
        height: 260px;
    }

    .ad-project-body h3 {
        font-size: 21px;
    }

    .ad-project-link {
        width: 100%;
    }
}

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

    .ad-project,
    .ad-project *,
    .ad-project-link {
        transition: none !important;
        transform: none !important;
    }
}
