/* =====================================================================
   ÇELİK SPOR KULÜBÜ BANDIRMA — KADIN VOLEYBOL TAKIMI
   Shared design system
   ===================================================================== */

:root {
  /* Brand palette */
  --navy:        #0D1B53;
  --navy-deep:   #060926;
  --navy-2:      #0a0f2e;
  --navy-soft:   #142370;
  --gold:        #D4AF37;
  --gold-soft:   #E8C75B;
  --gold-deep:   #b0902a;
  --white:       #FFFFFF;
  --red:         #CB102E;
  --gray:        #6B7280;
  --gray-light:  #A1A8B5;
  --line:        rgba(212, 175, 55, 0.18);
  --line-strong: rgba(212, 175, 55, 0.45);

  /* Typography */
  --font-display: 'Montserrat', sans-serif;
  --font-script:  'Caveat', cursive;

  /* Layout */
  --max-width: 1320px;
  --radius-sm: 8px;
  --radius:    16px;
  --radius-lg: 24px;
  --pad-section: clamp(72px, 10vw, 140px);

  /* Motion */
  --ease:    cubic-bezier(.22, .61, .36, 1);
  --ease-2:  cubic-bezier(.65, .05, .36, 1);
  --t-fast:  0.25s;
  --t:       0.4s;
  --t-slow:  0.7s;

  --shadow-card: 0 18px 50px rgba(0, 0, 0, 0.45);
  --shadow-gold: 0 18px 50px rgba(212, 175, 55, 0.28);
}

/* ====================== Reset ====================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--white);
  background: var(--navy-deep);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: transparent; border: 0; }

/* ====================== Background grain ====================== */
.bg-grain {
  position: fixed; inset: 0; z-index: -10;
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(212,175,55,0.10), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(13,27,83,0.85), transparent 60%),
    linear-gradient(180deg, var(--navy-deep) 0%, var(--navy-2) 50%, var(--navy-deep) 100%);
  pointer-events: none;
}
.bg-grain::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/><feColorMatrix values='0 0 0 0 0.83  0 0 0 0 0.69  0 0 0 0 0.21  0 0 0 0.05 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.5;
  mix-blend-mode: overlay;
}

/* Diagonal gold streak — brand-kit signature */
.streak {
  position: absolute;
  width: 120%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
  opacity: 0.6;
  pointer-events: none;
}
.streak::before {
  content: "";
  position: absolute; inset: 0;
  background: inherit;
  filter: blur(8px);
  opacity: 0.8;
}

/* ====================== Page transition curtain (horizontal wipe) ====================== */
.page-curtain {
  position: fixed; inset: 0;
  z-index: 9999;
  pointer-events: none;
  background: linear-gradient(115deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy-deep) 100%);
  display: grid; place-items: center;
  overflow: hidden;
  transform: translateX(0);  /* COVERING by default — first paint must hide content */
}
.page-curtain.intro { animation: pcIntro 0.85s cubic-bezier(.77, 0, .18, 1) forwards; }
.page-curtain.outro { animation: pcOutro 0.55s cubic-bezier(.77, 0, .18, 1) forwards; }

@keyframes pcIntro {
  from { transform: translateX(0); }
  to   { transform: translateX(105%); }
}
@keyframes pcOutro {
  from { transform: translateX(-105%); }
  to   { transform: translateX(0); }
}
@keyframes pcStreak {
  0%   { opacity: 0; }
  50%  { opacity: 1; }
  100% { opacity: 0; }
}

.curtain-mark {
  /* Brand emblem held in center of viewport, fades during transition only */
  position: fixed; inset: 0;
  display: grid; place-items: center;
  z-index: 10000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.curtain-mark.show { opacity: 1; }
.curtain-mark .logo-emblem { width: 96px; height: 96px; }

/* ====================== Container & section ====================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}
.section { padding: var(--pad-section) 0; position: relative; }

/* ====================== Navbar ====================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background var(--t), backdrop-filter var(--t), padding var(--t), border-color var(--t);
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(6, 9, 38, 0.78);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  padding: 12px 0;
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; position: relative;
}
.brand {
  display: inline-flex; align-items: center; gap: 14px;
  color: var(--white);
}
.brand .emblem {
  width: 44px; height: 44px;
  flex-shrink: 0;
}
.brand .brand-text {
  display: flex; flex-direction: column; line-height: 1;
}
.brand .brand-text .l1 {
  font-weight: 900; font-size: 0.95rem; letter-spacing: 4px;
  text-transform: uppercase;
}
.brand .brand-text .l2 {
  font-weight: 700; font-size: 0.7rem; letter-spacing: 5px;
  color: var(--gold); margin-top: 4px;
}

.nav-links { display: flex; gap: 36px; list-style: none; align-items: center; }
.nav-links a {
  font-weight: 700; font-size: 0.78rem;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--white);
  position: relative; padding: 6px 0;
  transition: color var(--t);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--gold);
  transition: width var(--t);
}
.nav-links a:hover, .nav-links a.is-active { color: var(--gold); }
.nav-links a:hover::after, .nav-links a.is-active::after { width: 100%; }

.nav-cta {
  padding: 10px 18px;
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 700;
  transition: all var(--t);
}
.nav-cta:hover {
  background: var(--gold); color: var(--navy);
  box-shadow: 0 10px 28px rgba(212,175,55,0.35);
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 10px;
  color: var(--white);
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
}
.nav-toggle span {
  width: 22px; height: 2px; background: currentColor;
  transition: transform var(--t), opacity var(--t);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ====================== Page header / hero (shared) ====================== */
.page-hero {
  position: relative;
  min-height: 88vh;
  display: flex; align-items: center;
  padding: 160px 0 80px;
  overflow: hidden;
  isolation: isolate;
}
.page-hero .ph-bg {
  position: absolute; inset: -8% 0 -2% 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  will-change: transform;
}
.page-hero .ph-overlay {
  position: absolute; inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(6,9,38,0.32) 0%, rgba(6,9,38,0.6) 55%, rgba(6,9,38,0.94) 92%, rgba(6,9,38,1) 100%),
    linear-gradient(90deg,  rgba(6,9,38,0.55) 0%, rgba(6,9,38,0.2) 50%, rgba(6,9,38,0.0) 100%);
  pointer-events: none;
}
.page-hero .ph-overlay::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 75% 35%, rgba(212,175,55,0.16), transparent 50%);
}
@keyframes phKenburns {
  from { transform: scale(1.04) translateY(0); }
  to   { transform: scale(1.12) translateY(-2%); }
}
.page-hero .container {
  position: relative; z-index: 1;
  will-change: transform, opacity;
}
.page-hero .crumbs {
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  display: flex; gap: 14px; align-items: center;
  margin-bottom: 24px;
}
.page-hero .crumbs span { opacity: 0.5; }
.page-hero h1 {
  font-weight: 900;
  font-size: clamp(2.4rem, 6vw, 5.5rem);
  letter-spacing: 2px;
  line-height: 0.95;
  text-transform: uppercase;
}
.page-hero h1 .gold { color: var(--gold); }
.page-hero .lead {
  margin-top: 24px;
  font-family: var(--font-script);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--gold);
  max-width: 700px;
}
.page-hero .meta {
  margin-top: 32px;
  display: flex; gap: 40px; flex-wrap: wrap;
}
.page-hero .meta div { display: flex; flex-direction: column; gap: 6px; }
.page-hero .meta .lbl { font-size: 0.7rem; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gray-light); }
.page-hero .meta .val { font-weight: 900; font-size: 1.4rem; color: var(--white); }

.page-hero .deco-1953 {
  position: absolute;
  right: -40px; bottom: -60px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(8rem, 22vw, 22rem);
  color: rgba(212, 175, 55, 0.06);
  line-height: 0.8;
  letter-spacing: -4px;
  pointer-events: none;
  z-index: -1;
}

/* ====================== Section heads ====================== */
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px; margin-bottom: clamp(48px, 6vw, 80px);
  flex-wrap: wrap;
}
.section-head .left { max-width: 680px; }
.section-head .eyebrow {
  font-size: 0.7rem; letter-spacing: 3px;
  text-transform: uppercase; color: var(--gold);
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
}
.section-head .eyebrow::before {
  content: ""; width: 36px; height: 1px; background: var(--gold);
}
.section-head h2 {
  font-weight: 900;
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  letter-spacing: 1.5px;
  line-height: 1.05;
  text-transform: uppercase;
}
.section-head h2 .gold { color: var(--gold); }
.section-head .script {
  font-family: var(--font-script);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--gold);
  margin-top: 8px;
}
.section-head .right {
  color: var(--gray-light); max-width: 380px;
  font-size: 0.95rem; line-height: 1.8;
}

/* ====================== Buttons ====================== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 0.78rem;
  letter-spacing: 2.5px; text-transform: uppercase;
  padding: 16px 32px;
  border-radius: 999px;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  transition: all var(--t);
  position: relative;
  overflow: hidden;
}
.btn .arr { transition: transform var(--t); }
.btn:hover .arr { transform: translateX(4px); }
.btn:hover {
  background: var(--gold); color: var(--navy);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}
.btn.primary {
  background: var(--gold); color: var(--navy);
}
.btn.primary:hover { background: var(--gold-soft); }
.btn.ghost {
  border-color: rgba(255,255,255,0.3); color: var(--white);
}
.btn.ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--white); color: var(--white);
  box-shadow: none;
}

/* ====================== Marquee ticker ====================== */
.ticker {
  background: var(--gold);
  color: var(--navy);
  padding: 18px 0;
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid rgba(0,0,0,0.1);
  border-bottom: 1px solid rgba(0,0,0,0.1);
  position: relative;
}
.ticker .track {
  display: inline-flex; gap: 60px;
  animation: marquee 40s linear infinite;
  font-weight: 900;
  font-size: 0.9rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  align-items: center;
}
.ticker .track span { display: inline-flex; align-items: center; gap: 60px; }
.ticker .star {
  display: inline-block; width: 8px; height: 8px;
  background: var(--navy); border-radius: 50%;
}
.ticker.dark { background: var(--navy); color: var(--gold); }
.ticker.dark .star { background: var(--gold); }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.ticker-diag {
  background: var(--gold);
  color: var(--navy);
  padding: 14px 0;
  transform: rotate(-2deg);
  margin: -16px 0;
  position: relative;
  z-index: 2;
  box-shadow: 0 12px 40px rgba(212,175,55,0.25);
}

/* ====================== Stats ====================== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat-cell {
  padding: 40px 24px;
  border-right: 1px solid var(--line);
  position: relative;
}
.stat-cell:last-child { border-right: 0; }
.stat-cell .stat-num {
  font-weight: 900;
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--gold);
  line-height: 1;
  display: flex; align-items: baseline; gap: 8px;
}
.stat-cell .stat-num .suffix {
  font-size: 0.5em; color: var(--gold-soft);
}
.stat-cell .stat-label {
  margin-top: 10px;
  font-size: 0.75rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gray-light);
}

/* ====================== Footer ====================== */
.site-footer {
  background: var(--navy-deep);
  padding: 80px 0 32px;
  border-top: 1px solid var(--line);
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
}
.footer-grid h4 {
  font-weight: 900; font-size: 0.78rem;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 20px;
}
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { color: var(--gray-light); transition: color var(--t); font-size: 0.92rem; }
.footer-grid a:hover { color: var(--gold); }
.footer-grid .col-brand p {
  color: var(--gray-light); font-size: 0.92rem; line-height: 1.7;
  margin-top: 16px; max-width: 320px;
}
.footer-grid .script {
  font-family: var(--font-script); color: var(--gold); font-size: 1.6rem;
  margin-top: 18px;
}
.social {
  display: flex; gap: 10px; margin-top: 20px;
}
.social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--gold);
  display: grid; place-items: center;
  font-size: 0.78rem;
  letter-spacing: 1px;
  transition: all var(--t);
}
.social a:hover {
  background: var(--gold); color: var(--navy);
  transform: translateY(-3px);
}
.footer-bottom {
  margin-top: 56px; padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 20px;
  color: var(--gray-light); font-size: 0.78rem;
  letter-spacing: 1px;
  flex-wrap: wrap;
}

/* ====================== Reveal animations ====================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.reveal.right { transform: translateX(40px); }
.reveal.right.is-visible { transform: translateX(0); }
.reveal.left  { transform: translateX(-40px); }
.reveal.left.is-visible  { transform: translateX(0); }

.reveal-text .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%) rotate(6deg);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal-text.is-visible .word { opacity: 1; transform: translateY(0) rotate(0); }
.reveal-text .word-wrap { display: inline-block; overflow: hidden; vertical-align: top; line-height: 1.1; }

[data-delay="1"] { transition-delay: 0.08s; }
[data-delay="2"] { transition-delay: 0.16s; }
[data-delay="3"] { transition-delay: 0.24s; }
[data-delay="4"] { transition-delay: 0.32s; }
[data-delay="5"] { transition-delay: 0.40s; }

/* ====================== Image placeholders ====================== */
.placeholder {
  position: relative;
  background:
    linear-gradient(135deg, #142370 0%, #0a0f2e 100%);
  overflow: hidden;
}
.placeholder::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(135deg, transparent 38%, rgba(212,175,55,0.18) 50%, transparent 62%),
    radial-gradient(circle at 70% 30%, rgba(212,175,55,0.08), transparent 50%);
}
.placeholder .ph-mark {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3rem, 8vw, 7rem);
  color: rgba(212,175,55,0.18);
  letter-spacing: 4px;
}

/* ====================== Card hover lift ====================== */
.lift { transition: transform var(--t), box-shadow var(--t), border-color var(--t); }
.lift:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

/* ====================== Mobile nav drawer ====================== */
@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .nav-links {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(360px, 86vw);
    background: var(--navy-deep);
    border-left: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 32px 32px;
    gap: 24px;
    transform: translateX(100%);
    transition: transform 0.5s var(--ease-2);
    box-shadow: -30px 0 80px rgba(0,0,0,0.5);
  }
  .nav-links.is-open { transform: translateX(0); }
  .nav-links a { font-size: 1rem; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }

  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stat-cell:nth-child(2) { border-right: 0; }
  .stat-cell:nth-child(1), .stat-cell:nth-child(2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 140px 0 60px; min-height: 70vh; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-head .right { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal, .reveal-text .word { opacity: 1 !important; transform: none !important; }
}
