/* =========================================================================
   Bittacı Fırını - "Un, Taş, Zaman"
   Parşömen zemin, közlenmiş espresso mürekkep, tuğla kırmızısı tek aksan.
   Marcellus (epigrafik display) + Alegreya Sans (gövde).
   ========================================================================= */

:root {
  --paper: #f6f1e7;
  --paper-deep: #efe7d7;
  --ink: #27201a;
  --ink-soft: #4f463c;
  --brick: #a8332a;
  --brick-deep: #8c2a22;
  --line: rgba(39, 32, 26, 0.16);
  --serif: "Marcellus", serif;
  --sans: "Alegreya Sans", sans-serif;
  --max: 1200px;
  --pad: clamp(1.25rem, 4vw, 3rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* ------- header ------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
.site-header.scrolled {
  background: rgba(246, 241, 231, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.header-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-top: 1rem; padding-bottom: 1rem;
}
.wordmark {
  font-family: var(--serif); font-size: 1.45rem; letter-spacing: 0.12em;
  text-decoration: none; line-height: 1;
}
.wordmark span { color: var(--brick); }
.main-nav { display: flex; align-items: center; gap: 1.75rem; }
.main-nav a {
  text-decoration: none; font-weight: 500; font-size: 0.97rem;
  letter-spacing: 0.02em; color: var(--ink-soft);
  border-bottom: 1px solid transparent; padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--ink); border-color: var(--brick); }

.lang-toggle { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang-toggle button {
  font-family: var(--sans); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.06em; padding: 0.3rem 0.7rem; border: 0;
  background: transparent; color: var(--ink-soft); cursor: pointer;
}
.lang-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.nav-burger {
  display: none; flex-direction: column; gap: 5px; background: none;
  border: 0; cursor: pointer; padding: 6px;
}
.nav-burger span { width: 22px; height: 2px; background: var(--ink); transition: transform 0.25s, opacity 0.25s; }

@media (max-width: 820px) {
  .nav-burger { display: flex; }
  .main-nav {
    position: fixed; inset: 0; background: var(--paper);
    flex-direction: column; justify-content: center; gap: 2.2rem;
    transform: translateY(-100%); transition: transform 0.35s ease;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { font-size: 1.5rem; font-family: var(--serif); }
  body.nav-open { overflow: hidden; }
  .nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-burger.open span:nth-child(2) { opacity: 0; }
  .nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-burger { position: relative; z-index: 70; }
}

/* ------- hero ------- */
.hero {
  padding-top: clamp(6.5rem, 14vh, 9rem);
  padding-bottom: clamp(2.5rem, 6vh, 4.5rem);
}
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.hero-kicker {
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--brick); margin-bottom: 1.4rem;
}
.hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.7rem, 6.2vw, 4.6rem);
  line-height: 1.04; letter-spacing: 0.01em; margin-bottom: 1.4rem;
}
.hero h1 em { font-style: normal; color: var(--brick); }
.hero-lede {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--ink-soft);
  max-width: 34rem; margin-bottom: 2rem;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  font-size: 0.95rem; letter-spacing: 0.04em; border-radius: 2px;
  padding: 0.85rem 1.7rem; transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-primary { background: var(--brick); color: #fff; border: 1px solid var(--brick); }
.btn-primary:hover { background: var(--brick-deep); border-color: var(--brick-deep); }
.btn-ghost { border: 1px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.hero-rating { margin-top: 2.2rem; font-size: 0.95rem; color: var(--ink-soft); }
.hero-rating strong { font-family: var(--serif); font-size: 1.2rem; color: var(--ink); }
.hero-rating .stars { color: var(--brick); letter-spacing: 0.1em; }

.hero-figure { position: relative; }
.hero-figure .frame {
  position: relative; overflow: hidden; border-radius: 3px;
  aspect-ratio: 3 / 4; box-shadow: 0 24px 60px -28px rgba(39, 32, 26, 0.45);
}
.hero-figure img { width: 100%; height: 112%; object-fit: cover; }
.hero-figure figcaption {
  margin-top: 0.8rem; font-size: 0.85rem; color: var(--ink-soft); text-align: right;
}
.hero-figure::before {
  content: ""; position: absolute; inset: 1.2rem -1.2rem -1.2rem 1.2rem;
  border: 1px solid var(--line); border-radius: 3px; pointer-events: none;
}

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure::before { display: none; }
}

/* ------- fact strip ------- */
.fact-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.fact {
  padding: 1.6rem 1.2rem; text-align: center;
}
.fact + .fact { border-left: 1px solid var(--line); }
.fact .num { font-family: var(--serif); font-size: 1.9rem; line-height: 1.1; }
.fact .label { font-size: 0.88rem; color: var(--ink-soft); margin-top: 0.2rem; }
@media (max-width: 640px) {
  .fact-grid { grid-template-columns: 1fr; }
  .fact + .fact { border-left: 0; border-top: 1px solid var(--line); }
}

/* ------- sections ------- */
section { padding-top: clamp(3.5rem, 9vh, 6rem); padding-bottom: clamp(3.5rem, 9vh, 6rem); }
.section-head { max-width: 44rem; margin-bottom: clamp(2rem, 5vh, 3.2rem); }
.section-head h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem); line-height: 1.12; margin-bottom: 0.9rem;
}
.section-head p { color: var(--ink-soft); }
.rule { width: 56px; height: 2px; background: var(--brick); border: 0; margin: 0 0 1.2rem; }

/* story teaser */
.story-band { background: var(--paper-deep); }
.story-grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.story-grid .photo { overflow: hidden; border-radius: 3px; }
.story-grid .photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.story-copy h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.14; margin-bottom: 1.1rem;
}
.story-copy p { color: var(--ink-soft); margin-bottom: 1rem; }
.story-copy .link-more {
  font-weight: 700; color: var(--brick); text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 1px;
}
@media (max-width: 820px) { .story-grid { grid-template-columns: 1fr; } }

/* products */
.product-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.product-card {
  background: #fffdf8; border: 1px solid var(--line); border-radius: 3px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(39, 32, 26, 0.4); }
.product-card .ph { aspect-ratio: 4 / 3; overflow: hidden; }
.product-card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .ph img { transform: scale(1.045); }
.product-card .body { padding: 1.2rem 1.3rem 1.4rem; }
.product-card h3 { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; margin-bottom: 0.4rem; }
.product-card p { font-size: 0.95rem; color: var(--ink-soft); }
.product-note { margin-top: 1.6rem; font-size: 0.92rem; color: var(--ink-soft); }

/* video */
.video-band { background: var(--ink); color: var(--paper); }
.video-band .section-head h2 { color: var(--paper); }
.video-band .section-head p { color: rgba(246, 241, 231, 0.75); }
.video-shell {
  max-width: 420px; margin: 0 auto; border-radius: 4px; overflow: hidden;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.7);
}
.video-shell video { width: 100%; }
.video-credit { text-align: center; margin-top: 1rem; font-size: 0.85rem; color: rgba(246, 241, 231, 0.6); }
.video-duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 420px)); gap: 2rem; justify-content: center; }

/* reviews */
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.review {
  border: 1px solid var(--line); border-radius: 3px; padding: 1.7rem 1.6rem;
  background: #fffdf8; display: flex; flex-direction: column; gap: 1rem;
}
.review .stars { color: var(--brick); letter-spacing: 0.12em; font-size: 0.95rem; }
.review blockquote { font-size: 1rem; color: var(--ink-soft); font-style: italic; }
.review cite { font-style: normal; font-weight: 700; font-size: 0.92rem; }
.review-src { margin-top: 1.4rem; font-size: 0.9rem; color: var(--ink-soft); }
.review-src a { color: var(--brick); }

/* visit */
.visit-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 5vw, 3.5rem); }
.visit-info dl { display: grid; gap: 1.3rem; }
.visit-info dt {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--brick); margin-bottom: 0.25rem;
}
.visit-info dd { color: var(--ink-soft); }
.hours-table { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.hours-table td { padding: 0.45rem 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.hours-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.map-shell { border: 1px solid var(--line); border-radius: 3px; overflow: hidden; min-height: 380px; }
.map-shell iframe { width: 100%; height: 100%; min-height: 380px; border: 0; }
@media (max-width: 820px) { .visit-grid { grid-template-columns: 1fr; } }

/* gallery (hikaye / urunler) */
.gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem;
}
.gallery-grid figure { overflow: hidden; border-radius: 3px; border: 1px solid var(--line); background: #fffdf8; }
.gallery-grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.gallery-grid figcaption { padding: 0.7rem 0.9rem; font-size: 0.87rem; color: var(--ink-soft); }

/* timeline */
.timeline { position: relative; max-width: 760px; margin: 0 auto; padding-left: 2rem; }
.timeline::before {
  content: ""; position: absolute; left: 0.35rem; top: 0.4rem; bottom: 0.4rem;
  width: 1px; background: var(--line);
}
.tl-item { position: relative; padding-bottom: 2.6rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -1.95rem; top: 0.5rem;
  width: 9px; height: 9px; border-radius: 50%; background: var(--brick);
}
.tl-item .era { font-family: var(--serif); font-size: 1.5rem; margin-bottom: 0.4rem; }
.tl-item p { color: var(--ink-soft); max-width: 40rem; }

/* page hero (alt sayfalar) */
.page-hero { padding-top: clamp(7rem, 16vh, 10rem); padding-bottom: clamp(2rem, 5vh, 3rem); }
.page-hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.08; margin-bottom: 1rem;
}
.page-hero p { color: var(--ink-soft); max-width: 38rem; }

/* form (demo) */
.demo-form { display: grid; gap: 1rem; max-width: 480px; }
.demo-form label { font-weight: 700; font-size: 0.92rem; }
.demo-form input, .demo-form textarea {
  width: 100%; padding: 0.8rem 0.9rem; font: inherit; color: var(--ink);
  background: #fffdf8; border: 1px solid var(--line); border-radius: 2px; margin-top: 0.3rem;
}
.demo-form input:focus, .demo-form textarea:focus { outline: 2px solid var(--brick); outline-offset: 1px; }
.form-note { font-size: 0.88rem; color: var(--ink-soft); }

/* footer */
.site-footer { background: var(--ink); color: rgba(246, 241, 231, 0.78); }
.footer-grid {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem;
  padding-top: 3.2rem; padding-bottom: 2.4rem;
}
.site-footer .wordmark { color: var(--paper); }
.site-footer h4 {
  font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--paper); margin-bottom: 0.8rem;
}
.site-footer a { color: rgba(246, 241, 231, 0.78); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; display: grid; gap: 0.45rem; font-size: 0.95rem; }
.footer-bottom {
  border-top: 1px solid rgba(246, 241, 231, 0.16);
  padding-top: 1.3rem; padding-bottom: 1.6rem; font-size: 0.84rem;
  color: rgba(246, 241, 231, 0.55);
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }

/* reveal helper: görünürlük JS ile yönetilir, CSS asla gizlemez */
.reveal { will-change: transform, opacity; }
