/* HC MARIN WORKS — v5: 10 Ekim revizyonunun yeni bileşenleri
   hizmet grupları · blog · projeler / saha kayıtları · sahadan galeriler · paylaş · iletişim formu durumu
   Renkler mevcut belirteçlerle (--text, --line, --paper…) verilir: lacivert, siyah ve beyaz temada aynı yapı. */

/* ---------------------------------------------------------------- hizmetler: 3 ana uzmanlık */
.svc-groups { display: grid; gap: clamp(36px, 5vw, 64px); }
.svc-group { display: grid; gap: 18px; scroll-margin-top: calc(var(--header-h) + 24px); }
.svc-group-head { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.svc-group-idx { grid-row: span 2; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--ink-900); color: #fff; font-size: 18px; letter-spacing: 0; }
.svc-group-en { font-size: 11.5px; color: var(--accent-ink); letter-spacing: .14em; margin-bottom: 2px; }
.svc-group-title { font-size: clamp(1.35rem, 2.4vw, 1.75rem); letter-spacing: -.02em; }
.svc-group-desc { grid-column: 2; max-width: 760px; font-size: 15px; color: var(--text-3); }
.svc-group-extra { padding-top: 6px; }
@media (min-width: 900px) {
  .svc-group-head { grid-template-columns: auto minmax(260px, 1fr) minmax(0, 1.3fr); }
  .svc-group-idx { grid-row: auto; }
  .svc-group-desc { grid-column: auto; }
}
html[data-theme="beyaz"] .svc-group-idx { background: var(--ink-900); color: #fff; }

/* hidrolik uygulamalar bağlantı kartı */
.service-card.sc-links { background: var(--paper-2); }
.sc-linklist { display: grid; gap: 8px; margin-top: 4px; }
.sc-linklist a { position: relative; z-index: 2; display: flex; align-items: baseline; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); font-size: 14.5px; font-weight: 600; color: var(--text); transition: border-color .25s, transform .25s var(--ease); }
.sc-linklist a:hover { border-color: var(--accent-ink); transform: translateX(3px); }
.sc-linklist .mono { font-size: 12px; color: var(--accent-ink); }

/* ana sayfa sayılar: teyit bekleyen sayılar kapalıyken 3 kutu */
@media (min-width: 640px) {
  .hero-stats:has(> .stat:nth-child(3):last-child) { grid-template-columns: repeat(3, 1fr); }
}
.hero-stats:has(> .stat:nth-child(3):last-child) > .stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 640px) { .hero-stats:has(> .stat:nth-child(3):last-child) > .stat:last-child:nth-child(odd) { grid-column: auto; } }

/* ---------------------------------------------------------------- blog kartları */
.blog-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }
.blog-card { position: relative; display: flex; flex-direction: column; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg, 12px); transition: transform .35s var(--ease), box-shadow .35s; scroll-margin-top: calc(var(--header-h) + 24px); }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.blog-card:target { outline: 2px solid var(--accent-ink); outline-offset: 3px; }
.bc-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-3); }
.bc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.blog-card:hover .bc-media img { transform: scale(1.03); }
.bc-body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 20px 22px 22px; }
.bc-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 11px; text-transform: uppercase; color: var(--accent-ink); }
.bc-meta span + span::before { content: "·"; margin-right: 12px; color: var(--text-3); }
.blog-card h3 { font-size: 1.12rem; line-height: 1.35; }
.blog-card h3 a:focus-visible { outline: none; }
.blog-card:focus-within { outline: 2px solid var(--accent-ink); outline-offset: 3px; }
.bc-body > p:not(.bc-meta):not(.bc-foot) { font-size: 14.5px; color: var(--text-3); }
.bc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 8px; }
.bc-foot time { font-size: 12px; color: var(--text-3); }
.bc-foot .sc-more { padding-top: 0; margin-top: 0; }
.blog-card:hover .sc-more .ico { transform: translateX(4px); }
.liste-bos { padding: 22px; border: 1px dashed var(--line-2); border-radius: 12px; color: var(--text-3); text-align: center; }

.blog-filtre { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.blog-filtre .filter { padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--paper); font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.blog-filtre .filter.is-active { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }

/* ---------------------------------------------------------------- proje / saha kaydı kartları */
.proje-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .proje-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .proje-grid { grid-template-columns: repeat(3, 1fr); } }
.proje-card { position: relative; display: flex; flex-direction: column; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg, 12px); transition: transform .35s var(--ease), box-shadow .35s; }
.proje-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.proje-card:focus-within { outline: 2px solid var(--accent-ink); outline-offset: 3px; }
.pc-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-3); }
.pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.proje-card:hover .pc-media img { transform: scale(1.03); }
.pc-badge { position: absolute; top: 12px; left: 12px; padding: 5px 10px; border-radius: 999px; background: rgba(11, 31, 51, .86); color: #fff; font-size: 11.5px; font-weight: 600; letter-spacing: .02em; }
.pc-body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 18px 20px 20px; }
.pc-svc { font-size: 11px; color: var(--accent-ink); text-transform: uppercase; }
.proje-card h3 { font-size: 1.1rem; line-height: 1.35; }
.proje-card h3 a:focus-visible { outline: none; }
.pc-body > p:not(.pc-svc) { font-size: 14.5px; color: var(--text-3); }
.proje-card:hover .sc-more .ico { transform: translateX(4px); }

/* ---------------------------------------------------------------- yazı ve proje sayfası */
.post-hero h1 { max-width: 920px; font-size: clamp(1.8rem, 4.2vw, 3rem); line-height: 1.12; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 16px; font-size: 12px; color: var(--steel-200); }
.post-hero .lead { margin-top: 16px; max-width: 720px; }
.post-svc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.post-svc a { display: inline-flex; gap: 8px; align-items: baseline; padding: 7px 12px; border: 1px solid var(--line-dark); border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--steel-100); }
.post-svc a:hover { border-color: var(--accent); }
.post-svc .mono { font-size: 11px; color: var(--accent); }
.post-section { padding-top: clamp(36px, 5vw, 64px); }
.post-layout { display: grid; gap: 36px; }
@media (min-width: 1024px) { .post-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; } }
.post-main { min-width: 0; }
.post-cover { margin-bottom: 28px; overflow: hidden; border-radius: var(--radius-lg, 12px); background: var(--paper-3); }
.post-cover img { width: 100%; height: auto; max-height: 560px; object-fit: cover; }
.post-cover figcaption { padding: 8px 12px; font-size: 11px; color: var(--text-3); background: var(--paper-2); }
.post-prose { max-width: 760px; }
.post-prose h2 { margin: 32px 0 12px; font-size: 1.35rem; }
.post-prose h3 { margin: 26px 0 10px; font-size: 1.15rem; }
.post-prose h4 { margin: 20px 0 8px; font-size: 1rem; }
.post-prose ul, .post-prose ol { margin: 0 0 16px; padding-left: 1.3em; color: var(--text-2); }
.post-prose ul { list-style: disc; }
.post-prose ol { list-style: decimal; }
.post-prose li { margin: 6px 0; line-height: 1.7; }
.post-prose blockquote { margin: 20px 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--accent-ink); color: var(--text-2); font-style: italic; }
.post-prose a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.post-prose figure { margin: 24px 0; }
.post-prose figure img { border-radius: 10px; height: auto; }
.post-prose figcaption { margin-top: 8px; font-size: 13px; color: var(--text-3); }
.post-prose img { height: auto; }
.post-not { margin-top: 18px; font-size: 13px; color: var(--text-3); }
.post-main > .case-dl { margin-bottom: 24px; }
.post-main > .saha-galeri { margin-top: 24px; }

.post-side { display: grid; gap: 16px; }
@media (min-width: 1024px) { .post-side { position: sticky; top: calc(var(--header-h) + 20px); } }
.yan-kutu, .yan-cta { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg, 12px); background: var(--paper-2); }
.yan-kutu .mini-title, .yan-cta .mini-title { margin-bottom: 12px; }
.yan-liste { display: grid; gap: 6px; }
.yan-liste a { display: flex; gap: 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; font-weight: 600; color: var(--text); }
.yan-liste a:hover { color: var(--accent-ink); }
.yan-liste .mono { font-size: 11px; color: var(--accent-ink); }
.yan-cta p:not(.mini-title) { margin-bottom: 14px; font-size: 14.5px; color: var(--text-2); }
.yan-cta .btn + .btn { margin-top: 8px; }

/* paylaş */
.paylas { margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); }
.paylas .mini-title { margin-bottom: 10px; }
.paylas-btn { display: flex; flex-wrap: wrap; gap: 8px; }
.pb { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 9px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--paper); font-size: 13.5px; font-weight: 600; color: var(--text); }
.pb:hover { border-color: var(--accent-ink); }
.pb .ico { width: 17px; height: 17px; }
.pb-wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.pb-wa:hover { background: var(--wa-hover); border-color: var(--wa-hover); }
.paylas-not { margin-top: 10px; font-size: 12.5px; color: var(--text-3); }

/* önce / sonra */
.once-sonra { display: grid; gap: 16px; margin-top: 24px; }
.os-cift { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.os-fig { position: relative; margin: 0; overflow: hidden; border-radius: 10px; background: var(--paper-3); }
.os-fig img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.os-etiket { position: absolute; top: 10px; left: 10px; z-index: 1; padding: 4px 9px; border-radius: 999px; background: rgba(11, 31, 51, .86); color: #fff; font-size: 11px; }

/* ---------------------------------------------------------------- sahadan fotoğraflar */
.saha-galeri-wrap { margin-top: clamp(28px, 4vw, 44px); }
.sg-title { margin-bottom: 14px; font-size: 11.5px; color: var(--text-3); letter-spacing: .14em; }
.saha-galeri { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.saha-galeri-2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.sg-item figure { margin: 0; }
.sg-link { position: relative; display: block; overflow: hidden; border-radius: 10px; background: var(--paper-3); }
.sg-link img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s var(--ease); }
.sg-link:hover img { transform: scale(1.04); }
.sg-link:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; }
.sg-item figcaption { margin-top: 8px; font-size: 13.5px; line-height: 1.45; color: var(--text-2); }

/* büyük görüntü */
.hc-lb { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: rgba(5, 10, 16, .94); color: #fff; }
.hc-lb[open] { display: grid; grid-template-columns: auto 1fr auto; align-items: center; }
.hc-lb::backdrop { background: rgba(5, 10, 16, .6); }
.hc-lb-fig { grid-column: 2; display: grid; place-items: center; gap: 10px; margin: 0; padding: 56px 8px 24px; max-height: 100dvh; }
.hc-lb-fig img { max-width: 100%; max-height: calc(100dvh - 140px); width: auto; height: auto; border-radius: 6px; }
.hc-lb-fig figcaption { max-width: 760px; font-size: 14px; text-align: center; color: #d9e3ea; }
.hc-lb-btn { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; font-size: 26px; line-height: 1; }
.hc-lb-btn:hover { background: rgba(255, 255, 255, .18); }
.hc-lb-x { position: absolute; top: 12px; right: 12px; }
.hc-lb-prev { grid-column: 1; margin-left: 8px; }
.hc-lb-next { grid-column: 3; margin-right: 8px; }
@media (max-width: 600px) { .hc-lb-prev, .hc-lb-next { position: absolute; bottom: 14px; } .hc-lb-prev { left: 14px; } .hc-lb-next { right: 14px; } .hc-lb-fig { grid-column: 1 / -1; padding-bottom: 76px; } }

/* ---------------------------------------------------------------- iletişim formu: sunucuya gönderim */
.form-actions { flex-wrap: wrap; }
.form-ways { margin-top: 12px; font-size: 13.5px; line-height: 1.6; color: var(--text-3); }
.form-ways b { color: var(--text-2); }
.form-status { margin-top: 16px; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line); font-size: 15px; }
.form-status p + p, .form-status p + .btn { margin-top: 8px; }
.form-status.is-busy { background: var(--paper-2); color: var(--text-2); }
.form-status.is-done { background: #e8f6ee; border-color: #a9dcbc; color: #0f4d2c; }
.form-status.is-error { background: #fdeceb; border-color: #f3b8b2; color: #8a1d14; }
.form-status .fs-title { font-weight: 700; font-size: 1.05rem; }
.form-status .btn { margin-top: 12px; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.choice small { font-weight: 400; opacity: .75; }
.request-form button[disabled] { opacity: .55; cursor: progress; }

/* hizmet bölgesi (bölge ayrıntısı kapalıyken) */
.area-note { margin-top: 14px; font-size: 14.5px; color: var(--text-3); }
