/* Teknik Servis — Modern Profesyonel Tema */
:root {
  --color-primary: #0f172a;
  --color-primary-light: #1e293b;
  --color-accent: #2563eb;
  --color-accent-hover: #1d4ed8;
  --color-accent-soft: #eff6ff;
  --color-success: #059669;
  --color-success-soft: #ecfdf5;
  --color-warning: #d97706;
  --color-warning-soft: #fffbeb;
  --color-surface: #ffffff;
  --color-bg: #f1f5f9;
  --color-border: #e2e8f0;
  --color-border-strong: #cbd5e1;
  --color-text: #0f172a;
  --color-text-muted: #64748b;
  --color-text-light: #94a3b8;
  --color-star: #f59e0b;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, .08);
  --shadow-lg: 0 8px 32px rgba(15, 23, 42, .12);
  --shadow-callbar: 0 8px 32px rgba(15, 23, 42, .24);
  --transition: .18s ease;
}

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

html {
  min-width: 0;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  min-width: 0;
  margin: 0;
  padding: 0 0 calc(100px + env(safe-area-inset-bottom));
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
  overflow-wrap: anywhere;
}

a:hover, a:focus-visible { color: var(--color-accent-hover); }

/* ── Site Header ── */
.site-header {
  background: var(--color-primary);
  color: #fff;
  padding: 14px max(16px, env(safe-area-inset-right)) 14px max(16px, env(safe-area-inset-left));
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.site-header__inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.site-header__brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.site-header__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.14);
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.site-header__phone:hover,
.site-header__phone:focus-visible {
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.24);
  color: #fff !important;
  transform: translateY(-1px);
}

.site-header__phone svg {
  width: 16px;
  height: 16px;
  stroke: #fff;
}

.site-header__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.1);
  flex-shrink: 0;
}

.site-header__logo svg {
  width: 22px;
  height: 22px;
  stroke: #fff;
}

.site-header__brand {
  min-width: 0;
}

.site-header__brand strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.25;
}

.site-header__brand span {
  display: block;
  font-size: 12px;
  opacity: .7;
  line-height: 1.3;
}

/* ── Main Layout ── */
main, footer {
  width: 100%;
  max-width: 960px;
  min-width: 0;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}

main { padding-top: 24px; }

h1, h2, p, li, span, strong {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
}

h1 {
  margin: 0 0 8px;
  font-size: clamp(24px, 5.5vw, 32px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.025em;
  color: var(--color-primary);
}

h2 {
  font-size: clamp(18px, 4vw, 22px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.015em;
}

.page-intro {
  margin: 0 0 24px;
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.55;
}

/* ── Breadcrumbs ── */
.breadcrumbs {
  margin: 0 0 20px;
  font-size: 13px;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  align-items: center;
}

.breadcrumbs a {
  color: var(--color-text-muted);
  font-weight: 500;
}

.breadcrumbs a:hover { color: var(--color-accent); }

.breadcrumbs li:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 4px;
  vertical-align: -2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E") center/contain no-repeat;
}

.breadcrumbs [aria-current="page"] {
  color: var(--color-text);
  font-weight: 600;
}

.breadcrumbs__home {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.breadcrumbs__home svg {
  width: 14px;
  height: 14px;
  stroke: var(--color-text-muted);
}

.breadcrumbs__home:hover svg {
  stroke: var(--color-accent);
}

.has-lokasyon-accent h1 {
  padding-bottom: 10px;
  border-bottom: 3px solid var(--lokasyon-accent);
}

/* ── Service Table (snippet-friendly) ── */
.service-table {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 20px 0 24px;
  border-collapse: separate;
  border-spacing: 0 10px;
  table-layout: fixed;
}

.service-table caption {
  display: block;
  width: 100%;
  margin-bottom: 4px;
  padding: 0 0 8px;
  text-align: left;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-muted);
  line-height: 1.55;
  caption-side: top;
}

.service-table th,
.service-table td {
  max-width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
  background: var(--color-surface);
}

.service-table th {
  width: 38%;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
  border-right: none;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.service-table td {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  border-left: none;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  box-shadow: var(--shadow-sm);
}

.service-table td a {
  color: var(--color-accent);
  font-weight: 700;
}

.service-table__row--highlight th,
.service-table__row--highlight td {
  background: var(--color-accent-soft);
  border-color: #bfdbfe;
}

.service-table__row--success th,
.service-table__row--success td {
  background: var(--color-success-soft);
  border-color: #a7f3d0;
}

.service-table__row--warning th,
.service-table__row--warning td {
  background: var(--color-warning-soft);
  border-color: #fde68a;
}

.service-table__row:not(.service-table__row--visual) {
  transition: transform var(--transition), filter var(--transition);
}

.service-table__row:not(.service-table__row--visual):hover {
  transform: translateY(-1px);
}

.service-table__row:not(.service-table__row--visual):hover th,
.service-table__row:not(.service-table__row--visual):hover td {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-md);
}

.service-table__row--highlight:not(.service-table__row--visual):hover th,
.service-table__row--highlight:not(.service-table__row--visual):hover td {
  border-color: #93c5fd;
}

.service-table__row--success:not(.service-table__row--visual):hover th,
.service-table__row--success:not(.service-table__row--visual):hover td {
  border-color: #6ee7b7;
}

.service-table__row--warning:not(.service-table__row--visual):hover th,
.service-table__row--warning:not(.service-table__row--visual):hover td {
  border-color: #fcd34d;
}

.service-table th i[data-lucide],
.service-table th svg {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 6px;
  vertical-align: -3px;
  stroke: var(--color-accent);
}

.service-table__row--success th i[data-lucide],
.service-table__row--success th svg { stroke: var(--color-success); }

.service-table__row--warning th i[data-lucide],
.service-table__row--warning th svg { stroke: var(--color-warning); }

.service-visual-cell {
  padding: 16px !important;
  text-align: center;
  border-radius: var(--radius-lg) !important;
  border: 1px solid var(--color-border) !important;
  box-shadow: var(--shadow-sm);
}

.service-visual { margin: 0; }

.service-visual img {
  display: block;
  width: 100%;
  max-width: 480px;
  height: auto;
  margin: 0 auto;
  border-radius: var(--radius-md);
}

.service-visual__caption {
  max-width: 640px;
  margin: 14px auto 0;
  padding: 0 4px;
  text-align: left;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--color-text-muted);
}

.service-visual__caption a {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.service-visual__caption a:hover {
  color: var(--color-accent-hover, #1d4ed8);
}

/* ── Info Cards Grid (dizin vb.) ── */
.service-info {
  margin: 24px 0;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 12px;
}

.info-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), border-color var(--transition);
}

.info-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-border-strong);
}

.info-card--highlight {
  background: var(--color-accent-soft);
  border-color: #bfdbfe;
}

.info-card--success {
  background: var(--color-success-soft);
  border-color: #a7f3d0;
}

.info-card--warning {
  background: var(--color-warning-soft);
  border-color: #fde68a;
}

.info-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  flex-shrink: 0;
}

.info-card--highlight .info-card__icon { background: #dbeafe; }
.info-card--success .info-card__icon { background: #d1fae5; }
.info-card--warning .info-card__icon { background: #fef3c7; }

.info-card__icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-accent);
}

.info-card--success .info-card__icon svg { stroke: var(--color-success); }
.info-card--warning .info-card__icon svg { stroke: var(--color-warning); }

.info-card__content { min-width: 0; flex: 1; }

.info-card__label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.info-card__value {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.4;
}

.info-card__value a {
  color: var(--color-accent);
  font-weight: 700;
}

.info-card__value small {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 400;
  color: var(--color-text-muted);
}

/* ── Star Rating ── */
.rating {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.rating svg {
  width: 16px;
  height: 16px;
  fill: var(--color-star);
  stroke: var(--color-star);
}

.rating__score {
  margin-left: 6px;
  font-weight: 700;
  color: var(--color-text);
}

.rating__count {
  margin-left: 4px;
  font-weight: 400;
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ── Service Visual ── */
.service-visual-wrap {
  margin: 20px 0 0;
  padding: 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.service-visual img {
  margin: 0 auto;
  max-width: 480px;
  border-radius: var(--radius-md);
}

/* ── Footer ── */
footer {
  margin-top: 40px;
  padding: 28px max(16px, env(safe-area-inset-right)) 32px max(16px, env(safe-area-inset-left));
  background: var(--color-primary);
  color: rgba(255,255,255,.85);
  font-size: 13px;
  line-height: 1.6;
  max-width: none;
}

footer h2 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

footer p { margin: 0 0 12px; }

footer a {
  color: rgba(255,255,255,.9);
  text-decoration: underline;
  text-underline-offset: 2px;
}

footer a:hover { color: #fff; }

.footer-sitemap {
  font-size: 12px;
  white-space: nowrap;
}

/* ── Call Bar ── */
.service-callbar {
  position: fixed;
  left: 50%;
  bottom: 10px;
  bottom: max(10px, env(safe-area-inset-bottom));
  z-index: 1000;
  width: min(520px, calc(100% - 24px - env(safe-area-inset-left) - env(safe-area-inset-right)));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px 12px 18px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-xl);
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-callbar);
  transform: translateX(-50%);
}

.service-callbar__info { min-width: 0; line-height: 1.25; }

.service-callbar__info small {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  opacity: .75;
}

.service-callbar__info small svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
}

.service-callbar__info strong {
  display: block;
  margin-top: 3px;
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: -.01em;
}

.service-callbar__info a,
.service-callbar a[x-apple-data-detectors] {
  color: inherit !important;
  text-decoration: none !important;
  -webkit-text-fill-color: currentColor !important;
}

.service-callbar__button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-md);
  background: var(--color-success);
  color: #fff !important;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background var(--transition), transform var(--transition);
}

.service-callbar__button svg {
  width: 18px;
  height: 18px;
  stroke: #fff;
}

.service-callbar__button:visited { color: #fff !important; }

.service-callbar__button:hover,
.service-callbar__button:focus {
  background: #047857;
  color: #fff !important;
  transform: translateY(-1px);
}

/* ── Declaration Dialog ── */
.service-declaration {
  width: min(480px, calc(100% - 32px));
  padding: 0;
  border: none;
  border-radius: var(--radius-lg);
  color: var(--color-text);
  background: var(--color-surface);
  box-shadow: var(--shadow-lg);
}

.service-declaration::backdrop { background: rgba(15, 23, 42, .6); backdrop-filter: blur(4px); }

.service-declaration__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px 0;
}

.service-declaration__header svg {
  width: 28px;
  height: 28px;
  stroke: var(--color-warning);
  flex-shrink: 0;
}

.service-declaration__body { padding: 12px 24px 24px; }

.service-declaration h2 {
  margin: 0;
  font-size: 20px;
  color: var(--color-primary);
}

.service-declaration p {
  margin: 12px 0 20px;
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.service-declaration button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 24px;
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  background: var(--color-primary);
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background var(--transition);
}

.service-declaration button:hover,
.service-declaration button:focus { background: var(--color-primary-light); }

/* ── Directory Pages ── */
.featured {
  margin: 20px 0;
  padding: 14px 18px;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  background: var(--color-accent-soft);
}

.featured a {
  font-weight: 700;
  color: var(--color-accent);
}

.directory-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: 12px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.directory-list li {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}

.directory-list li:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-border-strong);
  transform: translateY(-1px);
}

.directory-list__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--color-accent-soft);
  flex-shrink: 0;
}

.directory-list__icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-accent);
}

.directory-list__body {
  min-width: 0;
  flex: 1;
}

.directory-list strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
}

.directory-list strong a { color: var(--color-text); }
.directory-list strong a:hover { color: var(--color-accent); }

.directory-list small {
  display: block;
  margin-top: 4px;
  color: var(--color-text-muted);
  font-size: 13px;
}

.secondary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--color-bg);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-accent) !important;
}

.secondary svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
}

.secondary:hover { background: var(--color-accent-soft); }

.site-footer-simple {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
  font-size: 13px;
  color: var(--color-text-muted);
}

.site-footer-simple a { color: var(--color-text-muted); font-weight: 500; }
.site-footer-simple a:hover { color: var(--color-accent); }

/* ── 404 ── */
.error-page {
  text-align: center;
  padding: 48px 0;
}

.error-page svg {
  width: 64px;
  height: 64px;
  stroke: var(--color-text-light);
  margin: 0 auto 20px;
}

.error-page p { color: var(--color-text-muted); }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  background: var(--color-accent);
  color: #fff !important;
  font-weight: 600;
  font-size: 14px;
  transition: background var(--transition);
}

.btn-primary:hover { background: var(--color-accent-hover); color: #fff !important; }

.btn-primary svg { width: 16px; height: 16px; stroke: #fff; }

/* ── Responsive ── */
@media (max-width: 700px) {
  main { padding-top: 16px; }
  .info-grid { grid-template-columns: 1fr; }
  .service-visual-wrap { padding: 14px; }
  .site-header__phone span { display: none; }
  .site-header__phone { padding: 8px 10px; }

  .service-table,
  .service-table caption,
  .service-table tbody,
  .service-table tr,
  .service-table th,
  .service-table td { display: block; width: 100%; }

  .service-table { border-spacing: 0; }

  .service-table__row {
    margin-bottom: 10px;
    border-radius: var(--radius-md);
    overflow: hidden;
  }

  .service-table th,
  .service-table td {
    border-radius: 0;
    border-left: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
  }

  .service-table th {
    width: 100%;
    border-bottom: none;
    padding-bottom: 8px;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
  }

  .service-table td {
    border-top: none;
    padding-top: 0;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
  }

  .service-table__row--visual td {
    border-top: 1px solid var(--color-border);
    padding-top: 16px !important;
    border-radius: var(--radius-lg) !important;
  }
}

@media (max-width: 380px) {
  body { padding-bottom: calc(92px + env(safe-area-inset-bottom)); font-size: 15px; }

  .service-callbar {
    bottom: max(6px, env(safe-area-inset-bottom));
    width: calc(100% - 16px - env(safe-area-inset-left) - env(safe-area-inset-right));
    gap: 8px;
    padding: 10px 10px 10px 14px;
    border-radius: var(--radius-lg);
  }

  .service-callbar__info strong { font-size: 15px; }
  .service-callbar__button { min-height: 42px; padding: 0 14px; font-size: 13px; }
}

@media (max-width: 480px) {
  .directory-list { grid-template-columns: 1fr; }
}

@media (max-height: 480px) and (orientation: landscape) {
  body { padding-bottom: calc(82px + env(safe-area-inset-bottom)); }

  .service-callbar {
    bottom: max(4px, env(safe-area-inset-bottom));
    padding-top: 8px;
    padding-bottom: 8px;
  }
}
