/* ═══════════════════════════════════════════════════════════════════════════
   Respos — tanıtım sitesi
   Amber Kitchen tasarım sistemi (bkz. DESIGN.md) üzerine kuruludur.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  /* Yüzeyler */
  --surface:            #fff8f2;
  --surface-lowest:     #ffffff;
  --surface-low:        #fef2e1;
  --surface-container:  #f8ecdb;
  --surface-high:       #f2e7d6;

  /* Metin */
  --on-surface:         #201b11;
  --on-surface-var:     #504532;
  --outline:            #827660;
  --outline-var:        #d4c5ab;

  /* Vurgu */
  --primary:            #795900;
  --primary-hover:      #6d5000;
  --primary-container:  #ffbf00;
  --on-primary:         #ffffff;

  /* Koyu yüzey (footer) */
  --inverse:            #201b11;
  --inverse-2:          #2b2418;
  --inverse-border:     #3d3527;
  --inverse-on:         #fbefde;
  --inverse-muted:      #9a8a6e;

  /* Tipografi */
  --sans: 'Hanken Grotesk', system-ui, -apple-system, Segoe UI, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Yuvarlaklık — DESIGN.md */
  --r-sm: .25rem;
  --r:    .5rem;
  --r-md: .75rem;
  --r-lg: 1rem;
  --r-xl: 1.5rem;
  --r-full: 9999px;

  /* 8px ızgara */
  --gutter: 16px;
  --pad-x:  32px;

  --shadow-1: 0 1px 2px rgba(32, 27, 17, .05);
  --shadow-2: 0 4px 8px rgba(32, 27, 17, .04), 0 1px 2px rgba(32, 27, 17, .04);
  --shadow-3: 0 12px 28px rgba(32, 27, 17, .10);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--on-surface);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
}

/* `height: auto` şart: aksi hâlde <img> üzerindeki height niteliği sunum ipucu
   olarak sabit yükseklik dayatır ve CSS'teki aspect-ratio hiç uygulanmaz. */
img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--primary-container);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

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

.skip-link {
  position: absolute; left: 50%; top: -60px; transform: translateX(-50%);
  z-index: 200; background: var(--primary); color: #fff;
  padding: 10px 18px; border-radius: 0 0 var(--r) var(--r);
  font-weight: 600; transition: top .18s;
}
.skip-link:focus { top: 0; }

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: var(--pad-x);
}
.wrap-narrow { max-width: 840px; }

/* ── Butonlar ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--r);
  font-family: var(--sans);
  font-size: 15px; font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .16s, border-color .16s, color .16s, transform .16s;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); }

.btn-ghost { background: transparent; color: var(--on-surface); border-color: var(--outline-var); }
.btn-ghost:hover { background: var(--surface-container); border-color: var(--outline); }

.btn-invert { background: #fff; color: var(--primary); }
.btn-invert:hover { background: var(--surface-low); }

.btn-lg { min-height: 52px; padding: 0 32px; font-size: 17px; }

/* ── Üst bar ──────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 248, 242, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--outline-var);
}

.header-inner {
  display: flex; align-items: center; gap: 32px;
  min-height: 72px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark {
  display: grid; place-items: center;
  width: 32px; height: 32px;
  border-radius: var(--r);
  background: var(--primary-container);
  color: var(--on-surface);
}
.brand-mark svg { width: 19px; height: 19px; }
.brand-name {
  font-size: 20px; font-weight: 700; letter-spacing: -.4px;
}

.nav { display: flex; gap: 28px; margin-inline-start: auto; }
.nav-link {
  position: relative;
  padding: 6px 0;
  font-size: 15px; font-weight: 500;
  color: var(--on-surface-var);
  transition: color .16s;
}
.nav-link:hover { color: var(--on-surface); }
.nav-link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; border-radius: var(--r-full);
  background: var(--primary-container);
  transform: scaleX(0); transform-origin: center;
  transition: transform .2s;
}
.nav-link.is-active { color: var(--on-surface); font-weight: 600; }
.nav-link.is-active::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .btn { min-height: 40px; padding: 0 16px; font-size: 14px; }

/* Mobil menü düğmesi */
.menu-toggle {
  display: none;
  margin-inline-start: auto;
  width: 44px; height: 44px;
  padding: 0;
  background: transparent; border: 1px solid var(--outline-var);
  border-radius: var(--r);
  cursor: pointer;
}
.menu-toggle span {
  display: block; width: 18px; height: 2px; margin: 3px auto;
  background: var(--on-surface); border-radius: var(--r-full);
  transition: transform .2s, opacity .2s;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* `hidden` niteliği `display:flex` tarafından ezilmesin */
.mobile-nav[hidden] { display: none; }

.mobile-nav {
  display: flex; flex-direction: column;
  padding: 8px var(--pad-x) 20px;
  border-top: 1px solid var(--outline-var);
  background: var(--surface);
}
.mobile-nav a {
  padding: 14px 0;
  font-size: 16px; font-weight: 500;
  border-bottom: 1px solid var(--outline-var);
}
.mobile-nav-actions { display: flex; gap: 10px; margin-top: 20px; }
.mobile-nav-actions .btn { flex: 1; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 72px 0 88px;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(900px 420px at 78% 34%, rgba(255, 191, 0, .16), transparent 68%),
    linear-gradient(180deg, var(--surface-low) 0%, var(--surface) 62%);
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: 56px;
  align-items: center;
}

.hero-copy h1 {
  font-size: 48px; font-weight: 700; line-height: 56px; letter-spacing: -1px;
}
.hero-copy .lead {
  margin: 20px 0 32px;
  max-width: 46ch;
  font-size: 18px; line-height: 28px;
  color: var(--on-surface-var);
}

.hero-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-3);
}

/* ── İstatistikler ────────────────────────────────────────────────────────── */
.stats {
  background: var(--surface-container);
  border-block: 1px solid var(--outline-var);
  padding: 48px 0;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter);
  text-align: center;
}
.stat-num {
  font-family: var(--sans);
  font-size: 40px; font-weight: 800; line-height: 1.1; letter-spacing: -1px;
  color: var(--primary);
}
.stat-label { margin-top: 6px; font-size: 17px; font-weight: 600; }
.stat-desc {
  margin: 6px auto 0; max-width: 30ch;
  font-size: 14px; line-height: 20px; color: var(--on-surface-var);
}

/* ── Bölüm iskeleti ───────────────────────────────────────────────────────── */
.section { padding: 88px 0; }
.section-alt { background: var(--surface-low); }

.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 {
  font-size: 32px; font-weight: 600; line-height: 40px; letter-spacing: -.5px;
}
.section-head p {
  margin: 10px auto 0; max-width: 56ch;
  font-size: 16px; color: var(--on-surface-var);
}

.card {
  background: var(--surface-lowest);
  border: 1px solid var(--outline-var);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}

/* ── Özellikler (bento) ───────────────────────────────────────────────────── */
.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.feat { display: flex; flex-direction: column; }
.feat-wide { grid-column: span 2; }

.feat-text { padding: 24px 24px 20px; }
.feat-icon {
  display: grid; place-items: center;
  width: 40px; height: 40px; margin-bottom: 14px;
  border-radius: var(--r);
  background: var(--surface-low);
  color: var(--primary);
}
.feat-icon svg { width: 21px; height: 21px; }
.feat-text h3 { font-size: 20px; font-weight: 600; line-height: 28px; }
.feat-text p {
  margin-top: 6px;
  font-size: 15px; line-height: 22px; color: var(--on-surface-var);
}

.feat-media { flex: 1; min-height: 200px; padding: 0 24px 24px; }
.feat-media img {
  width: 100%; height: 100%; min-height: 200px;
  object-fit: cover;
  border-radius: var(--r-md);
  border: 1px solid var(--outline-var);
}

/* Sipariş ekranı önizlemesi (fotoğraf yerine canlı arayüz taklidi) */
.mock {
  height: 100%; min-height: 200px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--outline-var);
  border-radius: var(--r-md);
}
.mock-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.chip {
  padding: 5px 12px;
  border: 1px solid var(--outline-var);
  border-radius: var(--r-full);
  background: var(--surface-lowest);
  font-family: var(--mono);
  font-size: 11px; font-weight: 500; letter-spacing: .3px;
  color: var(--on-surface-var);
}
.chip-on {
  background: var(--primary-container);
  border-color: var(--primary-container);
  color: var(--on-surface);
}
.mock-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px;
}
.tile {
  display: flex; flex-direction: column; justify-content: space-between; gap: 8px;
  min-height: 66px;
  padding: 9px 10px;
  background: var(--surface-lowest);
  border: 1px solid var(--outline-var);
  border-radius: var(--r);
}
.tile b { font-size: 12px; font-weight: 600; line-height: 15px; }
.tile i {
  font-family: var(--mono); font-style: normal;
  font-size: 12px; font-weight: 500; color: var(--primary);
}
.tile-on {
  background: #fff9e6;
  border-color: var(--primary-container);
  box-shadow: inset 0 0 0 1px var(--primary-container);
}

/* ── Çözüm kartları ───────────────────────────────────────────────────────── */
.grid-3 {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
}

.solution { display: flex; flex-direction: column; }
.solution > img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  border-bottom: 1px solid var(--outline-var);
}
.solution-body { padding: 20px 22px 24px; }
.solution-body h3 { font-size: 19px; font-weight: 600; }
.solution-body p {
  margin-top: 8px;
  font-size: 15px; line-height: 22px; color: var(--on-surface-var);
}

/* ── Referanslar ──────────────────────────────────────────────────────────── */
.quote {
  display: flex; flex-direction: column;
  margin: 0;
  padding: 24px;
}
.stars { color: var(--primary-container); font-size: 16px; letter-spacing: 3px; }
.quote blockquote {
  flex: 1;
  margin: 14px 0 20px;
  font-size: 15px; line-height: 24px; color: var(--on-surface-var);
}
.quote figcaption { display: flex; align-items: center; gap: 12px; }
.avatar {
  display: grid; place-items: center; flex: none;
  width: 40px; height: 40px;
  border-radius: var(--r-full);
  background: var(--primary-container);
  font-family: var(--mono);
  font-size: 13px; font-weight: 500;
  color: var(--on-surface);
}
.who { display: flex; flex-direction: column; }
.who b { font-size: 15px; font-weight: 600; }
.who small { font-size: 12.5px; color: var(--outline); }

/* ── Mobil güç (iki sütun) ────────────────────────────────────────────────── */
.split {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px; align-items: center;
}
.split-media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-3);
}
.split-copy h2 {
  font-size: 32px; font-weight: 600; line-height: 40px; letter-spacing: -.5px;
}
.split-copy > p {
  margin-top: 14px; max-width: 46ch;
  font-size: 16px; line-height: 26px; color: var(--on-surface-var);
}

.checklist { list-style: none; margin: 28px 0 0; padding: 0; }
.checklist li {
  position: relative;
  padding: 8px 0 8px 34px;
  font-size: 16px; font-weight: 500;
}
.checklist li::before {
  content: ''; position: absolute; left: 0; top: 10px;
  width: 22px; height: 22px;
  border-radius: var(--r-full);
  background: var(--primary-container) center / 13px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23201b11' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

/* ── SSS ──────────────────────────────────────────────────────────────────── */
.faq { display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  background: var(--surface-lowest);
  border: 1px solid var(--outline-var);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color .16s, box-shadow .16s;
}
.faq-item[open] { border-color: var(--primary-container); box-shadow: var(--shadow-2); }

.faq-item summary {
  display: flex; align-items: center; gap: 16px;
  min-height: 56px;
  padding: 14px 20px;
  font-size: 16px; font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ''; flex: none; margin-inline-start: auto;
  width: 18px; height: 18px;
  background: center / contain no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23504532' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  transition: transform .22s;
}
.faq-item[open] summary::after { transform: rotate(180deg); }

.faq-body {
  padding: 0 20px 18px;
  font-size: 15px; line-height: 24px; color: var(--on-surface-var);
}

/* ── Kapanış çağrısı ──────────────────────────────────────────────────────── */
.cta { background: var(--primary); color: #fff; }
.cta-inner { padding: 72px 32px; text-align: center; }
.cta-inner h2 {
  font-size: 32px; font-weight: 700; line-height: 42px; letter-spacing: -.5px;
}
.cta-inner p {
  margin: 14px auto 32px; max-width: 62ch;
  font-size: 16px; line-height: 26px;
  color: rgba(255, 255, 255, .82);
}

/* ── Alt bilgi ────────────────────────────────────────────────────────────── */
.site-footer { background: var(--inverse); color: var(--inverse-muted); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-block: 64px 48px;
}

.brand-dark .brand-name { color: var(--inverse-on); }
.footer-brand > p {
  margin-top: 16px; max-width: 34ch;
  font-size: 14px; line-height: 22px;
}

.social { display: flex; gap: 10px; margin-top: 20px; }
.social a {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border: 1px solid var(--inverse-border);
  border-radius: var(--r);
  color: var(--inverse-muted);
  transition: color .16s, border-color .16s, background-color .16s;
}
.social a:hover {
  color: var(--on-surface);
  background: var(--primary-container);
  border-color: var(--primary-container);
}
.social svg { width: 17px; height: 17px; }

.footer-col { display: flex; flex-direction: column; }
.footer-col h4 {
  margin-bottom: 16px;
  font-size: 15px; font-weight: 600; color: var(--inverse-on);
}
.footer-col a {
  padding: 6px 0;
  font-size: 14px;
  transition: color .16s;
}
.footer-col a:hover { color: var(--primary-container); }

.footer-news > p { font-size: 14px; line-height: 22px; margin-bottom: 16px; }

.news-form { display: flex; flex-wrap: wrap; gap: 8px; }
.news-form input {
  flex: 1 1 160px; min-width: 0;
  min-height: 44px;
  padding: 0 14px;
  background: var(--inverse-2);
  border: 1px solid var(--inverse-border);
  border-radius: var(--r);
  color: var(--inverse-on);
  font-family: var(--sans); font-size: 14px;
}
.news-form input::placeholder { color: #6f6553; }
.news-form input:focus { outline: none; border-color: var(--primary-container); }
.news-form .btn {
  flex: 1 1 120px;
  background: var(--primary-container);
  color: var(--on-surface);
}
.news-form .btn:hover { background: #fbbc00; }

.news-msg {
  flex-basis: 100%;
  min-height: 18px;
  font-size: 13px;
  color: var(--primary-container);
}
.news-msg.is-error { color: #ffb4ab; }

.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
  justify-content: space-between;
  padding-block: 20px;
  border-top: 1px solid var(--inverse-border);
  font-size: 13px;
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-legal a { font-size: 13px; transition: color .16s; }
.footer-legal a:hover { color: var(--primary-container); }

/* ═══ Duyarlı yerleşim ═══════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  :root { --pad-x: 24px; }

  .hero { padding: 56px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy h1 { font-size: 40px; line-height: 48px; }

  .nav { display: none; }
  .header-actions { display: none; }
  .menu-toggle { display: block; }

  .section { padding: 64px 0; }

  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feat-wide { grid-column: span 2; }

  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .split { grid-template-columns: 1fr; gap: 36px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 640px) {
  :root { --pad-x: 16px; }

  .hero-copy h1 { font-size: 32px; line-height: 40px; letter-spacing: -.5px; }
  .hero-copy .lead { font-size: 16px; line-height: 26px; }
  .hero-media img { aspect-ratio: 4 / 3; border-radius: var(--r-lg); }
  .btn-lg { width: 100%; }

  .stats-grid { grid-template-columns: 1fr; gap: 32px; }

  .section-head h2 { font-size: 24px; line-height: 32px; }
  .split-copy h2  { font-size: 24px; line-height: 32px; }
  .cta-inner      { padding: 56px 8px; }
  .cta-inner h2   { font-size: 24px; line-height: 34px; }

  .bento, .grid-3 { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .feat-wide { grid-column: span 1; }

  .mock-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .split-media img { aspect-ratio: 3 / 2; border-radius: var(--r-lg); }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-block: 48px 32px; }
  .footer-brand { grid-column: span 1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

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