/* ==========================================================
   ERGENE TIKANIKLIK AÇMA
   Sıcak, aydınlık, sade — gerçek bir yerel esnaf sitesi hissi.
   ========================================================== */
:root {
  --ink: #1a1f27;
  --ink-soft: #2b323d;
  --muted: #6b7583;
  --line: #e8eaee;

  --paper: #ffffff;
  --paper-alt: #f6f7f9;

  --orange-600: #f97316;
  --orange-500: #fb923c;
  --orange-050: #fff4ea;

  --whatsapp: #25d366;
  --whatsapp-dark: #1eb859;

  --danger: #dc2626;
  --success: #16a34a;

  --font-display: "Poppins", "Arial", sans-serif;
  --font-body: "Poppins", -apple-system, "Segoe UI", sans-serif;

  --radius: 20px;
  --radius-sm: 12px;
  --container: 1180px;
  --shadow-sm: 0 6px 18px -10px rgba(26, 31, 39, 0.18);
  --shadow-md: 0 14px 32px -14px rgba(26, 31, 39, 0.2);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--orange-600); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  color: var(--ink);
}
p { margin: 0 0 1em; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background 160ms ease, opacity 160ms ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-call { background: var(--ink); color: #fff; }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-orange { background: var(--orange-600); color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .btn-call:hover { opacity: 0.85; }
  .btn-whatsapp:hover { background: var(--whatsapp-dark); }
  .btn-ghost:hover { border-color: var(--ink); }
  .btn-orange:hover { background: #e6650f; }
}
.btn-block { width: 100%; }
.btn svg { flex-shrink: 0; }

/* ---------- Info bar ---------- */
.infobar { background: var(--paper-alt); color: var(--muted); font-size: 13px; border-bottom: 1px solid var(--line); }
.infobar-inner {
  max-width: var(--container); margin: 0 auto; padding: 9px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.infobar-item { display: inline-flex; align-items: center; gap: 7px; }
.infobar-item svg { color: var(--orange-600); flex-shrink: 0; }
@media (max-width: 640px) {
  .infobar-inner { justify-content: center; gap: 18px; padding: 8px 16px; }
  .infobar-item.hide-mobile { display: none; }
}

/* ---------- Top bar / nav ---------- */
.topbar { background: var(--paper); border-bottom: 1px solid var(--line); }
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; max-width: var(--container); margin: 0 auto; gap: 20px;
}
.brand { font-family: var(--font-display); font-weight: 700; font-size: 19px; display: flex; align-items: center; gap: 10px; color: var(--ink); flex-shrink: 0; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px; background: var(--orange-050);
  display: flex; align-items: center; justify-content: center; color: var(--orange-600); flex-shrink: 0;
}
.brand small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 11.5px; color: var(--muted); }
.nav { position: relative; display: flex; align-items: center; gap: 28px; flex-shrink: 0; }
.nav a {
  font-size: 15px; color: var(--ink-soft); font-weight: 500; padding: 4px 0;
  border-bottom: 2px solid transparent; transition: color 160ms ease, border-color 160ms ease;
}
@media (hover: hover) and (pointer: fine) { .nav a:hover { color: var(--orange-600); } }
.nav a.active { color: var(--orange-600); font-weight: 600; }
.nav a.btn, .nav a.btn:hover { padding: 16px 28px; border-bottom: none; color: #fff; }
.nav-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.nav-phone { font-weight: 600; font-size: 15px; color: var(--ink); white-space: nowrap; }
.nav-actions .btn { flex-shrink: 0; }

.nav-mobile { position: relative; display: none; }
.nav-toggle {
  display: flex; align-items: center; justify-content: center; width: 42px; height: 42px;
  border-radius: 10px; border: 1px solid var(--line); color: var(--ink); cursor: pointer; list-style: none;
}
.nav-toggle::-webkit-details-marker { display: none; }
.nav-mobile[open] .nav-toggle { border-color: var(--orange-500); color: var(--orange-600); }
.nav-mobile-panel {
  position: absolute; top: calc(100% + 10px); right: 0; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md);
  padding: 10px; display: flex; flex-direction: column; gap: 2px; min-width: 210px;
}
.nav-mobile-panel a { padding: 12px 14px; border-radius: var(--radius-sm); font-weight: 500; font-size: 15px; color: var(--ink-soft); }
.nav-mobile-panel a.active { color: var(--orange-600); background: var(--orange-050); font-weight: 600; }
.nav-mobile-phone { margin-top: 6px; padding-top: 14px !important; border-top: 1px solid var(--line); color: var(--ink) !important; font-weight: 600 !important; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-phone-text { display: none; }
  .nav-mobile { display: block; }
}
@media (max-width: 480px) {
  .brand { font-size: 16px; }
  .brand small { display: none; }
  .topbar-inner { gap: 12px; }
}

/* ---------- Hero (circular photo + soft blob, warm/light) ---------- */
.hero { position: relative; padding: 64px 0 72px; overflow: hidden; background: var(--paper); }
.hero-blob {
  position: absolute; top: -10%; right: -8%; width: 46vw; height: 46vw; max-width: 620px; max-height: 620px;
  background: linear-gradient(135deg, var(--orange-050), #ffe3c7);
  border-radius: 62% 38% 55% 45% / 45% 55% 45% 55%;
  z-index: 0;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } .hero-blob { width: 70vw; height: 70vw; top: -6%; right: -20%; } }
.hero h1 { font-size: clamp(32px, 4.4vw, 48px); max-width: 14ch; color: var(--ink); }
.hero h1 .accent { display: block; color: var(--orange-600); }
.hero-sub { font-size: 17px; max-width: 46ch; color: var(--muted); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

.hero-photo-wrap { position: relative; z-index: 1; aspect-ratio: 1/1; max-width: 520px; margin: 0 auto; }
.hero-photo {
  width: 100%; height: 100%; border-radius: 50%; overflow: hidden;
  border: 10px solid var(--paper); box-shadow: var(--shadow-md);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-placeholder {
  width: 100%; height: 100%; min-height: 220px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(155deg, var(--orange-500), var(--orange-600));
  color: #fff; text-align: center; padding: 28px;
}
.photo-placeholder svg { color: #fff; opacity: 0.9; }
.photo-placeholder span { font-size: 15px; font-weight: 600; }
.photo-placeholder small { font-size: 12px; color: rgba(255,255,255,0.85); }

.about-photo { border-radius: var(--radius-sm); overflow: hidden; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Section shell ---------- */
.section { padding: 76px 0; }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head p { margin: 0 auto; }
.section-alt { background: var(--paper-alt); }

/* ---------- Services (circular icon badges, like the reference) ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px 20px;
  text-align: center;
}
.service-card { display: flex; flex-direction: column; align-items: center; }
.service-icon {
  width: 84px; height: 84px; border-radius: 50%; background: var(--paper);
  display: flex; align-items: center; justify-content: center; color: var(--orange-600);
  box-shadow: var(--shadow-sm); margin-bottom: 16px;
}
.service-icon svg { width: 30px; height: 30px; }
.service-card h3 { font-size: 16px; margin: 0 0 6px; }
.service-card p { font-size: 13.5px; margin: 0; max-width: 22ch; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: center; }
@media (max-width: 760px) { .process { grid-template-columns: 1fr; } }
.process-step { padding: 4px; }
.process-step .num {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: 50%; background: var(--orange-050); color: var(--orange-600);
  font-family: var(--font-display); font-weight: 700; font-size: 16px; margin-bottom: 14px;
}
.process-step h4 { margin: 0 0 6px; font-size: 17px; }
.process-step p { font-size: 14.5px; margin: 0 auto; max-width: 30ch; }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.post-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
  transition: transform 220ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .post-card:hover { transform: translateY(-4px); } }
.post-card img { width: 100%; height: 170px; object-fit: cover; }
.post-card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.post-date { font-size: 12.5px; font-weight: 600; color: var(--orange-600); margin-bottom: 8px; }
.post-card h3 { font-size: 17.5px; margin-bottom: 8px; }
.post-card p { font-size: 14px; flex: 1; }
.post-readmore { font-size: 13.5px; font-weight: 600; color: var(--ink); margin-top: 12px; }
.post-body { font-size: 16px; color: var(--ink-soft); line-height: 1.85; }
.post-body p { margin-bottom: 1.2em; color: var(--ink-soft); }
.empty-state { text-align: center; padding: 40px; color: var(--muted); font-size: 14.5px; }
.text-link { color: var(--orange-600); font-weight: 600; }

/* ---------- Check list ---------- */
.check-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--ink-soft); }
.check-list svg { flex-shrink: 0; margin-top: 2px; color: var(--orange-600); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.contact-list .k { font-size: 12.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; min-width: 90px; padding-top: 2px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 500; color: var(--ink-soft); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; background: var(--paper-alt); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 13px 14px; color: var(--ink); font-family: var(--font-body); font-size: 15px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--orange-500); background: var(--paper); }
.alert { padding: 14px 16px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 20px; font-weight: 500; }
.alert-success { background: rgba(22, 163, 74, 0.1); color: var(--success); }
.alert-error { background: rgba(220, 38, 38, 0.1); color: var(--danger); }

/* ---------- Footer (light, not dark) ---------- */
.footer { border-top: 1px solid var(--line); padding: 48px 0 28px; background: var(--paper-alt); color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h5 { font-family: var(--font-display); font-size: 13px; letter-spacing: 0.02em; color: var(--ink); margin-bottom: 14px; }
.footer a, .footer p { font-size: 14px; color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .footer a:hover { color: var(--orange-600); } }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-bottom { padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); flex-wrap: wrap; gap: 10px; }

/* ---------- WhatsApp floating button ---------- */
.fab-whatsapp {
  position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  background: var(--whatsapp); display: flex; align-items: center; justify-content: center; color: #fff;
  box-shadow: var(--shadow-md); transition: transform 160ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .fab-whatsapp:hover { transform: scale(1.06); } }
.fab-whatsapp:active { transform: scale(0.94); }

/* ---------- Page header (inner pages) ---------- */
.page-header { padding: 48px 0 36px; background: var(--paper-alt); border-bottom: 1px solid var(--line); }
.page-header h1 { font-size: clamp(26px, 3.6vw, 38px); margin: 0; }
.breadcrumb { font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--orange-600); }
