@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800;900&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --background: #08090a;
  --foreground: #f6f6f5;
  --brand-yellow: #ffbd17;
  --muted-foreground: #9a9da1;
  --surface-1: #111315;
  --surface-2: #151718;
  --border-color: rgba(255, 255, 255, 0.08);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  background-color: var(--background);
  color: var(--foreground);
  font-family: 'Manrope', sans-serif;
  -webkit-font-smoothing: antialiased;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

/* Sticky header hedef bölümün üstünü kapatmasın. */
section[id],
div[id="cross-training"],
div[id="fitness"],
div[id="spinning"],
div[id="hyrox"],
div[id="personal-training"],
div[id="mat-pilates"] {
  scroll-margin-top: 8.5rem;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  font-family: inherit;
}

.font-display {
  font-family: 'Barlow Condensed', sans-serif;
}

.text-brand-yellow {
  color: var(--brand-yellow);
}

.bg-brand-yellow {
  background-color: var(--brand-yellow);
}

.border-brand-yellow {
  border-color: var(--brand-yellow);
}

/* Glass glow button effect */
.glass-glow-yellow {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 0.5rem;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-glow-yellow:hover {
  box-shadow: 0 0 30px rgba(255, 189, 23, 0.35);
}

.shimmer-line {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: shimmer 3s infinite;
}

.site-header {
  background-color: #08090a;
}
.header-inner {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
/* Sabit boyut, animasyon yok. */
.logo-image {
  display: block;
  width: 280px;
  max-width: 60vw;
  height: auto;
  object-fit: contain;
}
.main-offset {
  padding-top: 6.5rem;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.service-media {
  position: static;
  top: auto;
}

@media (min-width: 1024px) {
  .service-media {
    position: sticky;
    top: 7rem;
  }
}

@media (max-width: 1023px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  header,
  main,
  main > section,
  footer {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  main > section > *,
  .grid,
  .grid > * {
    min-width: 0;
    max-width: 100%;
  }

  h1,
  h2,
  h3,
  p,
  li {
    overflow-wrap: anywhere;
  }
}

/* Dropdown Menu Styles */
.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: #1e2022;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0,0,0,0.8);
  padding: 10px 0;
  z-index: 100;
  overflow: visible !important;
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel {
  display: block !important;
}

.nav-dropdown.is-open .dropdown-panel {
  display: block;
}

/* Başka bir ana menü açıldığında eski hover/focus panelini zorla kapat. */
.nav-dropdown.is-closed .dropdown-panel {
  display: none !important;
}

.dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #d1d3d4;
  transition: all 0.2s;
}

.dropdown-item:hover {
  background: #282a2c;
  color: var(--brand-yellow);
  padding-left: 24px;
}

.submenu-trigger {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

/* Submenu inside dropdown */
.submenu-container {
  position: relative;
}

.submenu-panel {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  min-width: 240px;
  background: #1e2022;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0,0,0,0.8);
  padding: 10px 0;
}

.submenu-container:hover .submenu-panel {
  display: block !important;
}

.submenu-container:hover > .submenu-panel,
.submenu-trigger:hover + .submenu-panel {
  display: block !important;
}

.submenu-container.is-open .submenu-panel {
  display: block;
}

.mobile-menu-group {
  border-bottom: 1px solid rgba(255,255,255,.05);
  padding: 10px 0;
}

.mobile-menu-label {
  padding: 10px 0 4px;
  color: var(--brand-yellow);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
}

.mobile-sub-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0 11px 14px;
  color: #d7d8d9;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
}

.mobile-sub-link span {
  color: var(--brand-yellow);
}

/* Homepage welcome campaign popup */
.welcome-popup {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  transition: opacity .25s ease, visibility .25s ease;
}

.welcome-popup.is-visible {
  visibility: visible;
  opacity: 1;
}

.welcome-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.82);
  backdrop-filter: blur(5px);
}

.welcome-popup-card {
  position: relative;
  z-index: 1;
  width: min(500px, 100%);
  overflow: visible;
  background: #08090a;
  box-shadow: 0 25px 90px rgba(0,0,0,.8);
  transform: translateY(14px) scale(.97);
  transition: transform .3s ease;
}

.welcome-popup.is-visible .welcome-popup-card {
  transform: translateY(0) scale(1);
}

.welcome-popup-link {
  display: block;
  color: #fff;
  text-align: center;
}

.welcome-popup-link img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.welcome-popup-link span {
  display: block;
  padding: 17px 15px 21px;
  background: #08090a;
  font-size: clamp(19px, 3vw, 28px);
  font-weight: 800;
}

.welcome-popup-link b {
  color: var(--brand-yellow);
  margin-left: 8px;
}

.welcome-popup-close {
  position: absolute;
  z-index: 2;
  top: -52px;
  right: -4px;
  border: 0;
  background: transparent;
  color: #fff;
  font: 300 42px/1 Arial, sans-serif;
  cursor: pointer;
  transition: color .2s, transform .2s;
}

.welcome-popup-close:hover {
  color: var(--brand-yellow);
  transform: rotate(90deg);
}

@media (max-width: 600px) {
  .welcome-popup {
    padding: 30px 18px;
  }

  .welcome-popup-close {
    top: -43px;
    right: -2px;
    font-size: 34px;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--background);
}
::-webkit-scrollbar-thumb {
  background: #25282a;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand-yellow);
}
