:root {
  --bg: #f7f3ec;
  --surface: #fffaf2;
  --surface-strong: #efe3d1;
  --ink: #1f2528;
  --muted: #687071;
  --line: #dacdbb;
  --accent: #8f6438;
  --accent-dark: #5a3d22;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(45, 36, 26, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(218, 205, 187, 0.72);
  background: rgba(247, 243, 236, 0.9);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent-dark);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.nav-links a {
  transition: color 180ms ease;
}

.nav-links a:hover {
  color: var(--accent-dark);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  padding: 8px 14px;
}

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  padding: 116px 0 88px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(31, 37, 40, 0.84), rgba(31, 37, 40, 0.48)),
    url("./hero.jpg")
      center/cover;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 72px;
  align-items: end;
  min-height: 470px;
}

.hero-copy {
  color: var(--white);
}

.eyebrow,
.section-kicker,
.card-label {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #e5c7a1;
}

h1,
h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  line-height: 0.98;
}

h1 {
  max-width: 760px;
  font-size: clamp(3.5rem, 8vw, 6.9rem);
  letter-spacing: -0.045em;
}

h2 {
  font-size: clamp(2.35rem, 5vw, 4.6rem);
  letter-spacing: -0.035em;
}

.hero-text {
  max-width: 650px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 0 22px;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent);
  color: var(--white);
}

.button-primary:hover {
  background: var(--accent-dark);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.42);
  color: var(--white);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

.button-secondary-dark {
  border-color: var(--line);
  color: var(--accent-dark);
}

.button-secondary-dark:hover {
  background: rgba(143, 100, 56, 0.09);
}

.hero-card {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 28px;
  background: rgba(255, 250, 242, 0.12);
  box-shadow: var(--shadow);
  color: var(--white);
  padding: 34px;
  backdrop-filter: blur(18px);
}

.hero-card blockquote {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.12;
}

.section {
  padding: 104px 0;
}

.section-muted {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 74px;
}

.rich-text {
  color: var(--muted);
  font-size: 1.1rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 42px;
}

.section-summary {
  max-width: 470px;
  margin: 0;
  color: var(--muted);
}

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

.practice-card {
  min-height: 248px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--bg);
  padding: 28px;
  transition:
    border-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.practice-card:hover {
  border-color: rgba(143, 100, 56, 0.48);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.practice-card span {
  color: var(--accent);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.15rem;
  font-weight: 700;
}

.practice-card h3 {
  margin: 38px 0 12px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
  line-height: 1.04;
}

.practice-card p {
  margin: 0;
  color: var(--muted);
}

.quote-band {
  background: var(--accent-dark);
  color: var(--white);
  text-align: center;
}

.quote-band p {
  max-width: 840px;
  margin: 0 auto;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 5vw, 4.8rem);
  font-weight: 600;
  line-height: 1.05;
}

.contact-list {
  display: grid;
  gap: 20px;
  margin-top: 34px;
}

.contact-list p {
  margin: 0;
}

.contact-list span {
  display: block;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact-list strong,
.contact-list a {
  display: inline-block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 1.03rem;
  font-weight: 700;
}

.contact-form,
.booking-form,
.admin-login,
.admin-card,
.booking-side {
  display: grid;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 32px;
}

.booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.booking-form {
  grid-template-columns: 1fr;
}

.booking-side {
  position: sticky;
  top: 110px;
}

.booking-side h3,
.admin-card h3 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
  line-height: 1.1;
}

.booking-side ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.price-note {
  border: 1px solid rgba(143, 100, 56, 0.24);
  border-radius: 18px;
  background: rgba(143, 100, 56, 0.08);
  color: var(--accent-dark);
  font-weight: 700;
  padding: 14px 16px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-form label,
.booking-form label,
.admin-login label,
.admin-card label {
  display: grid;
  gap: 8px;
  color: var(--accent-dark);
  font-size: 0.9rem;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea,
.booking-form input,
.booking-form select,
.booking-form textarea,
.admin-login input,
.admin-card input,
.admin-card select,
.admin-card textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  padding: 14px 15px;
}

.contact-form input:focus,
.contact-form textarea:focus,
.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus,
.admin-login input:focus,
.admin-card input:focus,
.admin-card select:focus,
.admin-card textarea:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(143, 100, 56, 0.14);
}

.checkbox-label {
  align-items: start;
  grid-template-columns: auto 1fr;
}

.checkbox-label input {
  width: auto;
  margin-top: 5px;
}

.admin-section {
  border-bottom: 1px solid var(--line);
}

.admin-login {
  max-width: 520px;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 22px;
  align-items: start;
}

.availability-days {
  display: grid;
  gap: 12px;
}

.availability-row {
  display: grid;
  grid-template-columns: 1fr 120px 120px;
  gap: 10px;
  align-items: end;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.availability-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.blocked-list,
.appointment-list {
  display: grid;
  gap: 12px;
}

.blocked-item,
.appointment-item {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  padding: 16px;
}

.blocked-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.appointment-card {
  margin-top: 22px;
}

.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.appointment-item {
  display: grid;
  gap: 10px;
}

.appointment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.appointment-meta span,
.status-pill {
  border-radius: 999px;
  background: rgba(143, 100, 56, 0.1);
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 5px 10px;
}

.appointment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.appointment-actions .button,
.blocked-item .button {
  min-height: 38px;
  padding: 0 14px;
}

.privacy-note,
.form-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer p {
  margin: 0;
}

.footer a {
  font-weight: 800;
}

.admin-body {
  background: var(--surface);
}

.admin-title {
  color: var(--ink);
  font-size: clamp(2.6rem, 6vw, 5.2rem);
}

.admin-toolbar {
  display: grid;
  gap: 18px;
  margin-bottom: 22px;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tab-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--accent-dark);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 10px 14px;
}

.tab-button.is-active {
  background: var(--accent);
  color: var(--white);
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

.admin-form {
  display: grid;
  gap: 16px;
}

.admin-list {
  display: grid;
  gap: 12px;
}

.admin-list-item {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  padding: 16px;
}

.admin-list-item p {
  margin: 0;
}

.mfa-qr {
  max-width: 220px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  padding: 12px;
}

/* Ziyaret istatistikleri (İstatistik sekmesi) */
.stat-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 8px 0 18px;
}

.stat-tile {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  padding: 16px;
  text-align: center;
}

.stat-num {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent-dark);
  line-height: 1;
}

.stat-lbl {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.stat-h {
  margin: 22px 0 10px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.5rem;
}

.stat-bars {
  display: grid;
  gap: 8px;
}

.stat-bar-row {
  display: grid;
  grid-template-columns: minmax(90px, 200px) 1fr auto;
  align-items: center;
  gap: 12px;
}

.stat-bar-label {
  color: var(--ink);
  font-size: 0.86rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stat-bar-track {
  height: 12px;
  border-radius: 999px;
  background: rgba(143, 100, 56, 0.12);
  overflow: hidden;
}

.stat-bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
}

.stat-bar-count {
  color: var(--accent-dark);
  font-weight: 800;
  font-size: 0.86rem;
  min-width: 2ch;
  text-align: right;
}

@media (max-width: 640px) {
  .stat-bar-row {
    grid-template-columns: minmax(70px, 110px) 1fr auto;
  }
}

@media (max-width: 900px) {
  .nav {
    min-height: 72px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: var(--shadow);
    padding: 18px;
  }

  .nav-links.is-open {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding: 86px 0 64px;
  }

  .hero-grid,
  .about-grid,
  .contact-grid,
  .booking-layout,
  .admin-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .booking-side {
    position: static;
  }

  .hero-grid {
    min-height: auto;
  }

  .practice-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .brand strong {
    font-size: 0.86rem;
  }

  .brand small {
    font-size: 0.72rem;
  }

  .hero-card,
  .contact-form,
  .booking-form,
  .admin-login,
  .admin-card,
  .booking-side {
    border-radius: 22px;
    padding: 24px;
  }

  .form-row,
  .availability-row {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 72px 0;
  }

  .section-heading {
    display: block;
  }

  .practice-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

.kvkk-consent {
  display: grid;
  gap: 6px;
}

.kvkk-link {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent, #1d4ed8);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.kvkk-link:hover {
  opacity: 0.8;
}

.kvkk-state {
  color: #15803d;
}

body.modal-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: 85vh;
  overflow-y: auto;
  background: var(--white, #fff);
  color: var(--ink, #0f172a);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.35);
  display: grid;
  gap: 16px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: 0;
  background: none;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: inherit;
}

.modal-body {
  white-space: pre-wrap;
  line-height: 1.6;
  max-height: 50vh;
  overflow-y: auto;
  padding-right: 4px;
}

.consent-revealed {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.05);
  display: grid;
  gap: 4px;
}

.consent-ua {
  word-break: break-word;
}

.consent-statement {
  font-weight: 600;
}

.consent-text-details summary {
  cursor: pointer;
  font-size: 0.85rem;
  color: #4b5563;
}

.consent-text {
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 220px;
  overflow: auto;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px;
  font-size: 0.82rem;
  margin-top: 6px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%) translateY(20px);
  background: #0f172a;
  color: #fff;
  padding: 14px 22px;
  border-radius: 14px;
  font-weight: 600;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 1100;
  max-width: calc(100% - 40px);
  text-align: center;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.cf-turnstile {
  margin: 4px 0;
}

/* Erişilebilirlik: içeriğe atla bağlantısı (yalnızca klavye odağında görünür) */
.skip-link {
  position: absolute;
  left: 12px;
  top: -64px;
  z-index: 2000;
  background: var(--accent-dark);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 0 0 12px 12px;
  font-weight: 800;
  transition: top 160ms ease;
}

.skip-link:focus {
  top: 0;
}

/* Klavye kullanıcıları için görünür odak halkası */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* Hareket azaltma tercihi olan kullanıcılar için animasyonları düşür */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
