/* ============================================
   SUBPAGE STYLES
   Shared styles for all focus-area subpages
   ============================================ */

/* Hero Section */
.subpage-hero {
    padding-top: 4rem;
    min-height: auto;
}

.subpage-hero .section-title {
    margin-bottom: 2rem;
}

/* Description Block */
.subpage-description {
    max-width: 800px;
    margin: 0 auto 4rem auto;
    text-align: center;
}

.subpage-description p {
    color: var(--muted);
    font-size: var(--text-p);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.subpage-description p:last-child {
    margin-bottom: 0;
}

.subpage-description strong {
    color: var(--text-color);
    font-weight: 500;
}

/* Feature Items */
.subpage-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-item {
    padding: 2.5rem 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: transform 0.4s ease, background 0.4s ease, border-color 0.4s ease;
}

.feature-item:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

.feature-item .sv-number {
    display: block;
    margin-bottom: 1rem;
}

.feature-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    font-family: var(--font-display);
}

.feature-item p {
    color: var(--muted);
    font-size: var(--text-sm);
    line-height: 1.6;
}

/* ============================================
   VIDEO PORTFOLIO (Live Action Page)
   ============================================ */

.video-portfolio-section {
    min-height: auto;
    padding: 4rem 0 6rem;
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* Video Card */
.video-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #111;
}

.video-card:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.video-card__thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    overflow: hidden;
    background: #0d0d0d;
}

.video-card__thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.video-card:hover .video-card__thumbnail img {
    transform: scale(1.06);
}

/* Play icon overlay */
.video-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.55);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.video-card__play::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 7px 0 7px 12px;
    border-color: transparent transparent transparent #fff;
    margin-left: 2px;
}

.video-card:hover .video-card__play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Video Card Info */
.video-card__info {
    padding: 0.75rem 1rem;
}

.video-card__info h3 {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--muted);
    line-height: 1.4;
    font-family: var(--font-sans);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================
   VIDEO MODAL
   ============================================ */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.88);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-modal.is-active {
    opacity: 1;
    visibility: visible;
}

.video-modal__inner {
    position: relative;
    width: 90%;
    max-width: 900px;
    transform: scale(0.94);
    transition: transform 0.3s ease;
}

.video-modal.is-active .video-modal__inner {
    transform: scale(1);
}

.video-modal__player {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
}

.video-modal__player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-modal__close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.video-modal__close:hover {
    opacity: 1;
}

.video-modal__close svg {
    width: 20px;
    height: 20px;
    stroke: #fff;
    stroke-width: 2;
}

.video-modal__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    transition: opacity 0.2s ease, background 0.2s ease;
}

.video-modal__nav:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.15);
}

.video-modal__nav svg {
    width: 18px;
    height: 18px;
    stroke: #fff;
    stroke-width: 2;
    fill: none;
}

.video-modal__nav--prev {
    left: -60px;
}

.video-modal__nav--next {
    right: -60px;
}

/* ============================================
   RESPONSIVE — SUBPAGES
   ============================================ */
@media (max-width: 900px) {
    .subpage-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .feature-item {
        padding: 1.5rem;
    }

    .subpage-description p {
        font-size: var(--text-sm);
        text-align: left;
    }

    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .video-card__info h3 {
        font-size: 0.65rem;
    }

    .video-modal__nav--prev {
        left: 8px;
    }

    .video-modal__nav--next {
        right: 8px;
    }

    .video-modal__nav {
        width: 34px;
        height: 34px;
        background: rgba(0, 0, 0, 0.5);
        border-color: rgba(255, 255, 255, 0.15);
    }

    .video-modal__inner {
        width: 95%;
    }

    .video-modal__player {
        border-radius: 6px;
    }
}

/* Service item links (for homepage linking) */
.service-item a.service-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    gap: 1.5rem;
    align-items: stretch;
    width: 100%;
}

.service-item a.service-link:hover h3 {
    transform: translateX(10px);
}
