/* Müderris Orthodontics — ortak stil */

:root {
  --bg: #000000;
  --card-bg: #141412;
  --card-bg-alt: #1c1c19;
  --border: #2a2a27;
  --border-strong: #3a3a37;
  --accent: #c08829;
  --accent-dim: #8a6321;
  --text-primary: #f4f2ec;
  --text-secondary: #d8d6ce;
  --text-muted: #9b9b94;
  --text-faint: #6b6b66;
  --text-faintest: #4a4a46;
  --radius: 12px;
  --max-width: 720px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header / nav */
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.5rem 0.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}
.top-nav a {
  color: var(--text-faint);
  font-size: 12px;
  text-decoration: none;
}
.top-nav a:hover { color: var(--text-secondary); }
.top-nav .page-title {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
}
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}
.lang-toggle span { cursor: pointer; }
.lang-toggle .active { color: var(--text-secondary); font-weight: 500; }
.lang-toggle .inactive { color: var(--text-faintest); }

/* Logo */
.logo-wrap {
  display: flex;
  justify-content: center;
  padding: 2.5rem 2rem 2rem;
}
.logo-circle {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: #26261f;
  border: 1px solid #2e2e28;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}
.logo-circle.small { width: 96px; height: 96px; }
.logo-ring {
  position: absolute;
  width: 91%;
  height: 91%;
  border-radius: 50%;
  border: 0.5px solid var(--accent);
  opacity: 0.6;
}
.logo-name {
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-bar {
  width: 1.5px;
  height: 26px;
  background: var(--accent);
}
.logo-circle.small .logo-bar { height: 16px; }
.logo-text {
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 2px;
}
.logo-circle.small .logo-text { font-size: 13px; letter-spacing: 1.2px; }
.logo-sub {
  color: var(--accent);
  font-size: 9px;
  letter-spacing: 3px;
  margin-top: 6px;
  margin-left: 10px;
}
.logo-circle.small .logo-sub { font-size: 6px; letter-spacing: 2px; margin-top: 3px; }

/* Home — treatment doors */
.doors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 2.5rem;
}
.door {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 2.25rem 1.25rem;
  text-align: center;
  border: 0.5px solid var(--border);
  cursor: pointer;
  text-decoration: none;
  display: block;
  transition: border-color 0.15s ease;
}
.door:hover { border-color: var(--border-strong); }
.door svg { display: block; margin: 0 auto; }
.door p {
  font-size: 12px;
  font-weight: 500;
  margin: 10px 0 0;
  color: var(--text-secondary);
}

/* Contact block */
.contact-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 2rem 3rem;
}
.contact-label {
  font-size: 8px;
  color: var(--text-faintest);
  letter-spacing: 1.2px;
  margin-bottom: 8px;
}
.contact-name {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
}
.info-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 0.5px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  color: var(--text-faint);
  cursor: pointer;
  position: relative;
}
.info-popover {
  display: none;
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  background: var(--card-bg-alt);
  border: 0.5px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.6;
  text-align: left;
  z-index: 10;
}
.info-dot:hover .info-popover,
.info-dot:focus .info-popover { display: block; }
.contact-lines {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.contact-lines span { font-size: 10.5px; color: var(--text-faint); }
.contact-lines a { color: var(--text-faint); text-decoration: none; }
.contact-lines a:hover { color: var(--text-muted); }
.map-link {
  font-size: 10px;
  color: var(--accent);
  cursor: pointer;
  margin-top: 7px;
  text-decoration: none;
}

/* Intro note on listing pages */
.intro-note {
  font-size: 11px;
  color: var(--text-faint);
  line-height: 1.6;
  padding: 0 1.5rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Case grid (listing) */
.case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 1.5rem 2.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}
@media (min-width: 640px) {
  .case-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.case-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  border: 0.5px solid var(--border);
  text-decoration: none;
  display: block;
  color: inherit;
}
.case-card .thumb {
  height: 110px;
  background: var(--card-bg-alt);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.case-card .thumb span { font-size: 10px; color: var(--text-faintest); }
.case-card .info { padding: 0.85rem 0.9rem; }
.case-card .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
}
.case-num { font-size: 10px; color: var(--text-faint); font-weight: 500; }
.case-tag {
  font-size: 8px;
  color: var(--accent-dim);
  background: #1f1b12;
  padding: 2px 6px;
  border-radius: 4px;
}
.case-card .title {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.4;
}

/* Case detail page */
.case-detail {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem 2.5rem;
}
.case-detail .case-tag { display: inline-block; margin-bottom: 10px; }
.case-detail h1 {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  margin: 0 0 1.5rem;
}
.photo-pairs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 1.5rem;
}
.photo-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.photo-slot {
  background: var(--card-bg);
  border-radius: 8px;
  height: 160px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
}
.photo-slot .label {
  font-size: 9px;
  color: var(--text-faintest);
  position: absolute;
  top: 8px;
  left: 8px;
}
.photo-slot .date {
  font-size: 8px;
  color: var(--text-faintest);
  background: rgba(0,0,0,0.5);
  padding: 2px 6px;
  border-radius: 4px;
  margin: 8px;
}

.info-box {
  background: #0d0d0b;
  border-radius: 10px;
  border: 0.5px solid #221e15;
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 1.25rem;
}
.info-box .field {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
}
.info-box .field .k { color: var(--text-faint); }
.info-box .field .v { color: var(--text-secondary); text-align: right; max-width: 60%; }
.info-box .divider { height: 0.5px; background: #221e15; margin: 4px 0; }
.notes-label { font-size: 10px; color: var(--text-faint); letter-spacing: 0.5px; }
.notes-list { margin-top: 7px; display: flex; flex-direction: column; gap: 6px; }
.notes-list li {
  list-style: none;
  display: flex;
  gap: 7px;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
}
.notes-list li::before { content: "\00B7"; color: var(--accent-dim); }

.legal-disclaimer {
  font-size: 9.5px;
  color: var(--text-faintest);
  line-height: 1.6;
  margin: 0;
}

/* Coming soon page */
.coming-soon {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-faint);
  font-size: 13px;
}
