/* ==========================================================================
   Trio Group — Kurumsal şablon (v3)
   Sade beyaz zemin, lacivert ve şirket rengi vurgular, büyük tipografi.
   ========================================================================== */

:root {
  --navy: #0b1d30;
  --navy-2: #122a44;
  --ink: #16212c;
  --ink-soft: #5a6672;
  --line: #e3e7eb;
  --bg: #ffffff;
  --bg-soft: #f4f6f8;
  --white: #ffffff;
  --accent: #1f5f9e;
  --accent-soft: #e8f0f8;
  --gold: #b8955a;
  --maxw: 1240px;
  --gutter: clamp(18px, 4.5vw, 64px);
  --hdr: 84px;
  --font: "Inter", system-ui, sans-serif;
  --head: "Manrope", "Inter", system-ui, sans-serif;
}
body[data-company="trioair"]     { --accent: #1f5f9e; --accent-soft: #e8f0f8; }
body[data-company="triomarin"]   { --accent: #0f6e73; --accent-soft: #e5f2f2; }
body[data-company="trioairfzco"] { --accent: #a37a35; --accent-soft: #f6efe3; }
html[lang="ar"] { --font: "IBM Plex Sans Arabic", "Inter", sans-serif; --head: "IBM Plex Sans Arabic", "Manrope", sans-serif; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--hdr); }
body { font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
h1, h2, h3, h4 { font-family: var(--head); letter-spacing: -0.01em; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; }
.up { text-transform: uppercase; }

/* ---------- Header ---------- */
.hdr { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--hdr); display: flex; align-items: center; transition: background .3s, box-shadow .3s; }
.hdr.solid, .hdr.light { background: rgba(255,255,255,.97); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(8px); }
.hdr .wrap { width: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.brand img { height: 48px; width: auto; }
.brand .bn { display: flex; flex-direction: column; line-height: 1.2; border-inline-start: 1px solid rgba(255,255,255,.3); padding-inline-start: 14px; }
.hdr.solid .brand .bn, .hdr.light .brand .bn { border-color: var(--line); }
.brand .bn b { font: 700 14px var(--head); color: #fff; letter-spacing: .02em; }
.brand .bn small { font-size: 11px; color: rgba(255,255,255,.75); letter-spacing: .06em; text-transform: uppercase; }
.hdr.solid .brand .bn b, .hdr.light .brand .bn b { color: var(--navy); }
.hdr.solid .brand .bn small, .hdr.light .brand .bn small { color: var(--ink-soft); }
.nav { display: flex; gap: 2px; margin-inline-start: auto; }
.nav a { font-size: 14px; font-weight: 500; color: #fff; padding: 10px 14px; border-radius: 6px; opacity: .9; white-space: nowrap; transition: background .2s, color .2s; }
.nav a:hover { opacity: 1; background: rgba(255,255,255,.1); }
.hdr.solid .nav a, .hdr.light .nav a { color: var(--ink); }
.hdr.solid .nav a:hover, .hdr.light .nav a:hover { background: var(--bg-soft); color: var(--accent); }
.nav a.grp { color: var(--gold); font-weight: 600; }
.tools { display: flex; align-items: center; gap: 10px; }
.portal .tools { margin-inline-start: auto; }
.langs { display: flex; border: 1px solid rgba(255,255,255,.35); border-radius: 6px; overflow: hidden; }
.hdr.solid .langs, .hdr.light .langs { border-color: var(--line); }
.langs button { border: 0; background: transparent; color: #fff; padding: 7px 11px; font-size: 12px; font-weight: 600; }
.hdr.solid .langs button, .hdr.light .langs button { color: var(--ink-soft); }
.langs button.active { background: #fff; color: var(--navy); }
.hdr.solid .langs button.active, .hdr.light .langs button.active { background: var(--navy); color: #fff; }
.menu-btn { display: none; background: none; border: 0; color: #fff; width: 42px; height: 42px; }
.hdr.solid .menu-btn, .hdr.light .menu-btn { color: var(--navy); }
.menu-btn svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 6px; font-size: 14px; font-weight: 600; border: 1px solid transparent; transition: all .2s; }
.btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
html[dir="rtl"] .btn svg.arrow { transform: scaleX(-1); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { filter: brightness(1.1); }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: var(--accent-soft); }
.btn-outline { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-outline:hover { background: #fff; color: var(--navy); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); }

/* ---------- Sections ---------- */
.sec { padding: clamp(72px, 9vw, 120px) 0; }
.sec.soft { background: var(--bg-soft); }
.sec.navy { background: var(--navy); color: #fff; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: 14px; }
.navy .eyebrow { color: #9fc3e6; }
body[data-company="triomarin"] .navy .eyebrow { color: #8fd1cc; }
body[data-company="trioairfzco"] .navy .eyebrow { color: #e3c48c; }
.title { font-size: clamp(30px, 3.8vw, 48px); line-height: 1.12; font-weight: 700; margin-top: 12px; color: var(--navy); max-width: 22ch; }
.title em { font-style: normal; color: var(--accent); }
.navy .title { color: #fff; }
.navy .title em { color: inherit; opacity: .8; }
.lead { font-size: 17px; color: var(--ink-soft); max-width: 62ch; margin-top: 16px; }
.navy .lead { color: rgba(255,255,255,.75); }
.head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 48px; }
.rule { width: 56px; height: 3px; background: var(--accent); margin-top: 20px; }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } html { scroll-behavior: auto; } }

/* ==========================================================================
   ANA KAPI
   ========================================================================== */
.gate { min-height: 100vh; display: flex; flex-direction: column; background: var(--navy); }
.gate-intro { padding: calc(var(--hdr) + 28px) var(--gutter) 28px; text-align: center; color: #fff; }
.gate-intro h1 { font-size: clamp(14px, 1.3vw, 16px); font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
html[lang="ar"] .gate-intro h1 { letter-spacing: 0; font-size: 18px; }
.gate-intro p { margin-top: 8px; font-size: 15px; color: rgba(255,255,255,.7); }
.entries { flex: 1; display: grid; grid-template-rows: repeat(3, 1fr); }
.entry { position: relative; display: flex; align-items: center; overflow: hidden; color: #fff; min-height: 220px; border-top: 1px solid rgba(255,255,255,.12); }
.entry .ph { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.02); transition: transform 1.2s ease; }
.entry::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(11,29,48,.94) 0%, rgba(11,29,48,.78) 45%, rgba(11,29,48,.35) 100%); transition: background .5s; }
html[dir="rtl"] .entry::before { background: linear-gradient(270deg, rgba(11,29,48,.94) 0%, rgba(11,29,48,.78) 45%, rgba(11,29,48,.35) 100%); }
.entry::after { content: ""; position: absolute; z-index: 2; inset-block: 0; inset-inline-start: 0; width: 6px; background: var(--ec); transform: scaleY(0); transform-origin: top; transition: transform .5s; }
.entry:hover .ph { transform: scale(1.07); }
.entry:hover::after { transform: scaleY(1); }
.entry .wrap { position: relative; z-index: 3; width: 100%; display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 32px; }
.entry .num { font: 300 56px/1 var(--head); color: rgba(255,255,255,.35); }
.entry .cat { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ec); }
html[lang="ar"] .entry .cat { letter-spacing: 0; font-size: 14px; }
.entry h2 { font-size: clamp(22px, 2.9vw, 42px); line-height: 1.15; font-weight: 800; margin-top: 8px; max-width: 26ch; letter-spacing: .005em; }
.entry p { margin-top: 10px; font-size: 15px; color: rgba(255,255,255,.75); max-width: 60ch; }
.entry .go { display: inline-flex; align-items: center; gap: 12px; padding: 16px 28px; border: 1px solid rgba(255,255,255,.5); border-radius: 6px; font-weight: 600; font-size: 15px; white-space: nowrap; transition: all .25s; }
.entry:hover .go { background: #fff; color: var(--navy); border-color: #fff; }
.entry .go svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }
html[dir="rtl"] .entry .go svg { transform: scaleX(-1); }

.group { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.value { background: #fff; padding: 28px; }
.value svg { width: 30px; height: 30px; stroke: var(--accent); fill: none; stroke-width: 1.6; }
.value h4 { margin-top: 14px; font-size: 18px; color: var(--navy); }
.value p { margin-top: 6px; font-size: 14px; color: var(--ink-soft); }

/* ==========================================================================
   ŞİRKET SAYFASI
   ========================================================================== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--navy); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.slide.active { opacity: 1; }
.slide .ph { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.06); transition: transform 8s ease-out; }
.slide.active .ph { transform: scale(1); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(11,29,48,.55) 0%, rgba(11,29,48,.25) 35%, rgba(11,29,48,.9) 100%); }
.hero-body { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(56px, 9vh, 110px); padding-top: calc(var(--hdr) + 40px); }
.hero .legal { font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.85); display: flex; align-items: center; gap: 14px; }
html[lang="ar"] .hero .legal { letter-spacing: 0; font-size: 15px; }
.hero .legal::before { content: ""; width: 40px; height: 2px; background: var(--accent); }
body[data-company="trioair"] .hero .legal::before { background: #6aa6dd; }
body[data-company="triomarin"] .hero .legal::before { background: #5cc3bb; }
body[data-company="trioairfzco"] .hero .legal::before { background: #d9b06a; }
.hero h1 { font-size: clamp(38px, 6vw, 82px); line-height: 1.04; font-weight: 800; margin-top: 22px; max-width: 18ch; }
.hero h1 .hash { color: inherit; }
.hero .sub { font-size: clamp(16px, 1.5vw, 19px); color: rgba(255,255,255,.82); margin-top: 20px; max-width: 56ch; }
.hero .actions { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.hero-nav { position: absolute; z-index: 3; inset-inline-end: var(--gutter); bottom: clamp(56px, 9vh, 110px); display: flex; gap: 10px; }
.hero-nav button { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: transparent; padding: 0; }
.hero-nav button.active { background: #fff; }

.facts { background: #fff; border-bottom: 1px solid var(--line); }
.facts .wrap { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); }
.fact { padding: 34px 28px; border-inline-end: 1px solid var(--line); }
.fact:first-child { border-inline-start: 1px solid var(--line); }
.fact b { display: block; font: 800 44px/1 var(--head); color: var(--navy); direction: ltr; unicode-bidi: isolate; }
.fact b span { color: var(--accent); }
.fact small { display: block; margin-top: 10px; font-size: 14px; color: var(--ink-soft); }
.facts.single .wrap { grid-template-columns: auto 1fr; align-items: center; }
.facts .claim { padding: 34px 28px; font: 600 20px/1.4 var(--head); color: var(--navy); }

.about { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.about-img { position: relative; }
.about-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 4px; }
.about-img .badge { position: absolute; inset-inline-start: -1px; bottom: -1px; background: var(--accent); color: #fff; padding: 22px 28px; border-radius: 0 4px 0 4px; }
.about-img .badge b { display: block; font: 800 36px/1 var(--head); }
.about-img .badge span { font-size: 13px; }
.about p { color: var(--ink-soft); margin-top: 16px; }
.checks { list-style: none; margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.checks li { display: flex; gap: 10px; font-weight: 600; color: var(--navy); font-size: 15px; }
.checks svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; stroke: var(--accent); fill: none; stroke-width: 2.4; }
.about .btn { margin-top: 32px; }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 32px 28px; transition: border-color .25s, box-shadow .25s, transform .25s; position: relative; }
.svc::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.svc:hover { border-color: transparent; box-shadow: 0 18px 40px rgba(11,29,48,.1); transform: translateY(-3px); }
.svc:hover::before { transform: scaleX(1); }
.svc .ico { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); }
.svc .ico svg { width: 26px; height: 26px; stroke: var(--accent); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.svc h3 { margin-top: 22px; font-size: 19px; color: var(--navy); }
.svc p { margin-top: 8px; font-size: 14.5px; color: var(--ink-soft); }

/* Teknik şemalar (koyu panel içinde, çizim stilleri drawings.js için) */
.tech { width: 100%; height: auto; overflow: visible; direction: ltr; unicode-bidi: isolate; --bp: #0b1d30; --red: #e0785a; --gold-2: #e3c48c; --accent-2: #8fc3ec; color: #e9eef3; }
.tech .s { fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.tech .t { stroke-width: .8; opacity: .7; }
.tech .k { stroke-width: 2.1; }
.tech .r { stroke: #e0785a; }
.tech .a { stroke: #e3c48c; }
.tech .hatch { stroke-width: .6; opacity: .45; }
.tech text { font: 500 10px "IBM Plex Mono", monospace; fill: currentColor; }
.tech text.lbl { font-size: 9px; opacity: .8; }
.tech text.big { font-size: 13px; font-weight: 600; }
.tech .dot { fill: currentColor; }
.tech .rdot { fill: #e0785a; }
.tech .cs, .tech .cr, .tech .fw { stroke: #8fc3ec; } .tech .csf, .tech .crf, .tech .fwf { fill: #8fc3ec; }
.tech .hs, .tech .hr { stroke: #e0785a; } .tech .hsf, .tech .hrf { fill: #e0785a; }
.tech .cr, .tech .hr { stroke-dasharray: 7 5; }
.tech .sw { stroke: #5fbf8f; } .tech .swf { fill: #5fbf8f; }
.tech .fo { stroke: #c98a4b; } .tech .fof { fill: #c98a4b; }
.tech .bg { stroke: #a7adb3; stroke-dasharray: 9 4 2 4; } .tech .bgf { fill: #a7adb3; }
.tech .bw { stroke: #5fbf8f; stroke-dasharray: 7 5; }
.tech .ex { stroke: #b9b0a0; stroke-width: 3; } .tech .exf { fill: #b9b0a0; }
.tech .as { stroke: #7fd6e3; } .tech .asf { fill: #7fd6e3; }
.tech .ae { stroke: #e3b562; } .tech .aef { fill: #e3b562; }
.tech .duct { stroke-width: 6; stroke-linecap: butt; opacity: .55; }
.tech .flow { stroke-dasharray: 2 14; stroke-width: 2.2; animation: flow 1.2s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -16; } }
.tech .spin { transform-box: fill-box; transform-origin: center; animation: spin 2.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .tech .flow, .tech .spin { animation: none; } }
.panel { background: var(--navy); border-radius: 4px; padding: clamp(16px, 2.6vw, 36px); }
.panel .scroll { overflow-x: auto; }
.panel + .panel { margin-top: 20px; }
.panel .cap { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.8); font-size: 14px; }
.panel .cap b { color: #fff; font-family: var(--head); }
.legend { list-style: none; margin-top: 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 20px; }
.legend li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: rgba(255,255,255,.75); }
.legend svg { width: 44px; height: 26px; flex-shrink: 0; }
.dtabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.dtabs button { border: 1px solid rgba(255,255,255,.25); background: transparent; color: rgba(255,255,255,.8); padding: 9px 16px; border-radius: 6px; font-size: 14px; font-weight: 500; }
.dtabs button.active { background: #fff; color: var(--navy); border-color: #fff; }
.dview { display: none; } .dview.active { display: block; }

.stage + .stage { margin-top: 56px; }
.stage-h { display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.stage-h h3 { font-size: 24px; color: var(--navy); }
.stage-h span { font-size: 14px; color: var(--ink-soft); }
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.proj { background: #fff; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; transition: box-shadow .25s, transform .25s; }
.proj:hover { box-shadow: 0 18px 40px rgba(11,29,48,.1); transform: translateY(-3px); }
.proj .pi { aspect-ratio: 16/10; overflow: hidden; position: relative; }
.proj .pi img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.proj:hover .pi img { transform: scale(1.05); }
.proj .st { position: absolute; top: 14px; inset-inline-start: 14px; background: #fff; color: var(--navy); font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 4px; }
.proj .pb { padding: 22px 24px 24px; }
.proj h4 { font-size: 18px; color: var(--navy); line-height: 1.3; }
.proj p { font-size: 14px; color: var(--ink-soft); margin-top: 8px; }
.proj .meta { display: flex; gap: 20px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-soft); }
.proj .meta b { color: var(--navy); font-weight: 600; }
.empty { border: 1px dashed var(--line); border-radius: 4px; padding: 36px; text-align: center; color: var(--ink-soft); grid-column: 1 / -1; background: #fff; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 12px; }
.gallery figure { overflow: hidden; border-radius: 4px; }
.gallery figure:first-child { grid-column: span 2; grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.gallery figure:hover img { transform: scale(1.05); }

.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; counter-reset: s; }
.step { border-top: 3px solid var(--accent); padding-top: 20px; }
.step b { font: 800 14px var(--head); color: var(--accent); }
.step h4 { margin-top: 8px; font-size: 17px; color: var(--navy); }
.step p { margin-top: 6px; font-size: 14px; color: var(--ink-soft); }

.cta { position: relative; overflow: hidden; color: #fff; background: var(--navy); }
.cta .ph { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .25; }
.cta .wrap { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-block: 72px; }
.cta h2 { font-size: clamp(26px, 3vw, 38px); max-width: 24ch; }
.cta p { color: rgba(255,255,255,.75); margin-top: 10px; }

.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 5vw, 72px); }
.cinfo { margin-top: 30px; display: grid; gap: 18px; }
.ci { display: flex; gap: 16px; align-items: flex-start; }
.ci .ico { width: 46px; height: 46px; border-radius: 50%; background: var(--accent-soft); display: grid; place-items: center; flex-shrink: 0; }
.ci svg { width: 20px; height: 20px; stroke: var(--accent); fill: none; stroke-width: 2; }
.ci small { display: block; font-size: 13px; color: var(--ink-soft); }
.ci a, .ci span { font-weight: 600; color: var(--navy); }
.map { margin-top: 26px; aspect-ratio: 16/9; border-radius: 4px; overflow: hidden; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; }
.form { background: var(--bg-soft); border-radius: 4px; padding: clamp(24px, 3vw, 40px); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-content: start; }
.form h3 { grid-column: 1 / -1; font-size: 22px; color: var(--navy); }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.form label.full { grid-column: 1 / -1; }
.form input, .form select, .form textarea { font: inherit; font-size: 15px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; outline: none; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form textarea { min-height: 120px; resize: vertical; }
.form .btn { grid-column: 1 / -1; justify-self: start; border: 0; }
.form .note { grid-column: 1 / -1; font-size: 13px; color: var(--accent); }

.ftr { background: var(--navy); color: rgba(255,255,255,.7); padding: 64px 0 28px; font-size: 14px; }
.ftr .grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.ftr img { height: 54px; width: auto; }
.ftr p { margin-top: 14px; max-width: 38ch; }
.ftr h5 { color: #fff; font: 700 14px var(--head); margin-bottom: 14px; }
.ftr ul { list-style: none; display: grid; gap: 8px; }
.ftr a:hover { color: #fff; }
.ftr .base { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; }

.fab { position: fixed; z-index: 40; bottom: 22px; inset-inline-end: 22px; width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 28px rgba(11,29,48,.3); }
.fab svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .menu-btn { display: grid; place-items: center; }
  .nav { position: fixed; top: var(--hdr); inset-inline: 0; height: calc(100vh - var(--hdr)); background: #fff; flex-direction: column; padding: 20px var(--gutter); gap: 0; margin: 0; overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity .2s; }
  .nav.open { opacity: 1; visibility: visible; }
  .nav a { color: var(--ink) !important; font-size: 19px; padding: 16px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .tools { margin-inline-start: auto; }
  .services, .projects { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .ftr .grid { grid-template-columns: 1fr 1fr; }
  .entry .wrap { grid-template-columns: 1fr; gap: 14px; }
  .entry .num { display: none; }
  .entry .go { justify-self: start; }
}
@media (max-width: 860px) {
  :root { --hdr: 70px; }
  .brand img { height: 40px; }
  .about, .group, .contact { grid-template-columns: 1fr; }
  .facts .wrap { grid-template-columns: 1fr 1fr; }
  .fact { border-bottom: 1px solid var(--line); }
  .entry { min-height: 260px; padding-block: 28px; }
  .entry h2 { font-size: 24px; }
}
@media (max-width: 600px) {
  .brand .bn { display: none; }
  .services, .projects, .values, .checks, .steps, .form { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .ftr .grid { grid-template-columns: 1fr; }
  .langs button { padding: 6px 8px; }
  .hero-nav { display: none; }
  .entry p { display: none; }
}

/* ---------- Referanslar ---------- */
.refs-block { margin-top: 64px; }
.rsum { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.rsum > div { padding: 24px 26px; border-inline-end: 1px solid var(--line); }
.rsum > div:last-child { border-inline-end: 0; }
.rsum b { display: block; font: 800 34px/1 var(--head); color: var(--navy); }
.rsum span { display: block; margin-top: 8px; font-size: 14px; color: var(--ink-soft); }
.rsub { font-size: 20px; color: var(--navy); margin: 48px 0 18px; display: flex; align-items: center; gap: 14px; }
.rsub::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.feats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.feat { grid-column: span 2; background: #fff; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s; }
.feat:nth-child(4), .feat:nth-child(5) { grid-column: span 3; }
.feat:hover { box-shadow: 0 18px 40px rgba(11,29,48,.1); transform: translateY(-3px); }
.feat .fi { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--navy); }
.feat .fi img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.feat:hover .fi img { transform: scale(1.05); }
.feat .sec-tag { position: absolute; top: 14px; inset-inline-start: 14px; background: rgba(11,29,48,.85); color: #fff; font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 4px; }
.feat .fb { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.feat small { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
html[lang="ar"] .feat small { letter-spacing: 0; }
.feat h4 { font-size: 18px; color: var(--navy); line-height: 1.3; margin-top: 6px; }
.feat p { font-size: 14px; color: var(--ink-soft); margin-top: 8px; flex: 1; }
.feat .yr { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--navy); }
.rtabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.rtabs button { border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 9px 16px; border-radius: 6px; font-size: 14px; font-weight: 500; }
.rtabs button i { font-style: normal; font-size: 12px; color: var(--ink-soft); margin-inline-start: 4px; }
.rtabs button.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.rtabs button.active i { color: rgba(255,255,255,.7); }
.rlist { border: 1px solid var(--line); border-radius: 4px; background: #fff; overflow: hidden; }
.rl-head, .rgroup li { display: grid; grid-template-columns: 1.3fr 1fr 120px; gap: 20px; align-items: center; }
.rl-head { padding: 12px 24px; background: var(--bg-soft); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); border-bottom: 1px solid var(--line); }
html[lang="ar"] .rl-head { letter-spacing: 0; font-size: 13px; }
.rl-head span:last-child, .rgroup .py { text-align: end; }
.rgroup + .rgroup { border-top: 1px solid var(--line); }
.rg-h { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 24px 10px; flex-wrap: wrap; }
.rg-h h5 { font: 700 16px var(--head); color: var(--navy); display: flex; align-items: center; gap: 10px; }
.rg-h h5::before { content: ""; width: 4px; height: 18px; background: var(--accent); border-radius: 2px; }
.rg-h span { font-size: 13px; color: var(--ink-soft); }
.rgroup ul { list-style: none; padding-bottom: 10px; }
.rgroup li { padding: 10px 24px; font-size: 14.5px; }
.rgroup li:nth-child(odd) { background: #fafbfc; }
.rgroup .pn { color: var(--ink); font-weight: 500; }
.rgroup .ps { color: var(--ink-soft); font-size: 13.5px; }
.rgroup .py { color: var(--navy); font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.rwall { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.rwall span { background: #fff; display: grid; place-items: center; text-align: center; min-height: 86px; padding: 14px; font: 700 15px var(--head); color: var(--navy); letter-spacing: .01em; transition: color .2s, background .2s; }
.rwall span:hover { background: var(--accent-soft); color: var(--accent); }
@media (max-width: 1100px) {
  .feats { grid-template-columns: 1fr 1fr; }
  .feat, .feat:nth-child(4), .feat:nth-child(5) { grid-column: span 1; }
  .rwall { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .rsum { grid-template-columns: 1fr 1fr; }
  .rsum > div:nth-child(2) { border-inline-end: 0; }
  .rsum > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .feats { grid-template-columns: 1fr; }
  .rl-head { display: none; }
  .rgroup li { grid-template-columns: 1fr auto; gap: 4px 12px; }
  .rgroup .ps { grid-column: 1 / -1; grid-row: 2; }
  .rwall { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   LÜKS TEMA — gece laciverti, şampanya altını, fildişi (v2'den)
   ========================================================================== */
:root {
  --navy: #0d1724; --navy-2: #16233a; --ink: #141a24; --ink-soft: #5e6370;
  --line: #e2dccf; --bg: #fbf9f4; --bg-soft: #f3efe7;
  --gold: #c5a46d; --gold-2: #e2c995;
  --accent: #9c7a3f; --accent-soft: #f3ead9;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
}
body[data-company="trioair"]     { --accent: #3f6487; --accent-soft: #e6edf4; }
body[data-company="triomarin"]   { --accent: #2f6a6b; --accent-soft: #e3efee; }
body[data-company="trioairfzco"] { --accent: #9c7a3f; --accent-soft: #f3ead9; }
html[lang="ar"] { --serif: "Amiri", "IBM Plex Sans Arabic", serif; }
body { background: var(--bg); }

/* Serif başlıklar */
.title, .hero h1, .cta h2, .stage-h h3, .rsub, .svc h3, .proj h4, .feat h4, .value h4, .step h4, .form h3, .group .title {
  font-family: var(--serif); font-weight: 600; letter-spacing: 0;
}
.title { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.05; }
.title em { font-style: italic; color: var(--accent); }
html[lang="ar"] .title em { font-style: normal; }
.hero h1 { font-size: clamp(44px, 6.6vw, 92px); line-height: 1; font-weight: 500; }
.hero h1 .hash { color: var(--gold-2); font-style: italic; }
html[lang="ar"] .hero h1 .hash { font-style: normal; }
.svc h3 { font-size: 23px; }
.proj h4, .feat h4 { font-size: 22px; }
.stage-h h3 { font-size: 30px; }
.rsub { font-size: 26px; }
.value h4, .step h4 { font-size: 21px; }
.eyebrow { color: var(--gold); }
.navy .eyebrow { color: var(--gold-2) !important; }
.rule { background: var(--gold); }

/* Altın detaylar */
.hero .legal::before { background: var(--gold) !important; }
.hero-nav button { border-color: var(--gold-2); }
.hero-nav button.active { background: var(--gold-2); }
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-2); filter: none; }
.btn-white { background: var(--gold); color: var(--navy); }
.btn-white:hover { background: var(--gold-2); }
.btn-outline { border-color: rgba(226,201,149,.6); }
.btn-outline:hover { background: transparent; color: var(--gold-2); border-color: var(--gold-2); }
.btn-dark { background: var(--navy); color: var(--gold-2); }
.nav a.grp { color: var(--gold); }
.hdr.solid, .hdr.light { background: rgba(251,249,244,.97); }
.langs button.active { background: var(--gold); color: var(--navy); }
.hdr.solid .langs button.active, .hdr.light .langs button.active { background: var(--navy); color: var(--gold-2); }
.fab { background: var(--gold); color: var(--navy); }

/* Koyu bölümlerde ışık ve altın çerçeve */
.gate, .sec.navy, .cta, .ftr { background-color: var(--navy); }
.gate, .sec.navy {
  background-image: radial-gradient(900px 500px at 85% 0%, rgba(197,164,109,.12), transparent 60%), radial-gradient(700px 400px at 0% 100%, rgba(80,110,150,.10), transparent 60%);
}
.gate-intro h1 { color: var(--gold); }
.entry::after { background: var(--gold); }
.entry:hover .go { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.entry .num { font-family: var(--serif); font-style: italic; color: rgba(226,201,149,.45); }
.entry h2 { font-family: var(--head); }
.panel { border: 1px solid rgba(197,164,109,.3); }
.dtabs button.active { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.ftr h5 { color: var(--gold-2); }
.ftr .base { border-top-color: rgba(197,164,109,.2); }

/* Açık zemin kartları */
.svc, .proj, .feat, .rsum, .rlist, .value, .rwall span, .facts { background: #fff; }
.svc::before { background: var(--gold); }
.svc .ico { background: var(--accent-soft); }
.svc:hover, .proj:hover, .feat:hover { box-shadow: 10px 10px 0 rgba(197,164,109,.18); }
.fact b span, .rsum b { color: var(--navy); }
.fact b span:last-child { color: var(--gold); }
.facts .claim { font-family: var(--serif); font-size: 26px; font-weight: 600; font-style: italic; }
html[lang="ar"] .facts .claim { font-style: normal; }
.about-img .badge { background: var(--navy); color: var(--gold-2); }
.about-img .badge b { font-family: var(--serif); font-size: 44px; }
.step { border-top-color: var(--gold); }
.step b { color: var(--gold); font-family: var(--serif); font-size: 22px; font-style: italic; }
.rtabs button.active { background: var(--navy); color: var(--gold-2); }
.rg-h h5::before { background: var(--gold); }
.feat small { color: var(--gold); }
.feat .sec-tag, .proj .st { background: var(--navy); color: var(--gold-2); }
.rsum b { font-family: var(--serif); font-size: 42px; font-weight: 600; }
.cta { border-top: 1px solid rgba(197,164,109,.25); border-bottom: 1px solid rgba(197,164,109,.25); }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(197,164,109,.2); }
.ci .ico { background: var(--accent-soft); }

/* ---------- Trio Group'a dönüş butonu ---------- */
.back-grp { display: flex; align-items: center; gap: 12px; flex-shrink: 0; padding: 8px 18px 8px 8px; margin-inline-end: 6px; border: 1px solid rgba(226,201,149,.45); border-radius: 999px; color: #fff; transition: all .25s; }
html[dir="rtl"] .back-grp { padding: 8px 8px 8px 18px; }
.back-grp .bg-ico { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--gold, #b8955a); color: var(--navy); transition: transform .25s; }
.back-grp .bg-ico svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
html[dir="rtl"] .back-grp .bg-ico svg { transform: scaleX(-1); }
.back-grp .bg-txt { display: flex; flex-direction: column; line-height: 1.1; }
.back-grp small { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-2, #e2c995); }
html[lang="ar"] .back-grp small { letter-spacing: 0; font-size: 12px; }
.back-grp b { font: 800 17px var(--head); letter-spacing: .12em; }
.back-grp:hover { background: rgba(226,201,149,.12); border-color: var(--gold-2, #e2c995); }
.back-grp:hover .bg-ico { transform: translateX(-4px); }
html[dir="rtl"] .back-grp:hover .bg-ico { transform: translateX(4px); }
.hdr.solid .back-grp, .hdr.light .back-grp { color: var(--navy); border-color: rgba(197,164,109,.6); }
.hdr.solid .back-grp small, .hdr.light .back-grp small { color: var(--gold, #9c7a3f); }
@media (max-width: 1300px) { .brand .bn { display: none; } }
@media (max-width: 600px) {
  .back-grp { padding: 4px; margin-inline-end: 0; }
  .back-grp .bg-txt { display: none; }
  .back-grp .bg-ico { width: 34px; height: 34px; }
}

/* Logo — daha büyük ve belirgin */
.brand img { height: 60px; filter: brightness(1.35) contrast(1.1) drop-shadow(0 2px 6px rgba(0,0,0,.45)); }
.hdr.solid .brand img, .hdr.light .brand img { filter: contrast(1.1) drop-shadow(0 1px 2px rgba(0,0,0,.15)); }
.brand .bn b { font-size: 17px; letter-spacing: .08em; }
.brand .bn small { font-size: 11.5px; color: var(--gold-2, #e2c995); }
.hdr.solid .brand .bn small, .hdr.light .brand .bn small { color: var(--gold, #9c7a3f); }
@media (max-width: 860px) { .brand img { height: 48px; } }

/* Devam eden projeler — durum etiketi */
.rgroup .py.live { display: inline-flex; align-items: center; justify-content: flex-end; gap: 8px; color: var(--gold, #b08d57); }
.rgroup .py.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(176,141,87,.18); }

/* Projeler — Devam eden / Tamamlanmış sekmeleri */
.ptabs { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; margin-bottom: 36px; background: #fff; }
.ptabs button { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 22px 28px; border: 0; background: transparent; color: var(--navy); cursor: pointer; text-align: start; font: inherit; transition: background .2s, color .2s; }
.ptabs button + button { border-inline-start: 1px solid var(--line); }
.ptabs button span { font-family: var(--serif, inherit); font-size: 26px; font-weight: 500; line-height: 1.15; }
.ptabs button i { font-style: normal; font-size: 14px; font-weight: 600; min-width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid currentColor; opacity: .8; }
.ptabs button:hover:not(.active) { background: var(--bg-soft); }
.ptabs button.active { background: var(--navy); color: var(--gold-2, #e3c991); }
.ppanel { display: none; }
.ppanel.active { display: block; }
.ppanel .refs-block { margin-top: 0; }
.rsum { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) {
  .ptabs button { padding: 16px 16px; }
  .ptabs button span { font-size: 18px; }
  .ptabs button i { min-width: 30px; height: 30px; font-size: 12px; }
  .rsum { grid-template-columns: repeat(3, 1fr); }
  .rsum > div, .rsum > div:nth-child(2) { border-inline-end: 1px solid var(--line); border-bottom: 0; padding: 16px 12px; }
  .rsum > div:last-child { border-inline-end: 0; }
  .rsum b { font-size: 26px; }
}

/* Galeri — tümünü göster + büyütme */
.gallery figure { cursor: zoom-in; }
.gallery.collapsed figure.more { display: none; }
.gal-more { display: flex; justify-content: center; margin-top: 28px; }
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(6,12,24,.94); display: none; align-items: center; justify-content: center; padding: 56px 72px; }
.lb.open { display: flex; }
.lb img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 3px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lb button { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; opacity: .8; }
.lb button:hover { opacity: 1; }
.lb-x { top: 16px; inset-inline-end: 18px; width: 40px; height: 40px; }
.lb-x svg { width: 28px; height: 28px; }
.lb-p, .lb-n { top: 50%; transform: translateY(-50%); font-size: 54px; line-height: 1; padding: 10px 16px; }
.lb-p { left: 8px; } .lb-n { right: 8px; }
.lb-c { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.75); font-size: 13px; letter-spacing: .08em; }
@media (max-width: 760px) { .lb { padding: 48px 10px; } .lb-p, .lb-n { font-size: 40px; padding: 6px; } }
