:root {
  --bg: #ffffff;
  --alt: #F6F3F0;
  --tx: #151515;
  --mu: #4A4642;
  --ln: #E4E0DC;
  --card: #ffffff;
  --ac: #B81B15;
  --ac-bright: #C8201A;
  --focus: #FF5A4D;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121212;
    --alt: #1A1917;
    --tx: #F2EDE6;
    --mu: #B8B2AC;
    --ln: #2E2A25;
    --card: #1C1A18;
    --ac: #FF6B5E;
    --ac-bright: #C8201A;
  }
}

:root[data-theme="dark"] {
  --bg: #121212;
  --alt: #1A1917;
  --tx: #F2EDE6;
  --mu: #B8B2AC;
  --ln: #2E2A25;
  --card: #1C1A18;
  --ac: #FF6B5E;
  --ac-bright: #C8201A;
}

html {
  scroll-padding-top: env(safe-area-inset-top, 0px);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--tx);
  font: 400 17px/1.65 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  background: var(--bg);
  z-index: 10;
}

main {
  flex: 1 0 auto;
}

main:focus {
  outline: none;
}

/* Skip to content link (WCAG 2.2 AA) */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  background: #B81B15;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 0 0 8px 8px;
  font: 600 15px Inter, sans-serif;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 0;
  outline: 3px solid #ffffff;
  outline-offset: -3px;
}

/* Keyboard focus visibility (WCAG 2.2 AA) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

a {
  color: var(--ac);
}

h1,
h2,
h3 {
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  margin: 0;
  line-height: 1.12;
  overflow-wrap: break-word;
}

.w {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}

header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 30;
  background: var(--bg);
  border-bottom: 1px solid var(--ln);
}

header .w {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 700 24px 'Space Grotesk', sans-serif;
  color: var(--ac);
  text-decoration: none;
  min-height: 44px;
}

/* Mobile Menu Button (hidden on desktop) */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--ln);
  background: var(--alt);
  color: var(--tx);
  font: 600 14px Inter, sans-serif;
  cursor: pointer;
}

.nav-toggle svg {
  display: block;
  stroke: currentColor;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

nav a {
  color: var(--tx);
  text-decoration: none;
  font: 500 15px Inter, sans-serif;
  padding: 8px 12px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
}

nav a:hover {
  background: var(--alt);
}

nav a.on,
nav a[aria-current="page"] {
  color: var(--ac);
  box-shadow: inset 0 -2px 0 var(--ac);
  border-radius: 0;
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 26px;
  border-radius: 8px;
  font: 500 16px Inter, sans-serif;
  text-decoration: none;
  background: #B81B15;
  color: #ffffff;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
}

.btn:hover {
  background: #96140F;
}

.btn.o {
  background: none;
  border: 1px solid #ffffff;
  color: #ffffff;
}

.btn.o:hover {
  background: #ffffff;
  color: #151515;
}

.btn-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.dark {
  background: #141414;
  color: #F2EDE6;
  background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 80px);
}

.dark p {
  color: #D8D2CC;
}

.hero {
  padding: 72px 0;
}

.sec {
  padding: 84px 0;
}

.alt {
  background: var(--alt);
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 48px;
  align-items: center;
}

.split-start {
  align-items: start;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 20px;
}

.grid-photos {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--ln);
  border-top: 4px solid #C8201A;
  border-radius: 10px;
  padding: 24px;
}

.card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.card p {
  margin: 0;
  color: var(--mu);
  font-size: 16px;
}

.big {
  font: 700 46px/1 'Space Grotesk', sans-serif;
  color: var(--ac);
  margin-bottom: 8px;
}

.eb {
  font: 600 13px Inter, sans-serif;
  letter-spacing: 0.15em;
  color: #FF7A6E;
  margin-bottom: 16px;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(32px, 5.5vw, 62px);
  margin-bottom: 20px;
}

h2 {
  font-size: clamp(26px, 4vw, 40px);
  margin-bottom: 14px;
}

.tx-accent {
  color: #FF6B5E;
}

.tx-muted {
  color: var(--mu);
}

.lead {
  color: var(--mu);
  font-size: 18px;
  max-width: 700px;
  margin: 0 0 36px;
}

.mb-0 {
  margin-bottom: 0;
}

.hero-desc {
  font-size: 18px;
  margin: 0;
}

.hero-desc-520 {
  max-width: 520px;
  margin: 0 0 30px;
}

.hero-desc-640 {
  max-width: 640px;
}

.hero-desc-460 {
  max-width: 460px;
  margin: 0 0 28px;
}

.hero-desc-mb20 {
  margin: 0 0 20px;
}

.hero-note {
  font-size: 14px;
  margin: 0;
}

.cta-desc {
  margin: 0 0 24px;
}

.v3 {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 560px;
  border-radius: 14px;
  background: radial-gradient(circle at 50% 40%, #2A2724, #141414);
  border: 1px solid #2E2A25;
  cursor: grab;
  touch-action: pan-y pinch-zoom;
  overflow: hidden;
}

.v3.is-dragging {
  cursor: grabbing;
}

.v3 canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.v3 span {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  text-align: center;
  font: 500 13px Inter, sans-serif;
  color: #D8D2CC;
  background: rgba(15, 15, 15, 0.68);
  padding: 6px 12px;
  border-radius: 999px;
  pointer-events: none;
  margin: 0 auto;
  width: fit-content;
  max-width: calc(100% - 24px);
}

.v3-controls {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  gap: 6px;
}

.v3-btn {
  background: rgba(20, 20, 20, 0.82);
  color: #F2EDE6;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  padding: 6px 10px;
  min-height: 34px;
  font: 500 12px Inter, sans-serif;
  cursor: pointer;
}

.v3-btn:hover {
  background: #B81B15;
  border-color: #B81B15;
  color: #ffffff;
}

picture {
  display: block;
}

.ph {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  border: 1px solid var(--ln);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

th,
td {
  text-align: left;
  padding: 15px 18px;
  border-bottom: 1px solid var(--ln);
  vertical-align: top;
}

th {
  width: 30%;
  background: var(--alt);
  font-weight: 600;
  color: var(--tx);
}

td {
  color: var(--mu);
}

.tw {
  overflow-x: auto;
  border: 1px solid var(--ln);
  border-radius: 10px;
  -webkit-overflow-scrolling: touch;
}

.step {
  display: flex;
  gap: 16px;
  margin-bottom: 22px;
}

.step:last-child {
  margin-bottom: 0;
}

.step i {
  font: 700 18px 'Space Grotesk', sans-serif;
  font-style: normal;
  color: #ffffff;
  background: #B81B15;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
}

.step b {
  display: block;
  font: 700 19px 'Space Grotesk', sans-serif;
}

.step span {
  color: var(--mu);
}

.cta {
  background: #B81B15;
  color: #ffffff;
  padding: 56px 0;
  text-align: center;
}

.cta h2 {
  color: #ffffff;
}

.cta .btn {
  background: #ffffff;
  color: #8F1510;
  font-weight: 600;
}

.cta .btn:hover {
  background: #F6F3F0;
}

.ci-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 18px;
  width: 100%;
}

.ci {
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid #2E2A25;
  border-radius: 10px;
  padding: 14px 16px;
}

.ci b {
  display: block;
  font: 600 12px Inter, sans-serif;
  letter-spacing: 0.1em;
  color: #FF7A6E;
  margin-bottom: 4px;
}

.ci a {
  color: #ffffff;
  word-break: break-word;
}

/* Accessible Contact Form */
.contact-card {
  background: var(--card);
  border: 1px solid var(--ln);
  border-top: 4px solid #C8201A;
  border-radius: 12px;
  padding: 32px;
  color: var(--tx);
}

.contact-card h2 {
  margin-bottom: 8px;
  font-size: clamp(22px, 3.5vw, 28px);
}

.contact-card p.form-intro {
  color: var(--mu);
  margin: 0 0 24px;
  font-size: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 18px;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font: 500 15px Inter, sans-serif;
  margin-bottom: 6px;
  color: var(--tx);
}

.form-control {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--ln);
  background: var(--bg);
  color: var(--tx);
  font: 400 16px Inter, sans-serif;
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.form-help {
  display: block;
  font-size: 13px;
  color: var(--mu);
  margin-top: 6px;
}

.hp-wrap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  padding: 14px 16px;
  border-radius: 8px;
  margin-bottom: 18px;
  font: 500 15px Inter, sans-serif;
  display: none;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-success {
  background: #0f5132;
  color: #d1e7dd;
  border: 1px solid #badbcc;
}

.form-status.is-error {
  background: #842029;
  color: #f8d7da;
  border: 1px solid #f5c2c7;
}

footer {
  background: #0B0B0B;
  color: #D8D2CC;
  padding: 36px 0 max(28px, env(safe-area-inset-bottom, 0px));
  font-size: 14px;
  border-top: 1px solid #222222;
}

.footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.footer-nav a {
  color: #D8D2CC;
  text-decoration: none;
  padding: 4px 0;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}

.footer-nav a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ==========================================================================
   Mobil ve Tablet Duyarlı (Responsive) Görünüm İyileştirmeleri
   ========================================================================== */

@media (max-width: 768px) {
  body {
    font-size: 16px;
    line-height: 1.6;
  }

  .w {
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }

  /* Mobil Katlanabilir (Hamburger) Menü */
  .js-nav-ready .nav-toggle {
    display: inline-flex;
  }

  .js-nav-ready header nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 4px;
    padding-top: 8px;
    margin-top: 4px;
    border-top: 1px solid var(--ln);
  }

  .js-nav-ready header nav.is-open {
    display: flex;
  }

  .js-nav-ready header nav a {
    width: 100%;
    padding: 12px 14px;
    min-height: 46px;
    border-radius: 8px;
    font-size: 16px;
  }

  .js-nav-ready header nav a.on,
  .js-nav-ready header nav a[aria-current="page"] {
    background: var(--alt);
    box-shadow: inset 4px 0 0 var(--ac);
    border-radius: 8px;
  }

  .hero {
    padding: 42px 0 48px;
  }

  .sec {
    padding: 52px 0;
  }

  .cta {
    padding: 44px 0;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .lead {
    font-size: 16px;
    margin-bottom: 24px;
  }

  .hero-desc {
    font-size: 16px;
  }

  .hero-desc-520,
  .hero-desc-460 {
    margin-bottom: 22px;
  }

  .v3 {
    max-height: 390px;
    aspect-ratio: 1 / 0.92;
  }

  .grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: 14px;
  }

  .card {
    padding: 20px 18px;
  }

  .big {
    font-size: 38px;
  }

  .contact-card {
    padding: 22px 16px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: clamp(28px, 8vw, 36px);
    margin-bottom: 14px;
  }

  h2 {
    font-size: clamp(22px, 6.5vw, 28px);
  }

  /* Mobilde tam genişlikli kolay dokunulabilir butonlar */
  .btn-group {
    flex-direction: column;
    width: 100%;
  }

  .btn-group .btn,
  .cta .btn,
  #contact-submit {
    width: 100%;
  }

  /* Teknik tabloyu dar ekranlarda okunaklı kart satırlarına dönüştür */
  .tw table,
  .tw tbody,
  .tw tr,
  .tw th,
  .tw td {
    display: block;
    width: 100%;
  }

  .tw tr {
    border-bottom: 1px solid var(--ln);
  }

  .tw tr:last-child {
    border-bottom: none;
  }

  .tw th {
    padding: 12px 16px 4px;
    border-bottom: none;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .tw td {
    padding: 4px 16px 14px;
    border-bottom: none;
    font-size: 15px;
  }

  .v3 {
    max-height: 340px;
  }

  .v3 span {
    font-size: 12px;
    padding: 5px 10px;
  }
}
