/* Müzakere Derneği — muzakere.org.tr
   Matches the original site: neutral palette, Montserrat throughout, a
   full-bleed hero photo with an outlined title box, then a plain document. */

:root {
  --ink: #212121;
  --ink-soft: #3c3c3c;
  --muted: #757575;
  --line: #e0e0e0;
  --white: #fff;

  --wrap: 1140px;
  --header-h: 64px;

  --font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
}

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3, h4 { font-family: var(--font); margin: 0; font-weight: 700; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- Skip link ---------- */

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--white);
  padding: 12px 20px; z-index: 999;
}
.skip:focus { left: 0; }

/* ---------- Header (transparent, over the hero) ---------- */

.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 50;
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; text-decoration: none; }
.brand img { width: 36px; height: 36px; object-fit: cover; }
.brand span {
  font-weight: 700; font-size: 1.25rem; color: var(--white);
  letter-spacing: -.01em; white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: 2px; flex-wrap: nowrap; }

.nav a {
  font-size: .82rem; font-weight: 400;
  color: rgba(255, 255, 255, .92);
  padding: 8px 10px; text-decoration: none;
  white-space: nowrap;
}
.nav a:hover { text-decoration: underline; }
.nav a[aria-current="page"] { font-weight: 700; color: var(--white); }

.nav .nav-lang { margin-left: 4px; }

.nav-toggle {
  display: none;
  background: none; border: 1px solid rgba(255, 255, 255, .6); border-radius: 4px;
  padding: 8px 10px; cursor: pointer; color: var(--white);
}
.nav-toggle svg { display: block; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 540px;
  display: flex; align-items: center; justify-content: center;
  padding: calc(var(--header-h) + 40px) 24px 40px;
  background: #444 url('../img/hero.jpg') center / cover no-repeat;
  text-align: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(0, 0, 0, .3);
}

/* Sized to its text, like the original — a long tagline widens the box on the
   home page while a short page title keeps it narrow. */
.hero-box {
  position: relative;
  border: 3px solid var(--white);
  border-radius: 18px;
  padding: 44px 56px;
  width: fit-content;
  max-width: min(100%, 1100px);
}

.hero-box h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.15;
  letter-spacing: -.01em;
}

.hero-box .tagline {
  color: var(--white);
  font-size: clamp(1.15rem, 2.4vw, 1.75rem);
  font-weight: 400;
  line-height: 1.3;
  margin: .35em 0 0;
}

/* ---------- Content ---------- */

.content { padding: 34px 0 90px; }

.content h2,
.content h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin: 1.9em 0 .9em;
}
.content > :first-child { margin-top: 0; }

.content p { margin: 0 0 1.15em; color: var(--ink-soft); }

.content ul { list-style: none; padding: 0; margin: 0 0 1.3em; }
.content li {
  position: relative; padding-left: 22px; margin-bottom: .5em;
  color: var(--ink-soft);
}
.content li::before {
  content: ""; position: absolute; left: 4px; top: .68em;
  width: 6px; height: 6px; background: var(--ink);
}

/* A service entry: bulleted bold name, then its paragraph */
.svc-name {
  position: relative; padding-left: 22px;
  font-weight: 700; color: var(--ink);
  margin: 1.5em 0 .8em;
}
.svc-name::before {
  content: ""; position: absolute; left: 4px; top: .62em;
  width: 6px; height: 6px; background: var(--ink);
}

/* ---------- Home ---------- */

.intro { text-align: center; padding: 46px 0 10px; }
.intro h2 { font-size: 1.4rem; margin-bottom: .7em; }
.intro p { max-width: 720px; margin: 0 auto; color: var(--ink-soft); }

.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 46px 0 90px;
}

.tile { text-decoration: none; display: block; }
/* height:auto is required — the width/height attributes would otherwise pin
   the rendered height and defeat aspect-ratio. */
.tile img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.tile span {
  display: block; text-align: center; margin-top: 14px;
  font-size: .95rem; color: var(--ink); text-decoration: underline;
}
.tile:hover span { text-decoration: none; }

/* ---------- Contact ---------- */

.contact {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 44px;
  align-items: start;
  padding: 46px 0 90px;
}
.contact-map {
  width: 100%; aspect-ratio: 1 / 1;
  border: 0;
}
.contact-details h2 { font-size: 1.4rem; margin: 0 0 1em; }
.contact-details p { margin: 0 0 1em; color: var(--ink-soft); }
.contact-details strong { color: var(--ink); }
.contact-details a { color: var(--ink-soft); }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 26px 0;
  text-align: center;
}
.site-footer p { margin: 0; font-size: .82rem; color: var(--muted); }

/* ---------- 404 ---------- */

.error-page { text-align: center; padding: 120px 0; }
.error-page .code { font-size: 3.6rem; font-weight: 700; color: var(--line); line-height: 1; }
.error-page h1 { font-size: 1.5rem; margin: .3em 0 .6em; }
.error-page p { color: var(--ink-soft); }
.error-page a { color: var(--ink); }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .nav-toggle { display: block; }

  .nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(0, 0, 0, .88);
    padding: 8px 24px 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 4px; font-size: .95rem; }
  .nav .nav-lang {
    margin: 6px 0 0;
    border-top: 1px solid rgba(255, 255, 255, .25);
  }

  .header-inner { position: relative; }
}

@media (max-width: 900px) {
  .tiles { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .contact { grid-template-columns: 1fr; gap: 32px; }
  .contact-map { max-width: 460px; }
}

@media (max-width: 560px) {
  .hero { min-height: 420px; }
  .hero-box { padding: 30px 24px; border-radius: 14px; }
  .brand span { font-size: 1.05rem; }
  .tiles { grid-template-columns: 1fr; max-width: 340px; margin: 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
