/* =========================================================
   Ada Tedarik — tek sayfa statik site
   Görsel dil: Anchor teması (koyu zemin, Playfair Display
   başlıklar, Fjalla One etiketler, Poppins metin).
   Vurgu: #f50c1a kırmızı + #56e9b1 mint (Anchor varsayılanları).
   ========================================================= */

:root {
  /* Zemin & metin */
  --bg: #131314;            /* options_body_background_color */
  --bg-raised: #1b1b1e;
  --surface: #ffffff;
  --text: #f4f4f5;
  --text-soft: #a1a1aa;
  --ink: #131314;
  --ink-soft: #52525b;
  --line-dark: rgba(255, 255, 255, .1);
  --line-light: #e4e4e7;

  /* Vurgu */
  --accent: #f50c1a;          /* ana vurgu: buton, panel, çizgi (beyazla 4.2:1) */
  --accent-hover: #c80a15;    /* hover + beyaz zeminde kırmızı metin (6:1) */
  --accent-on-dark: #ff5c66;  /* koyu zeminde kırmızı metin (6:1) */

  /* İkincil vurgu: hover ve etiketler */
  --second: #56e9b1;          /* koyu zeminde (12:1); beyazda okunmaz (1.5:1) */
  --second-on-light: #0b7a55; /* beyaz zeminde mint yerine (5.3:1) */

  /* Placeholder */
  --ph-dark-a: #1e1e22;
  --ph-dark-b: #26262b;
  --ph-light-a: #eef0f4;
  --ph-light-b: #e3e7ee;

  /* Tipografi */
  --font-body: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-label: 'Fjalla One', 'Arial Narrow', Impact, sans-serif;

  /* Ölçüler */
  --header-h: 76px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --section-y: clamp(64px, 10vw, 110px);
}

/* ---------- Temel ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, figure, address { margin: 0; }
ul { padding: 0; list-style: none; }
address { font-style: normal; }
a { color: inherit; }
img { max-width: 100%; }

:focus-visible {
  outline: 3px solid var(--accent-on-dark);
  outline-offset: 3px;
}
.section--light :focus-visible { outline-color: var(--accent); }

section[id] { scroll-margin-top: var(--header-h); }

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Ortak parçalar ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-label);
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--second);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 4px; height: 12px;
  background: currentColor;
}
.section--light .eyebrow { color: var(--second-on-light); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 30px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-label);
  font-size: 15px;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  transition: background-color .2s ease, transform .2s ease;
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: translateY(1px); }

.btn--light { background: #fff; color: var(--accent-hover); }
.btn--light:hover { background: var(--second); color: var(--ink); }

.section { padding-block: var(--section-y); }
.section--light { background: var(--surface); color: var(--ink); }
.section--dark { background: var(--bg); color: var(--text); }

.section-head { margin-bottom: clamp(36px, 6vw, 64px); }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -.01em;
}
.section-head--center { text-align: center; }
.section-desc {
  max-width: 560px;
  margin: 18px auto 0;
  color: var(--ink-soft);
  font-size: 16px;
}

/* ---------- Görsel placeholder ---------- */
.ph {
  position: relative;
  display: block;
  overflow: hidden;
  background:
    repeating-linear-gradient(135deg,
      var(--ph-dark-a) 0 16px,
      var(--ph-dark-b) 16px 17px);
}
.ph img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ph-name {
  position: absolute;
  left: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, .45);
  color: #d4d4d8;
  font: 500 12px/1.35 ui-monospace, 'Cascadia Mono', Consolas, monospace;
  overflow-wrap: anywhere;
  pointer-events: none;
}
.ph--light {
  background:
    repeating-linear-gradient(135deg,
      var(--ph-light-a) 0 16px,
      var(--ph-light-b) 16px 17px);
}
.ph--light .ph-name { background: rgba(255, 255, 255, .8); color: var(--ink-soft); }

/* Gerçek görsel yüklendiğinde (img/ klasöründen) desenli zemini kaldır */
.ph.has-img { background: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(19, 19, 20, .92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo { display: block; text-decoration: none; flex-shrink: 0; }
.ph--logo { width: 170px; height: 48px; }
.ph--logo .ph-name {
  left: 50%; top: 50%; bottom: auto;
  transform: translate(-50%, -50%);
  background: none;
  padding: 0;
  font-size: 11px;
  white-space: nowrap;
}
/* Logo gri metinli ve dikey: koyu zeminde okunması için beyaz çip */
.ph--logo.has-img {
  width: auto;
  height: auto;
  padding: 5px 12px;
  background: #fff;
  border-radius: 6px;
}
.ph--logo.has-img img {
  position: static;
  width: auto;
  height: 46px;
  object-fit: contain;
}

.site-menu ul { display: flex; gap: clamp(20px, 3vw, 40px); }
.site-menu a {
  position: relative;
  display: inline-block;
  padding-block: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
}
.site-menu a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 3px;
  background: var(--accent);
  transition: width .25s ease;
}
.site-menu a.is-current::after { width: 100%; }
.site-menu a:hover::after { width: 100%; background: var(--second); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 10px; right: 10px;
  height: 2px;
  background: var(--text);
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(56px, 9vw, 110px);
  padding-bottom: clamp(40px, 6vw, 72px);
  background: var(--bg);
}
.hero-text {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px 48px;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.hero h1 {
  max-width: 11ch;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.75rem, 8vw, 6.5rem);
  line-height: 1;
  letter-spacing: -.015em;
}
/* 18-scaled.jpg: 1207x470, beyaz zeminli ürün dizilimi; doğal oranında, kırpmadan */
.hero-media {
  background: #fff;
}
.hero-media img {
  display: block;
  width: 100%;
  height: auto;
}
.hero-copy,
.hero-text .btn,
.hero-media { animation: rise .8s ease both; }
.hero-text .btn { animation-delay: .1s; }
.hero-media { animation-delay: .2s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Hakkımızda ---------- */
.lead {
  max-width: 34ch;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  line-height: 1.5;
  font-weight: 500;
  color: var(--ink);
}

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: var(--section-y);
  padding-bottom: 100px;
}
.side-image { position: relative; }
.ph--main { aspect-ratio: 4 / 3; height: 100%; min-height: 420px; }
.ph--sub {
  position: absolute;
  z-index: 2;
  width: min(250px, 40%);
  aspect-ratio: 1;
  right: -50px;
  bottom: -100px;
  box-shadow: 0 20px 40px rgba(19, 19, 20, .25);
}

.side-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  margin-top: 100px;
  padding: clamp(48px, 7vw, 100px) 15%;
  background: var(--accent);
  color: #fff;
}
.side-content h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  line-height: 1.15;
  margin-bottom: 24px;
}
.side-content p {
  max-width: 46ch;
  font-size: 16px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, .92);
}

/* ---------- Çalışmalarımız ---------- */
.section--works { padding-bottom: 0; }
.works {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
  background: var(--bg);
}
.work figure { position: relative; height: 100%; background: var(--bg-raised); }
/* Ürün görselleri 1000×470 yatay banner; 16:9 ürünleri kesmeden gösterir */
.work .ph { aspect-ratio: 16 / 9; }
.work .ph img { transition: transform .6s ease; }
.work:hover .ph img { transform: scale(1.04); }
.work .ph-name { top: 12px; bottom: auto; }
.work figcaption {
  padding: 18px 20px 22px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.25;
}
.work figcaption::before {
  content: "";
  display: block;
  width: 28px; height: 3px;
  margin-bottom: 12px;
  background: var(--accent-on-dark);
  transition: width .3s ease;
}
.work:hover figcaption::before { width: 56px; background: var(--second); }

/* ---------- CTA ---------- */
.cta {
  padding-block: var(--section-y);
  background: var(--bg-raised);
  text-align: center;
  border-top: 1px solid var(--line-dark);
}
.cta h2 {
  font-family: var(--font-label);
  font-weight: 400;
  font-size: clamp(2.5rem, 7.5vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: .01em;
  margin-bottom: 40px;
}
.cta h2 span { display: block; color: var(--accent-on-dark); }

/* ---------- İletişim ---------- */
.contact-box {
  max-width: 760px;
  margin-inline: auto;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid var(--line-light);
  border-top: 4px solid var(--accent);
  text-align: center;
}
.contact-box h3 {
  font-family: var(--font-label);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--second-on-light);
  margin-bottom: 14px;
}
.contact-box address p:first-child {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.6;
  color: var(--ink);
  max-width: 52ch;
  margin-inline: auto;
}
.contact-lines {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 40px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line-light);
}
.contact-lines a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.6vw, 1.75rem);
  color: var(--ink);
  text-decoration: none;
  background-image: linear-gradient(var(--second-on-light), var(--second-on-light));
  background-size: 0 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size .25s ease, color .2s ease;
  overflow-wrap: anywhere;
}
.contact-lines a:hover { color: var(--second-on-light); background-size: 100% 2px; }

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 48px;
  border-top: 1px solid var(--line-dark);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
}
.footer-menu { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer-menu a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-soft);
  transition: color .2s ease;
}
.footer-menu a:hover { color: var(--second); }
.copyright { width: 100%; font-size: 13px; color: var(--text-soft); }

/* ---------- Duyarlı ---------- */
@media (max-width: 1024px) {
  .works { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ph--sub { right: -24px; }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .ph--logo { width: 150px; height: 40px; }
  .ph--logo .ph-name { font-size: 10px; }

  .js .nav-toggle { display: block; }
  .js .site-menu {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line-dark);
    padding: 8px var(--gutter) 24px;
    display: none;
  }
  .js .site-menu.is-open { display: block; }
  .js .site-menu ul { flex-direction: column; gap: 0; }
  .js .site-menu a {
    display: block;
    padding: 14px 0;
    font-size: 15px;
    border-bottom: 1px solid var(--line-dark);
  }
  .js .site-menu a::after { display: none; }
  .js .site-menu a.is-current { color: var(--accent-on-dark); }

  /* JS yoksa menü satır içi kalır */
  html:not(.js) .header-inner { height: auto; flex-wrap: wrap; padding-block: 12px; }
  html:not(.js) .site-header { height: auto; }
  html:not(.js) .site-menu ul { flex-wrap: wrap; gap: 8px 20px; }


  .feature { grid-template-columns: 1fr; padding-bottom: 0; }
  .ph--main { min-height: 0; }
  .ph--sub { right: 16px; bottom: -48px; width: min(180px, 42%); }
  .side-content { margin-top: 0; padding: 88px var(--gutter) 56px; }

  .works { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
  .work figcaption { padding: 14px 12px 16px; font-size: 1rem; }
  .work figcaption::before { width: 20px; margin-bottom: 8px; }
  .work .ph-name { font-size: 10px; left: 8px; top: 8px; max-width: calc(100% - 16px); }
  .btn { width: 100%; }
  .side-content .btn { width: auto; }
}

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