/* =================================================================
   JIYAN MEN — Site Stili
   Tema: terzi atölyesinden ilham — kumaş, iplik, tebeşir çizgisi.
   Palet: espresso siyahı zemin, fildişi metin, pirinç/altın iplik
   rengi vurgu, bordo ikinci vurgu.
================================================================= */

:root {
  --espresso: #15130e;
  --panel: #1c1911;
  --panel-2: #211d14;
  --ivory: #ece4d3;
  --ivory-dim: #b9b0a0;
  --gold: #b8935a;
  --gold-soft: #d9bd8c;
  --burgundy: #7a3232;
  --line: rgba(236, 228, 211, 0.14);
  --line-strong: rgba(184, 147, 90, 0.55);

  --font-display: "Fraunces", "Iowan Old Style", serif;
  --font-body: "Work Sans", "Segoe UI", sans-serif;

  --container: 1180px;
  --radius: 2px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--espresso);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Tebeşir çizgisi / dikiş ayracı (imza öge) ---------- */
.stitch-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 auto 28px;
  width: fit-content;
  color: var(--gold);
}
.stitch-divider .stitch-line {
  width: 56px;
  height: 0;
  border-top: 2px dashed var(--gold);
}
.stitch-divider .stitch-label {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

/* ---------- Üst Menü ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 22px 0;
  background: linear-gradient(to bottom, rgba(21, 19, 14, 0.9), transparent);
  transition: background 0.35s ease, padding 0.35s ease;
}
.site-header.scrolled {
  background: rgba(21, 19, 14, 0.92);
  backdrop-filter: blur(6px);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand-mark {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--ivory);
}
.brand-mark em {
  color: var(--gold);
  font-style: normal;
}
.site-nav {
  display: flex;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  border-bottom: 1px solid transparent;
  padding-bottom: 4px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.site-nav a:hover {
  color: var(--gold-soft);
  border-color: var(--gold);
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--ivory);
  padding: 8px 10px;
  cursor: pointer;
}

/* ---------- Hero / Video Slider ---------- */
.hero-slider {
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  background: #0e0c08;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
  pointer-events: none;
}
.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide video,
.hero-slide .hero-fallback-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-fallback-img {
  background: radial-gradient(circle at 30% 20%, #2a2317 0%, #15130e 70%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 13, 9, 0.55) 0%,
    rgba(15, 13, 9, 0.35) 40%,
    rgba(15, 13, 9, 0.85) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 5;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
}

.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 18px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 9vw, 108px);
  line-height: 0.98;
  margin: 0;
  color: var(--ivory);
  font-weight: 600;
}
.hero-title em {
  font-style: italic;
  color: var(--gold);
}

.hero-sub {
  margin-top: 20px;
  max-width: 560px;
  color: var(--ivory-dim);
  font-size: 17px;
}

.hero-cta {
  margin-top: 36px;
  display: inline-flex;
  gap: 18px;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--gold);
  color: var(--ivory);
  background: transparent;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
  border-radius: var(--radius);
  font-family: var(--font-body);
}
.btn:hover {
  background: var(--gold);
  color: #1a170f;
}
.btn-solid {
  background: var(--gold);
  color: #1a170f;
}
.btn-solid:hover {
  background: var(--gold-soft);
}

.hero-scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hero-scroll-cue::after {
  content: "";
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--gold), transparent);
  animation: jm-scroll-pulse 1.8s ease-in-out infinite;
}
@keyframes jm-scroll-pulse {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 1; }
}

/* Slider controls */
.hero-dots {
  position: absolute;
  z-index: 6;
  bottom: 28px;
  right: 40px;
  display: flex;
  gap: 10px;
}
.hero-dot {
  width: 26px;
  height: 3px;
  background: rgba(236, 228, 211, 0.35);
  border: none;
  cursor: pointer;
  padding: 0;
}
.hero-dot.is-active {
  background: var(--gold);
}
.hero-arrow {
  position: absolute;
  z-index: 6;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(21, 19, 14, 0.4);
  border: 1px solid var(--line-strong);
  color: var(--ivory);
  width: 46px;
  height: 46px;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.hero-arrow:hover {
  background: rgba(184, 147, 90, 0.35);
}
.hero-arrow.prev { left: 32px; }
.hero-arrow.next { right: 32px; }

@media (max-width: 640px) {
  .hero-arrow { display: none; }
  .hero-dots { right: 50%; transform: translateX(50%); }
}

/* ---------- Genel Bölüm Yapısı ---------- */
section {
  padding: 110px 0;
  position: relative;
}
.section-heading {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}
.section-heading h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 44px);
  margin: 0 0 14px;
  font-weight: 600;
}
.section-heading p {
  color: var(--ivory-dim);
  margin: 0;
}

/* ---------- Biyografi ---------- */
.bio-section {
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.bio-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
  align-items: center;
}
.bio-portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--panel-2);
  border: 1px solid var(--line-strong);
  overflow: hidden;
}
.bio-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bio-portrait .portrait-placeholder {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ivory-dim);
  font-size: 13px;
  text-align: center;
  padding: 24px;
  letter-spacing: 0.05em;
}
.bio-portrait::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid var(--gold);
  opacity: 0.55;
  pointer-events: none;
}

.bio-copy .stitch-divider {
  margin: 0 0 20px;
}
.bio-name {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 42px);
  margin: 0 0 6px;
}
.bio-role {
  color: var(--gold-soft);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 26px;
}
.bio-text p {
  color: var(--ivory-dim);
  margin: 0 0 18px;
  white-space: pre-line;
}

@media (max-width: 880px) {
  .bio-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .bio-portrait {
    max-width: 340px;
    margin: 0 auto;
  }
}

/* ---------- Marka / İstatistik ---------- */
.brand-section {
  background: var(--espresso);
}
.brand-copy {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
  color: var(--ivory-dim);
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 820px;
  margin: 0 auto;
}
.stat-card {
  text-align: center;
  padding: 28px 16px;
  border: 1px solid var(--line);
}
.stat-card .stat-num {
  font-family: var(--font-display);
  font-size: 40px;
  color: var(--gold);
}
.stat-card .stat-label {
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}
@media (max-width: 640px) {
  .stat-row { grid-template-columns: 1fr; }
}

/* ---------- Ürünler ---------- */
.products-section {
  background: var(--panel);
  border-top: 1px solid var(--line);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}
.product-card {
  background: var(--panel-2);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.product-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
}
.product-thumb {
  aspect-ratio: 4 / 5;
  background: #241f16;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-thumb .thumb-placeholder {
  font-size: 12px;
  color: var(--ivory-dim);
  text-align: center;
  padding: 20px;
}
.product-body {
  padding: 20px 22px 26px;
}
.product-body h3 {
  font-family: var(--font-display);
  font-size: 20px;
  margin: 0 0 8px;
  font-weight: 600;
}
.product-price {
  color: var(--gold-soft);
  font-size: 13px;
  letter-spacing: 0.08em;
  margin: 0 0 10px;
}
.product-desc {
  color: var(--ivory-dim);
  font-size: 14px;
  margin: 0;
}
.empty-state {
  text-align: center;
  color: var(--ivory-dim);
  border: 1px dashed var(--line-strong);
  padding: 48px 24px;
  grid-column: 1 / -1;
}

/* ---------- Galeri ---------- */
.gallery-section {
  background: var(--espresso);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.gallery-item {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--line);
  position: relative;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img {
  transform: scale(1.06);
}
.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 12px;
  background: linear-gradient(to top, rgba(15,13,9,0.85), transparent);
  font-size: 12px;
  color: var(--ivory);
}

/* ---------- İletişim / Footer ---------- */
.contact-section {
  background: var(--panel);
  border-top: 1px solid var(--line);
  text-align: center;
}
.contact-section .stitch-divider {
  margin-bottom: 22px;
}
.contact-details {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 34px;
  color: var(--ivory-dim);
  font-size: 14px;
}
.contact-details strong {
  display: block;
  color: var(--gold-soft);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.site-footer {
  background: var(--espresso);
  padding: 32px 0;
  text-align: center;
  font-size: 12px;
  color: var(--ivory-dim);
  border-top: 1px solid var(--line);
}
.site-footer a {
  color: var(--ivory-dim);
  text-decoration: none;
  border-bottom: 1px dotted var(--line-strong);
}
.site-footer a:hover {
  color: var(--gold-soft);
}

/* ---------- Responsive Menü ---------- */
@media (max-width: 780px) {
  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 240px;
    background: var(--panel);
    flex-direction: column;
    padding: 100px 32px;
    gap: 26px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    border-left: 1px solid var(--line);
  }
  .site-nav.is-open {
    transform: translateX(0);
  }
  .nav-toggle {
    display: block;
  }
}

/* focus visibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
