/* ==========================================================
   Test Firma — Tasarım Sistemi
   Palet   : #0D0D0D (ink/siyah), #1A1A1A (charcoal), #F6F2EA (ivory),
             #E85D2C (turuncu — ana vurgu), #F2935B (açık turuncu),
             #6B6660 (muted text)
   Tipografi: "Fraunces" (başlık), "Work Sans" (gövde/arayüz)
   İmza     : sağ kenarda ilerleyen ince turuncu "rota" çizgisi
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Work+Sans:wght@400;500;600;700&display=swap');

:root {
  --ink: #0d0d0d;
  --navy: #1a1a1a;
  --ivory: #f6f2ea;
  --ivory-2: #efe9dd;
  --gold: #e85d2c;
  --gold-soft: #f2935b;
  --sage: #e85d2c;
  --muted: #6b6660;
  --line: rgba(13, 13, 13, 0.12);
  --line-light: rgba(246, 242, 234, 0.18);
  --radius: 2px;
  --font-display: 'Fraunces', 'Georgia', serif;
  --font-body: 'Work Sans', 'Segoe UI', sans-serif;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.01em;
}

em {
  font-style: italic;
  color: var(--gold);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
}
.btn-primary { background: var(--ink); color: var(--ivory); }
.btn-primary:hover { background: var(--gold); color: var(--ink); }
.btn-outline { border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-light { border-color: var(--line-light); color: var(--ivory); }
.btn-light:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-scrolled {
  background: rgba(246, 242, 234, 0.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding: 14px 0;
  box-shadow: 0 1px 0 var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.brand { font-family: var(--font-display); font-size: 22px; color: var(--ivory); letter-spacing: 0.01em; display: flex; align-items: center; }
.brand .logo-img { height: 34px; width: auto; display: block; }
.brand .logo-light { display: block; }
.brand .logo-dark { display: none; }
.site-header.is-scrolled .brand .logo-light { display: none; }
.site-header.is-scrolled .brand .logo-dark { display: block; }
.site-header.is-scrolled .brand { color: var(--ink); }
.brand .dot { color: var(--gold); }

.nav-links { display: flex; gap: 36px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--ivory);
  position: relative; padding-bottom: 4px;
}
.site-header.is-scrolled .nav-links a { color: var(--ink); }
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: var(--gold); transition: right 0.25s ease;
}
.nav-links a:hover::after { right: 0; }

.nav-cta { display: flex; align-items: center; gap: 18px; }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; position: relative; z-index: 110; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--ivory); margin: 5px 0; transition: transform 0.25s ease, opacity 0.25s ease; }
.site-header.is-scrolled .menu-toggle span { background: var(--ink); }
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Language switch ---------- */
.lang-switch { display: flex; align-items: center; gap: 2px; border: 1px solid var(--line-light); border-radius: 20px; padding: 3px; }
.site-header.is-scrolled .lang-switch { border-color: var(--line); }
.lang-switch a {
  display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 16px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.03em; color: rgba(246,242,234,0.75);
  transition: background 0.2s ease, color 0.2s ease;
}
.site-header.is-scrolled .lang-switch a { color: var(--muted); }
.lang-switch a.active { background: var(--gold); color: var(--ink) !important; }
.lang-switch .flag { font-size: 15px; line-height: 1; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(180deg, rgba(20,23,43,0.55) 0%, rgba(20,23,43,0.35) 40%, rgba(20,23,43,0.92) 100%), var(--navy);
  background-size: cover;
  background-position: center;
  color: var(--ivory);
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 2; width: 100%; padding-bottom: 90px; padding-top: 160px; }
.hero-location { font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 22px; }
.hero h1 { font-size: clamp(42px, 7vw, 88px); line-height: 1.02; max-width: 900px; }
.hero p.lede { max-width: 480px; font-size: 17px; color: rgba(246,242,234,0.82); margin-top: 26px; }
.hero-actions { display: flex; gap: 16px; margin-top: 40px; }

.hero-route {
  position: absolute; top: 0; right: 60px; bottom: 0; width: 1px;
  background: linear-gradient(180deg, transparent, var(--gold-soft) 20%, var(--gold-soft) 80%, transparent);
  z-index: 2; opacity: 0.6;
  display: none;
}
@media (min-width: 1024px) { .hero-route { display: block; } }

.scroll-cue {
  position: absolute; bottom: 36px; left: 32px; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(246,242,234,0.75);
}
.scroll-cue .line { width: 40px; height: 1px; background: var(--gold-soft); }

/* ---------- Stats strip ---------- */
.stats-strip {
  background: var(--ink); color: var(--ivory);
  padding: 46px 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-num { font-family: var(--font-display); font-size: 42px; color: var(--gold); }
.stat-label { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(246,242,234,0.65); margin-top: 6px; }

/* ---------- Section shell ---------- */
section { padding: 120px 0; }
.section-head { max-width: 620px; margin-bottom: 64px; }
.section-head p { color: var(--muted); font-size: 16px; margin-top: 18px; }

/* ---------- About ---------- */
.about { background: var(--ivory); }
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 72px; align-items: center; }
.about-media { position: relative; }
.about-media img { border-radius: var(--radius); width: 100%; height: 520px; object-fit: cover; }
.about-badge {
  position: absolute; left: -28px; bottom: -28px;
  background: var(--ivory); border: 1px solid var(--line);
  padding: 20px 24px; max-width: 220px;
  font-family: var(--font-display); font-size: 14px; color: var(--ink);
}
.about-badge b { color: var(--gold); display: block; font-size: 26px; margin-bottom: 4px; }
.about h2 { font-size: clamp(30px, 4vw, 46px); }
.about .quote { margin-top: 30px; padding-left: 22px; border-left: 2px solid var(--gold); font-family: var(--font-display); font-style: italic; font-size: 19px; color: var(--navy); }

/* ---------- Services ---------- */
.services { background: var(--navy); color: var(--ivory); }
.services .eyebrow { color: var(--gold-soft); }
.services .eyebrow::before { background: var(--gold-soft); }
.services .section-head p { color: rgba(246,242,234,0.7); }
.service-list { display: flex; flex-direction: column; }
.service-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
  padding: 56px 0; border-top: 1px solid var(--line-light);
}
.service-row:last-child { border-bottom: 1px solid var(--line-light); }
.service-row h3 { font-size: 30px; color: var(--ivory); margin-bottom: 14px; }
.service-row p { color: rgba(246,242,234,0.72); margin-bottom: 22px; }
.service-items { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.service-items li { font-size: 14px; color: rgba(246,242,234,0.88); display: flex; align-items: baseline; gap: 10px; }
.service-items li::before { content: '—'; color: var(--gold); }
.service-media img { width: 100%; height: 360px; object-fit: cover; border-radius: var(--radius); }

/* ---------- Gallery (carousel + lightbox) ---------- */
.gallery { background: var(--ivory); }
.gallery-carousel-wrap { position: relative; }
.gallery-track {
  display: flex; gap: 16px; overflow-x: auto; scroll-behavior: smooth;
  scroll-snap-type: x mandatory; padding-bottom: 8px;
  -ms-overflow-style: none; scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-item {
  flex: 0 0 auto; width: 320px; height: 380px; border-radius: var(--radius);
  overflow: hidden; scroll-snap-align: start; cursor: pointer; position: relative;
  background: var(--navy); border: none; padding: 0; font-family: inherit; display: block;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .zoom-hint {
  position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(20,23,43,0.55); color: var(--ivory); display: flex; align-items: center; justify-content: center;
  font-size: 16px; opacity: 0; transition: opacity 0.25s ease;
}
.gallery-item:hover .zoom-hint { opacity: 1; }
.gallery-empty { color: var(--muted); font-size: 14px; }

.gallery-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--ivory); color: var(--ink); font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(20,23,43,0.12);
  transition: background 0.2s ease, color 0.2s ease;
}
.gallery-arrow:hover { background: var(--ink); color: var(--ivory); }
.gallery-arrow.prev { left: -22px; }
.gallery-arrow.next { right: -22px; }
@media (max-width: 900px) {
  .gallery-arrow { display: none; }
  .gallery-item { width: 250px; height: 300px; }
}

/* Lightbox */
.lightbox-overlay {
  position: fixed; inset: 0; background: rgba(20,23,43,0.94); z-index: 1000;
  display: none; align-items: center; justify-content: center; padding: 40px;
}
.lightbox-overlay.is-open { display: flex; }
.lightbox-overlay img { max-width: 90vw; max-height: 82vh; object-fit: contain; border-radius: 2px; }
.lightbox-close {
  position: absolute; top: 24px; right: 30px; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(246,242,234,0.1); border: 1px solid rgba(246,242,234,0.3); color: var(--ivory);
  font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.lightbox-close:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%;
  background: rgba(246,242,234,0.1); border: 1px solid rgba(246,242,234,0.3); color: var(--ivory);
  font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.lightbox-nav:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.lightbox-nav.prev { left: 24px; }
.lightbox-nav.next { right: 24px; }
.lightbox-caption { position: absolute; bottom: 26px; left: 0; right: 0; text-align: center; color: rgba(246,242,234,0.75); font-size: 13px; }
@media (max-width: 700px) {
  .lightbox-nav { width: 40px; height: 40px; font-size: 16px; }
  .lightbox-nav.prev { left: 8px; } .lightbox-nav.next { right: 8px; }
  .lightbox-close { top: 12px; right: 12px; }
}

/* ---------- Blog ---------- */
.blog { background: var(--navy); color: var(--ivory); }
.blog .eyebrow { color: var(--gold-soft); }
.blog .eyebrow::before { background: var(--gold-soft); }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.blog-card { background: rgba(246,242,234,0.04); border: 1px solid var(--line-light); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.blog-card .thumb-wrap { height: 200px; overflow: hidden; }
.blog-card img { width: 100%; height: 100%; object-fit: cover; }
.blog-card .body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.blog-tag { display: inline-block; align-self: flex-start; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-soft); border: 1px solid var(--gold-soft); border-radius: 20px; padding: 3px 10px; margin-bottom: 12px; }
.blog-card .date { font-size: 12px; color: rgba(246,242,234,0.55); margin-bottom: 8px; }
.blog-card h3 { font-size: 19px; margin-bottom: 10px; }
.blog-card p { font-size: 14px; color: rgba(246,242,234,0.72); flex: 1; }
.blog-card .read-more { margin-top: 16px; font-size: 13px; font-weight: 600; color: var(--gold); }
.blog-empty { color: rgba(246,242,234,0.6); font-size: 14px; }
.blog-footer-cta { margin-top: 40px; text-align: center; }

/* Blog detail / listing page */
.page-hero { background: var(--navy); color: var(--ivory); padding: 170px 0 60px; }
.page-hero .eyebrow { color: var(--gold-soft); }
.page-hero .eyebrow::before { background: var(--gold-soft); }
.page-hero h1 { font-size: clamp(32px, 5vw, 50px); }
.blog-filters { display: flex; gap: 10px; margin-top: 30px; flex-wrap: wrap; }
.blog-filters a {
  padding: 9px 20px; border: 1px solid var(--line-light); border-radius: 20px;
  font-size: 13px; font-weight: 600; color: rgba(246,242,234,0.75); transition: all 0.2s ease;
}
.blog-filters a:hover { border-color: var(--gold-soft); color: var(--ivory); }
.blog-filters a.active { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); font-size: 15px; }
.blog-list-page { background: var(--ivory); padding: 80px 0 120px; }
.blog-list-page .blog-card { background: #fff; border-color: var(--line); color: var(--ink); }
.blog-list-page .blog-card .date, .blog-list-page .blog-card p { color: var(--muted); }
.blog-list-page .blog-card h3 { color: var(--ink); }
.blog-list-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 20px; }
.blog-post-page { background: var(--ivory); padding: 80px 0 120px; }
.blog-post-content { max-width: 760px; margin: 0 auto; }
.blog-post-content .cover { width: 100%; height: 420px; object-fit: cover; border-radius: var(--radius); margin-bottom: 36px; }
.blog-post-content .meta { display:flex; gap: 14px; align-items:center; font-size: 13px; color: var(--muted); margin-bottom: 18px;}
.blog-post-content h1 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 10px; }
.blog-post-content .content-body { font-size: 17px; line-height: 1.8; color: var(--ink); margin-top: 26px; white-space: pre-wrap; }
.blog-post-content .back-link { display:inline-block; margin-bottom: 26px; font-size: 13px; color: var(--muted); }
.blog-post-content .back-link:hover { color: var(--gold); }
@media (max-width: 900px) {
  .blog-grid, .blog-list-grid { grid-template-columns: 1fr; }
}

/* ---------- References (carousel, gallery ile aynı dil) ---------- */
.references { background: var(--ink); color: var(--ivory); padding: 100px 0; }
.references .eyebrow { color: var(--gold-soft); justify-content: center; }
.references .eyebrow::before { background: var(--gold-soft); }
.references .section-head h2 { font-size: clamp(28px, 4vw, 42px); }

.references-carousel-wrap { position: relative; margin-top: 20px; }
.references-track {
  display: flex; gap: 16px; overflow-x: auto; scroll-behavior: smooth;
  scroll-snap-type: x mandatory; padding-bottom: 8px;
  -ms-overflow-style: none; scrollbar-width: none;
}
.references-track::-webkit-scrollbar { display: none; }
.reference-item {
  flex: 0 0 auto; width: 220px; height: 160px; border-radius: var(--radius);
  scroll-snap-align: start; cursor: default; position: relative;
  background: var(--navy); border: 1px solid var(--line-light);
  display: flex; align-items: center; justify-content: center; padding: 12px;
  transition: border-color 0.25s ease;
}
a.reference-item { cursor: pointer; }
.reference-item:hover { border-color: var(--gold); border-width: 2px; }
.reference-item img {
  width: 100%; height: 100%; object-fit: contain;
}
.reference-name {
  font-family: var(--font-display); font-size: 18px; color: rgba(246,242,234,0.75);
  text-align: center;
}

.references-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-light);
  background: var(--ivory); color: var(--ink); font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0,0,0,0.35);
  transition: background 0.2s ease, color 0.2s ease;
}
.references-arrow:hover { background: var(--gold); color: var(--ink); }
.references-arrow.prev { left: -22px; }
.references-arrow.next { right: -22px; }
@media (max-width: 900px) {
  .references-arrow { display: none; }
  .reference-item { width: 170px; height: 130px; }
}

/* ---------- Contact ---------- */
.contact { background: var(--ivory); }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 72px; }
.contact-people { display: flex; flex-direction: column; gap: 26px; margin-top: 34px; }
.contact-person { border-top: 1px solid var(--line); padding-top: 18px; }
.contact-person .name { font-family: var(--font-display); font-size: 18px; }
.contact-person a { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; }
.contact-person a:hover { color: var(--gold); }
.contact-address { margin-top: 30px; font-size: 14px; color: var(--muted); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  border: 1px solid var(--line); background: #fff; padding: 13px 14px;
  font-family: var(--font-body); font-size: 14px; color: var(--ink); border-radius: var(--radius);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.form-note { font-size: 13px; margin-top: 14px; }
.form-note.success { color: #3a6b52; }
.form-note.error { color: #a4453a; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(246,242,234,0.7); padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .brand { color: var(--ivory); }
.footer-brand p { font-size: 14px; margin-top: 16px; max-width: 260px; }
.footer-col h4 { font-family: var(--font-body); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 16px; }
.footer-col a, .footer-col span { display: block; font-size: 14px; margin-bottom: 10px; color: rgba(246,242,234,0.7); }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--line-light); display: flex; justify-content: space-between; font-size: 13px; }

/* ---------- Responsive ---------- */
@keyframes navFadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 900px) {
  .nav-links, .nav-cta .btn-outline { display: none; }
  .menu-toggle { display: block; }
  .nav-links.is-open {
    display: flex; flex-direction: column; gap: 0;
    position: fixed; top: 0; left: 0; right: 0; z-index: 99;
    height: 100vh; height: 100dvh;
    background: var(--ink); box-shadow: none;
    padding: 110px 40px 40px; overflow-y: auto;
    counter-reset: navitem;
    animation: navFadeIn 0.3s ease;
  }
  .nav-links.is-open li {
    counter-increment: navitem;
    border-bottom: 1px solid var(--line-light);
  }
  .nav-links.is-open li:last-child { border-bottom: none; }
  .nav-links.is-open a {
    color: var(--ivory) !important; font-family: var(--font-display); font-weight: 500;
    font-size: 26px; padding: 20px 0; display: flex; align-items: baseline; gap: 18px;
    transition: color 0.2s ease;
  }
  .nav-links.is-open a::before {
    content: counter(navitem, decimal-leading-zero);
    font-family: var(--font-body); font-size: 12px; font-weight: 600; color: var(--gold);
    letter-spacing: 0.04em;
  }
  .nav-links.is-open a::after { display: none; }
  .nav-links.is-open a:hover, .nav-links.is-open a:active { color: var(--gold) !important; }
  body.menu-open { overflow: hidden; }
  .about-grid, .contact-grid, .service-row, .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .service-items { grid-template-columns: 1fr; }
  .about-badge { position: static; margin-top: 20px; }
  .form-grid { grid-template-columns: 1fr; }
  section { padding: 80px 0; }
  .footer-bottom { flex-direction: column; gap: 10px; }
}

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