:root {
  --navy: #172f67;
  --navy-deep: #0f1f45;
  --ink: #192540;
  --muted: #616879;
  --line: #e0e3e9;
  --canvas: #f2f3f7;
  --card: #ffffff;
  --danger: #a54b34;
  --warn-bg: #fff4d6;
  --warn-ink: #6b4e00;
  --radius: 16px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font:
    16px/1.6 system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial,
    sans-serif;
}

a {
  color: var(--navy);
}

[hidden] {
  display: none !important;
}

.wrap {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 15px;
}
.brand img {
  width: 40px;
  height: 40px;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  border: 0;
  background: var(--navy);
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.button:hover {
  filter: brightness(1.12);
}
.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.button.light {
  background: #fff;
  color: var(--navy);
}
.button.small {
  min-height: 40px;
  padding: 0 16px;
}
.button.danger {
  background: var(--danger);
}

/* Hero */
.hero {
  background: var(--navy-deep);
  color: #fff;
  text-align: center;
  padding: 48px 0 56px;
}
.hero img {
  width: min(240px, 60vw);
  height: auto;
}
.hero h1 {
  margin: 20px 0 4px;
  font-size: clamp(30px, 7vw, 44px);
  line-height: 1.15;
}
.hero .motto {
  margin: 0;
  font-size: 21px;
  font-weight: 600;
  color: #c9d6f2;
}
.hero .sub {
  margin: 4px 0 28px;
  color: #a9b6d3;
}
.hero .note {
  margin: 18px 0 0;
  font-size: 14px;
  color: #a9b6d3;
}

/* Content */
main {
  padding: 32px 0 48px;
}
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.card h2,
.card h3 {
  margin: 0 0 6px;
  font-size: 18px;
}
.card p {
  margin: 0;
  color: var(--muted);
}

.page {
  max-width: 720px;
}
.page h1 {
  font-size: clamp(26px, 6vw, 34px);
  line-height: 1.2;
  margin: 0 0 8px;
}
.page h2 {
  font-size: 20px;
  margin: 32px 0 8px;
}
.page p,
.page li {
  color: #3a4256;
}
.lead {
  color: var(--muted);
  margin-top: 0;
}
.meta {
  color: var(--muted);
  font-size: 14px;
}
.notice {
  background: var(--warn-bg);
  color: var(--warn-ink);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  margin: 16px 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
}
.table-scroll {
  overflow-x: auto;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.contact-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.contact-list span {
  color: var(--muted);
}

details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 10px;
}
summary {
  cursor: pointer;
  font-weight: 600;
}
details p {
  margin: 8px 0 0;
}

/* Forms */
form {
  display: grid;
  gap: 8px;
}
label {
  font-weight: 600;
  font-size: 14px;
}
input[type='text'],
input[type='tel'],
input[type='password'] {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #d8dbe2;
  border-radius: 12px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 400;
  margin: 8px 0;
}
.check input {
  margin-top: 5px;
  width: 18px;
  height: 18px;
}
.error {
  color: var(--danger);
  margin: 4px 0;
}
.success {
  background: #e5f3ea;
  color: #1f5a35;
  border-radius: 12px;
  padding: 14px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--card);
  padding: 24px 0;
  font-size: 14px;
  color: var(--muted);
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 8px;
}

/* App store buttons */
.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.store-button {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-width: 160px;
  min-height: 56px;
  padding: 6px 18px;
  border-radius: 12px;
  background: #000;
  color: #fff;
  text-decoration: none;
  line-height: 1.2;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}
.store-small {
  font-size: 12px;
  opacity: 0.8;
}
.store-name {
  font-size: 19px;
  font-weight: 700;
}
.store-button.soon {
  opacity: 0.55;
  cursor: default;
}
/* Navigation */
.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  padding: 8px 6px;
}
.nav-link:hover {
  color: var(--navy);
}
.button.outline {
  background: transparent;
  color: var(--navy);
  box-shadow: inset 0 0 0 2px var(--navy);
}
@media (max-width: 520px) {
  .brand {
    font-size: 0;
    letter-spacing: 0;
  }
  .nav-link {
    display: none;
  }
}

/* Sections */
.section {
  padding-top: 8px;
  padding-bottom: 8px;
}
.section + .section,
.club + .section {
  margin-top: 40px;
}
.section-title {
  font-size: clamp(24px, 5vw, 30px);
  line-height: 1.2;
  margin: 0 0 16px;
}
.club {
  margin-top: 48px;
  background: var(--card);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 48px 0;
}
.club-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  align-items: center;
}
.club p {
  color: #3a4256;
}
.motto-dark {
  margin: -8px 0 12px;
  font-size: 19px;
  font-weight: 600;
  color: var(--navy) !important;
}
.facts {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 8px;
}
.facts li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.facts span {
  color: var(--muted);
}
@media (max-width: 760px) {
  .club-grid {
    grid-template-columns: 1fr;
  }
}
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.steps li {
  counter-increment: step;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.steps li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  margin-bottom: 10px;
}
.steps h3 {
  margin: 0 0 4px;
  font-size: 18px;
}
.steps p {
  margin: 0;
  color: var(--muted);
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

/* Header over the photo hero */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.4) blur(10px);
}

/* Photo hero */
.eyebrow {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c9d6f2;
}
.eyebrow.dark {
  color: var(--navy);
}
.hero-photo {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: left;
  min-height: min(82vh, 720px);
  display: flex;
  align-items: flex-end;
  padding: 120px 0 56px;
  background: var(--navy-deep);
}
.hero-bg,
.hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-bg {
  z-index: -1;
}
.hero-bg img {
  object-fit: cover;
  object-position: 50% 60%;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 31, 69, 0.15) 0%, rgba(15, 31, 69, 0) 35%),
    linear-gradient(0deg, rgba(10, 21, 48, 0.88) 0%, rgba(10, 21, 48, 0.45) 45%, transparent 75%);
}
.hero-photo h1 {
  margin: 0 0 10px;
  font-size: clamp(38px, 9vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}
.hero-photo .sub {
  max-width: 560px;
  margin: 0 0 24px;
  font-size: 18px;
  color: #e4ebfa;
}
.hero-photo .cta-row {
  margin: 0 0 20px;
}
.hero-photo .note {
  text-align: left;
  color: #c9d6f2;
}
.hero-photo .note a {
  color: #fff;
}
.button.ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(6px);
}
.hero-photo .store-button {
  background: rgba(0, 0, 0, 0.55);
}

/* Club photo */
.club-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 20px 40px rgba(15, 31, 69, 0.18);
}

/* Gallery */
.gallery {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.gallery li {
  overflow: hidden;
  border-radius: 14px;
  background: var(--line);
}
.gallery img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery li:hover img {
  transform: scale(1.04);
}
@media (max-width: 760px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .hero-photo {
    min-height: 78vh;
    padding: 96px 0 40px;
  }
  .hero-photo .sub {
    font-size: 16px;
  }
}

/* Redirect pages (/giris/, /kayit/) */
.redirect .button {
  margin: 8px 0 16px;
}

/* Photo banner on inner pages */
.page-banner {
  position: relative;
  color: #fff;
  padding: 56px 0 40px;
  background-color: var(--navy-deep);
  background-image:
    linear-gradient(0deg, rgba(10, 21, 48, 0.85), rgba(10, 21, 48, 0.35)),
    url('/assets/photos/banner.jpg');
  background-image:
    linear-gradient(0deg, rgba(10, 21, 48, 0.85), rgba(10, 21, 48, 0.35)),
    image-set(
      url('/assets/photos/banner.webp') type('image/webp'),
      url('/assets/photos/banner.jpg') type('image/jpeg')
    );
  background-size: cover;
  background-position: center 40%;
}
.page-banner .wrap {
  max-width: 720px;
}
.page-banner h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(28px, 6vw, 40px);
  line-height: 1.15;
}
.page-banner + main {
  padding-top: 28px;
}
@media (max-width: 700px) {
  .page-banner {
    padding: 40px 0 28px;
    background-image:
      linear-gradient(0deg, rgba(10, 21, 48, 0.85), rgba(10, 21, 48, 0.35)),
      url('/assets/photos/banner-800.jpg');
    background-image:
      linear-gradient(0deg, rgba(10, 21, 48, 0.85), rgba(10, 21, 48, 0.35)),
      image-set(
        url('/assets/photos/banner-800.webp') type('image/webp'),
        url('/assets/photos/banner-800.jpg') type('image/jpeg')
      );
  }
}

/* Keyboard focus */
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid #5b8ce6;
  outline-offset: 2px;
}

/* Contact section on the home page */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.contact-grid h3 {
  margin-top: 0;
}
