/* Pro Bariyer — tek sayfa site
   Renkler logodan: siyah #231F20, kırmızı #ED2024.
   Zemin: galvaniz bariyer grisi. */

:root {
  --siyah: #231F20;
  --siyah-2: #3D3839;
  --kirmizi: #ED2024;
  --kirmizi-buton: #D3191F;
  --kirmizi-koyu: #A9151A;
  --galvaniz: #E6E9EB;
  --celik: #C3C9CE;
  --kursun: #545A61;
  --beyaz: #FFFFFF;

  --wrap: 1200px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --header-h: 72px;
  --gap: clamp(1rem, 2.2vw, 1.75rem);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--siyah);
  background: var(--galvaniz);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 800;
  font-stretch: 125%;
  line-height: 1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--kirmizi-buton);
  outline-offset: 3px;
}

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  padding: .75rem 1rem; background: var(--siyah); color: var(--beyaz);
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 1rem; }

/* ---------- Butonlar ---------- */
/* Sol üst köşedeki eğik kesim, logodaki P'nin açısından geliyor. */
.btn {
  --cut: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 3.25rem;
  padding: .85rem 1.5rem .85rem 1.4rem;
  border: 0;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  font-stretch: 110%;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--cut));
  transition: background-color .15s ease;
}
.btn svg { width: 1.25em; height: 1.25em; flex: none; }
.btn:focus-visible { outline: 2px solid var(--beyaz); outline-offset: -6px; }

.btn--red { background: var(--kirmizi-buton); color: var(--beyaz); }
.btn--red:hover { background: var(--kirmizi-koyu); }

.btn--dark { background: var(--siyah); color: var(--beyaz); }
.btn--dark:hover { background: var(--siyah-2); }

.btn--sm { --cut: 9px; min-height: 2.75rem; padding: .6rem 1.1rem; font-size: .9375rem; }

/* ---------- Üst bar ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(230 233 235 / .94);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--celik); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  height: var(--header-h);
}

.brand { flex: none; }
.brand img { height: 34px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-left: auto;
  font-weight: 600;
}
.nav a {
  display: inline-flex;
  align-items: center;
  padding-block: .6rem;
  text-decoration: none;
}
.nav a:hover { color: var(--kirmizi-buton); }

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(3rem, 8vw, 6.5rem);
  overflow: hidden;
}

.hero h1 {
  max-width: 15ch;
  font-size: clamp(2.6rem, 1.2rem + 5.4vw, 5.5rem);
  line-height: .96;
  letter-spacing: -0.03em;
}

.hero-body {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.75rem 3rem;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

.lead {
  max-width: 38ch;
  font-size: clamp(1.0625rem, .95rem + .45vw, 1.3125rem);
  line-height: 1.5;
  color: var(--kursun);
}

.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Bariyer hattı: sayfa açılırken bariyerler tek tek yerine oturur. */
.line {
  --u: clamp(170px, 21vw, 290px);
  display: flex;
  margin-top: clamp(3rem, 7vw, 5rem);
  margin-left: calc(var(--u) * -0.42);
  border-bottom: 3px solid var(--siyah);
}
.line svg {
  flex: none;
  width: var(--u);
  height: auto;
  margin-right: calc(var(--u) * -0.055);
  overflow: visible;
}
.line-jacket text {
  fill: var(--beyaz);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 21px;
  font-weight: 800;
  font-stretch: 112%;
  letter-spacing: .01em;
}

@media (prefers-reduced-motion: no-preference) {
  .line svg {
    animation: yerles .6s cubic-bezier(.22, .9, .32, 1.2) both;
    animation-delay: calc(var(--i) * 75ms + 200ms);
  }
  @keyframes yerles {
    from { transform: translateY(-32px); opacity: 0; }
    to { transform: none; opacity: 1; }
  }
}

/* ---------- Bölümler ---------- */
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }

.section h2 {
  font-size: clamp(2.1rem, 1.3rem + 2.8vw, 3.5rem);
  line-height: 1;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 3rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head p { max-width: 34ch; color: var(--kursun); }

/* ---------- Ürünler ---------- */
.catalog {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(3rem, 6vw, 4.5rem) var(--gap);
}

.group {
  border-top: 3px solid var(--siyah);
  padding-top: 1rem;
}
.group h3 {
  margin-bottom: 1.75rem;
  font-size: 1.25rem;
  font-weight: 750;
  font-stretch: 112%;
  letter-spacing: -0.01em;
}

.group--bariyer { grid-column: 1 / -1; --cols: 3; }
.group--guvenlik { grid-column: span 2; --cols: 2; }
.group--vestiyer { --cols: 1; }

.items {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: 3rem var(--gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.item { display: flex; flex-direction: column; }

.item-media {
  position: relative;
  aspect-ratio: 4 / 3;
  margin-bottom: 1.1rem;
  overflow: hidden;
  background: var(--beyaz);
}
.item-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 6%;
  object-fit: contain;
}
.item-media--fill img { padding: 0; object-fit: cover; }

.item h4 {
  font-size: 1.1875rem;
  font-weight: 700;
  font-stretch: 105%;
  line-height: 1.2;
  letter-spacing: -0.005em;
}
.item p {
  margin: .4rem 0 0;
  max-width: 40ch;
  font-size: .96875rem;
  color: var(--kursun);
}

/* ---------- Hakkımızda ---------- */
.about { background: var(--beyaz); }

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: start;
}
.about-grid > div > p {
  margin-top: 1.5rem;
  max-width: 48ch;
  font-size: 1.125rem;
}

.reasons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.25rem var(--gap);
  margin: 0;
}
.reasons > div { border-top: 2px solid var(--siyah); padding-top: 1rem; }
.reasons dt { font-size: 1.125rem; font-weight: 750; font-stretch: 110%; line-height: 1.25; }
.reasons dd { margin: .4rem 0 0; color: var(--kursun); }

/* ---------- Bize yazın ---------- */
.mesaj { background: var(--siyah); color: var(--beyaz); }

.mesaj-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.mesaj-intro p {
  margin-top: 1.25rem;
  max-width: 32ch;
  font-size: 1.125rem;
  color: #CFCACB;
}

.contact {
  display: grid;
  gap: 1.25rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}
.contact li { display: grid; gap: .2rem; padding-top: 1rem; border-top: 1px solid #4A4445; }
.contact .k { font-size: .875rem; color: #ADA7A8; }
.contact a {
  justify-self: start;
  font-size: clamp(1.25rem, 1rem + .8vw, 1.5rem);
  font-weight: 700;
  font-stretch: 112%;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.contact a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.contact a:focus-visible { outline-color: var(--beyaz); }

.mesaj-form {
  --cut: 28px;
  padding: clamp(1.25rem, 3.5vw, 2.5rem);
  background: var(--beyaz);
  color: var(--siyah);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--cut));
}

.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: .7rem .85rem;
  border: 2px solid var(--celik);
  border-radius: 0;
  background: var(--beyaz);
  color: var(--siyah);
  font: inherit;
  font-size: 1rem;
  transition: border-color .15s ease;
}
.field input:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--siyah);
  box-shadow: 0 0 0 3px rgb(211 25 31 / .28);
}
.field textarea { resize: vertical; min-height: 6rem; }
::placeholder { color: #80868C; opacity: 1; }

.field { display: grid; gap: .4rem; margin-top: 1.25rem; }
.field:first-child { margin-top: 0; }
.field textarea[aria-invalid="true"] { border-color: var(--kirmizi-buton); }
.field-error { font-size: .9375rem; font-weight: 600; color: var(--kirmizi-koyu); }
.field label { font-size: .9375rem; font-weight: 650; }

.form-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.form-hint { margin-top: 1rem; font-size: .875rem; color: var(--kursun); }

/* E-posta uygulaması açılmadığında / açıldığında gösterilen kutu */
.eposta-durum {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem 1.1rem 1.35rem;
  background: var(--galvaniz);
  box-shadow: inset 4px 0 0 var(--siyah);
  font-size: .96875rem;
}
.eposta-durum--uyari {
  background: #FCE4E5;
  box-shadow: inset 4px 0 0 var(--kirmizi-buton);
}
.eposta-durum__baslik {
  margin-bottom: .3rem;
  font-weight: 750;
  font-stretch: 110%;
}
.eposta-durum--uyari .eposta-durum__baslik { color: var(--kirmizi-koyu); }
.eposta-durum__mesaj {
  display: block;
  width: 100%;
  margin-top: .85rem;
  padding: .6rem .75rem;
  border: 2px solid var(--celik);
  border-radius: 0;
  background: var(--beyaz);
  color: var(--siyah);
  font: inherit;
  font-size: .875rem;
  line-height: 1.45;
  resize: vertical;
}
.eposta-durum__mesaj:focus-visible { outline: none; border-color: var(--siyah); }
.eposta-durum__butonlar { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .85rem; }
/* Kutu görünürken "göndermeniz yeterli" ipucu çelişmesin */
#eposta-durum:not(:empty) + .form-hint { display: none; }

/* ---------- Alt bilgi ---------- */
.site-footer {
  padding-block: 2.5rem;
  background: var(--siyah);
  color: #ADA7A8;
  border-top: 1px solid var(--siyah-2);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
}
.footer-logo { width: 148px; }
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; }
.footer-links a { color: var(--beyaz); font-weight: 600; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-links a:focus-visible { outline-color: var(--beyaz); }
.copy { font-size: .875rem; }

/* ---------- Mobil hızlı iletişim ---------- */
.mobile-bar { display: none; }

/* ---------- Duyarlı düzen ---------- */
@media (max-width: 1024px) {
  .catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .group--bariyer { --cols: 2; }
  .group--guvenlik,
  .group--vestiyer { grid-column: 1 / -1; --cols: 2; }
}

@media (max-width: 900px) {
  .about-grid,
  .mesaj-grid { grid-template-columns: minmax(0, 1fr); }
  .nav { gap: 1.25rem; }
}

@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .nav,
  .header-call { display: none; }
  .brand img { height: 30px; }

  .mobile-bar {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--siyah);
  }
  .mobile-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 58px;
    color: var(--beyaz);
    font-size: .9375rem;
    font-weight: 700;
    text-decoration: none;
  }
  .mobile-bar a + a { border-left: 1px solid #4A4445; }
  .mobile-bar a:first-child { background: var(--kirmizi-buton); }
  .mobile-bar svg { width: 1.2em; height: 1.2em; }
  .mobile-bar a:focus-visible { outline: 2px solid var(--beyaz); outline-offset: -5px; }

  body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }

  .hero h1 { font-stretch: 112%; }
  .actions { width: 100%; }
  .actions .btn { flex: 1 1 auto; }
}

@media (max-width: 600px) {
  .catalog { grid-template-columns: minmax(0, 1fr); }
  .group--bariyer,
  .group--guvenlik,
  .group--vestiyer { --cols: 1; }
  .reasons { grid-template-columns: minmax(0, 1fr); }
  .form-actions .btn { flex: 1 1 100%; }

  /* Mobilde ürünler: görsel solda, metin sağda */
  .group h3 { margin-bottom: 1.25rem; }
  .items { gap: 1.25rem; }
  .item {
    display: grid;
    grid-template-columns: minmax(0, 40%) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    column-gap: 1rem;
    align-items: start;
  }
  .item-media { grid-row: 1 / span 2; margin: 0; }
  .item h4 { font-size: 1.0625rem; }
  .item p { margin: .3rem 0 0; font-size: .9375rem; line-height: 1.45; }
}
