/* ARNITA mini mobil uygulama — marka belirteçleri ana siteyle aynıdır
   (app/globals.css: ivory yüzey, sıcak koyu mürekkep, tek altın tonu). */
:root {
  --surface: #f8f6f1;
  --surface-raised: #f1eee8;
  --stone: #dedbd4;
  --stone-fg: #77726b;
  --ink: #1f1d1b;
  --ink-soft: #3a3835;
  --charcoal: #2b2927;
  --gold: #a8793e;
  --gold-ink: #7d561f;
  --gold-soft: #c9a56d;

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

  --top: 56px;
  --tab: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; background: var(--surface); }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--surface);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ---------- üst çubuk ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  height: calc(var(--top) + var(--safe-t));
  padding: var(--safe-t) 16px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: rgba(248, 246, 241, 0.92);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--stone);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand img { height: 32px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; color: var(--charcoal); }
.brand-text em { font-style: normal; color: var(--gold); }
.brand-text small { margin-top: 3px; font-size: 0.5rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-ink); font-weight: 600; white-space: nowrap; }
.install-pill {
  flex: none; border: 1px solid var(--gold); background: transparent; color: var(--gold-ink);
  border-radius: 999px; padding: 8px 14px; min-height: 40px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.01em; cursor: pointer;
}
.install-pill:active { background: var(--gold); color: #fff; }

/* ---------- gövde ---------- */
main { max-width: 640px; margin: 0 auto; outline: none;
  padding: calc(var(--top) + var(--safe-t)) 0 calc(var(--tab) + var(--safe-b) + 24px); }
.view { animation: rise 0.42s var(--ease) both; scroll-margin-top: calc(var(--top) + var(--safe-t)); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.eyebrow { margin: 0 0 8px; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-ink); }
h1, h2 { font-family: var(--serif); color: var(--ink); font-weight: 400; margin: 0; }
h1 { font-size: 2.1rem; line-height: 1.08; letter-spacing: -0.02em; font-weight: 300; }

.hero { padding: 28px 24px 8px; text-align: center; }
.hero-logo { width: 148px; height: auto; margin: 0 auto 18px; }
.hero h1 { font-size: 2.4rem; }

.page-head { padding: 28px 24px 18px; }
.page-head .sub { margin: 10px 0 0; color: var(--stone-fg); font-size: 0.92rem; }

.prose { padding: 20px 24px 8px; }
.lead { font-size: 1.32rem; line-height: 1.3; letter-spacing: -0.01em; margin-bottom: 18px; }
.prose p { margin: 0 0 16px; font-size: 0.98rem; color: var(--stone-fg); color: #5f5a54; }
.manifesto { font-family: var(--serif); font-size: 1.2rem !important; line-height: 1.35; color: var(--ink) !important; padding: 18px 0 6px; border-top: 1px solid var(--stone); margin-top: 8px !important; }

.more summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; min-height: 44px;
  font-size: 0.85rem; font-weight: 600; color: var(--gold-ink); letter-spacing: 0.02em;
}
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: ""; width: 7px; height: 7px; margin-left: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform 0.3s var(--ease); }
.more[open] summary::after { transform: rotate(-135deg) translate(-2px, -1px); }
.more .when-open, .more[open] .when-closed { display: none; }
.more[open] .when-open { display: inline; }
.more p:first-of-type { margin-top: 4px; }

.founder { margin: 22px 0 0; }
.founder img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 3px; background: var(--surface-raised); }
.founder figcaption { margin-top: 10px; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--stone-fg); font-weight: 600; text-align: center; }

.values { margin-top: 30px; padding: 28px 24px 8px; background: var(--surface-raised); }
.value { border-top: 1px solid var(--stone); }
.value:last-child { border-bottom: 1px solid var(--stone); }
.value summary {
  list-style: none; cursor: pointer; min-height: 56px; display: flex; align-items: center; gap: 12px;
  font-weight: 600; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink);
}
.value summary::-webkit-details-marker { display: none; }
.value summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(45deg); transition: transform 0.3s var(--ease); }
.value[open] summary::after { transform: rotate(-135deg); }
.num { font-family: var(--serif); font-weight: 400; color: var(--gold-ink); letter-spacing: 0.02em; }
.value p { margin: 0 0 20px; font-size: 0.93rem; color: #5f5a54; }
.values { padding-bottom: 32px; }

/* ---------- galeri ---------- */
.gallery { list-style: none; margin: 0; padding: 0 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gallery li { margin: 0; }
.gallery .wide { grid-column: 1 / -1; }
.gallery button { display: block; width: 100%; padding: 0; border: 0; background: var(--surface-raised); border-radius: 3px; overflow: hidden; cursor: zoom-in; position: relative; }
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform 0.6s var(--ease); }
.gallery .wide img { aspect-ratio: 4 / 3; object-position: 50% 45%; }
.gallery button:active img { transform: scale(1.03); }
.gallery button::after {
  content: ""; position: absolute; right: 8px; bottom: 8px; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(31, 29, 27, 0.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M14 4h6v6M10 20H4v-6M20 4l-7 7M4 20l7-7'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ---------- iletişim ---------- */
.cta {
  display: flex; align-items: center; gap: 14px; width: calc(100% - 32px); margin: 0 16px;
  min-height: 60px; padding: 12px 20px; border-radius: 4px; text-decoration: none; border: 0; cursor: pointer;
  font-family: inherit; text-align: left;
}
.cta svg { width: 24px; height: 24px; fill: currentColor; flex: none; }
.cta span { display: flex; flex-direction: column; line-height: 1.2; }
.cta small { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.8; font-weight: 600; }
.cta strong { font-size: 1.12rem; font-weight: 600; }
.cta.primary { background: var(--charcoal); color: #fff; margin-bottom: 14px; }
.cta.primary strong { font-size: 1.3rem; letter-spacing: 0.01em; }
.cta.primary:active { background: #000; }
.cta.dark { background: var(--gold); color: #fff; width: 100%; margin: 14px 0 0; }
.cta.dark:active { background: var(--gold-ink); }
.cta.ghost { background: transparent; color: var(--ink); border: 1px solid var(--stone); }
.cta.center { justify-content: center; text-align: center; width: 100%; margin: 10px 0 0; }
.cta.center span { align-items: center; }
.card { margin: 0 16px 14px; padding: 22px 20px; background: #fff; border: 1px solid var(--stone); border-radius: 4px; }
address { font-style: normal; font-size: 1.08rem; line-height: 1.5; color: var(--ink); }
.link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 6px; font-size: 0.88rem; font-weight: 600; color: var(--gold-ink); }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li + li { border-top: 1px solid var(--stone); }
.rows a { display: flex; align-items: center; gap: 14px; min-height: 64px; text-decoration: none; }
.rows svg { width: 24px; height: 24px; fill: var(--gold); flex: none; }
.rows span { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.rows strong { font-size: 0.98rem; color: var(--ink); }
.rows small { font-size: 0.82rem; color: var(--stone-fg); overflow-wrap: anywhere; }

/* ---------- alt gezinme ---------- */
.tabbar {
  position: fixed; inset: auto 0 0 0; z-index: 20;
  display: grid; grid-template-columns: repeat(3, 1fr);
  height: calc(var(--tab) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: rgba(248, 246, 241, 0.94);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-top: 1px solid var(--stone);
}
.tabbar a {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  text-decoration: none; color: var(--stone-fg); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.01em; padding: 0 2px;
}
.tabbar svg { width: 24px; height: 24px; fill: currentColor; }
.tabbar a[aria-current="page"] { color: var(--ink); }
.tabbar a[aria-current="page"] svg { fill: var(--gold); }
.tabbar a[aria-current="page"]::before { content: ""; position: absolute; top: -1px; left: 28%; right: 28%; height: 2px; background: var(--gold); }
.tabbar a:active { background: var(--surface-raised); }

/* ---------- fotoğraf görüntüleyici ---------- */
.lightbox { position: fixed; inset: 0; z-index: 50; background: #0f0e0d; color: #fff; display: flex; flex-direction: column; animation: fade 0.25s ease both; touch-action: none; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.lb-top { position: absolute; z-index: 2; inset: 0 0 auto 0; display: flex; align-items: center; justify-content: space-between; padding: calc(10px + var(--safe-t)) 12px 10px 20px; background: linear-gradient(#000a, transparent); }
.lb-count { font-size: 0.82rem; letter-spacing: 0.14em; font-weight: 600; opacity: 0.85; }
.lb-btn, .lb-nav { width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.14); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lb-btn svg, .lb-nav svg { width: 24px; height: 24px; }
.lb-stage { flex: 1; display: grid; place-items: center; overflow: hidden; touch-action: none; }
.lb-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; user-select: none; -webkit-user-drag: none; will-change: transform; transform-origin: center; }
.lb-nav { position: absolute; top: 50%; margin-top: -24px; z-index: 2; }
.lb-nav.prev { left: 10px; } .lb-nav.next { right: 10px; }
.lb-caption { position: absolute; inset: auto 0 0 0; margin: 0; padding: 36px 20px calc(18px + var(--safe-b)); text-align: center; font-size: 0.88rem; background: linear-gradient(transparent, #000b); pointer-events: none; }
body.lb-open { overflow: hidden; }

/* ---------- ana ekrana ekle sayfası ---------- */
.sheet-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(15, 14, 13, 0.55); display: flex; align-items: flex-end; justify-content: center; animation: fade 0.2s ease both; }
.sheet { width: 100%; max-width: 560px; max-height: 92dvh; overflow-y: auto; background: var(--surface); border-radius: 18px 18px 0 0; padding: 10px 22px calc(22px + var(--safe-b)); animation: up 0.38s var(--ease) both; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-grip { width: 40px; height: 4px; border-radius: 2px; background: var(--stone); margin: 4px auto 18px; }
.sheet h2 { font-size: 1.5rem; }
.sheet-sub { margin: 6px 0 18px; color: var(--stone-fg); font-size: 0.94rem; }
.seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; background: var(--surface-raised); border-radius: 8px; margin-bottom: 8px; }
.seg button { min-height: 44px; border: 0; background: transparent; border-radius: 6px; font-weight: 600; font-size: 0.92rem; color: var(--stone-fg); cursor: pointer; }
.seg button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px #0002; }
.steps { margin: 14px 0 6px; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 4px 0 14px 44px; font-size: 0.95rem; color: var(--ink-soft); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 2px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--charcoal); color: #fff; font-size: 0.85rem; font-weight: 600; }

/* geniş ekran: telefon sütunu */
@media (min-width: 700px) {
  body { background: #ebe8e1; }
  main { background: var(--surface); box-shadow: 0 0 0 1px var(--stone); min-height: 100dvh; }
  .topbar, .tabbar { max-width: 640px; margin: 0 auto; }
  .topbar { border-inline: 1px solid var(--stone); }
}
@media (max-width: 340px) { .brand-text small { display: none; } h1 { font-size: 1.8rem; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
