/* ================================================================
   DesIDEA Service Pages — Unified Image Display System
   Consistent sizing, framing, and clarity across all service pages
   ================================================================ */

/* ---- Shared media frame (used via parent containers) ---- */
.sv-media-frame {
    position: relative;
    background: linear-gradient(145deg, #f8fafc 0%, #eef2ff 42%, #f0fdf4 100%);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--sv-r-xl);
    padding: clamp(18px, 3vw, 28px);
    box-shadow: var(--sv-shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: clamp(220px, 28vw, 320px);
}

.sv-media-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.sv-media-frame img,
.sv-media-frame svg {
    position: relative;
    z-index: 1;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: clamp(200px, 28vw, 320px);
    object-fit: contain;
    display: block;
}

.sv-media-frame--sm {
    min-height: clamp(160px, 22vw, 240px);
    padding: clamp(14px, 2vw, 20px);
}

.sv-media-frame--sm img {
    max-height: clamp(120px, 18vw, 200px);
}

.sv-media-frame--logo {
    min-height: auto;
    padding: clamp(24px, 4vw, 36px);
    background: var(--sv-white);
}

.sv-media-frame--logo img {
    max-height: clamp(72px, 10vw, 120px);
}

/* ---- Story section visuals ---- */
.sv-empathy__visual,
.sv-highlight-row__visual {
    position: relative;
    background: linear-gradient(145deg, #f8fafc 0%, #eef2ff 42%, #f0fdf4 100%);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--sv-r-xl);
    padding: clamp(18px, 3vw, 28px);
    box-shadow: var(--sv-shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(240px, 30vw, 360px);
    overflow: hidden;
}

.sv-empathy__visual::after,
.sv-highlight-row__visual::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.sv-empathy__visual img,
.sv-highlight-row__visual img {
    position: relative;
    z-index: 1;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: clamp(220px, 30vw, 340px);
    object-fit: contain;
    border-radius: var(--sv-r-md);
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.1);
}

/* SVG illustrations need stronger presence in large frames */
.sv-empathy__visual img[src$=".svg"],
.sv-highlight-row__visual img[src$=".svg"],
.sv-solution__visual img[src$=".svg"],
.sv-solution__panel img[src$=".svg"] {
    width: min(82%, 300px);
    max-height: clamp(200px, 28vw, 300px);
    min-height: 160px;
    box-shadow: none;
    filter: drop-shadow(0 18px 36px rgba(15, 23, 42, 0.12));
    padding: 12px;
}

.sv-solution__visual {
    background: linear-gradient(145deg, #f8fafc 0%, #eef2ff 42%, #f0fdf4 100%);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--sv-r-xl);
    padding: clamp(22px, 3vw, 32px);
    box-shadow: var(--sv-shadow-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: clamp(280px, 34vw, 400px);
}

.sv-solution__visual img {
    width: auto;
    max-width: 100%;
    max-height: clamp(240px, 32vw, 360px);
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border-radius: var(--sv-r-xl);
}

.sv-solution__visual .sv-solution__badge {
    width: 100%;
    margin-top: 18px;
}

.sv-solution__panel {
    text-align: center;
}

.sv-solution__panel img {
    width: auto;
    max-width: 100%;
    max-height: clamp(180px, 26vw, 280px);
    object-fit: contain;
    display: block;
    margin: 0 auto 20px;
    border-radius: var(--sv-r-md);
    padding: clamp(8px, 1.5vw, 14px);
    background: var(--sv-cream);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.sv-solution__panel--diagram img {
    max-height: clamp(200px, 28vw, 300px);
    padding: clamp(12px, 2vw, 18px);
}

.sv-solution__panel--logo img {
    max-height: clamp(72px, 10vw, 120px);
    padding: clamp(16px, 2.5vw, 24px);
    background: var(--sv-white);
}

/* ---- Split layout & section images ---- */
.sv-split__media {
    background: linear-gradient(145deg, #f8fafc 0%, #eef2ff 42%, #f0fdf4 100%);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--sv-r-lg);
    padding: clamp(18px, 3vw, 28px);
    box-shadow: var(--sv-shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(240px, 32vw, 360px);
    overflow: hidden;
}

.sv-split__media img {
    width: auto;
    max-width: 100%;
    max-height: clamp(220px, 30vw, 340px);
    height: auto;
    object-fit: contain;
    border-radius: var(--sv-r-md);
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.1);
}

.sv-logo-center img {
    max-height: clamp(56px, 8vw, 88px);
    width: auto;
    max-width: min(280px, 80%);
    object-fit: contain;
    padding: 12px 20px;
    background: var(--sv-white);
    border-radius: var(--sv-r-md);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: var(--sv-shadow-sm);
}

.sv-section-head > img {
    max-width: min(720px, 100%);
    max-height: clamp(200px, 28vw, 340px);
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0 auto 24px;
    display: block;
    border-radius: var(--sv-r-lg);
    box-shadow: var(--sv-shadow-md);
    padding: clamp(14px, 2vw, 22px);
    background: var(--sv-white);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

/* ---- Hero stats ---- */
.sv-hero-stat > i {
    display: block;
    font-size: 28px;
    color: var(--sv-green-dark);
    margin-bottom: 10px;
    line-height: 1;
}

.sv-hero-stat img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin: 0 auto 10px;
    display: block;
    padding: 8px;
    background: rgba(114, 187, 68, 0.1);
    border-radius: 14px;
    border: 1px solid rgba(114, 187, 68, 0.18);
}

/* ---- Capability & feature cards ---- */
.sv-cap-card img,
.sv-cap-grid .sv-cap-card img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 16px;
    padding: 10px;
    background: var(--sv-cream);
    border-radius: var(--sv-r-md);
    border: 1px solid rgba(15, 23, 42, 0.06);
    position: relative;
    z-index: 1;
}

.sv-feature-card img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    margin: 0 auto 16px;
    display: block;
    padding: 8px;
    background: rgba(114, 187, 68, 0.08);
    border-radius: 12px;
}

.sv-icon-card__icon {
    background: rgba(114, 187, 68, 0.1);
    border-radius: var(--sv-r-sm);
    border: 1px solid rgba(114, 187, 68, 0.15);
}

.sv-icon-card__icon img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

/* ---- Platform & ecosystem ---- */
.sv-platform-card__img {
    min-height: 128px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.sv-platform-card__img img {
    width: auto;
    height: clamp(56px, 8vw, 72px);
    max-width: 85%;
    object-fit: contain;
}

.sv-ecosystem__hub img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    padding: 10px;
    background: var(--sv-white);
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    flex-shrink: 0;
}

/* ---- Advantages & trust ---- */
.sv-advantage__icon img {
    width: 100% !important;
    height: 100% !important;
    max-width: 32px;
    max-height: 32px;
    object-fit: contain;
    padding: 2px;
}

.sv-trust-card img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    margin-bottom: 12px;
}

/* ---- Process flow (QA page) ---- */
.sv-flow__card img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-bottom: 10px;
    filter: brightness(0) invert(1);
}

/* ---- Index & CTA ---- */
.sv-index-hero img {
    width: auto;
    max-width: min(420px, 100%);
    max-height: clamp(240px, 32vw, 360px);
    object-fit: contain;
    margin: 0 auto;
    display: block;
    filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.3));
}

.sv-service-card__head img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
}

.sv-cta__visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sv-cta__visual img {
    width: auto;
    max-width: 100%;
    max-height: clamp(220px, 30vw, 320px);
    object-fit: contain;
    border-radius: var(--sv-r-lg);
    box-shadow: var(--sv-shadow-lg);
}

/* ---- Hero layout image variants ---- */
.sv-hero--split-visual .sv-hero__content {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(32px, 5vw, 56px);
    align-items: center;
}

.sv-hero--split-visual .sv-hero__visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.sv-hero--split-visual .sv-hero__visual-ring {
    width: clamp(220px, 28vw, 300px);
    height: clamp(220px, 28vw, 300px);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(114, 187, 68, 0.28), rgba(15, 23, 42, 0.35));
    border: 2px solid rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(28px, 4vw, 40px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.sv-hero--split-visual .sv-hero__visual-ring img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.25));
}

.sv-hero--orbit .sv-hero__content {
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
}

.sv-hero--orbit .sv-hero__lead {
    margin-left: auto;
    margin-right: auto;
}

.sv-hero--orbit .sv-hero__orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(520px, 85vw);
    height: min(520px, 85vw);
    transform: translate(-50%, -50%);
    border: 1px solid rgba(114, 187, 68, 0.22);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.sv-hero--orbit .sv-hero__orbit-ring::before {
    content: "";
    position: absolute;
    inset: 18%;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 50%;
}

.sv-hero--cinematic .sv-hero__content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.sv-hero--cinematic .sv-hero__lead {
    margin-left: auto;
    margin-right: auto;
}

.sv-hero--cinematic .sv-hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 18px;
}

.sv-hero--cinematic .sv-hero__chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--sv-white);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.sv-hero--diagonal .sv-hero__content {
    max-width: 640px;
}

.sv-hero--diagonal::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 42%;
    background: linear-gradient(135deg, rgba(114, 187, 68, 0.15), transparent 70%);
    clip-path: polygon(28% 0, 100% 0, 100% 100%, 0 100%);
    pointer-events: none;
    z-index: 1;
}

.sv-hero--qa-light .sv-hero__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 5vw, 48px);
    align-items: center;
}

.sv-hero--qa-light .sv-hero__qa-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--sv-r-xl);
    padding: clamp(16px, 3vw, 24px);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.sv-hero--qa-light .sv-hero__qa-visual img {
    max-height: clamp(220px, 36vh, 360px);
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.35));
}

.sv-hero--logo-stack .sv-hero__logo,
.sv-hero--brand-panel .sv-hero__brand-logo {
    max-height: clamp(48px, 7vw, 72px);
    width: auto;
    max-width: min(220px, 70%);
    object-fit: contain;
    margin-bottom: 20px;
}

@media (max-width: 991px) {
    .sv-hero--split-visual .sv-hero__content,
    .sv-hero--qa-light .sv-hero__content {
        grid-template-columns: 1fr;
    }

    .sv-hero--split-visual .sv-hero__visual {
        order: -1;
    }

    .sv-hero--split-visual .sv-hero__visual-ring {
        width: clamp(180px, 50vw, 240px);
        height: clamp(180px, 50vw, 240px);
    }

    .sv-empathy__visual,
    .sv-highlight-row__visual,
    .sv-split__media {
        min-height: 220px;
    }
}

@media (max-width: 767px) {
    .sv-empathy__visual,
    .sv-highlight-row__visual,
    .sv-solution__visual,
    .sv-split__media {
        min-height: 200px;
        padding: clamp(14px, 3vw, 22px);
    }

    .sv-empathy__visual img,
    .sv-highlight-row__visual img,
    .sv-solution__visual img {
        max-height: clamp(180px, 42vw, 280px);
    }
}

@media (max-width: 575px) {
    .sv-cap-card img,
    .sv-cap-grid .sv-cap-card img {
        width: 56px;
        height: 56px;
        padding: 8px;
    }

    .sv-hero-stat img {
        width: 42px;
        height: 42px;
        padding: 6px;
    }
}
