/* alt1 Kurumsal Klasik — Deloitte/McKinsey estetiği */
:root {
  --navy: #0B2545;
  --navy-2: #122D50;
  --gold: #C9A96E;
  --ink: #1A1F2E;
  --muted: #5C6478;
  --line: #E6E8EE;
  --bg: #FFFFFF;
  --bg-soft: #F7F8FA;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 2px;
  --shadow: 0 2px 12px rgba(11, 37, 69, 0.06);
  --tr: 0.3s cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
[lang="ar"] body { font-family: 'Noto Naskh Arabic', var(--sans); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--tr); }
a:hover { color: var(--navy); }
button { font: inherit; cursor: pointer; }
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: 1rem; top: 1rem; background: var(--navy); color: #fff; padding: .5rem 1rem; z-index: 999; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(130%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 88px; gap: 24px;
}
.brand-logo { height: 44px; width: auto; }
.primary-nav ul {
  display: flex; gap: 28px; list-style: none; align-items: center;
}
.primary-nav a {
  font-size: 14px; font-weight: 500; letter-spacing: .02em;
  color: var(--ink); padding: 6px 0; position: relative;
}
.primary-nav a::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 1px; background: var(--gold);
  transition: width var(--tr);
}
.primary-nav a:hover::after { width: 100%; }

.header-tools { display: flex; align-items: center; gap: 16px; }
.lang-switch { display: inline-flex; gap: 2px; padding: 2px; background: var(--bg-soft); border-radius: var(--radius); }
.lang-option {
  border: 0; background: transparent; padding: 6px 10px;
  font-size: 12px; font-weight: 500; letter-spacing: .08em;
  color: var(--muted); border-radius: var(--radius);
}
.lang-option.active { background: var(--navy); color: #fff; }

.nav-toggle {
  display: none; border: 0; background: transparent; width: 44px; height: 44px;
  flex-direction: column; justify-content: center; align-items: center; gap: 4px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); transition: transform var(--tr); }

@media (max-width: 960px) {
  .primary-nav { position: absolute; inset: 88px 0 auto 0; background: #fff; border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all var(--tr); }
  .primary-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .primary-nav ul { flex-direction: column; gap: 0; padding: 16px 24px; }
  .primary-nav li { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 120px 0 100px;
  background:
    radial-gradient(1000px 400px at 10% 0%, rgba(201, 169, 110, .08), transparent 60%),
    linear-gradient(#fff, var(--bg-soft));
  border-bottom: 1px solid var(--line);
}
.hero-inner { max-width: 900px; text-align: left; }
.eyebrow {
  display: inline-block; font-size: 12px; letter-spacing: .25em;
  text-transform: uppercase; color: var(--gold); font-weight: 600;
  margin-bottom: 20px;
}
.hero-title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(42px, 6.5vw, 82px); line-height: 1.05;
  color: var(--navy); letter-spacing: -0.015em;
}
.divider { width: 60px; border: 0; border-top: 1px solid var(--gold); margin: 28px 0; }
.hero-sub { font-size: 19px; max-width: 720px; color: var(--muted); }
.hero-ctas { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px; font-weight: 500; font-size: 15px;
  letter-spacing: .02em; border-radius: var(--radius);
  transition: all var(--tr);
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); color: #fff; transform: translateY(-1px); }
.btn-ghost { color: var(--navy); border: 1px solid var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: #fff; }

/* ---------- Sections ---------- */
section { padding: 100px 0; }
.section-head { max-width: 900px; margin-bottom: 60px; }
.section-title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(32px, 4vw, 48px); line-height: 1.15;
  color: var(--navy); letter-spacing: -0.01em;
}
.alt-bg { background: var(--bg-soft); }

/* Intro */
.two-col { display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; }
.intro-body p { margin-bottom: 20px; color: var(--muted); }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; gap: 32px; } }

/* Services (numbered) */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}
.service-card {
  padding: 40px 24px 40px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.service-card:not(:last-child) { border-right: 1px solid var(--line); padding-right: 32px; }
.service-num {
  font-family: var(--serif); font-size: 14px; color: var(--gold);
  letter-spacing: .1em; margin-bottom: 16px;
}
.service-card h3 {
  font-family: var(--serif); font-weight: 600; font-size: 22px;
  color: var(--navy); margin-bottom: 12px; line-height: 1.3;
}
.service-card p { color: var(--muted); font-size: 15.5px; line-height: 1.7; }
@media (max-width: 720px) {
  .service-card, .service-card:not(:last-child) {
    border-right: 0; padding-right: 0;
  }
}

/* Projects */
.projects-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}
.project-card {
  background: #fff; padding: 36px 28px; border: 1px solid var(--line);
  transition: all var(--tr);
}
.project-card:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: var(--shadow); }
.p-tag { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.project-card h3 {
  font-family: var(--serif); font-size: 28px; font-weight: 600; color: var(--navy);
  margin: 12px 0 16px;
}
.project-card p { color: var(--muted); font-size: 15px; }

/* CTA footer */
.cta-footer { padding: 110px 0; background: var(--navy); color: #fff; text-align: center; }
.cta-footer h2 {
  font-family: var(--serif); font-size: clamp(32px, 4vw, 48px);
  color: #fff; margin-bottom: 20px;
}
.cta-footer p { color: rgba(255, 255, 255, .75); max-width: 600px; margin: 0 auto 32px; }
.cta-footer .btn-primary { background: var(--gold); color: var(--navy); }
.cta-footer .btn-primary:hover { background: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: #07162B; color: rgba(255, 255, 255, .75); }
.footer-grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 48px; padding: 72px 0 48px;
}
.footer-logo { height: 40px; margin-bottom: 20px; filter: brightness(0) invert(1); }
.footer-col h4 {
  font-family: var(--serif); color: #fff; font-size: 16px;
  font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin: 10px 0; font-size: 14px; }
.footer-col a:hover { color: var(--gold); }
.footer-col p { font-size: 14px; margin-bottom: 8px; }
.copyright {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 24px 0; font-size: 13px; color: rgba(255, 255, 255, .5);
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- References page specific ---------- */
.ref-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 32px; align-items: center;
}
.ref-item {
  aspect-ratio: 5/3; display: grid; place-items: center;
  padding: 20px; border: 1px solid var(--line);
  transition: all var(--tr);
}
.ref-item img {
  max-height: 70px; width: auto; max-width: 100%;
  filter: grayscale(100%) opacity(0.7);
  transition: filter var(--tr);
}
.ref-item:hover img { filter: grayscale(0) opacity(1); }

/* ---------- Contact page ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
@media (max-width: 820px) { .contact-wrap { grid-template-columns: 1fr; } }
.form-field { margin-bottom: 20px; }
.form-field label {
  display: block; font-size: 12px; letter-spacing: .15em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 8px; font-weight: 500;
}
.form-field input, .form-field textarea {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line);
  background: #fff; font: inherit; border-radius: var(--radius);
  transition: border-color var(--tr);
}
.form-field input:focus, .form-field textarea:focus {
  outline: 0; border-color: var(--navy);
}
.form-status { margin-top: 12px; font-size: 14px; min-height: 1.2em; }
.form-status.error { color: #B91C1C; }
.form-status.success { color: #157F3A; }
.form-status.sending { color: var(--muted); }

.contact-info h3 { font-family: var(--serif); color: var(--navy); margin-bottom: 16px; font-size: 22px; }
.contact-info p { color: var(--muted); margin-bottom: 12px; }

/* Reveal */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: all .6s cubic-bezier(.2, .8, .2, 1); }
[data-reveal].revealed { opacity: 1; transform: none; }

/* ---------- About ---------- */
.about-hero { padding: 120px 0 60px; }
.about-hero .eyebrow { color: var(--gold); }
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 40px; }
.mv-card { background: #fff; padding: 48px; border: 1px solid var(--line); }
.mv-card h3 { font-family: var(--serif); color: var(--navy); margin-bottom: 16px; font-size: 28px; }
.mv-card p { color: var(--muted); }
@media (max-width: 820px) { .mv-grid { grid-template-columns: 1fr; } }

/* Projects page */
.project-detail { padding-top: 40px; }
.project-detail h3 { font-family: var(--serif); color: var(--navy); font-size: 36px; margin-bottom: 8px; }
.project-detail .subt { color: var(--gold); font-size: 13px; text-transform: uppercase; letter-spacing: .2em; margin-bottom: 20px; }
.project-detail p { color: var(--muted); margin-bottom: 40px; }
.project-detail + .project-detail { border-top: 1px solid var(--line); padding-top: 60px; margin-top: 60px; }

/* page hero */
.page-hero { padding: 120px 0 80px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.page-hero h1 { font-family: var(--serif); font-size: clamp(42px, 5.5vw, 64px); color: var(--navy); margin-bottom: 16px; letter-spacing: -.01em; }
.page-hero p { color: var(--muted); max-width: 700px; font-size: 18px; }


/* ============================================================
   TrinoGate — Dropdown + Detay + Polish ekleri (ortak, tüm alt)
   ============================================================ */

/* Dropdown — desktop'ta hover/focus, mobile'da click-toggle (JS) */
.has-dropdown { position: relative; }
.has-dropdown > a { position: relative; padding-right: 14px; }
[dir="rtl"] .has-dropdown > a { padding-right: 0; padding-left: 14px; }
/* Alt başına farklı underline ::after kuralları var; buradaki arrow
   reset ile hepsini ezer: static position, oto boyut, şeffaf zemin. */
.has-dropdown > a::after {
  content: '▾' !important;
  display: inline-block !important;
  position: static !important;
  inset: auto !important;
  width: auto !important; height: auto !important;
  margin: 0 0 0 6px !important;
  background: none !important;
  color: inherit !important;
  font-size: 0.7em;
  line-height: 1;
  opacity: 0.6;
  transform: none !important;
  transition: transform .25s ease, opacity .25s ease !important;
  vertical-align: middle;
}
[dir="rtl"] .has-dropdown > a::after { margin: 0 6px 0 0 !important; }
.has-dropdown:hover > a::after,
.has-dropdown:focus-within > a::after,
.has-dropdown.open > a::after { transform: rotate(180deg) !important; opacity: 1 !important; }

/* Eğer alt CSS'inde .primary-nav a::before underline kullanıyorsa (alt3),
   dropdown'da onu da gizle ki çakışmasın */
.has-dropdown > a::before { display: none !important; }

.primary-nav .dropdown,
.dropdown {
  list-style: none !important;
  margin: 0 !important;
  padding: 10px !important;
  position: absolute !important;
  top: calc(100% + 8px) !important;
  inset-inline-start: 0 !important;
  /* parent .primary-nav ul flex zorlamasını ez */
  display: block !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  gap: 0 !important;
  min-width: 340px !important;
  max-width: 380px !important;
  width: max-content !important;
  background: var(--bg, #fff);
  border: 1px solid var(--line, #E5E5E5);
  border-radius: 12px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.15), 0 2px 8px rgba(0,0,0,0.05);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .25s, transform .25s, visibility 0s .25s;
  z-index: 100;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.has-dropdown.open .dropdown {
  opacity: 1 !important; visibility: visible !important; transform: none !important;
  transition: opacity .25s, transform .25s, visibility 0s 0s;
}
.primary-nav .dropdown li,
.dropdown li { display: block !important; width: 100% !important; margin: 0 !important; padding: 0 !important; }
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.has-dropdown.open .dropdown { opacity: 1; visibility: visible; transform: none; }

.dropdown li { border: 0; padding: 0; }
.dropdown a {
  display: block; padding: 12px 14px;
  font-size: 14px; line-height: 1.4;
  color: var(--text, var(--ink, #1A1A1A));
  border-radius: 8px;
  transition: background .2s ease, color .2s ease;
}
.dropdown a:hover,
.dropdown a:focus { background: rgba(127,127,127,0.08); color: inherit; }
.dropdown a strong {
  display: block; font-weight: 600;
  margin-bottom: 3px; font-size: 14px;
}
.dropdown a span {
  display: block; font-size: 12px;
  opacity: 0.65;
}

/* Mobile: dropdown'ı akordiyon olarak göster */
@media (max-width: 980px) {
  .has-dropdown .dropdown {
    position: static; min-width: auto; max-width: none;
    box-shadow: none; border: 0; border-radius: 0; padding: 0 0 0 16px;
    opacity: 1; visibility: visible; transform: none;
    display: none;
  }
  .has-dropdown.open .dropdown { display: block; }
  .has-dropdown > a::after { margin-inline-start: auto; }
}

/* RTL dropdown açılış yönü */
[dir="rtl"] .dropdown { inset-inline-start: auto; inset-inline-end: 0; }

/* ---- Scroll progress bar ---- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px;
  background: var(--accent, var(--neon, var(--electric, var(--primary, #F08A24))));
  transform: scaleX(0); transform-origin: left;
  z-index: 99; pointer-events: none;
  transition: transform .1s linear;
}
[dir="rtl"] .scroll-progress { transform-origin: right; }

/* ---- Detay sections (services.html + projects.html) ---- */
.details-host {
  display: flex; flex-direction: column; gap: 0;
}
.detail-section {
  padding: 48px 0;
  border-bottom: 1px solid var(--line, #E5E5E5);
  scroll-margin-top: 96px;
  transition: background .6s ease;
}
.detail-section:last-child { border-bottom: 0; }
.detail-section.highlight {
  background: color-mix(in oklab, var(--accent, #F08A24) 12%, transparent);
  border-radius: 12px; padding-left: 20px; padding-right: 20px;
}
.detail-head {
  display: flex; align-items: baseline; gap: 18px;
  margin-bottom: 22px; flex-wrap: wrap;
}
.detail-num {
  font-size: 14px; letter-spacing: .15em; opacity: 0.55;
  font-family: var(--mono, var(--sans));
  font-variant-numeric: tabular-nums;
}
.detail-tag {
  display: inline-block; padding: 4px 10px;
  font-size: 11px; letter-spacing: .15em; text-transform: uppercase;
  background: color-mix(in oklab, var(--accent, #F08A24) 15%, transparent);
  color: var(--accent, inherit);
  border-radius: 999px;
}
.detail-head h2 {
  font-size: clamp(26px, 3.5vw, 40px); line-height: 1.15;
  letter-spacing: -0.01em; font-weight: 600;
}
.detail-body { max-width: 860px; }
.detail-body .lead {
  font-size: 18px; line-height: 1.55; margin-bottom: 14px;
  color: var(--text, var(--ink, inherit));
  font-weight: 500;
}
.detail-body p { color: var(--muted, #666); margin-bottom: 18px; font-size: 16px; line-height: 1.65; }
.detail-bullets { margin-top: 18px; }
.detail-bullets h4 {
  font-size: 12px; letter-spacing: .15em; text-transform: uppercase;
  opacity: 0.7; margin-bottom: 12px; font-weight: 600;
}
.detail-bullets ul {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px;
}
.detail-bullets li {
  position: relative; padding-inline-start: 22px;
  color: var(--text, var(--ink, inherit));
  font-size: 15px; line-height: 1.5;
}
.detail-bullets li::before {
  content: ''; position: absolute;
  inset-inline-start: 0; top: 8px;
  width: 10px; height: 2px;
  background: var(--accent, var(--neon, currentColor));
}
@media (max-width: 720px) {
  .detail-bullets ul { grid-template-columns: 1fr; }
}

/* Servis/proje card link stilleri (i18n.js a etiketiyle render eder) */
.services-grid a, .projects-grid a { text-decoration: none; color: inherit; }

.service-more {
  display: inline-block; margin-top: 10px;
  font-size: 12px; letter-spacing: .1em;
  opacity: 0.65; transition: opacity .2s, transform .2s;
}
a:hover .service-more { opacity: 1; transform: translateX(2px); }
[dir="rtl"] a:hover .service-more { transform: translateX(-2px); }
