/* ==========================================================
   Beha Yat Döşeme
   ========================================================== */

:root {
  --navy: #0F1A2B;
  --midnight: #1C2E4A;
  --dusty: #52677D;
  --mist: #BDC4D4;
  --sand: #D1CFC9;
  --paper: #F2F1EE;
  --paper-2: #E7E5E0;
  --ink: #0F1A2B;
  --ink-soft: #3E4F63;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", "Segoe UI", system-ui, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.22, .61, .21, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

h2 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); }
h3 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 400; }

p { margin: 0 0 1em; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

:focus-visible {
  outline: 2px solid var(--dusty);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--paper);
  color: var(--ink);
  padding: .6em 1em;
  transition: top .2s;
}
.skip:focus { top: 12px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.eyebrow {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: 1.4rem;
}
.eyebrow-dark { color: var(--dusty); }

/* Dikiş izi ayırıcı */
.stitch {
  border: 0;
  height: 1px;
  margin: 2rem 0 0;
  background: repeating-linear-gradient(90deg, currentColor 0 9px, transparent 9px 16px);
  color: var(--dusty);
  opacity: .7;
}

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .65em;
  padding: 1em 1.7em;
  font-family: var(--sans);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn-light { background: var(--paper); color: var(--navy); }
.btn-light:hover { background: var(--mist); }
.btn-ghost { color: var(--paper); border-color: rgba(242, 241, 238, .5); }
.btn-ghost:hover { border-color: var(--paper); background: rgba(242, 241, 238, .08); }
.btn-dark { background: var(--navy); color: var(--paper); }
.btn-dark:hover { background: var(--midnight); }

.ico { width: 1.25em; height: 1.25em; flex: none; }
.ico path:first-child,
.wa-float path:first-child { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.ico path:last-child,
.wa-float path:last-child { fill: currentColor; }

.text-link {
  color: var(--ink-soft);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px dashed var(--dusty);
  padding-bottom: 2px;
}
.text-link:hover { color: var(--ink); border-bottom-style: solid; }

/* ---------- Üst menü ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: var(--paper);
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(15, 26, 43, .96);
  box-shadow: 0 1px 0 rgba(189, 196, 212, .12);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  display: flex;
  align-items: baseline;
  gap: .5em;
  text-decoration: none;
}
.logo-main {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 400;
  letter-spacing: .04em;
}
.logo-sub {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--mist);
}
.main-nav { display: flex; align-items: center; gap: 2.4rem; }
.main-nav ul { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  text-decoration: none;
  font-size: .88rem;
  font-weight: 500;
  color: var(--sand);
  transition: color .25s;
}
.main-nav a:hover { color: var(--paper); }
.nav-phone {
  color: var(--paper) !important;
  padding: .55em 1.1em;
  border: 1px dashed rgba(189, 196, 212, .55);
  border-radius: 2px;
}
.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--navy);
  color: var(--paper);
  display: flex;
  align-items: flex-end;
  padding: 140px 0 clamp(80px, 12vh, 140px);
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -2;
}
.hero-strip {
  position: absolute;
  top: 0;
  bottom: 38%;
  left: 0;
  width: max(150vw, 160vh);
}
.js .hero-strip { opacity: 0; }
.js .hero-strip.is-ready { opacity: 1; animation: glide-in 2.6s var(--ease) both; }
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 88%;
  transform: translate3d(var(--shift, 0px), 0, 0);
  will-change: transform;
}
@keyframes glide-in {
  from { transform: translate3d(38vw, 0, 0); opacity: 0; }
  25% { opacity: 1; }
  to { transform: translate3d(0, 0, 0); opacity: 1; }
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(15, 26, 43, .75) 0%, rgba(15, 26, 43, .35) 40%, rgba(15, 26, 43, 0) 70%),
    linear-gradient(0deg, var(--navy) 0%, var(--navy) 36%, rgba(15, 26, 43, .6) 48%, rgba(15, 26, 43, 0) 66%),
    linear-gradient(180deg, rgba(15, 26, 43, .7) 0%, rgba(15, 26, 43, 0) 25%);
}
.hero-inner { position: relative; }
.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 5.6rem);
  max-width: 11.5em;
  margin-bottom: 1.6rem;
  text-shadow: 0 2px 40px rgba(15, 26, 43, .55);
}
.hero-lead {
  max-width: 34rem;
  color: var(--sand);
  font-size: 1.05rem;
  margin-bottom: 2.4rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-card {
  position: absolute;
  right: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  bottom: -110px;
  width: clamp(240px, 26vw, 360px);
  margin: 0;
  background: var(--paper);
  padding: 10px 10px 0;
  box-shadow: 0 30px 60px -20px rgba(15, 26, 43, .5);
  z-index: 2;
}
.hero-card figcaption {
  font-size: .78rem;
  color: var(--ink-soft);
  padding: .8em .2em 1em;
  border-top: 1px dashed var(--sand);
  margin-top: 10px;
}

/* ---------- Hizmetler ---------- */
.services { padding: clamp(150px, 18vw, 220px) 0 clamp(80px, 10vw, 140px); }
.section-head { max-width: 46rem; margin-bottom: clamp(56px, 8vw, 100px); }
.section-head h2 { color: var(--navy); }
.section-lead {
  margin: 1.4rem 0 0;
  max-width: 38rem;
  font-size: 1.05rem;
  color: var(--ink-soft);
}

.service {
  display: grid;
  grid-template-columns: 7fr 5fr;
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
  margin-bottom: clamp(80px, 11vw, 160px);
}
.service:last-child { margin-bottom: 0; }
.service-media { position: relative; grid-column: 1; grid-row: 1; }
.service-main { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.service-text {
  grid-column: 2;
  grid-row: 1;
  padding-top: 1.6rem;
  border-top: 1px dashed rgba(82, 103, 125, .55);
}
.service-no {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--dusty);
  margin-bottom: .6rem;
}
.service h3 { color: var(--navy); margin-bottom: 1.1rem; }
.service-text p { color: var(--ink-soft); }
.service-list {
  list-style: none;
  padding: 0;
  margin: 1.6rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.service-list li {
  font-size: .82rem;
  font-weight: 500;
  padding: .45em .95em;
  background: var(--paper-2);
  color: var(--navy);
  border-radius: 2px;
}

.service-flip { grid-template-columns: 5fr 7fr; }
.service-flip .service-media { grid-column: 2; }
.service-flip .service-text { grid-column: 1; }
.service-flip .section-head-split {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 0;
}
.section-head-split h2 { max-width: 15em; }
.work .stitch { margin-bottom: clamp(40px, 5vw, 64px); }

.gallery {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: clamp(180px, 20vw, 270px);
  grid-auto-flow: dense;
  gap: clamp(10px, 1.4vw, 18px);
}
.g { position: relative; overflow: hidden; background: var(--sand); }
.g-wide { grid-column: span 2; }
.g-tall { grid-row: span 2; }
.g:nth-child(4n + 2) { margin-top: 28px; }
.g-btn {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.g-par {
  display: block;
  position: absolute;
  inset: -8% 0;
  transform: translate3d(0, var(--py, 0px), 0);
  will-change: transform;
}
.g-par img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease), filter .6s;
}
.g-btn:hover img,
.g-btn:focus-visible img { transform: scale(1.06); }
.g-btn:focus-visible { outline-offset: -4px; outline-color: var(--paper); }

/* ---------- Nasıl çalışıyoruz ---------- */
.process {
  background: var(--midnight);
  color: var(--paper);
  padding: clamp(90px, 11vw, 160px) 0;
  overflow: hidden;
}
.process-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(48px, 7vw, 110px);
  align-items: start;
}
.process h2 { margin-bottom: 3rem; }
.process-photo { margin: 0; max-width: 420px; }
.process-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  position: relative;
}
.step {
  position: relative;
  counter-increment: step;
  padding: 0 0 clamp(36px, 5vw, 60px) 88px;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: -.1em;
  font-family: var(--serif);
  font-weight: 300;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--mist);
}
.step::after {
  content: "";
  position: absolute;
  left: 22px;
  top: 3.4rem;
  bottom: 1rem;
  width: 1px;
  background: repeating-linear-gradient(180deg, var(--dusty) 0 8px, transparent 8px 15px);
}
.step:last-child::after { display: none; }
.step h3 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); margin-bottom: .6rem; }
.step p { color: var(--mist); max-width: 30rem; margin: 0; }

/* ---------- İletişim ---------- */
.contact { padding: clamp(90px, 11vw, 160px) 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: stretch;
}
.contact h2 { color: var(--navy); font-size: clamp(2.1rem, 3.6vw, 3.1rem); }
.contact-list { margin: 2.4rem 0 2.6rem; }
.contact-list > div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px dashed rgba(82, 103, 125, .45);
}
.contact-list dt {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--dusty);
  padding-top: .35em;
}
.contact-list dd { margin: 0; }
.contact-list a {
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.3;
  color: var(--navy);
  background: linear-gradient(var(--dusty), var(--dusty)) 0 100% / 0 1px no-repeat;
  transition: background-size .4s var(--ease);
}
.contact-list a:hover { background-size: 100% 1px; }
.contact-map {
  position: relative;
  min-height: 420px;
  background: var(--sand);
}
.contact-map::before {
  content: "";
  position: absolute;
  inset: -14px 14px 14px -14px;
  border: 1px dashed var(--dusty);
  z-index: -1;
}
.contact-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(.35) contrast(1.02);
}

/* ---------- Alt bilgi ---------- */
.site-footer {
  background: var(--navy);
  color: var(--mist);
  padding: 72px 0 28px;
  font-size: .9rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 40px;
  border-bottom: 1px dashed rgba(189, 196, 212, .25);
}
.footer-logo {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--paper);
  margin-bottom: .4rem;
}
.footer-logo span {
  font-family: var(--sans);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--mist);
  margin-left: .4em;
}
.footer-note { max-width: 26rem; }
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .5rem;
}
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--paper); text-decoration: underline; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 24px;
  font-size: .8rem;
}
.footer-bottom p { margin: 0; }

/* ---------- WhatsApp yüzen buton ---------- */
.wa-float {
  display: none;
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--paper);
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px -8px rgba(15, 26, 43, .6);
  border: 1px dashed rgba(189, 196, 212, .55);
  outline-offset: 4px;
}
.wa-float svg { width: 28px; height: 28px; }

/* ---------- Lightbox ---------- */
.lightbox {
  border: 0;
  padding: 0;
  margin: 0;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  background: rgba(15, 26, 43, .96);
  color: var(--paper);
}
.lightbox::backdrop { background: rgba(15, 26, 43, .8); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; animation: lb-in .35s var(--ease); }
.lightbox figure { margin: 0; padding: 64px 72px; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: min(1280px, 100%); max-height: calc(100vh - 170px); max-height: calc(100dvh - 170px); width: auto; height: auto; object-fit: contain; }
.lightbox figcaption { margin-top: 1rem; font-size: .9rem; color: var(--mist); text-align: center; }
.lb-btn {
  position: absolute;
  background: none;
  border: 1px dashed rgba(189, 196, 212, .4);
  color: var(--paper);
  width: 50px;
  height: 50px;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 2px;
}
.lb-btn:hover { border-style: solid; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Scroll'da belirme ---------- */
.js .reveal {
  opacity: 0;
  transform: translate3d(0, 36px, 0);
  transition: opacity 1s var(--ease), transform 1.1s var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }
.js .hero-card.reveal { transform: translate3d(0, 60px, 0); transition-delay: .9s; }
.js .hero-card.reveal.is-in { transform: none; }

/* ==========================================================
   Duyarlı düzen
   ========================================================== */
@media (max-width: 980px) {
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background: none;
    border: 1px dashed rgba(189, 196, 212, .55);
    border-radius: 2px;
    color: var(--paper);
    cursor: pointer;
    z-index: 2;
  }
  .menu-toggle-lines,
  .menu-toggle-lines::before,
  .menu-toggle-lines::after {
    display: block;
    width: 20px;
    height: 1px;
    background: currentColor;
    position: relative;
    transition: transform .3s var(--ease), background-color .3s;
  }
  .menu-toggle-lines::before,
  .menu-toggle-lines::after { content: ""; position: absolute; left: 0; }
  .menu-toggle-lines::before { top: -6px; }
  .menu-toggle-lines::after { top: 6px; }
  .menu-toggle[aria-expanded="true"] .menu-toggle-lines { background: transparent; }
  .menu-toggle[aria-expanded="true"] .menu-toggle-lines::before { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle-lines::after { transform: translateY(-6px) rotate(-45deg); }

  .main-nav {
    position: fixed;
    inset: 0;
    background: var(--navy);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 100px var(--gutter) 40px;
    gap: 2.4rem;
    visibility: hidden;
    opacity: 0;
    transition: opacity .35s var(--ease), visibility .35s;
  }
  .main-nav.is-open { visibility: visible; opacity: 1; }
  .main-nav ul { flex-direction: column; gap: 1.2rem; }
  .main-nav ul a { font-family: var(--serif); font-size: 2.2rem; font-weight: 300; color: var(--paper); }

  .service,
  .service-flip { grid-template-columns: 1fr; }
  .service-media,
  .service-flip .service-media { grid-column: 1; grid-row: 1; }
  .service-text,
  .service-flip .service-text { grid-column: 1; grid-row: 2; }

  .process-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .process-photo { max-width: 360px; }
}

@media (max-width: 760px) {
  body { font-size: .98rem; }

  .hero {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0 0 56px;
    min-height: 0;
  }
  .hero-media {
    position: relative;
    inset: auto;
    height: 46svh;
    min-height: 280px;
    order: 0;
  }
  .hero-strip { bottom: 0; left: -95vw; width: max(250vw, 46svh * 2.5); }
  .hero-shade {
    background: linear-gradient(180deg, rgba(15, 26, 43, .75) 0%, rgba(15, 26, 43, 0) 30%),
                linear-gradient(0deg, var(--navy) 0%, rgba(15, 26, 43, 0) 40%);
    height: 46svh;
    min-height: 280px;
  }
  .hero-inner { margin-top: -54px; }
  .hero h1 { font-size: clamp(2.3rem, 10.5vw, 3.2rem); }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }

  .hero-card {
    position: relative;
    right: auto;
    bottom: auto;
    width: auto;
    margin: 44px var(--gutter) -120px 22%;
  }
  .services { padding-top: 170px; }


  .service-media,
  .service-flip .service-media { margin: 0; }

  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 44vw; }
  .g:nth-child(4n + 2) { margin-top: 0; }

  .step { padding-left: 70px; }
  .step::before { font-size: 2.1rem; }
  .step::after { left: 17px; top: 2.9rem; }

  .contact-list > div { grid-template-columns: 1fr; gap: .2rem; }
  .contact-list a { font-size: 1.3rem; }
  .contact-map { min-height: 340px; margin-left: 14px; }

  .wa-float { display: flex; }
  .site-footer { padding-bottom: 96px; }

  .lightbox figure { padding: 70px 0 40px; }
  .lb-prev, .lb-next {
    width: 44px;
    height: 64px;
    background: rgba(15, 26, 43, .72);
    border-color: rgba(242, 241, 238, .45);
  }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
}

@media (max-width: 420px) {
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 64vw; }
  .g-wide { grid-column: auto; }
  .g-tall { grid-row: span 2; }
}

/* ---------- Hareket azaltma ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js .hero-strip, .js .hero-strip.is-ready { animation: none; opacity: 1; }
  .hero-img, .g-par { transform: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .g-btn:hover img { transform: none; }
}
