:root {
  --red: #C20000;
  --red-dark: #8f0000;
  --blue: #0054FF;
  --blue-dark: #0040C4;
  --blue-pale: #eaf0ff;
  --ink: #172033;
  --ink-soft: #5b6472;
  --paper: #ffffff;
  --paper-alt: #f4f6fb;
  --line: #e4e8f2;
  --radius: 10px;
  --shadow: 0 6px 22px rgba(23, 32, 51, 0.07);
  font-size: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

svg.icon { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 44px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #f3f7ff 0%, #ffffff 100%);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand-logo { height: 46px; width: auto; }

.site-nav a {
  margin-left: 30px;
  color: var(--red);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--blue); text-decoration: none; border-bottom-color: var(--blue); }

main { min-height: 60vh; }

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

.hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg, var(--blue-dark) 0%, rgba(0, 64, 196, 0.88) 32%, rgba(0, 42, 138, 0.55) 55%, rgba(0, 20, 70, 0.18) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 44px;
  width: 100%;
}

.hero h1 {
  font-size: 2.6rem;
  line-height: 1.15;
  margin: 0 0 18px;
  max-width: 600px;
  letter-spacing: -0.01em;
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.92);
  max-width: 540px;
  margin: 0;
}

/* ---------- WhatsApp yüzen buton ---------- */

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
  z-index: 50;
  transition: transform 0.15s ease;
}
.whatsapp-float:hover { transform: scale(1.08); text-decoration: none; }
.whatsapp-float svg { width: 22px; height: 22px; color: #fff; }

.about-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
}
.about-gallery img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #25D366;
}
.btn-whatsapp:hover { background: #1ebc59; }
.btn-whatsapp svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Harita ---------- */

.map-embed {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 24px;
}
.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; }

.btn {
  display: inline-block;
  padding: 13px 26px;
  background: var(--red);
  color: #fff;
  border-radius: 7px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}
.btn:hover { background: var(--red-dark); text-decoration: none; color: #fff; }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.7); }
.btn-outline:hover { background: rgba(255,255,255,0.12); color: #fff; }
.btn-secondary { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-secondary:hover { background: var(--paper-alt); color: var(--ink); }
.btn-danger { background: #b3423a; }
.btn-danger:hover { background: #8f312a; }

/* ---------- Neden Biz + İstatistikler ---------- */

.about-stats {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 66px 44px;
  align-items: start;
}

.about-stats h2 {
  font-size: 1.7rem;
  margin: 0 0 6px;
}
.about-stats h2::before { content: "— "; color: var(--red); }

.about-stats > div:first-child > p {
  color: var(--ink-soft);
  margin-bottom: 26px;
}

.reasons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
}
.reasons-grid div {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 500;
}
.reasons-grid svg { width: 16px; height: 16px; color: var(--red); flex-shrink: 0; }

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat-item {
  padding: 26px 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.stat-item:nth-child(2n) { border-right: none; }
.stat-item:nth-child(3), .stat-item:nth-child(4) { border-bottom: none; }
.stat-item svg { width: 26px; height: 26px; color: var(--blue); flex-shrink: 0; margin-top: 3px; }
.stat-num { font-size: 1.7rem; font-weight: 800; color: var(--blue); line-height: 1.1; }
.stat-label { color: var(--ink-soft); font-size: 0.86rem; margin-top: 2px; }

/* ---------- Hizmetler ---------- */

.services-section { background: var(--paper-alt); padding: 66px 44px; }
.services-inner { max-width: 1180px; margin: 0 auto; }
.services-inner > h2 { font-size: 1.7rem; margin: 0 0 40px; }
.services-inner > h2::before { content: "— "; color: var(--red); }

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

.service-card { display: flex; gap: 18px; color: inherit; align-items: flex-start; }
.service-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--blue-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.service-icon-wrap svg { width: 28px; height: 28px; color: var(--blue); }
.service-icon-wrap img { width: 100%; height: 100%; object-fit: cover; }
.service-card h3 { margin: 4px 0 6px; font-size: 1.08rem; }
.service-card p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }
.service-card .card-price { font-weight: 700; color: var(--red); margin-top: 8px; font-size: 0.9rem; }

/* Ürün/hizmet listeleme sayfası ve detay için kart görünümü */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease;
}
.card:hover { transform: translateY(-3px); }
.card-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--paper-alt); }
.card-icon-block {
  width: 100%; aspect-ratio: 4/3; background: var(--blue-pale);
  display: flex; align-items: center; justify-content: center;
}
.card-icon-block svg { width: 25%; height: 25%; color: var(--blue); }
.card-body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { margin: 0 0 8px; font-size: 1.15rem; }
.card-body p { color: var(--ink-soft); font-size: 0.95rem; flex: 1; }
.card-price { font-weight: 700; color: var(--red); margin-top: 10px; }

.container { max-width: 1180px; margin: 0 auto; padding: 60px 44px; }
.section-title { font-size: 1.7rem; margin-bottom: 34px; }
.section-title::before { content: "— "; color: var(--red); }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 26px 44px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.detail img { border-radius: var(--radius); box-shadow: var(--shadow); }
.detail h1 { margin-top: 0; }

form.form { max-width: 480px; }
.form label { display: block; font-weight: 600; margin: 16px 0 6px; font-size: 0.92rem; }
.form input, .form textarea, .form select {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
}
.form textarea { min-height: 140px; resize: vertical; }
.form .actions { margin-top: 26px; display: flex; gap: 12px; }

.flash { padding: 12px 16px; border-radius: 6px; margin-bottom: 20px; font-size: 0.92rem; }
.flash-error { background: #fbe6e4; color: #8f312a; border: 1px solid #f0c4c0; }
.flash-ok { background: #e9f3e6; color: #3d6b2f; border: 1px solid #cfe6c8; }

/* ---------- Referanslar ---------- */

.references-list {
  columns: 3;
  column-gap: 36px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.references-list li {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  break-inside: avoid;
  font-size: 0.95rem;
  color: var(--ink);
}

/* ---------- Youtube ---------- */

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}
.video-card h3 { margin: 12px 0 0; font-size: 1rem; }
.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  background: #000;
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-play-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
  transition: background 0.15s ease;
}
.video-thumb:hover .video-play-btn::before { background: rgba(0,0,0,0.4); }
.video-play-btn svg {
  position: relative;
  width: 62px;
  height: 62px;
  color: #fff;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

/* ---------- Admin panel ---------- */

.admin-body { background: #f4f5f8; }
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar { width: 230px; background: var(--ink); color: #eee; padding: 26px 20px; flex-shrink: 0; }
.admin-sidebar .brand-logo { height: 34px; margin-bottom: 30px; filter: brightness(0) invert(1); }
.admin-sidebar nav a {
  display: block; color: #cfd2d9; padding: 10px 12px; border-radius: 6px; margin-bottom: 4px; font-size: 0.93rem;
}
.admin-sidebar nav a:hover, .admin-sidebar nav a.active { background: rgba(255,255,255,0.09); color: #fff; text-decoration: none; }

.admin-main { flex: 1; padding: 34px 44px; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.admin-topbar h1 { margin: 0; font-size: 1.5rem; }

.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--paper-alt); }
.login-box { background: #fff; padding: 40px 40px 44px; border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; max-width: 360px; text-align: center; }
.login-box .brand-logo { height: 42px; margin: 0 auto 18px; }
.login-box h1 { font-size: 1.15rem; margin: 0 0 20px; color: var(--ink-soft); font-weight: 600; }
.login-box form { text-align: left; }

table.admin-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
table.admin-table th, table.admin-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; font-size: 0.92rem; }
table.admin-table th { background: var(--paper-alt); font-weight: 600; }
table.admin-table tr:last-child td { border-bottom: none; }
table.admin-table img.thumb { width: 46px; height: 46px; object-fit: cover; border-radius: 6px; }
.row-actions a, .row-actions button { margin-right: 10px; font-size: 0.88rem; }

.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; margin-bottom: 32px; }
.stat-card { background: #fff; border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); }
.stat-card .num { font-size: 1.8rem; font-weight: 700; color: var(--blue); }
.stat-card .label { color: var(--ink-soft); font-size: 0.88rem; }

.icon-picker { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 6px; }
.icon-picker label {
  display: flex; align-items: center; justify-content: center; margin: 0;
  border: 1.5px solid var(--line); border-radius: 8px; padding: 10px 0; cursor: pointer;
}
.icon-picker input { position: absolute; opacity: 0; pointer-events: none; }
.icon-picker input:checked + svg, .icon-picker label:has(input:checked) { border-color: var(--blue); color: var(--blue); background: var(--blue-pale); }
.icon-picker svg { width: 20px; height: 20px; }

@media (max-width: 860px) {
  .about-stats { grid-template-columns: 1fr; }
  .reasons-grid { grid-template-columns: 1fr; }
  .references-list { columns: 2; }
}

@media (max-width: 720px) {
  .site-header { padding: 14px 20px; flex-direction: column; gap: 10px; }
  .site-nav a { margin: 0 10px; }
  .hero { min-height: 360px; }
  .hero-inner { padding: 0 20px; }
  .hero h1 { font-size: 1.9rem; }
  .hero-overlay { background: linear-gradient(180deg, rgba(0,42,138,0.55) 0%, rgba(0,20,70,0.75) 100%); }
  .about-stats, .services-section, .container { padding: 40px 20px; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item:nth-child(2n) { border-right: 1px solid var(--line); }
  .stat-item:nth-child(3) { border-bottom: 1px solid var(--line); }
  .detail { grid-template-columns: 1fr; }
  .admin-shell { flex-direction: column; }
  .admin-sidebar { width: 100%; }
  .admin-main { padding: 24px; }
  .whatsapp-float { right: 14px; bottom: 14px; width: 40px; height: 40px; }
  .whatsapp-float svg { width: 20px; height: 20px; }
  .about-gallery { grid-template-columns: 1fr; }
  .references-list { columns: 1; }
  .video-grid { grid-template-columns: 1fr; }
}
