/* critical.css — ilk boyama: tipografi kabuğu, header, hero, sticky CTA (mobil) */
:root {
  --black: #000000;
  --gray-900: #141414;
  --gray-800: #2b2b2b;
  --metal: #2b2b2b;
  --gray-600: #6b6b6b;
  --gray-200: #e8e8e8;
  --accent: #d21111;
  --accent-hover: #b00e0e;
  --silver: #e8eaed;
  --navy-dock: #1a1f26;
  --hero-bg-1: #1a1a1a;
  --hero-bg-2: #0a0a0a;
  --focus: 2px solid var(--accent);
  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --sticky-h: 3.5rem;
  --safe-b: env(safe-area-inset-bottom, 0px);
  /* Dikey logo: sabit slot → kayma / CLS yok; menü padding ile aynı genişlik */
  --hero-logo-w: 4.85rem;
  --hero-logo-h: 6.15rem;
}

@media (min-width: 48rem) {
  :root {
    --hero-logo-w: 5.85rem;
    --hero-logo-h: 7.35rem;
  }
}

@media (min-width: 64rem) {
  :root {
    --hero-logo-w: 6.65rem;
    --hero-logo-h: 8.25rem;
  }
}

/* Çok küçük ekranlar: logo biraz küçülür, menü çakışmaz */
@media (max-width: 22.5rem) {
  :root {
    --hero-logo-w: 4.2rem;
    --hero-logo-h: 5.35rem;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* Fallback: bazı mobil tarayıcılarda clip sorun çıkarabiliyor */
html, body { overflow-x: hidden; }
@supports (overflow-x: clip) {
  html, body { overflow-x: clip; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--gray-200);
  background: var(--black);
  padding-top: 0;
  padding-bottom: 0;
}
@media (min-width: 64rem) { body { padding-bottom: 0; } }

/* Boot splash (2 sn) — logo dönerek gelsin */
body.is-booting { overflow: hidden; }
.boot-splash {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse 70% 50% at 50% 35%, rgba(210, 17, 17, 0.16), transparent 55%),
    linear-gradient(180deg, rgba(0,0,0,0.92), rgba(0,0,0,0.98));
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.boot-splash__inner {
  display: grid;
  place-items: center;
  gap: 0.9rem;
  padding: 1.25rem;
}
.boot-splash__logo {
  width: clamp(90px, 22vw, 140px);
  height: auto;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,0.55));
  transform-origin: 50% 50%;
  animation: bootSpinIn 1.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.boot-splash__hint {
  margin: 0;
  color: rgba(255,255,255,0.72);
  font-weight: 700;
  font-family: var(--font-head);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
@keyframes bootSpinIn {
  0% { opacity: 0; transform: rotate(-260deg) scale(0.6); }
  60% { opacity: 1; transform: rotate(12deg) scale(1.04); }
  100% { opacity: 1; transform: rotate(0deg) scale(1); }
}
body:not(.is-booting) .boot-splash {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .boot-splash__logo { animation: none; opacity: 1; transform: none; }
  .boot-splash { transition: none; }
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: max(0.95rem, env(safe-area-inset-right, 0px));
  bottom: max(5.25rem, env(safe-area-inset-bottom, 0px));
  z-index: 65;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(20, 20, 20, 0.78);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, background 0.15s ease, border-color 0.15s ease;
}
.back-to-top:hover,
.back-to-top:focus {
  background: rgba(210, 17, 17, 0.85);
  border-color: rgba(210, 17, 17, 0.65);
}
.back-to-top--show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top__icon { font-size: 1.1rem; line-height: 1; }
@media (max-width: 26rem) {
  .back-to-top {
    right: max(0.8rem, env(safe-area-inset-right, 0px));
    bottom: max(4.5rem, env(safe-area-inset-bottom, 0px));
  }
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 1000;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 800; line-height: 1.2; }
img { max-width: 100%; height: auto; display: block; }

/* Hamburger (mobil): hero mast sağ üst; masaüstünde gizli */
.nav-toggle {
  min-width: 48px;
  min-height: 48px;
  padding: 0;
  border: none;
  background: transparent;
  color: #fff;
  border-radius: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle__bar { width: 24px; height: 2px; background: #fff; border-radius: 1px; }
.hero__mast-toggle {
  position: absolute;
  top: max(0.2rem, env(safe-area-inset-top, 0px));
  right: max(0.35rem, env(safe-area-inset-right, 0px));
  z-index: 8;
}

/* Hero — referans düzeni: flu koyu mast, sarı tabela, sağda vinç; logo mast/menü birleşiminde */
.hero--cevik {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--black);
  overflow: visible;
}
.hero__mast {
  position: relative;
  z-index: 1;
  isolation: isolate;
  padding: 0.25rem 0.65rem 0.85rem;
  border-bottom: none;
}
.hero__mast::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("../images/hero-banner.webp");
  background-size: cover;
  background-position: center 40%;
  filter: blur(26px) brightness(0.28) saturate(0.85);
  transform: scale(1.08);
  pointer-events: none;
}
.hero__mast::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(15, 15, 15, 0.88) 100%),
    radial-gradient(ellipse 55% 45% at 50% 0%, rgba(255, 255, 255, 0.06), transparent 55%);
  pointer-events: none;
}
.hero__mast-inner {
  position: relative;
  z-index: 1;
  max-width: 80rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "hang"
    "crane";
  align-items: end;
  gap: 0.15rem;
}
.hero__mast-pad { display: none; }
.hero__hang {
  grid-area: hang;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: min(22rem, 94vw);
  margin: 0 auto;
  transform-origin: 50% 0;
  animation: heroHang 5.5s ease-in-out infinite;
}
.hero__crane {
  grid-area: crane;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding-right: 0.15rem;
  margin-top: -0.35rem;
  opacity: 0.95;
}
.hero__crane-svg {
  width: 100%;
  max-width: 4.25rem;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}
@keyframes heroHang {
  0%, 100% { transform: rotate(-0.65deg); }
  50% { transform: rotate(0.65deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__hang { animation: none; }
}
.hero__chains {
  display: flex;
  justify-content: space-between;
  width: min(11.5rem, 58%);
  height: 1.45rem;
  margin-bottom: 2px;
  opacity: 0.92;
}
.hero__chain {
  width: 4px;
  border-radius: 2px;
  background: repeating-linear-gradient(
    180deg,
    #9a9a9a 0 5px,
    #404040 5px 10px
  );
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
}
.hero__hazard {
  display: block;
  width: 100%;
  text-decoration: none;
  border-radius: 0.55rem;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  border: none;
  cursor: pointer;
  background: transparent;
  padding: 0;
  font: inherit;
}
.hero__hazard--safety {
  color: #0a0a0a;
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.5),
    0 0 0 2px rgba(0, 0, 0, 0.28);
}
.hero__hazard--safety:hover, .hero__hazard--safety:focus {
  transform: translateY(2px) scale(1.01);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.55),
    0 0 0 2px rgba(0, 0, 0, 0.38);
}
.hero__hazard:active { transform: translateY(4px) scale(0.995); }
.hero__hazard-stripe--safety {
  height: 11px;
  background: repeating-linear-gradient(
    -45deg,
    #101010 0 6px,
    #e8c200 6px 12px
  );
}
.hero__hazard-stripe--top { transform-origin: center top; }
.hero__hazard-stripe--bot { transform-origin: center bottom; }
.hero__hazard-core--safety {
  background: linear-gradient(180deg, #ffe033 0%, #f0c400 42%, #dfad00 100%);
  padding: 0.72rem 0.65rem 0.82rem;
  text-align: center;
}
.hero__hazard-title--safety {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(0.74rem, 2.7vw, 1.05rem);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.12;
  color: #141414;
  margin: 0 0 0.28rem;
}
.hero__hazard-phone--safety {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.02rem, 3.9vw, 1.72rem);
  color: #0a0a0a;
  letter-spacing: 0.03em;
  line-height: 1.05;
}
.hero__hazard-phone--sub {
  font-size: clamp(0.92rem, 3.2vw, 1.25rem);
  opacity: 0.92;
  margin-top: 0.2rem;
}

/* Hero hazard chooser (mini seçim) */
.hazard-chooser[hidden] { display: none; }
.hazard-chooser {
  position: fixed;
  inset: 0;
  z-index: 120;
}
.hazard-chooser__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
}
.hazard-chooser__panel {
  position: absolute;
  left: 50%;
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  width: min(26rem, calc(100% - 1.25rem));
  border-radius: 1rem;
  background: rgba(20, 20, 20, 0.96);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 30px 70px rgba(0,0,0,0.55);
  overflow: hidden;
}
.hazard-chooser__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.hazard-chooser__title {
  font-family: var(--font-head);
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.9rem;
}
.hazard-chooser__close {
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 0.75rem;
}
.hazard-chooser__close:hover,
.hazard-chooser__close:focus { color: var(--accent); }
.hazard-chooser__body {
  display: grid;
  gap: 0.6rem;
  padding: 0.9rem;
}
.hazard-chooser__btn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.65rem;
  min-height: 52px;
  padding: 0.8rem 0.85rem;
  border-radius: 0.85rem;
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
}
.hazard-chooser__btn--call { background: rgba(210, 17, 17, 0.92); border-color: rgba(0,0,0,0.2); }
.hazard-chooser__btn--wa { background: #25D366; border-color: rgba(0,0,0,0.18); }
.hazard-chooser__btn:hover,
.hazard-chooser__btn:focus { filter: brightness(1.02); }
@media (min-width: 48rem) {
  .hazard-chooser__panel { bottom: max(1.25rem, env(safe-area-inset-bottom, 0px)); }
}
.hero__subnav-block {
  position: relative;
  z-index: 4;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}
@keyframes hero-logo-in {
  0% {
    opacity: 0;
    transform: scale(0.82) translateY(1.25rem);
    filter: brightness(1.15) blur(4px);
  }
  55% {
    opacity: 1;
    filter: brightness(1.02) blur(0);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: brightness(1) blur(0);
  }
}
.hero__logo-overlap {
  position: absolute;
  left: max(0.35rem, env(safe-area-inset-left, 0px));
  bottom: 100%;
  transform: translateY(50%);
  z-index: 5;
  box-sizing: border-box;
  width: var(--hero-logo-w);
  height: var(--hero-logo-h);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  text-decoration: none;
  border-radius: 0.35rem;
  -webkit-tap-highlight-color: transparent;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.5));
}
.hero__logo-overlap:focus-visible {
  outline: var(--focus);
  outline-offset: 3px;
}
.hero__logo-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 50%;
  opacity: 0;
  animation: hero-logo-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}
@media (prefers-reduced-motion: reduce) {
  .hero__logo-img {
    animation: none;
    opacity: 1;
  }
}
.hero__subnav {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  justify-content: center;
  padding-left: calc(var(--hero-logo-w) + max(0.35rem, env(safe-area-inset-left, 0px)) + 0.6rem);
  padding-right: 0.65rem;
  background: #fff;
  border-bottom: 1px solid #e6e6e6;
}
.hero__subnav::-webkit-scrollbar { display: none; }
.hero__subnav a {
  flex: 0 0 auto;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.7rem;
  color: #1a2744;
  font-weight: 700;
  text-decoration: none;
  font-size: clamp(0.68rem, 2.2vw, 0.82rem);
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.045em;
  white-space: nowrap;
  border-right: 1px solid #eee;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s, color 0.15s;
}
.hero__subnav a:last-child { border-right: none; }
.hero__subnav a:hover, .hero__subnav a:focus {
  background: rgba(30, 91, 163, 0.07);
  color: var(--accent);
}

/* Mobil: logo navbarı kapatmasın (override dosyanın sonunda) */
@media (max-width: 47.99rem) {
  .hero__subnav-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Eskiden .hero__subnav alt çizgisiydi; menü gizlenince slider ile birleşmesin */
    border-bottom: 1px solid #e6e6e6;
    padding-bottom: 0.4rem;
  }
  .hero__logo-overlap {
    position: static;
    left: auto;
    bottom: auto;
    transform: none;
    margin: 0.35rem auto 0.25rem;
    width: 3.15rem;
    height: 4.05rem;
  }
  /* Hamburger menü varken yatay link şeridine gerek yok (odak sırasına girmez) */
  .hero__subnav {
    display: none !important;
  }
}
.hero__slider-block {
  position: relative;
  z-index: 0;
  flex: 0 0 auto;
  background: linear-gradient(180deg, #070707 0%, #000 45%);
}
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  min-width: 48px;
  padding: 0.75rem 1.25rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  text-align: center;
  border-radius: 0.5rem;
  border: 2px solid transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  touch-action: manipulation;
}
.btn-cta--primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-cta--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-cta--primary:active { transform: scale(0.98); }
.btn-cta--ghost {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-cta--ghost:hover { background: rgba(210, 17, 17, 0.12); }
.btn-cta--maps { background: var(--gray-800); color: #fff; border-color: var(--accent); width: 100%; max-width: 22rem; }

/* Floating (fixed) iletişim butonları — tüm sayfalar */
.floating-contact-buttons {
  position: fixed;
  right: max(0.9rem, env(safe-area-inset-right, 0px));
  bottom: max(0.9rem, env(safe-area-inset-bottom, 0px));
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.floating-contact-buttons__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-width: 48px;
  min-height: 48px;
  padding: 0.75rem 0.95rem;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: #fff;
  box-shadow:
    0 18px 40px rgba(0,0,0,0.45),
    0 0 0 1px rgba(255,255,255,0.08) inset;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.floating-contact-buttons__btn:hover,
.floating-contact-buttons__btn:focus {
  transform: translateY(-1px);
  filter: brightness(1.02);
}
.floating-contact-buttons__btn:active { transform: translateY(0); }
.floating-contact-buttons__btn--call { background: var(--accent); }
.floating-contact-buttons__btn--wa { background: #25D366; }
.floating-contact-buttons__icon { font-size: 1.05rem; line-height: 1; }
@media (max-width: 26rem) {
  .floating-contact-buttons {
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: row;
    gap: 0;
    transform: none;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(0, 0, 0, 0.72);
    border-top: 2px solid rgba(210, 17, 17, 0.35);
    box-shadow: 0 -10px 28px rgba(0,0,0,0.35);
    width: 100%;
    max-width: 100%;
  }
  .floating-contact-buttons__btn {
    flex: 1 1 50%;
    border-radius: 0;
    min-height: 56px;
    padding: 0.9rem 0.5rem;
    box-shadow: none;
  }
}
