/* =============================================================================
   Kurumsal sayfaların ORTAK bileşenleri ("pg-" sınıfları) + Hizmetler / Hizmet detayı.
   Bu dosya Hakkımızda, Operasyonlar, İş ilanları ve İlanlar sayfalarında da yüklenir (page_css).
   Token'lar ve temel bileşenler (section, card-ui, chip, icon-box, btn-*, page-header, vessel-card,
   empty-state) style.css'tedir (P1). Turuncu dolgulu düğme yalnız .btn-accent (burada ayrı turuncu varyant yok).
   Medya diyaloğu (.pg-lightbox) burada: Operasyonlar ve hizmet detayı ortak kullanır (ops.js).
   ============================================================================= */

/* ---------------------------------------------------------------- Genel */
.pg-prose p { line-height: var(--lh-body, 1.65); }
.pg-prose p:last-child { margin-bottom: 0; }
.pg-kicker {
    margin: 0;
    font-size: var(--fs-xs, 0.78rem);
    font-weight: 700;
    letter-spacing: var(--tracking-wide, 0.08em);
    text-transform: uppercase;
    color: var(--brand, #0862be);
}
.pg-subhead { font-size: var(--fs-h4, 1.3rem); font-weight: 700; color: var(--primary, #0d1b2a); margin: 2rem 0 1rem; letter-spacing: -0.01em; }
.pg-head-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
    margin-bottom: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
}
.pg-head-row .section-head, .pg-head-row .section-title { margin-bottom: 0; }
.pg-head-row .link-more { white-space: nowrap; }
.pg-sticky { position: sticky; top: calc(var(--header-h, 72px) + 1.25rem); }
@media (max-width: 991.98px) { .pg-sticky { position: static; } }

/* Medya çerçeveleri */
.pg-frame-16x9 { aspect-ratio: 16 / 9; }
.pg-frame-4x3 { aspect-ratio: 4 / 3; }
.pg-figure { margin: 0; }
.pg-figure figcaption {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.8rem;
    font-size: var(--fs-sm, 0.875rem);
    color: var(--text-light, #5b6673);
}
.pg-figure figcaption::before {
    content: '';
    flex: none;
    width: 18px;
    height: 2px;
    margin-top: 0.65em;
    border-radius: 2px;
    background: var(--accent, #ef7f1a);
}

/* Fotoğrafı olmayan araç / kayıt için yer tutucu (lacivert + ikon + ad) */
.pg-ph {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.92);
    background:
        radial-gradient(420px 220px at 85% 0%, rgba(8, 98, 190, 0.45), transparent 70%),
        linear-gradient(135deg, var(--primary, #0d1b2a), var(--primary-light, #1b2d45));
}
.pg-ph .bi { font-size: 2.25rem; color: var(--brand-300, #5aa2ec); }
.pg-ph span { font-weight: 800; letter-spacing: 0.04em; font-size: 1.05rem; }

/* ---------------------------------------------------------------- Çipler */
.pg-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pg-chips .chip { font-size: 0.85rem; }

/* ---------------------------------------------------------------- Hizmet listesi */
.pg-svc-list { display: grid; gap: clamp(1.25rem, 1rem + 1.5vw, 2rem); }
.pg-svc {
    display: grid;
    grid-template-columns: 1fr;
    overflow: hidden;
    background: var(--white, #fff);
    border: 1px solid var(--border, #dde5ee);
    border-radius: var(--radius-lg, 18px);
    box-shadow: var(--shadow-xs, none);
    transition: box-shadow 0.25s var(--ease, ease), border-color 0.25s var(--ease, ease);
}
.pg-svc:hover, .pg-svc:focus-within { box-shadow: var(--shadow, 0 6px 20px rgba(13, 27, 42, 0.08)); border-color: var(--brand-100, #dcebfb); }
.pg-svc-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--primary, #0d1b2a); }
.pg-svc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease, ease); }
.pg-svc:hover .pg-svc-media img { transform: scale(1.03); }
.pg-svc-body { display: flex; flex-direction: column; align-items: flex-start; gap: 0.85rem; padding: clamp(1.25rem, 1rem + 1.2vw, 2.25rem); }
.pg-svc-title { margin: 0; font-size: var(--fs-h3, 1.5rem); font-weight: 800; letter-spacing: var(--tracking-tight, -0.02em); line-height: 1.2; }
.pg-svc-title a { color: var(--primary, #0d1b2a); text-decoration: none; }
.pg-svc-title a:hover { color: var(--brand, #0862be); }
.pg-svc-desc { margin: 0; max-width: 62ch; font-size: var(--fs-md, 1.0625rem); line-height: 1.65; color: var(--text-light, #5b6673); }
.pg-svc-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.35rem; }
@media (max-width: 575.98px) { .pg-svc-actions { align-self: stretch; flex-wrap: nowrap; } .pg-svc-actions .btn { flex: 1 1 0; justify-content: center; } }
@media (min-width: 992px) {
    .pg-svc { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
    .pg-svc-media { aspect-ratio: auto; min-height: 320px; }
    .pg-svc-media img { position: absolute; inset: 0; } /* kart yüksekliği foto oranından bağımsız */
    .pg-svc:nth-child(even) { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
    .pg-svc:nth-child(even) .pg-svc-media { order: 2; }
    .pg-svc-body { justify-content: center; }
}

/* Hizmet piktogramı (Icon::svg, 1em × 1em, currentColor) */
.icon-box .icon, .pg-ph .icon { width: 1em; height: 1em; }
.pg-ph .icon { font-size: 2.25rem; color: var(--brand-300, #5aa2ec); }

/* ---------------------------------------------------------------- Hizmet detayı */
.pg-caps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
@media (min-width: 576px) { .pg-caps { gap: 0.75rem; } }
@media (max-width: 575.98px) { .pg-caps li { padding: 0.7rem 0.75rem; font-size: 0.92rem; } }
.pg-caps li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.8rem 1rem;
    font-weight: 700;
    color: var(--primary, #0d1b2a);
    background: var(--bg-light, #f4f7fb);
    border: 1px solid var(--border, #dde5ee);
    border-radius: var(--radius, 12px);
}
.pg-caps .bi { flex: none; font-size: 1.25rem; line-height: 1; color: var(--brand, #0862be); }

.pg-aside { display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 992px) { .pg-aside { position: sticky; top: calc(var(--header-h, 72px) + 1.25rem); } }

/* Koyu teklif kutusu (hizmet detayı, iş ilanı, ilan) */
.pg-quote {
    padding: 1.5rem;
    color: #fff;
    border-radius: var(--radius-lg, 18px);
    background:
        radial-gradient(500px 220px at 100% 0%, rgba(8, 98, 190, 0.5), transparent 70%),
        linear-gradient(135deg, var(--primary, #0d1b2a), var(--primary-light, #1b2d45));
    box-shadow: var(--shadow, 0 6px 20px rgba(13, 27, 42, 0.08));
}
.pg-quote-title { margin: 0 0 1rem; font-size: var(--fs-h4, 1.3rem); font-weight: 700; color: #fff; }
.pg-quote p { margin-bottom: 1rem; color: var(--text-on-dark-muted, #a9b4c2); }
.pg-quote a:not(.btn) { color: var(--brand-300, #5aa2ec); }
.pg-quote a:not(.btn):hover { color: #fff; }
.pg-quote-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0.5rem; margin-top: 0.5rem; }
.pg-quote-row .btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; padding-inline: 0.6rem; }
.pg-quote .pg-apply-note { margin: 1rem 0 0; font-size: var(--fs-sm, 0.875rem); }

/* Araç kartı (card-ui eklentisi): foto + tip + ad */
.pg-vessel .card-ui-body { gap: 0.35rem; }
/* Tek araç: yatay kart (bölüm tek küçük kartla boş görünmesin; kartın tamamı bağlantı) */
@media (min-width: 576px) {
    .pg-vessel-wide { flex-direction: row; }
    .pg-vessel-wide .card-ui-media { flex: 0 0 58%; aspect-ratio: 16 / 9; }
    .pg-vessel-wide .card-ui-body { justify-content: center; padding: clamp(1.5rem, 1rem + 1.5vw, 2.5rem); }
    .pg-vessel-wide .card-ui-title { font-size: var(--fs-h4, 1.3rem); }
}

/* Araç ızgarası: P1 .vessel-grid (telefonda 2 sütun, kompakt kart). Yedek kart (.pg-vessel) aynı ızgarada. */
.vessel-grid > .pg-vessel-wide { grid-column: 1 / -1; }

/* ---------------------------------------------------------------- Operasyon kartı */
.pg-op {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: var(--white, #fff);
    border: 1px solid var(--border, #dde5ee);
    border-radius: var(--radius, 12px);
    box-shadow: var(--shadow-xs, none);
    transition: box-shadow 0.25s var(--ease, ease), border-color 0.25s var(--ease, ease);
}
.pg-op:hover, .pg-op:focus-within { box-shadow: var(--shadow, 0 6px 20px rgba(13, 27, 42, 0.08)); border-color: var(--brand-100, #dcebfb); }
.pg-op-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--primary, #0d1b2a); }
@media (max-width: 575.98px) { .pg-op-media { aspect-ratio: 16 / 10; } }
.pg-op-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease, ease); }
.pg-op:hover .pg-op-media img { transform: scale(1.04); }
.pg-op-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(13, 27, 42, 0.55)); pointer-events: none; }
.pg-op-media:focus-visible { outline: 3px solid var(--focus, #0862be); outline-offset: -3px; }
.pg-op-play {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: -32px 0 0 -32px;
    border-radius: 50%;
    font-size: 2rem;
    color: var(--primary, #0d1b2a);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s var(--ease, ease), background-color 0.2s;
}
.pg-op-play .bi { margin-left: 4px; }
.pg-op-media:hover .pg-op-play, .pg-op-media:focus-visible .pg-op-play { transform: scale(1.08); background: var(--accent, #ef7f1a); }
.pg-op-badge {
    position: absolute;
    z-index: 1;
    right: 0.75rem;
    bottom: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    background: rgba(13, 27, 42, 0.8);
    font-variant-numeric: tabular-nums;
}
.pg-op-body { display: flex; flex-direction: column; gap: 0.55rem; flex: 1; padding: 1.15rem 1.25rem 1.35rem; }
.pg-op-cats { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0; }
.pg-op-cats span {
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brand-dark, #064f99);
    background: var(--brand-50, #eef5fd);
    border: 1px solid var(--brand-100, #dcebfb);
}
.pg-op-title { margin: 0; font-family: var(--font-display); font-size: var(--fs-h5, 1.125rem); font-weight: 700; line-height: 1.35; color: var(--primary, #0d1b2a); }
.pg-op-meta { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; margin: 0; font-size: var(--fs-sm, 0.875rem); color: var(--text-light, #5b6673); }
.pg-op-meta .bi { color: var(--accent-strong, #b45309); }
.pg-op-vessels { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: auto 0 0; padding-top: 0.75rem; border-top: 1px solid var(--border, #dde5ee); }
.pg-op-vessels a, .pg-op-vessels > span:not(.visually-hidden) {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary, #0d1b2a);
    text-decoration: none;
    background: var(--white, #fff);
    border: 1px solid var(--border, #dde5ee);
}
.pg-op-vessels a:hover { color: var(--brand, #0862be); border-color: var(--brand, #0862be); }
.pg-op-vessels .bi { color: var(--brand, #0862be); }
.pg-link { font-weight: 600; color: var(--brand, #0862be); }

/* Diğer hizmetler */
.pg-others-title {
    margin: 0 0 0.75rem;
    font-size: var(--fs-sm, 0.875rem);
    font-weight: 700;
    letter-spacing: var(--tracking-wide, 0.08em);
    text-transform: uppercase;
    color: var(--text-light, #5b6673);
}
.pg-others ul { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 768px) { .pg-others ul { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; } }
.pg-others a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    font-weight: 600;
    color: var(--primary, #0d1b2a);
    text-decoration: none;
    background: var(--white, #fff);
    border: 1px solid var(--border, #dde5ee);
    border-radius: var(--radius, 12px);
    transition: border-color 0.2s, color 0.2s;
}
.pg-others a:hover { color: var(--brand, #0862be); border-color: var(--brand, #0862be); }
.pg-others a .bi-chevron-right { margin-left: auto; color: var(--text-light, #5b6673); }

/* ---------------------------------------------------------------- Boş durum (P1 partials/empty-state yokken yedek; aynı düzen) */
.pg-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 560px;
    margin: 0 auto;
    padding: clamp(1.5rem, 1rem + 2vw, 2.5rem) 1rem;
    text-align: center;
}
.pg-empty-state-icon {
    display: inline-grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    font-size: 1.75rem;
    color: var(--brand, #0862be);
    background: var(--brand-50, #eef5fd);
}
.pg-empty-state-title { margin: 0; font-size: var(--fs-h5, 1.125rem); font-weight: 700; color: var(--primary, #0d1b2a); }

/* ---------------------------------------------------------------- Önizleme şeridi (P1 partials/preview-bar yokken yedek) */
.pg-preview-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    font-size: var(--fs-sm, 0.875rem);
    font-weight: 600;
    color: #fff;
    background: var(--primary, #0d1b2a);
    border-bottom: 2px solid var(--accent, #ef7f1a);
}

/* ---------------------------------------------------------------- Medya diyaloğu (ops.js; fotoğraflar / çok video) */
.pg-lightbox {
    width: min(1100px, calc(100vw - 1.5rem));
    max-width: none;
    max-height: calc(100dvh - 1.5rem);
    padding: 0;
    color: #fff;
    background: var(--primary-900, #08121d);
    border: 0;
    border-radius: var(--radius-lg, 18px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}
.pg-lightbox::backdrop { background: rgba(8, 18, 29, 0.82); backdrop-filter: blur(3px); }
.pg-lb-inner { display: flex; flex-direction: column; max-height: calc(100dvh - 1.5rem); }
.pg-lb-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem 0.75rem 0.75rem 1.25rem; }
.pg-lb-title { margin: 0; font-size: 1rem; font-weight: 600; line-height: 1.35; color: #fff; }
.pg-lb-close, .pg-lb-prev, .pg-lb-next {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    font-size: 1.2rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: background-color 0.2s;
}
.pg-lb-close:hover, .pg-lb-prev:hover, .pg-lb-next:hover { background: rgba(255, 255, 255, 0.22); }
.pg-lb-close:focus-visible, .pg-lb-prev:focus-visible, .pg-lb-next:focus-visible { outline: 3px solid var(--accent, #ef7f1a); outline-offset: 2px; }
.pg-lb-stage { display: flex; align-items: center; justify-content: center; min-height: 0; flex: 1 1 auto; background: #000; }
.pg-lb-stage video, .pg-lb-stage img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(100dvh - 10rem);
    object-fit: contain;
    background: #000;
}
.pg-lb-stage p { padding: 1rem; color: #fff; }
.pg-lb-stage p a { color: var(--brand-300, #5aa2ec); }
.pg-lb-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; padding: 0.6rem 0.75rem 0.6rem 1.25rem; }
.pg-lb-meta { margin: 0; font-size: var(--fs-sm, 0.875rem); color: var(--text-on-dark-muted, #a9b4c2); }
.pg-lb-nav { display: flex; align-items: center; gap: 0.75rem; margin-left: auto; }
.pg-lb-nav [hidden] { display: none !important; }
.pg-lb-counter { min-width: 4rem; text-align: center; font-size: var(--fs-sm, 0.875rem); color: var(--text-on-dark-muted, #a9b4c2); }
@media (max-width: 575.98px) {
    .pg-lightbox { width: 100vw; max-height: 100dvh; border-radius: 0; margin: 0; }
    .pg-lb-inner { max-height: 100dvh; }
    .pg-lb-stage video, .pg-lb-stage img { max-height: calc(100dvh - 9rem); }
}
