/* ==========================================================================
   AS Platform · Arayüz v2
   1) Buton sistemi (tüm cihazlar)
   2) Mobil düzen: her şey ekrana sığar, yana kayan alan yok
   style.css'ten sonra yüklenir.
   ========================================================================== */

:root {
  --acc-1: #ffd24a;            /* sarı gradyan üst */
  --acc-2: #f5b50a;            /* logo sarısı */
  --acc-3: #d99a00;            /* koyu amber */
  --on-acc: #111317;
  --wa-1: #2fe07a;
  --wa-2: #1fb85c;
  --btn-r: 14px;
  --ring: 0 0 0 3px rgba(255, 198, 41, .55);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

/* ---------------------------------------------------------------- 1) Butonlar */
.btn, .call-btn, .call-card, .link-card, .mobilebar a, .fab__btn, .nav__burger, .nav__cta, .acc__q, .qa summary, .hero__3d {
  -webkit-tap-highlight-color: transparent;
}
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  align-items: center; justify-content: center; gap: 10px;
  border-radius: var(--btn-r); font-weight: 700; letter-spacing: .005em; line-height: 1.1; text-align: center;
  transition: transform .18s var(--ease), box-shadow .25s var(--ease), background-color .2s, border-color .2s, color .2s, filter .2s;
}
.btn .ico { width: 20px; height: 20px; flex: none; }
.btn:active, .call-btn:active, .call-card:active, .mobilebar a:active, .fab__btn:active, .link-card:active { transform: scale(.97); }
.btn:focus-visible, .call-btn:focus-visible, .call-card:focus-visible, .link-card:focus-visible, .mobilebar a:focus-visible,
.fab__btn:focus-visible, .nav__burger:focus-visible, .acc__q:focus-visible, .qa summary:focus-visible, .nav__links a:focus-visible {
  outline: none; box-shadow: var(--ring);
}

/* Birincil (sarı) */
.btn--red, .call-btn, .call-card, .mobilebar a:first-child, .fab__btn--tel {
  background: linear-gradient(180deg, var(--acc-1) 0%, var(--acc-2) 55%, var(--acc-3) 100%);
  color: var(--on-acc);
  border: 1px solid rgba(255, 236, 170, .55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -2px 0 rgba(0, 0, 0, .12), 0 10px 26px -12px rgba(245, 181, 10, .75);
}
.btn--red:hover, .call-btn:hover, .call-card:hover, .fab__btn--tel:hover {
  background: linear-gradient(180deg, #ffdc6a 0%, #f8be1e 55%, #e0a300 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -2px 0 rgba(0, 0, 0, .12), 0 16px 34px -12px rgba(245, 181, 10, .9);
  transform: translateY(-2px);
}
/* Parlama geçişi */
.btn--red::after, .call-btn::after, .call-card::after, .mobilebar a:first-child::after {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-18deg); transition: left .7s var(--ease); pointer-events: none;
}
.btn--red:hover::after, .call-btn:hover::after, .call-card:hover::after { left: 130%; }
.call-btn, .call-card { position: relative; isolation: isolate; overflow: hidden; }

/* İkincil (koyu cam) */
.btn--ghost {
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  color: var(--text); border: 1px solid var(--line-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
.btn--ghost:hover { border-color: rgba(255, 198, 41, .65); background: rgba(255, 198, 41, .08); color: #fff; transform: translateY(-2px); }
.btn--ghost .ico { color: var(--red-ink); }
.btn--ghost[href*="wa.me"] .ico, .btn--ghost[data-wa] .ico { color: var(--wa-1); }

/* WhatsApp */
.btn--wa, .mobilebar .mobilebar__wa, .fab__btn--wa {
  background: linear-gradient(180deg, var(--wa-1), var(--wa-2)); color: #052611;
  border: 1px solid rgba(160, 255, 200, .45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 10px 24px -12px rgba(37, 211, 102, .7);
}

/* Boyutlar */
.btn--sm { min-height: 42px; padding: 0 16px; font-size: 14px; border-radius: 12px; }
.btn--lg { min-height: 56px; padding: 0 26px; font-size: 16px; }

/* Arama butonu (hero) */
.call-btn { gap: 14px; padding: 8px 22px 8px 8px; border-radius: 18px; }
.call-btn__icon { position: relative; width: 48px; height: 48px; border-radius: 13px; background: rgba(17, 19, 23, .14); box-shadow: inset 0 0 0 1px rgba(17, 19, 23, .12); color: var(--on-acc); }
.call-btn__icon::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid rgba(17, 19, 23, .35); animation: mRing 2.2s infinite; }
.call-btn__text small { color: rgba(17, 19, 23, .72); font-weight: 600; }
.call-btn__text b { color: var(--on-acc); }

/* Büyük arama kartı */
.call-card { border-radius: 22px; }
.call-card__icon { background: rgba(17, 19, 23, .14); color: var(--on-acc); }
.call-card small, .call-card__hint { color: rgba(17, 19, 23, .75); }

/* Menü düğmesi ve üst CTA */
.nav__burger { background: rgba(255, 255, 255, .06); border-color: var(--line-2); transition: background .2s, border-color .2s, transform .18s; }
.nav__burger:hover { border-color: rgba(255, 198, 41, .6); background: rgba(255, 198, 41, .1); }
.nav__burger:active { transform: scale(.94); }

/* Bağlantı kartları */
.link-card { border-radius: 14px; }
.link-card .ico { transition: transform .2s var(--ease); }
.link-card:hover .ico { transform: translateX(3px); }

/* SSS açma düğmeleri */
.acc__q i, .qa summary::after { transition: transform .3s var(--ease), background .2s, border-color .2s, color .2s; }
.acc.is-open .acc__q i, .qa[open] summary::after { background: linear-gradient(180deg, var(--acc-1), var(--acc-3)); border-color: transparent; color: var(--on-acc); }

@media (prefers-reduced-motion: reduce) {
  .call-btn__icon::after { animation: none; }
  .btn--red::after, .call-btn::after, .call-card::after, .mobilebar a:first-child::after { display: none; }
}

/* ---------------------------------------------------------------- 2) Mobil */
@media (max-width: 760px) {
  :root { --gutter: 16px; --nav-h: 64px; }
  html, body { overflow-x: hidden; }
  body { padding-bottom: calc(84px + var(--safe-b)); }
  img, svg, video, canvas { max-width: 100%; }
  h1, h2, h3, p, li, a, b, span { overflow-wrap: anywhere; }

  /* Üst menü: her zaman okunur, sabit yükseklik */
  .nav, .nav.is-solid { background: rgba(9, 12, 16, .97); border-bottom: 1px solid var(--line); box-shadow: 0 8px 24px -16px rgba(0, 0, 0, .9); }
  .nav__inner { min-height: var(--nav-h); height: var(--nav-h); gap: 10px; }
  .brand { gap: 10px; min-width: 0; }
  .brand img, body.home .brand img { width: 42px; height: 42px; }
  .brand__text { font-size: 16px; }
  .nav__burger { width: 44px; height: 44px; border-radius: 12px; }
  body.home .nav__cta { display: none; }
  .subpage .nav__links { display: none; }
  .subpage .nav__cta { display: inline-flex; min-height: 40px; padding: 0 12px; font-size: 13px; border-radius: 11px; }
  .subpage .nav__cta span { display: none; }
  .subpage .nav__cta .ico { width: 20px; height: 20px; }
  .drawer { padding-top: calc(var(--nav-h) + 12px); }
  .drawer a { min-height: 52px; display: flex; align-items: center; }

  /* Ana sayfa üst kısmı: fotoğraf + başlık */
  body.home .stage__poster { display: block !important; position: relative; inset: auto; height: auto; aspect-ratio: 16 / 9; margin-top: var(--nav-h); overflow: hidden; }
  body.home .stage__poster img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
  body.home .stage__poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9, 12, 16, 0) 72%, var(--bg) 100%); }
  body.home .stage__loader { display: none !important; }
  body.home .hero { padding: 12px var(--gutter) 26px; margin-top: -6px; background: transparent; }
  body.home .mchips { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; gap: 6px; }
  body.home .mchips li { padding: 6px 11px; font-size: 12.5px; background: rgba(24, 29, 35, .9); }
  body.home .hero__title { margin: 14px 0 8px; font-size: clamp(36px, 11vw, 48px); }
  body.home .hero__sub { font-size: 16px; }
  body.home .hero__cta { gap: 10px; margin-top: 18px; }
  body.home .call-btn { width: 100%; min-height: 66px; }
  body.home .call-btn__text b { font-size: clamp(18px, 5.6vw, 21px); }
  body.home .hero__cta .btn { min-height: 54px; border-radius: 16px; }
  body.home .hero__facts { gap: 8px; margin-top: 18px; }
  body.home .hero__facts > div { padding: 12px 14px; border-radius: 14px; }
  body.home .hero__facts dt { font-size: 21px; }

  /* Bölümler */
  .section, body.home .section { padding: 40px 0; }
  .section-title, body.home .section-title { font-size: clamp(25px, 7.4vw, 32px); line-height: 1.15; }
  .section-lead { font-size: 15px; }
  .prose p, .prose li { font-size: 15.5px; line-height: 1.7; }

  /* Makine: çizim + tablo sığsın */
  .blueprint { padding: 10px; }
  .spec-table { font-size: 14px; }
  .spec-table > div, .spec-table tr { gap: 10px; }
  .attachments { grid-template-columns: 1fr; gap: 10px; }
  .att-card { padding: 18px; }

  /* Hizmetler: yana kaydırma yok, 2 sütun ızgara */
  body.home .services .container { padding-right: var(--gutter); }
  body.home .service-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-flow: row; grid-auto-columns: auto; overflow: visible; padding: 0; gap: 10px; scroll-snap-type: none; }
  body.home .service { padding: 14px; border-radius: 16px; min-width: 0; }
  body.home .service__icon { width: 38px; height: 38px; margin-bottom: 10px; border-radius: 11px; }
  body.home .service__icon .ico { width: 20px; height: 20px; }
  body.home .service h3 { font-size: 14.5px; line-height: 1.25; }
  body.home .service p { font-size: 12.5px; line-height: 1.45; -webkit-line-clamp: 4; }
  body.home .service__tag { margin-top: auto; padding-top: 8px; font-size: 11.5px; }

  /* Süreç */
  .steps { grid-template-columns: 1fr; }
  .step h3 { font-size: 16.5px; }
  .step p { font-size: 14.5px; }

  /* Bölge: kartlar alt alta */
  body.home .area__cards { display: grid; grid-template-columns: 1fr; gap: 10px; overflow: visible; margin: 0; padding: 0; scroll-snap-type: none; }
  body.home .district-card { flex: none; padding: 16px; }
  .district-card ul { grid-template-columns: 1fr 1fr; gap: 6px 12px; }
  .district-card li { font-size: 13.5px; }
  .district-card__tag { font-size: 11.5px; }
  .area-note { font-size: 14px; }
  .area-note .btn, .area-note a.btn { width: 100%; }

  /* SEO bağlantıları: düzenli 2 sütun */
  body.home .seo .link-grid, body.home .link-grid, .link-grid, .subpage .link-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .link-card, body.home .link-card { min-height: 52px; padding: 10px 12px; border-radius: 12px; font-size: 13px; line-height: 1.3; gap: 6px; }
  .link-card span { min-width: 0; }
  .link-card .ico, body.home .link-card .ico { display: block; flex: none; width: 15px; height: 15px; }
  .seo .prose h3 { margin: 22px 0 8px; font-size: 19px; }

  /* SSS */
  .acc__q, body.home .acc__q { min-height: 58px; padding: 14px 16px; font-size: 15.5px; gap: 12px; }
  .acc__q i { width: 30px; height: 30px; }
  .acc__a p { font-size: 14.5px; }
  .qa summary { padding: 14px 16px; font-size: 15.5px; }
  .qa p { padding: 0 16px 18px; font-size: 14.5px; }

  /* İletişim paneli */
  .call-panel { padding: 22px 18px; border-radius: 22px; gap: 18px; }
  .call-panel__points li { font-size: 14.5px; }
  .call-card { padding: 20px; align-items: flex-start; }
  .call-card b { font-size: clamp(24px, 8vw, 30px); }
  .call-panel .btn--block { min-height: 54px; }

  /* Alt sayfa üst kısmı */
  .page-hero { padding: calc(var(--nav-h) + 22px) 0 30px; }
  .page-hero__title { font-size: clamp(30px, 9vw, 40px); line-height: 1.1; }
  .page-hero__lead { font-size: 16px; }
  .page-hero .hero__cta { flex-direction: column; align-items: stretch; gap: 10px; }
  .page-hero .call-btn { width: 100%; }
  .page-hero .btn--ghost { display: inline-flex !important; width: 100%; min-height: 52px; }
  .page-hero__facts, .hero__facts.page-hero__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .page-hero__facts > div { padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); margin: 0; }
  .crumbs { font-size: 13px; flex-wrap: wrap; }
  .prose-grid { grid-template-columns: 1fr; gap: 20px; }
  .carry-card { padding: 20px; }
  .carry-card li { font-size: 14.5px; }

  /* Alt bilgi: kompakt 2 sütun */
  .footer { padding: 40px 0 24px; }
  .footer__grid, body .footer__grid { grid-template-columns: 1fr 1fr; gap: 22px 16px; }
  .footer__brand { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 14px; }
  .footer__brand img { width: 64px; height: 64px; }
  .footer__brand p { font-size: 13.5px; }
  .footer h3, .footer__h { margin-bottom: 10px; font-size: 11.5px; }
  .footer li { font-size: 13.5px; }
  .footer li a { display: inline-block; padding: 5px 0; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 10px; font-size: 13px; }

  /* Alttaki sabit iletişim çubuğu (tüm sayfalar) */
  .mobilebar, body.home .mobilebar {
    position: fixed; z-index: 60; display: grid; grid-template-columns: 1.35fr 1fr; gap: 8px;
    left: 10px; right: 10px; bottom: calc(10px + var(--safe-b)); padding: 7px;
    border: 1px solid var(--line-2); border-radius: 20px;
    background: rgba(12, 15, 19, .97); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .85);
  }
  .mobilebar a, body.home .mobilebar a {
    position: relative; isolation: isolate; overflow: hidden;
    min-height: 52px; padding: 0 12px; border-radius: 14px; gap: 8px;
    font: 700 15.5px var(--font-body); letter-spacing: .005em;
  }
  .mobilebar a .ico { width: 20px; height: 20px; }
  .mobilebar a:first-child::after { animation: barShine 4.5s 2s infinite; }
  .footer, body.home .footer { padding-bottom: 28px; }
}
@keyframes barShine { 0%, 70% { left: -60%; } 100% { left: 130%; } }

@media (max-width: 380px) {
  :root { --gutter: 14px; }
  .brand__text { font-size: 14.5px; }
  .brand img, body.home .brand img { width: 38px; height: 38px; }
  body.home .service-grid { grid-template-columns: 1fr; }
  body.home .service p { -webkit-line-clamp: 3; }
  .link-grid, body.home .link-grid, body.home .seo .link-grid, .subpage .link-grid { grid-template-columns: 1fr; }
  .district-card ul { grid-template-columns: 1fr; }
  .mobilebar a, body.home .mobilebar a { font-size: 14.5px; }
  body.home .hero__facts dt { font-size: 19px; }
}
