/* Aktur'da Spor — site + paylaşılan değişkenler (CRM de bunları kullanır) */
:root {
  --navy: #0a3040;
  --blue: #1a6f9a;
  --accent: #e85d04;
  --accent-light: #ff7a2f;
  --white: #ffffff;
  --bg: #eef3f4;
  --bg-deep: #0a3040;
  --text: #14252c;
  --muted: #5a6d75;
  --line: rgba(10, 48, 64, 0.12);
  --radius: 18px;
  --shadow: 0 18px 40px rgba(10, 48, 64, 0.14);
  --font: "Figtree", "Segoe UI", sans-serif;
  --display: "Syne", "Figtree", sans-serif;
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ——— Nav ——— */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10, 48, 64, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: 0 8px 28px rgba(0,0,0,0.22); }
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.nav-brand img { height: 44px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav-links > a,
.nav-dropdown-btn {
  color: rgba(255,255,255,0.88);
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.nav-links > a:hover,
.nav-links > a.is-active,
.nav-dropdown.is-active > .nav-dropdown-btn,
.nav-dropdown-btn:hover {
  background: rgba(255,255,255,0.1);
  color: var(--white);
}
.nav-dropdown { position: relative; }
.nav-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-caret {
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.8;
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  padding: 8px;
  background: #f7fafb;
  border-radius: 14px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  display: none;
  z-index: 20;
}
.nav-dropdown.open .nav-dropdown-menu,
.nav-dropdown:hover .nav-dropdown-menu { display: grid; }
.nav-dropdown-menu a {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}
.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.is-active {
  background: rgba(10, 48, 64, 0.08);
  color: var(--navy);
}
.nav-links .btn-register {
  margin-left: 6px;
  padding: 10px 18px;
  color: var(--white) !important;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

/* Buttons */
.btn-register {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: var(--white);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 8px 22px rgba(232, 93, 4, 0.35);
}
.btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(232, 93, 4, 0.45);
  color: var(--white);
}
.btn-register-lg { padding: 16px 34px; font-size: 1.02rem; }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border: 1px solid rgba(255,255,255,0.45);
  color: white;
  border-radius: 12px;
  font-weight: 700;
  transition: background 0.2s, border-color 0.2s;
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.8);
  color: white;
}
.text-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--blue);
  font-weight: 700;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--bg-deep);
  color: white;
}
.hero-video,
.hero-banner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,48,64,0.25) 0%, rgba(10,48,64,0.55) 45%, rgba(10,48,64,0.92) 100%),
    radial-gradient(ellipse at 20% 10%, rgba(232,93,4,0.25), transparent 45%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 40px) 20px 56px;
  animation: heroIn 1s ease both;
}
.brand-mark {
  font-family: var(--display);
  font-size: clamp(2.4rem, 7vw, 4.8rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
  max-width: 12ch;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(1.4rem, 3.2vw, 2.1rem);
  font-weight: 700;
  margin-bottom: 10px;
  max-width: 18ch;
}
.hero-lead {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.88);
  max-width: 36ch;
  margin-bottom: 24px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

/* Branch icon rail under nav/hero */
.branch-rail {
  position: relative;
  z-index: 3;
  margin-top: -36px;
  padding: 0 16px 8px;
}
.branch-rail-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  background: rgba(255,255,255,0.94);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.branch-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  min-width: 0;
  transition: transform 0.25s;
}
.branch-icon:hover { transform: translateY(-4px); }
.branch-icon-media {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  background: #d9e4e8;
  border: 1px solid color-mix(in srgb, var(--branch-accent, var(--navy)) 22%, transparent);
  transition: transform 0.25s, box-shadow 0.25s;
}
.branch-icon-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.branch-icon-badge {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 48, 64, 0.78);
  color: white;
  backdrop-filter: blur(4px);
}
.branch-icon-badge svg {
  width: 62%;
  height: 62%;
  display: block;
}
.branch-icon:hover .branch-icon-media {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(10, 48, 64, 0.16);
}
.branch-icon:hover .branch-icon-media img {
  transform: scale(1.06);
}
.branch-icon-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
}

/* Sections */
.section {
  padding: 72px 0;
  scroll-margin-top: calc(var(--nav-h) + 12px);
}
.section-alt { background: #e4ecee; }
.section-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
.section-head { margin-bottom: 28px; max-width: 40rem; }
.section-head h2,
.section h2,
.page-hero-copy h1,
.cta-band h2 {
  font-family: var(--display);
  letter-spacing: -0.02em;
  color: var(--navy);
}
.section-head h2,
.section h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 8px; }
.section-head p { color: var(--muted); }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 10px;
}
.lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 54ch;
}
.home-intro {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  align-items: end;
}

.schedule-pill {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(10,48,64,0.07);
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

/* Single-page branch blocks */
.branch-stack {
  display: grid;
  gap: 20px;
  scroll-margin-top: calc(var(--nav-h) + 16px);
}
.branch-block {
  scroll-margin-top: calc(var(--nav-h) + 20px);
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 10px 28px rgba(10,48,64,0.06);
  border-left: 5px solid var(--branch-accent, var(--accent));
}
.branch-block-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.branch-block-head h3 {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  color: var(--navy);
  margin-bottom: 4px;
}
.branch-tagline {
  color: var(--muted);
  font-size: 0.98rem;
}
.branch-block-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 28px;
}
.branch-block h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 10px;
}
.branch-block-about > p {
  color: var(--muted);
  margin-bottom: 20px;
}
.branch-block-about .schedule-list {
  margin-bottom: 0;
}
.coach-inline {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  margin-bottom: 16px;
}
.coach-inline:last-child { margin-bottom: 0; }
.coach-inline img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 8px 18px rgba(10,48,64,0.12);
}
.coach-inline strong {
  display: block;
  font-family: var(--display);
  font-size: 1.1rem;
  color: var(--navy);
}
.coach-inline .role {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  margin: 2px 0 8px;
}
.coach-inline p:last-child {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Page heroes */
.page-hero {
  position: relative;
  min-height: 52vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: white;
  background: var(--navy);
}
.page-hero-compact { min-height: 42vh; }
.page-hero-media { position: absolute; inset: 0; }
.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,48,64,0.25), rgba(10,48,64,0.88));
}
.page-hero-branch .page-hero-scrim {
  background:
    linear-gradient(180deg, rgba(10,48,64,0.2), rgba(10,48,64,0.9)),
    linear-gradient(90deg, color-mix(in srgb, var(--branch-accent) 35%, transparent), transparent 55%);
}
.page-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 36px) 20px 40px;
}
.page-hero-copy h1 {
  color: white;
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin-bottom: 8px;
}
.page-hero-copy p:last-child {
  color: rgba(255,255,255,0.88);
  max-width: 40ch;
}

/* Branch detail */
.branch-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 28px;
  align-items: start;
}
.branch-aside,
.contact-aside {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 10px 24px rgba(10,48,64,0.06);
}
.branch-aside h2,
.contact-aside h2 { font-size: 1.2rem; margin-bottom: 14px; }
.schedule-list { list-style: none; margin-bottom: 18px; }
.schedule-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.schedule-list li span { color: var(--muted); font-weight: 600; }
.section-coaches { background: #e4ecee; }
.coach-grid { display: grid; gap: 18px; }
.coach-block {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 22px;
  background: white;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.coach-block-photo img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}
.coach-block-body { padding: 22px 22px 22px 0; }
.coach-block-body h3 {
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--navy);
}
.coach-block-body .role {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  margin: 4px 0 12px;
}
.coach-block-body p:last-child { color: var(--muted); }

/* Info / contact */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.info-block {
  background: white;
  border-radius: 18px;
  padding: 22px;
  border: 1px solid var(--line);
}
.info-block h3 {
  font-family: var(--display);
  margin-bottom: 8px;
  color: var(--navy);
}
.info-block p { color: var(--muted); }
.coordinator img {
  width: 100%;
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.content-narrow { max-width: 760px; }
.contact-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr;
  gap: 24px;
}
.contact-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.contact-list h2 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 6px;
}
.contact-list p {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
}
.contact-list a { color: var(--blue); }
.qr-code {
  width: 160px;
  margin: 10px 0 14px;
  background: white;
  padding: 8px;
  border-radius: 12px;
}

/* CTA */
.cta-band {
  padding: 72px 20px;
  background:
    radial-gradient(circle at 15% 20%, rgba(232,93,4,0.28), transparent 35%),
    linear-gradient(135deg, #0a3040, #13495c);
  color: white;
  text-align: center;
}
.cta-band-inner { max-width: 720px; margin: 0 auto; }
.cta-band h2 { color: white; font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,0.85); margin-bottom: 22px; }

/* Footer */
.site-footer {
  background: #072430;
  color: rgba(255,255,255,0.78);
  padding: 36px 20px 24px;
}
.site-footer-inner {
  max-width: 1180px;
  margin: 0 auto 18px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.site-footer strong {
  display: block;
  color: white;
  font-family: var(--display);
  font-size: 1.15rem;
  margin-bottom: 6px;
}
.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.site-footer-links a { font-weight: 600; color: rgba(255,255,255,0.85); }
.site-footer-links a:hover { color: white; }
.site-footer-copy {
  max-width: 1180px;
  margin: 0 auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
}

/* WhatsApp */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s;
}
.whatsapp-float:hover { transform: scale(1.06); color: white; }

/* Reveal motion */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  .branch-rail-inner { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .home-intro,
  .branch-block-grid,
  .branch-layout,
  .coach-block,
  .info-grid,
  .contact-layout,
  .contact-list { grid-template-columns: 1fr; }
  .coach-block-body { padding: 0 18px 18px; }
  .coach-block-photo img { min-height: 240px; }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(10, 48, 64, 0.98);
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    background: rgba(255,255,255,0.06);
    border: none;
    margin-top: 4px;
  }
  .nav-dropdown.open .nav-dropdown-menu { display: grid; }
  .nav-dropdown:hover .nav-dropdown-menu { display: none; }
  .nav-dropdown.open:hover .nav-dropdown-menu,
  .nav-dropdown.open .nav-dropdown-menu { display: grid; }
  .nav-dropdown-menu a { color: rgba(255,255,255,0.9); }
  .nav-links .btn-register { margin-left: 0; width: 100%; }
  .branch-rail { margin-top: -24px; }
  .branch-rail-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-mark { max-width: none; }
  .hero-content { padding-bottom: 72px; }
  .section { padding: 52px 0; }
}

/* Mini Triatlon banner */
.tri-banner {
  background: #061820;
  padding: 0;
  margin-top: var(--nav-h);
}
.tri-banner-link {
  position: relative;
  display: block;
  max-width: 1180px;
  margin: 0 auto;
  overflow: hidden;
}
.tri-banner-link img {
  width: 100%;
  height: auto;
  display: block;
  max-height: min(78vh, 780px);
  object-fit: contain;
  background: #061820;
}
.tri-banner-cta {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background: var(--accent);
  color: #fff;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(0.85rem, 2.4vw, 1.05rem);
  letter-spacing: 0.04em;
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
  transition: transform 0.2s ease, background 0.2s ease;
}
.tri-banner-link:hover .tri-banner-cta {
  background: var(--accent-light);
  transform: translateX(-50%) translateY(-2px);
}
@media (max-width: 640px) {
  .tri-banner-cta {
    bottom: 12px;
    padding: 12px 18px;
    white-space: normal;
    text-align: center;
    max-width: calc(100% - 24px);
  }
}
