/* Lunave Pilates — site stilleri */

:root {
  --sand-50:  #faf7f3;
  --sand-100: #f2ece4;
  --sand-200: #e4d9cb;
  --ink-900:  #1f1b16;
  --ink-700:  #4a423a;
  --ink-500:  #7a6f63;
  --accent:   #9c7b52;
  --accent-dark: #7d6140;
  --white:    #ffffff;
  --danger:   #b3261e;
  --success:  #2e6b46;

  --radius: 14px;
  --shadow: 0 1px 2px rgba(31,27,22,.06), 0 8px 24px rgba(31,27,22,.06);
  --container: 1160px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--ink-900); line-height: 1.2; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.15rem; }

a { color: var(--accent-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }

.sr-only, .hp {
  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: -9999px;
  background: var(--ink-900); color: var(--white);
  padding: .75rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

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

/* --------------------------------------------------------------- Butonlar */

.btn {
  display: inline-block;
  padding: .7rem 1.4rem;
  border: 1px solid var(--sand-200);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink-900);
  font: inherit; font-weight: 500;
  text-decoration: none; cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.btn:hover { background: var(--sand-100); }

.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

.btn-danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, var(--sand-200)); }

/* ----------------------------------------------------------------- Header */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--white) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sand-200);
}

.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 76px; }

.brand { text-decoration: none; display: grid; line-height: 1.1; }
.brand-mark { font-size: 1.4rem; font-weight: 600; color: var(--ink-900); letter-spacing: .02em; }
.brand-sub  { font-size: .7rem; text-transform: uppercase; letter-spacing: .16em; color: var(--ink-500); }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.main-nav a { color: var(--ink-700); text-decoration: none; font-size: .95rem; padding: .4rem 0; display: block; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--accent-dark); }

.main-nav .has-children { position: relative; }
.submenu {
  position: absolute; top: 100%; left: 50%; translate: -50% 0;
  min-width: 190px; flex-direction: column; gap: 0 !important;
  background: var(--white); border: 1px solid var(--sand-200);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: .5rem !important; display: none;
}
.has-children:hover .submenu, .has-children:focus-within .submenu { display: flex; }
.submenu a { padding: .45rem .75rem; border-radius: 8px; }
.submenu a:hover { background: var(--sand-50); }

.nav-toggle { display: none; }

/* ------------------------------------------------------------------- Hero */

.hero { position: relative; }

.slide {
  min-height: min(78vh, 640px);
  display: none; place-items: center;
  background-size: cover; background-position: center;
  color: var(--white); text-align: center;
  position: relative;
}
.slide.is-active { display: grid; }
.slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(31,27,22,.25), rgba(31,27,22,.6)); }
.slide-body { position: relative; }
.slide h1 { color: var(--white); }
.slide p  { font-size: 1.15rem; max-width: 46ch; margin-inline: auto; }

.hero-fallback { padding: 6rem 0; text-align: center; }
.hero-fallback p { font-size: 1.15rem; max-width: 52ch; margin-inline: auto; }

/* -------------------------------------------------------------- Bölümler */

.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--sand-50); }
.section-center { text-align: center; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.section-head h2 { margin: 0; }
.link-more { font-size: .95rem; }

.page-hero {
  padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem);
  background: var(--sand-50) center/cover no-repeat;
  border-bottom: 1px solid var(--sand-200);
}
.page-hero h1 { margin: 0; }
.page-hero-sub { max-width: 62ch; margin: .75rem 0 0; }

.breadcrumb { font-size: .85rem; color: var(--ink-500); margin-bottom: .75rem; display: flex; gap: .5rem; }
.breadcrumb a { color: inherit; }

.prose { max-width: 72ch; }
.prose img { border-radius: var(--radius); margin: 1.5rem 0; }

.empty { color: var(--ink-500); font-style: italic; }

/* ----------------------------------------------------------------- Kartlar */

.card-grid { display: grid; gap: 1.75rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.card { background: var(--white); border: 1px solid var(--sand-200); border-radius: var(--radius); overflow: hidden; padding-bottom: 1.25rem; }
.card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.card h2, .card h3 { margin: 1rem 1.25rem .35rem; font-size: 1.1rem; }
.card p { margin: 0 1.25rem; color: var(--ink-500); font-size: .95rem; }
.card time { display: block; margin: 0 1.25rem .5rem; font-size: .8rem; color: var(--ink-500); }
.card a { text-decoration: none; color: inherit; }

/* ----------------------------------------------------------------- Fiyat */

.price-grid { display: grid; gap: 1.75rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.price-card {
  border: 1px solid var(--sand-200); border-radius: var(--radius);
  padding: 2rem 1.75rem; text-align: center; background: var(--white);
}
.price-card.is-featured { border-color: var(--accent); box-shadow: var(--shadow); }
.price { font-size: 2.25rem; font-weight: 600; color: var(--ink-900); margin: .5rem 0 0; }
.price-note { color: var(--ink-500); font-size: .9rem; margin: .25rem 0 1.25rem; }

/* --------------------------------------------------------------- Program */

.schedule-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.schedule-day { border: 1px solid var(--sand-200); border-radius: var(--radius); padding: 1.25rem; }
.schedule-day h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-500); }
.schedule-day ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.schedule-day li { display: grid; gap: .1rem; font-size: .9rem; }
.schedule-day time { font-weight: 600; color: var(--ink-900); }
.slot-instructor { color: var(--ink-500); font-size: .82rem; }

/* ---------------------------------------------------------------- Galeri */

.gallery-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.gallery-grid figure { margin: 0; }
.gallery-grid img { border-radius: var(--radius); aspect-ratio: 1; object-fit: cover; }
.gallery-grid figcaption { font-size: .85rem; color: var(--ink-500); margin-top: .5rem; }

.video-grid { display: grid; gap: 1.75rem; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.video-grid figure { margin: 0; }
.video-frame { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: var(--sand-100); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.logo-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.logo-card { margin: 0; text-align: center; }
.logo-card img { height: 72px; object-fit: contain; margin-inline: auto; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.logo-card:hover img { filter: none; opacity: 1; }
.logo-card figcaption { font-size: .85rem; color: var(--ink-500); margin-top: .5rem; }

.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.doc-list a { display: grid; gap: .15rem; padding: 1rem 1.25rem; border: 1px solid var(--sand-200); border-radius: var(--radius); text-decoration: none; color: inherit; }
.doc-list a:hover { background: var(--sand-50); }
.doc-title { font-weight: 600; color: var(--ink-900); }
.doc-desc { font-size: .9rem; color: var(--ink-500); }

.team-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.team-card { text-align: center; }
.team-card img { aspect-ratio: 3/4; object-fit: cover; border-radius: var(--radius); }
.team-card h2 { font-size: 1.1rem; margin: 1rem 0 .1rem; }
.team-role { color: var(--accent-dark); font-size: .9rem; margin: 0 0 .5rem; }

/* --------------------------------------------------------------- Formlar */

.contact-grid { display: grid; gap: 3rem; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; }

.field { display: grid; gap: .35rem; margin: 0 0 1.25rem; }
.field label { font-size: .9rem; font-weight: 500; color: var(--ink-900); }
.field input, .field textarea, .field select {
  font: inherit; padding: .7rem .9rem;
  border: 1px solid var(--sand-200); border-radius: 10px;
  background: var(--white); color: var(--ink-900); width: 100%;
}
.field textarea { resize: vertical; }
.field-error { color: var(--danger); font-size: .85rem; }
.form-note { font-size: .85rem; color: var(--ink-500); }

.map { width: 100%; aspect-ratio: 4/3; border: 0; border-radius: var(--radius); margin-top: 1rem; }

.flash-stack { margin-top: 1.25rem; display: grid; gap: .5rem; }
.flash { padding: .85rem 1.15rem; border-radius: 10px; font-size: .95rem; }
.flash-success { background: color-mix(in srgb, var(--success) 12%, var(--white)); color: var(--success); }
.flash-error   { background: color-mix(in srgb, var(--danger) 12%, var(--white)); color: var(--danger); }

.pagination { display: flex; gap: .5rem; justify-content: center; margin-top: 3rem; }
.pagination a { padding: .5rem .9rem; border: 1px solid var(--sand-200); border-radius: 8px; text-decoration: none; color: var(--ink-700); }
.pagination a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--white); }

/* ---------------------------------------------------------------- Footer */

.site-footer { background: var(--ink-900); color: var(--sand-200); margin-top: 4rem; padding: 4rem 0 2rem; }
.site-footer h2 { color: var(--white); font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 1rem; }
.site-footer a { color: var(--sand-200); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer .brand-mark { color: var(--white); }

.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; font-size: .95rem; }
.footer-about { font-size: .95rem; max-width: 34ch; }
.site-footer address { font-style: normal; font-size: .95rem; }
.site-footer address p { margin: 0 0 .5rem; }

.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: .85rem;
}
.legal-menu { list-style: none; display: flex; gap: 1.25rem; margin: 0; padding: 0; }

/* ---------------------------------------------------------------- Bakım */

.maintenance { min-height: 100dvh; display: grid; place-content: center; text-align: center; gap: .5rem; padding: 2rem; }

/* ------------------------------------------------------------- Duyarlılık */

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: grid; place-items: center;
    margin-left: auto; width: 44px; height: 44px;
    border: 1px solid var(--sand-200); border-radius: 10px;
    background: var(--white); cursor: pointer;
  }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    content: ""; display: block; width: 18px; height: 2px;
    background: var(--ink-900); border-radius: 2px;
  }
  .nav-toggle-bar::before { translate: 0 -6px; }
  .nav-toggle-bar::after  { translate: 0 4px; }

  .main-nav {
    display: none; margin: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--sand-200);
    padding: 1rem 1.25rem 1.5rem;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: .25rem; }
  .submenu { position: static; translate: none; display: flex; border: 0; box-shadow: none; padding: 0 0 0 1rem !important; }

  .header-cta { display: none; }
}
