:root {
  --brown-dark: #2c1810;
  --brown: #4a2c1a;
  --brown-mid: #6b4423;
  --yellow: #f5c518;
  --yellow-light: #ffd54f;
  --yellow-dark: #c9a000;
  --text: #f5e6c8;
  --text-muted: #c4a574;
  --bg: #1a0f0a;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
  --header-height: 64px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  scroll-padding-top: calc(var(--header-height) + var(--safe-top) + 1rem);
}

body {
  font-family: 'Oswald', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: var(--safe-bottom);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--yellow);
  text-decoration: none;
  word-break: break-word;
}

a:hover {
  color: var(--yellow-light);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
}

/* ===== HEADER & NAV ===== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
  padding-top: var(--safe-top);
  background: rgba(26, 15, 10, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--brown-mid);
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.4rem, 4vw, 1.75rem);
  letter-spacing: 3px;
  color: var(--yellow);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.25rem;
}

.nav-links a {
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--yellow);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

@media (max-width: 767px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(85vw, 300px);
    height: 100svh;
    background: var(--brown-dark);
    flex-direction: column;
    padding: calc(4.5rem + var(--safe-top)) 1.5rem 2rem;
    border-left: 2px solid var(--brown-mid);
    transition: right 0.3s ease;
    overflow-y: auto;
    z-index: 999;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    padding: 1rem 0;
    border-bottom: 1px solid var(--brown-mid);
    font-size: 1rem;
    min-height: 52px;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }
}

/* ===== BUTTONS ===== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  min-height: 48px;
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border: 2px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn-primary {
  background: var(--yellow);
  color: var(--brown-dark);
  border-color: var(--yellow);
}

.btn-primary:hover {
  background: var(--yellow-light);
}

.btn-primary:active {
  transform: scale(0.98);
}

/* ===== HERO ===== */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
  padding: calc(var(--header-height) + 2rem + var(--safe-top)) 1rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero-content {
  width: 100%;
  max-width: 540px;
}

.hero-tag {
  color: var(--yellow);
  font-size: clamp(0.7rem, 2.5vw, 0.85rem);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 10vw, 5rem);
  color: var(--yellow);
  letter-spacing: 4px;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.hero-location {
  color: var(--text-muted);
  font-size: clamp(0.75rem, 2.5vw, 0.9rem);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.hero-desc {
  color: var(--text-muted);
  font-size: clamp(0.9rem, 2.5vw, 1.05rem);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.hero-photo {
  width: 100%;
  max-width: 560px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--brown-mid);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.hero-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

@media (min-width: 900px) {
  .hero {
    flex-direction: row;
    text-align: left;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .hero-content {
    flex: 1;
    max-width: none;
  }

  .hero-photo {
    flex: 1;
    max-width: 520px;
  }
}

/* ===== SECTIONS ===== */

.section {
  padding: 3.5rem 0;
  width: 100%;
}

@media (min-width: 768px) {
  .section {
    padding: 5rem 0;
  }
}

.section:nth-child(even) {
  background: rgba(74, 44, 26, 0.3);
}

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.75rem, 6vw, 3rem);
  color: var(--yellow);
  text-align: center;
  margin-bottom: 0.5rem;
  letter-spacing: 3px;
}

.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--yellow);
  margin: 0.5rem auto 2rem;
}

.section-hint {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: -1rem 0 2rem;
  padding: 0 1rem;
}

/* ===== ABOUT ===== */

.about-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  line-height: 1.7;
}

.about-photo {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--brown-mid);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.about-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

/* ===== CARDS (DERSLER) ===== */

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 600px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.card {
  background: var(--brown-dark);
  border: 1px solid var(--brown-mid);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
}

.card-photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 2px solid var(--yellow-dark);
}

.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 85%;
  transition: transform 0.4s ease;
}

.card:hover .card-photo img {
  transform: scale(1.06);
}

.card-body {
  padding: 1.25rem;
  text-align: center;
  flex: 1;
}

.card-body h3 {
  color: var(--yellow);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.card-body p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ===== TRAINERS ===== */

.trainers-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

@media (min-width: 600px) {
  .trainers-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

.trainer-card {
  text-align: center;
  cursor: pointer;
  background: var(--brown-dark);
  border: 2px solid var(--brown-mid);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
}

.trainer-card:hover,
.trainer-card:focus-visible {
  border-color: var(--yellow);
  box-shadow: 0 8px 24px rgba(245, 197, 24, 0.15);
  outline: none;
  transform: translateY(-4px);
}

.trainer-card:active {
  transform: scale(0.98);
}

.trainer-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-bottom: 2px solid var(--yellow-dark);
}

.trainer-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.trainer-info {
  padding: 1.25rem 1rem 1.5rem;
}

.trainer-info h3 {
  color: var(--yellow);
  font-size: clamp(1rem, 3vw, 1.25rem);
  margin-bottom: 0.35rem;
}

.trainer-role {
  color: var(--text-muted);
  font-size: clamp(0.78rem, 2.5vw, 0.85rem);
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

.trainer-sub {
  color: var(--yellow-dark);
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}

.trainer-tap {
  display: inline-block;
  color: var(--yellow);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== GALLERY ===== */

.gallery {
  padding: 3.5rem 0;
}

@media (min-width: 768px) {
  .gallery {
    padding: 5rem 0;
  }
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

.gallery-item {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--yellow-dark);
  background: var(--brown-dark);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  aspect-ratio: 4 / 3;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

/* ===== CONTACT ===== */

.contact-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 2.5rem;
  }
}

.contact-item {
  margin-bottom: 1.5rem;
}

.contact-item h3 {
  color: var(--yellow);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.contact-item p {
  color: var(--text-muted);
  font-size: clamp(0.88rem, 2.5vw, 0.95rem);
  line-height: 1.6;
}

.map-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.map-container {
  width: 100%;
  min-height: 260px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--brown-mid);
}

.map-container iframe {
  display: block;
  width: 100%;
  height: 260px;
  border: 0;
}

@media (min-width: 768px) {
  .map-container iframe {
    height: 360px;
  }
}

/* ===== FOOTER ===== */

.footer {
  background: var(--brown-dark);
  border-top: 2px solid var(--brown-mid);
  text-align: center;
  padding: 1.5rem 1rem;
  padding-bottom: calc(1.5rem + var(--safe-bottom));
  color: var(--text-muted);
  font-size: clamp(0.78rem, 2.5vw, 0.85rem);
}

/* ===== INSTAGRAM FLOAT ===== */

.instagram-float {
  position: fixed;
  bottom: calc(16px + var(--safe-bottom));
  right: calc(16px + env(safe-area-inset-right, 0px));
  z-index: 999;
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s;
}

.instagram-float:hover {
  transform: scale(1.08);
  color: white;
}

.instagram-float svg {
  width: 26px;
  height: 26px;
}

/* ===== MODAL ===== */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

@media (min-width: 600px) {
  .modal-overlay {
    align-items: center;
    padding: 1rem;
  }
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--brown-dark);
  border: 2px solid var(--yellow-dark);
  border-radius: 16px 16px 0 0;
  width: 100%;
  max-height: 90svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.35s ease;
  position: relative;
}

@media (min-width: 600px) {
  .modal {
    border-radius: 12px;
    max-width: 580px;
    max-height: 85vh;
    transform: translateY(20px);
  }
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  color: var(--yellow);
  font-size: 1.75rem;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  padding: 1.5rem 1.25rem 1.25rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
}

.modal-content h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.5rem, 5vw, 1.75rem);
  color: var(--yellow);
  letter-spacing: 2px;
  margin-bottom: 0.25rem;
  padding-right: 2rem;
}

.modal-role {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.modal-bio p {
  color: var(--text);
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
  line-height: 1.65;
}

.modal-bio p strong {
  color: var(--yellow);
  display: block;
  margin-top: 0.75rem;
  margin-bottom: 0.25rem;
}

.modal-bio ul {
  list-style: none;
  margin-bottom: 0.5rem;
}

.modal-bio li {
  color: var(--text-muted);
  font-size: 0.88rem;
  padding: 0.25rem 0 0.25rem 1.1rem;
  position: relative;
}

.modal-bio li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--yellow);
}

.modal-ok {
  width: 100%;
  margin-top: 1.25rem;
}
