:root {
  --primary: #2563eb;
  --secondary: #1e40af;
  --bg: #ffffff;
  --text: #1f2937;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, sans-serif; color: var(--text); background: var(--bg); line-height: 1.5; }

.site-header { background: var(--primary); color: #fff; padding: 0.75rem 1rem; }
.header-inner { max-width: 960px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.logo { color: #fff; text-decoration: none; font-weight: 700; font-size: 1.25rem; }
.main-nav { display: flex; gap: 1rem; flex-wrap: wrap; }
.main-nav a { color: rgba(255,255,255,.9); text-decoration: none; }
.main-nav a:hover { color: #fff; }

.site-main { max-width: 960px; margin: 0 auto; padding: 1.5rem 1rem; min-height: 50vh; }
@media (max-width: 599px) { .site-main { padding-left: 1rem; padding-right: 1rem; box-sizing: border-box; } }

.page-title { margin-top: 0; color: var(--primary); }
.content.rich { max-width: 72ch; }
.content.rich img { max-width: 100%; height: auto; }

.service-cards, .service-list { display: grid; gap: 1rem; }
.service-cards { grid-template-columns: 1fr; min-width: 0; }
@media (min-width: 600px) { .service-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .service-cards { grid-template-columns: repeat(3, 1fr); } }
.card, .service-item { border: 1px solid #e5e7eb; border-radius: 8px; padding: 1rem; }
.card a, .service-item a { text-decoration: none; color: inherit; }
.card h3, .service-item h2 { margin: 0 0 .5rem; color: var(--primary); }
.link-more { display: inline-block; margin-top: 1rem; color: var(--primary); }

/* Ana sayfa Hizmetlerimiz – modern kartlar */
.services-preview-header { text-align: center; margin-bottom: 2rem; }
.services-preview-title { font-size: 1.75rem; margin: 0 0 .5rem; color: var(--text); font-weight: 700; letter-spacing: -0.02em; }
.services-preview-subtitle { margin: 0; color: #6b7280; font-size: 1rem; }
.service-card-modern {
  position: relative;
  display: block;
  background: #fff;
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
  transition: transform .25s ease, box-shadow .25s ease, border-color .2s ease;
  text-decoration: none;
  color: inherit;
}
.service-card-modern:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
  border-color: rgba(0,0,0,.08);
}
.service-card-accent {
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--services-card, var(--primary)), transparent);
  opacity: .9;
}
.service-card-body { padding: 1.25rem 1.25rem 1.5rem; min-width: 0; }
@media (max-width: 599px) {
  .services-preview .service-cards { width: 100%; padding: 0; }
  .service-card-modern { width: 100%; min-width: 0; }
  .service-card-body { padding: 1rem 1rem 1.25rem; }
  .service-card-modern h3,
  .service-card-desc,
  .service-card-link { width: 100%; max-width: 100%; box-sizing: border-box; }
  .service-card-accent { background: var(--services-card, var(--primary)); }
}
.service-card-modern h3 {
  margin: 0 0 .75rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--services-card, var(--primary));
  line-height: 1.3;
}
.service-card-desc {
  margin: 0 0 1rem;
  font-size: .9375rem;
  color: #4b5563;
  line-height: 1.5;
}
.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--services-card, var(--primary));
}
.service-card-modern:hover .service-card-link { text-decoration: underline; }
.services-all-link { display: inline-block; margin-top: 1.5rem; font-weight: 600; }

.post-list { display: grid; gap: 1.5rem; }
.post-item a { text-decoration: none; color: inherit; }
.post-item h2, .post-item h3 { margin: 0 0 .25rem; color: var(--primary); }
.post-item time { font-size: 0.875rem; color: #6b7280; }
.excerpt { color: #4b5563; margin: .25rem 0; }

.ref-grid, .ref-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; }
.ref-item { text-align: center; }
.ref-item img { width: 100%; height: auto; max-width: 200px; border-radius: 8px; object-fit: cover; }
.ref-title { display: block; margin-top: .5rem; font-size: .875rem; }

.block { margin: 2rem 0; }
.block h2 { font-size: 1.25rem; margin-bottom: 1rem; }

.home-intro .content.rich { max-width: none; }

.home-slider { margin: 1rem -1rem 2rem; max-width: none; }
.slider-wrap { position: relative; max-width: 960px; margin: 0 auto; overflow: hidden; border-radius: 8px; }
.slider-inner { display: flex; transition: transform .3s ease; }
.slider-inner .slide { flex: 0 0 100%; position: relative; }
.slider-inner .slide img { width: 100%; height: auto; max-height: 400px; object-fit: cover; display: block; }
.slider-inner .slide .slide-title { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,.5); color: #fff; padding: .5rem 1rem; font-size: .9rem; }
.slider-prev, .slider-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.9); border: 0; width: 40px; height: 40px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; line-height: 1; }
.slider-prev { left: .5rem; }
.slider-next { right: .5rem; }
.slider-prev:hover, .slider-next:hover { background: #fff; }

.pagination { margin-top: 2rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.pagination a { color: var(--primary); }

.site-footer { background: var(--secondary); color: rgba(255,255,255,.9); padding: 1.5rem 1rem; margin-top: 2rem; }
.footer-inner { max-width: 960px; margin: 0 auto; text-align: center; }
.footer-nav { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.footer-nav a { color: rgba(255,255,255,.9); text-decoration: none; }
.footer-address { margin: .5rem 0; }
.site-footer p a { color: #fff; text-decoration: none; }
.site-footer p a:hover { text-decoration: underline; }
.copyright { margin-top: 1rem; font-size: .875rem; opacity: .9; }

.float-buttons { position: fixed; bottom: 1rem; right: 1rem; display: flex; flex-direction: column; gap: .5rem; z-index: 9999; }
.float-btn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: .5rem;
  height: 48px;
  padding: 0 1rem 0 1rem;
  border-radius: 24px;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
  text-decoration: none;
  font-size: .9375rem;
  font-weight: 500;
  white-space: nowrap;
  min-width: 48px;
}
.float-btn .float-btn-label { flex: 1; min-width: 0; text-align: left; }
.float-btn svg { flex-shrink: 0; margin-left: auto; }
.float-btn:hover { background: var(--secondary); color: #fff; }
.float-whatsapp { background: #25d366; }
.float-whatsapp:hover { background: #128c7e; }

.page-404 { text-align: center; padding: 3rem 1rem; }
.page-404 h1 { font-size: 4rem; margin: 0; color: var(--primary); }
.map-embed { margin-top: 1rem; max-width: 100%; overflow: hidden; }
.map-embed iframe { width: 100%; height: 300px; border: 0; }
