/* =============================================
   GALERI PENGIRIMAN - Semanggi Landscape
   Kartu gelap seragam mengikuti bahasa desain
   halaman Portofolio (grid + card). Brand:
   hijau tua (#1B2B20 / #22331F), aksen oranye
   (#E8642E), krem (#F7F3E8).
   ============================================= */

/* ─── Design tokens (aktif pada halaman galeri) ─── */
body.gd-body {
    --bg-dark: #1B2B20;
    --bg-dark-soft: #22331F;
    --text-light: #F7F3E8;
    --text-muted: #E2DFD0;
    --accent: #E8642E;
    --accent-soft: rgba(232, 100, 46, 0.14);
    --accent-sand: #C9D4B8;
    --card-border: rgba(92, 107, 71, 0.45);
    --gd-font-heading: 'Fraunces', Georgia, serif;
    --gd-font-body: 'Work Sans', system-ui, sans-serif;

    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--gd-font-body);
}

body.gd-body main {
    color: var(--text-light);
}

.gd-page {
    max-width: 1240px;
    margin: 0 auto;
    padding: 24px 24px 96px;
}

/* ─── Header ─── */
.gd-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 48px;
    padding: 40px 0 8px;
}
.gd-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 100px;
    border: 1px solid var(--accent-soft);
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.gd-title {
    margin-top: 20px;
    font-family: var(--gd-font-heading);
    font-weight: 600;
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.15;
    color: var(--text-light);
}
.gd-desc {
    margin-top: 18px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ─── CTA WhatsApp ─── */
.gd-cta {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.gd-cta-text {
    margin: 0;
    color: var(--text-light);
    font-family: var(--gd-font-heading);
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: 600;
    line-height: 1.4;
}

/* Tombol CTA mengikuti pola pf-btn pada halaman Portofolio */
.pf-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.pf-btn-accent {
    background: var(--accent);
    color: #ffffff;
}

.pf-btn-icon {
    width: 18px;
    height: 18px;
}

@media (hover: hover) {
    .pf-btn-accent:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 30px rgba(232, 100, 46, 0.35);
    }
}

/* ─── Grid kartu seragam ─── */
.gd-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}

.gd-item {
    display: flex;
    flex-direction: column;
    margin: 0;
    background: var(--bg-dark-soft);
    border: 1px solid var(--card-border);
    border-radius: 22px;
    overflow: hidden;
    cursor: zoom-in;
    color: inherit;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

@media (hover: hover) {
    .gd-item:hover {
        transform: translateY(-6px);
        border-color: rgba(232, 100, 46, 0.55);
        box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
    }
}

.gd-item:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

.gd-item-media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--bg-dark-soft);
}

.gd-item-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

@media (hover: hover) {
    .gd-item:hover .gd-item-media img {
        transform: scale(1.05);
    }
}

.gd-item-body {
    padding: 16px 20px 20px;
}

.gd-caption {
    display: block;
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.55;
}

.gd-item:has(.gd-caption:empty) .gd-item-body,
.gd-item-body:empty {
    display: none;
}

/* ─── Pagination ─── */
.gd-pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}
.gd-pagination nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}
.gd-pagination a,
.gd-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-light);
    background: var(--bg-dark-soft);
    border: 1px solid var(--card-border);
    text-decoration: none;
    transition: border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}
.gd-pagination a:hover {
    border-color: rgba(232, 100, 46, 0.55);
    background: var(--accent-soft);
}
.gd-pagination span[aria-current="page"],
.gd-pagination .pagination .active {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    color: #ffffff !important;
}
.gd-pagination .pagination .disabled span,
.gd-pagination span[aria-disabled="true"] {
    color: rgba(247, 243, 232, 0.35);
    cursor: not-allowed;
}

/* ─── Empty state ─── */
.gd-empty {
    padding: 48px 20px;
    text-align: center;
    color: var(--text-muted);
    background: var(--bg-dark-soft);
    border: 1px solid var(--card-border);
    border-radius: 22px;
}

/* ─── Content sections (Proses, Area, FAQ) ─── */
.gd-section {
    margin-top: 64px;
    padding-top: 48px;
    padding-bottom: 48px;
    border-top: 1px solid var(--card-border);
}

.gd-section-title {
    font-family: var(--gd-font-heading);
    font-weight: 600;
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    line-height: 1.2;
    color: var(--text-light);
    text-align: center;
    margin: 0 0 12px;
}

.gd-section-desc {
    max-width: 720px;
    margin: 0 auto 32px;
    text-align: center;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ─── Proses Pengiriman (Accordion Cards) ─── */
.gd-accordion-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 860px;
    margin: 0 auto;
}

.gd-accordion-card {
    background: var(--bg-dark-soft);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.gd-accordion-card:hover {
    border-color: rgba(232, 100, 46, 0.35);
}

.gd-accordion-card[open] {
    border-color: rgba(232, 100, 46, 0.55);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.gd-accordion-trigger {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    cursor: pointer;
    list-style: none;
    font-family: var(--gd-font-heading);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.4;
    transition: color 0.2s ease;
}

.gd-accordion-trigger::-webkit-details-marker {
    display: none;
}

.gd-accordion-trigger::marker {
    content: '';
}

.gd-accordion-trigger:hover {
    color: var(--accent);
}

.gd-accordion-icon {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
}

.gd-accordion-label {
    flex: 1;
}

.gd-accordion-trigger::after {
    content: '+';
    flex-shrink: 0;
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--accent);
    transition: transform 0.25s ease;
}

.gd-accordion-card[open] > .gd-accordion-trigger::after {
    transform: rotate(45deg);
}

.gd-accordion-body {
    padding: 0 24px 20px;
    color: var(--text-muted);
    font-size: 0.93rem;
    line-height: 1.65;
    border-top: 1px solid var(--card-border);
    animation: gd-accordion-open 0.25s ease;
}

.gd-accordion-body p {
    margin: 14px 0 0;
}

@keyframes gd-accordion-open {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── Area Jangkauan ─── */
.gd-area-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.gd-area-group {
    padding: 24px;
    background: var(--bg-dark-soft);
    border: 1px solid var(--card-border);
    border-radius: 18px;
}

.gd-area-region {
    margin: 0 0 14px;
    font-family: var(--gd-font-heading);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--accent);
}

.gd-area-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gd-area-list li {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    padding-left: 16px;
    position: relative;
}

.gd-area-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.5;
}

/* ─── FAQ ─── */
.gd-faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gd-faq-item {
    background: var(--bg-dark-soft);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.gd-faq-item[open] {
    border-color: rgba(232, 100, 46, 0.35);
}

.gd-faq-q {
    padding: 20px 56px 20px 24px;
    font-family: var(--gd-font-heading);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-light);
    cursor: pointer;
    list-style: none;
    position: relative;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.gd-faq-q::-webkit-details-marker {
    display: none;
}

.gd-faq-q::marker {
    content: '';
}

.gd-faq-q::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--accent);
    transition: transform 0.3s ease;
}

.gd-faq-item[open] > .gd-faq-q::after {
    transform: translateY(-50%) rotate(45deg);
}

.gd-faq-q:hover {
    color: var(--accent);
}

.gd-faq-a {
    padding: 0 24px 20px;
    color: var(--text-muted);
    line-height: 1.75;
    font-size: 0.93rem;
    border-top: 1px solid var(--card-border);
}

.gd-faq-a p {
    margin: 14px 0 0;
}

.gd-faq-a em {
    color: var(--text-light);
    font-style: italic;
}

/* ─── Lightbox ─── */
.gd-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 20px;
    background: rgba(17, 22, 18, 0.94);
    backdrop-filter: blur(6px);
}
.gd-lightbox[hidden] {
    display: none;
}
.gd-lightbox-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    width: 100%;
}
.gd-lightbox-img {
    max-width: min(96vw, 1200px);
    max-height: 76vh;
    width: auto;
    height: auto;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.gd-lightbox-caption {
    max-width: 720px;
    text-align: center;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}
.gd-lightbox-caption .gd-caption {
    color: var(--text-light);
}
.gd-lightbox-close,
.gd-lightbox-prev,
.gd-lightbox-next {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(247, 243, 232, 0.35);
    background: rgba(27, 43, 32, 0.6);
    color: var(--text-light);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease;
}
.gd-lightbox-close { top: 18px; right: 18px; }
.gd-lightbox-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.gd-lightbox-next { right: 18px; top: 50%; transform: translateY(-50%); }
.gd-lightbox-close:hover,
.gd-lightbox-prev:hover,
.gd-lightbox-next:hover {
    background: rgba(92, 107, 71, 0.85);
}

@media (max-width: 640px) {
    .gd-lightbox-close { top: 12px; right: 12px; }
    .gd-lightbox-prev { left: 8px; }
    .gd-lightbox-next { right: 8px; }
    .gd-lightbox-img { max-height: 68vh; }
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .gd-page {
        padding: 12px 18px 72px;
    }
    .gd-header {
        padding: 24px 0 4px;
        margin-bottom: 36px;
    }
    .gd-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .gd-section {
        margin-top: 48px;
        padding-top: 36px;
        padding-bottom: 36px;
    }
    .gd-accordion-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .gd-accordion-trigger {
        padding: 16px 18px;
        font-size: 0.95rem;
    }
    .gd-accordion-body {
        padding: 0 18px 16px;
    }
    .gd-area-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .gd-faq-q {
        padding: 16px 48px 16px 18px;
        font-size: 0.95rem;
    }
    .gd-faq-a {
        padding: 0 18px 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gd-item,
    .gd-item-media img,
    .gd-lightbox-img,
    .gd-accordion-card {
        transition: none;
    }
    .gd-accordion-body {
        animation: none;
    }
}
