/*
  Bekay Asansör — site styles
  Fluid type, light/dark, mobile-first, reduced-motion
*/

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, address { margin: 0; }
ul[role='list'], ol[role='list'] { list-style: none; padding: 0; margin: 0; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
iframe { display: block; max-width: 100%; border: 0; }
body { line-height: 1.6; -webkit-font-smoothing: antialiased; }
body { display: flex; min-height: 100dvh; flex-direction: column; }
main { flex: 1 0 auto; }

:root {
  --brand: #1e88e5;
  --brand-600: #1976d2;
  --brand-700: #1565c0;
  --bg: #0b0c10;
  --surface: #121318;
  --text: #e6e8ef;
  --muted: #a6abbd;
  --border: #272a35;
  --accent: #22c55e;
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --fs-0: clamp(0.88rem, 0.84rem + 0.2vw, 1rem);
  --fs-1: clamp(1rem, 0.96rem + 0.5vw, 1.25rem);
  --fs-2: clamp(1.2rem, 1.08rem + 0.7vw, 1.5rem);
  --fs-3: clamp(1.5rem, 1.25rem + 1.4vw, 2.1rem);
  --fs-4: clamp(1.85rem, 1.4rem + 2.2vw, 3rem);
  --container: 1120px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-1: 0 10px 25px rgba(0,0,0,0.35);
  --shadow-2: 0 20px 50px rgba(0,0,0,0.45);
  --space-1: clamp(6px, 0.6vw, 10px);
  --space-2: clamp(10px, 1vw, 16px);
  --space-3: clamp(14px, 1.4vw, 22px);
  --space-4: clamp(18px, 2vw, 28px);
  --space-5: clamp(26px, 3vw, 44px);
  --space-6: clamp(36px, 4.5vw, 64px);
  --header-h: 64px;
}

html[data-theme="light"] {
  --bg: #ffffff;
  --surface: #f6f7fb;
  --text: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --shadow-1: 0 10px 24px rgba(15, 23, 42, 0.08);
  --shadow-2: 0 18px 40px rgba(15, 23, 42, 0.12);
}

body {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(30,136,229,0.22), transparent 40%),
    radial-gradient(800px 600px at -10% 10%, rgba(34,197,94,0.14), transparent 45%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

.container { width: min(100%, var(--container)); margin-inline: auto; padding-inline: max(var(--space-3), env(safe-area-inset-left), env(safe-area-inset-right)); }

a { color: var(--brand); }
a:hover { color: var(--brand-600); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  background: var(--brand);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
}
.skip-link:focus {
  left: 8px;
  width: auto;
  height: auto;
  clip: auto;
}

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }

header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: color-mix(in oklab, var(--surface) 82%, transparent);
  border-bottom: 1px solid var(--border);
  padding-top: env(safe-area-inset-top);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  min-height: var(--header-h);
  padding-block: 8px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); min-width: 0; }
.brand:hover { color: var(--text); }
.brand .logo {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--brand), var(--brand-700));
  box-shadow: var(--shadow-1); overflow: hidden;
}
.brand .logo img.logo-img { width: 100%; height: 100%; object-fit: cover; }
.brand span { font-weight: 700; letter-spacing: 0.2px; font-size: var(--fs-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: var(--fs-0);
  padding: 10px 12px;
  border-radius: 8px;
  transition: color .2s, background .2s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav-links a[aria-current="page"], .nav-links a:hover { color: var(--text); background: color-mix(in oklab, var(--brand) 15%, transparent); }

.nav-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.btn, button.btn, a.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--border); padding: 10px 14px; border-radius: 10px;
  background: color-mix(in oklab, var(--surface) 85%, transparent);
  color: var(--text); cursor: pointer; text-decoration: none;
  min-height: 44px; touch-action: manipulation;
  transition: transform .08s ease, background .2s, border-color .2s;
}
a.btn:hover { color: var(--text); }
.btn:hover { border-color: color-mix(in oklab, var(--brand) 40%, var(--border)); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: linear-gradient(180deg, var(--brand), var(--brand-700)); border-color: transparent; color: white; box-shadow: var(--shadow-1); }
a.btn.primary:hover { color: white; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px; place-items: center;
  border-radius: 10px; border: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface) 85%, transparent);
  cursor: pointer; padding: 0; color: var(--text);
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s, opacity .2s, top .2s;
}
.nav-toggle span::before,
.nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span,
.nav-toggle.is-open span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before,
.nav-toggle.is-open span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after,
.nav-toggle.is-open span::after { top: 0; transform: rotate(-45deg); }

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 45;
}
.nav-backdrop[data-open="true"] { display: block; }

@media (max-width: 900px) {
  .nav-toggle { display: grid; }
  a.btn.nav-cta { display: none; }
  .hero { padding-bottom: calc(var(--space-5) + 76px); }
  .nav-links {
    display: none;
    position: fixed;
    top: calc(var(--header-h) + env(safe-area-inset-top));
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px max(var(--space-3), env(safe-area-inset-right)) 20px max(var(--space-3), env(safe-area-inset-left));
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-2);
    max-height: calc(100dvh - var(--header-h) - env(safe-area-inset-top));
    overflow: auto;
    z-index: 51;
  }
  .nav-links[data-open="true"] { display: flex; }
  .nav-links a { width: 100%; }
  body.nav-open { overflow: hidden; }
}

.hero { padding-block: var(--space-6) var(--space-5); }
.hero h1 { font-size: var(--fs-4); line-height: 1.12; letter-spacing: -0.03em; max-width: 18ch; }
.hero p { font-size: var(--fs-1); color: var(--muted); margin-top: var(--space-3); max-width: 58ch; }
.hero-cta { margin-top: var(--space-4); display: flex; gap: 12px; flex-wrap: wrap; }
.hero-media {
  margin-top: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(180deg, color-mix(in oklab, var(--brand) 10%, var(--surface)), var(--surface));
  box-shadow: var(--shadow-2);
}
.hero-media img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; }

.page { padding-block: var(--space-5) var(--space-6); }
.page .section-head { margin-bottom: var(--space-4); }

section { padding-block: var(--space-6); }
.section-head { display: grid; gap: 8px; margin-bottom: var(--space-4); }
.section-head h2, .section-head h1 { font-size: var(--fs-3); letter-spacing: -0.02em; }
.section-head p { color: var(--muted); max-width: 70ch; }

.grid { display: grid; gap: var(--space-3); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .grid.cols-3, .grid.cols-2, .grid.cols-4 { grid-template-columns: 1fr; }
}
@media (min-width: 640px) and (max-width: 900px) {
  .grid.cols-2, .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.card {
  background: color-mix(in oklab, var(--surface) 95%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}
@media (hover: hover) and (pointer: fine) {
  .card { transition: transform .2s ease, border-color .2s ease; }
  .card:hover { transform: translateY(-3px); border-color: color-mix(in oklab, var(--brand) 40%, var(--border)); }
}
.card .media { aspect-ratio: 16/9; background: color-mix(in oklab, var(--brand) 10%, var(--surface)); overflow: hidden; }
.card .media img { width: 100%; height: 100%; object-fit: cover; }
.card .content { padding: var(--space-3); display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3, .card h2 { font-size: var(--fs-2); line-height: 1.25; }
.card .content .btn { margin-top: auto; align-self: flex-start; }
.meta { color: var(--muted); font-size: var(--fs-0); }
.prose { color: var(--muted); display: grid; gap: 14px; }
.prose h2, .prose h3 { color: var(--text); font-size: var(--fs-2); }
.prose ul { padding-left: 1.1em; display: grid; gap: 6px; }

.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; color: var(--muted); font-size: var(--fs-0); }
.feature-list li { padding-left: 1.2em; position: relative; }
.feature-list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }

.stats .card .content { text-align: center; }
.stats strong { display: block; font-size: var(--fs-3); letter-spacing: -0.03em; color: var(--brand); }
.steps { counter-reset: step; }
.steps article { position: relative; }
.steps h3::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px; margin-right: 8px;
  border-radius: 50%;
  background: color-mix(in oklab, var(--brand) 20%, transparent);
  color: var(--text);
  font-size: 0.85rem;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: color-mix(in oklab, var(--surface) 95%, transparent);
  padding: 4px 16px;
}
.faq summary {
  cursor: pointer;
  font-weight: 650;
  min-height: 48px;
  display: flex;
  align-items: center;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq details p { color: var(--muted); padding-bottom: 14px; }
.cta-band {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-5);
  background: color-mix(in oklab, var(--brand) 12%, var(--surface));
  display: grid;
  gap: var(--space-3);
}
.cta-band h2 { font-size: var(--fs-3); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: var(--fs-0); color: var(--muted); margin-bottom: var(--space-3); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); }

footer.site-footer {
  border-top: 1px solid var(--border);
  padding-block: var(--space-5);
  background: color-mix(in oklab, var(--surface) 85%, transparent);
}
.footer-grid { display: grid; gap: var(--space-4); grid-template-columns: 1.4fr 1fr 1.2fr; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; gap: 12px; align-items: center; }
.footer-brand .logo {
  width: 36px; height: 36px; border-radius: 10px; overflow: hidden;
  background: linear-gradient(135deg, var(--brand), var(--brand-700));
  display: grid; place-items: center; color: white; font-weight: 800; flex-shrink: 0;
}
.footer-brand .logo img.logo-img { width: 100%; height: 100%; object-fit: cover; }
.footer-about { color: var(--muted); margin-top: 12px; max-width: 42ch; font-size: var(--fs-0); }
.footer-col h2 { font-size: var(--fs-1); margin-bottom: 10px; }
.footer-col a, .footer-col address { color: var(--muted); text-decoration: none; display: block; padding: 6px 0; font-style: normal; font-size: var(--fs-0); }
.footer-bottom {
  margin-top: var(--space-4);
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  color: var(--muted); font-size: var(--fs-0);
}
.footer-bottom a { color: var(--muted); }

.callbar { display: none; }
@media (max-width: 900px) {
  .callbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 40;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: color-mix(in oklab, var(--surface) 92%, transparent);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
  }
  .callbar .btn { width: 100%; }
  .site-footer { padding-bottom: calc(var(--space-5) + 72px + env(safe-area-inset-bottom)); }
}

.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; }
.pill {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--brand) 18%, transparent);
  color: var(--brand-700);
  font-weight: 650;
  font-size: var(--fs-0);
  width: fit-content;
}
html[data-theme="dark"] .pill { color: #dbeafe; }

form { display: grid; gap: var(--space-3); }
form .field { display: grid; gap: 8px; }
label { font-size: var(--fs-0); color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  width: 100%;
  background: color-mix(in oklab, var(--surface) 95%, transparent);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 16px;
  min-height: 48px;
}
textarea { min-height: 140px; resize: vertical; }
form .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-note { color: var(--muted); font-size: var(--fs-0); }
.map-wrap { border-radius: var(--radius); overflow: hidden; min-height: 260px; }
.map-wrap iframe { width: 100%; height: 260px; }

.theme-toggle {
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 10px; border: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface) 85%, transparent);
  cursor: pointer; color: var(--text); padding: 0;
}
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
html[data-theme="dark"] .icon-moon { display: none; }
html[data-theme="light"] .icon-sun { display: none; }

.reveal { opacity: 0; transform: translateY(14px); }
.reveal.is-visible { opacity: 1; transform: none; transition: opacity .55s ease, transform .55s ease; }

.hero .pill { animation: fade-up .5s ease both; }
.hero h1 { animation: fade-up .55s ease .05s both; }
.hero .lead { animation: fade-up .55s ease .12s both; }
.hero .hero-cta { animation: fade-up .55s ease .18s both; }
.hero .hero-media { animation: fade-up .7s ease .22s both; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .btn:active, .card:hover { transform: none; }
}

@media (max-width: 480px) {
  .hero h1 { max-width: none; }
  .hero-cta .btn, form .actions .btn { width: 100%; }
  .brand span:not(.logo) { max-width: 46vw; }
}
