/*
  Boğaziçi Spor Kulübü — Temel Stil Dosyası
  Renk Paleti: Lacivert (#003366), Turuncu (#FF6600), Açık Gri (#F2F2F2), Koyu Gri (#333333)
  Tipografi: Başlıklar Poppins, Metin Inter / sistem sans-serif
*/

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Poppins:wght@600;700;800&display=swap");

:root {
  --navy: #003366;
  --orange: #ff6600;
  --red: #ff0000;
  --light-gray: #f2f2f2;
  --dark-gray: #333333;
  --white: #ffffff;
  --max-w: 1440px;
  --radius: 2px;
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  padding: 0;
  margin: 0;
  color: var(--dark-gray);
  background: var(--light-gray);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: Poppins, Inter, Arial, sans-serif;
  color: var(--navy);
  margin: 0 0 12px 0;
}

h1 {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
h2 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
}

p {
  margin: 0 0 16px 0;
}

img {
  max-width: 100%;
  display: block;
}

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

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.2px;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn-outline {
  background: transparent;
  border-color: var(--orange);
  color: var(--orange);
}
.btn-outline:hover {
  background: var(--orange);
  color: var(--white);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(10px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}
.brand strong {
  font-family: Poppins;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.2px;
  color: var(--red);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 6px;
  align-items: center;
}
.nav-links a {
  font-family: Poppins;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--navy);
}
.nav-links a:hover {
  background: var(--light-gray);
}

.menu-toggle {
  display: none;
}

/* Hero */
.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  align-items: center;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7) contrast(1.05);
  opacity: 0;
  transition: opacity 800ms ease;
}
.hero-media img.is-active {
  opacity: 1;
}

.hero .content {
  position: relative;
  z-index: 2;
  padding: 80px 0;
}
.hero .eyebrow {
  display: inline-block;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #cce0ff;
  margin-bottom: 8px;
}
.hero h1 {
  color: #e8f1ff;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}
.hero p {
  color: #eaf0f8;
  font-size: 18px;
  max-width: 760px;
}
.hero .cta-group {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

/* Feature Tiles */
.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: -48px;
}
.tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  color: var(--white);
  min-height: 220px;
  box-shadow: var(--shadow-lg);
}
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: transform 0.4s ease, opacity 0.3s ease;
}
.tile:hover img {
  transform: scale(1.05);
  opacity: 0.9;
}
.tile .tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.6) 100%
  );
}
.tile .tile-content {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: end;
}
.tile .title {
  font-family: Poppins;
  font-size: 20px;
  font-weight: 800;
}

/* Sections */
.section {
  padding: 64px 0;
}
.section.alt {
  background: var(--white);
}
.section .section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 24px;
}
.section .section-head p {
  max-width: 760px;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}
.card img {
  height: 200px;
  object-fit: cover;
}
.card .card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card .card-body .meta {
  color: #666;
  font-size: 14px;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
.gallery img {
  border-radius: 12px;
  height: 160px;
  object-fit: cover;
}

/* Forms */
form .form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
label {
  font-weight: 600;
  font-size: 14px;
  color: #222;
}
input,
select,
textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #e2e2e2;
  padding: 12px 14px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-size: 15px;
}
textarea {
  min-height: 120px;
  resize: vertical;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 102, 0, 0.15);
}
.form-note {
  color: #666;
  font-size: 13px;
}

/* Preloader */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.preloader img {
  width: 96px;
  height: 96px;
}
.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Drawer */
body.is-locked {
  overflow: hidden;
}
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 1900;
}
.drawer-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(88vw, 360px);
  background: #fff;
  box-shadow: -20px 0 40px rgba(0, 0, 0, 0.18);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 1901;
  display: flex;
  flex-direction: column;
}
.drawer.is-open {
  transform: translateX(0);
}
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
}
.drawer-header img {
  width: 40px;
  height: 40px;
}
.drawer-close {
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #666;
}
.drawer-nav {
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.drawer-nav a {
  padding: 14px 12px;
  border-radius: 12px;
  font-weight: 700;
  color: #333;
}
.drawer-nav a:hover {
  background: #f7f7f7;
}
.drawer-contact {
  margin-top: auto;
  padding: 10px 5px 50px;
  border-top: 1px solid #eee;
}
.drawer-contact .info {
  color: #555;
  font-size: 14px;
  margin: 6px 0;
}
.drawer-contact .cta-stack {
  display: flex;
  gap: 8px;
}
.drawer-contact .cta-stack .btn {
  flex: 1;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: start;
}
.contact-lead {
  max-width: 640px;
}
.contact-lead .kicker {
  display: inline-block;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.contact-details {
  margin-top: 24px;
  margin-bottom: 32px;
}
.contact-details li {
  margin: 8px 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.contact-details li .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
  display: inline-block;
}

.contact-card {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow-md);
}
.contact-card h2 {
  margin-bottom: 8px;
}
.contact-card .sub {
  color: #666;
  margin-bottom: 16px;
}
.contact-card .stack {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.contact-card .stack .chip {
  background: #f6f6f6;
}

.mini-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 20px;
}
.mini-gallery img {
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
}

/* Footer */
.site-footer {
  background: #0f2544;
  color: #cfe0ff;
  padding: 36px 0;
  margin-top: 40px;
}
.site-footer h3,
.site-footer a {
  color: #fff;
}
.site-footer h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 24px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-brand img {
  width: 56px;
  height: 56px;
}
.copyright {
  margin-top: 18px;
  color: #a8c4f2;
  font-size: 14px;
}

/* Utility */
.spacer-xs {
  height: 8px;
}
.spacer-sm {
  height: 16px;
}
.spacer-md {
  height: 24px;
}
.spacer-lg {
  height: 36px;
}
.spacer-xl {
  height: 56px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.badge {
  display: inline-block;
  background: rgba(255, 102, 0, 0.12);
  color: var(--orange);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.4px;
}

.chip {
  display: inline-block;
  background: #f7f7f7;
  color: #444;
  padding: 8px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
}

.media-cover {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* Responsive */
@media (max-width: 1199px) {
  .nav-links {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
}
@media (max-width: 1060px) {
  .tiles {
    grid-template-columns: repeat(2, 1fr);
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery {
    grid-template-columns: repeat(4, 1fr);
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .hero {
    min-height: 68vh;
  }
  h1 {
    font-size: 36px;
  }
  h2 {
    font-size: 28px;
  }
  .cards,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .section .section-head {
    flex-direction: column;
    align-items: start;
    gap: 12px;
  }
  .mini-gallery {
    gap: 12px;
  }
  form .form-grid {
    grid-template-columns: 1fr;
  }
  .hero .content {
    padding: 60px 20px;
  }
}
