/* ==========================================================================
   Meşhur Adıyaman Çiğköfte & Meze — ortak stiller
   Krem / antrasit / koyu yeşil. Sistem fontları, harici istek yok.
   ========================================================================== */

:root {
  --cream: #f7f3ea;
  --paper: #fffdf8;
  --ink: #23262a;
  --muted: #5a5e62;
  --green: #1f4d3a;
  --green-dark: #163a2b;
  --green-tint: #eaf1ec;
  --line: #e3dccd;
  --warn-bg: #fff4d6;
  --warn-line: #d9a93a;
  --error: #9b2c1f;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 16px;
  --focus: 0 0 0 3px var(--paper), 0 0 0 6px var(--green);
}

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  overflow-wrap: break-word;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0; text-wrap: balance; }
p { margin: 0; }

a { color: var(--green); }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 10px; }

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

[hidden] { display: none !important; }

/* ---------- Butonlar ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 12px;
  border: 2px solid var(--green);
  background: var(--green);
  color: #fff;
  font: 600 17px/1.25 var(--sans);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn:active { transform: translateY(1px); }

.btn--block { display: flex; width: 100%; }
.btn--lg { min-height: 56px; font-size: 18px; }

.btn--ghost { background: transparent; color: var(--green); }
.btn--ghost:hover { background: var(--green-tint); color: var(--green-dark); }

.btn--quiet {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line);
}
.btn--quiet:hover { background: #f1ece0; border-color: #cfc6b3; }

.btn[aria-disabled="true"] { opacity: .55; cursor: default; }
.btn[aria-disabled="true"]:active { transform: none; }

/* ---------- Marka imzası ---------- */

.signature { text-align: left; }
.signature__name {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--ink);
}
.signature__sub {
  margin-top: 2px;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ==========================================================================
   Müşteri sayfası
   ========================================================================== */

.customer {
  max-width: 480px;
  margin: 0 auto;
  padding: 28px 16px 48px;
}

/* ---------- Dev isim ---------- */

.hero { margin: 40px 0 34px; }
.hero h1 { font-weight: 600; text-wrap: initial; }
.hero__kicker {
  display: block;
  margin-bottom: 6px;
  font-size: 22px;
  font-style: italic;
  font-weight: 400;
  color: var(--muted);
}
.hero__name {
  display: block;
  font-size: clamp(40px, 12.5vw, 66px);
  line-height: .95;
  letter-spacing: -.03em;
  overflow-wrap: anywhere;
  transform: rotate(-3deg);
  transform-origin: left bottom;
}
.hero[data-len="s"] .hero__name { font-size: clamp(64px, 22vw, 104px); }
.hero[data-len="m"] .hero__name { font-size: clamp(50px, 16vw, 84px); }
.hero[data-len="xl"] .hero__name { font-size: clamp(30px, 9vw, 48px); }
.hero--calm .hero__name { transform: none; }
.hero__dot { color: var(--green); }
.hero__welcome { margin-top: 22px; max-width: 26ch; font-size: 20px; line-height: 1.4; }

/* ---------- Yorum: koyu yeşil blok ---------- */

.review {
  padding: 22px 20px 20px;
  border-radius: var(--radius);
  background: var(--green);
  color: #fffdf8;
}
.review :focus-visible { box-shadow: 0 0 0 3px var(--green), 0 0 0 6px #fffdf8; }
.review__title { font-size: 27px; line-height: 1.15; }
.review__button {
  margin-top: 18px;
  background: #fffdf8;
  border-color: #fffdf8;
  color: var(--green);
}
.review__button:hover { background: var(--green-tint); border-color: var(--green-tint); color: var(--green-dark); }
.path {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 0;
  margin: 16px 0 0;
  padding: 10px 14px;
  list-style: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, .1);
  font-size: 16px;
  font-weight: 600;
}
.path li + li::before { content: "›"; padding: 0 9px; opacity: .6; }

/* ---------- Köfteyi sık ---------- */

.kofte { margin-top: 40px; text-align: center; }
.kofte__title { font-family: var(--serif); font-size: 25px; font-weight: 600; }
.kofte__button {
  display: block;
  width: min(100%, 320px);
  margin: 6px auto 0;
  padding: 6px 6px 10px;
  border: 0;
  border-radius: 20px;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
.kofte__button[aria-disabled="true"] { cursor: default; }
.kofte__svg { display: block; width: 100%; height: auto; overflow: visible; }
.kofte__leaf { fill: #3e7a5e; }
.kofte__vein { fill: none; stroke: #2c5e46; stroke-width: 2; stroke-linecap: round; }
.kofte__body {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform .28s cubic-bezier(.3, 1.6, .5, 1);
}
.kofte.is-squeezing .kofte__body { transform: scale(1.06, .86); transition-duration: .12s; }
.kofte__meat { fill: #8b3a26; }
.kofte__shine { fill: none; stroke: rgba(255, 255, 255, .2); stroke-width: 4; stroke-linecap: round; }
.kofte__grains circle { fill: #b0634a; }
.kofte__groove {
  fill: none;
  stroke: #5a2114;
  stroke-width: 7;
  stroke-linecap: round;
  opacity: 0;
  transition: opacity .12s;
}
.kofte__bar {
  display: block;
  width: 56%;
  height: 6px;
  margin: 12px auto 0;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
}
.kofte__fill {
  display: block;
  height: 100%;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left center;
}
.kofte.is-done .kofte__bar { visibility: hidden; }
.kofte__hint {
  margin-top: 6px;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.note-card {
  max-width: 340px;
  margin: 4px auto 0;
  padding: 20px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 10px 24px -14px rgba(35, 38, 42, .45);
  transform: rotate(1.5deg);
  animation: note-in .35s cubic-bezier(.2, 1.4, .4, 1);
}
.note-card__text {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.4;
  font-style: italic;
}
@keyframes note-in {
  from { opacity: 0; transform: translateY(-18px) rotate(-2deg) scale(.96); }
  to { opacity: 1; transform: rotate(1.5deg); }
}

/* ---------- Hikâye + imza ---------- */

.story {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 2px solid var(--ink);
}
.story__line {
  font-family: var(--serif);
  font-size: clamp(26px, 7.6vw, 34px);
  line-height: 1.12;
}
.story__line strong { font-weight: 600; }
.story__line + .story__line strong { color: var(--green); }
.story__place {
  margin-top: 10px;
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.closing {
  margin-top: 30px;
  padding-right: 8px;
  text-align: right;
  font-family: "Segoe Script", "Bradley Hand", "Snell Roundhand", "Brush Script MT", cursive;
  font-size: 26px;
  color: var(--ink);
  transform: rotate(-4deg);
}

.confetti-canvas {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 10;
}

/* ==========================================================================
   Portal
   ========================================================================== */

.portal {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 16px 48px;
}

.portal-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.portal-header h1 { font-size: 26px; }
.portal-header__brand { font-size: 14px; color: var(--muted); }

.banner {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  font-size: 15px;
}
.banner strong { display: block; }
.banner--error { background: #fbe9e6; border-color: #d98a7e; }

.order-form { margin-top: 20px; }

.field + .field { margin-top: 22px; }

.field__label,
.field legend {
  display: block;
  margin-bottom: 8px;
  padding: 0;
  font-weight: 650;
  font-size: 16px;
}
.field__hint { margin: -4px 0 8px; font-size: 14px; color: var(--muted); }

fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }

.text-input {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font: 400 18px/1.3 var(--sans);
}
.text-input:focus-visible { border-color: var(--green); border-radius: 12px; }
.text-input[aria-invalid="true"] { border-color: var(--error); }

.choices { display: grid; gap: 8px; }
.choices--3 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

.choice { position: relative; display: block; }
.choice input {
  position: absolute; opacity: 0;
  width: 100%; height: 100%; margin: 0; inset: 0; cursor: pointer;
}
.choice__box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 14px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  font-size: 16px;
  line-height: 1.3;
}
.choice__box::before {
  content: "";
  flex: none;
  width: 18px; height: 18px;
  border: 2px solid #9a9486;
  border-radius: 50%;
  background: var(--paper);
}
.choice input:checked + .choice__box {
  border-color: var(--green);
  background: var(--green-tint);
  font-weight: 650;
}
.choice input:checked + .choice__box::before {
  border-color: var(--green);
  background: radial-gradient(circle, var(--green) 0 45%, var(--paper) 50%);
}
.choice input:focus-visible + .choice__box { box-shadow: var(--focus); }
.choices.is-invalid .choice__box { border-color: var(--error); }

.field-error {
  margin-top: 8px;
  color: var(--error);
  font-size: 15px;
  font-weight: 600;
}

.form-actions { margin-top: 26px; }

.status-line {
  margin-top: 12px;
  min-height: 1.5em;
  font-size: 15px;
  color: var(--muted);
}

.result {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.result h2 { font-size: 22px; }
.result h2:focus,
.result h2:focus-visible { box-shadow: none; }
.result__layout {
  display: grid;
  gap: 20px;
  margin-top: 16px;
  align-items: start;
}
@media (min-width: 700px) {
  .result__layout { grid-template-columns: auto 1fr; }
}
.result__meta { font-size: 15px; color: var(--muted); }
.result__meta dt { font-weight: 650; color: var(--ink); }
.result__meta dd { margin: 0 0 8px; }

.link-field { margin-top: 4px; }
.link-field input {
  font: 400 14px/1.4 ui-monospace, "Cascadia Mono", Consolas, monospace;
  min-height: 44px;
}

.result__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}
.result__actions .btn { padding-left: 12px; padding-right: 12px; }
.result__actions .btn--wide { grid-column: 1 / -1; }

.portal-footnote {
  margin-top: 36px;
  font-size: 14px;
  color: var(--muted);
}

.noscript-box {
  margin: 20px 0;
  padding: 14px;
  border-radius: 12px;
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
}

/* ==========================================================================
   QR kartı — ekranda ölçeklenir, baskıda gerçek mm ölçüsündedir.
   --card-w / --card-h / --qr-size portal.js tarafından config'ten atanır.
   ========================================================================== */

.qr-card {
  --card-w: 85;
  --card-h: 110;
  --qr-size: 38;
  --u: min(1mm, calc((100vw - 40px) / var(--card-w)));

  width: calc(var(--u) * var(--card-w));
  height: calc(var(--u) * var(--card-h));
  padding: calc(var(--u) * 7) calc(var(--u) * 6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background: #fffdf8;
  color: #23262a;
  border: 1px solid #cfc6b3;
  border-radius: calc(var(--u) * 3);
  text-align: center;
  overflow: hidden;
}
.qr-card__brand {
  font-family: var(--serif);
  font-size: calc(var(--u) * 3.6);
  font-weight: 600;
  line-height: 1.2;
}
.qr-card__owner {
  margin-top: calc(var(--u) * .6);
  font-size: calc(var(--u) * 2.4);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #5a5e62;
}
.qr-card__title {
  font-family: var(--serif);
  font-size: calc(var(--u) * 7.6);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.02em;
}
.qr-card__sub {
  margin-top: calc(var(--u) * 1.6);
  font-family: var(--serif);
  font-size: calc(var(--u) * 4.4);
  font-style: italic;
  line-height: 1.2;
}
.qr-card__sub strong { font-style: normal; color: #1f4d3a; }
.qr-card__qr {
  width: calc(var(--u) * var(--qr-size));
  height: calc(var(--u) * var(--qr-size));
  background: #fff;
  flex: none;
}
.qr-card__qr svg { display: block; width: 100%; height: 100%; }
.qr-card__name {
  font-size: calc(var(--u) * 3.2);
  font-weight: 600;
  color: #1f4d3a;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ==========================================================================
   Ana sayfa (herkese açık, arama motorlarına açık)
   ========================================================================== */

.kofte__groove.is-on { opacity: 1; }

.home-top,
.home-hero,
.home-stats,
.home-section,
.home-foot {
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.home-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.home-top__brand { font-family: var(--serif); font-size: 17px; font-weight: 600; }
.home-top__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  font-weight: 600;
  color: var(--ink);
}

.home-hero {
  display: grid;
  gap: 20px;
  align-items: center;
  padding-top: 28px;
  padding-bottom: 20px;
}
@media (min-width: 820px) {
  .home-hero { grid-template-columns: 1.25fr .75fr; gap: 40px; padding-top: 56px; }
}
.home-kicker {
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.home-hero h1 {
  margin-top: 12px;
  font-size: clamp(40px, 10.5vw, 76px);
  line-height: 1;
  letter-spacing: -.03em;
}
.home-hero__lead { margin-top: 20px; max-width: 36ch; font-size: 19px; line-height: 1.5; }
.home-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.home-hero__kofte {
  width: 100%;
  max-width: 420px;
  justify-self: center;
  transform: rotate(-6deg);
}

.home-stats {
  display: grid;
  margin-top: 28px;
}
.home-stats p {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-top: 2px solid var(--ink);
}
.home-stats p:last-child { border-bottom: 2px solid var(--ink); }
.home-stats strong {
  font-family: var(--serif);
  font-size: clamp(30px, 8vw, 48px);
  font-weight: 600;
  line-height: 1;
}
.home-stats span { font-size: 15px; color: var(--muted); text-align: right; }
@media (min-width: 720px) {
  .home-stats { grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
  .home-stats p, .home-stats p:last-child { display: block; border: 0; padding: 22px 16px 22px 0; }
  .home-stats p + p { padding-left: 22px; border-left: 1px solid var(--line); }
  .home-stats span { display: block; margin-top: 8px; text-align: left; }
}

.home-section { margin-top: 64px; }
.home-section h2 { font-size: clamp(32px, 7.5vw, 46px); letter-spacing: -.02em; }

.home-menu { display: grid; gap: 14px; margin-top: 20px; }
@media (min-width: 640px) { .home-menu { grid-template-columns: 1fr 1fr; } }
.home-menu__item {
  padding: 22px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.home-menu__item h3 { font-size: 26px; }
.home-menu__item p { margin-top: 8px; }
.home-note { margin-top: 12px; font-size: 14px; color: var(--muted); }

.home-order {
  width: min(1000px, calc(100% - 32px));
  padding: 30px 22px;
  border-radius: 20px;
  background: var(--green);
  color: #fffdf8;
}
.home-order p { margin-top: 10px; font-size: 18px; }
.home-order :focus-visible { box-shadow: 0 0 0 3px var(--green), 0 0 0 6px #fffdf8; }
.home-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.home-platforms li {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  font-weight: 600;
}
.home-platforms li.is-link { padding: 0; border-color: #fffdf8; background: #fffdf8; }
.home-platforms li.is-link a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  color: var(--green);
  text-decoration: none;
  border-radius: 999px;
}
.home-wink { font-family: var(--serif); font-size: 17px; opacity: .9; }
.home-order .home-wink { margin-top: 24px; }
.home-wink strong { color: #cfe5d7; }

.home-place__big {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: clamp(34px, 9vw, 58px);
  line-height: 1.05;
}
.home-place__address { margin-top: 12px; font-style: normal; font-size: 18px; }
.home-place__map { margin-top: 20px; }

.home-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  margin-top: 72px;
  padding-top: 20px;
  padding-bottom: 40px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

.notfound { max-width: 480px; margin: 0 auto; padding: 72px 20px; }
.notfound h1 { font-size: clamp(40px, 12vw, 64px); line-height: 1; letter-spacing: -.03em; }
.notfound p { margin-top: 16px; font-size: 19px; }
.notfound .btn { margin-top: 24px; }

/* ---------- Hareket azaltma ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .btn:active { transform: none; }
}

/* ---------- Baskı: yalnızca kart ---------- */

@media print {
  html, body { background: #fff !important; }
  body { margin: 0; }
  .screen-only { display: none !important; }
  .portal, .result { margin: 0 !important; padding: 0 !important; border: 0 !important; max-width: none !important; }
  .result__layout { display: block !important; margin: 0 !important; }
  .qr-card {
    --u: 1mm;
    break-inside: avoid;
    page-break-inside: avoid;
    border: .2mm solid #b9b09c;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
