/* Muya İnşaat — site stilleri (harici font/kütüphane yok; CSP: style-src 'self') */
:root {
  --brand: #5b6f9f;
  --brand-dark: #3f4f78;
  --brand-soft: #eef1f8;
  --ink: #1d2433;
  --muted: #5d6677;
  --line: #dfe3ec;
  --bg: #ffffff;
  --radius: 10px;
  --wrap: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-dark); }
a:hover { color: var(--brand); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h2 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.brand { display: block; line-height: 0; }
/* Eski banner görselinin yalnızca logo kısmı gösterilir (800x120 içinden sol 360px) */
.brand-crop { display: block; width: 216px; aspect-ratio: 360 / 120; overflow: hidden; }
.brand-crop img { width: 480px; max-width: none; height: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.main-nav a { display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem; }
.main-nav a:hover { background: var(--brand-soft); color: var(--brand-dark); }
.main-nav a[aria-current="page"] { background: var(--brand); color: #fff; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--brand-soft), #fff); padding: 48px 0; }
.hero-inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; color: var(--brand); font-weight: 700; margin-bottom: .6em; }
.hero-text p { color: var(--muted); font-size: 1.08rem; }
.hero-media img { border-radius: var(--radius); box-shadow: 0 20px 50px rgba(29, 36, 51, .15); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }

.btn { display: inline-block; padding: 11px 22px; border-radius: 999px; background: var(--brand); color: #fff; text-decoration: none; font-weight: 600; border: 2px solid var(--brand); }
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--brand-dark); }
.btn-ghost:hover { background: var(--brand-soft); color: var(--brand-dark); }

/* Sections */
.section { padding: 40px 0 56px; }
.section-title { margin-top: 1.4em; }
.page-head { background: var(--brand-soft); padding: 32px 0 20px; border-bottom: 1px solid var(--line); }
.page-head h1 { margin-bottom: .4em; }
.crumb { margin: 0 0 .3em; font-size: .9rem; }
.crumb a::after { content: " ›"; color: var(--muted); }
.sub-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.sub-nav a { display: block; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink); font-size: .92rem; }
.sub-nav a[aria-current="page"] { border-color: var(--brand); color: var(--brand-dark); font-weight: 600; }

.wide-img { width: 100%; border-radius: var(--radius); margin-bottom: 32px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 8px; }
.card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); background: #fff; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 14px 36px rgba(29, 36, 51, .12); transform: translateY(-2px); color: var(--ink); }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-body { display: block; padding: 16px 18px 20px; }
.card-title { display: block; font-weight: 700; font-size: 1.15rem; margin-bottom: 4px; color: var(--brand-dark); }
.card-text { display: block; color: var(--muted); font-size: .96rem; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.project-block img { width: 100%; aspect-ratio: 400 / 359; object-fit: cover; border-radius: var(--radius); margin-bottom: 16px; }
.prose { max-width: 900px; }
.lead { font-size: 1.15rem; }

/* Facts */
.facts { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 28px; }
.facts p { margin-bottom: .6em; }
.fact-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; flex-wrap: wrap; }
.fact-k { font-weight: 700; color: var(--brand-dark); margin-right: 8px; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.g-item { margin: 0; }
.g-item a { display: block; border-radius: 8px; overflow: hidden; background: var(--brand-soft); }
.g-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s; }
.g-item.plan img { object-fit: contain; background: #fff; padding: 6px; }
.g-item a:hover img { transform: scale(1.04); }
.g-item figcaption { font-size: .9rem; color: var(--muted); text-align: center; padding-top: 6px; }
.back { margin-top: 28px; }

/* Lightbox (gallery.js) */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; }
.lightbox::backdrop { background: rgba(10, 14, 22, .9); }
.lb-stage { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 56px 64px; }
.lb-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 4px; }
.lb-caption { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #e8ebf2; font-size: .95rem; }
.lb-btn { position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; width: 46px; height: 46px; border-radius: 50%; font-size: 24px; line-height: 1; cursor: pointer; }
.lb-btn:hover { background: rgba(255, 255, 255, .25); }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.contact-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.contact-card address { font-style: normal; margin-bottom: 12px; }
.contact-card dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0 0 14px; }
.contact-card dt { color: var(--muted); }
.contact-card dd { margin: 0; }
.big-link { font-size: 1.15rem; font-weight: 600; }

/* Footer */
.site-footer { background: #1f2738; color: #c9cfdc; padding: 32px 0 20px; font-size: .95rem; }
.site-footer a { color: #fff; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-inner strong { color: #fff; }
.footer-contact { display: flex; flex-direction: column; gap: 4px; }
.copyright { margin-top: 20px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .85rem; color: #8f98ab; }

@media (max-width: 820px) {
  body { font-size: 16px; }
  .hero { padding: 28px 0; }
  .hero-inner, .two-col { grid-template-columns: 1fr; gap: 24px; }
  .hero-media { order: -1; }
  .header-inner { justify-content: center; }
  .main-nav ul { justify-content: center; }
  .main-nav ul { gap: 2px; }
  .main-nav a { padding: 6px 9px; font-size: .88rem; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .lb-stage { padding: 56px 8px 48px; }
  .site-header { position: static; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
@media print {
  .site-header, .site-footer, .sub-nav { display: none; }
}
