/* =========================================================
   Global Style - Base, Components, Modals
   ========================================================= */

/* =========================================================
   Base — Reset & Global Typography
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

html,
body {
  height: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-16);
  line-height: var(--lh-base);
  color: var(--color-text);
  background: var(--color-bg);
  background-image:
    radial-gradient(1100px 700px at 85% -200px, rgba(255, 107, 31, 0.08), transparent 60%),
    radial-gradient(900px 600px at -10% 10%, rgba(255, 184, 28, 0.05), transparent 65%);
  background-attachment: fixed;
  overflow-x: hidden;
  /* Premium tipografi: kerning, ligatür, OpenType özellikleri */
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1, "ss01" 1;
  font-optical-sizing: auto;
  font-variant-numeric: tabular-nums;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-base);
}


button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

input,
textarea,
select {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--color-accent);
  color: var(--color-light-text);
}

/* ---------- Headings ---------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text);
}

h1 {
  font-size: var(--fs-hero-title);
  font-weight: var(--fw-extrabold);
  letter-spacing: var(--tracking-tighter);
}

h2 {
  font-size: var(--fs-section-title);
  font-weight: var(--fw-bold);
}

h3 {
  font-size: var(--fs-subtitle);
  font-weight: var(--fw-semibold);
}

p {
  color: var(--color-text-soft);
  line-height: var(--lh-relaxed);
}

small {
  font-size: var(--fs-14);
  color: var(--color-muted);
}

hr {
  border: 0;
  height: 1px;
  background: var(--color-divider);
}

/* ---------- Utilities ---------- */
.muted {
  color: var(--color-muted);
}

.text-soft {
  color: var(--color-text-soft);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-12);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-accent);
}


.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;
}

/* ---------- Load More ---------- */
.load-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
  padding: var(--space-10) 0 var(--space-4);
  border-top: var(--border-1);
  border-top-color: var(--color-light-line-strong);
}

.load-more.is-complete {
  display: none;
}

.load-more-control {
  position: relative;
  display: grid;
  place-items: center;
  min-height: var(--space-12);
}

.load-more.is-loading [data-load-more] {
  visibility: hidden;
  pointer-events: none;
}

.load-more-status {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-ui), visibility var(--transition-ui);
  pointer-events: none;
}

.load-more.is-loading .load-more-status {
  opacity: 1;
  visibility: visible;
}

.load-more-ring {
  width: var(--space-6);
  height: var(--space-6);
  border-radius: var(--radius-full);
  border: var(--border-1);
  border-color: var(--color-light-line-strong);
  border-top-color: var(--color-light-text);
  animation: load-more-spin 0.8s linear infinite;
}

@keyframes load-more-spin {
  to {
    transform: rotate(360deg);
  }
}

.load-more-count {
  margin: 0;
  font-size: var(--fs-13);
  font-weight: var(--fw-medium);
  letter-spacing: var(--tracking-wide);
  color: var(--color-light-text);
  font-variant-numeric: tabular-nums;
}

.load-more-hidden {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .load-more-ring {
    animation-duration: 1.2s;
  }
}


/* =========================================================
   Buttons
   ========================================================= */

/* ---------- Base Button Properties ---------- */
.btn-primary,
.btn-secondary,
.btn-secondary-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 15px 28px;
  line-height: 1;
  font-size: var(--fs-16);
  font-weight: var(--fw-semibold);
  letter-spacing: -0.005em;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: transform var(--transition-base), background var(--transition-base),
    border-color var(--transition-base), color var(--transition-base),
    box-shadow var(--transition-base);
  white-space: nowrap;
  text-decoration: none;
}


.btn-primary .arrow,
.btn-secondary .arrow,
.btn-secondary-dark .arrow {
  width: 16px;
  height: 16px;
  display: inline-block;
  transition: transform var(--transition-base);
}

.btn-primary:hover .arrow,
.btn-secondary:hover .arrow,
.btn-secondary-dark:hover .arrow {
  transform: translateX(3px);
}

/* ---------- Primary Button ---------- */
.btn-primary {
  color: var(--color-text);
  background: var(--color-primary);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-bg-deep);
  transform: translateY(101%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: -1;
  border-radius: inherit;
}

.btn-primary:hover {
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover::before {
  transform: translateY(0);
}

/* ---------- Secondary Button ---------- */
.btn-secondary {
  color: var(--color-text);
  background: transparent;
  border: 1px solid var(--color-text);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-secondary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-text);
  transform: translateY(101%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: -1;
  border-radius: inherit;
}

.btn-secondary:hover {
  color: var(--color-bg-deep);
  border-color: var(--color-text);
  box-shadow: var(--shadow-md);
}

.btn-secondary:hover::before {
  transform: translateY(0);
}

/* ---------- Secondary Dark Button ---------- */
.btn-secondary-dark {
  color: var(--color-light-text);
  background: transparent;
  border: 1px solid var(--color-light-text);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-secondary-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-light-text);
  transform: translateY(101%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: -1;
  border-radius: inherit;
}

.btn-secondary-dark:hover,
.btn-secondary-dark.is-active {
  color: var(--color-text);
  border-color: var(--color-light-text);
  box-shadow: var(--shadow-md);
}

.btn-secondary-dark:hover::before,
.btn-secondary-dark.is-active::before {
  transform: translateY(0);
}
/* ---------- Breadcrumb — yan sayfa hero ve iç navigasyon ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
  font-size: var(--fs-12);
  font-weight: var(--fw-medium);
  letter-spacing: var(--tracking-wide);
  color: var(--color-dark-muted-soft);
}

.breadcrumb a {
  color: var(--color-text-soft);
  text-decoration: none;
  transition: color var(--transition-ui);
}

.breadcrumb a:hover {
  color: var(--color-primary);
}

.breadcrumb [aria-current="page"] {
  color: var(--color-text-soft);
}

.breadcrumb-sep {
  color: inherit;
}

.inner-hero .breadcrumb {
  justify-content: center;
}

.inner-hero .breadcrumb [aria-current="page"],
.inner-hero .breadcrumb-sep.is-active {
  color: var(--color-primary);
}

/* ---------- Section title — dark: .title-mark primary; light: soluk 2. satır, span yok ---------- */

:is(.process-section,
  .projects-section,
  .svc-index-hero,
  .svc-detail-gallery,
  .krmsl-mv,
  .contact-section) :is(h1, h2, h3) .title-mark {
  color: var(--color-primary);
  font-weight: 600;
}

/* Dark — tam başlık beyaz, yalnızca .title-mark turuncu */
:is(.process-section,
  .projects-section,
  .svc-index-hero,
  .svc-detail-gallery,
  .krmsl-mv,
  .krmsl-sectors,
  .contact-section) :is(.process-title,
  .projects-headline,
  .svc-index-title,
  .svc-detail-title,
  .krmsl-mv-title,
  .contact-headline) {
  color: var(--color-text);
  font-weight: 600;
}

/* Light — 1. satır koyu, devam soluk siyah */
:is(.services-section,
  .about-section,
  .refs-section,
  .prj-approach,
  .prj-projects,
  .svc-detail-intro,
  .svc-detail-route,
  .svc-index-catalog,
  .krmsl-identity,
  .krmsl-approach,
  .krmsl-sectors) :is(.services-title,
  .about-title,
  .refs-title,
  .prj-approach-title,
  .prj-projects-title,
  .svc-index-catalog-title,
  .krmsl-identity-title,
  .krmsl-approach-title,
  .krmsl-sectors-title,
  .svc-detail-title) {
  color: var(--color-light-text-faint);
  font-weight: 500;
}

:is(.services-section,
  .about-section,
  .refs-section,
  .prj-approach,
  .prj-projects,
  .svc-detail-intro,
  .svc-detail-route,
  .svc-index-catalog,
  .krmsl-identity,
  .krmsl-approach,
  .krmsl-sectors) :is(.services-title,
  .about-title,
  .refs-title,
  .prj-approach-title,
  .prj-projects-title,
  .svc-index-catalog-title,
  .krmsl-identity-title,
  .krmsl-approach-title,
  .krmsl-sectors-title,
  .svc-detail-title)::first-line {
  color: var(--color-light-text);
  font-weight: 600;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* =========================================================
   Quote Modal â€” yatay, kurumsal, light surface
   AÅŸaÄŸÄ±dan yukarÄ± akÄ±ÅŸkan giriÅŸ; light zemin + brand sol panel.
   ========================================================= */
.quote-modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal, 1000);
  display: grid;
  place-items: center;
  padding: 24px;
}

.quote-modal[hidden] {
  display: none;
}

/* Backdrop */
.quote-modal-backdrop {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  margin: 0;
  padding: 0;
  cursor: pointer;
  background: rgba(5, 7, 11, 0.62);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  animation: qm-fade 280ms ease-out;
}

/* Panel â€” yatay dikdÃ¶rtgen, alttan yukarÄ± kayar */
.quote-modal-panel {
  position: relative;
  z-index: 1;
  width: min(1300px, 100%);
  max-height: calc(100vh - 48px);
  background: var(--color-light-bg);
  border-radius: 24px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.15fr);
  box-shadow:
    0 60px 120px -30px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  animation: qm-rise-in 520ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* AÃ§Ä±lÄ±ÅŸ animasyonu */
@keyframes qm-rise-in {
  from {
    opacity: 0;
    transform: translateY(64px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes qm-fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* KapanÄ±ÅŸ animasyonu */
.quote-modal.is-closing .quote-modal-panel {
  animation: qm-rise-out 380ms cubic-bezier(0.5, 0, 0.75, 0) forwards;
}

.quote-modal.is-closing .quote-modal-backdrop {
  animation: qm-fade-out 380ms ease-in forwards;
}

@keyframes qm-rise-out {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateY(48px) scale(0.985);
  }
}

@keyframes qm-fade-out {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

/* =========================================================
   SOL â€” Marka paneli (brand gradient zemin)
   ========================================================= */
.qm-brand {
  position: relative;
  padding: 44px 38px 36px;
  background: radial-gradient(600px 400px at 80% 110%, rgba(255, 255, 255, 0.10), transparent 60%), linear-gradient(160deg, #1f2330 0%, #14171f 60%, #0c0e14 100%);
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-12);
  overflow: hidden;
  padding: 0 var(--space-12);
}

/* SaÄŸ kenarda ince hairline divider hissi (Ã¼stÃ¼ne dikey Ä±ÅŸÄ±n) */
.qm-brand::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255, 184, 28, 0.22), transparent);
}



.qm-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 10px rgba(255, 184, 28, 0.6);
  animation: qm-blink 2.4s ease-in-out infinite;
}

@keyframes qm-blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.35;
  }
}

.qm-title {
  margin: 18px 0 12px;
  font-family: var(--font-display);
  font-size: var(--fs-40);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: #fff;
}

.qm-lead {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-soft);
  max-width: 38ch;
}

.qm-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.qm-points li {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--color-text-soft);
  letter-spacing: -0.005em;
  transition: color 220ms ease, padding-left 280ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.qm-points li:first-child { border-top: 0; }
.qm-points li:hover {
  color: #fff;
  padding-left: 4px;
}

.qm-point-num {
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--color-accent);
  flex: 0 0 auto;
  min-width: 22px;
  transition: color 220ms ease;
}
.qm-points li:hover .qm-point-num {
  color: var(--color-accent);
}

.qm-brand-foot {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.qm-contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--color-text-soft);
  text-decoration: none;
  transition: color 200ms ease;
}

.qm-contact svg {
  width: 14px;
  height: 14px;
  color: var(--color-accent);
}

.qm-contact:hover {
  color: #fff;
}

/* =========================================================
   SAÄ â€” Form alanÄ± (light surface)
   ========================================================= */
.qm-form-wrap {
  position: relative;
  padding: 44px 44px 36px;
  background: var(--color-light-bg);
  color: var(--color-light-text);
  overflow-y: auto;
}

.qm-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--color-light-border);
  border-radius: 50%;
  color: var(--color-light-text-soft);
  cursor: pointer;
  transition: color 200ms ease, background 200ms ease, border-color 200ms ease, transform 250ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.qm-close svg {
  width: 18px;
  height: 18px;
  transition: transform 350ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.qm-close:hover {
  color: var(--color-light-text);
  background: var(--color-light-soft);
  border-color: var(--color-light-border-strong);
}

.qm-close:hover svg {
  transform: rotate(90deg);
}

/* Form grid */
.qm-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 20px;
}

.qm-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  margin: -5px;
}

.qm-field--full {
  grid-column: 1 / -1;
}

/* =========================================================
   Section label (chip grup baÅŸlÄ±ÄŸÄ±)
   ========================================================= */
.qm-section-label {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-light-text);
}

/* =========================================================
   Inputs â€” soft surface, hairless border, primary on focus
   ========================================================= */
.qm-input-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #efefea;
  border: 1px solid var(--color-bg-deep);
  border-radius: 12px;
  padding: 12px 16px 14px;
  cursor: text;
  transition: background 200ms ease, border-color 200ms ease, box-shadow 220ms ease;
}

.qm-input-wrap--textarea {
  padding-bottom: 14px;
}

.qm-input-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-light-text);
  line-height: 1;
  pointer-events: none;
  transition: color 220ms ease;
}

.qm-input-icon {
  width: 13px;
  height: 13px;
  color: currentColor;
  flex: 0 0 auto;
  transition: color 220ms ease, transform 220ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.qm-input-title {
  white-space: nowrap;
}

.qm-input-tag {
  margin-left: auto;
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--color-light-muted);
  line-height: 1;
}

.qm-input,
.qm-textarea {
  width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  outline: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--color-light-text);
  letter-spacing: -0.01em;
  line-height: 1.45;
}

.qm-textarea {
  resize: vertical;
  min-height: 88px;
  line-height: 1.55;
}

.qm-input::placeholder,
.qm-textarea::placeholder {
  color: var(--color-light-text);
  font-weight: 400;
  opacity: 0.75;
}

/* Phone input â€” sticky +90 prefix + valid check */
.qm-phone-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}
.qm-phone-prefix {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-right: 10px;
  border-right: 1px solid var(--color-light-border-strong);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-light-text);
  letter-spacing: -0.01em;
  user-select: none;
  flex: 0 0 auto;
}

.qm-phone-code {
  line-height: 0;
}

.qm-phone-flag { font-size: 14px; line-height: 1; }
.qm-input--phone {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.qm-phone-check {
  width: 18px;
  height: 18px;
  color: var(--color-light-text);
  flex: 0 0 auto;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 220ms ease, transform 280ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.qm-input-wrap--phone.is-valid .qm-phone-check {
  opacity: 1;
  transform: scale(1);
}


/* Hover */
.qm-input-wrap:hover {
  background: #e8e8e3;
}

/* Focus â€” beyaza dÃ¶nÃ¼yor, primary aksent */
.qm-input-wrap:focus-within {
  background: #fff;
  border-color: var(--color-orange);
  box-shadow: 0 0 2px 1px #f2840ab0;
}

.qm-input-wrap:focus-within .qm-input-head {
  color: var(--color-orange);
}

.qm-input-wrap:focus-within .qm-input-icon {
  transform: scale(1.08);
}

/* =========================================================
   Service chips â€” sade hairline pill, primary fill on active
   ========================================================= */
.qm-services {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
  margin-bottom: 15px;
}

.qm-service {
  position: relative;
  cursor: pointer;
  display: inline-flex;
}

.qm-service input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.qm-service-pill {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  background: var(--color-light-surface);
  border: 1px solid var(--color-light-text);
  border-radius: 999px;
  color: var(--color-light-text-soft);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  line-height: 1.2;
  transition: color 200ms ease, background 220ms cubic-bezier(0.22, 0.61, 0.36, 1), border-color 200ms ease, transform 200ms ease, box-shadow 220ms ease;
}

.qm-service:hover .qm-service-pill {
  color: white;
  border-color: var(--color-light-text);
  transform: translateY(-1px);
  background: var(--color-light-text);
}

.qm-service input:checked+.qm-service-pill {
  color: #fff;
  background: var(--color-light-text);
  border-color: var(--color-light-text);
}

.qm-service input:focus-visible+.qm-service-pill {
  box-shadow: 0 0 0 3px var(--color-primary-soft);
}

/* Footer: KVKK + Submit */
.qm-footer {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  margin-top: 8px;
  padding-top: 22px;
  border-top: 1px solid var(--color-light-muted);
}

.qm-consent {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--color-light-text-soft);
  cursor: pointer;
  user-select: none;
}

.qm-consent input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.qm-consent-text {
  flex: 1;
}

/* Toggle pill */
.qm-toggle {
  flex: 0 0 auto;
  position: relative;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: transparent;
  border: 1.5px solid var(--color-light-text);
  transition: background 280ms cubic-bezier(0.22, 0.61, 0.36, 1), border-color 280ms ease;
}

.qm-toggle-knob {
  position: absolute;
  top: 50%;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-light-text);
  transform: translateY(-50%);
  transition: left 320ms cubic-bezier(0.22, 0.61, 0.36, 1), background 280ms ease, width 280ms ease;
}

.qm-consent:hover .qm-toggle {
  background: rgba(26, 29, 36, 0.06);
}

.qm-consent input:checked~.qm-toggle {
  background: var(--color-light-text);
  border-color: var(--color-light-text);
}

.qm-consent input:checked~.qm-toggle .qm-toggle-knob {
  left: calc(100% - 18px);
  background: #fff;
}

.qm-consent input:focus-visible~.qm-toggle {
  box-shadow: 0 0 0 3px var(--color-primary-soft);
}

.qm-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--color-bg);
  color: #fff;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: transform 220ms cubic-bezier(0.22, 0.61, 0.36, 1), background 220ms ease, box-shadow 220ms ease;
  box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.4);
}

.qm-submit svg {
  width: 16px;
  height: 16px;
  transition: transform 280ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.qm-submit:hover {
  background: var(--color-primary);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px -8px rgba(255, 107, 31, 0.45);
}

.qm-submit:hover svg {
  transform: translateX(3px);
}

/* Body lock */
body.quote-open {
  overflow: hidden;
}

/* =========================================================
   Responsive — tablet bottom-sheet + mobil iki sayfa akışı
   ========================================================= */
.qm-close--brand,
.qm-mobile-next,
.qm-form-mobile-head {
  display: none;
}

@media (max-width: 1023px) {
  .quote-modal {
    align-items: end;
    padding: 16px;
    padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
  }

  .quote-modal-panel {
    width: min(760px, 100%);
    height: min(660px, calc(100vh - 32px));
    height: min(660px, calc(100dvh - 32px));
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    grid-template-columns: 1fr;
    border-radius: 22px 22px 0 0;
    overflow: hidden;
  }

  .quote-modal-panel[data-step="intro"] .qm-form-wrap,
  .quote-modal-panel[data-step="form"] .qm-brand {
    display: none;
  }

  .quote-modal-panel[data-step="intro"] .qm-brand,
  .quote-modal-panel[data-step="form"] .qm-form-wrap {
    animation: qm-page-in 320ms cubic-bezier(0.22, 0.61, 0.36, 1);
  }

  @keyframes qm-page-in {
    from {
      opacity: 0;
      transform: translateX(18px);
    }

    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  .qm-brand {
    min-height: 100%;
    padding: var(--space-10) var(--space-9);
  }

  .qm-brand::after {
    display: none;
  }

  .qm-title {
    max-width: 13ch;
    font-size: var(--fs-32);
    line-height: 1.12;
  }

  .qm-lead {
    max-width: 48ch;
  }

  .qm-points {
    gap: 0;
  }

  .qm-points li {
    padding: 10px 0;
  }

  .qm-form-wrap {
    height: 100%;
    max-height: none;
    padding: var(--space-9);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .qm-close--brand {
    display: grid;
    color: var(--color-text-soft);
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
  }

  .qm-close--brand:hover {
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.22);
  }

  .qm-mobile-next {
    width: fit-content;
    min-height: 50px;
    margin-top: var(--space-3);
    padding: 0 var(--space-5);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    border: 0;
    border-radius: 14px;
    background: var(--color-primary);
    color: #fff;
    font-family: var(--font-display);
    font-size: var(--fs-13);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
  }

  .qm-mobile-next svg,
  .qm-mobile-back svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
  }

  .qm-form-mobile-head {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    margin-bottom: var(--space-2);
    padding-right: 52px;
  }

  .qm-mobile-back {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    min-height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--color-light-text);
    font-family: var(--font-display);
    font-size: var(--fs-13);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
  }

}

@media (max-width: 767px) {
  .quote-modal {
    padding: 0;
    place-items: stretch;
  }

  .quote-modal-panel {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    border-radius: 0;
    background: var(--color-light-bg);
  }

  .qm-brand,
  .qm-form-wrap {
    min-height: 100vh;
    min-height: 100dvh;
  }

  .qm-brand {
    justify-content: space-between;
    gap: var(--space-8);
    padding: max(var(--space-8), env(safe-area-inset-top, 0px) + var(--space-5)) var(--space-6) max(var(--space-7), env(safe-area-inset-bottom, 0px) + var(--space-5));
  }

  .qm-close--brand {
    top: 23px;
    right: var(--space-5);

  }

  .qm-brand-top {
    padding-top: 0;
    max-width: 90%;
  }

  .qm-title {
    max-width: none;
    margin: 0 0 var(--space-4);
    font-size: var(--fs-32);
    text-align: center;
  }

  .qm-lead {
    font-size: var(--fs-14);
    line-height: 1.6;
    text-align: center;
  }

  .qm-points li {
    gap: var(--space-4);
    padding: var(--space-4) 0;
    font-size: var(--fs-14);
  }

  .qm-brand-foot {
    gap: var(--space-4);
    justify-content: center;
  }

  .qm-contact {
    font-size: var(--fs-13);
    justify-content: center;
  }

  .qm-mobile-next {
    width: 100%;
    justify-content: space-between;
    min-height: 52px;
  }

  .qm-form-wrap {
    padding: max(var(--space-6), env(safe-area-inset-top, 0px) + var(--space-4)) var(--space-5) max(var(--space-7), env(safe-area-inset-bottom, 0px) + var(--space-5));
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .qm-form {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .qm-form-mobile-head {
    padding-right: 52px;
  }

  .qm-close:not(.qm-close--brand) {
    top: max(var(--space-4), env(safe-area-inset-top, 0px) + var(--space-3));
    right: var(--space-5);
  }

  .qm-services {
    flex-wrap: nowrap;
    margin-inline: calc(var(--space-5) * -1);
    padding: 0 var(--space-5) var(--space-2);
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .qm-services::-webkit-scrollbar {
    display: none;
  }

  .qm-service {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .qm-service-pill {
    padding: 9px 14px;
    font-size: var(--fs-12);
  }

  .qm-field {
    margin: 0;
  }

  .qm-input-wrap {
    padding: 11px 14px 13px;
    border-radius: 12px;
  }

  .qm-input,
  .qm-textarea {
    font-size: var(--fs-14);
  }

  .qm-textarea {
    min-height: 94px;
  }

  .qm-footer {
    grid-template-columns: 1fr;
    gap: var(--space-5);
    margin-top: var(--space-2);
    padding-top: var(--space-5);
  }

  .qm-consent {
    align-items: flex-start;
    font-size: var(--fs-12);
  }

  .qm-submit {
    width: 100%;
    min-height: 52px;
    justify-content: center;
  }
}

@media (max-width: 479px) {
  .qm-brand {
    padding-inline: var(--space-5);
    justify-content: center;
    align-items: center;
  }

  .qm-title {
    font-size: var(--fs-28);
  }

  .qm-points li {
    font-size: var(--fs-13);
    justify-content: center;
  }

  .qm-form-wrap {
    padding-inline: var(--space-4);
  }

  .qm-services {
    margin-inline: calc(var(--space-4) * -1);
    padding-inline: var(--space-4);
    margin-bottom: 0;
  }
}


/* =========================================================
   Floating contact actions — phone + WhatsApp
   Panel her zaman display:grid; kapalıyken opacity/transform ile gizlenir.
   pointer-events: none (kapsayıcı) → alttaki içerik tıklanabilir kalır.
   ========================================================= */

.call-fab {
  position: fixed;
  right: var(--section-inline-gutter);
  bottom: var(--space-6);
  z-index: var(--z-fab);
  width: var(--call-fab-dial-size);
  height: var(--call-fab-dial-size);
  margin: 0;
  overflow: visible;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.call-fab.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.call-fab.is-open {
  z-index: calc(var(--z-overlay) - 40);
}

body.menu-open .call-fab,
body.search-open .call-fab,
body.quote-open .call-fab {
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
}

/* Panel — display sabit; görünürlük opacity + transform ile */
.call-fab__panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + var(--space-3));
  z-index: 2;
  display: grid;
  gap: var(--space-2);
  width: var(--call-fab-panel-width);
  max-width: calc(100vw - (var(--section-inline-gutter, 16px) * 2));
  padding: var(--space-2);
  background: var(--color-bg-deep);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translate3d(0, 12px, 0) scale(0.96);
  transform-origin: right bottom;
  pointer-events: none;
  transition:
    opacity 280ms cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 280ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.call-fab.is-open .call-fab__panel {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  pointer-events: auto;
}

@starting-style {
  .call-fab.is-open .call-fab__panel {
    opacity: 0;
    transform: translate3d(0, 12px, 0) scale(0.96);
  }
}

.call-fab__action {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  color: var(--color-text);
  text-decoration: none;
  background: var(--color-surface);
  border: 1px solid var(--color-light-text-soft);
  border-radius: var(--radius-md);
  transition: background-color var(--transition-base), border-color var(--transition-base), transform var(--transition-base);
}

.call-fab__action:hover,
.call-fab__action:focus-visible {
  background: var(--color-surface-soft);
  border-color: var(--color-accent);
  transform: translateY(-1px);
  outline: none;
}

.call-fab__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--color-bg-deep);
  background: var(--color-accent);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-accent);
}

.call-fab__action--whatsapp .call-fab__icon {
  color: #fff;
  background: #25d366;
  box-shadow: 0 14px 30px -18px rgba(37, 211, 102, 0.72);
}

.call-fab__icon svg {
  width: 21px;
  height: 21px;
}

.call-fab__text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.call-fab__label {
  font-size: var(--fs-12);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-accent);
}

.call-fab__value {
  overflow: hidden;
  font-size: var(--fs-14);
  color: var(--color-text-soft);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.call-fab__toggle {
  position: relative;
  z-index: 3;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: var(--call-fab-dial-size);
  height: var(--call-fab-dial-size);
  pointer-events: auto;
  color: var(--color-bg-deep);
  background: var(--color-accent);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-accent);
  cursor: pointer;
  transition: transform var(--transition-base), background-color var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.call-fab__toggle::before {
  content: "";
  position: absolute;
  inset: 7px;
  z-index: -1;
  background: rgba(255, 255, 255, 0.16);
  border-radius: inherit;
  transform: scale(0.72);
  opacity: 0;
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.call-fab.is-visible .call-fab__toggle {
  animation: call-fab-in 0.45s ease backwards;
}

.call-fab__toggle:hover,
.call-fab__toggle:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(255, 255, 255, 0.32);
  outline: none;
}

.call-fab__toggle:hover::before,
.call-fab__toggle:focus-visible::before {
  opacity: 1;
  transform: scale(1);
}

.call-fab__toggle:active {
  transform: translateY(0) scale(0.98);
}

.call-fab__toggle-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
}

.call-fab__toggle-icon svg {
  grid-area: 1 / 1;
  width: 24px;
  height: 24px;
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.call-fab__toggle-phone {
  transform: rotate(-6deg);
  animation: call-fab-phone-ring 4.8s ease-in-out infinite;
}

.call-fab__toggle-close {
  opacity: 0;
  transform: rotate(-45deg) scale(0.76);
}

.call-fab.is-open .call-fab__toggle-phone {
  opacity: 0;
  transform: rotate(45deg) scale(0.76);
  animation-play-state: paused;
}

.call-fab.is-open .call-fab__toggle-close {
  opacity: 1;
  transform: rotate(0) scale(1);
}

.call-fab__pulse {
  position: absolute;
  inset: -7px;
  border: 1px solid var(--color-accent);
  border-radius: inherit;
  opacity: 0.5;
  pointer-events: none;
  animation: call-fab-pulse 2.4s ease-out infinite;
}

.call-fab__pulse::after {
  content: "";
  position: absolute;
  inset: -8px;
  border: 1px solid var(--color-accent);
  border-radius: inherit;
  opacity: 0;
  animation: call-fab-pulse 2.4s ease-out infinite;
  animation-delay: 0.75s;
}

.call-fab.is-open .call-fab__pulse,
.call-fab.is-open .call-fab__pulse::after,
.call-fab__toggle:hover .call-fab__pulse,
.call-fab__toggle:hover .call-fab__pulse::after,
.call-fab__toggle:focus-visible .call-fab__pulse {
  opacity: 0;
  animation-play-state: paused;
}

.call-fab__toggle:focus-visible .call-fab__pulse::after {
  opacity: 0;
  animation-play-state: paused;
}

@keyframes call-fab-pulse {
  0% {
    opacity: 0.36;
    transform: scale(0.82);
  }
  55% {
    opacity: 0.18;
  }
  100% {
    opacity: 0;
    transform: scale(1.34);
  }
}

@keyframes call-fab-phone-ring {
  0%,
  78%,
  100% {
    transform: rotate(-6deg);
  }
  82% {
    transform: rotate(7deg);
  }
  86% {
    transform: rotate(-8deg);
  }
  90% {
    transform: rotate(5deg);
  }
  94% {
    transform: rotate(-6deg);
  }
}

@keyframes call-fab-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .call-fab__panel {
    transition-duration: 0.01ms;
  }

  .call-fab.is-open .call-fab__panel {
    opacity: 1;
    transform: none;
  }

  .call-fab__toggle,
  .call-fab__pulse,
  .call-fab__pulse::after,
  .call-fab__toggle-icon svg {
    animation: none;
    transition-duration: 0.01ms;
  }
}

@media print {
  .call-fab {
    display: none !important;
  }
}


/* =========================================================
   Layout 
   ========================================================= */
/* =========================================================
   Layout - Container, Section, Grid
   ========================================================= */
.container {
  width: 100%;
  max-width: var(--container-xl);
  margin-inline: auto;
}

section {
  position: relative;
  padding-block: var(--space-section);
}


/* ---------- Grid ---------- */
.grid {
  display: grid;
  gap: var(--space-6);
}

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

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

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

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


/* =========================================================
   Search 
   ========================================================= */
/* =========================================================
   Search — tipografi-odaklı, akışkan, fütüristik
   Kutu yok; içerik viewport üzerinde serbest yüzer.
   ========================================================= */
.search-modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal, 1000);
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  justify-items: center;
  padding-bottom: 150px;
  overflow-y: auto;
}

.search-modal[hidden] {
  display: none;
}

/* ---------- Backdrop (yoğun blur + ambient glow) ---------- */
.search-modal-backdrop {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  margin: 0;
  padding: 0;
  cursor: pointer;
  background:
    radial-gradient(900px 600px at 50% 20%, rgba(255, 107, 31, 0.10), transparent 60%),
    radial-gradient(700px 500px at 50% 80%, rgba(255, 184, 28, 0.06), transparent 60%),
    rgba(5, 7, 11, 0.86);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  animation: search-fade 280ms ease-out;
}

@keyframes search-fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ---------- Sağ üst kapatma (büyük, daire, vurgulu) ---------- */
.search-modal-close {
  position: fixed;
  bottom: 100px;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  color: var(--color-text-soft);
  cursor: pointer;
  transition: color 220ms ease, background 220ms ease, border-color 220ms ease, transform 220ms cubic-bezier(0.22, 0.61, 0.36, 1);
  animation: search-fade 400ms ease-out 120ms both;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.search-modal-close::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 250ms ease, transform 350ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.search-modal-close svg {
  width: 22px;
  height: 22px;
  transition: transform 350ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.search-modal-close:hover {
  color: #fff;
  background: rgba(255, 107, 31, 0.12);
  border-color: rgba(255, 107, 31, 0.55);
  transform: scale(1.04);
}

.search-modal-close:hover::before {
  opacity: 1;
  transform: scale(1);
  border-color: rgba(255, 107, 31, 0.25);
}

.search-modal-close:hover svg {
  transform: rotate(90deg);
}

/* ---------- Stage: tüm içerik akışkan, ortalı ---------- */
.search-modal-stage {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  display: flex;
  flex-direction: column;
  gap: 36px;
}

/* ---------- Eyebrow (üst micro etiket) ---------- */
.search-modal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-muted);
  animation: search-rise 600ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.search-modal-eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 10px rgba(255, 184, 28, 0.6);
  animation: search-blink 2.4s ease-in-out infinite;
}

@keyframes search-blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.35;
  }
}

/* ---------- Form: input bir çizgi gibi ---------- */
.search-modal-form {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 6px 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  animation: search-rise 700ms cubic-bezier(0.22, 0.61, 0.36, 1) 80ms both;
}

/* Aktif çizgi (focus'ta gradient akar) */
.search-modal-form::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 1.5px;
  background: var(--color-accent);
  transition: width 500ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.search-modal-form:focus-within::after {
  width: 100%;
}

.search-modal-icon {
  display: grid;
  place-items: center;
  color: var(--color-muted);
  transition: color 250ms ease, transform 400ms ease;
}

.search-modal-icon svg {
  width: 22px;
  height: 22px;
}

.search-modal-form:focus-within .search-modal-icon {
  color: var(--color-accent);
  transform: scale(1.05);
}

.search-modal-input {
  width: 100%;
  padding: 8px 0;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: var(--fs-modal-input);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.search-modal-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
  font-weight: 400;
}

.search-modal-input::-webkit-search-cancel-button {
  display: none;
}

.search-modal-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--color-accent);
  color: var(--color-bg);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  transform: translateX(-10px);
  pointer-events: none;
  transition: all 300ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.search-modal-submit svg {
  width: 18px;
  height: 18px;
}

.search-modal-input:not(:placeholder-shown)~.search-modal-submit {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.search-modal-submit:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(255, 107, 31, 0.4);
}

/* ---------- Row (etiketsiz, sade akış) ---------- */
.search-modal-row {
  animation: search-rise 700ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.search-modal-row:nth-of-type(2) {
  animation-delay: 180ms;
}

.search-modal-row:nth-of-type(3) {
  animation-delay: 280ms;
}

/* ---------- Chips (ghost, hairline) ---------- */
.search-modal-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-modal-chip {
  padding: 9px 16px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-soft);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  cursor: pointer;
  transition: color 200ms ease, border-color 200ms ease, background 200ms ease, transform 200ms ease;
}

.search-modal-chip--link {
  display: inline-block;
  text-decoration: none;
}

.search-modal-chip:hover {
  color: var(--color-bg-deep);
  border-color: var(--color-accent);
  background: var(--color-accent);
  transform: translateY(-1px);
}



/* ---------- Klavye tuşu ---------- */
.kbd {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-text-soft);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 5px;
  text-transform: uppercase;
}

/* ---------- Animasyonlar ---------- */
@keyframes search-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes search-fade-out {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes search-rise-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(14px);
  }
}

/* ---------- Kapanış Animasyonları ---------- */
.search-modal.is-closing .search-modal-backdrop {
  animation: search-fade-out 300ms ease-in forwards;
  animation-delay: 40ms;
  /* İçerik kaybolurken arka plan korunsun */
}

.search-modal.is-closing .search-modal-close {
  animation: search-fade-out 200ms ease-in forwards;
}

.search-modal.is-closing .search-modal-form {
  animation: search-rise-out 200ms ease-in forwards;
  animation-delay: 40ms;
  /* Form biraz sonra çıksın */
}

.search-modal.is-closing .search-modal-row {
  animation: search-rise-out 200ms ease-in forwards;
  animation-delay: 0ms;
  /* Chips en önce çıksın */
}

/* Body scroll lock */
body.search-open {
  overflow: hidden;
}


/* =========================================================
   Decorations 
   ========================================================= */

/* ─────────────────────────────────────────────────────────
   Ortak Kapsayıcı
   ───────────────────────────────────────────────────────── */
.section-deco {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

