/* MKM Muammer Kağıtçıoğlu Makine — statik site stilleri */
:root {
  --navy: #13284a;
  --navy-2: #1d3b6b;
  --red: #c4161c;
  --red-dark: #9e1015;
  --ink: #1a2230;
  --muted: #5a6577;
  --line: #dfe4eb;
  --steel: #f1f3f6;
  --white: #fff;
  --radius: 6px;
  --shadow: 0 10px 30px -12px rgba(19, 40, 74, .25);
  --wrap: 1200px;
  --head: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --body: "Barlow", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-2); }
a:hover { color: var(--red); }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.15; margin: 0 0 .5em; color: var(--navy); letter-spacing: .01em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 10px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

/* Üst bilgi şeridi */
.topbar { background: var(--navy); color: #c9d3e3; font-size: 14px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: #ffb3b5; }
.topbar .contact-mini { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar .contact-mini span { display: inline-flex; align-items: center; gap: 6px; }
.lang { display: flex; gap: 2px; }
.lang a { padding: 3px 9px; border-radius: 3px; font-weight: 600; font-size: 13px; letter-spacing: .05em; }
.lang a[aria-current="true"] { background: var(--red); }

/* Başlık ve menü */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 86px; }
.brand img { width: 250px; height: auto; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav li { position: relative; }
.nav a, .nav button.sub-toggle {
  display: block; font-family: var(--head); font-weight: 600; font-size: 1.08rem; letter-spacing: .04em; text-transform: uppercase;
  color: var(--navy); text-decoration: none; padding: 12px 14px; background: none; border: 0; cursor: pointer;
}
.nav a:hover, .nav a[aria-current="page"], .nav li.active > a { color: var(--red); }
.nav .has-sub > a::after { content: ""; display: inline-block; margin-left: 6px; border: 4px solid transparent; border-top-color: currentColor; transform: translateY(2px); }
.nav .sub { list-style: none; margin: 0; padding: 8px 0; position: absolute; left: 0; top: 100%; min-width: 260px; background: #fff; border-top: 3px solid var(--red); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s ease; }
.nav .has-sub:hover .sub, .nav .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.nav .sub a { font-family: var(--body); text-transform: none; letter-spacing: 0; font-size: .98rem; font-weight: 500; padding: 9px 20px; }
.nav .sub a:hover { background: var(--steel); }
.nav button.sub-toggle { display: none; }
.menu-btn { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-btn span { display: block; width: 26px; height: 2px; background: var(--navy); margin: 6px 0; transition: .2s; }

/* Hero */
.hero { position: relative; color: #fff; background: var(--navy) center/cover no-repeat; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(13, 28, 54, .94) 0%, rgba(13, 28, 54, .78) 45%, rgba(13, 28, 54, .35) 100%); z-index: -1; }
.hero .wrap { padding-top: clamp(70px, 11vw, 140px); padding-bottom: clamp(70px, 11vw, 140px); }
.hero .eyebrow { color: #ff8d91; }
.hero h1 { color: #fff; max-width: 15ch; font-size: clamp(2.4rem, 5.6vw, 4.2rem); }
.hero p { max-width: 56ch; font-size: 1.12rem; color: #dbe3ef; }
.eyebrow { display: inline-block; font-family: var(--head); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; font-size: .95rem; color: var(--red); margin-bottom: 10px; }
.btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--head); font-weight: 600; font-size: 1.05rem; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; padding: 13px 26px; border-radius: var(--radius); border: 2px solid var(--red); background: var(--red); color: #fff; cursor: pointer; transition: .15s; }
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn.ghost { background: transparent; border-color: rgba(255, 255, 255, .7); }
.btn.ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn.outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn.outline:hover { background: var(--navy); color: #fff; }

/* Sayfa başlığı */
.page-head { background: var(--navy) center/cover no-repeat; position: relative; isolation: isolate; color: #fff; }
.page-head::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13, 28, 54, .95), rgba(13, 28, 54, .72)); z-index: -1; }
.page-head .wrap { padding-top: 54px; padding-bottom: 50px; }
.page-head h1 { color: #fff; margin: 0; }
.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 10px; font-size: .92rem; color: #b8c4d8; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.crumbs a { color: #fff; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; color: #fff; }

/* Bölümler */
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section.alt { background: var(--steel); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head p { color: var(--muted); }
.lead { font-size: 1.15rem; color: var(--muted); }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.split.top { align-items: start; }
.img-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); position: relative; }
.img-frame img { width: 100%; }
.img-frame::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34%; height: 6px; background: var(--red); }

/* Rakamlar */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 34px; }
.stat { background: #fff; padding: 24px 20px; }
.stat b { display: block; font-family: var(--head); font-size: 2.3rem; font-weight: 700; color: var(--red); line-height: 1; margin-bottom: 6px; }
.stat span { color: var(--muted); font-size: .95rem; line-height: 1.35; display: block; }

/* Hizmet kartları */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 0 var(--line), 0 4px 18px -10px rgba(19, 40, 74, .3); display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: inherit; }
.card .ph { aspect-ratio: 4/3; overflow: hidden; background: var(--steel); }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .ph img { transform: scale(1.05); }
.card .body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .97rem; flex: 1; }
.more { font-family: var(--head); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--red); font-size: .98rem; }
.more::after { content: " →"; }

/* Katalog */
.catalog { display: grid; grid-template-columns: 1fr auto auto; gap: 26px; align-items: center; background: var(--navy); color: #dbe3ef; border-radius: var(--radius); padding: clamp(26px, 4vw, 48px); }
.catalog h2 { color: #fff; }
.catalog a.cat { display: block; width: 150px; border-radius: 4px; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); transition: transform .2s; }
.catalog a.cat:hover { transform: translateY(-4px) rotate(-1deg); }

/* Galeri */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.gallery a { display: block; border-radius: 4px; overflow: hidden; aspect-ratio: 4/3; background: var(--steel); position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s, opacity .2s; }
.gallery a:hover img { transform: scale(1.06); opacity: .92; }
.gallery a::after { content: "+"; position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%; background: var(--red); color: #fff; font-size: 24px; line-height: 32px; text-align: center; opacity: 0; transform: scale(.7); transition: .2s; }
.gallery a:hover::after { opacity: 1; transform: none; }

/* İçerik tipografisi */
.prose { max-width: 760px; }
.prose p { font-size: 1.08rem; }
.check { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 8px; }
.check li { position: relative; padding-left: 28px; }
.check li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 8px; border-left: 3px solid var(--red); border-bottom: 3px solid var(--red); transform: rotate(-45deg); }
.check.cols { grid-template-columns: repeat(2, 1fr); column-gap: 24px; }
.spec { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; }
.spec th, .spec td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { width: 42%; font-weight: 600; color: var(--navy); background: var(--steel); }
.highlight { border-left: 4px solid var(--red); padding: 14px 20px; background: var(--steel); border-radius: 0 var(--radius) var(--radius) 0; margin: 0 0 1.4em; }
.highlight strong { font-family: var(--head); font-size: 1.3rem; color: var(--navy); letter-spacing: .02em; }
.note { font-size: .95rem; color: var(--muted); }

/* Hizmet alt menüsü */
.side-layout { display: grid; grid-template-columns: 280px 1fr; gap: clamp(30px, 4vw, 60px); align-items: start; }
.side-nav { position: sticky; top: 110px; background: var(--steel); border-radius: var(--radius); padding: 10px; }
.side-nav h2 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: .08em; padding: 10px 14px 6px; margin: 0; color: var(--muted); }
.side-nav ul { list-style: none; margin: 0; padding: 0; }
.side-nav a { display: block; padding: 11px 14px; text-decoration: none; color: var(--navy); font-weight: 600; border-radius: 4px; border-left: 3px solid transparent; }
.side-nav a:hover { background: #fff; color: var(--red); }
.side-nav a[aria-current="page"] { background: #fff; color: var(--red); border-left-color: var(--red); }
.side-nav .cta { margin-top: 10px; padding: 18px 14px; background: var(--navy); border-radius: 4px; color: #dbe3ef; font-size: .95rem; }
.side-nav .cta a { color: #fff; padding: 0; display: inline; font-weight: 700; }

/* Delikli sac desenleri */
.patterns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.patterns figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.patterns img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.patterns figcaption { padding: 10px 12px; font-weight: 600; font-size: .95rem; color: var(--navy); text-align: center; }

/* Makina tabloları */
.mtable-wrap { margin-bottom: 44px; }
.mtable-wrap h2 { display: flex; align-items: center; gap: 12px; font-size: 1.5rem; }
.mtable-wrap h2 .tag { font-size: .95rem; background: var(--red); color: #fff; padding: 2px 10px; border-radius: 3px; letter-spacing: .06em; }
.mtable { width: 100%; border-collapse: collapse; font-size: .97rem; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.mtable thead th { background: var(--navy); color: #fff; font-family: var(--head); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; text-align: left; padding: 12px 16px; font-size: 1rem; }
.mtable td, .mtable tbody th { padding: 12px 16px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.mtable tbody th { font-family: var(--head); font-weight: 700; color: var(--red); white-space: nowrap; width: 90px; font-size: 1.05rem; }
.mtable tbody tr:nth-child(even) { background: #f8f9fb; }
.mtable td:nth-child(2) { font-weight: 600; color: var(--navy); width: 36%; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.jump a { text-decoration: none; padding: 7px 14px; border: 1px solid var(--line); border-radius: 30px; font-size: .93rem; font-weight: 600; color: var(--navy); background: #fff; }
.jump a:hover { border-color: var(--red); color: var(--red); }

/* Organizasyon şeması */
.org { --c: var(--navy-2); font-family: var(--head); }
.org ul { list-style: none; margin: 0; padding: 0; }
.org .node { display: inline-block; background: linear-gradient(180deg, #2c5aa0, var(--navy-2)); color: #fff; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; padding: 11px 20px; border-radius: 8px; font-size: 1.02rem; box-shadow: 0 4px 12px -6px rgba(19, 40, 74, .6); }
.org .root > .node { background: linear-gradient(180deg, #d8262c, var(--red-dark)); font-size: 1.2rem; padding: 14px 28px; }
.org li { position: relative; }
.org li ul { margin-left: 28px; padding-top: 14px; }
.org li ul > li { padding-left: 32px; padding-bottom: 14px; }
.org li ul > li::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; border-left: 2px solid #9db2d3; }
.org li ul > li:last-child::before { height: 34px; bottom: auto; }
.org li ul > li::after { content: ""; position: absolute; left: 0; top: 34px; width: 30px; border-top: 2px solid #9db2d3; }
.org li ul > li > .node { margin-top: 12px; }

/* İletişim */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(30px, 5vw, 60px); align-items: start; }
.info-list { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 18px; }
.info-list li { display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: start; }
.info-list .ic { width: 46px; height: 46px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; }
.info-list .ic svg { width: 20px; height: 20px; }
.info-list b { display: block; font-family: var(--head); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-size: .9rem; font-weight: 600; }
.info-list a { text-decoration: none; color: var(--ink); font-weight: 600; }
.info-list a:hover { color: var(--red); }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16/10; background: var(--steel); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
/* Çağrı bandı */
.cta-band { background: var(--red); color: #fff; }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 38px; padding-bottom: 38px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.cta-band p { margin: 4px 0 0; color: #ffdcdd; }
.cta-band .btn { background: #fff; color: var(--red); border-color: #fff; }
.cta-band .btn:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Alt bilgi */
.site-footer { background: #0d1c36; color: #a9b6cb; font-size: .97rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding-top: 60px; padding-bottom: 44px; }
.site-footer h3 { color: #fff; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #d7deea; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .f-logo { background: #fff; display: inline-block; padding: 10px 14px; border-radius: 4px; margin-bottom: 16px; }
.site-footer .f-logo img { width: 200px; }
.site-footer .bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.site-footer .bottom .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; font-size: .88rem; }
.site-footer .bottom a { color: #8e9bb2; }

/* Lightbox */
.lb { position: fixed; inset: 0; background: rgba(8, 15, 28, .94); display: none; align-items: center; justify-content: center; z-index: 200; padding: 60px 70px; }
.lb.open { display: flex; }
.lb figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lb img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lb figcaption { color: #cfd8e6; margin-top: 12px; font-size: .95rem; }
.lb button { position: absolute; background: rgba(255, 255, 255, .1); color: #fff; border: 0; width: 50px; height: 50px; border-radius: 50%; font-size: 26px; cursor: pointer; display: grid; place-items: center; }
.lb button:hover { background: var(--red); }
.lb .x { top: 16px; right: 16px; }
.lb .prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb .next { right: 14px; top: 50%; transform: translateY(-50%); }

/* 404 */
.nf { text-align: center; padding: 120px 0; }
.nf b { font-family: var(--head); font-size: 7rem; color: var(--red); line-height: 1; display: block; }

/* Duyarlı */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .nav a, .nav button.sub-toggle { padding: 12px 10px; font-size: 1rem; }
  .brand img { width: 210px; }
}
@media (max-width: 920px) {
  .menu-btn { display: block; }
  .nav { position: fixed; inset: var(--nav-top, 127px) 0 0 0; background: #fff; transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; border-top: 1px solid var(--line); }
  .nav.open { transform: none; }
  .nav > ul { flex-direction: column; gap: 0; padding: 10px 0 40px; }
  .nav > ul > li { border-bottom: 1px solid var(--line); }
  .nav a { padding: 15px 22px; font-size: 1.15rem; }
  .nav .has-sub > a::after { display: none; }
  .nav button.sub-toggle { display: block; position: absolute; right: 8px; top: 4px; width: 48px; height: 48px; padding: 0; font-size: 22px; }
  .nav .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; display: none; padding: 0 0 10px; background: var(--steel); }
  .nav .has-sub.open .sub { display: block; }
  .nav .sub a { padding: 12px 34px; }
  body.nav-open { overflow: hidden; }
  body.nav-open .menu-btn span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  body.nav-open .menu-btn span:nth-child(2) { opacity: 0; }
  body.nav-open .menu-btn span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .split, .contact-grid, .side-layout { grid-template-columns: 1fr; }
  .side-nav { position: static; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .catalog { grid-template-columns: 1fr 1fr; }
  .catalog > div:first-child { grid-column: 1 / -1; }
  .catalog a.cat { width: 100%; max-width: 200px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar .contact-mini span.addr, .topbar .contact-mini span.mail { display: none; }
  .site-header .wrap { min-height: 72px; }
  .brand img { width: 180px; }

  .cards { grid-template-columns: 1fr; }
  .patterns { grid-template-columns: repeat(2, 1fr); }
  .check.cols { grid-template-columns: 1fr; }
  .stat b { font-size: 1.7rem; }
  .org li ul { margin-left: 10px; }
  .org li ul > li { padding-left: 20px; }
  .org li ul > li::after { width: 18px; }
  .org .node { font-size: .9rem; padding: 9px 12px; white-space: normal; }
  .org .root > .node { font-size: 1.05rem; padding: 12px 18px; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .lb { padding: 50px 10px; }
  .lb .prev, .lb .next { top: auto; bottom: 14px; transform: none; }
  /* Makina tabloları mobilde kart görünümü */
  .mtable thead { display: none; }
  .mtable, .mtable tbody, .mtable tr, .mtable td, .mtable tbody th { display: block; width: 100%; }
  .mtable tr { border-top: 1px solid var(--line); padding: 10px 4px; }
  .mtable td, .mtable tbody th { border: 0; padding: 2px 12px; }
  .mtable td:nth-child(2) { width: 100%; }
  .mtable td:empty { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .topbar, .site-header, .cta-band, .site-footer, .side-nav { display: none; } }
