/* Trakya Kombine Vidanjör — premium site-wide background system v1.5 */
.theme-v13[class*="site-bg-"] {
  --site-canvas: #edf5f7;
  --site-surface: rgba(255,255,255,.9);
  --site-surface-solid: #fafdfe;
  --site-surface-border: rgba(8,126,158,.16);
  --site-surface-shadow: 0 20px 52px rgba(8,27,45,.1);
  --site-pattern-opacity: .48;
  background: var(--site-canvas);
}
.theme-v13.site-bg-soft { --site-pattern-opacity: .28; --site-surface: rgba(255,255,255,.94); }
.theme-v13.site-bg-balanced { --site-pattern-opacity: .48; }
.theme-v13.site-bg-strong { --site-pattern-opacity: .7; --site-surface: rgba(255,255,255,.86); }

.theme-v13[class*="site-bg-"] main {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background-color: var(--site-canvas);
}
.theme-v13[class*="site-bg-"] main::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  opacity: var(--site-pattern-opacity);
}
.theme-v13[class*="site-bg-"] main > * { position: relative; z-index: 1; }

/* Recommended: calm water contours, glows and clean industrial depth. */
.theme-v13.site-bg-wave {
  --site-canvas: #edf6f8;
  --site-surface-border: rgba(8,126,158,.18);
}
.theme-v13.site-bg-wave main {
  background-image:
    radial-gradient(circle at 8% 13%,rgba(71,199,226,.17),transparent 27rem),
    radial-gradient(circle at 94% 52%,rgba(8,126,158,.12),transparent 34rem),
    linear-gradient(180deg,#f7fbfc 0%,#edf6f8 36%,#e9f3f6 70%,#f7fbfc 100%);
}
.theme-v13.site-bg-wave main::before {
  background-image:
    repeating-radial-gradient(ellipse at -10% 17%,transparent 0 78px,rgba(8,126,158,.2) 80px 82px,transparent 84px 142px),
    repeating-radial-gradient(ellipse at 111% 65%,transparent 0 92px,rgba(16,168,210,.18) 94px 96px,transparent 98px 158px),
    linear-gradient(115deg,transparent 0 45%,rgba(255,255,255,.5) 46% 50%,transparent 51% 100%);
  background-size: 1100px 820px,1180px 900px,100% 100%;
  background-position: -270px 220px,calc(100% + 330px) 48%,center;
  background-repeat: no-repeat;
}

/* Optional alternatives controlled from the admin panel. */
.theme-v13.site-bg-technical {
  --site-canvas: #eef4f6;
  --site-surface-border: rgba(15,82,111,.18);
}
.theme-v13.site-bg-technical main {
  background-image:
    radial-gradient(circle at 82% 10%,rgba(16,168,210,.13),transparent 29rem),
    linear-gradient(180deg,#f8fbfc,#eaf2f5 56%,#f7fafb);
}
.theme-v13.site-bg-technical main::before {
  background-image:
    linear-gradient(rgba(15,82,111,.13) 1px,transparent 1px),
    linear-gradient(90deg,rgba(15,82,111,.13) 1px,transparent 1px),
    linear-gradient(rgba(8,126,158,.16) 1px,transparent 1px),
    linear-gradient(90deg,rgba(8,126,158,.16) 1px,transparent 1px);
  background-size: 48px 48px,48px 48px,240px 240px,240px 240px;
  mask-image: linear-gradient(105deg,transparent 4%,black 32%,black 75%,transparent 100%);
}
.theme-v13.site-bg-dark-flow {
  --site-canvas: #e7f0f4;
  --site-surface-border: rgba(9,62,88,.22);
  --site-surface-shadow: 0 24px 58px rgba(7,31,47,.14);
}
.theme-v13.site-bg-dark-flow main {
  background-image:
    radial-gradient(ellipse at 104% 8%,rgba(7,34,51,.26),transparent 38rem),
    radial-gradient(ellipse at -6% 52%,rgba(8,126,158,.2),transparent 42rem),
    linear-gradient(160deg,#f5f9fa 0%,#dfecef 52%,#f4f8f9 100%);
}
.theme-v13.site-bg-dark-flow main::before {
  background-image:
    repeating-radial-gradient(ellipse at 103% 4%,transparent 0 72px,rgba(5,33,49,.28) 74px 77px,transparent 79px 142px),
    linear-gradient(126deg,transparent 0 65%,rgba(5,33,49,.17) 65.2% 70%,transparent 70.2%);
}
.theme-v13.site-bg-plain { --site-canvas: #f2f6f8; --site-pattern-opacity: 0; }
.theme-v13.site-bg-plain main { background: linear-gradient(180deg,#fff,#eff5f7 52%,#fff); }

/* Light sections reveal the selected premium canvas; conversion and media bands stay intact. */
.theme-v13[class*="site-bg-"] .section:not(.section--dark):not(.premium-carousel-section):not(.quote-section) { background-color: transparent; }
.theme-v13[class*="site-bg-"] .section--soft:not(.section--dark) {
  background: linear-gradient(100deg,rgba(255,255,255,.56),rgba(220,239,244,.58),rgba(255,255,255,.48));
  border-block: 1px solid rgba(8,126,158,.1);
}
.theme-v13.site-bg-wave .equipment-section {
  background:
    radial-gradient(circle at 7% 50%,rgba(16,168,210,.1),transparent 23rem),
    linear-gradient(110deg,rgba(255,255,255,.82),rgba(226,241,245,.78));
  border-block: 1px solid rgba(8,126,158,.12);
}
.theme-v13.site-bg-technical .equipment-section { background: rgba(244,249,250,.83); }
.theme-v13.site-bg-dark-flow .equipment-section { background: rgba(235,244,247,.78); }
.theme-v13[class*="site-bg-"] .industries { background: linear-gradient(105deg,rgba(255,255,255,.46),transparent 72%); }
.theme-v13[class*="site-bg-"] .faq-section { background: linear-gradient(180deg,transparent,rgba(255,255,255,.48)); }

/* Premium glass surfaces. Backdrop blur enhances capable browsers; the fallback stays opaque. */
.theme-v13.site-glass .theme-service-card,
.theme-v13.site-glass .process-grid article,
.theme-v13.site-glass .post-card,
.theme-v13.site-glass .faq-list details,
.theme-v13.site-glass .service-menu,
.theme-v13.site-glass .region-list,
.theme-v13.site-glass .content-note,
.theme-v13.site-glass .contact-cards > *:not(:first-child):not(:nth-child(2)),
.theme-v13.site-glass .inline-services a {
  background: var(--site-surface);
  border-color: var(--site-surface-border);
  box-shadow: 0 10px 28px rgba(8,27,45,.065);
  -webkit-backdrop-filter: blur(13px) saturate(1.08);
  backdrop-filter: blur(13px) saturate(1.08);
}
.theme-v13.site-glass .theme-service-card:hover,
.theme-v13.site-glass .post-card:hover {
  border-color: rgba(8,126,158,.3);
  box-shadow: var(--site-surface-shadow);
}
.theme-v13.site-glass .faq-list details[open] {
  border-color: rgba(8,126,158,.32);
  box-shadow: 0 18px 38px rgba(8,27,45,.08);
}
.theme-v13.site-glass .service-menu > a { background: rgba(255,255,255,.36); }
.theme-v13.site-glass .service-menu > a:hover { background: rgba(255,255,255,.88); }
.theme-v13.site-glass .theme-detail-layout > .prose,
.theme-v13.site-glass .content-layout > .prose,
.theme-v13.site-glass .narrow > .prose {
  padding: clamp(24px,4vw,46px);
  border: 1px solid var(--site-surface-border);
  border-radius: 8px;
  background: var(--site-surface);
  box-shadow: 0 16px 42px rgba(8,27,45,.07);
  -webkit-backdrop-filter: blur(14px) saturate(1.08);
  backdrop-filter: blur(14px) saturate(1.08);
}
.theme-v13.site-glass .theme-detail-layout > .prose .theme-detail-cover { margin-top: 0; }

/* Detail, list and gallery pages receive the same depth as the homepage. */
.theme-v13[class*="site-bg-"] .region-list > a { border-color: rgba(8,126,158,.15); }
.theme-v13[class*="site-bg-"] .region-list > a:hover { background: rgba(255,255,255,.72); }
.theme-v13[class*="site-bg-"] .gallery-item { box-shadow: 0 16px 38px rgba(8,27,45,.13); }
.theme-v13[class*="site-bg-"] .split-layout__media > img,
.theme-v13[class*="site-bg-"] .theme-detail-cover { box-shadow: 0 22px 48px rgba(8,27,45,.16); }
.theme-v13[class*="site-bg-"] .section-heading h2,
.theme-v13[class*="site-bg-"] .split-layout h2 { text-shadow: 0 1px 0 rgba(255,255,255,.68); }
.theme-v13[class*="site-bg-"] .section--dark .section-heading h2,
.theme-v13[class*="site-bg-"] .premium-carousel-section .section-heading h2,
.theme-v13[class*="site-bg-"] .quote-section h2 { text-shadow: none; }

@supports not (backdrop-filter: blur(2px)) {
  .theme-v13.site-glass .theme-service-card,
  .theme-v13.site-glass .process-grid article,
  .theme-v13.site-glass .post-card,
  .theme-v13.site-glass .faq-list details,
  .theme-v13.site-glass .service-menu,
  .theme-v13.site-glass .region-list,
  .theme-v13.site-glass .content-note,
  .theme-v13.site-glass .theme-detail-layout > .prose,
  .theme-v13.site-glass .content-layout > .prose,
  .theme-v13.site-glass .narrow > .prose { background: var(--site-surface-solid); }
}

@media (max-width: 900px) {
  .theme-v13.site-bg-wave main::before { background-size: 760px 620px,820px 680px,100% 100%; background-position: -280px 230px,calc(100% + 300px) 62%,center; }
  .theme-v13.site-glass .theme-detail-layout > .prose,
  .theme-v13.site-glass .content-layout > .prose,
  .theme-v13.site-glass .narrow > .prose { border-radius: 6px; }
}
@media (max-width: 680px) {
  .theme-v13[class*="site-bg-"] main::before { opacity: calc(var(--site-pattern-opacity) * .72); }
  .theme-v13.site-glass .theme-detail-layout > .prose,
  .theme-v13.site-glass .content-layout > .prose,
  .theme-v13.site-glass .narrow > .prose { padding: 22px 18px; }
  .theme-v13.site-glass .theme-service-card,
  .theme-v13.site-glass .process-grid article,
  .theme-v13.site-glass .post-card,
  .theme-v13.site-glass .faq-list details { -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px); }
}
@media (prefers-reduced-transparency: reduce) {
  .theme-v13.site-glass .theme-service-card,
  .theme-v13.site-glass .process-grid article,
  .theme-v13.site-glass .post-card,
  .theme-v13.site-glass .faq-list details,
  .theme-v13.site-glass .service-menu,
  .theme-v13.site-glass .region-list,
  .theme-v13.site-glass .content-note,
  .theme-v13.site-glass .theme-detail-layout > .prose,
  .theme-v13.site-glass .content-layout > .prose,
  .theme-v13.site-glass .narrow > .prose { background: var(--site-surface-solid); backdrop-filter: none; }
}
@media print {
  .theme-v13[class*="site-bg-"] main { background: #fff !important; }
  .theme-v13[class*="site-bg-"] main::before { display: none !important; }
  .theme-v13.site-glass .theme-detail-layout > .prose,
  .theme-v13.site-glass .content-layout > .prose,
  .theme-v13.site-glass .narrow > .prose { padding: 0; border: 0; box-shadow: none; }
}
