/* Kepenk Lab - site stilleri. Mobil öncelikli: temel kurallar telefon için, geniş ekranlar media query ile. */

/* ---------- Yazı tipi: Bricolage Grotesque, değişken ağırlık (400-800) ---------- */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Renkler ve ölçüler ---------- */
:root {
  --green: #1E5B4F;        /* kepenk yeşili */
  --green-dark: #12392F;   /* koyu zeminler */
  --light: #FFB627;        /* dükkân ışığı */
  --glow: #FFF1CC;         /* açık parlama */
  --bg: #F1F4F2;           /* zemin */
  --text: #10201B;         /* yazı */
  --line: #E6EEEA;         /* kepenk çizgisi */

  --font: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --gutter: 16px;
  --radius: 10px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.55;
}

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

h1, h2, h3 {
  margin: 0;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

p { margin: 0; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  padding: 12px 16px;
  background: var(--light);
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
  border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 800;
  font-size: 1.0625rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}

/* Asıl buton: dükkân ışığı. Yalnızca en önemli eylemde kullanılır. */
.btn-primary {
  background: var(--light);
  color: var(--text);
}
.btn-primary:hover { background: #FFC54F; }

/* Koyu zemin üstünde ikinci buton */
.btn-outline {
  background: transparent;
  border-color: rgba(230, 238, 234, .55);
  color: #fff;
}
.btn-outline:hover { border-color: var(--line); background: rgba(230, 238, 234, .08); }

/* ---------- Giriş bölümü: kepenk ---------- */
.hero {
  --shutter-h: 132px;   /* kepengin yarıya kadar kalkmış hali */
  --rail-h: 8px;
  --gap-h: 22px;        /* kepengin altından görünen ışıklı dükkân içi */
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--green-dark);
  color: #fff;
  padding-bottom: 56px;
}

.hero :focus-visible { outline-color: var(--light); }

/* Kepenk: üstte duran yatay çıtalar ve en altta alt kol.
   Yukarıdan taşacak kadar uzun; hareket sırasında üstte boşluk kalmasın diye. */
.shutter {
  position: absolute;
  left: 0;
  right: 0;
  top: -40px;
  height: calc(var(--shutter-h) + 40px);
  z-index: -1;
}

.shutter-slats {
  position: absolute;
  inset: 0 0 var(--rail-h) 0;
  background-color: var(--green-dark);
  background-image:
    repeating-linear-gradient(
      to bottom,
      rgba(230, 238, 234, .16) 0 1px,
      rgba(230, 238, 234, .06) 1px 13px,
      rgba(0, 0, 0, .22) 13px 16px
    );
}

.shutter-rail {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--rail-h);
  background: var(--line);
}

/* Kepengin kolu: alt kolun ortasında küçük bir tutamak */
.shutter-rail::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 36px;
  height: 6px;
  margin-left: -18px;
  border-radius: 0 0 3px 3px;
  background: var(--line);
}

/* Kepengin altından görünen ışıklı dükkân içi ve önündeki zemine düşen ışık */
.hero-light {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--shutter-h);
  bottom: 0;
  z-index: -2;
  background:
    linear-gradient(to bottom, var(--glow) 0, var(--light) var(--gap-h), transparent var(--gap-h)),
    linear-gradient(to bottom, rgba(255, 182, 39, .16) var(--gap-h), rgba(255, 182, 39, 0) 300px);
}

.site-bar {
  display: flex;
  align-items: center;
  min-height: 76px;
  padding-top: 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.brand img { width: 150px; height: auto; }

/* Başlık, kepenk en aşağıdayken bile ışık şeridinin altında kalır. */
.hero-body {
  padding-top: calc(var(--shutter-h) + var(--gap-h) - 76px + 40px);
}

.hero-title {
  max-width: 17em;
  font-size: clamp(1.875rem, 1.2rem + 3.4vw, 4.25rem);
  line-height: 1.04;
  text-wrap: balance;
}

.hero-lead {
  max-width: 36em;
  margin-top: 20px;
  color: var(--line);
  font-size: 1.125rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}

.hero-note {
  margin-top: 18px;
  color: var(--line);
  font-size: 1rem;
}
/* Satır içi bağlantı; dokunma alanı 44 pikselden küçük kalmasın diye dikeyde genişletildi. */
.hero-note a {
  display: inline-block;
  padding-block: 13px;
  margin-block: -13px;
  color: var(--glow);
  text-underline-offset: 3px;
}

/* Hareket: kepenk açılışta bir kez biraz daha yukarı kalkar, ışık yayılır.
   Yazılar ve butonlar en baştan yerinde ve okunur; kepenk onların üstüne hiç inmez. */
@media (prefers-reduced-motion: no-preference) {
  .shutter { animation: shutter-lift .8s cubic-bezier(.2, .7, .2, 1) .1s both; }
  .hero-light { animation: light-spill .8s ease-out .1s both; }
}

@keyframes shutter-lift {
  from { transform: translateY(36px); }
  to   { transform: translateY(0); }
}

@keyframes light-spill {
  from { opacity: .25; }
  to   { opacity: 1; }
}

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

/* ---------- Bölümler: ortak ---------- */
.section {
  padding-block: 64px;
}

.section-title {
  max-width: 20em;
  font-size: clamp(1.75rem, 1.3rem + 2.2vw, 3rem);
  text-wrap: balance;
}

.section-lead {
  max-width: 36em;
  margin-top: 14px;
  font-size: 1.125rem;
}

/* ---------- Nasıl çalışıyoruz ---------- */
.steps-list {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 32px;
}

.step {
  counter-increment: step;
  position: relative;
  padding-left: 64px;
}

/* Büyük adım numarası; sıralı bir süreç olduğu için numara burada anlamlı. */
.step::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -6px;
  width: 44px;
  color: var(--green);
  font-weight: 800;
  font-size: 3rem;
  line-height: 1;
  text-align: center;
}

.step-title {
  font-size: 1.3125rem;
  line-height: 1.2;
  margin-bottom: 8px;
}

/* ---------- Örnek işler ---------- */
.portfolio { padding-bottom: 48px; }

/* Telefonda yana kaydırılan bir sıra, geniş ekranda ızgara. */
.portfolio-list {
  list-style: none;
  margin: 32px 0 0;
  padding: 0 var(--gutter) 16px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(72%, 260px);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
}

.portfolio-item { scroll-snap-align: start; }

.portfolio-link {
  display: block;
  text-decoration: none;
}

.portfolio-link img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: top;
  border: 1px solid rgba(16, 32, 27, .14);
  border-radius: var(--radius);
  background: var(--line);
}

.portfolio-name {
  display: block;
  margin-top: 12px;
  font-weight: 800;
  font-size: 1.125rem;
  line-height: 1.25;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  text-decoration-color: rgba(30, 91, 79, .35);
}
.portfolio-link:hover .portfolio-name { text-decoration-color: var(--green); }

.portfolio-meta {
  margin-top: 4px;
  font-size: .9375rem;
  color: #3D514A;
}

/* ---------- Fiyat: dükkân fiyat panosu ---------- */
.price-board {
  max-width: 640px;
  margin: 32px 0 0;
  border-top: 3px solid var(--text);
  border-bottom: 3px solid var(--text);
}

.price-row {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 16px;
  align-items: baseline;
  padding-block: 20px;
}
.price-row + .price-row { border-top: 1px dashed rgba(16, 32, 27, .35); }

.price-row dt {
  font-weight: 800;
  font-size: 1.125rem;
}

.price-row dd { margin: 0; text-align: right; }

.price-amount {
  font-weight: 800;
  font-size: 1.75rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.price-row .price-detail {
  grid-column: 1 / -1;
  margin-top: 6px;
  text-align: left;
  color: #3D514A;
}

.price-invoice { margin-top: 16px; }

.price-included-title {
  margin-top: 40px;
  font-size: 1.3125rem;
}

.price-included {
  max-width: 640px;
  margin: 12px 0 0;
  padding-left: 1.25em;
}
.price-included li + li { margin-top: 6px; }

/* ---------- Talep: dükkânın ışıklı içi ---------- */
.request {
  --error: #9E2416;
  --input-border: #5E6E68;
  background: var(--glow);
}

.request-body { margin-top: 32px; }

.request-form,
.request-thanks {
  max-width: 560px;
}

.field { margin-top: 22px; }
.field:first-of-type { margin-top: 0; }

.field label {
  display: block;
  font-weight: 800;
  font-size: 1.0625rem;
  line-height: 1.3;
}

.optional { font-weight: 400; }

.field-help {
  margin-top: 4px;
  font-size: .9375rem;
  line-height: 1.45;
  color: #3D514A;
}

.field input[type="text"],
.field input[type="tel"],
.field select {
  display: block;
  width: 100%;
  min-height: 52px;
  margin-top: 8px;
  padding: 12px 14px;
  border: 2px solid var(--input-border);
  border-radius: var(--radius);
  background-color: #fff;
  color: var(--text);
  font: inherit;
  font-size: 1.0625rem; /* 16 pikselin altına inmesin; iPhone yakınlaştırmasın */
}

.field input::placeholder { color: #6E7C77; opacity: 1; }

.field select {
  appearance: none;
  padding-right: 44px;
  /* Açılır liste işareti: kepenk yeşili küçük bir üçgen */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%231E5B4F' stroke-width='2.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.field input:focus-visible,
.field select:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 1px;
  border-color: var(--green);
}

.field [aria-invalid="true"] { border-color: var(--error); }

.field-error {
  margin-top: 6px;
  color: var(--error);
  font-weight: 800;
  font-size: .9375rem;
  line-height: 1.4;
}

/* KVKK onay kutusu: kutu solda, metin ve link sağda */
.field-check {
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 8px;
  align-items: start;
  margin-top: 28px;
}

/* Kutu 26 piksel görünür, dokunma alanı 44 piksel. */
.field-check input[type="checkbox"] {
  appearance: none;
  width: 44px;
  height: 44px;
  margin: -9px 0 0;
  border-radius: 6px;
  background: center / 26px 26px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Crect x='1' y='1' width='24' height='24' rx='4' fill='%23fff' stroke='%235E6E68' stroke-width='2'/%3E%3C/svg%3E");
  cursor: pointer;
}
.field-check input[type="checkbox"]:checked {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Crect x='1' y='1' width='24' height='24' rx='4' fill='%231E5B4F' stroke='%231E5B4F' stroke-width='2'/%3E%3Cpath d='M7 13.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.field-check input[aria-invalid="true"]:not(:checked) {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Crect x='1' y='1' width='24' height='24' rx='4' fill='%23fff' stroke='%239E2416' stroke-width='3'/%3E%3C/svg%3E");
}
.field-check input[type="checkbox"]:focus-visible { outline: 3px solid var(--green); outline-offset: -4px; }

@media (forced-colors: active) {
  .field-check input[type="checkbox"] { appearance: auto; width: 26px; height: 26px; margin: 2px 9px 0; }
}

.field-check label {
  font-weight: 400;
  cursor: pointer;
}

.field-check .field-help,
.field-check .field-error { grid-column: 2; }

.field-check .field-help a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--green);
  font-weight: 800;
  text-underline-offset: 3px;
}

/* Tuzak alanı: ekranda ve ekran okuyucuda yok, botlar için sayfada duruyor. */
.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Gönder düğmesi: açık sarı zeminde kaybolmasın diye koyu kenarlı. */
.btn-submit {
  width: 100%;
  margin-top: 24px;
  border-color: var(--text);
  box-shadow: 0 4px 0 var(--text);
}
.btn-submit:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--text); }
.btn-submit:disabled { cursor: progress; opacity: .75; }

.form-alert {
  margin-bottom: 20px;
  padding: 14px 16px;
  border-left: 5px solid var(--error);
  background: #fff;
  color: var(--error);
  font-weight: 800;
}

.request-thanks {
  padding: 24px 22px;
  border: 2px solid var(--text);
  border-radius: var(--radius);
  background: #fff;
}
.request-thanks:focus { outline: 3px solid var(--green); outline-offset: 3px; }
.request-thanks-title { font-size: 1.5rem; margin-bottom: 10px; }
.request-thanks p + p { margin-top: 10px; }
.request-thanks a { color: var(--green); font-weight: 800; }

/* ---------- Sık sorulan sorular ---------- */
.faq-list {
  max-width: 760px;
  margin-top: 28px;
  border-top: 1px solid rgba(16, 32, 27, .18);
}

.faq-item { border-bottom: 1px solid rgba(16, 32, 27, .18); }

.faq-item summary {
  position: relative;
  display: block;
  min-height: 44px;
  padding: 18px 44px 18px 0;
  font-weight: 800;
  font-size: 1.125rem;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }

/* Artı / eksi işareti */
.faq-item summary::before,
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  width: 16px;
  height: 3px;
  margin-top: -1.5px;
  border-radius: 2px;
  background: var(--green);
}
.faq-item summary::after { transform: rotate(90deg); }
.faq-item[open] summary::after { transform: none; }

.faq-item p {
  max-width: 40em;
  padding-bottom: 20px;
}

/* ---------- İletişim ve alt bilgi: koyu zemin ---------- */
.contact,
.site-footer {
  background: var(--green-dark);
  color: #fff;
}

.contact :focus-visible,
.site-footer :focus-visible { outline-color: var(--light); }

.contact .section-lead { color: var(--line); }

.contact-whatsapp { margin-top: 28px; width: 100%; }

.contact-list {
  max-width: 640px;
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  font-size: 1.125rem;
}

.contact-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 12px;
  min-height: 48px;
  border-top: 1px solid rgba(230, 238, 234, .18);
}

.contact-label {
  min-width: 5.5em;
  color: var(--line);
  font-size: 1rem;
}

.contact-list a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: #fff;
  font-weight: 800;
  text-underline-offset: 4px;
}

.site-footer {
  border-top: 1px solid rgba(230, 238, 234, .18);
  font-size: .9375rem;
  color: var(--line);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding-block: 32px 40px;
}

.footer-inner img { width: 150px; margin-bottom: 12px; }

.footer-inner a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #fff;
  text-underline-offset: 4px;
}

/* ---------- Alt sayfalar (KVKK) ---------- */
.page-header {
  background: var(--green-dark);
  border-bottom: 6px solid var(--light);
}

.prose { max-width: 760px; }

.prose h1 {
  font-size: clamp(1.75rem, 1.3rem + 2.2vw, 2.75rem);
  text-wrap: balance;
}
.prose h2 { margin-top: 40px; font-size: 1.375rem; line-height: 1.25; }
.prose h3 { margin-top: 24px; font-size: 1.125rem; line-height: 1.3; }
.prose p,
.prose ul { margin-top: 12px; }
.prose ul { padding-left: 1.25em; }
.prose li + li { margin-top: 6px; }
.prose-meta { color: #3D514A; font-size: .9375rem; }
.prose-back { margin-top: 48px; }

/* Avukat kontrolü bekleyen taslak notu */
.draft-note {
  margin-bottom: 28px;
  padding: 14px 16px;
  border: 2px solid var(--text);
  border-radius: var(--radius);
  background: var(--glow);
}

.btn-outline-dark {
  border-color: var(--text);
  color: var(--text);
}
.btn-outline-dark:hover { background: rgba(16, 32, 27, .06); }

/* ---------- 404: kepenk tamamen kapalı, ışık yok ---------- */
.hero-closed {
  min-height: 100vh;
  min-height: 100dvh;
}
.hero-closed .shutter {
  top: -40px;
  bottom: 0;
  height: auto;
  animation: none;
}
.hero-closed .hero-body { padding-top: 64px; }

/* ---------- Geniş ekranlar ---------- */
@media (min-width: 600px) {
  :root { --gutter: 24px; }

  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .contact-whatsapp { width: auto; }
}

@media (min-width: 960px) {
  :root { --gutter: 40px; }

  .hero {
    --shutter-h: 200px;
    --rail-h: 10px;
    --gap-h: 30px;
    padding-bottom: 96px;
  }

  .site-bar { min-height: 96px; padding-top: 12px; }
  .brand img { width: 190px; }

  .hero-body { padding-top: calc(var(--shutter-h) + var(--gap-h) - 96px + 64px); }

  .hero-lead { font-size: 1.25rem; margin-top: 24px; }
  .hero-actions { margin-top: 36px; }
  .btn { min-height: 56px; padding-inline: 28px; }

  .section { padding-block: 112px; }
  .section-lead { font-size: 1.25rem; }

  .steps-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    margin-top: 56px;
  }
  .step {
    padding-left: 0;
    padding-top: 84px;
    border-top: 3px solid var(--text);
  }
  .step::before { top: 20px; width: auto; font-size: 3.5rem; }
  .step-title { font-size: 1.5rem; }

  /* Geniş ekranda örnek işler ızgara olur; kaydırma kalkar. */
  .portfolio-list {
    max-width: 1180px;
    margin-inline: auto;
    padding-inline: var(--gutter);
    grid-auto-flow: row;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    overflow: visible;
  }

  .price-amount { font-size: 2.25rem; }

  /* Talep: solda açıklama, sağda form */
  .request-layout {
    display: grid;
    grid-template-columns: 5fr 6fr;
    gap: 64px;
    align-items: start;
  }
  .request-body { margin-top: 0; }
  .btn-submit { width: auto; }

  .footer-inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 32px;
  }
  .footer-inner img { margin-bottom: 0; margin-right: auto; }
}
