/* =========================================================
   Carnivore Jiu Jitsu — Eskişehir BJJ
   Tema: siyah + kemik/krem + kırmızı aksan (logodan)
   Tüm renkler CSS değişkeni: kolay değiştirilir.
   ========================================================= */

:root {
  /* Renk paleti */
  --bg:        #0a0a0a;   /* ana zemin (near-black) */
  --bg-elev:   #121212;   /* yükseltilmiş yüzey */
  --surface:   #1a1a1a;   /* kart yüzeyi */
  --surface-2: #232323;
  --border:    #2c2c2c;

  --bone:      #e9e3d1;   /* logodaki kemik/krem */
  --text:      #ecebe6;   /* ana metin */
  --muted:     #a6a29a;   /* ikincil metin */

  --accent:      #cc1122; /* kan kırmızısı (logo halkası) */
  --accent-2:    #e0202f;
  --accent-dark: #8f0c17;

  /* Tipografi */
  --font-head: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Ölçek */
  --maxw: 1160px;
  --radius: 12px;
  --gap: 24px;
  --header-h: 70px;

  --shadow: 0 10px 30px rgba(0,0,0,.45);
  --transition: .25s ease;
}

/* ---------- Reset & temel ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* yatay kaymaya karşı güvenlik; sticky header'ı bozmaz */
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { color: var(--bone); }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; letter-spacing: .5px; text-transform: uppercase; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 6vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: .3px; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 800px; }
.center { text-align: center; }

/* Erişilebilirlik yardımcıları */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 12px 22px;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem; letter-spacing: .5px;
  text-transform: uppercase; border: 2px solid transparent; border-radius: var(--radius);
  cursor: pointer; transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { min-height: 54px; padding: 15px 28px; font-size: 1.05rem; }

.btn-call { background: var(--accent); color: #fff; }
.btn-call:hover { background: var(--accent-2); color: #fff; box-shadow: 0 8px 24px rgba(204,17,34,.4); }

.btn-wa { background: #1f2d24; color: #fff; border-color: #25d366; }
.btn-wa:hover { background: #25d366; color: #04150b; }

.btn-outline { background: transparent; color: var(--bone); border-color: var(--border); }
.btn-outline:hover { border-color: var(--accent); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,10,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--bone); }
.brand img { border-radius: 8px; }
.brand-text { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; letter-spacing: 1px; line-height: 1; display: flex; flex-direction: column; }
.brand-text small { font-size: .62rem; letter-spacing: 3px; color: var(--accent-2); }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.main-nav a { color: var(--text); font-weight: 500; font-size: .95rem; }
.main-nav a:hover { color: var(--accent-2); }

.header-cta { margin-left: 8px; }

.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px;
  background: transparent; border: 1px solid var(--border); border-radius: 8px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--bone); transition: var(--transition); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden; }
.hero-media { position: absolute; inset: 0; background: #000; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  filter: grayscale(.25) contrast(1.05);
  opacity: 0; transition: opacity 1.4s ease;
}
.hero-slide.is-active { opacity: 1; }
img.hero-slide { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; display: block; }

/* ---------- Blog yazısı medya ---------- */
article.section > .container > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 60%; }
article.section figure { margin: 28px 0; }
article.section figure img { border-radius: 12px; }
article.section figcaption { color: var(--muted); font-size: .88rem; margin-top: 8px; text-align: center; }
article.section h4 { font-family: var(--font-head); color: var(--bone); font-size: 1.05rem; letter-spacing: .3px; margin: 1.2em 0 .4em; }
.schedule caption { caption-side: top; text-align: left; padding: 12px 14px; color: var(--bone); font-family: var(--font-head); letter-spacing: .5px; }
.cta-title { font-family: var(--font-head); font-size: 1.35rem; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: #fff; margin: 0 0 .5em; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,.55) 0%, rgba(10,10,10,.78) 55%, rgba(10,10,10,.96) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 100px 20px 60px; max-width: 820px; }
.hero-kicker { color: var(--accent-2); font-family: var(--font-head); letter-spacing: 3px; text-transform: uppercase; font-size: .9rem; margin-bottom: 12px; }
.hero h1 span { color: var(--accent-2); }
.hero-sub { font-size: 1.2rem; color: var(--text); max-width: 620px; }
.hero-motto { font-style: italic; color: var(--muted); border-left: 3px solid var(--accent); padding-left: 14px; margin: 20px 0 28px; max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-trust { margin-top: 22px; color: var(--bone); font-size: .95rem; letter-spacing: .3px; }

/* ---------- Güven şeridi ---------- */
.trustbar { background: var(--accent-dark); border-top: 2px solid var(--accent); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 22px 20px; }
.trust-item { text-align: center; min-width: 0; }
.trust-num { display: block; font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; color: #fff; overflow-wrap: anywhere; }
.trust-label { display: block; font-size: .82rem; color: rgba(255,255,255,.82); overflow-wrap: anywhere; }

/* ---------- Bölümler ---------- */
.section { padding: 74px 0; }
.section-alt { background: var(--bg-elev); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section h2 { position: relative; }
.section-intro { color: var(--muted); max-width: 720px; margin-bottom: 34px; }
.lead { font-size: 1.2rem; color: var(--bone); }

.check-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.check-list li { padding-left: 30px; position: relative; }
.check-list li::before { content: "▶"; color: var(--accent-2); position: absolute; left: 0; font-size: .8rem; top: .35em; }

/* ---------- Kart grid (programlar / blog) ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--gap); }
.card, .post-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; transition: transform var(--transition), border-color var(--transition);
}
.card:hover, .post-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.card-icon { width: 48px; height: 48px; color: var(--accent-2); margin-bottom: 14px; }
.card-icon svg { width: 100%; height: 100%; }
.card p { color: var(--muted); }
.card-link { font-family: var(--font-head); font-weight: 600; letter-spacing: .5px; text-transform: uppercase; font-size: .9rem; }
.card-cta { background: linear-gradient(160deg, var(--accent-dark), var(--surface)); border-color: var(--accent); }
.card-cta p { color: var(--bone); }

/* ---------- Neden biz ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--gap); }
.feature { padding: 22px; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; }
.feature h3 { color: var(--bone); }
.feature p { color: var(--muted); margin: 0; }

/* ---------- Eğitmenler ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--gap); }
.team-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; text-align: center; }
.team-photo { width: 110px; height: 110px; margin: 0 auto 16px; border-radius: 50%; background: var(--surface-2); color: var(--muted); display: flex; align-items: center; justify-content: center; border: 2px solid var(--accent); }
.team-photo svg { width: 56px; height: 56px; }
.team-rank { color: var(--accent-2); font-family: var(--font-head); letter-spacing: 1px; text-transform: uppercase; font-size: .85rem; margin-bottom: 10px; }
.team-card p:last-child { color: var(--muted); font-size: .95rem; }
.team-intro { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius); padding: 26px; max-width: 760px; }
.team-intro p { color: var(--bone); }
.team-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; }

/* ---------- Program tablosu ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--radius); }
.schedule { width: 100%; border-collapse: collapse; min-width: 640px; }
.schedule th, .schedule td { padding: 14px 12px; text-align: center; border-bottom: 1px solid var(--border); }
.schedule thead th { background: var(--accent-dark); color: #fff; font-family: var(--font-head); letter-spacing: 1px; }
.schedule tbody th { text-align: left; color: var(--bone); background: var(--surface); font-weight: 600; }
.schedule td { color: var(--muted); }
.schedule tbody tr:hover td, .schedule tbody tr:hover th { background: var(--surface-2); }

/* ---------- Program kartları ---------- */
.prog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--gap); }
.prog-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; border-top: 3px solid var(--accent); }
.prog-item h3 { color: var(--bone); }
.prog-item p { color: var(--muted); margin: 0 0 14px; }
.prog-cta { background: linear-gradient(160deg, var(--accent-dark), var(--surface)); }
.prog-cta p { color: var(--bone); }

/* ---------- Galeri ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.gallery-item { padding: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; cursor: pointer; background: var(--surface); }
.gallery-item img { width: 100%; height: 260px; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.06); }

/* ---------- Yorumlar ---------- */
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--gap); }
.review { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.stars { color: #f5b400; letter-spacing: 3px; margin-bottom: 8px; }
.review-name { color: var(--bone); font-weight: 600; margin: 0; }
.review-tag { color: var(--muted); font-weight: 400; font-size: .82rem; }
.rating-badge { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 24px; margin-bottom: 20px; }
.rating-score { font-family: var(--font-head); font-size: 2.6rem; font-weight: 700; color: #fff; line-height: 1; }
.rating-stars { color: #f5b400; font-size: 1.5rem; letter-spacing: 2px; }
.rating-meta { color: var(--muted); }
.rating-meta strong { color: var(--bone); }
.review-cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Blog teaser ---------- */
.post-card h3 a { color: var(--bone); }
.post-card h3 a:hover { color: var(--accent-2); }
.post-meta { color: var(--accent-2); font-size: .85rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.post-card p:not(.post-meta) { color: var(--muted); }
.post-card-soon { opacity: .72; }
.center { margin-top: 32px; }

/* ---------- SSS accordion ---------- */
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.faq summary {
  cursor: pointer; padding: 18px 22px; font-family: var(--font-head); font-weight: 600;
  letter-spacing: .3px; color: var(--bone); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-2); font-size: 1.5rem; line-height: 1; transition: transform var(--transition); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent-2); }
.faq-body { padding: 0 22px 18px; color: var(--muted); }

/* ---------- İletişim ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.contact-lead { font-size: 1.15rem; color: var(--bone); }
.contact-phone { display: inline-block; font-family: var(--font-head); font-size: 1.8rem; font-weight: 700; color: #fff; margin-bottom: 16px; letter-spacing: 1px; }
.contact-phone:hover { color: var(--accent-2); }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; color: var(--muted); }
.contact-list strong { color: var(--bone); }

.lead-form { margin-top: 28px; display: grid; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.lead-form label { display: grid; gap: 6px; font-size: .9rem; color: var(--bone); font-weight: 500; }
.lead-form input, .lead-form textarea {
  background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 12px;
  color: var(--text); font-family: var(--font-body); font-size: 1rem;
}
.lead-form input:focus, .lead-form textarea:focus { border-color: var(--accent); outline: none; }
.form-note { color: var(--muted); font-size: .82rem; margin: 4px 0 0; }

.contact-map { min-height: 360px; display: flex; flex-direction: column; gap: 12px; }
.contact-map iframe { width: 100%; flex: 1; min-height: 340px; border: 0; border-radius: var(--radius); }
.map-dir { align-self: flex-start; }
.map-placeholder {
  height: 100%; min-height: 360px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 10px; background: var(--surface); border: 2px dashed var(--border); border-radius: var(--radius); padding: 24px;
}
.map-placeholder p:first-child { font-family: var(--font-head); font-size: 1.3rem; color: var(--muted); margin: 0; }
.map-hint { color: var(--muted); font-size: .85rem; max-width: 320px; }
.map-hint code { background: var(--bg); padding: 2px 6px; border-radius: 4px; color: var(--accent-2); }

/* ---------- Footer ---------- */
.site-footer { background: #060606; border-top: 2px solid var(--accent); padding: 44px 0 24px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; align-items: start; }
.footer-brand { display: flex; gap: 14px; align-items: center; }
.footer-brand img { border-radius: 8px; }
.footer-brand p { color: var(--muted); margin: 0; font-size: .95rem; }
.footer-nav { display: flex; flex-direction: column; gap: 8px; }
.footer-nav a { color: var(--text); }
.footer-nav a:hover { color: var(--accent-2); }
.footer-contact { display: flex; flex-direction: column; gap: 8px; color: var(--muted); }
.footer-contact a { color: var(--text); }
.footer-copy { text-align: center; color: var(--muted); font-size: .82rem; margin: 30px 0 0; border-top: 1px solid var(--border); padding-top: 20px; }

/* ---------- Yüzen WhatsApp ---------- */
.fab-wa {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #04150b;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow);
  transition: transform var(--transition);
}
.fab-wa:hover { transform: scale(1.08); color: #04150b; }

/* ---------- Mobil yapışık bar ---------- */
.mobile-bar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; }
.mobile-bar a { flex: 1; text-align: center; padding: 15px 8px; font-family: var(--font-head); font-weight: 600; letter-spacing: .5px; color: #fff; }
.mobile-call { background: var(--accent); }
.mobile-wa { background: #25d366; color: #04150b; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,.94); display: flex; align-items: center; justify-content: center; padding: 20px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 8px; }
.lightbox-close { position: absolute; top: 18px; right: 22px; width: 44px; height: 44px; background: transparent; border: none; color: #fff; font-size: 1.8rem; cursor: pointer; }

/* ---------- Blog / breadcrumb / paylaş ---------- */
.breadcrumb { color: var(--muted); font-size: .9rem; margin-bottom: 18px; }
.breadcrumb a { color: var(--accent-2); }
.breadcrumb span { color: var(--muted); }
article.section h2 { margin-top: 1.6em; color: var(--bone); }
.share { color: var(--muted); font-size: .95rem; border-top: 1px solid var(--border); padding-top: 18px; }
.share a { color: var(--accent-2); font-weight: 600; }
.related ul { margin-top: 12px; }

/* ---------- Scroll animasyonu ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}

@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; margin: 0;
    background: var(--bg-elev); border-bottom: 1px solid var(--border);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .main-nav.open { max-height: 80vh; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px 0; }
  .main-nav li { border-bottom: 1px solid var(--border); }
  .main-nav a { display: block; padding: 15px 22px; }

  body { padding-bottom: 56px; } /* mobil bar için */
  .mobile-bar { display: flex; }
  .fab-wa { bottom: 68px; }
  .hero { min-height: 88vh; }
  .hero-content { padding-top: 70px; }
}

@media (max-width: 480px) {
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-num { font-size: 1.15rem; }
  .hero-cta .btn { width: 100%; }
  .container { padding: 0 16px; }
}

/* Hareketi azalt tercihi */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
