/* ------------------------------------------------------------
   Noart Jewelry
   Palette: chalk (zemin), basalt (mürekkep), malachite (vurgu)
   Type: Bodoni Moda (başlık) + Hanken Grotesk (metin)
------------------------------------------------------------ */

:root {
  --chalk: #F0F1EE;
  --paper: #F7F8F6;
  --tile: #E6E8E4;
  --basalt: #161918;
  --basalt-2: #202524;
  --muted: #5B6361;
  --muted-dark: #A9B0AC;
  --line: rgba(22, 25, 24, .16);
  --line-dark: rgba(240, 241, 238, .16);
  --accent: #2F7D5C;

  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --header-h: 72px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  background: var(--chalk);
  color: var(--basalt);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure { margin: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--basalt); color: var(--chalk);
  padding: .6rem 1rem; z-index: 100;
}
.skip:focus { left: 0; }

.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(240, 241, 238, .9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}

.wordmark {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: .32em;
  text-decoration: none;
  display: inline-flex; align-items: baseline; gap: .7rem;
  line-height: 1;
}
.wordmark span {
  font-family: var(--body);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .12em;
  color: var(--muted);
}

.nav { display: flex; gap: 2.25rem; }
.nav a {
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
  padding-block: .35rem;
  background: linear-gradient(var(--accent), var(--accent)) left bottom / 0 1px no-repeat;
  transition: background-size .25s ease;
}
.nav a:hover { background-size: 100% 1px; }

.bar-end { display: flex; align-items: center; gap: .75rem; }

.lang {
  font: inherit; font-size: .85rem; font-weight: 600; letter-spacing: .06em;
  background: none; color: inherit;
  border: 1px solid var(--line);
  padding: .35rem .7rem; cursor: pointer;
  transition: border-color .2s, background .2s;
}
.lang:hover { border-color: var(--basalt); }

.menu-btn {
  display: none;
  width: 44px; height: 44px;
  background: none; border: 0; cursor: pointer;
  position: relative;
}
.menu-btn span {
  position: absolute; left: 11px; right: 11px; height: 1.5px;
  background: var(--basalt);
  transition: transform .25s ease, top .25s ease;
}
.menu-btn span:nth-child(1) { top: 18px; }
.menu-btn span:nth-child(2) { top: 26px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-size: .98rem; font-weight: 500;
  text-decoration: none; cursor: pointer;
  padding: .9rem 1.6rem;
  border: 1px solid var(--basalt);
  transition: background .2s, color .2s, border-color .2s;
}
.btn-solid { background: var(--basalt); color: var(--chalk); }
.btn-solid:hover { background: var(--accent); border-color: var(--accent); }
.btn-line { background: transparent; color: var(--basalt); }
.btn-line:hover { background: var(--basalt); color: var(--chalk); }

/* ---------- Hero ---------- */
.hero { overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  min-height: calc(100svh - var(--header-h));
  padding-block: 2.5rem 4rem;
}

h1, h2, h3, .piece-name, .guide-name {
  font-family: var(--display);
  font-weight: 400;
}

h1 {
  font-size: clamp(2.6rem, 5.6vw, 5rem);
  line-height: 1.04;
  letter-spacing: -.012em;
  max-width: 13ch;
}
.lead {
  margin-top: 1.5rem;
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 34ch;
}
.actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: .75rem; }

.picker { margin-top: 3.25rem; }
.picker-label { font-size: .9rem; font-weight: 500; color: var(--muted); margin-bottom: .8rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }

.chip {
  display: inline-flex; align-items: center; gap: .55rem;
  font: inherit; font-size: .9rem; font-weight: 500;
  background: transparent; color: var(--basalt);
  border: 1px solid var(--line); border-radius: 999px;
  padding: .4rem .9rem .4rem .45rem; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.chip i {
  width: 20px; height: 20px; border-radius: 50%;
  flex: none;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.12);
}
.chip:hover { border-color: var(--basalt); }
.chip[aria-pressed="true"] { background: var(--basalt); color: var(--chalk); border-color: var(--basalt); }

.hero-stone { position: relative; }
.hero-stone::before {
  content: "";
  position: absolute; inset: 6% 4% 14%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 22%, transparent), transparent);
  filter: blur(30px);
  transition: background .6s ease;
  z-index: 0;
}
.stone-wrap { position: relative; z-index: 1; max-width: 620px; margin-inline: auto; }
.stone-wrap svg { width: 100%; height: auto; }

.hero-stone figcaption {
  position: relative; z-index: 1;
  max-width: 440px; margin: 1.25rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid var(--accent);
  transition: border-color .4s;
}
.cap-name { font-family: var(--display); font-size: 1.5rem; line-height: 1.2; }
.cap-desc { margin-top: .35rem; color: var(--muted); font-size: .98rem; }

/* tek orkestre hareket: halkalar dıştan içe açılır */
.ring {
  transform-box: fill-box;
  transform-origin: center;
  animation: bloom .9s cubic-bezier(.2, .7, .2, 1) both;
  animation-delay: calc(var(--i) * 50ms);
}
@keyframes bloom {
  from { opacity: 0; transform: scale(.7); }
  to   { opacity: 1; transform: scale(1); }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(4.5rem, 9vw, 8rem); }
.head { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -.01em;
  max-width: 18ch;
}
.head p { margin-top: 1rem; color: var(--muted); max-width: 46ch; }

/* ---------- Koleksiyon ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-bottom: 2rem; border-bottom: 1px solid var(--line); }
.filter {
  font: inherit; font-size: .98rem; font-weight: 500;
  background: none; border: 0; color: var(--muted);
  padding: 0 0 .8rem; cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color .2s, border-color .2s;
}
.filter:hover { color: var(--basalt); }
.filter[aria-pressed="true"] { color: var(--basalt); border-color: var(--basalt); }

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.2vw, 2rem) clamp(1rem, 2vw, 1.75rem);
}
.piece-tile {
  background: var(--tile);
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.piece-tile svg { width: 100%; height: 100%; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.piece:hover .piece-tile svg { transform: scale(1.04); }
.piece-name { font-size: 1.35rem; margin-top: .9rem; line-height: 1.2; }
.piece-meta { color: var(--muted); font-size: .95rem; }
.piece-ask {
  display: inline-block; margin-top: .5rem;
  font-size: .92rem; font-weight: 500;
  text-decoration: underline; text-underline-offset: 4px;
  text-decoration-color: var(--line);
  transition: text-decoration-color .2s;
}
.piece-ask:hover { text-decoration-color: var(--accent); }

/* ---------- Taş rehberi (koyu) ---------- */
.dark { background: var(--basalt); color: var(--chalk); }
.dark .head p { color: var(--muted-dark); }
.dark :focus-visible { outline-color: #8fd1b3; }

.guide { border-bottom: 1px solid var(--line-dark); }
.guide li {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 1.5rem 2.5rem;
  align-items: center;
  padding-block: 1.6rem;
  border-top: 1px solid var(--line-dark);
}
.guide-bands { height: 18px; display: block; }
.guide-name { font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.15; }
.guide-desc { color: var(--muted-dark); max-width: 52ch; }

/* ---------- Yaklaşım ---------- */
.approach {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3.5rem);
}
.approach article { border-top: 1px solid var(--basalt); padding-top: 1.25rem; }
.approach h3 { font-size: 1.6rem; line-height: 1.2; }
.approach p { margin-top: .7rem; color: var(--muted); max-width: 36ch; }

/* ---------- Özel tasarım ---------- */
.bespoke { background: var(--paper); border-top: 1px solid var(--line); }
.bespoke-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem); align-items: start;
}
.mail { margin-top: 2rem; color: var(--muted); font-size: .98rem; }
.mail a { color: var(--basalt); font-weight: 500; text-underline-offset: 4px; }

.form { display: grid; gap: 1.5rem; }
.field label { display: block; font-size: .9rem; font-weight: 500; color: var(--muted); margin-bottom: .3rem; }
.field input, .field textarea {
  width: 100%;
  font: inherit; color: var(--basalt);
  background: transparent;
  border: 0; border-bottom: 1px solid var(--basalt);
  border-radius: 0;
  padding: .6rem 0;
  resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); box-shadow: 0 1px 0 var(--accent); }
.field .err { border-bottom-color: #A33A2B; }
.form .btn { justify-self: start; }
.note { font-size: .88rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--basalt); color: var(--chalk); padding-block: 3rem; }
.site-footer .wordmark span { color: var(--muted-dark); }
.foot { display: grid; gap: .9rem; }
.foot p { color: var(--muted-dark); }
.foot .small { font-size: .88rem; }

/* ---------- 404 ---------- */
.notfound { min-height: 100svh; display: grid; place-content: center; text-align: left; gap: 1.25rem; padding: var(--gutter); }
.notfound h1 { max-width: 16ch; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide li { grid-template-columns: 120px minmax(0, 1fr); }
  .guide-desc { grid-column: 2; }
}

@media (max-width: 820px) {
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; gap: 0;
    background: var(--chalk);
    border-bottom: 1px solid var(--line);
    padding: .5rem var(--gutter) 1.5rem;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding-block: 1rem; font-size: 1.1rem; border-bottom: 1px solid var(--line); background: none; }

  .hero-grid { grid-template-columns: 1fr; min-height: 0; padding-block: 2rem 3rem; }
  .hero-stone { order: -1; }
  .stone-wrap { max-width: 420px; }
  h1 { max-width: 14ch; }

  .approach { grid-template-columns: 1fr; }
  .bespoke-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .wordmark span { display: none; }
  .guide li { grid-template-columns: 1fr; }
  .guide-desc { grid-column: auto; }
  .guide-bands { max-width: 140px; }
  .actions .btn { flex: 1 1 100%; }
}

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

/* ---------- Fotoğraflar ---------- */
.stone-photo {
  display: block; width: 100%; aspect-ratio: 5 / 6; object-fit: cover;
  background: var(--tile);
  animation: photo-in .7s ease both;
}
@keyframes photo-in { from { opacity: 0; } to { opacity: 1; } }
.piece-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.piece:hover .piece-tile img { transform: scale(1.04); }
.guide-bands { position: relative; }
.guide-bands { width: 100%; max-width: 120px; height: auto; aspect-ratio: 1 / 1; overflow: hidden; }
.guide-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: reduce) { .stone-photo { animation: none; } }

/* ---------- Atölye ---------- */
.atelier { background: var(--paper); border-block: 1px solid var(--line); }
.atelier-grid {
  display: grid; grid-template-columns: 7fr 5fr; grid-template-rows: 1fr 1fr;
  gap: clamp(.75rem, 1.5vw, 1.25rem);
  height: clamp(420px, 56vw, 760px);
}
.atelier-grid figure { position: relative; margin: 0; background: var(--tile); overflow: hidden; }
.atelier-grid .a-big { grid-row: 1 / span 2; }
.atelier-grid img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.atelier-grid figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0;
  padding: 2.5rem 1.1rem .9rem; color: #F4F5F2;
  font-family: var(--display); font-size: 1.2rem;
  background: linear-gradient(to top, rgba(10,12,11,.6), transparent);
}
.steps-h { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: clamp(3rem, 6vw, 5rem); }
.steps {
  list-style: none; margin: 1.75rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.5rem);
}
.steps li { border-top: 1px solid var(--basalt); padding-top: 1rem; }
.steps .n { display: block; font-family: var(--display); font-size: 2.4rem; line-height: 1; color: var(--accent); transition: color .4s; }
.steps h4 { font-family: var(--display); font-weight: 400; font-size: 1.35rem; margin: .8rem 0 0; line-height: 1.2; }
.steps p { margin: .5rem 0 0; color: var(--muted); font-size: .98rem; max-width: 30ch; }

@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .atelier-grid { grid-template-columns: 1fr; grid-template-rows: none; height: auto; }
  .atelier-grid figure, .atelier-grid .a-big { grid-row: auto; aspect-ratio: 4 / 3; }
  .steps { grid-template-columns: 1fr; }
}
