/* =========================================================
   The DiA — ortak tasarım sistemi
   ========================================================= */
:root {
  --terra: #C73F14;          /* logo turuncusu */
  --terra-600: #A5320D;
  --terra-300: #EC7D50;      /* koyu zemin üstünde okunur ton */
  --terra-50: #FBEDE4;
  --espresso: #1A110B;
  --espresso-2: #24170F;
  --espresso-3: #352318;
  --cream: #F7F1E8;
  --paper: #EFE5D5;
  --white: #FFFCF7;
  --ink: #24180F;
  --ink-2: #5B4738;
  --muted: #8A7465;
  --line: #E3D5C3;
  --line-dark: rgba(247, 241, 232, .13);
  --sage: #A3BB9B;           /* mekândaki neon dal ve sandalyelerin yeşili */
  --sage-600: #557050;

  --font-sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;

  --radius: 18px;
  --radius-sm: 12px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(16px, 5vw, 56px);
  --maxw: 1180px;
  --header-h: 64px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.ico { width: 1.25em; height: 1.25em; flex-shrink: 0; }

/* ---------- tipografi ---------- */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--terra);
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.display {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(40px, 7vw, 84px);
  line-height: 1.02;
  letter-spacing: -.01em;
}
.display em { font-style: italic; color: var(--terra); }
.lead { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.7; color: var(--ink-2); font-weight: 400; }

/* ---------- butonlar ---------- */
.btn {
  --bg: var(--terra); --fg: var(--white);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-size: 15px; font-weight: 500; letter-spacing: .04em;
  transition: transform .35s var(--ease-out), background-color .3s, box-shadow .35s var(--ease-out);
  box-shadow: 0 10px 24px -12px rgba(199, 63, 20, .7);
  white-space: nowrap;
}
.btn:hover { background: var(--terra-600); transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(199, 63, 20, .8); }
.btn:active { transform: translateY(0) scale(.98); }
.btn .ico { width: 18px; height: 18px; transition: transform .35s var(--ease-out); }
.btn:hover .ico-arrow { transform: translateX(4px); }
.btn--ghost { --bg: transparent; --fg: currentColor; box-shadow: inset 0 0 0 1px currentColor; }
.btn--ghost:hover { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px currentColor; }
.btn--light { --bg: var(--cream); --fg: var(--ink); box-shadow: none; }
.btn--light:hover { background: var(--white); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 14px; }

/* ---------- açık/kapalı rozeti ---------- */
.status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; letter-spacing: .02em;
  padding: 7px 14px 7px 12px; border-radius: 999px;
  background: rgba(26, 17, 11, .45); color: var(--cream);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(247, 241, 232, .14);
}
.status:empty { display: none; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #9a8a7f; position: relative; }
.status.is-open .status-dot { background: var(--sage); }
.status.is-open .status-dot::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 1.5px solid var(--sage); animation: ping 2.4s var(--ease) infinite;
}
.status.is-soon .status-dot, .status.is-soon .status-dot::after { background: var(--terra-300); border-color: var(--terra-300); }
.status-detail { opacity: .7; font-weight: 400; }
.status-detail::before { content: '·'; margin-right: 8px; }
.status--light { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.status--light.is-open .status-dot { background: var(--sage-600); }
.status--light.is-open .status-dot::after { border-color: var(--sage-600); }
@keyframes ping { 0% { transform: scale(.6); opacity: .9; } 80%, 100% { transform: scale(1.9); opacity: 0; } }

/* ---------- header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease), color .4s;
  color: var(--cream);
}
.header .wrap { height: 100%; display: flex; align-items: center; gap: 24px; }
.header.is-solid {
  background: rgba(247, 241, 232, .88);
  -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px);
  box-shadow: 0 1px 0 rgba(36, 24, 15, .08);
  color: var(--ink);
}
.header-logo { position: relative; display: block; width: 72px; height: 38px; flex-shrink: 0; }
.header-logo img { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .4s var(--ease); }
.header-logo .logo-terra { opacity: 0; }
.header.is-solid .logo-terra { opacity: 1; }
.header.is-solid .logo-cream { opacity: 0; }
.header-nav { display: none; margin-left: auto; gap: 34px; }
.header-nav a {
  font-size: 14px; font-weight: 400; letter-spacing: .06em; position: relative; padding: 6px 0;
}
.header-nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out);
}
.header-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header-cta { margin-left: auto; }
/* mobilde hero'da büyük logo ve menü butonu zaten var: header sade kalsın */
@media (max-width: 959px) {
  .header-logo, .header-cta { transition: opacity .4s var(--ease), transform .4s var(--ease); }
  .home .header:not(.is-solid) .header-logo { opacity: 0; pointer-events: none; transform: translateY(-6px); }
  .home .header-cta { display: none; }  /* mobilde alttaki sabit "Menü" butonu var */
  .home .header-burger { margin-left: auto; }
}
.header-burger {
  width: 44px; height: 44px; margin-right: -10px; display: grid; place-items: center; border-radius: 50%;
}
.header-burger span, .header-burger span::before, .header-burger span::after {
  display: block; width: 22px; height: 1.5px; background: currentColor; border-radius: 2px; position: relative;
  transition: transform .4s var(--ease-out), opacity .2s;
}
.header-burger span::before, .header-burger span::after { content: ''; position: absolute; left: 0; }
.header-burger span::before { top: -7px; }
.header-burger span::after { top: 7px; width: 14px; }
@media (min-width: 960px) {
  :root { --header-h: 76px; }
  .header-nav { display: flex; }
  .header-cta { margin-left: 8px; }
  .header-burger { display: none; }
  .header-logo { width: 84px; height: 44px; }
}

/* ---------- mobil tam ekran menü ---------- */
.drawer {
  position: fixed; inset: 0; z-index: 60;
  background: var(--espresso); color: var(--cream);
  display: flex; flex-direction: column;
  padding: 0 var(--gutter) calc(24px + env(safe-area-inset-bottom));
  clip-path: circle(0 at calc(100% - 38px) 32px);
  visibility: hidden;
  transition: clip-path .7s var(--ease-out), visibility 0s .7s;
}
.drawer.is-open { clip-path: circle(150% at calc(100% - 38px) 32px); visibility: visible; transition: clip-path .7s var(--ease-out); }
.drawer-top { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; }
.drawer-top img { width: 72px; }
.drawer-close { width: 44px; height: 44px; margin-right: -10px; display: grid; place-items: center; }
.drawer-close .ico { width: 26px; height: 26px; }
.drawer nav { display: flex; flex-direction: column; margin-top: 6vh; }
.drawer nav a {
  font-family: var(--font-serif); font-size: clamp(40px, 11vw, 56px); line-height: 1.25; font-weight: 500;
  display: flex; align-items: baseline; gap: 16px;
  opacity: 0; transform: translateY(24px);
  transition: opacity .5s var(--ease), transform .7s var(--ease-out);
}
.drawer nav a small { font-family: var(--font-sans); font-size: 12px; letter-spacing: .2em; color: var(--terra-300); }
.drawer.is-open nav a { opacity: 1; transform: none; }
.drawer.is-open nav a:nth-child(1) { transition-delay: .15s; }
.drawer.is-open nav a:nth-child(2) { transition-delay: .21s; }
.drawer.is-open nav a:nth-child(3) { transition-delay: .27s; }
.drawer.is-open nav a:nth-child(4) { transition-delay: .33s; }
.drawer-foot { margin-top: auto; display: grid; gap: 14px; font-size: 14px; color: rgba(247, 241, 232, .7); }
.drawer-foot .socials { display: flex; gap: 10px; }

.socials { display: flex; gap: 10px; }
.socials a, .footer-col .socials a {
  width: 44px; height: 44px; padding: 0; border-radius: 50%; display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px currentColor; opacity: .85; transition: background-color .3s, color .3s, opacity .3s;
}
.socials a:hover { background: var(--terra); color: var(--white); box-shadow: none; opacity: 1; }
.socials .ico { width: 20px; height: 20px; }

/* ---------- footer ---------- */
.footer { background: var(--espresso); color: rgba(247, 241, 232, .72); padding: 72px 0 calc(32px + env(safe-area-inset-bottom)); font-size: 15px; }
.footer-top { display: grid; gap: 40px; }
.footer-brand img { width: 150px; }
.footer-brand p { margin-top: 18px; max-width: 30ch; font-family: var(--font-serif); font-style: italic; font-size: 22px; line-height: 1.35; color: var(--cream); }
.footer h4 { font-size: 12px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--terra-300); margin-bottom: 14px; }
.footer-col a { display: block; padding: 3px 0; transition: color .25s; }
.footer-col a:hover { color: var(--cream); }
.footer-bottom {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: rgba(247, 241, 232, .45);
}
/* tasarımcı imzası: en altta, tek başına bir satırda, çok küçük ve soluk */
.footer-bottom .credit {
  flex-basis: 100%; font-size: 10.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(247, 241, 232, .3); transition: color .35s var(--ease);
}
.credit-dash { margin: 0 .5em; opacity: .6; }
.credit-name {
  padding-bottom: 3px;
  background: linear-gradient(var(--terra-300), var(--terra-300)) left bottom / 0 1px no-repeat;
  transition: background-size .5s var(--ease-out), color .35s var(--ease);
}
.footer-bottom .credit:hover { color: rgba(247, 241, 232, .55); }
.footer-bottom .credit:hover .credit-name { color: var(--cream); background-size: 100% 1px; }
@media (min-width: 760px) {
  .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

/* ---------- alttan açılan panel (ürün detayı, filtre) ---------- */
.sheet {
  position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-end; justify-content: center;
  visibility: hidden; pointer-events: none;
}
.sheet.is-open { visibility: visible; pointer-events: auto; }
.sheet-backdrop {
  position: absolute; inset: 0; background: rgba(20, 12, 7, .55);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; transition: opacity .4s var(--ease);
}
.sheet.is-open .sheet-backdrop { opacity: 1; }
.sheet-panel {
  position: relative; width: 100%; max-width: 560px; max-height: 88vh; max-height: 88dvh;
  background: var(--cream); border-radius: 26px 26px 0 0;
  box-shadow: 0 -20px 60px rgba(20, 12, 7, .3);
  transform: translateY(105%); transition: transform .55s var(--ease-out);
  display: flex; flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom);
}
.sheet.is-open .sheet-panel { transform: translateY(var(--drag, 0px)); }
.sheet.is-dragging .sheet-panel { transition: none; }
.sheet-grip { padding: 12px 0 4px; display: grid; place-items: center; touch-action: none; cursor: grab; }
.sheet-grip::before { content: ''; width: 42px; height: 4px; border-radius: 4px; background: var(--line); }
.sheet-close {
  position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: var(--white); box-shadow: 0 0 0 1px var(--line); z-index: 2;
}
.sheet-close .ico { width: 18px; height: 18px; }
.sheet-body { overflow-y: auto; overscroll-behavior: contain; padding: 8px 24px 28px; }
@media (min-width: 760px) {
  .sheet { align-items: center; }
  .sheet-panel { border-radius: 26px; transform: translateY(24px) scale(.97); opacity: 0; transition: transform .45s var(--ease-out), opacity .3s; }
  .sheet.is-open .sheet-panel { transform: none; opacity: 1; }
  .sheet-grip { visibility: hidden; }
  .sheet-body { padding: 8px 36px 36px; }
}
body.is-locked { overflow: hidden; }

/* ---------- kaydırınca beliren öğeler ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform 1.1s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .reveal { opacity: 1; transform: none; }
}
