/* ============================================================
   S.S. İş İnsanları Gaziemir Yapı Kooperatifi — Site Styles
   ============================================================ */

:root {
  --navy-950: #05080D;
  --navy-900: #0B1220;
  --navy-800: #122045;
  --navy-700: #16305F;
  --orange-500: #FF5F13;
  --orange-400: #FF8A4D;
}

* {
  scroll-behavior: smooth;
}

html, body {
  background: #ffffff;
  color: #1B2430;
}

body {
  font-family: "Barlow", sans-serif;
}

h1, h2, h3, h4, h5, .font-display {
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

/* ---------- Grain / noise texture overlay ---------- */
.grain {
  position: relative;
  isolation: isolate;
}
.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  z-index: 5;
}

/* ---------- Hazard-stripe texture (industrial accent band) ---------- */
.stripes-orange {
  background-color: var(--orange-500);
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255,255,255,0.16) 0px,
    rgba(255,255,255,0.16) 10px,
    transparent 10px,
    transparent 20px
  );
}
.stripes-dark {
  background-color: var(--navy-900);
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255,255,255,0.06) 0px,
    rgba(255,255,255,0.06) 10px,
    transparent 10px,
    transparent 20px
  );
}
.stripes-divider {
  height: 10px;
  background-color: var(--navy-800);
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255,255,255,0.14) 0px,
    rgba(255,255,255,0.14) 8px,
    transparent 8px,
    transparent 16px
  );
}

/* ---------- Hero gradient wash ---------- */
.hero-wash {
  background:
    linear-gradient(100deg, rgba(5,8,13,0.92) 0%, rgba(5,8,13,0.72) 32%, rgba(5,8,13,0.35) 60%, rgba(5,8,13,0.15) 100%),
    linear-gradient(180deg, rgba(5,8,13,0.35) 0%, rgba(5,8,13,0.1) 30%, rgba(5,8,13,0.55) 100%);
}

.media-overlay {
  background: linear-gradient(to top, rgba(5,8,13,0.85) 0%, rgba(5,8,13,0.25) 55%, rgba(5,8,13,0.05) 100%);
}

.media-tint {
  background: linear-gradient(160deg, rgba(18,32,69,0.55), rgba(255,95,19,0.12));
  mix-blend-mode: multiply;
}

/* ---------- Hero video color-grade + slow zoom (masks raw footage flaws) ---------- */
.hero-tint {
  background: linear-gradient(150deg, rgba(11,18,32,0.5) 0%, rgba(11,18,32,0.15) 45%, rgba(255,95,19,0.14) 100%);
  mix-blend-mode: color;
}

@keyframes kenburns {
  0% { transform: scale(1); }
  100% { transform: scale(1.09); }
}
.ken-burns {
  animation: kenburns 24s ease-in-out infinite alternate;
  will-change: transform;
}

/* ---------- Ghost / outline oversized backdrop heading ---------- */
.heading-ghost {
  position: relative;
  z-index: 1;
}
.heading-ghost::before {
  content: attr(data-ghost);
  position: absolute;
  left: 0;
  bottom: 0.05em;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  font-size: 2.4em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(11,18,32,0.08);
  white-space: nowrap;
  z-index: -1;
  pointer-events: none;
}
.heading-ghost.on-dark::before {
  -webkit-text-stroke: 1px rgba(255,255,255,0.10);
}

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.8rem;
  border-radius: 3px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease, color 0.25s ease;
}
.btn:active { transform: scale(0.97); }
.btn-focus:focus-visible {
  outline: 2px solid #FF8A4D;
  outline-offset: 3px;
}

.btn-orange {
  background: var(--orange-500);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(255,95,19,0.55);
}
.btn-orange:hover {
  background: #E14E07;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -10px rgba(255,95,19,0.65);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
  transform: translateY(-2px);
}

.btn-navy {
  background: var(--navy-900);
  color: #fff;
  box-shadow: 0 8px 20px -10px rgba(11,18,32,0.6);
}
.btn-navy:hover {
  background: var(--navy-700);
  transform: translateY(-2px);
}

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border-radius: 4px;
  border: 1px solid #E4E6EB;
  box-shadow: 0 1px 2px rgba(10,22,38,0.05), 0 10px 24px -16px rgba(10,22,38,0.18);
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), box-shadow 0.3s cubic-bezier(0.16,1,0.3,1), border-color 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 10px rgba(10,22,38,0.08), 0 24px 44px -20px rgba(10,22,38,0.28);
  border-color: #D3D7DF;
}

/* ---------- Nav ---------- */
.nav-link {
  position: relative;
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.4rem 0.15rem;
  transition: color 0.2s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--orange-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s cubic-bezier(0.16,1,0.3,1);
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: #fff; }

.dropdown-panel {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.16,1,0.3,1), visibility 0.2s;
}
.nav-group:hover .dropdown-panel,
.nav-group:focus-within .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ---------- Timeline ---------- */
.tl-rail {
  position: relative;
}
.tl-rail::before {
  content: "";
  position: absolute;
  left: 1.15rem;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 2px;
  background: linear-gradient(180deg, #FF8A4D, #E4E6EB 90%);
}
.tl-dot {
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 4px #fff, 0 0 0 5px #E4E6EB;
}
.tl-dot.active {
  box-shadow: 0 0 0 4px #fff, 0 0 0 5px #FF5F13;
}

/* ---------- Stat / counter band ---------- */
.stat-card {
  background-color: var(--orange-500);
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255,255,255,0.14) 0px,
    rgba(255,255,255,0.14) 10px,
    transparent 10px,
    transparent 20px
  );
}

/* ---------- FAQ accordion ---------- */
.faq-item .faq-icon { transition: transform 0.3s cubic-bezier(0.16,1,0.3,1); }
.faq-item[data-open="true"] .faq-icon { transform: rotate(45deg); }
.faq-item .faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16,1,0.3,1);
}

/* ---------- Chips / eyebrow labels ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: 2px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--orange-500);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--orange-500);
  display: inline-block;
}
.eyebrow.on-dark { color: #fff; }

/* ---------- Scrollbar tidy for horizontal media rows ---------- */
.scroll-row {
  scrollbar-width: thin;
  scrollbar-color: #D3D7DF transparent;
}

/* ---------- Utility: line clamp ---------- */
.clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Mobile menu ---------- */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16,1,0.3,1);
}
#mobile-menu.open {
  max-height: 80vh;
  overflow-y: auto;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .ken-burns { animation: none; }
  .game-badge-pulse { animation: none; }
}

/* ---------- SimCity Kooperatifi rozet butonu + oyun pop-up'ı ---------- */
.game-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  background: linear-gradient(100deg, #FF5F13, #E11D2E);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 22px -8px rgba(225,29,46,0.55);
  transition: transform 0.25s cubic-bezier(0.16,1,0.3,1), box-shadow 0.25s cubic-bezier(0.16,1,0.3,1);
  border: 0;
  cursor: pointer;
}
.game-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -10px rgba(225,29,46,0.65);
}
@keyframes game-badge-pulse {
  0%, 100% { box-shadow: 0 8px 22px -8px rgba(225,29,46,0.55), 0 0 0 0 rgba(225,29,46,0.45); }
  50% { box-shadow: 0 8px 22px -8px rgba(225,29,46,0.55), 0 0 0 6px rgba(225,29,46,0); }
}
.game-badge-pulse { animation: game-badge-pulse 2.4s ease-in-out infinite; }

#game-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
#game-modal.open { display: flex; }
.game-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5,8,13,0.85);
  backdrop-filter: blur(4px);
}
.game-modal-panel {
  position: relative;
  background: var(--navy-950);
  border-radius: 8px;
  width: 100%;
  max-width: 1000px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6);
  overflow: hidden;
}
.game-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  background: var(--navy-900);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.game-modal-title {
  color: #fff;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.85rem;
}
.game-modal-close {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.game-modal-close:hover { background: rgba(255,255,255,0.2); }
.game-modal-frame-wrap {
  position: relative;
  width: 100%;
  height: min(75vh, 640px);
  background: var(--navy-900);
}
.game-modal-frame-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Basında Biz: farklı en-boy oranlı görselleri kırpmadan,
   bulanık zemin dolgusuyla "profesyonel" biçimde sığdırma ---------- */
.object-contain { object-fit: contain; }
.blur-lg { filter: blur(16px); }
.scale-110 { transform: scale(1.1); }
.opacity-50 { opacity: 0.5; }

/* ---------- Derlenmiş Tailwind çıktısında bulunmayan, sonradan
   ihtiyaç duyulan birkaç temel yardımcı sınıf ---------- */
.cursor-pointer { cursor: pointer; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.min-w-0 { min-width: 0; }
.font-normal { font-weight: 400; }
.whitespace-nowrap { white-space: nowrap; }
.pt-6 { padding-top: 1.5rem; }
.pt-8 { padding-top: 2rem; }
.pb-16 { padding-bottom: 4rem; }
.max-w-4xl { max-width: 56rem; }
