/* Dragos Mühendislik — site stilleri */
:root {
  --ink: #0E1A26;
  --ink-2: #16273A;
  --accent: #F26B1D;
  --accent-dark: #D4560D;
  --text: #1B2430;
  --muted: #5B6673;
  --line: #E4DFD6;
  --tint: #F6F3EE;
  --white: #fff;
  --radius: 14px;
  --font-head: "Archivo", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font: 400 17px/1.65 var(--font-body);
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }

/* Butonlar */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .9em 1.5em; border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-dark); }
.btn--ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn--ghost:hover { border-color: #fff; }
.btn--sm { padding: .65em 1.15em; font-size: .92rem; }

.eyebrow {
  font: 600 .8rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem; display: flex; align-items: center; gap: .6em;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }

/* Üst bar ve header */
.topbar { background: var(--ink); color: rgba(255,255,255,.7); font-size: .85rem; }
.topbar__inner { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; flex-wrap: wrap; }
.topbar__links { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar a { text-decoration: none; }
.topbar a:hover { color: #fff; }

.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14,26,38,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand__mark { width: 42px; height: 42px; color: #fff; flex: none; }
.brand__text { font: 800 1.25rem/1 var(--font-head); letter-spacing: .06em; display: flex; flex-direction: column; }
.brand__text small { font: 600 .62rem/1.4 var(--font-body); letter-spacing: .32em; color: rgba(255,255,255,.65); }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { color: rgba(255,255,255,.8); text-decoration: none; font-weight: 500; font-size: .97rem; }
.nav a:not(.btn):hover { color: #fff; }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* HERO */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 22px 22px,
    radial-gradient(1200px 600px at 85% 30%, #1f3a56 0%, transparent 60%),
    var(--ink);
  padding: clamp(48px, 7vw, 90px) 0 0;
}
.hero__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); font-weight: 800; margin-bottom: .4em; }
.hero h1 span { color: var(--accent); }
.hero__lead { font-size: 1.15rem; color: rgba(255,255,255,.75); max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.hero__facts {
  display: grid; grid-template-columns: repeat(4, 1fr); margin: 48px 0 0;
  border-top: 1px solid rgba(255,255,255,.12);
}
.hero__facts div { padding: 26px 20px 30px 0; }
.hero__facts div + div { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.12); }
.hero__facts dt { font: 800 1.45rem/1.1 var(--font-head); }
.hero__facts dd { margin: 4px 0 0; color: rgba(255,255,255,.6); font-size: .92rem; }

/* Kepçe sahnesi */
.stage { position: relative; margin: 0; cursor: pointer; }
.stage__svg { display: block; width: 100%; height: auto; overflow: visible; }
.stage__scale {
  position: absolute; right: 8px; top: 8px;
  font: 600 .78rem/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase;
}
.scale { position: absolute; right: 0; top: 0; white-space: nowrap; padding: .55em .8em; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; }
.scale.is-real { color: var(--accent); border-color: rgba(242,107,29,.5); }

/* Bölümler */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--ink); color: #fff; }
.section__head { max-width: 720px; margin-bottom: 48px; }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.section__sub { color: var(--muted); margin: 0; }
.eyebrow--dark { color: var(--accent-dark); }

/* Hizmetler */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.service { background: #fff; padding: 32px 28px; transition: background .25s; }
.service:hover { background: var(--tint); }
.service svg { width: 40px; height: 40px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 18px; }
.service p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Kurumsal */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.about__text p { color: #3a4552; }
.about__parent { font: 600 .95rem/1.4 var(--font-body); color: var(--ink) !important; padding: 10px 14px; background: #fff; border-left: 3px solid var(--accent); display: inline-block; }
.about__cards { display: grid; gap: 16px; }
.pillar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; }
.pillar__no { font: 800 .85rem/1 var(--font-head); color: var(--accent); letter-spacing: .1em; display: block; margin-bottom: 10px; }
.pillar p { color: var(--muted); margin: 0; font-size: .97rem; }
.link-arrow { display: inline-block; margin-top: 14px; font-weight: 600; color: var(--accent-dark); text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* Projeler */
.tabs { display: inline-flex; background: var(--tint); border-radius: 999px; padding: 4px; }
.tab { border: 0; background: none; padding: .6em 1.1em; border-radius: 999px; font: 500 .93rem/1 var(--font-body); color: var(--muted); cursor: pointer; }
.tab.is-active { background: var(--ink); color: #fff; }
.projects { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.project {
  display: block; width: 100%; padding: 0; text-align: left; font: inherit; color: inherit; cursor: pointer;
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff;
  transition: transform .25s, box-shadow .25s;
}
.project:hover, .project:focus-visible { transform: translateY(-4px); box-shadow: 0 18px 40px -20px rgba(14,26,38,.35); }
.project:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.project__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--tint); }
.project__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.project:hover .project__img img { transform: scale(1.05); }
.project__body h3 { font-size: 1rem; line-height: 1.3; }
.tab span { opacity: .6; font-size: .85em; margin-left: .2em; }
.projects__more { text-align: center; margin-top: 36px; }
.projects__more [hidden] { display: none; }
.btn--outline { border-color: var(--ink); color: var(--ink); background: none; }
.btn--outline:hover { background: var(--ink); color: #fff; }

/* Proje galerisi penceresi */
.modal {
  width: min(980px, calc(100% - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 0;
  border-radius: var(--radius); overflow: auto; background: #fff; color: var(--text);
}
.modal::backdrop { background: rgba(8,14,20,.82); backdrop-filter: blur(4px); }
.modal__close {
  position: absolute; top: 10px; right: 10px; z-index: 2; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: rgba(0,0,0,.55); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.modal__gallery { position: relative; background: #0A131C; aspect-ratio: 16 / 10; display: grid; place-items: center; }
.modal__gallery img { width: 100%; height: 100%; object-fit: contain; }
.modal__ph { display: none; color: rgba(255,255,255,.7); padding: 24px; text-align: center; max-width: 30em; }
.modal--noimg .modal__gallery { aspect-ratio: 16 / 6; }
.modal--noimg .modal__gallery img, .modal--noimg .modal__counter { display: none; }
.modal--noimg .modal__ph { display: block; }
.modal--single .modal__nav, .modal--single .modal__thumbs { display: none; }
.modal__nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.9); color: var(--ink); font-size: 1.8rem; line-height: 1; cursor: pointer;
}
.modal__nav--prev { left: 12px; }
.modal__nav--next { right: 12px; }
.modal__counter { position: absolute; bottom: 10px; right: 12px; background: rgba(0,0,0,.55); color: #fff; font-size: .8rem; padding: .3em .7em; border-radius: 999px; }
.modal__thumbs { display: flex; gap: 8px; padding: 10px 16px 0; overflow-x: auto; }
.modal__thumbs button { flex: none; width: 76px; height: 56px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; cursor: pointer; background: none; opacity: .6; }
.modal__thumbs button.is-active { border-color: var(--accent); opacity: 1; }
.modal__thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal__body { padding: 20px 24px 28px; }
.modal__body h3 { font-size: 1.4rem; margin: 10px 0 4px; }
.modal__meta { color: var(--muted); font-size: .92rem; }
.modal__body p:last-child { margin: 0; color: #36414d; }
.ph {
  display: grid; place-items: center; color: var(--muted); font-size: .85rem;
  background: repeating-linear-gradient(45deg, #eeeae3 0 10px, #f6f3ee 10px 20px);
}
.ph span { background: #fff; padding: .4em .8em; border-radius: 999px; border: 1px dashed #c9c2b6; }
.project__body { padding: 18px 20px 22px; }
.project__body h3 { margin: 10px 0 4px; }
.project__body p { color: var(--muted); font-size: .9rem; margin: 0; }
.badge { display: inline-block; font: 600 .72rem/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; padding: .5em .75em; border-radius: 999px; background: var(--tint); color: var(--muted); }
.badge--live { background: #FDEBDD; color: var(--accent-dark); }

/* Neden biz */
.why-text { columns: 2; column-gap: 48px; color: rgba(255,255,255,.72); margin-bottom: 56px; }
.why-text p { break-inside: avoid; }
.reasons__title { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 20px; }
.reasons { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); overflow: hidden; counter-reset: r; }
.reasons li { background: var(--ink); padding: 30px 28px; counter-increment: r; }
.reasons li::before { content: counter(r, decimal-leading-zero); font: 800 .85rem/1 var(--font-head); color: var(--accent); display: block; margin-bottom: 14px; }
.reasons p { color: rgba(255,255,255,.65); margin: 0; font-size: .95rem; }

/* İletişim */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.contact__info > p { color: var(--muted); }
.contact__list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 22px; }
.contact__list li { display: flex; gap: 16px; }
.contact__list svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-top: 3px; }
.contact__list strong { display: block; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.contact__list a { color: var(--text); text-decoration: none; font-weight: 500; }
.contact__list a:hover { color: var(--accent-dark); }

.form { background: var(--tint); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--ink); }
.form input, .form select, .form textarea {
  font: 400 1rem/1.4 var(--font-body); color: var(--text);
  padding: .8em .95em; border: 1px solid #d8d1c5; border-radius: 10px; background: #fff; width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.form textarea { resize: vertical; }
.form .btn { justify-self: start; }
.form__status { margin: 0; font-size: .92rem; min-height: 1.4em; }
.form__status.is-ok { color: #1c7a43; }
.form__status.is-err { color: #b3261e; }
.hp { position: absolute; left: -9999px; }

/* Footer */
.footer { background: #0A131C; color: rgba(255,255,255,.6); padding: 56px 0 40px; font-size: .92rem; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; }
.footer__note { margin: 16px 0 0; max-width: 36em; }
.footer__note a { text-decoration: none; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 12px 26px; align-content: start; justify-content: end; }
.footer__nav a { text-decoration: none; }
.footer__nav a:hover { color: #fff; }
.footer__copy { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px; margin: 8px 0 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer__admin { color: rgba(255,255,255,.35); text-decoration: none; font-size: .85rem; }
.footer__admin:hover { color: rgba(255,255,255,.8); }

/* Etik sayfası */
.page-hero { background: var(--ink); color: #fff; padding: 64px 0 56px; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
.doc { display: grid; grid-template-columns: 260px 1fr; gap: 64px; padding: 64px 0 96px; }
.doc__toc { position: sticky; top: 100px; align-self: start; font-size: .92rem; }
.doc__toc-title { font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; color: var(--muted); }
.doc__toc ol { padding-left: 1.2em; margin: 0; display: grid; gap: 8px; }
.doc__toc a { text-decoration: none; color: var(--text); }
.doc__toc a:hover { color: var(--accent-dark); }
.doc__body { max-width: 760px; }
.doc__body h2 { font-size: 1.7rem; margin-top: 2em; padding-top: .4em; border-top: 2px solid var(--ink); }
.doc__body h2:first-child { margin-top: 0; }
.doc__body h3 { margin-top: 1.8em; color: var(--accent-dark); }
.doc__body p, .doc__body li { color: #36414d; }
.doc__body ul { padding-left: 1.2em; display: grid; gap: .6em; margin: 0 0 1.2em; }
.doc__body li::marker { color: var(--accent); }
.doc__legal { margin-top: 3em; padding: 18px 20px; background: var(--tint); border-radius: 10px; font-size: .9rem; }
.nav--static { display: flex; }

/* Görünür olunca hafif giriş */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* Duyarlı yerleşim */
@media (max-width: 1024px) {
  .services, .projects { grid-template-columns: repeat(2, 1fr); }
  .reasons { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .hero__inner, .about, .contact, .doc { grid-template-columns: 1fr; }
  .hero__inner { gap: 16px; }
  .hero__facts { grid-template-columns: repeat(2, 1fr); }
  .hero__facts div:nth-child(3) { border-left: 0; padding-left: 0; }
  .hero__facts div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.12); }
  .why-text { columns: 1; }
  .doc__toc { position: static; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__nav { justify-content: start; }

  .nav-toggle { display: block; }
  .nav:not(.nav--static) {
    position: absolute; left: 0; right: 0; top: 72px; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); padding: 8px 16px 20px; border-bottom: 1px solid rgba(255,255,255,.1);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav:not(.nav--static) a:not(.btn) { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav:not(.nav--static) .btn { margin-top: 16px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .services, .projects, .reasons, .form__row { grid-template-columns: 1fr; }
  .topbar__inner > span:first-child { display: none; }
  .nav--static a:not(.btn) { display: none; }
}
