/**
 * Oplus — Developer profile (single agency).
 *
 * Loads after oplus-developers.css and inherits its brand tokens, buttons and
 * lead block, so the profile and the directory stay one system.
 */

.odsp {
    --odsp-radius: 16px;
    --odsp-radius-sm: 12px;
}

/* ── Hero ──────────────────────────────────────────────────────── */

.odsp-hero {
    padding: 1.5rem 0 clamp(2.5rem, 5vw, 4rem);
}

.odsp-hero__panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: stretch;
    border-radius: 22px;
    background:
        radial-gradient(900px 500px at 0% 0%, rgba(0, 154, 68, 0.22) 0%, rgba(0, 154, 68, 0) 60%),
        var(--odev-brand-deep);
    color: #fff;
    overflow: hidden;
}

.odsp-hero__intro {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: clamp(1.75rem, 4vw, 3rem);
}

/* Logo sits on a white plate — brand logos are drawn for light backgrounds. */
.odsp-hero__logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 108px;
    height: 68px;
    margin-bottom: 1.5rem;
    padding: 0.75rem 1.15rem;
    border-radius: var(--odsp-radius-sm);
    background: #fff;
}

.odsp-hero__logo img {
    max-width: 150px;
    max-height: 44px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.odsp-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--odev-brand-accent);
}

.odsp-hero__eyebrow::before {
    content: "";
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--odev-brand-accent);
}

.odsp-hero__title {
    margin: 0;
    font-size: clamp(2rem, 1.2rem + 3vw, 3.25rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1.05;
    color: #fff;
    text-wrap: balance;
}

.odsp-hero__loc {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0.85rem 0 0;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.82);
}

.odsp-hero__loc svg {
    width: 16px;
    height: 16px;
    color: var(--odev-brand-accent);
}

.odsp-hero__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 1.25rem 1.5rem;
    width: 100%;
    margin: clamp(1.75rem, 4vw, 2.5rem) 0 0;
    padding: clamp(1.25rem, 3vw, 1.75rem) 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.odsp-hero__stat {
    margin: 0;
}

.odsp-hero__stat dt {
    margin: 0;
    font-size: clamp(1.375rem, 1.1rem + 0.9vw, 1.75rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.odsp-hero__stat dd {
    margin: 0.15rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.72);
}

.odsp-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: clamp(1.75rem, 4vw, 2.25rem);
}

.odsp-hero__media {
    position: relative;
    min-height: 320px;
    background: rgba(255, 255, 255, 0.04);
}

.odsp-hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Soft blend into the panel so the image never looks pasted on. */
.odsp-hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--odev-brand-deep) 0%, rgba(6, 46, 27, 0.35) 26%, rgba(6, 46, 27, 0) 62%);
    pointer-events: none;
}

[dir="rtl"] .odsp-hero__media::after {
    background: linear-gradient(270deg, var(--odev-brand-deep) 0%, rgba(6, 46, 27, 0.35) 26%, rgba(6, 46, 27, 0) 62%);
}

/* ── Sections ──────────────────────────────────────────────────── */

.odsp-section {
    padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.odsp-section--tint {
    background: var(--odev-ink-04);
}

.odsp-section__head {
    margin-bottom: 2rem;
}

/* ── Projects ──────────────────────────────────────────────────── */

.odsp-projects {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
    gap: 2rem 1.75rem;
}

.odsp-project {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--odev-ink-10);
    border-radius: var(--odsp-radius);
    background: var(--odev-surface);
    overflow: hidden;
    transition: border-color var(--odev-mid) var(--odev-ease),
                transform var(--odev-mid) var(--odev-ease),
                box-shadow var(--odev-mid) var(--odev-ease);
}

.odsp-project[hidden] {
    display: none;
}

.odsp-project:hover {
    border-color: rgba(0, 128, 60, 0.34);
    transform: translateY(-4px);
    box-shadow: 0 22px 44px -28px rgba(6, 46, 27, 0.55);
}

.odsp-project:focus-within {
    border-color: var(--odev-brand);
    box-shadow: 0 0 0 4px var(--odev-brand-ring);
}

.odsp-project__media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    background: var(--odev-ink-04);
    overflow: hidden;
}

.odsp-project__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Slow, restrained zoom — the premium reference uses a multi-second ease. */
    transition: transform var(--odev-slow) var(--odev-ease);
}

.odsp-project:hover .odsp-project__img {
    transform: scale(1.05);
}

.odsp-project__noimg {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 128, 60, 0.08), rgba(43, 43, 43, 0.05));
}

.odsp-project__badges {
    position: absolute;
    top: 0.9rem;
    inset-inline-start: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    max-width: calc(100% - 1.8rem);
}

.odsp-badge {
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.94);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--odev-brand-hover);
    white-space: nowrap;
}

.odsp-project__body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1 1 auto;
    padding: 1.25rem;
}

.odsp-project__title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.35;
}

.odsp-project__title a {
    color: var(--odev-ink);
    text-decoration: none;
    transition: color var(--odev-fast) var(--odev-ease);
}

.odsp-project__title a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.odsp-project:hover .odsp-project__title a {
    color: var(--odev-brand);
}

.odsp-project__loc {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    font-size: 0.875rem;
    color: var(--odev-ink-muted);
}

.odsp-project__loc svg {
    flex: none;
    width: 15px;
    height: 15px;
    color: var(--odev-brand);
}

.odsp-project__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    margin: 0;
    padding: 0.85rem 0 0;
    border-top: 1px solid var(--odev-ink-10);
}

.odsp-project__facts div {
    margin: 0;
}

.odsp-project__facts dt {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.35;
    color: var(--odev-ink-muted);
}

.odsp-project__facts dd {
    margin: 0.1rem 0 0;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--odev-ink);
}

.odsp-project__foot {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-top: auto;
    padding-top: 0.85rem;
    border-top: 1px solid var(--odev-ink-10);
}

.odsp-project__price {
    margin: 0;
    line-height: 1.3;
}

.odsp-project__price span {
    display: block;
    font-size: 0.75rem;
    color: var(--odev-ink-muted);
}

.odsp-project__price strong {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--odev-ink);
    font-variant-numeric: tabular-nums;
}

.odsp-project__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--odev-brand);
    white-space: nowrap;
}

.odsp-project__cta svg {
    width: 16px;
    height: 16px;
    transition: transform var(--odev-fast) var(--odev-ease);
}

.odsp-project__verification {
    margin: 0.8rem 0 0;
    padding-top: 0.75rem;
    border-top: 1px solid var(--odev-ink-10);
    font-size: 0.75rem;
    line-height: 1.45;
    color: var(--odev-ink-muted);
}

.odsp-project:hover .odsp-project__cta svg {
    transform: translateX(3px);
}

[dir="rtl"] .odsp-project__cta svg {
    transform: scaleX(-1);
}

[dir="rtl"] .odsp-project:hover .odsp-project__cta svg {
    transform: scaleX(-1) translateX(3px);
}

.odsp-more {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
}

/* ── About ─────────────────────────────────────────────────────── */

.odsp-about {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.85fr);
    gap: clamp(2rem, 5vw, 3.5rem);
    align-items: start;
}

.odsp-prose {
    margin-top: 1.5rem;
    max-width: 72ch;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--odev-ink-72);
}

.odsp-prose > * + * {
    margin-top: 1.1rem;
}

.odsp-prose h2,
.odsp-prose h3,
.odsp-prose h4 {
    margin-top: 2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.3;
    color: var(--odev-ink);
}

.odsp-prose h2 { font-size: 1.5rem; }
.odsp-prose h3 { font-size: 1.25rem; }
.odsp-prose h4 { font-size: 1.0625rem; }

.odsp-prose a {
    color: var(--odev-brand);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

.odsp-prose ul,
.odsp-prose ol {
    padding-inline-start: 1.35rem;
}

.odsp-prose li + li {
    margin-top: 0.4rem;
}

.odsp-prose img {
    max-width: 100%;
    height: auto;
    border-radius: var(--odsp-radius-sm);
}

/* Long imported profiles often ship raw tables — keep them readable. */
.odsp-prose table {
    display: block;
    width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.odsp-prose th,
.odsp-prose td {
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--odev-ink-10);
    text-align: start;
    vertical-align: top;
}

.odsp-prose th {
    background: var(--odev-ink-04);
    font-weight: 600;
    color: var(--odev-ink);
}

.odsp-about__side {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: sticky;
    top: 2rem;
}

.odsp-facts {
    padding: 1.35rem;
    border: 1px solid var(--odev-ink-10);
    border-radius: var(--odsp-radius);
    background: var(--odev-surface);
}

.odsp-facts__title {
    margin: 0 0 0.9rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--odev-ink-10);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--odev-ink-muted);
}

.odsp-facts__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.odsp-facts__tags li {
    padding: 0.3rem 0.65rem;
    border-radius: var(--odev-r-pill);
    background: var(--odev-brand-tint);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--odev-brand);
}

.odsp-facts__rows {
    margin: 0;
}

.odsp-facts__rows div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 0;
}

.odsp-facts__rows div + div {
    border-top: 1px solid var(--odev-ink-10);
}

.odsp-facts__rows dt {
    margin: 0;
    font-size: 0.875rem;
    color: var(--odev-ink-muted);
}

.odsp-facts__rows dd {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--odev-ink);
    text-align: end;
    font-variant-numeric: tabular-nums;
}

.odsp-facts__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 44px;
    padding: 0 1rem;
    border: 1px solid var(--odev-ink-10);
    border-radius: var(--odev-r-pill);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--odev-brand);
    text-decoration: none;
    align-self: flex-start;
    transition: border-color var(--odev-fast) var(--odev-ease),
                background-color var(--odev-fast) var(--odev-ease);
}

.odsp-facts__link:hover {
    border-color: var(--odev-brand);
    background: var(--odev-brand-tint);
    color: var(--odev-brand);
}

.odsp-facts__link svg {
    width: 15px;
    height: 15px;
}

/* ── Agents ────────────────────────────────────────────────────── */

.odsp-agents {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr));
    gap: 1.25rem;
}

.odsp-agent {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    padding: 1.5rem 1rem;
    border: 1px solid var(--odev-ink-10);
    border-radius: var(--odsp-radius);
    background: var(--odev-surface);
    text-align: center;
    text-decoration: none;
    transition: border-color var(--odev-fast) var(--odev-ease),
                transform var(--odev-mid) var(--odev-ease);
}

.odsp-agent:hover {
    border-color: var(--odev-brand);
    transform: translateY(-3px);
}

.odsp-agent:focus-visible {
    outline: none;
    border-color: var(--odev-brand);
    box-shadow: 0 0 0 4px var(--odev-brand-ring);
}

.odsp-agent__photo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    margin-bottom: 0.85rem;
    border-radius: 50%;
    background: var(--odev-brand-tint);
    overflow: hidden;
}

.odsp-agent__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.odsp-agent__initial {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--odev-brand);
}

.odsp-agent__name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--odev-ink);
}

.odsp-agent__role {
    font-size: 0.8125rem;
    color: var(--odev-ink-muted);
}

/* -- FAQ --------------------------------------------------------------- */

.odsp-faq__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.odsp-faq__head .odev-eyebrow { margin-bottom: 0.55rem; }
.odsp-faq__ask { flex: 0 0 auto; }
.odsp-faq__list { border-top: 1px solid var(--odev-ink-10); }
.odsp-faq__item { border-bottom: 1px solid var(--odev-ink-10); }

.odsp-faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 76px;
    padding: 1rem 0;
    list-style: none;
    cursor: pointer;
    font-size: clamp(1rem, 0.94rem + 0.25vw, 1.1875rem);
    font-weight: 600;
    line-height: 1.4;
    color: var(--odev-ink);
}

.odsp-faq__question::-webkit-details-marker { display: none; }
.odsp-faq__question:hover { color: var(--odev-brand); }

.odsp-faq__question:focus-visible {
    outline: 3px solid var(--odev-brand-ring);
    outline-offset: 4px;
    border-radius: 4px;
}

.odsp-faq__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border: 1px solid var(--odev-ink-10);
    border-radius: 50%;
    color: var(--odev-brand);
    transition: transform var(--odev-mid) var(--odev-ease), border-color var(--odev-fast) var(--odev-ease), background-color var(--odev-fast) var(--odev-ease);
}

.odsp-faq__icon svg {
    width: 17px;
    height: 17px;
}

.odsp-faq__item[open] .odsp-faq__icon {
    transform: rotate(180deg);
    border-color: var(--odev-brand);
    background: var(--odev-brand-tint);
}

.odsp-faq__answer {
    max-width: 900px;
    padding: 0 4rem 1.5rem 0;
    font-size: 0.9375rem;
    line-height: 1.75;
    color: var(--odev-ink-muted);
}

[dir='rtl'] .odsp-faq__answer {
    padding-right: 0;
    padding-left: 4rem;
}

.odsp-faq__answer p { margin: 0 0 0.75rem; }
.odsp-faq__answer p:last-child { margin-bottom: 0; }

/* ── Back link ─────────────────────────────────────────────────── */

.odsp-back {
    padding: 0 0 3rem;
}

.odsp-back a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 44px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--odev-brand);
    text-decoration: none;
}

.odsp-back a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.odsp-back svg {
    width: 17px;
    height: 17px;
}

[dir="rtl"] .odsp-back svg {
    transform: scaleX(-1);
}

/* ── Responsive ────────────────────────────────────────────────── */

@media (max-width: 991px) {
    .odsp-hero__panel {
        grid-template-columns: 1fr;
    }

    /* Image above the copy once stacked, so the page opens on a visual. */
    .odsp-hero__media {
        order: -1;
        min-height: 220px;
    }

    .odsp-hero__media::after {
        background: linear-gradient(180deg, rgba(6, 46, 27, 0) 30%, var(--odev-brand-deep) 100%);
    }

    [dir="rtl"] .odsp-hero__media::after {
        background: linear-gradient(180deg, rgba(6, 46, 27, 0) 30%, var(--odev-brand-deep) 100%);
    }

    .odsp-about {
        grid-template-columns: 1fr;
    }

    .odsp-about__side {
        position: static;
    }
}

@media (max-width: 767px) {
    .odsp-faq__head {
        align-items: flex-start;
        flex-direction: column;
        gap: 1.25rem;
    }

    .odsp-faq__ask { width: 100%; }

    .odsp-faq__question {
        min-height: 68px;
        gap: 1rem;
    }

    .odsp-faq__answer,
    [dir='rtl'] .odsp-faq__answer {
        padding-right: 0;
        padding-left: 0;
    }

    .odsp-projects {
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
        gap: 1.5rem 1.25rem;
    }

    .odsp-hero__actions .odev-btn {
        width: 100%;
    }

    .odsp-agents {
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr));
    }
}

@media (max-width: 560px) {
    .odsp-projects {
        grid-template-columns: 1fr;
    }

    .odsp-hero__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ── Preferences ───────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    .odsp-project:hover,
    .odsp-project:hover .odsp-project__img,
    .odsp-agent:hover {
        transform: none;
    }
}
