/* Happy! Game Company — tek stil dosyası.
   Bu dosya KAYNAKTIR; derleme onu site/assets/css/style.css'e kopyalar.

   Tipografi ölçeği ve yerleşim, eski Squarespace sitesinden tarayıcıda
   ölçülerek alındı: masaüstünde başlıklar calc(16px + Xvw), 768px altında
   sabit. Başlık fontu futura-pt yerine Jost (OFL). */

/* ---------- tokenlar ---------- */
:root {
  --bg: #000;
  --fg: #fff;
  --muted: rgba(255, 255, 255, 0.62);
  --rule: rgba(255, 255, 255, 0.18);

  --font-head: 'Jost', 'Futura', 'Century Gothic', sans-serif;
  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* eski sitedeki üç başlık kademesi */
  --step-xl: 33.28px;
  --step-lg: 27.52px;
  --step-sm: 21.76px;

  --pad: 6vw;          /* Squarespace "pagePadding" tweak'i */
  --measure: 66%;      /* içerik sütunu: 12 kolonun 8'i */
  --measure-max: 1250px;
}

@media (min-width: 768px) {
  :root {
    --step-xl: calc(16px + 2.16vw);
    --step-lg: calc(16px + 1.44vw);
    --step-sm: calc(16px + 0.72vw);
  }
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* E-posta adresi gibi bölünecek yeri olmayan uzun diziler dar ekranda
     yatay taşmaya yol açıyordu. break-word yalnızca sığmayan kelimeyi
     böler, normal metin akışına dokunmaz. */
  overflow-wrap: break-word;
}

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

a { color: inherit; }

:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--fg);
  color: var(--bg);
  padding: 12px 20px;
  z-index: 100;
}
.skip:focus { left: 8px; top: 8px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

/* ---------- tipografi ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 500;
  margin: 0;
}

.t-xl { font-size: var(--step-xl); line-height: 1.3; }
.t-lg { font-size: var(--step-lg); line-height: 1.33; }
.t-sm { font-size: var(--step-sm); line-height: 1.37; }

.lede {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: var(--step-lg);
  line-height: 1.33;
  margin: 0;
}

/* ---------- yerleşim ---------- */
.wrap {
  width: var(--measure);
  max-width: var(--measure-max);
  margin-inline: auto;
}

.wrap-wide {
  width: 100%;
  padding-inline: var(--pad);
}

/* Form sütunu, eski sitedeki gibi daha dar */
.wrap-narrow {
  width: 100%;
  max-width: 668px;
  margin-inline: auto;
}

@media (max-width: 767px) {
  .wrap { width: 100%; padding-inline: var(--pad); }
}
@media (max-width: 767px) {
  .wrap-narrow { padding-inline: var(--pad); }
}

.section { padding-block: clamp(64px, 9vw, 140px); }
.section--tight { padding-block: clamp(48px, 6vw, 90px); }

.center { text-align: center; }

/* ---------- üst bar ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 2vw var(--pad);
  transition: transform .3s ease, background-color .3s ease;
}

/* "Scroll Back": aşağı kaydırırken gizlenir, yukarı kaydırınca geri gelir */
.site-header[data-hidden='true'] { transform: translateY(-100%); }
.site-header[data-solid='true'] { background: rgba(0, 0, 0, .92); }

.site-header__logo img { height: 50px; width: auto; }

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  opacity: .85;
  transition: opacity .2s ease;
}
.site-nav a:hover,
.site-nav a[aria-current='page'] { opacity: 1; }
.site-nav a[aria-current='page'] { text-decoration: underline; text-underline-offset: 6px; }

.site-nav__social { display: flex; gap: 16px; align-items: center; }
.site-nav__social a { opacity: .8; }
.site-nav__social svg { width: 18px; height: 18px; fill: currentColor; display: block; }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  padding: 10px 0;
  width: 34px;
  height: 34px;
  position: relative;
  z-index: 60;
}

/* İki çizgili hamburger; açıkken çarpıya döner */
.nav-toggle__bars,
.nav-toggle__bars::before {
  content: '';
  position: absolute;
  left: 0;
  width: 34px;
  height: 2px;
  background: currentColor;
  transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle__bars { top: 14px; }
.nav-toggle__bars::before { top: 8px; }

.nav-toggle[data-open='true'] .nav-toggle__bars { transform: translateY(4px) rotate(45deg); }
.nav-toggle[data-open='true'] .nav-toggle__bars::before { transform: translateY(-8px) rotate(-90deg); }

@media (max-width: 900px) {
  .site-header { padding: 6vw var(--pad); }
  .site-header__logo img { height: 30px; }
  .nav-toggle { display: block; }

  .site-nav {
    position: fixed;
    inset: 0;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    margin: 0;
    transform: translateY(-100%);
    transition: transform .35s ease;
  }
  .site-nav[data-open='true'] { transform: translateY(0); }
  .site-nav a { font-size: var(--step-sm); }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 480px;
}
.hero img { width: 100%; height: 100%; object-fit: cover; }

/* Dar ekranda görsel 16:9 olduğu için "cover" logoyu iki yandan kırpıyordu.
   "contain" tamamını gösteriyor; görselin kendi zemini de siyah olduğundan
   kalan boşluk sayfayla birleşiyor, letterbox görünmüyor. */
@media (max-width: 767px) {
  .hero {
    height: auto;
    min-height: 0;
    padding-block: 22vh;
  }
  .hero img {
    height: auto;
    object-fit: contain;
  }
}

/* ---------- oyunlar ---------- */
.stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(28px, 7vw, 102px);
  margin-top: clamp(32px, 5vw, 72px);
}
.store {
  display: block;
  width: clamp(140px, 15vw, 218px);
  flex: 0 0 auto;
  text-decoration: none;
  transition: transform .25s ease, opacity .25s ease;
}
.store:hover { transform: translateY(-6px); }
.store img { border-radius: 22%; }
.store span {
  display: block;
  margin-top: 14px;
  text-align: center;
  font-size: 15px;
  color: var(--muted);
}

/* ---------- ekip ---------- */
/* 6 kişi için 3+3 dengeli duruyor. Kart genişliğine tavan var: portrelerin
   kaynağı 270x320 ve kolonlar serbest bırakılınca 415px'e çıkıp fotoğrafları
   gözle görülür şekilde bulanıklaştırıyordu. */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 340px));
  justify-content: center;
  gap: 11px 11px;
  margin-top: clamp(40px, 6vw, 90px);
}
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .team-grid { grid-template-columns: 1fr; } }

.member figure { margin: 0; }
.member__photo {
  aspect-ratio: 270 / 320;
  width: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter .35s ease;
}
.member:hover .member__photo { filter: grayscale(0); }

/* fotoğrafı olmayan üye için baş harfler */
.member__initials {
  aspect-ratio: 270 / 320;
  display: grid;
  place-items: center;
  background: #111;
  border: 1px solid var(--rule);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(36px, 4vw, 64px);
  color: var(--muted);
}

.member figcaption { padding-top: 18px; }
.member__name { font-size: var(--step-sm); line-height: 1.37; }
.member__role {
  margin: 4px 0 0;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- iletişim: adres + harita ---------- */
/* İki ofis yan yana; her biri kendi adresi, yol tarifi ve haritasıyla. */
.visit {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
  text-align: left;
}
@media (max-width: 900px) { .visit { grid-template-columns: 1fr; } }

.office address { font-style: normal; margin-top: 16px; }
.office__directions { margin: 12px 0 22px; }
.office a { text-underline-offset: 4px; }

/* Haritayı yalnızca kullanıcı isteyince yükleriz: GDPR/KVKK açısından
   üçüncü taraf içerik onaysız yüklenmemeli. */
.map {
  position: relative;
  aspect-ratio: 4 / 3;
  width: 100%;
  border: 1px solid var(--rule);
  background: #0b0b0b;
  overflow: hidden;
}
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map__consent {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.map__consent strong { font-family: var(--font-head); font-size: var(--step-sm); font-weight: 500; }
.map__consent span { font-size: 14px; color: var(--muted); max-width: 42ch; }

/* ---------- iletişim formu ---------- */
.form {
  display: grid;
  gap: 18px;
  margin-top: clamp(28px, 4vw, 48px);
  text-align: left;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }

.field { display: grid; gap: 8px; }
.field > span { font-size: 14px; color: var(--muted); }
.field input, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--rule);
  background: #0b0b0b;
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--fg); outline: none; }

.form button {
  justify-self: start;
  height: 56px;
  min-width: 160px;
  padding: 0 30px;
  border: 0;
  background: var(--fg);
  color: #000;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  transition: opacity .2s ease;
}
.form button:hover { opacity: .82; }
.form button[disabled] { opacity: .55; cursor: default; }

/* Bal küpü: kullanıcıya ve ekran okuyucuya görünmez, botlar doldurur. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--rule);
  font-size: 15px;
  line-height: 1.6;
}
.form-status[data-error] { border-color: #b4443a; color: #ff9d93; }

/* ---------- bülten formu ---------- */
.signup {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(28px, 4vw, 48px);
}
.signup input[type='email'] {
  width: 280px;
  height: 66px;
  padding: 0 18px;
  border: 0;
  background: var(--fg);
  color: #000;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
}
.signup button {
  height: 64px;
  min-width: 127px;
  padding: 0 26px;
  border: 0;
  background: var(--fg);
  color: #000;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  transition: opacity .2s ease;
}
.signup button:hover { opacity: .82; }

.form-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- alt bilgi ---------- */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: clamp(56px, 7vw, 110px) var(--pad) 48px;
}
.footer-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
}
@media (max-width: 767px) { .footer-cols { grid-template-columns: 1fr; } }

.site-footer h2 {
  font-size: var(--step-sm);
  line-height: 1.37;
  margin-bottom: 18px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { text-decoration: none; opacity: .78; transition: opacity .2s ease; }
.site-footer a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.site-footer address { font-style: normal; opacity: .78; }

.footer-offices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 28px;
}
@media (max-width: 1100px) { .footer-offices { grid-template-columns: 1fr; } }

.footer-office h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 6px;
  opacity: .95;
}
.footer-office address { font-size: 15px; line-height: 1.65; }

.footer-email { margin: 20px 0 0; opacity: .78; }

.footer-social { display: flex; gap: 18px; margin-top: 20px; }
.footer-social svg { width: 20px; height: 20px; fill: currentColor; display: block; }

.footer-bottom {
  margin-top: clamp(40px, 5vw, 72px);
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-size: 14px;
  color: var(--muted);
}

/* ---------- uzun metin sayfaları (privacy / terms) ---------- */
.prose { max-width: 78ch; }
.prose h2 {
  font-size: var(--step-sm);
  line-height: 1.37;
  margin: 2.2em 0 .6em;
}
.prose h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.6;
  margin: 1.8em 0 .4em;
}
.prose p, .prose li { font-size: 16px; line-height: 1.8; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .5em; }
.prose a { text-underline-offset: 4px; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4em 0;
  font-size: 15px;
}
.prose th, .prose td {
  border: 1px solid var(--rule);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.prose th { font-weight: 600; }

.doc-meta {
  color: var(--muted);
  font-size: 15px;
  margin-top: 10px;
}

.callout {
  border: 1px solid var(--rule);
  padding: 20px 22px;
  margin: 2em 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
}

/* ---------- 404 ---------- */
.notfound {
  min-height: 70svh;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 20px;
}
