@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage-var.woff") format("woff"); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-var.woff") format("woff"); font-weight: 300 900; font-display: swap; }
/* Aybalia — layout: full-bleed colour-shifting 3D stage, sticky scroll scene, shelf strip, filterable catalogue.
   Single deliberate light look built from the logo's forest green and leaf gold. */
:root {
  --forest: #0f4a2b;
  --forest-ink: #0c2a1a;
  --leaf: #e2ae12;
  --paper: #f5f7f1;
  --card: #ffffff;
  --muted: #5b6b60;
  --line: #dfe5da;
  --tint: #fbe3de;      /* aktif kategori zemini (JS ile değişir) */
  --accent: #c4352b;    /* aktif kategori rengi */
  --deep: #6e1712;
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 22px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--forest-ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow {
  margin: 0 0 .7rem; font-size: .78rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--deep);
}
h1, h2, h3, h4 { font-family: var(--display); text-wrap: balance; margin: 0; }

.btn {
  display: inline-flex; align-items: center; gap: .5rem; padding: .95rem 1.6rem;
  border-radius: 999px; font-weight: 700; text-decoration: none; border: 0;
  transition: transform .25s ease, background-color .4s ease, box-shadow .25s ease;
}
.btn-solid { background: var(--forest); color: #fff; box-shadow: 0 10px 24px -12px rgba(15,74,43,.7); }
.btn-solid:hover { transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background-color .3s ease, box-shadow .3s ease;
}
.site-header.is-solid { background: rgba(245,247,241,.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.header-in { display: flex; align-items: center; gap: 1.5rem; height: 68px; }
.brand img { height: 30px; width: auto; }
.main-nav { display: flex; gap: 1.6rem; margin-left: auto; font-weight: 600; font-size: .95rem; }
.main-nav a { text-decoration: none; position: relative; padding-block: .3rem; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--leaf); transition: right .3s ease; }
.main-nav a:hover::after { right: 0; }
.lang { display: flex; background: rgba(255,255,255,.75); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang button { border: 0; background: transparent; padding: .35rem .7rem; border-radius: 999px; font-size: .8rem; font-weight: 700; letter-spacing: .06em; color: var(--muted); }
.lang button[aria-pressed="true"] { background: var(--forest); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--tint);
  transition: background-color .9s ease;
  padding-top: calc(68px + env(safe-area-inset-top, 0px));
  isolation: isolate;
}
.hero::before { /* yumuşak ışık */
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70%; aspect-ratio: 1; z-index: -1;
  background: radial-gradient(closest-side, rgba(255,255,255,.85), rgba(255,255,255,0));
}
.hero-word {
  position: absolute; inset: 38% 0 auto 0; z-index: -1; text-align: center; pointer-events: none;
  font-family: var(--display); font-weight: 800; line-height: .8; letter-spacing: -.04em;
  font-size: clamp(5rem, 19vw, 17rem); color: var(--accent); opacity: .14; white-space: nowrap;
  transition: color .9s ease;
}
.hero-word span { display: inline-block; }
.hero-word span.swap { animation: wordIn .9s cubic-bezier(.2,.8,.2,1); }
@keyframes wordIn { from { transform: translateY(30%) scale(.96); opacity: 0; filter: blur(8px); } }

.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 2rem; min-height: min(760px, calc(100svh - 68px)); padding-block: 2rem 3rem; }
.hero-copy { min-width: 0; }
.hero-title { font-size: clamp(2.6rem, 6vw, 4.8rem); line-height: .98; letter-spacing: -.035em; font-weight: 800; color: var(--forest); margin-bottom: 1.1rem; }
.hero-sub { font-size: clamp(1.02rem, 1.4vw, 1.18rem); max-width: 34ch; color: var(--forest-ink); margin: 0 0 1.8rem; }

.hero-stage-wrap { min-width: 0; display: grid; justify-items: center; gap: .6rem; }
.stage {
  position: relative; width: 100%; height: clamp(360px, 56vh, 560px);
  perspective: 1400px; perspective-origin: 50% 40%;
  touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab;
}
.stage:active { cursor: grabbing; }
.ring { position: absolute; inset: 0; transform-style: preserve-3d; }
.floor {
  position: absolute; left: 10%; right: 10%; bottom: 4%; height: 18%;
  background: radial-gradient(closest-side, rgba(0,0,0,.16), rgba(0,0,0,0));
  transform: rotateX(70deg); filter: blur(4px);
}
.item {
  position: absolute; left: 50%; bottom: 8%;
  width: var(--w, 260px); height: var(--h, 420px); margin-left: calc(var(--w, 260px) / -2);
  transform-style: preserve-3d; will-change: transform, opacity, filter;
}
.item .float { width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .35s ease-out; }
.item.is-front .float { animation: bob 4.6s ease-in-out infinite; }
.item img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%;
  pointer-events: none;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .4s ease-out;
}
.item .shadow { position: absolute; left: 12%; right: 12%; bottom: -5%; height: 9%; background: radial-gradient(closest-side, rgba(0,0,0,.28), transparent); transform: translateZ(-1px); }
@keyframes bob { 0%,100% { transform: translateY(0) rotateZ(-1deg); } 50% { transform: translateY(-14px) rotateZ(1.2deg); } }

.stage-ui { display: flex; align-items: center; gap: 1rem; }
.arrow {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.8); display: grid; place-items: center; color: var(--forest-ink);
  transition: transform .2s ease, background-color .2s ease;
}
.arrow:hover { transform: scale(1.06); background: #fff; }
.arrow svg { width: 22px; height: 22px; }
.stage-label { display: grid; justify-items: center; text-align: center; min-width: 13rem; }
.stage-cat { font-family: var(--display); font-weight: 700; font-size: 1.35rem; color: var(--deep); transition: color .9s ease; }
.stage-view { border: 0; background: none; padding: .2rem .4rem; font-weight: 600; font-size: .9rem; text-decoration: underline; text-underline-offset: 3px; color: var(--forest-ink); }
.dots { display: flex; gap: .45rem; }
.dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: rgba(0,0,0,.18); transition: width .35s ease, background-color .35s ease; }
.dots button[aria-selected="true"] { width: 28px; border-radius: 6px; background: var(--accent); }

/* ---------- Scroll scene ---------- */
.show { position: relative; height: calc(var(--n, 5) * 85vh + 100vh); }
.show-sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  background: var(--stint, #fbe3de); transition: background-color .8s ease;
  display: flex; align-items: center; padding-top: 68px;
}
.show-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem; align-items: center; height: 100%; }
.show-text { min-width: 0; position: relative; }
.show-heading { font-size: clamp(1.1rem, 1.6vw, 1.3rem); font-weight: 600; color: var(--muted); margin-bottom: 1.4rem; }
.show-panels { position: relative; min-height: 20rem; }
.panel { position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translateY(24px); transition: opacity .55s ease, transform .55s ease; pointer-events: none; }
.panel.is-active { opacity: 1; transform: none; pointer-events: auto; }
.panel h3 { font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 1; letter-spacing: -.03em; font-weight: 800; color: var(--sdeep, #6e1712); margin-bottom: .9rem; }
.panel p { font-size: 1.1rem; max-width: 30ch; margin: 0 0 1.4rem; }
.panel .btn { background: var(--sdeep, #6e1712); color: #fff; }
.panel .btn:hover { transform: translateY(-2px); }
.show-rail { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; gap: .4rem; flex-wrap: wrap; }
.show-rail li { font-size: .78rem; font-weight: 700; letter-spacing: .04em; padding: .3rem .7rem; border-radius: 999px; background: rgba(255,255,255,.5); color: var(--muted); transition: background-color .4s ease, color .4s ease; }
.show-rail li.is-active { background: var(--sdeep, #6e1712); color: #fff; }

.show-scene { position: relative; height: min(70vh, 620px); perspective: 1500px; min-width: 0; }
.group { position: absolute; inset: 0; transform-style: preserve-3d; pointer-events: none; }
.g-item {
  position: absolute; left: 50%; bottom: 6%; height: var(--gh, 78%); width: var(--gw, 34%);
  margin-left: calc(var(--gw, 34%) / -2);
  opacity: 0; transform: translate3d(var(--gx), 120px, -500px) rotateY(60deg);
  transition: opacity .6s ease, transform 1s cubic-bezier(.2,.8,.2,1);
  transition-delay: calc(var(--k) * 90ms);
}
.g-item img { position: relative; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; }
.g-item::after { content: ""; position: absolute; left: 14%; right: 14%; bottom: -10px; height: 18px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.16), transparent); }
.group.is-active .g-item { opacity: 1; transform: translate3d(var(--gx), 0, var(--gz)) rotateY(var(--gr)); }
.group.is-past .g-item { opacity: 0; transform: translate3d(var(--gx), -140px, -300px) rotateY(-50deg); transition-delay: 0ms; }
.group-spin { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateY(var(--spin, 0deg)) translateY(var(--lift, 0px)); }

/* ---------- Lineup ---------- */
.lineup { padding-block: clamp(4rem, 8vw, 7rem) 2rem; overflow: hidden; }
.lineup-title { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -.02em; color: var(--forest); margin-bottom: 1.5rem; }
.lineup-view { perspective: 1200px; perspective-origin: 30% 50%; }
.lineup-track { display: flex; align-items: flex-end; gap: 1.2rem; width: max-content; padding-block: 1.5rem 2rem; animation: drift 60s linear infinite; transform-style: preserve-3d; }
.lineup-view:hover .lineup-track { animation-play-state: paused; }
.lineup-track button { border: 0; background: none; padding: 0; height: 210px; flex: 0 0 auto; transform: rotateY(-28deg); transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.lineup-track button.wide { height: 120px; }
.lineup-track button:hover, .lineup-track button:focus-visible { transform: rotateY(0) translateY(-14px) scale(1.06); }
.lineup-track img { height: 100%; width: auto; }
@keyframes drift { to { transform: translateX(-50%); } }

/* ---------- Products ---------- */
.products { padding-block: clamp(3rem, 7vw, 6rem); }
.section-head { margin-bottom: 1.8rem; }
.section-title { font-size: clamp(2.2rem, 4.5vw, 3.6rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--forest); }
.chips { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1rem; }
.chip {
  display: inline-flex; align-items: center; gap: .5rem; border: 1.5px solid var(--line); background: var(--card);
  padding: .6rem 1.05rem; border-radius: 999px; font-weight: 600; font-size: .93rem; color: var(--forest-ink);
  transition: background-color .25s ease, border-color .25s ease, color .25s ease, transform .2s ease;
}
.chip:hover { transform: translateY(-1px); border-color: var(--chip, var(--forest)); }
.chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--chip, var(--forest)); }
.chip small { font-size: .78rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] { background: var(--chip, var(--forest)); border-color: var(--chip, var(--forest)); color: #fff; }
.chip[aria-pressed="true"] i { background: #fff; }
.chip[aria-pressed="true"] small { color: rgba(255,255,255,.8); }
.count { margin: 0 0 1.5rem; color: var(--muted); font-size: .92rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: clamp(1rem, 2vw, 1.6rem); perspective: 1400px; }
.card {
  display: flex; flex-direction: column; text-align: left; border: 0; padding: 0; background: var(--card);
  border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 0 var(--line), 0 18px 40px -28px rgba(12,42,26,.45);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d;
  transition: transform .35s ease-out, box-shadow .35s ease; animation: cardIn .6s cubic-bezier(.2,.8,.2,1) both;
  animation-delay: calc(var(--i, 0) * 60ms); min-width: 0;
}
.card:hover { box-shadow: 0 1px 0 var(--line), 0 30px 60px -30px rgba(12,42,26,.6); }
@keyframes cardIn { from { opacity: .001; transform: translateY(28px) rotateX(10deg); } }
.card-media { aspect-ratio: 4 / 4.4; overflow: hidden; background: var(--line); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.card:hover .card-media img { transform: scale(1.06); }
.card-body { padding: 1.1rem 1.25rem 1.3rem; display: grid; gap: .45rem; flex: 1; }
.tag { justify-self: start; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tagc, var(--forest)); background: color-mix(in srgb, var(--tagc, var(--forest)) 12%, white); padding: .25rem .6rem; border-radius: 999px; }
.card h3 { font-size: 1.22rem; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; color: var(--forest-ink); }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: auto; padding-top: .5rem; }
.swatches { display: flex; gap: 4px; }
.swatches span { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.size { font-size: .82rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.more { font-size: .85rem; font-weight: 700; color: var(--forest); white-space: nowrap; }

/* ---------- Values ---------- */
.values { padding-block: clamp(3rem, 7vw, 6rem); background: #e9efe3; }
.values-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.2rem, 3vw, 2.4rem); }
.value svg { width: 40px; height: 40px; color: var(--forest); margin-bottom: .9rem; }
.value h3 { font-size: 1.2rem; font-weight: 700; color: var(--forest); margin-bottom: .4rem; }
.value p { margin: 0; color: var(--muted); max-width: 32ch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest); color: #e6efe7; padding-block: 3.5rem calc(2.5rem + env(safe-area-inset-bottom, 0px)); }
.footer-in { display: grid; gap: .6rem; justify-items: start; }
.footer-logo { height: 34px; width: auto; margin-bottom: .6rem; }
.footer-tag { font-family: var(--display); font-size: 1.5rem; font-weight: 700; color: var(--leaf); margin: 0; }
.contact { display: grid; gap: .2rem; margin-block: 1.2rem .8rem; }
.contact-label { margin: 0; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #b8cdbd; }
.contact-mail { font-family: var(--body); font-size: 1.15rem; font-weight: 600; letter-spacing: 0; color: #fff; text-decoration: none; overflow-wrap: anywhere; user-select: all; }
.contact-mail:hover { text-decoration: underline; text-decoration-color: var(--leaf); text-underline-offset: 5px; }
.contact-sub { margin: 0; color: #d6e4d9; }
.footer-links { margin: .4rem 0 0; color: #b8cdbd; font-size: .92rem; }
.footer-links a { color: #fff; }
.footer-note, .footer-copy { margin: 0; color: #b8cdbd; font-size: .92rem; }

/* ---------- Modal ---------- */
.modal { border: 0; padding: 0; border-radius: 28px; width: min(980px, calc(100% - 32px)); max-height: calc(100svh - 32px); background: var(--card); color: var(--forest-ink); box-shadow: 0 40px 100px -30px rgba(0,0,0,.5); overflow: auto; overscroll-behavior: contain; }
.modal::backdrop { background: rgba(10,30,18,.55); backdrop-filter: blur(6px); }
.modal[open] { animation: pop .45s cubic-bezier(.2,.8,.2,1); }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.97) rotateX(6deg); } }
.modal-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); position: relative; }
.modal-media { background: var(--line); min-height: 100%; }
.modal-media img { width: 100%; height: 100%; object-fit: cover; }
.modal-body { padding: clamp(1.4rem, 3vw, 2.4rem); display: grid; gap: .9rem; align-content: start; min-width: 0; }
.modal-body h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.08; letter-spacing: -.02em; color: var(--forest); }
.modal-desc { margin: 0; }
.modal-block h4 { font-family: var(--body); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .45rem; }
.modal-block p { margin: 0; font-weight: 600; }
.variants, .features { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.variants li { display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .8rem; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 600; font-size: .9rem; }
.variants li i { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.features { display: grid; gap: .45rem; }
.features li { display: flex; gap: .55rem; align-items: flex-start; }
.features li svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: .2rem; color: var(--forest); }
.modal-x { position: absolute; top: 12px; right: 12px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0,0,0,.15); }
.modal-x svg { width: 20px; height: 20px; }
.modal-x:focus:not(:focus-visible), .modal-in:focus { outline: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .lang { margin-left: auto; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: .5rem; padding-block: 1.5rem 2.2rem; text-align: center; }
  .hero-copy { display: grid; justify-items: center; }
  .hero-sub { margin-inline: auto; }
  .stage { height: clamp(330px, 52vh, 460px); }
  .hero-word { inset: 58% 0 auto 0; }
  .show-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; gap: .5rem; padding-block: 1rem 1.5rem; }
  .show-scene { order: -1; height: 100%; min-height: 0; }
  .show-heading { display: none; }
  .show-panels { min-height: 11.5rem; }
  .panel h3 { font-size: clamp(2rem, 9vw, 2.8rem); }
  .panel p { font-size: 1rem; margin-bottom: 1rem; }
  .show-rail { margin-top: .5rem; }
  .show-rail li { font-size: .7rem; }
  .values-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modal-in { grid-template-columns: minmax(0, 1fr); }
  .modal-media { max-height: 42svh; }
  .lineup-track button { height: 150px; }
  .lineup-track button.wide { height: 86px; }
}
@media (max-width: 520px) {
  .values-grid { grid-template-columns: minmax(0, 1fr); }
  .stage-label { min-width: 0; }
  .brand img { height: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .lineup-track { animation: none; }
  .lineup-view { overflow-x: auto; }
}
