/* ==========================================================================
   Single Service Page — musyokimusyoka.com inspired layout
   Intro · Gallery · CTA Strip · Content · FAQ
   ========================================================================== */

/* ==========================================================================
   CTA BAR — action buttons below the page title (replaces old intro bar)
   ========================================================================== */
.jps-svc-cta-bar {
    background: #111;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    padding: 16px 0;
}

.jps-svc-cta-bar__inner {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ==========================================================================
   GALLERY — 3-column grid, uniform ratio, titles below (musyokimusyoka style)
   ========================================================================== */
.jps-svc-gallery {
    background: #111;
    padding: 50px 0 60px;
}

/* Full-width container — no jps-container wrapper so grid can breathe */
.jps-svc-gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 2px;
}

/* Each gallery item card */
.jps-svc-gallery__item {
    display: block;
    text-decoration: none;
    background: #0a0a0a;
    cursor: pointer;
    contain: layout style; /* paint containment for faster reflow */
}

div.jps-svc-gallery__item {
    cursor: default;
}

/* Featured first item spans 2 columns */
.jps-svc-gallery__grid > .jps-svc-gallery__item:first-child {
    grid-column: span 2;
}

/* Thumbnail — 3:2 aspect ratio */
.jps-svc-gallery__thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 770 / 513;
    background: #1a1a1a;
}

/* Featured thumb keeps same ratio but feels wider naturally */
.jps-svc-gallery__grid > .jps-svc-gallery__item:first-child .jps-svc-gallery__thumb {
    aspect-ratio: 16 / 9;
}

.jps-svc-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.jps-svc-gallery__item:hover .jps-svc-gallery__thumb img {
    transform: scale(1.06);
}

/* Overlay: gradient at bottom + caption + zoom icon on hover */
.jps-svc-gallery__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.jps-svc-gallery__item:hover .jps-svc-gallery__overlay {
    opacity: 1;
}

/* Caption inside overlay */
.jps-svc-gallery__caption {
    padding: 14px 16px;
    font-family: var(--jps-font-heading);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.9);
    line-height: 1.3;
}

.jps-svc-gallery__grid > .jps-svc-gallery__item:first-child .jps-svc-gallery__caption {
    font-size: 0.88rem;
    letter-spacing: 1.2px;
}

/* Zoom icon — centered */
.jps-svc-gallery__zoom {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    width: 46px;
    height: 46px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.25s;
    backdrop-filter: blur(4px);
}

.jps-svc-gallery__item:hover .jps-svc-gallery__zoom {
    transform: translate(-50%, -50%) scale(1);
    background: rgba(255,255,255,0.2);
}

/* Hide old label row */
.jps-svc-gallery__label,
.jps-svc-gallery__title,
.jps-svc-gallery__view {
    display: none;
}

/* Sample notice */
.jps-svc-gallery__notice {
    text-align: center;
    margin-top: 30px;
    padding: 0 20px;
}

.jps-svc-gallery__notice p {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.25);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 8px 20px;
    border-radius: 999px;
}

/* Responsive gallery */
@media (max-width: 900px) {
    .jps-svc-gallery__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    /* featured stays span 2 on tablet */
}

@media (max-width: 600px) {
    .jps-svc-gallery__grid {
        grid-template-columns: 1fr;
        gap: 1px;
    }
    /* reset featured span on mobile */
    .jps-svc-gallery__grid > .jps-svc-gallery__item:first-child {
        grid-column: span 1;
    }
    .jps-svc-gallery__grid > .jps-svc-gallery__item:first-child .jps-svc-gallery__thumb {
        aspect-ratio: 16 / 9;
    }
    .jps-svc-gallery__overlay {
        opacity: 1; /* always show captions on touch devices */
    }
}

/* ==========================================================================
   GLightbox overrides
   ========================================================================== */
.goverlay {
    background: rgba(5,5,5,0.97) !important;
}

.glightbox-clean .gnext,
.glightbox-clean .gprev {
    background-color: rgba(200,169,110,0.85) !important;
    border: none !important;
}

.glightbox-clean .gnext:hover,
.glightbox-clean .gprev:hover {
    background-color: var(--jps-orange) !important;
}

.glightbox-clean .gclose {
    background-color: rgba(255,255,255,0.06) !important;
}

.glightbox-clean .gclose:hover {
    background-color: var(--jps-orange) !important;
}

/* ==========================================================================
   CTA STRIP — "Let's Work Together"
   ========================================================================== */
.jps-svc-cta-strip {
    background: var(--jps-dark-2);
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 60px 0;
}

.jps-svc-cta-strip__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.jps-svc-cta-strip__text h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--jps-white);
    margin-bottom: 8px;
}

.jps-svc-cta-strip__text p {
    font-size: 0.97rem;
    font-weight: 300;
    color: rgba(255,255,255,0.5);
    margin: 0;
}

.jps-svc-cta-strip__actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.jps-svc-cta-strip__wa {
    color: #25D366 !important;
    border-color: rgba(37,211,102,0.4) !important;
}

.jps-svc-cta-strip__wa:hover {
    background: rgba(37,211,102,0.1) !important;
    border-color: #25D366 !important;
}

@media (max-width: 768px) {
    .jps-svc-cta-strip__inner {
        flex-direction: column;
        text-align: center;
    }

    .jps-svc-cta-strip__actions {
        justify-content: center;
    }
}

/* ==========================================================================
   PAGE CONTENT — WordPress editor
   ========================================================================== */
.jps-svc-content {
    background: var(--jps-off-white);
    padding: 80px 0;
}

.jps-svc-content__body {
    max-width: 860px;
    margin: 0 auto;
}

.jps-entry-content h2,
.jps-entry-content h3,
.jps-entry-content h4 {
    font-family: var(--jps-font-heading);
    color: var(--jps-dark);
    margin-top: 2em;
    margin-bottom: 0.6em;
    line-height: 1.25;
}

.jps-entry-content h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
.jps-entry-content h3 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); font-weight: 600; }
.jps-entry-content h4 { font-size: 1.15rem; font-weight: 600; }

.jps-entry-content p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--jps-gray-600);
    margin-bottom: 1.4em;
    font-weight: 300;
}

.jps-entry-content ul,
.jps-entry-content ol {
    margin: 0 0 1.4em 1.4em;
    color: var(--jps-gray-600);
    font-size: 1rem;
    line-height: 1.8;
}

.jps-entry-content ul { list-style: disc; }
.jps-entry-content ol { list-style: decimal; }
.jps-entry-content li { margin-bottom: 0.4em; }

.jps-entry-content strong {
    font-weight: 600;
    color: var(--jps-dark);
}

.jps-entry-content a {
    color: var(--jps-orange);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.jps-entry-content blockquote {
    border-left: 3px solid var(--jps-orange);
    padding: 14px 24px;
    margin: 2em 0;
    background: rgba(200,169,110,0.06);
    border-radius: 0 var(--jps-radius-sm) var(--jps-radius-sm) 0;
    font-style: italic;
    color: var(--jps-gray-600);
}

.jps-entry-content img {
    border-radius: var(--jps-radius-md);
    margin: 1.5em 0;
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */
.jps-svc-faq {
    background: var(--jps-dark);
    padding: 100px 0;
}

.jps-svc-faq__layout {
    display: grid;
    grid-template-columns: 1fr 1.7fr;
    gap: 80px;
    align-items: start;
}

.jps-svc-faq__intro {
    position: sticky;
    top: 100px;
}

.jps-svc-faq__intro .jps-section-label {
    color: var(--jps-orange);
}

.jps-svc-faq__intro h2 {
    color: var(--jps-white);
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    line-height: 1.2;
    margin-bottom: 16px;
}

.jps-svc-faq__intro p {
    font-size: 0.97rem;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(255,255,255,0.45);
    margin-bottom: 0;
}

/* Accordion */
.jps-svc-faq__accordion {
    display: flex;
    flex-direction: column;
}

.jps-svc-faq__item {
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.jps-svc-faq__item:first-child {
    border-top: 1px solid rgba(255,255,255,0.07);
}

.jps-svc-faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    padding: 22px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--jps-font-heading);
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    transition: color 0.25s;
}

.jps-svc-faq__q:hover,
.jps-svc-faq__item.is-open .jps-svc-faq__q {
    color: var(--jps-white);
}

.jps-svc-faq__chevron {
    flex-shrink: 0;
    color: rgba(255,255,255,0.3);
    transition: transform 0.3s ease, color 0.25s;
}

.jps-svc-faq__item.is-open .jps-svc-faq__chevron {
    transform: rotate(180deg);
    color: var(--jps-orange);
}

.jps-svc-faq__a {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.38s cubic-bezier(0.4,0,0.2,1);
}

.jps-svc-faq__a:not([hidden]) {
    max-height: 600px;
}

.jps-svc-faq__a[hidden] {
    display: block !important;
    max-height: 0;
}

.jps-svc-faq__a-inner {
    padding: 0 0 24px;
    font-size: 0.97rem;
    font-weight: 300;
    line-height: 1.85;
    color: rgba(255,255,255,0.5);
}

.jps-svc-faq__a-inner p { margin-bottom: 0.8em; }
.jps-svc-faq__a-inner p:last-child { margin-bottom: 0; }

.jps-svc-faq__a-inner a {
    color: var(--jps-orange);
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 900px) {
    .jps-svc-faq__layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .jps-svc-faq__intro {
        position: static;
    }
}
