/* Satranç Hamlesi — notasyon defteri */
:root {
  --bois: #f1e6c9;
  --bois-2: #e4d3a8;
  --ebony: #1a1612;
  --ebony-2: #2a241d;
  --tea: #8a3a19;
  --tea-bright: #b4562b;
  --amber: #e0a45a;
  --steel: #22333d;
  --ink-soft: #4a4137;
  --focus: #8a3a19;
  --f-head: "Bahnschrift", "DIN Alternate", "Avenir Next Condensed", "Franklin Gothic Medium", "Arial Narrow", sans-serif;
  --f-body: "Charis SIL", "Book Antiqua", "Palatino Linotype", Georgia, serif;
  --f-mono: "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--bois);
  color: var(--ebony);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.dark, .steel, .site-footer { --focus: var(--amber); }

.wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; position: relative; }

h1, h2, h3 { font-family: var(--f-head); font-weight: 700; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 7.4vw, 5.4rem); line-height: .96; letter-spacing: -.015em; }
h2 { font-size: clamp(1.9rem, 4.4vw, 3.4rem); line-height: 1.04; letter-spacing: -.01em; }
h3 { font-size: 1.35rem; line-height: 1.15; }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; line-height: 1.55; }

.move {
  font-family: var(--f-mono);
  font-size: .82rem;
  letter-spacing: .08em;
  color: var(--tea);
  margin: 0 0 1rem;
}
.dark .move, .steel .move { color: var(--amber); }

section { padding: clamp(4rem, 9vw, 8rem) 0; position: relative; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bois);
  border-bottom: 2px solid var(--ebony);
}
.bar {
  width: min(1180px, 100% - 2.5rem);
  margin-inline: auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .5rem 1.5rem;
  padding: .7rem 0;
}
.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--f-head); font-weight: 700; font-size: 1.25rem;
  text-decoration: none; letter-spacing: .01em;
}
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.4rem; font-family: var(--f-head); font-size: 1rem; }
.site-nav a { text-decoration: none; padding: .4rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--tea); }
.site-nav .cta {
  background: var(--ebony); color: var(--bois);
  padding: .5rem 1.1rem; border-bottom: 0;
}
.site-nav .cta:hover { background: var(--tea); }
.nav-toggle {
  display: none;
  font-family: var(--f-head); font-size: 1rem; font-weight: 700;
  background: transparent; color: var(--ebony);
  border: 2px solid var(--ebony); padding: .4rem .9rem; cursor: pointer;
}

@media (max-width: 859px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav { display: none; flex-direction: column; align-items: stretch; width: 100%; gap: 0; padding-bottom: .6rem; }
  .js .site-nav.open { display: flex; }
  .js .site-nav a { padding: .8rem 0; border-bottom: 1px solid rgba(26,22,18,.25); }
  .js .site-nav .cta { margin-top: .6rem; text-align: center; border: 0; }
}

/* ---------- Hero ---------- */
.hero {
  --sq: 56px;
  padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem);
  overflow: hidden;
  background:
    repeating-conic-gradient(rgba(26,22,18,.08) 0 25%, transparent 0 50%) 0 0 / calc(var(--sq) * 2) calc(var(--sq) * 2),
    var(--bois);
}
.board-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero-grid { z-index: 1; display: grid; gap: 1.5rem; }
.hero-panel {
  background: var(--bois);
  border: 2px solid var(--ebony);
  padding: clamp(1.4rem, 3.5vw, 2.8rem);
  position: relative; z-index: 2;
}
.hero-panel .lead { margin-top: 1.4rem; max-width: 40em; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 1.4rem; }
.btn {
  display: inline-block; font-family: var(--f-head); font-weight: 700; font-size: 1.05rem;
  padding: .8rem 1.4rem; text-decoration: none; border: 2px solid var(--ebony);
}
.btn-solid { background: var(--ebony); color: var(--bois); }
.btn-solid:hover { background: var(--tea); border-color: var(--tea); }
.btn-line { background: transparent; color: var(--ebony); }
.btn-line:hover { background: var(--ebony); color: var(--bois); }
.hint { font-family: var(--f-mono); font-size: .8rem; line-height: 1.55; color: var(--ink-soft); margin: 0; max-width: 46em; }
.hero-photo { margin: 0; position: relative; z-index: 1; }
.hero-photo img { width: 100%; border: 2px solid var(--ebony); box-shadow: 8px 8px 0 var(--ebony); }
.files {
  display: flex; justify-content: space-around; margin-top: 1rem;
  font-family: var(--f-mono); font-size: .75rem; color: var(--ink-soft);
}
.files i { font-style: normal; }

@media (min-width: 900px) {
  .hero { --sq: 80px; }
  .hero-grid { grid-template-columns: repeat(12, 1fr); gap: 0 1.5rem; }
  .hero-panel { grid-column: 1 / 9; grid-row: 1; }
  .hero-photo { grid-column: 4 / 13; grid-row: 2; margin-top: -2.5rem; }
}

/* ---------- Story ---------- */
.story { background: var(--bois-2); }
.story-grid { display: grid; gap: 2.5rem; align-items: center; }
.story-photo { margin: 0; }
.story-photo img { width: 100%; border: 2px solid var(--ebony); }
.story-text h2 { margin-bottom: 1.2rem; }
.text-link {
  display: inline-block; font-family: var(--f-head); font-weight: 700; font-size: 1.05rem;
  color: var(--tea); text-decoration-thickness: 2px; text-underline-offset: 4px; margin-top: .4rem;
}
.text-link:hover { color: var(--ebony); }
@media (min-width: 900px) {
  .story-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .story-photo { transform: rotate(-1.2deg); }
}

/* ---------- Services ---------- */
.dark { background: var(--ebony); color: var(--bois); }
.services h2 { max-width: 14em; margin-bottom: 1rem; }
.services .lead { max-width: 36em; margin-bottom: 2.5rem; }
.cards { display: grid; grid-template-columns: 1fr; border: 2px solid var(--bois); }
.card {
  padding: 1.6rem 1.5rem 1.8rem;
  background: var(--ebony-2); color: var(--bois);
  --lab: var(--amber);
  min-width: 0;
}
.card:nth-child(odd) { background: var(--bois); color: var(--ebony); --lab: var(--tea); }
.card h3 { margin-bottom: .7rem; }
.card p:last-child { margin-bottom: 0; }
.sq-label { font-family: var(--f-mono); font-size: .8rem; color: var(--lab); margin: 0 0 1rem; letter-spacing: .08em; }
.card-last { background: var(--tea); color: #fff7e6; --lab: #fff7e6; }
.card-last:nth-child(odd), .card-last:nth-child(even) { background: var(--tea); color: #fff7e6; --lab: #fff7e6; }
.card-last .text-link { color: #fff7e6; }
.card-last .text-link:hover { color: var(--ebony); }
.card-last { --focus: #fff7e6; }
.cards .card:focus-within { outline: 0; }
@media (min-width: 700px) and (max-width: 999px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .card:nth-child(odd) { background: var(--ebony-2); color: var(--bois); --lab: var(--amber); }
  .card:nth-child(4n+1), .card:nth-child(4n+4) { background: var(--bois); color: var(--ebony); --lab: var(--tea); }
  .card-last:nth-child(n) { background: var(--tea); color: #fff7e6; --lab: #fff7e6; }
}
@media (min-width: 1000px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .card { padding: 2rem 1.8rem 2.2rem; }
}

/* ---------- Why ---------- */
.why-grid { display: grid; gap: 3rem; }
.why-text h2 { margin-bottom: 1.2rem; }
.plain-list { list-style: none; margin: 1.6rem 0; padding: 0; counter-reset: n; }
.plain-list li {
  counter-increment: n; position: relative;
  padding: .9rem 0 .9rem 3rem; border-top: 1px solid rgba(26,22,18,.35);
}
.plain-list li:last-child { border-bottom: 1px solid rgba(26,22,18,.35); }
.plain-list li::before {
  content: counter(n, decimal-leading-zero);
  position: absolute; left: 0; top: .95rem;
  font-family: var(--f-mono); font-size: .8rem; color: var(--tea);
}
.why-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
.why-photos figure { margin: 0; min-width: 0; }
.why-photos img { width: 100%; border: 2px solid var(--ebony); }
.why-photos figcaption { font-family: var(--f-mono); font-size: .75rem; line-height: 1.5; color: var(--ink-soft); margin-top: .6rem; }
.ph-b { margin-top: 3rem !important; }
@media (min-width: 900px) {
  .why-grid { grid-template-columns: 1.05fr 1fr; gap: 5rem; align-items: center; }
  .why-photos { gap: 1.5rem; }
}

/* ---------- Process ---------- */
.steel { background: var(--steel); color: var(--bois); }
.process-grid { display: grid; gap: 2.5rem; }
.process-photo { margin: 0; }
.process-photo img { width: 100%; border: 2px solid var(--bois); }
.process-photo figcaption { font-family: var(--f-mono); font-size: .78rem; margin-top: .8rem; color: var(--bois); }
.process-text h2 { margin-bottom: 1.8rem; }
.step { display: grid; grid-template-columns: 3.2rem 1fr; gap: 1rem; padding: 1.2rem 0; border-top: 1px dashed rgba(241,230,201,.55); }
.step:last-child { border-bottom: 1px dashed rgba(241,230,201,.55); }
.step-no { font-family: var(--f-mono); font-size: 1.5rem; color: var(--amber); margin: 0; line-height: 1.1; }
.step h3 { margin-bottom: .4rem; }
.step p:last-child { margin-bottom: 0; }
@media (min-width: 900px) {
  .process-grid { grid-template-columns: 5fr 6fr; gap: 5rem; align-items: start; }
  .process-photo { position: sticky; top: 6rem; }
}

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: 2rem; }
.faq-head h2 { margin-bottom: 1rem; }
details { border-top: 2px solid var(--ebony); }
details:last-child { border-bottom: 2px solid var(--ebony); }
summary {
  list-style: none; cursor: pointer;
  font-family: var(--f-head); font-weight: 700; font-size: 1.2rem; line-height: 1.25;
  padding: 1.1rem 2.6rem 1.1rem 0; position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: .2rem; top: .8rem;
  font-family: var(--f-mono); font-size: 1.6rem; color: var(--tea);
}
details[open] summary::after { content: "\2013"; }
details p { padding-right: 2rem; max-width: 40em; }
@media (min-width: 900px) {
  .faq-grid { grid-template-columns: 4fr 7fr; gap: 5rem; }
  .faq-head { position: sticky; top: 6rem; align-self: start; }
}

/* ---------- Atmosphere ---------- */
.atmosphere { padding: 0; min-height: clamp(26rem, 70vh, 40rem); display: flex; align-items: flex-end; background: var(--ebony); overflow: hidden; }
.atmosphere > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.atmosphere .wrap { padding-block: clamp(2rem, 5vw, 4rem); }
.atmo-panel {
  background: rgba(26,22,18,.88); color: var(--bois);
  max-width: 34rem; padding: clamp(1.4rem, 3vw, 2.2rem);
  border-left: 6px solid var(--amber);
}
.atmo-panel .move { color: var(--amber); }
.atmo-panel p:last-child { margin-bottom: 0; }
.atmo-panel h2 { margin-bottom: .8rem; font-size: clamp(1.8rem, 4vw, 2.8rem); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 2.5rem; }
.contact-text h2 { margin-bottom: 1.2rem; }
.form { background: var(--bois); color: var(--ebony); padding: clamp(1.4rem, 3vw, 2.2rem); border: 2px solid var(--bois); --focus: var(--tea); }
.field { margin: 0 0 1.2rem; }
.field label { display: block; font-family: var(--f-mono); font-size: .82rem; letter-spacing: .04em; margin-bottom: .4rem; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ebony);
  background: #fbf5e4; border: 2px solid var(--ebony); border-radius: 0; padding: .7rem .8rem;
}
.field textarea { resize: vertical; min-height: 8rem; }
.form button {
  font-family: var(--f-head); font-weight: 700; font-size: 1.1rem;
  background: var(--ebony); color: var(--bois); border: 2px solid var(--ebony);
  padding: .85rem 2rem; cursor: pointer; border-radius: 0;
}
.form button:hover { background: var(--tea); border-color: var(--tea); }
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ebony-2); color: var(--bois); padding: 2.5rem 0; border-top: 6px solid var(--tea-bright); }
.foot { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; justify-content: space-between; align-items: flex-start; }
.foot p { margin: 0; }
.foot-brand { font-family: var(--f-head); font-weight: 700; font-size: 1.4rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; font-family: var(--f-head); }
.site-footer a { text-underline-offset: 4px; }

/* ---------- Move rail (JS) ---------- */
.rail {
  position: fixed; right: 12px; top: 50%; transform: translateY(-50%); z-index: 40;
  display: none; flex-direction: column; gap: 6px;
  background: var(--ebony); padding: 7px; border: 1px solid var(--bois);
}
.rail span { display: block; width: 10px; height: 10px; background: rgba(241,230,201,.35); }
.rail span.on { background: var(--amber); }
@media (min-width: 1100px) { .rail { display: flex; } }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .btn, .site-nav a, .site-nav .cta, .form button, .text-link { transition: background-color .2s, color .2s, border-color .2s; }
  .rail span { transition: background-color .25s; }
  .story-photo { transition: transform .4s ease; }
  .card { transition: transform .25s ease; }
  .card:hover { transform: translateY(-3px); }
}
@media (prefers-reduced-motion: reduce) {
  .card:hover { transform: none; }
}

/* inner pages */
/* Satranç Hamlesi — iç sayfalar için küçük eklemeler */

.pg-hero {
  padding-block: clamp(1.5rem, 4vw, 3rem) clamp(2rem, 5vw, 3.5rem);
}
.pg-hero .hero-panel h1 {
  font-size: clamp(2.1rem, 5.6vw, 3.9rem);
  overflow-wrap: break-word;
}
.pg-hero .hero-panel { min-width: 0; }
.pg-hero .actions { margin-bottom: 0; }

.pg-narrow {
  max-width: 46rem;
  margin-inline: 0;
  width: min(1180px, 100% - 2.5rem);
}
.pg-narrow > h2 { margin-bottom: 1.2rem; }
.pg-narrow .lead { margin-bottom: 1.2rem; }

.pg-cta .actions { margin-bottom: 0; }

@media (min-width: 900px) {
  .pg-narrow { margin-inline: auto; }
  .pg-narrow { padding-right: clamp(0rem, 20vw, 14rem); max-width: 1180px; }
}

.wpf-legal { padding: clamp(3rem, 8vw, 7rem) clamp(1.25rem, 4vw, 2rem); }
.wpf-legal .wpf-legal__inner { max-width: 72ch; margin: 0 auto; }
.wpf-legal .wpf-legal__inner h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.1; margin: .2em 0 .8em; }
.wpf-legal .wpf-legal__inner h2 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); line-height: 1.25; margin: 2.2em 0 .6em; }
.wpf-legal .wpf-legal__inner p, .wpf-legal .wpf-legal__inner li { line-height: 1.75; max-width: none; }
.wpf-legal .wpf-legal__inner ul { padding-left: 1.2em; margin: 0 0 1em; }
.wpf-legal .wpf-legal__inner li { margin: .35em 0; list-style: disc; }
.wpf-legal .wpf-legal__inner a { color: inherit; text-decoration: underline; text-underline-offset: .15em; }
.wpf-legal .wpf-legal__meta { font-size: .875rem; opacity: .7; margin: 0; }
.wpf-legal .wpf-legal__table { overflow-x: auto; margin: 1em 0 1.5em; }
.wpf-legal table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.wpf-legal th, .wpf-legal td { text-align: left; vertical-align: top; padding: .7em .8em; border-bottom: 1px solid rgba(127,127,127,.3); }
.wpf-legal code { font-size: .85em; word-break: break-word; }
.wpf-legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.4rem; grid-column: 1 / -1;
  width: 100%; box-sizing: border-box; padding: 1.1rem clamp(1.25rem, 4vw, 2rem) 0; font-size: .875rem; }
.wpf-legal-links a { color: inherit; opacity: .85; text-decoration: underline; text-underline-offset: .15em; }
.wpf-legal-links a:hover, .wpf-legal-links a:focus-visible { opacity: 1; }

.wpf-consent { position: fixed; z-index: 99998; left: 16px; right: 16px; bottom: 16px; max-width: 27rem; box-sizing: border-box;
  padding: 20px 22px; border-radius: 14px; border: 1px solid rgba(127,127,127,.28); box-shadow: 0 14px 44px rgba(0,0,0,.24);
  font-size: 15px; line-height: 1.55; text-align: left; }
.wpf-consent[hidden] { display: none; }
.wpf-consent .wpf-consent__title { margin: 0 0 6px; font-weight: 700; font-size: 1.05em; }
.wpf-consent .wpf-consent__text { margin: 0 0 16px; max-width: none; }
.wpf-consent .wpf-consent__text a { color: inherit; text-decoration: underline; }
.wpf-consent .wpf-consent__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.wpf-consent .wpf-consent__actions button { cursor: pointer; margin: 0; width: auto; }
.wpf-consent .wpf-consent__primary, .wpf-consent .wpf-consent__secondary { font: inherit; font-weight: 600; padding: 10px 18px; border-radius: 8px; }
.wpf-consent .wpf-consent__primary { background: #1c1b19; color: #fff; border: 1px solid #1c1b19; }
.wpf-consent .wpf-consent__secondary { background: transparent; color: inherit; border: 1px solid currentColor; }
.wpf-consent button:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
